rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
search_modifier = tokens[start].text=="|"
search_modifier = tokens[start].text in ("|", "!")
def run(self): tokens = self.tokens i = 0 start = None
77e93ba625801e9c9f0cf3b1fdb4644a87a19e31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/77e93ba625801e9c9f0cf3b1fdb4644a87a19e31/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2430, 273, 365, 18, 7860, 277, 273, 374, 787, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2430, 273, 365, 18, 7860, 277, 273, 374, 787, 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, -100, -100, -100, -100 ]
return urlparse.urlunparse((scheme, netloc, path, params, query, fragment))
return _urlunparse(scheme, netloc, path, params, query, fragment, url)
def hidepassword(url): '''hide user credential in a url string''' scheme, netloc, path, params, query, fragment = urlparse.urlparse(url) netloc = re.sub('([^:]*):([^@]*)@(.*)', r'\1:***@\3', netloc) return urlparse.urlunparse((scheme, netloc, path, params, query, fragment))
6bdafded4dc10f3c747ce4fa35d3befbca2aba12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/6bdafded4dc10f3c747ce4fa35d3befbca2aba12/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 3664, 12, 718, 4672, 9163, 11248, 729, 8447, 316, 279, 880, 533, 26418, 4355, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 273, 15185, 18, 718, 2670, 12, 718, 13, 17345, 273, 283, 18, 1717, 2668, 8178, 30, 5772, 4672, 8178, 36, 15471, 36, 14361, 2187, 436, 8314, 21, 30, 14465, 36, 64, 23, 2187, 17345, 13, 327, 389, 718, 318, 2670, 12, 9068, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 16, 880, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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672, 9163, 11248, 729, 8447, 316, 279, 880, 533, 26418, 4355, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 273, 15185, 18, 718, 2670, 12, 718, 13, 17345, 273, 283, 18, 1717, 2668, 8178, 30, 5772, 4672, 8178, 36, 15471, 36, 14361, 2187, 436, 8314, 21, 30, 14465, 36, 64, 23, 2187, 17345, 13, 327, 389, 718, 318, 2670, 12, 9068, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 16, 880, 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 ]
if __debug__: import spambayes.Options assert spambayes.Options.optionsPathname == \ ini_filename.encode(filesystem_encoding), \ "'spambayes.Options' was imported too early, with the " \ "incorrect directory %r" \ % (spambayes.Options.optionsPathname,)
assert hasattr(sys, "frozen")
def import_core_spambayes_stuff(ini_filename): if "spambayes.Options" in sys.modules: # Manager probably being re-initialized (via the Outlook 'addin' GUI # Check that nothing has changed underneath us. if __debug__: import spambayes.Options assert spambayes.Options.optionsPathname == \ ini_filename.encode(filesystem_encoding), \ "'spambayes.Options' was imported too early, with the " \ "incorrect directory %r" \ % (spambayes.Options.optionsPathname,) return global bayes_classifier, bayes_tokenize, bayes_storage # ini_filename is Unicode, but environ not unicode aware os.environ["BAYESCUSTOMIZE"] = ini_filename.encode(filesystem_encoding) from spambayes import classifier from spambayes.tokenizer import tokenize from spambayes import storage bayes_classifier = classifier bayes_tokenize = tokenize bayes_storage = storage assert "spambayes.Options" in sys.modules, \ "Expected 'spambayes.Options' to be loaded here"
b46667ea73807a81e6551291dc6102a756e0b7bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b46667ea73807a81e6551291dc6102a756e0b7bd/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3644, 67, 1752, 2536, 528, 281, 67, 334, 3809, 12, 8767, 67, 3459, 4672, 309, 315, 1752, 2536, 528, 281, 18, 1320, 6, 316, 2589, 18, 6400, 30, 468, 8558, 8656, 3832, 283, 17, 13227, 261, 21985, 326, 2976, 7330, 296, 1289, 267, 11, 10978, 468, 2073, 716, 5083, 711, 3550, 3613, 4644, 421, 584, 18, 309, 1001, 4148, 972, 30, 1930, 1694, 2536, 528, 281, 18, 1320, 1815, 1694, 2536, 528, 281, 18, 1320, 18, 2116, 743, 529, 422, 521, 6896, 67, 3459, 18, 3015, 12, 17846, 67, 5999, 3631, 521, 2491, 1752, 2536, 528, 281, 18, 1320, 11, 1703, 9101, 4885, 11646, 16, 598, 326, 315, 521, 315, 267, 6746, 1867, 738, 86, 6, 521, 738, 261, 1752, 2536, 528, 281, 18, 1320, 18, 2116, 743, 529, 16, 13, 327, 2552, 324, 528, 281, 67, 1106, 1251, 16, 324, 528, 281, 67, 2316, 554, 16, 324, 528, 281, 67, 5697, 468, 6896, 67, 3459, 353, 9633, 16, 1496, 5473, 486, 5252, 18999, 1140, 18, 28684, 9614, 38, 5255, 41, 2312, 11707, 15641, 11929, 273, 6896, 67, 3459, 18, 3015, 12, 17846, 67, 5999, 13, 628, 1694, 2536, 528, 281, 1930, 14622, 628, 1694, 2536, 528, 281, 18, 2316, 1824, 1930, 13672, 628, 1694, 2536, 528, 281, 1930, 2502, 324, 528, 281, 67, 1106, 1251, 273, 14622, 324, 528, 281, 67, 2316, 554, 273, 13672, 324, 528, 281, 67, 5697, 273, 2502, 1815, 315, 1752, 2536, 528, 281, 18, 1320, 6, 316, 2589, 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, 1930, 67, 3644, 67, 1752, 2536, 528, 281, 67, 334, 3809, 12, 8767, 67, 3459, 4672, 309, 315, 1752, 2536, 528, 281, 18, 1320, 6, 316, 2589, 18, 6400, 30, 468, 8558, 8656, 3832, 283, 17, 13227, 261, 21985, 326, 2976, 7330, 296, 1289, 267, 11, 10978, 468, 2073, 716, 5083, 711, 3550, 3613, 4644, 421, 584, 18, 309, 1001, 4148, 972, 30, 1930, 1694, 2536, 528, 281, 18, 1320, 1815, 1694, 2536, 528, 281, 18, 1320, 18, 2116, 743, 529, 422, 521, 6896, 67, 3459, 18, 3015, 12, 17846, 67, 5999, 3631, 521, 2491, 1752, 2536, 528, 281, 18, 1320, 11, 1703, 9101, 4885, 11646, 16, 598, 326, 315, 521, 315, 267, 6746, 1867, 738, 86, 6, 2 ]
self.sock.send(buf)
BS = 512 if len(buf) >= BS: self.flush() self.sock.send(buf) elif len(buf) + len(self.buf) >= BS: self.flush() self.buf = buf else: self.buf = self.buf + buf def flush(self): if self.buf and self.rw == 'w': self.sock.send(self.buf) self.buf = ''
def write(self, buf): self.sock.send(buf)
41cadba88bb9f9b491c12db62fd24f9f9f6539c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/41cadba88bb9f9b491c12db62fd24f9f9f6539c1/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1681, 4672, 365, 18, 15031, 18, 4661, 12, 4385, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1681, 4672, 365, 18, 15031, 18, 4661, 12, 4385, 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 ]
res.update({'text': '\n\n'+(case.user_id.signature or '') + '\n\n' + (case.description or '')})
res.update({'text': '\n\n'+(case.user_id.signature or '')})
def default_get(self, cr, uid, fields, context=None): """ This function gets default values """ if not context: context = {}
393afb43b781bbe2a34c82b0aba02e55cd2cd0a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/393afb43b781bbe2a34c82b0aba02e55cd2cd0a6/crm_send_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 3536, 309, 486, 819, 30, 819, 273, 2618, 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, 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 819, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.store.extract('d','f','g')
self.store.extract(['d','f','g'])
def raise_extract(self): '''DictStore: extract: fail because unknown attribute name.''' self.store.extract('d','f','g')
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1002, 67, 8004, 12, 2890, 4672, 9163, 5014, 2257, 30, 2608, 30, 2321, 2724, 5917, 1566, 508, 1093, 6309, 365, 18, 2233, 18, 8004, 12, 3292, 72, 17023, 74, 17023, 75, 19486, 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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, 1002, 67, 8004, 12, 2890, 4672, 9163, 5014, 2257, 30, 2608, 30, 2321, 2724, 5917, 1566, 508, 1093, 6309, 365, 18, 2233, 18, 8004, 12, 3292, 72, 17023, 74, 17023, 75, 19486, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
activity_up = get_object_or_404(Activity, id=id_up); activity_down = get_object_or_404(Activity, id=id_down);
activity_up = get_object_or_404(Activity, id=id_up, offering__slug=course_slug) activity_down = get_object_or_404(Activity, id=id_down, offering__slug=course_slug)
def reorder_activity(request, course_slug): """ Ajax way to reorder activity. This ajax view function is called in the course_info page. """ if request.method == 'POST': id_up = request.POST.get('id_up') id_down = request.POST.get('id_down') if id_up == None or id_down == None: return ForbiddenResponse(request) # swap the position of the two activities activity_up = get_object_or_404(Activity, id=id_up); activity_down = get_object_or_404(Activity, id=id_down); temp = activity_up.position activity_up.position = activity_down.position activity_down.position = temp activity_up.save() activity_down.save() return HttpResponse("Order updated!") return ForbiddenResponse(request)
ae4e33f857e06229e974b07ff4e143db52fb219e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6634/ae4e33f857e06229e974b07ff4e143db52fb219e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19427, 67, 9653, 12, 2293, 16, 4362, 67, 6436, 4672, 3536, 18772, 4031, 358, 19427, 5728, 18, 1220, 10733, 1476, 445, 353, 2566, 316, 326, 4362, 67, 1376, 1363, 18, 3536, 309, 590, 18, 2039, 422, 296, 3798, 4278, 612, 67, 416, 273, 590, 18, 3798, 18, 588, 2668, 350, 67, 416, 6134, 612, 67, 2378, 273, 590, 18, 3798, 18, 588, 2668, 350, 67, 2378, 6134, 309, 612, 67, 416, 422, 599, 578, 612, 67, 2378, 422, 599, 30, 327, 20204, 1064, 12, 2293, 13, 468, 7720, 326, 1754, 434, 326, 2795, 17259, 5728, 67, 416, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 6193, 16, 612, 33, 350, 67, 416, 16, 10067, 310, 972, 6436, 33, 5566, 67, 6436, 13, 5728, 67, 2378, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 6193, 16, 612, 33, 350, 67, 2378, 16, 10067, 310, 972, 6436, 33, 5566, 67, 6436, 13, 225, 1906, 273, 5728, 67, 416, 18, 3276, 5728, 67, 416, 18, 3276, 273, 5728, 67, 2378, 18, 3276, 5728, 67, 2378, 18, 3276, 273, 1906, 5728, 67, 416, 18, 5688, 1435, 5728, 67, 2378, 18, 5688, 1435, 327, 9476, 2932, 2448, 3526, 4442, 13, 327, 20204, 1064, 12, 2293, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19427, 67, 9653, 12, 2293, 16, 4362, 67, 6436, 4672, 3536, 18772, 4031, 358, 19427, 5728, 18, 1220, 10733, 1476, 445, 353, 2566, 316, 326, 4362, 67, 1376, 1363, 18, 3536, 309, 590, 18, 2039, 422, 296, 3798, 4278, 612, 67, 416, 273, 590, 18, 3798, 18, 588, 2668, 350, 67, 416, 6134, 612, 67, 2378, 273, 590, 18, 3798, 18, 588, 2668, 350, 67, 2378, 6134, 309, 612, 67, 416, 422, 599, 578, 612, 67, 2378, 422, 599, 30, 327, 20204, 1064, 12, 2293, 13, 468, 7720, 326, 1754, 434, 326, 2795, 17259, 5728, 67, 416, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 6193, 16, 612, 33, 350, 67, 416, 16, 10067, 310, 972, 6436, 2 ]
if key != 'channelName': raise
def upgrade116(cursor): """Convert filenames in the status container to unicode.""" cursor.execute("SELECT id, status FROM remote_downloader") filename_fields = ('channelName', 'shortFilename', 'filename') for row in cursor.fetchall(): id, status = row status = eval(status, __builtins__, {'datetime': datetime, 'time': time}) changed = False for key in filename_fields: value = status.get(key) if value is not None and not isinstance(value, unicode): try: status[key] = value.decode("utf-8") except UnicodeError: # for channelNames with bad unicode, try some kludges to # get things working. (#14003) if key != 'channelName': raise try: # kludge 1: latin-1 charset status[key] = value.decode("iso-8859-1") except UnicodeError: # kludge 2: replace bad values status[key] = value.decode("utf-8", 'replace') changed = True if changed: cursor.execute("UPDATE remote_downloader SET status=? " "WHERE id=?", (repr(status), id))
2c2c9018c7a39902ac177abfb02fd9a2500082b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/2c2c9018c7a39902ac177abfb02fd9a2500082b1/databaseupgrade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 20562, 12, 9216, 4672, 3536, 2723, 9066, 316, 326, 1267, 1478, 358, 5252, 12123, 3347, 18, 8837, 2932, 4803, 612, 16, 1267, 4571, 2632, 67, 2378, 6714, 7923, 1544, 67, 2821, 273, 7707, 4327, 461, 2187, 296, 6620, 5359, 2187, 296, 3459, 6134, 364, 1027, 316, 3347, 18, 5754, 454, 13332, 612, 16, 1267, 273, 1027, 1267, 273, 5302, 12, 2327, 16, 1001, 12406, 2679, 972, 16, 13666, 6585, 4278, 3314, 16, 296, 957, 4278, 813, 6792, 3550, 273, 1083, 364, 498, 316, 1544, 67, 2821, 30, 460, 273, 1267, 18, 588, 12, 856, 13, 309, 460, 353, 486, 599, 471, 486, 1549, 12, 1132, 16, 5252, 4672, 775, 30, 1267, 63, 856, 65, 273, 460, 18, 3922, 2932, 3158, 17, 28, 7923, 1335, 9633, 668, 30, 468, 364, 1904, 1557, 598, 5570, 5252, 16, 775, 2690, 15290, 1100, 2852, 358, 468, 336, 9198, 5960, 18, 225, 23885, 3461, 25425, 13, 775, 30, 468, 15290, 27110, 404, 30, 30486, 17, 21, 4856, 1267, 63, 856, 65, 273, 460, 18, 3922, 2932, 9699, 17, 17258, 17, 21, 7923, 1335, 9633, 668, 30, 468, 15290, 27110, 576, 30, 1453, 5570, 924, 1267, 63, 856, 65, 273, 460, 18, 3922, 2932, 3158, 17, 28, 3113, 296, 2079, 6134, 3550, 273, 1053, 309, 3550, 30, 3347, 18, 8837, 2932, 8217, 2632, 67, 2378, 6714, 7855, 1267, 17282, 315, 315, 12299, 612, 17282, 3113, 261, 12715, 12, 2327, 3631, 612, 3719, 225, 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, 8400, 20562, 12, 9216, 4672, 3536, 2723, 9066, 316, 326, 1267, 1478, 358, 5252, 12123, 3347, 18, 8837, 2932, 4803, 612, 16, 1267, 4571, 2632, 67, 2378, 6714, 7923, 1544, 67, 2821, 273, 7707, 4327, 461, 2187, 296, 6620, 5359, 2187, 296, 3459, 6134, 364, 1027, 316, 3347, 18, 5754, 454, 13332, 612, 16, 1267, 273, 1027, 1267, 273, 5302, 12, 2327, 16, 1001, 12406, 2679, 972, 16, 13666, 6585, 4278, 3314, 16, 296, 957, 4278, 813, 6792, 3550, 273, 1083, 364, 498, 316, 1544, 67, 2821, 30, 460, 273, 1267, 18, 588, 12, 856, 13, 309, 460, 353, 486, 599, 471, 486, 1549, 12, 1132, 16, 5252, 4672, 775, 30, 1267, 63, 856, 65, 273, 460, 18, 2 ]
if line[-2:] == CRLF: line = line[:-2] elif line[-1:] in CRLF: line = line[:-1]
if line[-2:] == CRLF: line = line[:-2] elif line[-1:] in CRLF: line = line[:-1]
def getline(self): """Internal: return one line from the server, stripping CRLF. Raise EOFError if the connection is closed.""" line = self.file.readline() if self.debugging > 1: print('*get*', repr(line)) if not line: raise EOFError if line[-2:] == CRLF: line = line[:-2] elif line[-1:] in CRLF: line = line[:-1] return line
17de0ac39e028b8777529030dfc984cdf592a543 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/17de0ac39e028b8777529030dfc984cdf592a543/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1369, 12, 2890, 4672, 3536, 3061, 30, 327, 1245, 980, 628, 326, 1438, 16, 2569, 1382, 21791, 18, 20539, 6431, 668, 309, 326, 1459, 353, 4375, 12123, 980, 273, 365, 18, 768, 18, 896, 1369, 1435, 309, 365, 18, 4148, 1998, 405, 404, 30, 1172, 2668, 14, 588, 14, 2187, 8480, 12, 1369, 3719, 309, 486, 980, 30, 1002, 6431, 668, 309, 980, 18919, 22, 26894, 422, 21791, 30, 980, 273, 980, 10531, 17, 22, 65, 1327, 980, 18919, 21, 26894, 316, 21791, 30, 980, 273, 980, 10531, 17, 21, 65, 327, 980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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1369, 12, 2890, 4672, 3536, 3061, 30, 327, 1245, 980, 628, 326, 1438, 16, 2569, 1382, 21791, 18, 20539, 6431, 668, 309, 326, 1459, 353, 4375, 12123, 980, 273, 365, 18, 768, 18, 896, 1369, 1435, 309, 365, 18, 4148, 1998, 405, 404, 30, 1172, 2668, 14, 588, 14, 2187, 8480, 12, 1369, 3719, 309, 486, 980, 30, 1002, 6431, 668, 309, 980, 18919, 22, 26894, 422, 21791, 30, 980, 273, 980, 10531, 17, 22, 65, 1327, 980, 18919, 21, 26894, 316, 21791, 30, 980, 273, 980, 10531, 17, 21, 65, 327, 980, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if len(args) + len(defaults) + 1< len(arg_names):
if len(args) + len(defaults) + 1 < len(arg_names):
def call_handle_args(self, *args): arg_names, var_arg_name, _, defaults = inspect.getargspec(self.handle_args) if len(args) + len(defaults) + 1< len(arg_names): raise NotEnoughArguments('missing argument') if var_arg_name is None: if len(args) > len(arg_names): raise TooManyArguments('too many arguments') self.handle_args(*args)
2ea5682f0df3eba86bd30f41e79cece02b3b14bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3688/2ea5682f0df3eba86bd30f41e79cece02b3b14bd/cli_framework.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 4110, 67, 1968, 12, 2890, 16, 380, 1968, 4672, 1501, 67, 1973, 16, 569, 67, 3175, 67, 529, 16, 389, 16, 3467, 273, 5334, 18, 588, 23172, 12, 2890, 18, 4110, 67, 1968, 13, 309, 562, 12, 1968, 13, 397, 562, 12, 7606, 13, 397, 404, 411, 562, 12, 3175, 67, 1973, 4672, 1002, 2288, 664, 4966, 4628, 2668, 7337, 1237, 6134, 309, 569, 67, 3175, 67, 529, 353, 599, 30, 309, 562, 12, 1968, 13, 405, 562, 12, 3175, 67, 1973, 4672, 1002, 15869, 5594, 4628, 2668, 16431, 4906, 1775, 6134, 365, 18, 4110, 67, 1968, 30857, 1968, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 4110, 67, 1968, 12, 2890, 16, 380, 1968, 4672, 1501, 67, 1973, 16, 569, 67, 3175, 67, 529, 16, 389, 16, 3467, 273, 5334, 18, 588, 23172, 12, 2890, 18, 4110, 67, 1968, 13, 309, 562, 12, 1968, 13, 397, 562, 12, 7606, 13, 397, 404, 411, 562, 12, 3175, 67, 1973, 4672, 1002, 2288, 664, 4966, 4628, 2668, 7337, 1237, 6134, 309, 569, 67, 3175, 67, 529, 353, 599, 30, 309, 562, 12, 1968, 13, 405, 562, 12, 3175, 67, 1973, 4672, 1002, 15869, 5594, 4628, 2668, 16431, 4906, 1775, 6134, 365, 18, 4110, 67, 1968, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
thread.stack_size(0) if thread.stack_size() != 0: raise ValueError, "stack_size not reset to default"
def task2(self, ident): for i in range(NUMTRIPS): if ident == 0: delay = 0.001 else: with self.random_mutex: delay = random.random() * NUMTASKS verbose_print("task %s will run for %s" % (ident, round(delay, 1))) time.sleep(delay) verbose_print("task %s entering %s" % (ident, i)) self.bar.enter() verbose_print("task %s leaving barrier" % ident) with self.running_mutex: self.running -= 1 finished = self.running == 0 if finished: self.done_mutex.release()
def task2(ident): global running for i in range(numtrips): if ident == 0: # give it a good chance to enter the next # barrier before the others are all out # of the current one delay = 0.001 else: rmutex.acquire() delay = random.random() * numtasks rmutex.release() if verbose: print 'task', ident, 'will run for', round(delay, 1), 'sec' time.sleep(delay) if verbose: print 'task', ident, 'entering barrier', i bar.enter() if verbose: print 'task', ident, 'leaving barrier', i mutex.acquire() running -= 1 # Must release mutex before releasing done, else the main thread can # exit and set mutex to None as part of global teardown; then # mutex.release() raises AttributeError. finished = running == 0 mutex.release() if finished: done.release()
12c238c50046dc378380207f15830cf4af619e32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/12c238c50046dc378380207f15830cf4af619e32/test_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 22, 12, 6392, 4672, 2552, 3549, 364, 277, 316, 1048, 12, 2107, 313, 7146, 4672, 309, 3390, 422, 374, 30, 468, 8492, 518, 279, 7494, 17920, 358, 6103, 326, 1024, 468, 24651, 1865, 326, 10654, 854, 777, 596, 468, 434, 326, 783, 1245, 4624, 273, 374, 18, 11664, 469, 30, 6692, 322, 338, 18, 1077, 1039, 1435, 4624, 273, 2744, 18, 9188, 1435, 380, 818, 9416, 6692, 322, 338, 18, 9340, 1435, 309, 3988, 30, 1172, 296, 4146, 2187, 3390, 16, 296, 20194, 1086, 364, 2187, 3643, 12, 10790, 16, 404, 3631, 296, 3321, 11, 813, 18, 19607, 12, 10790, 13, 309, 3988, 30, 1172, 296, 4146, 2187, 3390, 16, 296, 2328, 310, 24651, 2187, 277, 4653, 18, 2328, 1435, 309, 3988, 30, 1172, 296, 4146, 2187, 3390, 16, 296, 298, 5339, 24651, 2187, 277, 9020, 18, 1077, 1039, 1435, 3549, 3947, 404, 468, 6753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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 22, 12, 6392, 4672, 2552, 3549, 364, 277, 316, 1048, 12, 2107, 313, 7146, 4672, 309, 3390, 422, 374, 30, 468, 8492, 518, 279, 7494, 17920, 358, 6103, 326, 1024, 468, 24651, 1865, 326, 10654, 854, 777, 596, 468, 434, 326, 783, 1245, 4624, 273, 374, 18, 11664, 469, 30, 6692, 322, 338, 18, 1077, 1039, 1435, 4624, 273, 2744, 18, 9188, 1435, 380, 818, 9416, 6692, 322, 338, 18, 9340, 1435, 309, 3988, 30, 1172, 296, 4146, 2187, 3390, 16, 296, 20194, 1086, 364, 2187, 3643, 12, 10790, 16, 404, 3631, 296, 3321, 11, 813, 18, 19607, 12, 10790, 13, 309, 3988, 30, 1172, 296, 4146, 2187, 3390, 16, 296, 2328, 310, 24651, 2187, 277, 4653, 2 ]
elif mode.get()=='JT6M' or mode.get()=="ISCAT": isync6m=isync
elif mode.get()=='JT6M': isync6m=isync elif mode.get()=="ISCAT": isync_iscat=isync
def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync441,isync6m,isync65,isync_save,idsec, \ first,itol,txsnrdb,tx6alt utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b %d\n%H:%M:%S',utc) Audio.gcom2.utcdate=t[:12] Audio.gcom2.iyr=utc[0] Audio.gcom2.imo=utc[1] Audio.gcom2.ida=utc[2] Audio.gcom2.ihr=utc[3] Audio.gcom2.imi=utc[4] Audio.gcom2.isc=utc[5] ldate.configure(text=t) root_geom=root.geometry() utchours=utc[3]+utc[4]/60.0 + utc[5]/3600.0 naz,nel,ndmiles,ndkm,nhotaz,nhotabetter=Audio.azdist0( \ options.MyGrid.get().upper(),HisGrid.get().upper(),utchours) azdist() g.nfreq=nfreq.get() if Audio.gcom2.ndecoding==0: g.AzSun,g.ElSun,g.AzMoon,g.ElMoon,g.AzMoonB,g.ElMoonB,g.ntsky, \ g.ndop,g.ndop00,g.dbMoon,g.RAMoon,g.DecMoon,g.HA8,g.Dgrd, \ g.sd,g.poloffset,g.MaxNR,g.dfdt,g.dfdt0,g.RaAux,g.DecAux, \ g.AzAux,g.ElAux = Audio.astro0(utc[0],utc[1],utc[2], \ utchours,nfreq.get(),options.MyGrid.get().upper(), \ options.auxra.get()+(' '*9)[:9], \ options.auxdec.get()+(' '*9)[:9]) if len(HisGrid.get().strip())<4: g.ndop=g.ndop00 g.dfdt=g.dfdt0 if (ntx.get()==1 and noshjt65.get()) or noshjt65all.get(): Audio.gcom2.ntx2=1 else: Audio.gcom2.ntx2=0 if mode.get()[:4]=='JT65' or mode.get()[:3]=='JT4' \ or mode.get()[:2]=='CW': graph2.delete(ALL) graph2.create_text(80,13,anchor=CENTER,text="Moon",font=g2font) graph2.create_text(13,37,anchor=W, text="Az: %6.2f" % g.AzMoon,font=g2font) graph2.create_text(13,61,anchor=W, text="El: %6.2f" % g.ElMoon,font=g2font) graph2.create_text(13,85,anchor=W, text="Dop:%6d" % g.ndop,font=g2font) graph2.create_text(13,109,anchor=W,text="Dgrd:%5.1f" % g.Dgrd,font=g2font) if (mode.get()[:4]=='JT65' or mode.get()[:3]=='JT4') and g.freeze_decode: itol=2 ltol.configure(text='Tol '+str(50)) Audio.gcom2.dftolerance=50 nfreeze.set(1) Audio.gcom2.nfreeze=1 if Audio.gcom2.monitoring: Audio.gcom2.ndecoding=1 Audio.gcom2.nagain=0 else: Audio.gcom2.ndecoding=4 Audio.gcom2.nagain=1 g.freeze_decode=0 n=-99 g.rms=g.rms+0.001 if g.rms > 0: n=int(20.0*log10(g.rms/770.0+0.01)) else: print "RMS noise:", g.rms, " out of range." t="Rx noise:%3d dB" % (n,) if n>=-10 and n<=10: msg4.configure(text=t,bg='gray85') else: msg4.configure(text=t,bg='red') t=g.ftnstr(Audio.gcom2.decodedfile)
6ca49ec90be5fe2fb7f7f92dfcc9376c8203defe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2394/6ca49ec90be5fe2fb7f7f92dfcc9376c8203defe/wsjt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 16, 521, 709, 16, 84, 381, 16, 22738, 20, 16, 291, 1209, 16, 291, 1209, 6334, 21, 16, 291, 1209, 26, 81, 16, 291, 1209, 9222, 16, 291, 1209, 67, 5688, 16, 350, 3321, 16, 521, 1122, 16, 305, 355, 16, 978, 8134, 86, 1966, 16, 978, 26, 2390, 225, 9439, 33, 957, 18, 75, 10838, 12, 957, 18, 957, 1435, 15, 20, 18, 21, 14, 350, 3321, 13, 277, 3321, 33, 17892, 63, 25, 65, 225, 309, 277, 3321, 480, 277, 3321, 20, 30, 21821, 468, 3244, 3647, 1534, 2205, 277, 3321, 20, 33, 291, 557, 268, 33, 957, 18, 701, 9982, 29909, 61, 738, 70, 738, 72, 64, 82, 9, 44, 5319, 49, 5319, 55, 2187, 17892, 13, 15045, 18, 75, 832, 22, 18, 17892, 712, 33, 88, 10531, 2138, 65, 15045, 18, 75, 832, 22, 18, 77, 30468, 33, 17892, 63, 20, 65, 15045, 18, 75, 832, 22, 18, 381, 83, 33, 17892, 63, 21, 65, 15045, 18, 75, 832, 22, 18, 350, 69, 33, 17892, 63, 22, 65, 15045, 18, 75, 832, 22, 18, 77, 7256, 33, 17892, 63, 23, 65, 15045, 18, 75, 832, 22, 18, 381, 77, 33, 17892, 63, 24, 65, 15045, 18, 75, 832, 22, 18, 291, 71, 33, 17892, 63, 25, 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, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 16, 521, 709, 16, 84, 381, 16, 22738, 20, 16, 291, 1209, 16, 291, 1209, 6334, 21, 16, 291, 1209, 26, 81, 16, 291, 1209, 9222, 16, 291, 1209, 67, 5688, 16, 350, 3321, 16, 521, 1122, 16, 305, 355, 16, 978, 8134, 86, 1966, 16, 978, 26, 2390, 225, 9439, 33, 957, 18, 75, 10838, 12, 957, 18, 957, 1435, 15, 20, 18, 21, 14, 350, 3321, 13, 277, 3321, 33, 17892, 63, 25, 65, 225, 309, 277, 3321, 480, 277, 3321, 2 ]
class ContourPlotFactory(GraphicPrimitiveFactory_contour_plot):
class ContourPlotFactory(GraphicPrimitiveFactory):
def _from_xdata_ydata(self, point, r, options): g = Graphics() g._circle(float(point[0]), float(point[1]), float(r), options) return g
62fa6a278646fd5a09f2b2af5cb89657bbef34ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62fa6a278646fd5a09f2b2af5cb89657bbef34ee/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 1634, 16, 436, 16, 702, 4672, 314, 273, 16830, 1435, 314, 6315, 18970, 12, 5659, 12, 1153, 63, 20, 65, 3631, 1431, 12, 1153, 63, 21, 65, 3631, 1431, 12, 86, 3631, 702, 13, 327, 314, 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, 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659, 12, 1153, 63, 20, 65, 3631, 1431, 12, 1153, 63, 21, 65, 3631, 1431, 12, 86, 3631, 702, 13, 327, 314, 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 ]
img = PilImage.open(img_path)
img = PilImage.open(img_path) if img.mode == 'RGBA': cmds.append(base_cmd+['-background', 'white', '-alpha', 'Background', '-alpha', 'off', img_path, img_path])
def _fixBrokenImages(self, img_node, img_path): img = PilImage.open(img_path) cmds = [] base_cmd = [ 'convert', '-limit',' memory', '32000000', '-limit',' map', '64000000', '-limit', 'disk', '64000000', '-limit', 'area', '64000000', ] if img.info.get('interlace', 0) == 1: cmds.append(base_cmd + [img_path, '-interlace', 'none', img_path]) if img.mode == 'P': # ticket 324 cmds.append(base_cmd + [img_path, img_path]) # we esentially do nothing...but this seems to fix the problems if img.mode == 'LA': # ticket 429 cleaned = PilImage.new('LA', img.size) new_data = [] for pixel in img.getdata(): if pixel[1] == 0: new_data.append((255,0)) else: new_data.append(pixel) cleaned.putdata(new_data) cleaned.save(img_path) img = PilImage.open(img_path)
ff0991ac81a783f0187ed59e61ef119020aeeca2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12390/ff0991ac81a783f0187ed59e61ef119020aeeca2/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 29559, 8946, 12, 2890, 16, 3774, 67, 2159, 16, 3774, 67, 803, 4672, 3774, 273, 453, 330, 2040, 18, 3190, 12, 6081, 67, 803, 13, 309, 3774, 18, 3188, 422, 296, 23263, 4278, 565, 13446, 18, 6923, 12, 1969, 67, 4172, 15, 3292, 17, 9342, 2187, 296, 14739, 2187, 2400, 5429, 2187, 296, 8199, 2187, 2400, 5429, 2187, 296, 3674, 2187, 3774, 67, 803, 16, 3774, 67, 803, 5717, 13446, 273, 5378, 1026, 67, 4172, 273, 306, 296, 6283, 2187, 2400, 3595, 17023, 3778, 2187, 296, 1578, 9449, 2187, 2400, 3595, 17023, 852, 2187, 296, 1105, 9449, 2187, 2400, 3595, 2187, 296, 10863, 2187, 296, 1105, 9449, 2187, 2400, 3595, 2187, 296, 5036, 2187, 296, 1105, 9449, 2187, 308, 309, 3774, 18, 1376, 18, 588, 2668, 2761, 80, 623, 2187, 374, 13, 422, 404, 30, 13446, 18, 6923, 12, 1969, 67, 4172, 397, 306, 6081, 67, 803, 16, 2400, 2761, 80, 623, 2187, 296, 6102, 2187, 3774, 67, 803, 5717, 309, 3774, 18, 3188, 422, 296, 52, 4278, 468, 9322, 890, 3247, 13446, 18, 6923, 12, 1969, 67, 4172, 397, 306, 6081, 67, 803, 16, 3774, 67, 803, 5717, 468, 732, 5001, 11220, 741, 5083, 2777, 12885, 333, 12001, 358, 2917, 326, 9688, 309, 3774, 18, 3188, 422, 296, 2534, 4278, 468, 9322, 27542, 9426, 273, 453, 330, 2040, 18, 2704, 2668, 2534, 2187, 3774, 18, 1467, 13, 394, 67, 892, 273, 5378, 364, 4957, 316, 3774, 18, 588, 892, 13332, 309, 4957, 63, 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, 904, 29559, 8946, 12, 2890, 16, 3774, 67, 2159, 16, 3774, 67, 803, 4672, 3774, 273, 453, 330, 2040, 18, 3190, 12, 6081, 67, 803, 13, 309, 3774, 18, 3188, 422, 296, 23263, 4278, 565, 13446, 18, 6923, 12, 1969, 67, 4172, 15, 3292, 17, 9342, 2187, 296, 14739, 2187, 2400, 5429, 2187, 296, 8199, 2187, 2400, 5429, 2187, 296, 3674, 2187, 3774, 67, 803, 16, 3774, 67, 803, 5717, 13446, 273, 5378, 1026, 67, 4172, 273, 306, 296, 6283, 2187, 2400, 3595, 17023, 3778, 2187, 296, 1578, 9449, 2187, 2400, 3595, 17023, 852, 2187, 296, 1105, 9449, 2187, 2400, 3595, 2187, 296, 10863, 2187, 296, 1105, 9449, 2187, 2400, 3595, 2187, 296, 5036, 2187, 296, 1105, 2 ]
def reload_color(self, entry, (colorbut,show_opacity_scale)): self.load_color(entry['group'], entry['key'], colorbut, show_opacity_scale)
def reload_color(self, group, key, value, (colorbut,show_opacity_scale)): self.load_color(group, key, colorbut, show_opacity_scale)
def reload_color(self, entry, (colorbut,show_opacity_scale)): self.load_color(entry['group'], entry['key'], colorbut, show_opacity_scale)
6e5ef9d2ff04626633394808ed3d5531bb4809af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/6e5ef9d2ff04626633394808ed3d5531bb4809af/awnClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 67, 3266, 12, 2890, 16, 1241, 16, 261, 3266, 12885, 16, 4500, 67, 19515, 67, 5864, 3719, 30, 365, 18, 945, 67, 3266, 12, 4099, 3292, 1655, 17337, 1241, 3292, 856, 17337, 2036, 12885, 16, 2405, 67, 19515, 67, 5864, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 67, 3266, 12, 2890, 16, 1241, 16, 261, 3266, 12885, 16, 4500, 67, 19515, 67, 5864, 3719, 30, 365, 18, 945, 67, 3266, 12, 4099, 3292, 1655, 17337, 1241, 3292, 856, 17337, 2036, 12885, 16, 2405, 67, 19515, 67, 5864, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 'tg_format' in request.params and request.params['tg_format'] == 'json': return dict(message='No package named %s' % packageName) else: return dict(tg_template='pkgdb.templates.errors', status=False,
error = dict(status=False,
def name(self, packageName, collectionName=None, collectionVersion=None): # Return the information about a package. package = model.Package.get_by( model.Package.c.statuscode!=self.removedStatus, name=packageName) if not package: if 'tg_format' in request.params and request.params['tg_format'] == 'json': return dict(message='No package named %s' % packageName) else: return dict(tg_template='pkgdb.templates.errors', status=False, title=self.appTitle + ' -- Invalid Package Name', message= 'The packagename you were linked to (%s)' \ ' does not appear in the Package Database.' \ ' If you received this error from a link on the' \ ' fedoraproject.org website, please report it.' % packageName)
703f5f0244581bd2f33be4a34e887a824eee7377 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/703f5f0244581bd2f33be4a34e887a824eee7377/packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 12, 2890, 16, 9929, 16, 17137, 33, 7036, 16, 1849, 1444, 33, 7036, 4672, 468, 2000, 326, 1779, 2973, 279, 2181, 18, 2181, 273, 938, 18, 2261, 18, 588, 67, 1637, 12, 938, 18, 2261, 18, 71, 18, 2327, 710, 5, 33, 2890, 18, 14923, 1482, 16, 508, 33, 5610, 461, 13, 309, 486, 2181, 30, 555, 273, 2065, 12, 2327, 33, 8381, 16, 2077, 33, 2890, 18, 2910, 4247, 397, 296, 1493, 1962, 7508, 1770, 2187, 883, 33, 296, 1986, 2298, 346, 1069, 1846, 4591, 8459, 358, 6142, 87, 2506, 521, 296, 1552, 486, 9788, 316, 326, 7508, 5130, 1093, 521, 296, 971, 1846, 5079, 333, 555, 628, 279, 1692, 603, 326, 11, 521, 296, 22572, 280, 438, 28290, 18, 3341, 12504, 16, 9582, 2605, 518, 1093, 738, 9929, 13, 2, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 12, 2890, 16, 9929, 16, 17137, 33, 7036, 16, 1849, 1444, 33, 7036, 4672, 468, 2000, 326, 1779, 2973, 279, 2181, 18, 2181, 273, 938, 18, 2261, 18, 588, 67, 1637, 12, 938, 18, 2261, 18, 71, 18, 2327, 710, 5, 33, 2890, 18, 14923, 1482, 16, 508, 33, 5610, 461, 13, 309, 486, 2181, 30, 555, 273, 2065, 12, 2327, 33, 8381, 16, 2077, 33, 2890, 18, 2910, 4247, 397, 296, 1493, 1962, 7508, 1770, 2187, 883, 33, 296, 1986, 2298, 346, 1069, 1846, 4591, 8459, 358, 6142, 87, 2506, 521, 296, 1552, 486, 9788, 316, 326, 7508, 5130, 1093, 521, 296, 971, 1846, 5079, 333, 555, 628, 279, 1692, 603, 326, 11, 521, 296, 22572, 2 ]
if not self.__hash == myHash:
stats = os.fstat(self.__handler.fileno()) if self.__hash != myHash or self.__ino != stats.st_ino:
def open(self): self.__handler = open(self.__filename) firstLine = self.__handler.readline() # Computes the MD5 of the first line. myHash = md5.new(firstLine).digest() # Compare hash. if not self.__hash == myHash: logSys.info("Log rotation detected for %s" % self.__filename) self.__hash = myHash self.__pos = 0 # Sets the file pointer to the last position. self.__handler.seek(self.__pos)
678cf2f35e1f484ab9f1fa249f977df8043e3bce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12786/678cf2f35e1f484ab9f1fa249f977df8043e3bce/filter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 4672, 365, 16186, 4176, 273, 1696, 12, 2890, 16186, 3459, 13, 24415, 273, 365, 16186, 4176, 18, 896, 1369, 1435, 468, 14169, 281, 326, 10852, 25, 434, 326, 1122, 980, 18, 3399, 2310, 273, 3481, 25, 18, 2704, 12, 3645, 1670, 2934, 10171, 1435, 468, 11051, 1651, 18, 5296, 273, 1140, 18, 74, 5642, 12, 2890, 16186, 4176, 18, 7540, 5764, 10756, 225, 309, 365, 16186, 2816, 480, 3399, 2310, 578, 365, 16186, 15020, 480, 3177, 18, 334, 67, 15020, 30, 613, 12712, 18, 1376, 2932, 1343, 6752, 8316, 364, 738, 87, 6, 738, 365, 16186, 3459, 13, 365, 16186, 2816, 273, 3399, 2310, 365, 16186, 917, 273, 374, 468, 11511, 326, 585, 4407, 358, 326, 1142, 1754, 18, 365, 16186, 4176, 18, 16508, 12, 2890, 16186, 917, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 4672, 365, 16186, 4176, 273, 1696, 12, 2890, 16186, 3459, 13, 24415, 273, 365, 16186, 4176, 18, 896, 1369, 1435, 468, 14169, 281, 326, 10852, 25, 434, 326, 1122, 980, 18, 3399, 2310, 273, 3481, 25, 18, 2704, 12, 3645, 1670, 2934, 10171, 1435, 468, 11051, 1651, 18, 5296, 273, 1140, 18, 74, 5642, 12, 2890, 16186, 4176, 18, 7540, 5764, 10756, 225, 309, 365, 16186, 2816, 480, 3399, 2310, 578, 365, 16186, 15020, 480, 3177, 18, 334, 67, 15020, 30, 613, 12712, 18, 1376, 2932, 1343, 6752, 8316, 364, 738, 87, 6, 738, 365, 16186, 3459, 13, 365, 16186, 2816, 273, 3399, 2310, 365, 16186, 917, 273, 374, 468, 11511, 326, 585, 4407, 358, 2 ]
gromacsFullBaseFileName,
trajectoryOutputFile,
def run_using_old_movie_obj_to_hold_sim_params(self, movie): #bruce 051115 removed unused 'options' arg self._movie = movie # general kluge for old-code compat (lots of our methods still use this and modify it) # note, this movie object (really should be a simsetup object?) does not yet know a proper alist (or any alist, I hope) [bruce 050404] self.errcode = self.set_options_errQ( ) # set movie alist, output filenames, sim executable pathname (verify it exists) #obs comment [about the options arg i removed?? or smth else?] # options include everything that affects the run except the set of atoms and the part if self.errcode: # used to be a local var 'r' # bruce 051115 comment: more than one reason this can happen, one is sim executable missing return self.sim_input_file = self.sim_input_filename() # might get name from options or make up a temporary filename if (self.mflag == 1 and self.useGromacs): if (not self.verifyGromacsPlugin()): self.errcode = _FAILURE_ALREADY_DOCUMENTED return self.set_waitcursor(True) progressBar = self.win.statusBar().progressBar
db577c710d68147b29e19e07c975b40966936f56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/db577c710d68147b29e19e07c975b40966936f56/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 468, 2848, 3965, 15331, 2499, 3600, 3723, 10197, 296, 2116, 11, 1501, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, 1592, 17, 710, 4796, 261, 80, 6968, 434, 3134, 2590, 4859, 999, 333, 471, 5612, 518, 13, 468, 4721, 16, 333, 21360, 733, 261, 266, 1230, 1410, 506, 279, 3142, 8401, 733, 8535, 1552, 486, 4671, 5055, 279, 5338, 524, 376, 261, 280, 1281, 524, 376, 16, 467, 27370, 13, 306, 2848, 3965, 15331, 3028, 3028, 65, 365, 18, 25093, 273, 365, 18, 542, 67, 2116, 67, 370, 53, 12, 262, 468, 444, 21360, 524, 376, 16, 876, 9066, 16, 3142, 9070, 9806, 261, 8705, 518, 1704, 13, 468, 10992, 2879, 306, 21071, 326, 702, 1501, 277, 3723, 14646, 578, 3029, 451, 469, 35, 65, 468, 702, 2341, 7756, 716, 30058, 326, 1086, 1335, 326, 444, 434, 9006, 471, 326, 1087, 309, 365, 18, 25093, 30, 468, 1399, 358, 506, 279, 1191, 569, 296, 86, 11, 468, 5186, 3965, 15331, 2499, 3600, 2879, 30, 1898, 2353, 1245, 3971, 333, 848, 5865, 16, 1245, 353, 3142, 9070, 3315, 327, 365, 18, 9812, 67, 2630, 67, 768, 273, 365, 18, 9812, 67, 2630, 67, 3459, 1435, 468, 4825, 336, 508, 628, 702, 578, 1221, 731, 279, 6269, 1544, 309, 261, 2890, 18, 81, 6420, 422, 404, 471, 365, 18, 1202, 43, 520, 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, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 468, 2848, 3965, 15331, 2499, 3600, 3723, 10197, 296, 2116, 11, 1501, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, 1592, 17, 710, 4796, 261, 80, 6968, 434, 3134, 2590, 4859, 999, 333, 471, 5612, 518, 13, 468, 4721, 16, 333, 21360, 733, 261, 266, 1230, 1410, 506, 279, 3142, 8401, 733, 8535, 1552, 486, 4671, 5055, 279, 5338, 524, 376, 261, 280, 1281, 524, 376, 16, 467, 27370, 13, 306, 2848, 3965, 15331, 3028, 3028, 65, 365, 18, 25093, 273, 365, 18, 542, 67, 2116, 67, 370, 53, 12, 262, 468, 2 ]
return unicode( s )
self.text = self.prefix + self.text + self.suffix return unicode( trim_spaces( self.text ) )
def getText(self): s = '' for n in self.node.childNodes: if n.nodeType == n.TEXT_NODE: s += n.data elif n.nodeName == 'fo:inline': i = Inline( n ) s += i.getText() elif n.nodeName == 'fo:page-number': s += "#1#"
2844f923f5ea74333d63aa8a1fe1452631bc2736 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2494/2844f923f5ea74333d63aa8a1fe1452631bc2736/inline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6701, 12, 2890, 4672, 272, 273, 875, 364, 290, 316, 365, 18, 2159, 18, 3624, 3205, 30, 309, 290, 18, 2159, 559, 422, 290, 18, 5151, 67, 8744, 30, 272, 1011, 290, 18, 892, 1327, 290, 18, 2159, 461, 422, 296, 617, 30, 10047, 4278, 277, 273, 16355, 12, 290, 262, 272, 1011, 277, 18, 588, 1528, 1435, 1327, 290, 18, 2159, 461, 422, 296, 617, 30, 2433, 17, 2696, 4278, 272, 1011, 6619, 21, 17133, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6701, 12, 2890, 4672, 272, 273, 875, 364, 290, 316, 365, 18, 2159, 18, 3624, 3205, 30, 309, 290, 18, 2159, 559, 422, 290, 18, 5151, 67, 8744, 30, 272, 1011, 290, 18, 892, 1327, 290, 18, 2159, 461, 422, 296, 617, 30, 10047, 4278, 277, 273, 16355, 12, 290, 262, 272, 1011, 277, 18, 588, 1528, 1435, 1327, 290, 18, 2159, 461, 422, 296, 617, 30, 2433, 17, 2696, 4278, 272, 1011, 6619, 21, 17133, 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 ]
if fullpath.endswith(".py") or fullpath.endswith(".pyw"): return True elif "python" in line: return True return False def can_be_compiled(fullpath): infile = _open(fullpath) if infile is None: return False code = infile.read() infile.close() try: compile(code, fullpath, "exec") except Exception, err: print_debug("%s: cannot compile: %s" % (fullpath, err)) return False
def looks_like_python(fullpath): infile = _open(fullpath) if infile is None: return False line = infile.readline() infile.close() if binary_re.search(line): # file appears to be binary print_debug("%s: appears to be binary" % fullpath) return False if fullpath.endswith(".py") or fullpath.endswith(".pyw"): return True elif "python" in line: # disguised Python script (e.g. CGI) return True return False
568973181aa523bbcf7f827b3a2eb2affd96ea67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/568973181aa523bbcf7f827b3a2eb2affd96ea67/findnocoding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10192, 67, 5625, 67, 8103, 12, 2854, 803, 4672, 14568, 273, 389, 3190, 12, 2854, 803, 13, 309, 14568, 353, 599, 30, 327, 1083, 225, 980, 273, 14568, 18, 896, 1369, 1435, 14568, 18, 4412, 1435, 225, 309, 3112, 67, 266, 18, 3072, 12, 1369, 4672, 468, 585, 14606, 358, 506, 3112, 1172, 67, 4148, 27188, 87, 30, 14606, 358, 506, 3112, 6, 738, 15170, 13, 327, 1083, 225, 309, 15170, 18, 5839, 1918, 2932, 18, 2074, 7923, 578, 15170, 18, 5839, 1918, 2932, 18, 2074, 91, 6, 4672, 327, 1053, 1327, 315, 8103, 6, 316, 980, 30, 468, 1015, 6891, 5918, 6600, 2728, 261, 73, 18, 75, 18, 385, 13797, 13, 327, 1053, 225, 327, 1083, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10192, 67, 5625, 67, 8103, 12, 2854, 803, 4672, 14568, 273, 389, 3190, 12, 2854, 803, 13, 309, 14568, 353, 599, 30, 327, 1083, 225, 980, 273, 14568, 18, 896, 1369, 1435, 14568, 18, 4412, 1435, 225, 309, 3112, 67, 266, 18, 3072, 12, 1369, 4672, 468, 585, 14606, 358, 506, 3112, 1172, 67, 4148, 27188, 87, 30, 14606, 358, 506, 3112, 6, 738, 15170, 13, 327, 1083, 225, 309, 15170, 18, 5839, 1918, 2932, 18, 2074, 7923, 578, 15170, 18, 5839, 1918, 2932, 18, 2074, 91, 6, 4672, 327, 1053, 1327, 315, 8103, 6, 316, 980, 30, 468, 1015, 6891, 5918, 6600, 2728, 261, 73, 18, 75, 18, 385, 13797, 13, 327, 1053, 225, 327, 1083, 225, 2 ]
[ iters[j].next() for j in range(n) ]
for it in iters: it.next()
def enum_affine_rational_field(X,B): """ Enumerates affine rational points on scheme X (defined over `\QQ`) up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound OUTPUT: - a list containing the affine points of X of height up to B, sorted. EXAMPLES:: sage: A.<x,y,z> = AffineSpace(3,QQ) sage: from sage.schemes.generic.rational_point import enum_affine_rational_field sage: enum_affine_rational_field(A(QQ),1) [(-1, -1, -1), (-1, -1, 0), (-1, -1, 1), (-1, 0, -1), (-1, 0, 0), (-1, 0, 1), (-1, 1, -1), (-1, 1, 0), (-1, 1, 1), (0, -1, -1), (0, -1, 0), (0, -1, 1), (0, 0, -1), (0, 0, 0), (0, 0, 1), (0, 1, -1), (0, 1, 0), (0, 1, 1), (1, -1, -1), (1, -1, 0), (1, -1, 1), (1, 0, -1), (1, 0, 0), (1, 0, 1), (1, 1, -1), (1, 1, 0), (1, 1, 1)] :: sage: A.<w,x,y,z> = AffineSpace(4,QQ) sage: S = A.subscheme([x^2-y*z+3,w^3+z+y^2]) sage: enum_affine_rational_field(S(QQ),2) [] sage: enum_affine_rational_field(S(QQ),3) [(-2, 0, -3, -1)] :: sage: A.<x,y> = AffineSpace(2,QQ) sage: C = Curve(x^2+y-x) sage: enum_affine_rational_field(C,10) [(-2, -6), (-1, -2), (0, 0), (1, 0), (2, -2), (3, -6)] AUTHOR: David R. Kohel <[email protected]> (small adjustments by Charlie Turner 06-2010) """ if is_Scheme(X): X = X(X.base_ring()) n = X.codomain().ambient_space().ngens() if X.value_ring() is ZZ: Q = [ 1 ] else: # rational field Q = [ k+1 for k in range(B) ] R = [ 0 ] + [ s*k for k in range(1,B+1) for s in [1,-1] ] pts = [] P = [ 0 for _ in range(n) ] m = ZZ(0) try: pts.append(X(P)) except: pass iters = [ iter(R) for _ in range(n) ] [ iters[j].next() for j in range(n) ] i = 0 while i < n: try: a = ZZ(iters[i].next()) m = m.gcd(a) P[i] = a for b in Q: if m.gcd(b) == 1: try: pts.append(X([ num/b for num in P ])) except: pass i = 0 m = ZZ(0) except StopIteration: iters[i] = iter(R) # reset P[i] = iters[i].next() # reset P[i] to 0 and increment i += 1 pts.sort() return pts
7437114fd97818d63a9f0b766fecf0fb34f4f16c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7437114fd97818d63a9f0b766fecf0fb34f4f16c/rational_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 12, 60, 16, 38, 4672, 3536, 6057, 264, 815, 28381, 436, 8371, 3143, 603, 4355, 1139, 261, 2178, 1879, 1375, 64, 53, 53, 24065, 731, 358, 2489, 605, 18, 225, 12943, 30, 225, 300, 12176, 60, 10335, 300, 225, 279, 4355, 578, 444, 434, 8770, 436, 8371, 3143, 434, 279, 4355, 300, 12176, 38, 10335, 300, 225, 279, 6895, 3571, 2489, 225, 11550, 30, 225, 300, 279, 666, 4191, 326, 28381, 3143, 434, 1139, 434, 2072, 731, 358, 605, 16, 3115, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 432, 22782, 92, 16, 93, 16, 94, 34, 273, 23906, 558, 3819, 12, 23, 16, 53, 53, 13, 272, 410, 30, 628, 272, 410, 18, 87, 13268, 18, 13540, 18, 7034, 287, 67, 1153, 1930, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 272, 410, 30, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 12, 37, 12, 53, 53, 3631, 21, 13, 306, 19236, 21, 16, 300, 21, 16, 300, 21, 3631, 24927, 21, 16, 300, 21, 16, 374, 3631, 24927, 21, 16, 300, 21, 16, 404, 3631, 24927, 21, 16, 374, 16, 300, 21, 3631, 24927, 21, 16, 374, 16, 374, 3631, 24927, 21, 16, 374, 16, 404, 3631, 24927, 21, 16, 404, 16, 300, 21, 3631, 24927, 21, 16, 404, 16, 374, 3631, 24927, 21, 16, 404, 16, 404, 3631, 261, 20, 16, 300, 21, 16, 300, 21, 3631, 261, 20, 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, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 12, 60, 16, 38, 4672, 3536, 6057, 264, 815, 28381, 436, 8371, 3143, 603, 4355, 1139, 261, 2178, 1879, 1375, 64, 53, 53, 24065, 731, 358, 2489, 605, 18, 225, 12943, 30, 225, 300, 12176, 60, 10335, 300, 225, 279, 4355, 578, 444, 434, 8770, 436, 8371, 3143, 434, 279, 4355, 300, 12176, 38, 10335, 300, 225, 279, 6895, 3571, 2489, 225, 11550, 30, 225, 300, 279, 666, 4191, 326, 28381, 3143, 434, 1139, 434, 2072, 731, 358, 605, 16, 3115, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 432, 22782, 92, 16, 93, 16, 94, 34, 273, 23906, 558, 3819, 12, 23, 16, 53, 53, 13, 2 ]
self.__import_programs(p.stop, stop + 60)
self.__import_programs(p.stop, stop + 60 + 2 * 3600)
def __getitem__(self, key): """ Get a program or a list of programs. Possible usage is channel[time] to get the programm running at 'time' channel[start:stop] to get the programms between start and stop channel[start:] to get all programms beginning at start """ if isinstance(key, slice): start = key.start stop = key.stop else: start = key stop = 0
f29806184942ec04f800b8bce4da1a3a7ddafdcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f29806184942ec04f800b8bce4da1a3a7ddafdcc/channel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 3536, 968, 279, 5402, 578, 279, 666, 434, 25038, 18, 25433, 4084, 353, 1904, 63, 957, 65, 358, 336, 326, 5402, 81, 3549, 622, 296, 957, 11, 1904, 63, 1937, 30, 5681, 65, 358, 336, 326, 5402, 959, 3086, 787, 471, 2132, 1904, 63, 1937, 26894, 358, 336, 777, 5402, 959, 8435, 622, 787, 3536, 309, 1549, 12, 856, 16, 2788, 4672, 787, 273, 498, 18, 1937, 2132, 225, 273, 498, 18, 5681, 469, 30, 787, 273, 498, 2132, 225, 273, 374, 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,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2890, 16, 498, 4672, 3536, 968, 279, 5402, 578, 279, 666, 434, 25038, 18, 25433, 4084, 353, 1904, 63, 957, 65, 358, 336, 326, 5402, 81, 3549, 622, 296, 957, 11, 1904, 63, 1937, 30, 5681, 65, 358, 336, 326, 5402, 959, 3086, 787, 471, 2132, 1904, 63, 1937, 26894, 358, 336, 777, 5402, 959, 8435, 622, 787, 3536, 309, 1549, 12, 856, 16, 2788, 4672, 787, 273, 498, 18, 1937, 2132, 225, 273, 498, 18, 5681, 469, 30, 787, 273, 498, 2132, 225, 273, 374, 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 ]
"""Set the POSTGRES installation directory. If set, the pq library and headers will be expected in POSTGRES_DIR/lib and POSTGRES_DIR/include. Otherwise the default is to use the system location.
"""Set the POSTGRES installation directory. If set, the pq library and headers will be expected in POSTGRES_DIR/lib and POSTGRES_DIR/include. Otherwise the default is to use the system location.
def generate(env): global options if not options: options = env.GlobalOptions() options.Add('POSTGRES_DIR',
81fa9f8db3fa5d4f7ed1a6dc5ab92a6b1ba7ca21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1466/81fa9f8db3fa5d4f7ed1a6dc5ab92a6b1ba7ca21/postgres_pq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 3074, 4672, 2552, 702, 309, 486, 702, 30, 702, 273, 1550, 18, 5160, 1320, 1435, 702, 18, 986, 2668, 3798, 43, 7031, 67, 4537, 2187, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 3074, 4672, 2552, 702, 309, 486, 702, 30, 702, 273, 1550, 18, 5160, 1320, 1435, 702, 18, 986, 2668, 3798, 43, 7031, 67, 4537, 2187, 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 ]
class AudioScrobblerServiceFixture(Fixture):
class AudioScrobblerServiceFixture(AspyFixture):
def load_music(self): music = Music("E:\\Music\\Bloc Party - Silent Alarm\\01 - Like Eating Glass.mp3") music.length = 261 music.played_at = int(time.time()) - 40 return music
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 14894, 12, 2890, 4672, 26225, 273, 490, 14894, 2932, 41, 31027, 49, 14894, 1695, 38, 1829, 6393, 93, 300, 348, 8125, 2262, 4610, 1695, 1611, 300, 23078, 512, 1776, 611, 459, 18, 1291, 23, 7923, 26225, 18, 2469, 273, 576, 9498, 26225,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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, 1262, 67, 81, 14894, 12, 2890, 4672, 26225, 273, 490, 14894, 2932, 41, 31027, 49, 14894, 1695, 38, 1829, 6393, 93, 300, 348, 8125, 2262, 4610, 1695, 1611, 300, 23078, 512, 1776, 611, 459, 18, 1291, 23, 7923, 26225, 18, 2469, 273, 576, 9498, 26225, 18, 1601, 329, 67, 270, 273, 509, 12, 957, 18, 957, 10756, 300, 8063, 327, 26225, 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 ]
print "converting to rectangle, option 2:" return self.Rectangle(self.dc,points[0][0],points[0][1],points[2][0],points[2][1]) return self._appendOptimize16(points,EMR.POLYGON16,EMR.POLYGON)
if self.verbose: print "converting to rectangle, option 2:" return self.Rectangle(points[0][0],points[0][1],points[2][0],points[2][1]) return self._appendOptimize16(points,_EMR._POLYGON16,_EMR._POLYGON)
def Polygon(self,points): """
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12681, 12, 2890, 16, 4139, 4672, 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, -100, -100, -100, -100, -100, -100, -100 ]
self.assertRaises(OverflowError, xrange, 1e100, 1e101, 1e101)
self.assertRaises(TypeError, xrange, 0.0, 2, 1) self.assertRaises(TypeError, xrange, 1, 2.0, 1) self.assertRaises(TypeError, xrange, 1, 2, 1.0) self.assertRaises(TypeError, xrange, 1e100, 1e101, 1e101)
def test_xrange(self): self.assertEqual(list(xrange(3)), [0, 1, 2]) self.assertEqual(list(xrange(1, 5)), [1, 2, 3, 4]) self.assertEqual(list(xrange(0)), []) self.assertEqual(list(xrange(-3)), []) self.assertEqual(list(xrange(1, 10, 3)), [1, 4, 7]) self.assertEqual(list(xrange(5, -5, -3)), [5, 2, -1, -4])
d6a3915e3f51ca5ff906dd049e3959d8cb692c0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6a3915e3f51ca5ff906dd049e3959d8cb692c0a/test_xrange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 92, 3676, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 23, 13, 3631, 306, 20, 16, 404, 16, 576, 5717, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 21, 16, 1381, 13, 3631, 306, 21, 16, 576, 16, 890, 16, 1059, 5717, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 20, 13, 3631, 5378, 13, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 19236, 23, 13, 3631, 5378, 13, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 21, 16, 1728, 16, 890, 13, 3631, 306, 21, 16, 1059, 16, 2371, 5717, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 25, 16, 300, 25, 16, 300, 23, 13, 3631, 306, 25, 16, 576, 16, 300, 21, 16, 300, 24, 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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, 12, 1098, 12, 92, 3676, 12, 23, 13, 3631, 306, 20, 16, 404, 16, 576, 5717, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 21, 16, 1381, 13, 3631, 306, 21, 16, 576, 16, 890, 16, 1059, 5717, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 20, 13, 3631, 5378, 13, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 19236, 23, 13, 3631, 5378, 13, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 21, 16, 1728, 16, 890, 13, 3631, 306, 21, 16, 1059, 16, 2371, 5717, 365, 18, 11231, 5812, 12, 1098, 12, 92, 3676, 12, 25, 16, 300, 2 ]
result += self.left_term_weight * math.exp(arg1) + \ self.right_term_weight * (1. / math.exp(arg2))
if(arg1 > self.overflow_limit): term1 = math.exp(700) else: term1 = math.exp(arg1) if(arg2 > self.overflow_limit): term2 = math.exp(700) else: term2 = math.exp(arg2) result += self.left_term_weight * term1 + \ self.right_term_weight * (1. / term2)
def functional(self, u_isos): result = 0.0 for u in u_isos: arg1 = self.shape_factor_left * (self.u_min - u) arg2 = self.shape_factor_right * (self.u_max - u) if(u > self.right_limit or u < self.left_limit): result += self.left_term_weight * math.exp(arg1) + \ self.right_term_weight * (1. / math.exp(arg2)) return result / u_isos.size()
eb3d85be76636bce057b738dfe6e8be136d4f017 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/eb3d85be76636bce057b738dfe6e8be136d4f017/minimization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18699, 12, 2890, 16, 582, 67, 291, 538, 4672, 563, 273, 374, 18, 20, 364, 582, 316, 582, 67, 291, 538, 30, 1501, 21, 273, 365, 18, 4867, 67, 6812, 67, 4482, 225, 380, 261, 2890, 18, 89, 67, 1154, 300, 582, 13, 1501, 22, 273, 365, 18, 4867, 67, 6812, 67, 4083, 380, 261, 2890, 18, 89, 67, 1896, 300, 582, 13, 309, 12, 89, 405, 365, 18, 4083, 67, 3595, 578, 582, 411, 365, 18, 4482, 67, 3595, 4672, 309, 12, 3175, 21, 405, 365, 18, 11512, 67, 3595, 4672, 2481, 21, 273, 4233, 18, 2749, 12, 26874, 13, 469, 30, 21821, 2481, 21, 273, 4233, 18, 2749, 12, 3175, 21, 13, 309, 12, 3175, 22, 405, 365, 18, 11512, 67, 3595, 4672, 2481, 22, 273, 4233, 18, 2749, 12, 26874, 13, 469, 30, 21821, 2481, 22, 273, 4233, 18, 2749, 12, 3175, 22, 13, 563, 1011, 365, 18, 4482, 67, 6408, 67, 4865, 225, 380, 2481, 21, 397, 521, 365, 18, 4083, 67, 6408, 67, 4865, 380, 261, 21, 18, 342, 2481, 22, 13, 327, 563, 342, 582, 67, 291, 538, 18, 1467, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18699, 12, 2890, 16, 582, 67, 291, 538, 4672, 563, 273, 374, 18, 20, 364, 582, 316, 582, 67, 291, 538, 30, 1501, 21, 273, 365, 18, 4867, 67, 6812, 67, 4482, 225, 380, 261, 2890, 18, 89, 67, 1154, 300, 582, 13, 1501, 22, 273, 365, 18, 4867, 67, 6812, 67, 4083, 380, 261, 2890, 18, 89, 67, 1896, 300, 582, 13, 309, 12, 89, 405, 365, 18, 4083, 67, 3595, 578, 582, 411, 365, 18, 4482, 67, 3595, 4672, 309, 12, 3175, 21, 405, 365, 18, 11512, 67, 3595, 4672, 2481, 21, 273, 4233, 18, 2749, 12, 26874, 13, 469, 30, 21821, 2481, 21, 273, 4233, 18, 2749, 12, 3175, 21, 13, 309, 12, 3175, 22, 2 ]
if user is not None: log( 'Updating sources...' )
if user is not None or os.path.exists( os.path.join( boost_root, 'CVS' ) ): log( 'Updating sources from CVS...' )
def update_source( user, tag, proxy, args, **unused ): if user is not None: log( 'Updating sources...' ) cvs_update( user, tag, args ) else: get_source( user, tag, proxy, args )
42e903364c90801affb03213c92d038ca6c9b6ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/42e903364c90801affb03213c92d038ca6c9b6ff/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3168, 12, 729, 16, 1047, 16, 2889, 16, 833, 16, 2826, 14375, 262, 30, 309, 729, 353, 486, 599, 578, 1140, 18, 803, 18, 1808, 12, 1140, 18, 803, 18, 5701, 12, 14994, 67, 3085, 16, 296, 39, 14640, 11, 262, 262, 30, 613, 12, 296, 17858, 5550, 628, 385, 14640, 7821, 262, 276, 6904, 67, 2725, 12, 729, 16, 1047, 16, 833, 262, 469, 30, 336, 67, 3168, 12, 729, 16, 1047, 16, 2889, 16, 833, 262, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3168, 12, 729, 16, 1047, 16, 2889, 16, 833, 16, 2826, 14375, 262, 30, 309, 729, 353, 486, 599, 578, 1140, 18, 803, 18, 1808, 12, 1140, 18, 803, 18, 5701, 12, 14994, 67, 3085, 16, 296, 39, 14640, 11, 262, 262, 30, 613, 12, 296, 17858, 5550, 628, 385, 14640, 7821, 262, 276, 6904, 67, 2725, 12, 729, 16, 1047, 16, 833, 262, 469, 30, 336, 67, 3168, 12, 729, 16, 1047, 16, 2889, 16, 833, 262, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: keywords[l_prop.id] = REQUEST.get(l_prop.id, '') except: keywords[l_prop.id] = '' return keywords
try: output[l_prop.id] = REQUEST.get(l_prop.id, keywords.get(l_prop.id, '')) except: output[l_prop.id] = '' return output
def processDynamicProperties(self, meta_type, REQUEST=None, keywords={}): """ """ for l_prop in self.getDynamicPropertiesTool().getDynamicProperties(meta_type): try: keywords[l_prop.id] = REQUEST.get(l_prop.id, '') except: keywords[l_prop.id] = ''
749c88bf9d4e74be00d60faed2d8e1de50942798 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/749c88bf9d4e74be00d60faed2d8e1de50942798/NySite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9791, 2297, 12, 2890, 16, 2191, 67, 723, 16, 12492, 33, 7036, 16, 7093, 12938, 4672, 3536, 3536, 364, 328, 67, 5986, 316, 365, 18, 588, 9791, 2297, 6364, 7675, 588, 9791, 2297, 12, 3901, 67, 723, 4672, 775, 30, 7093, 63, 80, 67, 5986, 18, 350, 65, 273, 12492, 18, 588, 12, 80, 67, 5986, 18, 350, 16, 28707, 1335, 30, 7093, 63, 80, 67, 5986, 18, 350, 65, 273, 875, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9791, 2297, 12, 2890, 16, 2191, 67, 723, 16, 12492, 33, 7036, 16, 7093, 12938, 4672, 3536, 3536, 364, 328, 67, 5986, 316, 365, 18, 588, 9791, 2297, 6364, 7675, 588, 9791, 2297, 12, 3901, 67, 723, 4672, 775, 30, 7093, 63, 80, 67, 5986, 18, 350, 65, 273, 12492, 18, 588, 12, 80, 67, 5986, 18, 350, 16, 28707, 1335, 30, 7093, 63, 80, 67, 5986, 18, 350, 65, 273, 875, 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 ]
if nick == self.nickname: self.nickname = params[0]
if nick == self.nickname: self.nickname = params[0] else: self.userRenamed(nick, params[0])
def irc_NICK(self, prefix, params): nick = string.split(prefix,'!',0)[0] if nick == self.nickname: self.nickname = params[0]
494b9d5f056c28f6e92951c0c9e52f9889d54b93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/494b9d5f056c28f6e92951c0c9e52f9889d54b93/irc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 1310, 67, 50, 16656, 12, 2890, 16, 1633, 16, 859, 4672, 10909, 273, 533, 18, 4939, 12, 3239, 11189, 5, 2187, 20, 25146, 20, 65, 309, 10909, 422, 365, 18, 17091, 529, 30, 365, 18, 17091, 529, 273, 859, 63, 20, 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, 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 3239, 11189, 5, 2187, 20, 25146, 20, 65, 309, 10909, 422, 365, 18, 17091, 529, 30, 365, 18, 17091, 529, 273, 859, 63, 20, 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 ]
return cram(stripid(repr(x)), self.maxstring)
return self.escape(cram(stripid(repr(x)), self.maxstring))
def repr_instance(self, x, level): try: return cram(stripid(repr(x)), self.maxstring) except: return self.escape('<%s instance>' % x.__class__.__name__)
37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8480, 67, 1336, 12, 2890, 16, 619, 16, 1801, 4672, 775, 30, 327, 365, 18, 6939, 12, 71, 1940, 12, 6406, 350, 12, 12715, 12, 92, 13, 3631, 365, 18, 1896, 1080, 3719, 1335, 30, 327, 365, 18, 6939, 2668, 32, 9, 87, 791, 1870, 738, 619, 16186, 1106, 972, 16186, 529, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8480, 67, 1336, 12, 2890, 16, 619, 16, 1801, 4672, 775, 30, 327, 365, 18, 6939, 12, 71, 1940, 12, 6406, 350, 12, 12715, 12, 92, 13, 3631, 365, 18, 1896, 1080, 3719, 1335, 30, 327, 365, 18, 6939, 2668, 32, 9, 87, 791, 1870, 738, 619, 16186, 1106, 972, 16186, 529, 972, 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 ]
filetag.tag().comment = commententry.get_text()
filetag.tag().comment = entries[6].get_text()
def editwindow_applyall(self, button, item, filetags, titleentry, artistentry, albumentry, yearentry, trackentry, genreentry, commententry): filetagnum = 0 for filetag in filetags: filetagnum = filetagnum + 1 if item == "title": filetag.tag().title = titleentry.get_text() elif item == "album": filetag.tag().album = albumentry.get_text() elif item == "artist": filetag.tag().artist = artistentry.get_text() elif item == "year": if len(yearentry.get_text()) > 0: filetag.tag().year = int(yearentry.get_text()) else: filetag.tag().year = 0 elif item == "track": filetag.tag().track = filetagnum elif item == "genre": filetag.tag().genre = genreentry.get_text() elif item == "comment": filetag.tag().comment = commententry.get_text() if item == "track": # Update the entry for the current song: trackentry.set_text(str(filetags[self.filetagnum].tag().track))
8e7f75d3649afea0782df60c0cbc0b9c2fb7cc04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8e7f75d3649afea0782df60c0cbc0b9c2fb7cc04/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 5668, 67, 9010, 454, 12, 2890, 16, 3568, 16, 761, 16, 661, 278, 1341, 16, 2077, 4099, 16, 15469, 4099, 16, 14844, 4099, 16, 677, 73, 7892, 698, 16, 3298, 4099, 16, 3157, 2842, 698, 16, 2879, 4099, 4672, 661, 20788, 2107, 273, 374, 364, 661, 20788, 316, 661, 278, 1341, 30, 661, 20788, 2107, 273, 661, 20788, 2107, 397, 404, 309, 761, 422, 315, 2649, 6877, 661, 20788, 18, 2692, 7675, 2649, 273, 2077, 4099, 18, 588, 67, 955, 1435, 1327, 761, 422, 315, 25090, 6877, 661, 20788, 18, 2692, 7675, 25090, 273, 14844, 4099, 18, 588, 67, 955, 1435, 1327, 761, 422, 315, 25737, 6877, 661, 20788, 18, 2692, 7675, 25737, 273, 15469, 4099, 18, 588, 67, 955, 1435, 1327, 761, 422, 315, 6874, 6877, 309, 562, 12, 20513, 7892, 698, 18, 588, 67, 955, 10756, 405, 374, 30, 661, 20788, 18, 2692, 7675, 6874, 273, 509, 12, 20513, 7892, 698, 18, 588, 67, 955, 10756, 469, 30, 661, 20788, 18, 2692, 7675, 6874, 273, 374, 1327, 761, 422, 315, 4101, 6877, 661, 20788, 18, 2692, 7675, 4101, 273, 661, 20788, 2107, 1327, 761, 422, 315, 4507, 266, 6877, 661, 20788, 18, 2692, 7675, 4507, 266, 273, 3157, 2842, 698, 18, 588, 67, 955, 1435, 1327, 761, 422, 315, 3469, 6877, 661, 20788, 18, 2692, 7675, 3469, 273, 3222, 63, 26, 8009, 588, 67, 955, 1435, 309, 761, 422, 315, 4101, 6877, 468, 2315, 326, 1241, 364, 326, 783, 17180, 30, 3298, 4099, 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, 3874, 5668, 67, 9010, 454, 12, 2890, 16, 3568, 16, 761, 16, 661, 278, 1341, 16, 2077, 4099, 16, 15469, 4099, 16, 14844, 4099, 16, 677, 73, 7892, 698, 16, 3298, 4099, 16, 3157, 2842, 698, 16, 2879, 4099, 4672, 661, 20788, 2107, 273, 374, 364, 661, 20788, 316, 661, 278, 1341, 30, 661, 20788, 2107, 273, 661, 20788, 2107, 397, 404, 309, 761, 422, 315, 2649, 6877, 661, 20788, 18, 2692, 7675, 2649, 273, 2077, 4099, 18, 588, 67, 955, 1435, 1327, 761, 422, 315, 25090, 6877, 661, 20788, 18, 2692, 7675, 25090, 273, 14844, 4099, 18, 588, 67, 955, 1435, 1327, 761, 422, 315, 25737, 6877, 661, 20788, 18, 2692, 7675, 25737, 273, 15469, 4099, 18, 2 ]
def __get_rbuf_len(self):
def _get_rbuf_len(self):
def __get_rbuf_len(self): buf_len = 0 for i in [len(x) for x in self._rbuf]: buf_len += i return buf_len
dee4f185d018d143d63db650d2b9ee53fe09c8e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dee4f185d018d143d63db650d2b9ee53fe09c8e9/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 86, 4385, 67, 1897, 12, 2890, 4672, 1681, 67, 1897, 273, 374, 364, 277, 316, 306, 1897, 12, 92, 13, 364, 619, 316, 365, 6315, 86, 4385, 14542, 1681, 67, 1897, 1011, 277, 327, 1681, 67, 1897, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 86, 4385, 67, 1897, 12, 2890, 4672, 1681, 67, 1897, 273, 374, 364, 277, 316, 306, 1897, 12, 92, 13, 364, 619, 316, 365, 6315, 86, 4385, 14542, 1681, 67, 1897, 1011, 277, 327, 1681, 67, 1897, 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 ]
self.assertEqual (db.tag_path_split ('rating'), (user, '', 'rating')) self.assertEqual (db.tag_path_split ('/%s/rating' % user), (user, '', 'rating')) self.assertEqual (db.tag_path_split ('/tags/%s/rating' % user), (user, '', 'rating')) self.assertEqual (db.tag_path_split ('foo/rating'), (user, 'foo', 'rating')) self.assertEqual (db.tag_path_split ('/%s/foo/rating' % user), (user, 'foo', 'rating')) self.assertEqual (db.tag_path_split ('/tags/%s/foo/rating' % user), (user, 'foo', 'rating')) self.assertEqual (db.tag_path_split ('foo/bar/rating'), (user, 'foo/bar', 'rating')) self.assertEqual (db.tag_path_split ('/%s/foo/bar/rating' % user), (user, 'foo/bar', 'rating')) self.assertEqual (db.tag_path_split ('/tags/%s/foo/bar/rating' % user), (user, 'foo/bar', 'rating')) self.assertRaises (TagPathError, db.tag_path_split, '') self.assertRaises (TagPathError, db.tag_path_split, '/') self.assertRaises (TagPathError, db.tag_path_split, '/foo') def testTypedValueInterpretation (self):
self.assertEqual(db.tag_path_split('rating'), (user, '', 'rating')) self.assertEqual(db.tag_path_split('/%s/rating' % user), (user, '', 'rating')) self.assertEqual(db.tag_path_split('/tags/%s/rating' % user), (user, '', 'rating')) self.assertEqual(db.tag_path_split('foo/rating'), (user, 'foo', 'rating')) self.assertEqual(db.tag_path_split('/%s/foo/rating' % user), (user, 'foo', 'rating')) self.assertEqual(db.tag_path_split('/tags/%s/foo/rating' % user), (user, 'foo', 'rating')) self.assertEqual(db.tag_path_split('foo/bar/rating'), (user, 'foo/bar', 'rating')) self.assertEqual(db.tag_path_split('/%s/foo/bar/rating' % user), (user, 'foo/bar', 'rating')) self.assertEqual(db.tag_path_split('/tags/%s/foo/bar/rating' % user), (user, 'foo/bar', 'rating')) self.assertRaises(TagPathError, db.tag_path_split, '') self.assertRaises(TagPathError, db.tag_path_split, '/') self.assertRaises(TagPathError, db.tag_path_split, '/foo') def testTypedValueInterpretation(self):
def testTagPathSplit (self): db = self.db
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1805, 743, 5521, 261, 2890, 4672, 1319, 273, 365, 18, 1966, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1805, 743, 5521, 261, 2890, 4672, 1319, 273, 365, 18, 1966, 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 ]
Title: <INPUT TYPE=text SIZE=70 NAME=title VALUE="%s"<BR>
Title: <INPUT TYPE=text SIZE=70 NAME=title VALUE="%s"><BR>
def showedit(self, name, title, text):
ed531fd9df252b93d75593e5977cfd49eb36ae24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ed531fd9df252b93d75593e5977cfd49eb36ae24/faqmain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 4619, 12, 2890, 16, 508, 16, 2077, 16, 977, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2405, 4619, 12, 2890, 16, 508, 16, 2077, 16, 977, 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 ]
dtype = getattr (numpy, 'uint%s' % (bits_per_sample))
dtype = getattr (self.dtypes, 'uint%s' % (bits_per_sample))
def get_contiguous(self, channel_name=None): """ Return memmap of an image.
67eb5b913784e716184933d99aa3bcc5629e8fe1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8227/67eb5b913784e716184933d99aa3bcc5629e8fe1/tiff_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 30611, 12, 2890, 16, 1904, 67, 529, 33, 7036, 4672, 3536, 2000, 1663, 1458, 434, 392, 1316, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 30611, 12, 2890, 16, 1904, 67, 529, 33, 7036, 4672, 3536, 2000, 1663, 1458, 434, 392, 1316, 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 ]
if err!=None and err<error: break
if error!=None and err<error: break
def frGS(z,target,estimate=None, iterations=20,error=None): ''' Fresnel transform Gerchberg - Saxton Algorithm Calculates the phase distribution in a object plane (for a given amplitude constrain) to obtain an specific amplitude distribution in the target plane. A FFT implementation of the Fresnel Transform is used. **ARGUMENTS:** ========== ====================================================== z Propagation distance. This is used to calculate the resolution needed in the object plane, for a given target resolution. target :class:`Field` instance whose amplitude distribution is used to represent the amplitude constrain to be applied in the target plane. The phase of this field is not used. estimate :class:`Field` instance used as initial estimate for the problem. The amplitude of this field is taken as the reference amplitude and the phase is obtained. The resolution used to define this field must match the value needed to obtain the required target resolution when the FFT-Fresnel transform is used. If the wrong value is given an exception is raised. If not given, a unitary amplitude wave, with random phase and the correct resolution, is used. iterations Maximum number of iterations error Expected error ========== ====================================================== .. note : target and object must have the same wavelength **RETURN VALUE:** (holo,err) ==== =========================================================== holo Field instance, containing the reference amplitude information and the phase obtained from the iterative algorithm. The holo.res attribute contains the resolution of the calculated hologram for the given propagation distance. The holo.l attribute contains the wavelenght used to calculate the hologram. err Final error obtained ==== =========================================================== ''' if estimate==None: edata=exp(2.j*pi*random(target.shape)) sx,sy=target.size dxe=target.l*z/sx dye=target.l*z/sy estimate=Field(data=edata,psize=(dxe,dye),l=target.l) assert estimate.shape==target.shape,\ "The estimate field, and the target field, must have the same shape" assert target.l==estimate.l,\ "The wave lenghts for the reference beam, and the target must be equal" sx,sy=target.size dxe=target.l*z/sx dye=target.l*z/sy dx,dy=estimate.res assert (dxe==dx) and (dye==dy),\ "The resolution for the reference beam, and the target must be equal" holo=estimate eabs=estimate.abs() #Normalized Target amplitude ntarget=target.abs()/target.abs().max() for n in range(iterations): if n!=0: holo=imp.propagate_fresnel(-z) #Keep only the phase in the hologram plane holo.data=exp(1.j*holo.angle) #Apply the amplitude constain holo=holo*eabs #Calculate the new image plane imp=holo.propagate_fresnel(z) err=(ntarget-imp.abs()/imp.abs().max()).std() if err!=None and err<error: break d=exp(1.j*imp.angle) imp=Field(data=d, psize=imp.psize, l=imp.l) #Apply the amplitude constain imp=imp*target.abs() return holo,err
57752884fee44b2ecf21de948f1a409afb585825 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3690/57752884fee44b2ecf21de948f1a409afb585825/gs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3812, 16113, 12, 94, 16, 3299, 16, 23562, 33, 7036, 16, 11316, 33, 3462, 16, 1636, 33, 7036, 4672, 9163, 478, 455, 3084, 2510, 611, 264, 343, 31317, 300, 348, 651, 1917, 15067, 225, 26128, 326, 6855, 7006, 316, 279, 733, 11017, 261, 1884, 279, 864, 26607, 30593, 13, 358, 7161, 392, 2923, 26607, 7006, 316, 326, 1018, 11017, 18, 225, 432, 16816, 4471, 434, 326, 478, 455, 3084, 11514, 353, 1399, 18, 225, 2826, 18311, 55, 30, 636, 225, 422, 1432, 422, 20775, 894, 998, 1850, 1186, 9095, 367, 3888, 18, 1220, 353, 1399, 358, 4604, 326, 7861, 3577, 316, 326, 733, 11017, 16, 364, 279, 864, 1018, 7861, 18, 1018, 377, 294, 1106, 28288, 974, 68, 791, 8272, 26607, 7006, 353, 1399, 358, 2406, 326, 26607, 30593, 358, 506, 6754, 316, 326, 1018, 11017, 18, 1021, 6855, 434, 333, 652, 353, 486, 1399, 18, 11108, 282, 294, 1106, 28288, 974, 68, 791, 1399, 487, 2172, 11108, 364, 326, 6199, 18, 1021, 26607, 434, 333, 652, 353, 9830, 487, 326, 2114, 26607, 471, 326, 6855, 353, 12700, 18, 1021, 7861, 1399, 358, 4426, 333, 652, 1297, 845, 326, 460, 3577, 358, 7161, 326, 1931, 1018, 7861, 1347, 326, 16816, 17, 42, 455, 3084, 2510, 353, 1399, 18, 971, 326, 7194, 460, 353, 864, 392, 1520, 353, 11531, 18, 971, 486, 864, 16, 279, 2836, 814, 26607, 10794, 16, 598, 2744, 6855, 471, 326, 3434, 7861, 16, 353, 1399, 18, 11316, 18848, 1300, 434, 11316, 555, 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, 3812, 16113, 12, 94, 16, 3299, 16, 23562, 33, 7036, 16, 11316, 33, 3462, 16, 1636, 33, 7036, 4672, 9163, 478, 455, 3084, 2510, 611, 264, 343, 31317, 300, 348, 651, 1917, 15067, 225, 26128, 326, 6855, 7006, 316, 279, 733, 11017, 261, 1884, 279, 864, 26607, 30593, 13, 358, 7161, 392, 2923, 26607, 7006, 316, 326, 1018, 11017, 18, 225, 432, 16816, 4471, 434, 326, 478, 455, 3084, 11514, 353, 1399, 18, 225, 2826, 18311, 55, 30, 636, 225, 422, 1432, 422, 20775, 894, 998, 1850, 1186, 9095, 367, 3888, 18, 1220, 353, 1399, 358, 4604, 326, 7861, 3577, 316, 326, 733, 11017, 16, 364, 279, 864, 1018, 7861, 18, 1018, 377, 294, 1106, 28288, 974, 68, 2 ]
"""
r"""
def fourier_series_partial_sum(self,N,L): """ Returns the partial sum \[ f(x) \sim \frac{a_0}{2} + \sum_{n=1}^N [a_n\cos(\frac{n\pi x}{L}) + b_n\sin(\frac{n\pi x}{L})], \] as a string.
6ea58891b00cf77041a2de69465efb2ab507dcd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/6ea58891b00cf77041a2de69465efb2ab507dcd2/piecewise.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12792, 2453, 67, 10222, 67, 11601, 67, 1364, 12, 2890, 16, 50, 16, 48, 4672, 436, 8395, 2860, 326, 4702, 2142, 521, 63, 284, 12, 92, 13, 521, 9812, 521, 22187, 95, 69, 67, 20, 8637, 22, 97, 397, 521, 1364, 14147, 82, 33, 21, 97, 66, 50, 306, 69, 67, 82, 64, 14445, 4713, 22187, 95, 82, 64, 7259, 619, 8637, 48, 6792, 397, 324, 67, 82, 64, 21861, 4713, 22187, 95, 82, 64, 7259, 619, 8637, 48, 6792, 6487, 521, 65, 487, 279, 533, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12792, 2453, 67, 10222, 67, 11601, 67, 1364, 12, 2890, 16, 50, 16, 48, 4672, 436, 8395, 2860, 326, 4702, 2142, 521, 63, 284, 12, 92, 13, 521, 9812, 521, 22187, 95, 69, 67, 20, 8637, 22, 97, 397, 521, 1364, 14147, 82, 33, 21, 97, 66, 50, 306, 69, 67, 82, 64, 14445, 4713, 22187, 95, 82, 64, 7259, 619, 8637, 48, 6792, 397, 324, 67, 82, 64, 21861, 4713, 22187, 95, 82, 64, 7259, 619, 8637, 48, 6792, 6487, 521, 65, 487, 279, 533, 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 ]
ind = string.find(line, '[NCBI, ExPASy, Israel, Japan]')
ind = line.find('[NCBI, ExPASy, Israel, Japan]')
def reference_cross_reference(self, line): assert self.data.references, "RX: missing RN" # The basic (older?) RX line is of the form: # RX MEDLINE; 85132727. # but there are variants of this that need to be dealt with (see below) # CLD1_HUMAN in Release 39 and DADR_DIDMA in Release 33 # have extraneous information in the RX line. Check for # this and chop it out of the line. # (noticed by [email protected]) ind = string.find(line, '[NCBI, ExPASy, Israel, Japan]') if ind >= 0: line = line[:ind]
ade8039411341728bf4bd4dc20b4f5d9433c8f82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ade8039411341728bf4bd4dc20b4f5d9433c8f82/SProt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2114, 67, 14653, 67, 6180, 12, 2890, 16, 980, 4672, 1815, 365, 18, 892, 18, 14353, 16, 315, 54, 60, 30, 3315, 534, 50, 6, 468, 1021, 5337, 261, 1498, 8535, 534, 60, 980, 353, 434, 326, 646, 30, 468, 534, 60, 282, 17226, 5997, 31, 1725, 10593, 1578, 27, 5324, 18, 468, 1496, 1915, 854, 12935, 434, 333, 716, 1608, 358, 506, 443, 2390, 598, 261, 5946, 5712, 13, 225, 468, 385, 12069, 21, 67, 44, 2799, 1258, 316, 10819, 16977, 471, 463, 1880, 54, 67, 40, 734, 5535, 316, 10819, 13159, 468, 1240, 7582, 15522, 1779, 316, 326, 534, 60, 980, 18, 225, 2073, 364, 468, 333, 471, 31258, 518, 596, 434, 326, 980, 18, 468, 261, 20392, 72, 635, 417, 270, 292, 36, 18179, 803, 18, 2758, 13, 1547, 273, 980, 18, 4720, 2668, 63, 50, 8876, 45, 16, 1312, 52, 3033, 93, 16, 2585, 354, 292, 16, 804, 30472, 3864, 13, 309, 1547, 1545, 374, 30, 980, 273, 980, 10531, 728, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2114, 67, 14653, 67, 6180, 12, 2890, 16, 980, 4672, 1815, 365, 18, 892, 18, 14353, 16, 315, 54, 60, 30, 3315, 534, 50, 6, 468, 1021, 5337, 261, 1498, 8535, 534, 60, 980, 353, 434, 326, 646, 30, 468, 534, 60, 282, 17226, 5997, 31, 1725, 10593, 1578, 27, 5324, 18, 468, 1496, 1915, 854, 12935, 434, 333, 716, 1608, 358, 506, 443, 2390, 598, 261, 5946, 5712, 13, 225, 468, 385, 12069, 21, 67, 44, 2799, 1258, 316, 10819, 16977, 471, 463, 1880, 54, 67, 40, 734, 5535, 316, 10819, 13159, 468, 1240, 7582, 15522, 1779, 316, 326, 534, 60, 980, 18, 225, 2073, 364, 468, 333, 471, 31258, 518, 596, 434, 326, 980, 18, 468, 2 ]
Includes this ClauseElement. This accessor tends to be used for
Includes this ClauseElement. This accessor tends to be used for
def _cloned_set(self): """Return the set consisting all cloned anscestors of this ClauseElement. Includes this ClauseElement. This accessor tends to be used for FromClause objects to identify 'equivalent' FROM clauses, regardless of transformative operations. """ s = set() f = self while f is not None: s.add(f) f = getattr(f, '_is_clone_of', None) return s
0dbbd6fe669afed79be8f639455e324ab9b817ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/0dbbd6fe669afed79be8f639455e324ab9b817ca/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 830, 8184, 67, 542, 12, 2890, 4672, 3536, 990, 326, 444, 23570, 777, 13027, 392, 1017, 395, 1383, 434, 333, 3905, 1579, 1046, 18, 225, 657, 8993, 333, 3905, 1579, 1046, 18, 225, 1220, 9789, 268, 5839, 358, 506, 1399, 364, 6338, 7044, 2184, 358, 9786, 296, 14298, 6505, 11, 4571, 14093, 16, 15255, 434, 2510, 1535, 5295, 18, 225, 3536, 272, 273, 444, 1435, 284, 273, 365, 1323, 284, 353, 486, 599, 30, 272, 18, 1289, 12, 74, 13, 284, 273, 3869, 12, 74, 16, 2070, 291, 67, 14056, 67, 792, 2187, 599, 13, 327, 272, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 830, 8184, 67, 542, 12, 2890, 4672, 3536, 990, 326, 444, 23570, 777, 13027, 392, 1017, 395, 1383, 434, 333, 3905, 1579, 1046, 18, 225, 657, 8993, 333, 3905, 1579, 1046, 18, 225, 1220, 9789, 268, 5839, 358, 506, 1399, 364, 6338, 7044, 2184, 358, 9786, 296, 14298, 6505, 11, 4571, 14093, 16, 15255, 434, 2510, 1535, 5295, 18, 225, 3536, 272, 273, 444, 1435, 284, 273, 365, 1323, 284, 353, 486, 599, 30, 272, 18, 1289, 12, 74, 13, 284, 273, 3869, 12, 74, 16, 2070, 291, 67, 14056, 67, 792, 2187, 599, 13, 327, 272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.addLNBSimple(slotid = x, diseqcmode = 3, longitude = 0, loDirection = 0, latitude = 0, laDirection = 0)
self.addLNBSimple(slotid = x, diseqcmode = 3, longitude = float(str(nim.longitude.value[0]) + "." + str(nim.longitude.value[1])), loDirection = nim.longitudeOrientation.value - 2, latitude = float(str(nim.latitude.value[0]) + "." + str(nim.latitude.value[1])), laDirection = nim.latitudeOrientation.value)
def update(self): eDVBSatelliteEquipmentControl.getInstance().clear() self.satList = []
ab927305ad491e1e556932fb947836986457a636 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/ab927305ad491e1e556932fb947836986457a636/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 7675, 8507, 1435, 225, 365, 18, 12973, 682, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 12, 2890, 4672, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 7675, 8507, 1435, 225, 365, 18, 12973, 682, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def eval(self, s, globals={}, locals={}):
def eval(self, s, globals=None, locals=None): """ EXAMPLES: sage: html.eval('<hr>') <html><font color='black'><hr></font></html> '' """ if globals is None: globals = {} if locals is None: locals = {}
def eval(self, s, globals={}, locals={}): s = str(s) s = math_parse(s) t = '' while len(s) > 0: i = s.find('<sage>') if i == -1: t += s break j = s.find('</sage>') if j == -1: t += s break t += s[:i] + '<span class="math">%s</span>'%\ latex(sage_eval(s[6+i:j], locals=locals)) s = s[j+7:] print "<html><font color='black'>%s</font></html>"%t return ''
cbfe5f3072c9450dabaeadfb020d4d6222523497 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cbfe5f3072c9450dabaeadfb020d4d6222523497/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 12, 2890, 16, 272, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 1729, 18, 8622, 2668, 32, 7256, 1870, 13, 411, 2620, 4438, 5776, 2036, 2218, 11223, 11, 4438, 7256, 4695, 5776, 4695, 2620, 34, 875, 3536, 309, 10941, 353, 599, 30, 10941, 273, 2618, 309, 8985, 353, 599, 30, 8985, 273, 2618, 272, 273, 609, 12, 87, 13, 272, 273, 4233, 67, 2670, 12, 87, 13, 268, 273, 875, 1323, 562, 12, 87, 13, 405, 374, 30, 277, 273, 272, 18, 4720, 2668, 32, 87, 410, 1870, 13, 309, 277, 422, 300, 21, 30, 268, 1011, 272, 898, 525, 273, 272, 18, 4720, 2668, 1757, 87, 410, 1870, 13, 309, 525, 422, 300, 21, 30, 268, 1011, 272, 898, 268, 1011, 272, 10531, 77, 65, 397, 2368, 3969, 667, 1546, 15949, 24038, 87, 1757, 3969, 1870, 30671, 25079, 12, 87, 410, 67, 8622, 12, 87, 63, 26, 15, 77, 30, 78, 6487, 8985, 33, 17977, 3719, 272, 273, 272, 63, 78, 15, 27, 26894, 1172, 3532, 2620, 4438, 5776, 2036, 2218, 11223, 11, 9822, 87, 1757, 5776, 4695, 2620, 2984, 9, 88, 327, 875, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 12, 2890, 16, 272, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 1729, 18, 8622, 2668, 32, 7256, 1870, 13, 411, 2620, 4438, 5776, 2036, 2218, 11223, 11, 4438, 7256, 4695, 5776, 4695, 2620, 34, 875, 3536, 309, 10941, 353, 599, 30, 10941, 273, 2618, 309, 8985, 353, 599, 30, 8985, 273, 2618, 272, 273, 609, 12, 87, 13, 272, 273, 4233, 67, 2670, 12, 87, 13, 268, 273, 875, 1323, 562, 12, 87, 13, 405, 374, 30, 277, 273, 272, 18, 4720, 2668, 32, 87, 410, 1870, 13, 309, 277, 422, 300, 21, 30, 268, 1011, 272, 898, 525, 273, 272, 18, 4720, 2668, 1757, 87, 410, 2 ]
self.DC.SetFont(f) tw,th = self.DC.GetTextExtent(test_day)
DC.SetFont(f) tw,th = DC.GetTextExtent(test_day)
def DrawWeek(self): # draw the week days width = self.gridx[1]-self.gridx[0] height = self.gridy[1] - self.gridy[0] rect_w = self.gridx[7]-self.gridx[0]
b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 6630, 12, 2890, 4672, 377, 468, 3724, 326, 4860, 4681, 1835, 273, 365, 18, 5222, 92, 63, 21, 65, 17, 2890, 18, 5222, 92, 63, 20, 65, 2072, 273, 365, 18, 5222, 93, 63, 21, 65, 300, 365, 18, 5222, 93, 63, 20, 65, 4917, 67, 91, 273, 365, 18, 5222, 92, 63, 27, 65, 17, 2890, 18, 5222, 92, 63, 20, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 6630, 12, 2890, 4672, 377, 468, 3724, 326, 4860, 4681, 1835, 273, 365, 18, 5222, 92, 63, 21, 65, 17, 2890, 18, 5222, 92, 63, 20, 65, 2072, 273, 365, 18, 5222, 93, 63, 21, 65, 300, 365, 18, 5222, 93, 63, 20, 65, 4917, 67, 91, 273, 365, 18, 5222, 92, 63, 27, 65, 17, 2890, 18, 5222, 92, 63, 20, 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 ]
return '<%s/>' % ' '.join([self.tagname] + ['%s="%s"' % (n, v) for n, v in self.attlist()])
return u'<%s/>' % ' '.join([self.tagname] + ['%s="%s"' % (n, v) for n, v in self.attlist()])
def emptytag(self): return '<%s/>' % ' '.join([self.tagname] + ['%s="%s"' % (n, v) for n, v in self.attlist()])
ffb86a078cea8d108cd312bd369ef34d402631d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/ffb86a078cea8d108cd312bd369ef34d402631d8/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1008, 2692, 12, 2890, 4672, 327, 2368, 9, 87, 18280, 738, 296, 2418, 5701, 3816, 2890, 18, 2692, 529, 65, 397, 10228, 9, 87, 11613, 87, 5187, 738, 261, 82, 16, 331, 13, 364, 290, 16, 331, 316, 365, 18, 4558, 1098, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1008, 2692, 12, 2890, 4672, 327, 2368, 9, 87, 18280, 738, 296, 2418, 5701, 3816, 2890, 18, 2692, 529, 65, 397, 10228, 9, 87, 11613, 87, 5187, 738, 261, 82, 16, 331, 13, 364, 290, 16, 331, 316, 365, 18, 4558, 1098, 1435, 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, -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)
8b6cc309d81329ac887f73256610611664d8fcd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/8b6cc309d81329ac887f73256610611664d8fcd5/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 ]
testcases = [UTDataArrayFromNumPyArray_Scalar, \ UTDataArrayFromNumPyArray_Vector, \ UTDataArrayFromNumPyMultiArray_Scalar, \ UTDataArrayFromNumPyMultiArray_Vector]
testcases = [UTFloatArrayFromNumPyArray_Scalar, \ UTDoubleArrayFromNumPyArray_Scalar, \ UTFloatArrayFromNumPyArray_Vector, \ UTDoubleArrayFromNumPyArray_Vector, \ UTFloatArrayFromNumPyMultiArray_Scalar, \ UTDoubleArrayFromNumPyMultiArray_Scalar, \ UTFloatArrayFromNumPyMultiArray_Vector, \ UTDoubleArrayFromNumPyMultiArray_Vector]
def get_leaktest_scenario(self):
34128e9b0827c17d15020a7d73bb23a6abf2d402 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/34128e9b0827c17d15020a7d73bb23a6abf2d402/vtk_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 298, 581, 3813, 67, 26405, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 298, 581, 3813, 67, 26405, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
None)
None, iface = ITicketIssuer, rootObject = self)
def createResource(self): return PublicAthenaLivePage( ITicketIssuer, self, getLoader("signup"), IStaticShellContent(self.store, None), None)
f942a031b0edf71760ab55f9b0584454b8ba3a06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6980/f942a031b0edf71760ab55f9b0584454b8ba3a06/signup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24317, 12, 2890, 4672, 327, 7224, 37, 15991, 69, 12328, 1964, 12, 467, 13614, 16667, 16, 365, 16, 336, 2886, 2932, 2977, 416, 6, 3631, 467, 5788, 13220, 1350, 12, 2890, 18, 2233, 16, 599, 3631, 599, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24317, 12, 2890, 4672, 327, 7224, 37, 15991, 69, 12328, 1964, 12, 467, 13614, 16667, 16, 365, 16, 336, 2886, 2932, 2977, 416, 6, 3631, 467, 5788, 13220, 1350, 12, 2890, 18, 2233, 16, 599, 3631, 599, 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 ]
p = Process('python', [__file__, '--child', '--logfile', os.path.join(tempfile.gettempdir(), 'saranwrap.log')], dead_callback)
p = Process(sys.executable, [__file__, '--child', '--logfile', os.path.join(tempfile.gettempdir(), 'saranwrap.log')], dead_callback)
def wrap(obj, dead_callback = None): """
dc680acc35f57558409253533bedbd88085dce6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/dc680acc35f57558409253533bedbd88085dce6b/saranwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 2603, 16, 8363, 67, 3394, 273, 599, 4672, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 2603, 16, 8363, 67, 3394, 273, 599, 4672, 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, -100, -100, -100 ]
return [nodes, in_0, in_1, in_0_alive, in_1_alive, common_rel]
return [nodes, in_0, in_1, in_0_alive, in_1_alive, common_rel, time]
def Simulate(birth_0, death_0, turnover, birth_1, death_1, migration_1, migration_0, intitial_0, initial_1, runs): """ Input Parameters ---------------- birth_0 the per lineage birth rate in state 0 death_0 the per lineage death rate in state 0 birth_1 the per lineage birth rate in state 1 death_1 the per lineage death rate in state 1 migration_1 the per lineage migration rate from 0 to 1 migration_0 the per lineage migration rate from 1 to 0 initial_0 the size of the initial population in state 0 initial_1 the size of the initial population in state 1 runs the number of times to run the simulation Return Values ------------- nodes the node map [Time of Birth (0), Parent node (1), region (2), migration_times (3), Time of Death (4)] of the final population common_rel the common ancestors of the remaining lineages in_0 the number of lineages in the boreal region at the tips of the tree (after all remaining lineages are related to eachother) in_1 the number of lineages in the tropical region at the tips of the tree (after all remaining are related to eachother) """ #start with initial_0 in the boreal, initial_1 in the tropical, and run the birth-death, character change simulator #until the remaining lineages all have the same parent. Then use each of these lineages as initial_0, #initial_1 (ie no longer connected) until the remaining lineages all have the same parent. #Do this the desired number of times. The last run will be nodes array to be returned. #This last run will produce a tree with a certain age (from root to tips). The extent of total lineage decline is #not known, so it will be best to at first have the birth rate only slightly smaller than the death rate, #and have run equal to one. for i in range(0,runs): [nodes, in_0, in_1, in_0_alive, in_1_alive, common_rel] =CreatePopulation(birth_0, death_0, turnover, birth_1, death_1, migration_1, migration_0, intitial_0, initial_1) #common_rel=CreatePopulation(birth_0, death_0, birth_1, death_1, migration_1, migration_0, dt, intitial_0, initial_1) return [nodes, in_0, in_1, in_0_alive, in_1_alive, common_rel]
c872827e6167f1bc33108444aa076f7378184a7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7945/c872827e6167f1bc33108444aa076f7378184a7e/bd_simple.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9587, 6243, 12, 22531, 67, 20, 16, 443, 421, 67, 20, 16, 7005, 1643, 16, 17057, 67, 21, 16, 443, 421, 67, 21, 16, 6333, 67, 21, 16, 6333, 67, 20, 16, 509, 305, 649, 67, 20, 16, 2172, 67, 21, 16, 7597, 4672, 3536, 2741, 7012, 300, 18753, 17057, 67, 20, 540, 326, 1534, 31766, 17057, 4993, 316, 919, 374, 443, 421, 67, 20, 540, 326, 1534, 31766, 443, 421, 4993, 316, 919, 374, 17057, 67, 21, 540, 326, 1534, 31766, 17057, 4993, 316, 919, 404, 443, 421, 67, 21, 540, 326, 1534, 31766, 443, 421, 4993, 316, 919, 404, 6333, 67, 21, 377, 326, 1534, 31766, 6333, 4993, 628, 374, 358, 404, 6333, 67, 20, 377, 326, 1534, 31766, 6333, 4993, 628, 404, 358, 374, 2172, 67, 20, 4202, 326, 963, 434, 326, 2172, 11209, 316, 919, 374, 2172, 67, 21, 4202, 326, 963, 434, 326, 2172, 11209, 316, 919, 404, 7597, 5411, 326, 1300, 434, 4124, 358, 1086, 326, 14754, 225, 2000, 6876, 300, 7620, 2199, 4202, 326, 756, 852, 306, 950, 434, 605, 10542, 261, 20, 3631, 9520, 756, 261, 21, 3631, 3020, 261, 22, 3631, 6333, 67, 8293, 261, 23, 3631, 2647, 434, 1505, 421, 261, 24, 25887, 434, 326, 727, 11209, 2975, 67, 2878, 225, 326, 2975, 14322, 434, 326, 4463, 980, 1023, 316, 67, 20, 282, 326, 1300, 434, 980, 1023, 316, 326, 324, 479, 287, 3020, 622, 326, 31606, 434, 326, 2151, 261, 5205, 777, 4463, 980, 1023, 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, 9587, 6243, 12, 22531, 67, 20, 16, 443, 421, 67, 20, 16, 7005, 1643, 16, 17057, 67, 21, 16, 443, 421, 67, 21, 16, 6333, 67, 21, 16, 6333, 67, 20, 16, 509, 305, 649, 67, 20, 16, 2172, 67, 21, 16, 7597, 4672, 3536, 2741, 7012, 300, 18753, 17057, 67, 20, 540, 326, 1534, 31766, 17057, 4993, 316, 919, 374, 443, 421, 67, 20, 540, 326, 1534, 31766, 443, 421, 4993, 316, 919, 374, 17057, 67, 21, 540, 326, 1534, 31766, 17057, 4993, 316, 919, 404, 443, 421, 67, 21, 540, 326, 1534, 31766, 443, 421, 4993, 316, 919, 404, 6333, 67, 21, 377, 326, 1534, 31766, 6333, 4993, 628, 374, 358, 404, 6333, 67, 20, 377, 2 ]
if work_data and not delete:
if work_data:
def save(self, formdata): """Update work and edition documents according to the specified formdata.""" comment = formdata.pop('_comment', '')
cadc7e6e94b4e798e21e2505f1000d44f01e287c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/cadc7e6e94b4e798e21e2505f1000d44f01e287c/addbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 30642, 4672, 3536, 1891, 1440, 471, 28432, 7429, 4888, 358, 326, 1269, 30642, 12123, 2879, 273, 30642, 18, 5120, 2668, 67, 3469, 2187, 28707, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 30642, 4672, 3536, 1891, 1440, 471, 28432, 7429, 4888, 358, 326, 1269, 30642, 12123, 2879, 273, 30642, 18, 5120, 2668, 67, 3469, 2187, 28707, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_do_under(i, t_off, tx)
_do_under(i, t_off+leftIndent, tx)
def drawPara(self,debug=0): """Draws a paragraph according to the given style. Returns the final y position at the bottom. Not safe for paragraphs without spaces e.g. Japanese; wrapping algorithm will go infinite."""
e1b6ae68ff0889c00107af6cf95dc49d2a194d6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/e1b6ae68ff0889c00107af6cf95dc49d2a194d6b/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 23529, 12, 2890, 16, 4148, 33, 20, 4672, 3536, 25113, 279, 10190, 4888, 358, 326, 864, 2154, 18, 2860, 326, 727, 677, 1754, 622, 326, 5469, 18, 2288, 4183, 364, 24552, 2887, 7292, 425, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3724, 23529, 12, 2890, 16, 4148, 33, 20, 4672, 3536, 25113, 279, 10190, 4888, 358, 326, 864, 2154, 18, 2860, 326, 727, 677, 1754, 622, 326, 5469, 18, 2288, 4183, 364, 24552, 2887, 7292, 425, 18, 75, 18, 804, 30472, 3392, 31, 14702, 4886, 903, 1960, 14853, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
class="zope.app.component.tests.views.V1" for="zope.app.component.tests.views.IC" attribute="action" permission="zope.Public" allowed_attributes="action" /> """
class="zope.app.component.tests.views.V1" for="zope.app.component.tests.views.IC" attribute="action" permission="zope.Public" allowed_attributes="action" /> '''
def testAttributeProtectedPage(self): xmlconfig(StringIO(template % """ <browser:page name="test" class="zope.app.component.tests.views.V1" for="zope.app.component.tests.views.IC" attribute="action" permission="zope.Public" allowed_attributes="action" /> """ ))
1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1499, 15933, 1964, 12, 2890, 4672, 2025, 1425, 12, 780, 4294, 12, 3202, 738, 3536, 411, 11213, 30, 2433, 508, 1546, 3813, 6, 667, 1546, 94, 1306, 18, 2910, 18, 4652, 18, 16341, 18, 7061, 18, 58, 21, 6, 364, 1546, 94, 1306, 18, 2910, 18, 4652, 18, 16341, 18, 7061, 18, 2871, 6, 1566, 1546, 1128, 6, 4132, 1546, 94, 1306, 18, 4782, 6, 2935, 67, 4350, 1546, 1128, 6, 20954, 9163, 8623, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1499, 15933, 1964, 12, 2890, 4672, 2025, 1425, 12, 780, 4294, 12, 3202, 738, 3536, 411, 11213, 30, 2433, 508, 1546, 3813, 6, 667, 1546, 94, 1306, 18, 2910, 18, 4652, 18, 16341, 18, 7061, 18, 58, 21, 6, 364, 1546, 94, 1306, 18, 2910, 18, 4652, 18, 16341, 18, 7061, 18, 2871, 6, 1566, 1546, 1128, 6, 4132, 1546, 94, 1306, 18, 4782, 6, 2935, 67, 4350, 1546, 1128, 6, 20954, 9163, 8623, 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 ]
exc_data = collector.collect_exception(*exc_info) debug_info = DebugInfo(count, exc_info, exc_data, base_path, environ) assert count not in self.debug_infos self.debug_infos[count] = debug_info
def detect_start_response(status, headers, exc_info=None): try: return start_response(status, headers, exc_info) except: raise else: started.append(True)
23e8ee954360c5dcd956fcb3b3d3cbe9f4d92852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/23e8ee954360c5dcd956fcb3b3d3cbe9f4d92852/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 775, 30, 327, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 13, 1335, 30, 1002, 469, 30, 5746, 18, 6923, 12, 5510, 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,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, 30, 5746, 18, 6923, 12, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
' %s' % cli_bracket ('tag /%s/rating not present' % user),
' %s' % cli_bracket('tag /%s/rating not present' % user),
def showUntagSuccessTest (self, mode): self.stealOutput () (flag, spec) = specify_DADGAD (mode, self.db.host) description = describe_by_mode (spec, mode) hostname = ['--hostname', choose_host()] args = ['show', '-v', flag, spec, 'rating', '/fluiddb/about'] + hostname execute_command_line(*parse_args(args)) self.reset () user = self.db.credentials.username self.assertEqual (self.out.buffer, ['Object %s:' % description, '\n', ' %s' % cli_bracket ('tag /%s/rating not present' % user),
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 57, 496, 346, 4510, 4709, 261, 2890, 16, 1965, 4672, 365, 18, 334, 73, 287, 1447, 1832, 261, 6420, 16, 857, 13, 273, 4800, 67, 40, 1880, 43, 1880, 261, 3188, 16, 365, 18, 1966, 18, 2564, 13, 2477, 273, 6401, 67, 1637, 67, 3188, 261, 2793, 16, 1965, 13, 5199, 273, 10228, 413, 10358, 2187, 9876, 67, 2564, 1435, 65, 833, 273, 10228, 4500, 2187, 2400, 90, 2187, 2982, 16, 857, 16, 296, 17326, 2187, 1173, 2242, 89, 1873, 70, 19, 21071, 3546, 397, 5199, 1836, 67, 3076, 67, 1369, 30857, 2670, 67, 1968, 12, 1968, 3719, 365, 18, 6208, 1832, 729, 273, 365, 18,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 57, 496, 346, 4510, 4709, 261, 2890, 16, 1965, 4672, 365, 18, 334, 73, 287, 1447, 1832, 261, 6420, 16, 857, 13, 273, 4800, 67, 40, 1880, 43, 1880, 261, 3188, 16, 365, 18, 1966, 18, 2564, 13, 2477, 273, 6401, 67, 1637, 67, 3188, 261, 2793, 16, 1965, 13, 5199, 273, 10228, 413, 10358, 2187, 9876, 67, 2564, 1435, 65, 833, 273, 10228, 4500, 2187, 2400, 90, 2187, 2982, 16, 857, 16, 296, 17326, 2187, 1173, 2242, 89, 1873, 70, 19, 21071, 3546, 397, 5199, 1836, 67, 3076, 67, 1369, 30857, 2670, 67, 1968, 12, 1968, 3719, 365, 18, 6208, 1832, 729, 273, 365, 18, 1966, 18, 11687, 18, 5053, 365, 18, 11231, 5812, 261, 2890, 2 ]
except: sys.stderr.write(u"! Error: Unknown error during a Movie (%s) information lookup\n" % tmdb_id)
except Exception, e: sys.stderr.write(u"! Error: Unknown error during a Movie (%s) information lookup\nError(%s)\n" % (tmdb_id, e))
def movieData(tmdb_id): '''Get Movie data by IMDB or TMDB number and return the details ''' try: return displayMovieData(self.searchTMDB(tmdb_id)) except TmdbMovieOrPersonNotFound, msg: sys.stderr.write(u"%s\n" % msg) return None except TmdHttpError, msg: sys.stderr.write(self.error_messages['TmdHttpError'] % msg) sys.exit(1) except TmdXmlError, msg: sys.stderr.write(self.error_messages['TmdXmlError'] % msg) sys.exit(1) except TmdBaseError, msg: sys.stderr.write(self.error_messages['TmdBaseError'] % msg) sys.exit(1) except TmdbUiAbort, msg: sys.stderr.write(self.error_messages['TmdbUiAbort'] % msg) sys.exit(1) except: sys.stderr.write(u"! Error: Unknown error during a Movie (%s) information lookup\n" % tmdb_id) sys.exit(1)
d513c9cd63054ab9cc5e68cbbb47082534949fc9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/d513c9cd63054ab9cc5e68cbbb47082534949fc9/tmdb_api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21360, 751, 12, 88, 27574, 67, 350, 4672, 9163, 967, 26963, 501, 635, 6246, 2290, 578, 27435, 2290, 1300, 471, 327, 326, 3189, 9163, 775, 30, 327, 2562, 16727, 13120, 751, 12, 2890, 18, 3072, 22903, 2290, 12, 88, 27574, 67, 350, 3719, 1335, 399, 27574, 16727, 13120, 1162, 8346, 2768, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 89, 28385, 87, 64, 82, 6, 738, 1234, 13, 327, 599, 1335, 399, 1264, 2940, 668, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 2890, 18, 1636, 67, 6833, 3292, 56, 1264, 2940, 668, 3546, 738, 1234, 13, 2589, 18, 8593, 12, 21, 13, 1335, 399, 1264, 4432, 668, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 2890, 18, 1636, 67, 6833, 3292, 56, 1264, 4432, 668, 3546, 738, 1234, 13, 2589, 18, 8593, 12, 21, 13, 1335, 399, 1264, 2171, 668, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 2890, 18, 1636, 67, 6833, 3292, 56, 1264, 2171, 668, 3546, 738, 1234, 13, 2589, 18, 8593, 12, 21, 13, 1335, 399, 27574, 13943, 13572, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 2890, 18, 1636, 67, 6833, 3292, 56, 27574, 13943, 13572, 3546, 738, 1234, 13, 2589, 18, 8593, 12, 21, 13, 1335, 1185, 16, 425, 30, 2589, 18, 11241, 18, 2626, 12, 89, 6, 5, 1068, 30, 9077, 555, 4982, 279, 26963, 6142, 87, 13, 1779, 3689, 64, 82, 668, 9275, 87, 5153, 82, 6, 738, 261, 88, 27574, 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, 21360, 751, 12, 88, 27574, 67, 350, 4672, 9163, 967, 26963, 501, 635, 6246, 2290, 578, 27435, 2290, 1300, 471, 327, 326, 3189, 9163, 775, 30, 327, 2562, 16727, 13120, 751, 12, 2890, 18, 3072, 22903, 2290, 12, 88, 27574, 67, 350, 3719, 1335, 399, 27574, 16727, 13120, 1162, 8346, 2768, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 89, 28385, 87, 64, 82, 6, 738, 1234, 13, 327, 599, 1335, 399, 1264, 2940, 668, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 12, 2890, 18, 1636, 67, 6833, 3292, 56, 1264, 2940, 668, 3546, 738, 1234, 13, 2589, 18, 8593, 12, 21, 13, 1335, 399, 1264, 4432, 668, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 2 ]
if len( attr ) > 0: return S_ERROR( "Proxies with VOMS extensions are not allowed to be uploaded" )
def __checkVOMSisAlignedWithGroup( self, userGroup, chain ): voms = VOMS() if not voms.vomsInfoAvailable(): if self.__vomsRequired: return S_ERROR( "VOMS is required, but it's not available" ) gLogger.warn( "voms-proxy-info is not available" ) return S_OK() retVal = voms.getVOMSAttributes( chain ) if not retVal[ 'OK' ]: return retVal attr = retVal[ 'Value' ] #HACK: We deny proxies with VOMS extensions if len( attr ) > 0: return S_ERROR( "Proxies with VOMS extensions are not allowed to be uploaded" ) #END HACK validVOMSAttr = CS.getVOMSAttributeForGroup( userGroup ) if len( attr ) == 0 or attr[0] == validVOMSAttr: return S_OK( 'OK' ) msg = "VOMS attributes are not aligned with dirac group" msg += "Attributes are %s and allowed is %s for group %s" % ( attr, validVOMSAttrs, userGroup ) return S_ERROR( msg )
e5c864247e94fee7e4ef9bf71e06e6a519c97a76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e5c864247e94fee7e4ef9bf71e06e6a519c97a76/ProxyDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 58, 1872, 55, 291, 28495, 1190, 1114, 12, 365, 16, 26205, 16, 2687, 262, 30, 331, 25390, 273, 776, 1872, 55, 1435, 309, 486, 331, 25390, 18, 90, 25390, 966, 5268, 13332, 309, 365, 16186, 90, 25390, 3705, 30, 327, 348, 67, 3589, 12, 315, 58, 1872, 55, 353, 1931, 16, 1496, 518, 1807, 486, 2319, 6, 262, 314, 3328, 18, 8935, 12, 315, 90, 25390, 17, 5656, 17, 1376, 353, 486, 2319, 6, 262, 327, 348, 67, 3141, 1435, 12197, 273, 331, 25390, 18, 588, 58, 1872, 55, 2498, 12, 2687, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 1604, 273, 12197, 63, 296, 620, 11, 308, 468, 44, 3649, 30, 1660, 17096, 13263, 598, 776, 1872, 55, 4418, 309, 562, 12, 1604, 262, 405, 374, 30, 327, 348, 67, 3589, 12, 315, 21488, 598, 776, 1872, 55, 4418, 854, 486, 2935, 358, 506, 9140, 6, 262, 468, 4415, 670, 3649, 923, 58, 1872, 55, 3843, 273, 6761, 18, 588, 58, 1872, 55, 1499, 1290, 1114, 12, 26205, 262, 309, 562, 12, 1604, 262, 422, 374, 578, 1604, 63, 20, 65, 422, 923, 58, 1872, 55, 3843, 30, 327, 348, 67, 3141, 12, 296, 3141, 11, 262, 1234, 273, 315, 58, 1872, 55, 1677, 854, 486, 13939, 598, 4314, 8836, 1041, 6, 1234, 1011, 315, 2498, 854, 738, 87, 471, 2935, 353, 738, 87, 364, 1041, 738, 87, 6, 738, 261, 1604, 16, 923, 58, 1872, 55, 8262, 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, 1001, 1893, 58, 1872, 55, 291, 28495, 1190, 1114, 12, 365, 16, 26205, 16, 2687, 262, 30, 331, 25390, 273, 776, 1872, 55, 1435, 309, 486, 331, 25390, 18, 90, 25390, 966, 5268, 13332, 309, 365, 16186, 90, 25390, 3705, 30, 327, 348, 67, 3589, 12, 315, 58, 1872, 55, 353, 1931, 16, 1496, 518, 1807, 486, 2319, 6, 262, 314, 3328, 18, 8935, 12, 315, 90, 25390, 17, 5656, 17, 1376, 353, 486, 2319, 6, 262, 327, 348, 67, 3141, 1435, 12197, 273, 331, 25390, 18, 588, 58, 1872, 55, 2498, 12, 2687, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 1604, 273, 12197, 63, 296, 620, 11, 308, 468, 44, 3649, 30, 2 ]
c.bookmarkPage("HYPER_1",fitType="XYZ",top=2.5*inch,bottom=2*inch)
c.bookmarkPage("HYPER_1",fit="XYZ",top=2.5*inch,bottom=2*inch)
def test1(self):
b3e8a12158cd0879ec0ae788465c6732c3f6ea3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b3e8a12158cd0879ec0ae788465c6732c3f6ea3f/test_pdfgen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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 21, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.data.append(string.split(line,"\012")[0])
self.data.append(line.split("\012")[0])
def __init__(self,infn): self.data=[] # init the data line list
c1bae8524e23e2baa66c77c949294c8844c8aef7 /local1/tlutelli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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 267, 4293, 4672, 225, 365, 18, 892, 33, 8526, 565, 468, 1208, 326, 501, 980, 666, 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 ]
Result is in form ['response', ['mesg_num octets', ...]]. Unsure what the optional 'msg' arg does.
Result without a msg argument is in form ['response', ['mesg_num octets', ...]]. Result when a msg argument is given is a single response: the "scan listing" for that message.
def list(self, which=None): """Request listing, return result. Result is in form ['response', ['mesg_num octets', ...]].
c897eafbf0599329e14a12d56dd59c0fdd3cec2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c897eafbf0599329e14a12d56dd59c0fdd3cec2b/poplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 1492, 33, 7036, 4672, 3536, 691, 11591, 16, 327, 563, 18, 3438, 353, 316, 646, 10228, 2740, 2187, 10228, 26244, 75, 67, 2107, 25497, 2187, 1372, 65, 8009, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 1492, 33, 7036, 4672, 3536, 691, 11591, 16, 327, 563, 18, 3438, 353, 316, 646, 10228, 2740, 2187, 10228, 26244, 75, 67, 2107, 25497, 2187, 1372, 65, 8009, 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 ]
sage: c in MPolynomialRing(IntegerRing(), 2, names = ['x','y'])
sage: c in PolynomialRing(IntegerRing(), 2, names = ['x','y'])
def coefficient(self, degrees): """ Return the coefficient of the variables with the degrees specified in the python dictionary \code{degrees}. Mathematically, this is the coefficient in the base ring adjoined by the variables of this ring not listed in \code{degrees}. However, the result has the same parent as this polynomial.
e89f4b7623729d917a65e264773ad36d042ad588 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e89f4b7623729d917a65e264773ad36d042ad588/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16554, 12, 2890, 16, 10904, 4672, 3536, 2000, 326, 16554, 434, 326, 3152, 598, 326, 10904, 1269, 316, 326, 5790, 3880, 521, 710, 95, 26943, 5496, 225, 2361, 351, 2126, 1230, 16, 333, 353, 326, 16554, 316, 326, 1026, 9221, 1261, 5701, 329, 635, 326, 3152, 434, 333, 9221, 486, 12889, 316, 521, 710, 95, 26943, 5496, 225, 10724, 16, 326, 563, 711, 326, 1967, 982, 487, 333, 16991, 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, 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326, 16554, 434, 326, 3152, 598, 326, 10904, 1269, 316, 326, 5790, 3880, 521, 710, 95, 26943, 5496, 225, 2361, 351, 2126, 1230, 16, 333, 353, 326, 16554, 316, 326, 1026, 9221, 1261, 5701, 329, 635, 326, 3152, 434, 333, 9221, 486, 12889, 316, 521, 710, 95, 26943, 5496, 225, 10724, 16, 326, 563, 711, 326, 1967, 982, 487, 333, 16991, 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 ]
tar = tarfile.open( archive_path, 'r:gz' )
tar = tarfile.open( archive_path, 'r:gz' )
def gunzip( archive_path, result_dir ): tar = tarfile.open( archive_path, 'r:gz' ) for tarinfo in tar: tar.extract( tarinfo, result_dir ) tar.close()
924b9589bcb28d88f7617f9a8d1924277a04063f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9980/924b9589bcb28d88f7617f9a8d1924277a04063f/setup_boostbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31475, 4450, 12, 5052, 67, 803, 16, 563, 67, 1214, 262, 30, 8232, 273, 25857, 18, 3190, 12, 5052, 67, 803, 16, 296, 86, 30, 9764, 11, 262, 364, 8232, 1376, 316, 8232, 30, 8232, 18, 8004, 12, 8232, 1376, 16, 563, 67, 1214, 262, 8232, 18, 4412, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31475, 4450, 12, 5052, 67, 803, 16, 563, 67, 1214, 262, 30, 8232, 273, 25857, 18, 3190, 12, 5052, 67, 803, 16, 296, 86, 30, 9764, 11, 262, 364, 8232, 1376, 316, 8232, 30, 8232, 18, 8004, 12, 8232, 1376, 16, 563, 67, 1214, 262, 8232, 18, 4412, 1435, 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 ]
alignment=TA_CENTER, spaceAfter=6)
alignment=TA_CENTER, spaceAfter=6)
def configureStyles(self): """Store some styles in instance attributes.
41742fc50332f407d9198cb1edd66fc71119226a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/41742fc50332f407d9198cb1edd66fc71119226a/pdfcal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 9725, 12, 2890, 4672, 3536, 2257, 2690, 5687, 316, 791, 1677, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 9725, 12, 2890, 4672, 3536, 2257, 2690, 5687, 316, 791, 1677, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'outlet/5', 'outlet/6', 'outlet/7', 'outlet/8',]
'outlet/5', 'outlet/6', 'outlet/7', 'outlet/8', 'group/ibobs']
def __init__(self, host, port=None): self.__conn = TelnetConnection(host, port) self.__conn.write('guppi\r') self.__conn.write('guppi\r') self.__conn.read_until('iBootBar > ') # For some reason it eats the first character after this... # sending a non-whitespace character seems to fix it # (i.e., sending a space breaks the parsing on the box) self.__conn.write('\x08') # ASCII backspace self.__kwds = ['outlet/1', 'outlet/2', 'outlet/3', 'outlet/4', 'outlet/5', 'outlet/6', 'outlet/7', 'outlet/8',]
5c5d62c8ee0c046bb04be315992854284884cd3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/5c5d62c8ee0c046bb04be315992854284884cd3e/powerstrip_agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 16, 1756, 33, 7036, 4672, 365, 16186, 4646, 273, 399, 292, 2758, 1952, 12, 2564, 16, 1756, 13, 365, 16186, 4646, 18, 2626, 2668, 75, 416, 7259, 64, 86, 6134, 365, 16186, 4646, 18, 2626, 2668, 75, 416, 7259, 64, 86, 6134, 365, 16186, 4646, 18, 896, 67, 12198, 2668, 77, 15817, 5190, 405, 8624, 468, 2457, 2690, 3971, 518, 425, 2323, 326, 1122, 3351, 1839, 333, 2777, 468, 5431, 279, 1661, 17, 18777, 3351, 12001, 358, 2917, 518, 468, 261, 77, 18, 73, 12990, 5431, 279, 3476, 16217, 326, 5811, 603, 326, 3919, 13, 365, 16186, 4646, 18, 2626, 2668, 64, 92, 6840, 6134, 468, 11768, 1473, 2981, 365, 16186, 25577, 273, 10228, 659, 1810, 19, 21, 2187, 296, 659, 1810, 19, 22, 2187, 296, 659, 1810, 19, 23, 2187, 296, 659, 1810, 19, 24, 2187, 296, 659, 1810, 19, 25, 2187, 296, 659, 1810, 19, 26, 2187, 296, 659, 1810, 19, 27, 2187, 296, 659, 1810, 19, 28, 2187, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 1479, 16, 1756, 33, 7036, 4672, 365, 16186, 4646, 273, 399, 292, 2758, 1952, 12, 2564, 16, 1756, 13, 365, 16186, 4646, 18, 2626, 2668, 75, 416, 7259, 64, 86, 6134, 365, 16186, 4646, 18, 2626, 2668, 75, 416, 7259, 64, 86, 6134, 365, 16186, 4646, 18, 896, 67, 12198, 2668, 77, 15817, 5190, 405, 8624, 468, 2457, 2690, 3971, 518, 425, 2323, 326, 1122, 3351, 1839, 333, 2777, 468, 5431, 279, 1661, 17, 18777, 3351, 12001, 358, 2917, 518, 468, 261, 77, 18, 73, 12990, 5431, 279, 3476, 16217, 326, 5811, 603, 326, 3919, 13, 365, 16186, 4646, 18, 2626, 2668, 64, 92, 6840, 6134, 468, 11768, 1473, 2981, 365, 16186, 2 ]
this = apply(_quickfix.new_MDEntryID, args)
this = _quickfix.new_MDEntryID(*args)
def __init__(self, *args): this = apply(_quickfix.new_MDEntryID, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6188, 1622, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6188, 1622, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
apply(self.tk.call, (self._w, 'add', name) + self._options(cnf, kw)) self.subwidget_list[name] = TixSubWidget(self, name, check_intermediate=0) return self.subwidget_list[name]
apply(self.tk.call, (self._w, 'add', name) + self._options(cnf, kw)) self.subwidget_list[name] = TixSubWidget(self, name, check_intermediate=0) return self.subwidget_list[name]
def add(self, name, cnf={}, **kw):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 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, 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 ]
sys.stderr.write("Aborting tabulate of binomial P\n")
sys.stderr.write("Aborting tabulation of binomial P\n")
def estimateDQbackground(self): """ This method looks at the self.resultlist inside the instance. Using this and 1000 generated time stamp it tabulates a ranking of flag prevelance, binomial probability 'p' """ if len(self.resultList) < 1: self.__backgroundResults__=list() self.__backgroundTimesDict__=dict() self.__backgroundDict__=dict() self.__haveBackgroundDict__=bool(False) return #Create DQ background, specify pickle locale to try and load first #Determine which IFOs from DQ listing uniqIfos=list() for ifo,b,c,d,e,f in self.resultList: if ifo not in uniqIfos: uniqIfos.append(ifo) ifoEpochList=[(x,getRunEpoch(self.triggerTime,x)) for x in uniqIfos] self.createDQbackground(ifoEpochList,self.__backgroundPickle__) #Calculate the binomial 'p' value for the flags in the table. if self.resultList < 1: sys.stderr.write("Aborting tabulate of binomial P\n") os.abort() seenFlags=dict() for ifo,name,version,comment,start,stop in self.resultList: if ifo.strip() not in seenFlags.keys(): seenFlags[ifo]=list() seenFlags[ifo].append(name) for myIfo,flagList in seenFlags.iteritems(): tmpFlags=list() for backgroundTime,backgroundFlags in \ self.__backgroundDict__[myIfo.strip()].iteritems(): tmpFlags.extend([name for ifo,name,ver,com,start,stop in backgroundFlags]) if myIfo not in self.__backgroundResults__.keys(): self.__backgroundResults__[myIfo]=dict() for myFlag in seenFlags[myIfo]: self.__backgroundResults__[myIfo][myFlag]=tmpFlags.count(myFlag)/float(self.__backgroundPoints__) self.__haveBackgroundDict__=True #Return background estimating
5800af6be75ac2540e1e98d21cc7afadf15bf2aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/5800af6be75ac2540e1e98d21cc7afadf15bf2aa/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11108, 40, 53, 9342, 12, 2890, 4672, 3536, 1220, 707, 10192, 622, 326, 365, 18, 2088, 1098, 4832, 326, 791, 18, 11637, 333, 471, 4336, 4374, 813, 14429, 518, 3246, 17099, 279, 23087, 434, 2982, 675, 941, 1359, 16, 4158, 11496, 11331, 296, 84, 11, 3536, 309, 562, 12, 2890, 18, 2088, 682, 13, 411, 404, 30, 365, 16186, 9342, 3447, 972, 33, 1098, 1435, 365, 16186, 9342, 10694, 5014, 972, 33, 1576, 1435, 365, 16186, 9342, 5014, 972, 33, 1576, 1435, 365, 16186, 21516, 8199, 5014, 972, 33, 6430, 12, 8381, 13, 327, 468, 1684, 463, 53, 5412, 16, 4800, 13379, 2573, 358, 775, 471, 1262, 1122, 468, 8519, 1492, 467, 3313, 87, 628, 463, 53, 11591, 10748, 2047, 538, 33, 1098, 1435, 364, 21479, 16, 70, 16, 71, 16, 72, 16, 73, 16, 74, 316, 365, 18, 2088, 682, 30, 309, 21479, 486, 316, 10748, 2047, 538, 30, 10748, 2047, 538, 18, 6923, 12, 20299, 13, 21479, 14638, 682, 22850, 12, 92, 16, 588, 1997, 14638, 12, 2890, 18, 10668, 950, 16, 92, 3719, 364, 619, 316, 10748, 2047, 538, 65, 365, 18, 2640, 40, 53, 9342, 12, 20299, 14638, 682, 16, 2890, 16186, 9342, 17968, 298, 972, 13, 468, 8695, 326, 4158, 11496, 296, 84, 11, 460, 364, 326, 2943, 316, 326, 1014, 18, 309, 365, 18, 2088, 682, 411, 404, 30, 2589, 18, 11241, 18, 2626, 2932, 13572, 310, 3246, 6234, 434, 4158, 11496, 453, 64, 82, 7923, 1140, 18, 18623, 1435, 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, 11108, 40, 53, 9342, 12, 2890, 4672, 3536, 1220, 707, 10192, 622, 326, 365, 18, 2088, 1098, 4832, 326, 791, 18, 11637, 333, 471, 4336, 4374, 813, 14429, 518, 3246, 17099, 279, 23087, 434, 2982, 675, 941, 1359, 16, 4158, 11496, 11331, 296, 84, 11, 3536, 309, 562, 12, 2890, 18, 2088, 682, 13, 411, 404, 30, 365, 16186, 9342, 3447, 972, 33, 1098, 1435, 365, 16186, 9342, 10694, 5014, 972, 33, 1576, 1435, 365, 16186, 9342, 5014, 972, 33, 1576, 1435, 365, 16186, 21516, 8199, 5014, 972, 33, 6430, 12, 8381, 13, 327, 468, 1684, 463, 53, 5412, 16, 4800, 13379, 2573, 358, 775, 471, 1262, 1122, 468, 8519, 1492, 467, 3313, 87, 628, 463, 53, 11591, 2 ]
ws = Workspace.objects.get(pk = ws_pk)
ws = DAMWorkspace.objects.get(pk = ws_pk)
def test_delete(self): ws_pk = 1 ws = Workspace.objects.get(pk = ws_pk) node_id = Node.objects.get(label = 'test').pk params = self.get_final_parameters({}) response = self.client.get('/api/keyword/%s/delete/'%node_id, params, ) self.assertTrue(response.content == '') self.assertRaises(Node.DoesNotExist, Node.objects.get, pk = node_id )
774c03fcc85d5555c72b71c04da9a7d1a510e957 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/774c03fcc85d5555c72b71c04da9a7d1a510e957/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 12, 2890, 4672, 4945, 67, 5465, 273, 404, 4945, 273, 463, 2192, 8241, 18, 6911, 18, 588, 12, 5465, 273, 4945, 67, 5465, 13, 756, 67, 350, 273, 2029, 18, 6911, 18, 588, 12, 1925, 273, 296, 3813, 16063, 5465, 225, 859, 273, 365, 18, 588, 67, 6385, 67, 3977, 23506, 13, 766, 273, 365, 18, 2625, 18, 588, 2668, 19, 2425, 19, 11041, 5258, 87, 19, 3733, 2473, 9, 2159, 67, 350, 16, 859, 16, 225, 262, 225, 365, 18, 11231, 5510, 12, 2740, 18, 1745, 422, 28707, 365, 18, 11231, 12649, 6141, 12, 907, 18, 15264, 16, 225, 2029, 18, 6911, 18, 588, 16, 2365, 273, 756, 67, 350, 262, 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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0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 12, 2890, 4672, 4945, 67, 5465, 273, 404, 4945, 273, 463, 2192, 8241, 18, 6911, 18, 588, 12, 5465, 273, 4945, 67, 5465, 13, 756, 67, 350, 273, 2029, 18, 6911, 18, 588, 12, 1925, 273, 296, 3813, 16063, 5465, 225, 859, 273, 365, 18, 588, 67, 6385, 67, 3977, 23506, 13, 766, 273, 365, 18, 2625, 18, 588, 2668, 19, 2425, 19, 11041, 5258, 87, 19, 3733, 2473, 9, 2159, 67, 350, 16, 859, 16, 225, 262, 225, 365, 18, 11231, 5510, 12, 2740, 18, 1745, 422, 28707, 365, 18, 11231, 12649, 6141, 12, 907, 18, 15264, 16, 225, 2029, 18, 6911, 18, 588, 16, 2365, 273, 756, 67, 350, 262, 225, 2, -100, -100 ]
expect(f.read(1), 'a')
expect(f.read(1), b'a')
def expect(got_this, expect_this): if test_support.verbose: print('%r =?= %r ...' % (got_this, expect_this), end=' ') if got_this != expect_this: if test_support.verbose: print('no') raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print('yes')
6344d6c1d81593e2a7896fa9237ea294deb05218 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/6344d6c1d81593e2a7896fa9237ea294deb05218/test_largefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 29909, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 3631, 679, 2218, 8624, 309, 2363, 67, 2211, 480, 4489, 67, 2211, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 2135, 6134, 1002, 1842, 67, 13261, 18, 4709, 2925, 16, 296, 13212, 738, 86, 16, 1496, 2665, 738, 86, 11, 738, 64, 261, 13212, 67, 2211, 16, 4489, 67, 2211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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, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 29909, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 3631, 679, 2218, 8624, 309, 2363, 67, 2211, 480, 4489, 67, 2211, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 2135, 6134, 1002, 1842, 67, 13261, 18, 4709, 2925, 16, 296, 13212, 738, 86, 16, 1496, 2665, 738, 86, 11, 738, 64, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 13, 469, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 9707, 6134, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return '<%(cls)s %(fname)r (%(mime)s, %(size)d bytes)>' % {
return '<%(cls)s %(fname)r (%(mime)s, %(size)r bytes)>' % {
def __repr__(self): return '<%(cls)s %(fname)r (%(mime)s, %(size)d bytes)>' % { 'cls': self.__class__.__name__, 'fname': self.filename, 'mime': self.content_type, 'size': self.size, }
5373d07db321aa6d718323e67c11d373636beb24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/5373d07db321aa6d718323e67c11d373636beb24/NyBlobFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 17105, 6429, 13, 87, 8975, 12749, 13, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 17105, 6429, 13, 87, 8975, 12749, 13, 86, 6142, 12, 11757, 13, 87, 16, 8975, 1467, 13, 86, 1731, 13, 1870, 738, 288, 296, 6429, 4278, 365, 16186, 1106, 972, 16186, 529, 972, 16, 296, 12749, 4278, 365, 18, 3459, 16, 296, 11757, 4278, 365, 18, 1745, 67, 723, 16, 296, 1467, 4278, 365, 18, 1467, 16, 289, 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 ]
("html", self.endTagHtml)
("html", self.endTagHtml), (("title", "style", "script"), self.endTagTitleStyleScript)
def processEndTag(self, name): if self.collectingCharacters: self.finishCollectingCharacters(name, True) handlers = utils.MethodDispatcher([ ("head", self.endTagHead), ("html", self.endTagHtml) ]) handlers.setDefaultValue(self.endTagOther) handlers[name](name)
07650463dcb1bc09b64ca00c142a11fe777079c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/07650463dcb1bc09b64ca00c142a11fe777079c1/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 508, 4672, 309, 365, 18, 14676, 310, 11600, 30, 365, 18, 13749, 10808, 310, 11600, 12, 529, 16, 1053, 13, 4919, 273, 2990, 18, 1305, 6681, 3816, 7566, 1978, 3113, 365, 18, 409, 1805, 1414, 3631, 7566, 2620, 3113, 365, 18, 409, 1805, 4353, 3631, 261, 2932, 2649, 3113, 315, 4060, 3113, 315, 4263, 6, 3631, 365, 18, 409, 1805, 4247, 2885, 3651, 13, 308, 13, 4919, 18, 542, 15646, 12, 2890, 18, 409, 1805, 8290, 13, 4919, 63, 529, 29955, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 508, 4672, 309, 365, 18, 14676, 310, 11600, 30, 365, 18, 13749, 10808, 310, 11600, 12, 529, 16, 1053, 13, 4919, 273, 2990, 18, 1305, 6681, 3816, 7566, 1978, 3113, 365, 18, 409, 1805, 1414, 3631, 7566, 2620, 3113, 365, 18, 409, 1805, 4353, 3631, 261, 2932, 2649, 3113, 315, 4060, 3113, 315, 4263, 6, 3631, 365, 18, 409, 1805, 4247, 2885, 3651, 13, 308, 13, 4919, 18, 542, 15646, 12, 2890, 18, 409, 1805, 8290, 13, 4919, 63, 529, 29955, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if request.method == 'POST': return redirect('language') else: languages = Language.objects.order_by("-id")[offset:limit] if(languages): json_subcat = serializers.serialize("json", languages) else: json_subcat = 'EOF' return HttpResponse(json_subcat, mimetype="application/javascript")
if request.method == 'POST': return redirect('language') else: languages = Language.objects.order_by("-id")[offset:limit] if(languages): json_subcat = serializers.serialize("json", languages) else: json_subcat = 'EOF' return HttpResponse(json_subcat, mimetype="application/javascript")
def get_languages_online(request, offset, limit): if request.method == 'POST': return redirect('language') else: languages = Language.objects.order_by("-id")[offset:limit] if(languages): json_subcat = serializers.serialize("json", languages) else: json_subcat = 'EOF' return HttpResponse(json_subcat, mimetype="application/javascript")
7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14045, 67, 21026, 12, 2293, 16, 1384, 16, 1800, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 327, 3136, 2668, 4923, 6134, 469, 30, 8191, 273, 9889, 18, 6911, 18, 1019, 67, 1637, 2932, 17, 350, 7923, 63, 3348, 30, 3595, 65, 309, 12, 14045, 4672, 1163, 67, 1717, 2574, 273, 24782, 18, 6288, 2932, 1977, 3113, 8191, 13, 469, 30, 1163, 67, 1717, 2574, 273, 296, 12706, 11, 327, 9476, 12, 1977, 67, 1717, 2574, 16, 12595, 1546, 3685, 19, 11242, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14045, 67, 21026, 12, 2293, 16, 1384, 16, 1800, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 327, 3136, 2668, 4923, 6134, 469, 30, 8191, 273, 9889, 18, 6911, 18, 1019, 67, 1637, 2932, 17, 350, 7923, 63, 3348, 30, 3595, 65, 309, 12, 14045, 4672, 1163, 67, 1717, 2574, 273, 24782, 18, 6288, 2932, 1977, 3113, 8191, 13, 469, 30, 1163, 67, 1717, 2574, 273, 296, 12706, 11, 327, 9476, 12, 1977, 67, 1717, 2574, 16, 12595, 1546, 3685, 19, 11242, 7923, 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 ]
@setting(62, "Start Fast Recording") def start_fast_recording(self, c): """ Start fast recording temperature. Will start recording temperature if not before. """ self.selectedDevice(c).startFastRecording() @setting(63, "Stop Fast Recording") def stop_fast_recording(self, c): """ Stop fast recording temperature. Regular temperature recording will continue. """ self.selectedDevice(c).stopFastRecording() @setting(64, "Recording Status") def recording_status(self, c): """ Returns whether recording, recording fast, or not recording at all. """ dev = self.selectedDevice(c) if dev.state('recordFast'): return "Fast Recording" elif dev.state('recordTemp'): return "Recording" else: return "Not Recording"
@setting(62, "Is Recording") def is_recording(self, c): """ Returns whether recording or not. """ dev = self.selectedDevice(c) return dev.state('recordTemp')
def stop_recording(self, c): """ Stop recording temp. """ self.selectedDevice(c).stopRecording()
ecc133167eefb5fe6d901da9bd5da2284e919371 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/ecc133167eefb5fe6d901da9bd5da2284e919371/ADR.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 67, 3366, 310, 12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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 67, 3366, 310, 12, 2890, 16, 276, 4672, 3536, 5131, 14949, 1906, 18, 3536, 365, 18, 8109, 3654, 12, 71, 2934, 5681, 21037, 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, -100, -100 ]
if i+1 in ele_pos_map.keys():
if i in ele_pos_map.keys():
def gen_seg(self, seg_data, src, err_node_list): """ Find error seg for this segment. Find any skipped error values. ID pos of bad value. @param seg_data: data segment instance """ cur_line = src.cur_line
4cc131951b2f2d09daaa4f066d42f77d82b8ee10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/4cc131951b2f2d09daaa4f066d42f77d82b8ee10/error_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 5680, 12, 2890, 16, 2291, 67, 892, 16, 1705, 16, 393, 67, 2159, 67, 1098, 4672, 3536, 4163, 555, 2291, 364, 333, 3267, 18, 4163, 1281, 9700, 555, 924, 18, 1599, 949, 434, 5570, 460, 18, 632, 891, 2291, 67, 892, 30, 501, 3267, 791, 3536, 662, 67, 1369, 273, 1705, 18, 1397, 67, 1369, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 5680, 12, 2890, 16, 2291, 67, 892, 16, 1705, 16, 393, 67, 2159, 67, 1098, 4672, 3536, 4163, 555, 2291, 364, 333, 3267, 18, 4163, 1281, 9700, 555, 924, 18, 1599, 949, 434, 5570, 460, 18, 632, 891, 2291, 67, 892, 30, 501, 3267, 791, 3536, 662, 67, 1369, 273, 1705, 18, 1397, 67, 1369, 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 ]
def antiphi(self,l):
def antiphi(self, l):
def antiphi(self,l): """ Inverse of self.phi.
26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 328, 4672, 3536, 657, 2476, 434, 365, 18, 9973, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 328, 4672, 3536, 657, 2476, 434, 365, 18, 9973, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return symmetrica.mult_schur_schur(left, right)
if left and right: return symmetrica.mult_schur_schur(left, right) else: return A._from_dict({})
def _multiply(self, left, right): """ TESTS: sage: s = SFASchur(QQ) sage: a = s([2,1]) + 1; a s[] + s[2, 1] sage: a^2 # indirect doctest s[] + 2*s[2, 1] + s[2, 2, 1, 1] + s[2, 2, 2] + s[3, 1, 1, 1] + 2*s[3, 2, 1] + s[3, 3] + s[4, 1, 1] + s[4, 2]
233ac4e2d286fa04c5d23492661deed974684c8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/233ac4e2d286fa04c5d23492661deed974684c8c/schur.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7027, 1283, 12, 2890, 16, 2002, 16, 2145, 4672, 3536, 22130, 55, 30, 272, 410, 30, 272, 273, 348, 2046, 55, 343, 295, 12, 53, 53, 13, 272, 410, 30, 279, 273, 272, 3816, 22, 16, 21, 5717, 397, 404, 31, 279, 272, 8526, 397, 272, 63, 22, 16, 404, 65, 272, 410, 30, 279, 66, 22, 282, 468, 16807, 31263, 395, 272, 8526, 397, 576, 14, 87, 63, 22, 16, 404, 65, 397, 272, 63, 22, 16, 576, 16, 404, 16, 404, 65, 397, 272, 63, 22, 16, 576, 16, 576, 65, 397, 272, 63, 23, 16, 404, 16, 404, 16, 404, 65, 397, 576, 14, 87, 63, 23, 16, 576, 16, 404, 65, 397, 272, 63, 23, 16, 890, 65, 397, 272, 63, 24, 16, 404, 16, 404, 65, 397, 272, 63, 24, 16, 576, 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,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272, 273, 348, 2046, 55, 343, 295, 12, 53, 53, 13, 272, 410, 30, 279, 273, 272, 3816, 22, 16, 21, 5717, 397, 404, 31, 279, 272, 8526, 397, 272, 63, 22, 16, 404, 65, 272, 410, 30, 279, 66, 22, 282, 468, 16807, 31263, 395, 272, 8526, 397, 576, 14, 87, 63, 22, 16, 404, 65, 397, 272, 63, 22, 16, 576, 16, 404, 16, 404, 65, 397, 272, 63, 22, 16, 576, 16, 576, 65, 397, 272, 63, 23, 16, 404, 16, 404, 16, 404, 65, 397, 576, 14, 87, 63, 23, 16, 576, 16, 404, 65, 397, 272, 2 ]
Factors so far: []
Proper factors so far: []
def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ if time: out = out.strip() w = out.split('\n') for i in range(len(w)): if 'user' in w: break if i < len(w): t = w[i].strip() out = '\n'.join([w[j] for j in range(i)]) else: t = '' else: t = '' Z = sage.rings.integer.Integer i = out.find(':') if i == -1: return [] v = out[i+1:].split() v = list(set([Z(m) for m in v if Z(m) != n])) v.sort() return v, t
216211ae40b16e6f8b3be4e466b1c580e50edf1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/216211ae40b16e6f8b3be4e466b1c580e50edf1b/qsieve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 869, 67, 1098, 12, 659, 16, 290, 16, 813, 4672, 3536, 4037, 876, 434, 670, 485, 1807, 272, 21271, 471, 290, 358, 279, 666, 471, 813, 18, 225, 12943, 30, 596, 1493, 4439, 434, 977, 876, 434, 670, 485, 1807, 27258, 20004, 55, 21271, 5402, 290, 1493, 326, 3571, 3832, 5410, 7653, 225, 11550, 30, 666, 1493, 5338, 14490, 1392, 1427, 10247, 609, 1493, 813, 1779, 3536, 309, 813, 30, 596, 273, 596, 18, 6406, 1435, 341, 273, 596, 18, 4939, 2668, 64, 82, 6134, 364, 277, 316, 1048, 12, 1897, 12, 91, 3719, 30, 309, 296, 1355, 11, 316, 341, 30, 898, 309, 277, 411, 562, 12, 91, 4672, 268, 273, 341, 63, 77, 8009, 6406, 1435, 596, 273, 2337, 82, 10332, 5701, 3816, 91, 63, 78, 65, 364, 525, 316, 1048, 12, 77, 13, 5717, 469, 30, 268, 273, 875, 469, 30, 268, 273, 875, 2285, 273, 272, 410, 18, 86, 899, 18, 7745, 18, 4522, 277, 273, 596, 18, 4720, 2668, 2497, 13, 309, 277, 422, 300, 21, 30, 327, 5378, 331, 273, 596, 63, 77, 15, 21, 30, 8009, 4939, 1435, 331, 273, 666, 12, 542, 3816, 62, 12, 81, 13, 364, 312, 316, 331, 309, 2285, 12, 81, 13, 480, 290, 22643, 331, 18, 3804, 1435, 327, 331, 16, 268, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 869, 67, 1098, 12, 659, 16, 290, 16, 813, 4672, 3536, 4037, 876, 434, 670, 485, 1807, 272, 21271, 471, 290, 358, 279, 666, 471, 813, 18, 225, 12943, 30, 596, 1493, 4439, 434, 977, 876, 434, 670, 485, 1807, 27258, 20004, 55, 21271, 5402, 290, 1493, 326, 3571, 3832, 5410, 7653, 225, 11550, 30, 666, 1493, 5338, 14490, 1392, 1427, 10247, 609, 1493, 813, 1779, 3536, 309, 813, 30, 596, 273, 596, 18, 6406, 1435, 341, 273, 596, 18, 4939, 2668, 64, 82, 6134, 364, 277, 316, 1048, 12, 1897, 12, 91, 3719, 30, 309, 296, 1355, 11, 316, 341, 30, 898, 309, 277, 411, 562, 12, 91, 4672, 268, 273, 341, 63, 77, 8009, 2 ]
extensions.appendExten(self.name, "Queue(%s|Tth)" % self.name)
if self.ring: extensions.appendExten(self.name, "Queue(%s|Tthr)" % self.name) elif self.moh: extensions.appendExten(self.name, "SetMusicOnHold(%s)" % self.moh) extensions.appendExten(self.name, "Queue(%s|Tth)" % self.name)
def createAsteriskConfig(self): needModule("app_queue") needModule("res_monitor")
9d4de284956523b5f2992f0d750ca7a716400d45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2627/9d4de284956523b5f2992f0d750ca7a716400d45/cfg_phone_queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672,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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, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 2910, 67, 4000, 7923, 1608, 3120, 2932, 455, 67, 10259, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(envraStr, rpmpath) = string.split(line,'=')
(envraStr, rpmpath) = string.split(line, '=')
def HeaderInfoNevralLoad(filename, nevral, serverid): info = [] in_file = open(filename,'r') while 1: in_line = in_file.readline() if in_line == '': break info.append(in_line) in_file.close() for line in info: (envraStr, rpmpath) = string.split(line,'=') (epoch, name, ver, rel, arch) = stripENVRA(envraStr) rpmpath = string.replace(rpmpath, '\n','') if name not in conf.excludes: if conf.pkgpolicy == 'last': nevral.add((name, epoch, ver, rel, arch, rpmpath, serverid), 'a') else: if nevral.exists(name, arch): (e1, v1, r1) = nevral.evr(name, arch) (e2, v2, r2) = (epoch, ver, rel) rc = compareEVR((e1, v1, r1), (e2, v2, r2)) if (rc < 0): # ooo the second one is newer - push it in. nevral.add((name, epoch, ver, rel, arch, rpmpath, serverid), 'a') else: nevral.add((name, epoch, ver, rel, arch, rpmpath, serverid), 'a')
e7852c63a5b8d228ffcaf8685bd9ef2f040a51ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/e7852c63a5b8d228ffcaf8685bd9ef2f040a51ef/clientStuff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4304, 966, 6586, 18090, 287, 2563, 12, 3459, 16, 1073, 18090, 287, 16, 1438, 350, 4672, 1123, 273, 5378, 316, 67, 768, 273, 1696, 12, 3459, 11189, 86, 6134, 1323, 404, 30, 316, 67, 1369, 273, 316, 67, 768, 18, 896, 1369, 1435, 309, 316, 67, 1369, 422, 875, 30, 898, 1123, 18, 6923, 12, 267, 67, 1369, 13, 316, 67, 768, 18, 4412, 1435, 225, 364, 980, 316, 1123, 30, 261, 3074, 354, 1585, 16, 25228, 803, 13, 273, 533, 18, 4939, 12, 1369, 16, 5214, 13, 261, 12015, 16, 508, 16, 1924, 16, 1279, 16, 6637, 13, 273, 2569, 11986, 2849, 12, 3074, 354, 1585, 13, 25228, 803, 273, 533, 18, 2079, 12, 86, 7755, 803, 16, 2337, 82, 17023, 6134, 309, 508, 486, 316, 2195, 18, 338, 8993, 30, 309, 2195, 18, 10657, 5086, 422, 296, 2722, 4278, 1073, 18090, 287, 18, 1289, 12443, 529, 16, 7632, 16, 1924, 16, 1279, 16, 6637, 16, 25228, 803, 16, 1438, 350, 3631, 296, 69, 6134, 469, 30, 309, 1073, 18090, 287, 18, 1808, 12, 529, 16, 6637, 4672, 261, 73, 21, 16, 331, 21, 16, 436, 21, 13, 273, 1073, 18090, 287, 18, 14965, 86, 12, 529, 16, 6637, 13, 261, 73, 22, 16, 331, 22, 16, 436, 22, 13, 273, 261, 12015, 16, 1924, 16, 1279, 13, 4519, 273, 3400, 41, 10986, 12443, 73, 21, 16, 331, 21, 16, 436, 21, 3631, 261, 73, 22, 16, 331, 22, 16, 436, 22, 3719, 309, 261, 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, 4304, 966, 6586, 18090, 287, 2563, 12, 3459, 16, 1073, 18090, 287, 16, 1438, 350, 4672, 1123, 273, 5378, 316, 67, 768, 273, 1696, 12, 3459, 11189, 86, 6134, 1323, 404, 30, 316, 67, 1369, 273, 316, 67, 768, 18, 896, 1369, 1435, 309, 316, 67, 1369, 422, 875, 30, 898, 1123, 18, 6923, 12, 267, 67, 1369, 13, 316, 67, 768, 18, 4412, 1435, 225, 364, 980, 316, 1123, 30, 261, 3074, 354, 1585, 16, 25228, 803, 13, 273, 533, 18, 4939, 12, 1369, 16, 5214, 13, 261, 12015, 16, 508, 16, 1924, 16, 1279, 16, 6637, 13, 273, 2569, 11986, 2849, 12, 3074, 354, 1585, 13, 25228, 803, 273, 533, 18, 2079, 12, 86, 7755, 803, 2 ]
for line in output.split('\n'):
for line in output.split( '\n' ):
def __parseJobStatus(self,output): """ Parse the output of the glite-ce-job-status """ resultDict = {} ref = '' for line in output.split('\n'): if not line: continue match = re.search('JobID=\[(.*)\]',line) if match and len(match.groups()) == 1: ref = match.group(1) match = re.search('Status.*\[(.*)\]',line) if match and len(match.groups()) == 1: creamStatus = match.group(1) if creamStatus in ['DONE-OK']: resultDict[ref] = 'Done' elif creamStatus in ['DONE-FAILED']: resultDict[ref] = 'Failed' elif creamStatus in ['REGISTERED','PENDING','IDLE']: resultDict[ref] = 'Scheduled' elif creamStatus in ['ABORTED']: resultDict[ref] = 'Aborted' elif creamStatus in ['CANCELLED']: resultDict[ref] = 'Killed' elif creamStatus in ['RUNNING','REALLY-RUNNING']: resultDict[ref] = 'Running' elif creamStatus == 'N/A': resultDict[ref] = 'Unknown' else: resultDict[ref] = creamStatus.capitalize()
45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 23422, 12, 2890, 16, 2844, 4672, 3536, 2884, 326, 876, 434, 326, 5118, 1137, 17, 311, 17, 4688, 17, 2327, 3536, 563, 5014, 273, 2618, 1278, 273, 875, 364, 980, 316, 876, 18, 4939, 12, 2337, 82, 11, 262, 30, 309, 486, 980, 30, 1324, 845, 273, 283, 18, 3072, 2668, 2278, 734, 18206, 63, 27816, 65, 2187, 1369, 13, 309, 845, 471, 562, 12, 1916, 18, 4650, 10756, 422, 404, 30, 1278, 273, 845, 18, 1655, 12, 21, 13, 845, 273, 283, 18, 3072, 2668, 1482, 4509, 64, 63, 27816, 65, 2187, 1369, 13, 309, 845, 471, 562, 12, 1916, 18, 4650, 10756, 422, 404, 30, 276, 793, 1482, 273, 845, 18, 1655, 12, 21, 13, 309, 276, 793, 1482, 316, 10228, 26875, 17, 3141, 3546, 30, 563, 5014, 63, 1734, 65, 273, 296, 7387, 11, 1327, 276, 793, 1482, 316, 10228, 26875, 17, 11965, 3546, 30, 563, 5014, 63, 1734, 65, 273, 296, 2925, 11, 1327, 276, 793, 1482, 316, 10228, 27511, 2056, 17023, 25691, 17023, 734, 900, 3546, 30, 563, 5014, 63, 1734, 65, 273, 296, 10660, 11, 1327, 276, 793, 1482, 316, 10228, 2090, 11245, 3546, 30, 563, 5014, 63, 1734, 65, 273, 296, 27821, 11, 1327, 276, 793, 1482, 316, 10228, 25268, 6687, 3546, 30, 563, 5014, 63, 1734, 65, 273, 296, 47, 13148, 11, 1327, 276, 793, 1482, 316, 10228, 29358, 17023, 862, 4685, 61, 17, 29358, 3546, 30, 563, 5014, 63, 1734, 65, 273, 296, 7051, 11, 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, 2670, 23422, 12, 2890, 16, 2844, 4672, 3536, 2884, 326, 876, 434, 326, 5118, 1137, 17, 311, 17, 4688, 17, 2327, 3536, 563, 5014, 273, 2618, 1278, 273, 875, 364, 980, 316, 876, 18, 4939, 12, 2337, 82, 11, 262, 30, 309, 486, 980, 30, 1324, 845, 273, 283, 18, 3072, 2668, 2278, 734, 18206, 63, 27816, 65, 2187, 1369, 13, 309, 845, 471, 562, 12, 1916, 18, 4650, 10756, 422, 404, 30, 1278, 273, 845, 18, 1655, 12, 21, 13, 845, 273, 283, 18, 3072, 2668, 1482, 4509, 64, 63, 27816, 65, 2187, 1369, 13, 309, 845, 471, 562, 12, 1916, 18, 4650, 10756, 422, 404, 30, 276, 793, 1482, 273, 845, 18, 1655, 12, 21, 2 ]
- ``x,m`` - numbers or symbolic expressions. Either m or x-m must be an integer.
- ``x``, ``m`` - numbers or symbolic expressions. Either ``m`` or ``x-m`` must be an integer.
def binomial(x,m): r""" Return the binomial coefficient .. math:: x (x-1) \cdots (x-m+1) / m! which is defined for `m \in \ZZ` and any `x`. We extend this definition to include cases when `x-m` is an integer but `m` is not by binomial(x,m)= binomial(x,x-m) If `m<0` return `0`. INPUT: - ``x,m`` - numbers or symbolic expressions. Either m or x-m must be an integer. OUTPUT: number or symbolic expression (if input is symbolic) EXAMPLES:: sage: binomial(5,2) 10 sage: binomial(2,0) 1 sage: binomial(1/2, 0) 1 sage: binomial(3,-1) 0 sage: binomial(20,10) 184756 sage: binomial(-2, 5) -6 sage: binomial(RealField()('2.5'), 2) 1.87500000000000 sage: n=var('n'); binomial(n,2) 1/2*(n - 1)*n sage: n=var('n'); binomial(n,n) 1 sage: n=var('n'); binomial(n,n-1) n sage: binomial(2^100, 2^100) 1 sage: k, i = var('k,i',ns=1) sage: binomial(k,i) binomial(k,i) TESTS: We test that certain binomials are very fast (this should be instant) -- see trac 3309:: sage: a = binomial(RR(1140000.78), 42000000) """ if not isinstance(m, (int, long, integer.Integer)): try: m = ZZ(x-m) except TypeError: try: return x.binomial(m) except AttributeError: pass raise TypeError, 'Either m or x-m must be an integer' if isinstance(x, (int, long, integer.Integer)): if x >= 0 and (m < 0 or m > x): return ZZ(0) if m > sys.maxint: m = x - m if m > sys.maxint: raise ValueError, "binomial not implemented for m >= 2^32.\nThis is probably OK, since the answer would have billions of digits." return ZZ(pari(x).binomial(m)) try: P = x.parent() except AttributeError: P = type(x) if m < 0: return P(0) # a (hopefully) temporary fix for #3309; eventually Pari should do # this for us. if isinstance(x, (float, sage.rings.real_mpfr.RealNumber, sage.rings.real_mpfr.RealLiteral)): from sage.functions.all import gamma return gamma(x+1)/gamma(P(m+1))/gamma(x-m+1) return misc.prod([x-i for i in xrange(m)]) / P(factorial(m))
08206c95546f1db2a947692b19f3ca4ec939d5d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/08206c95546f1db2a947692b19f3ca4ec939d5d9/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 225, 6116, 4233, 2866, 225, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, 312, 5, 282, 1492, 353, 2553, 364, 1375, 81, 521, 267, 521, 27096, 68, 471, 1281, 1375, 92, 8338, 1660, 2133, 333, 2379, 358, 2341, 6088, 1347, 1375, 92, 17, 81, 68, 353, 392, 3571, 1496, 1375, 81, 68, 353, 486, 635, 225, 4158, 11496, 12, 92, 16, 81, 13, 33, 4158, 11496, 12, 92, 16, 92, 17, 81, 13, 225, 971, 1375, 81, 32, 20, 68, 327, 1375, 20, 8338, 225, 12943, 30, 225, 300, 225, 12176, 92, 68, 9191, 12176, 81, 10335, 300, 5600, 578, 16754, 8041, 18, 14635, 12176, 81, 10335, 578, 12176, 92, 17, 81, 10335, 1297, 506, 392, 3571, 18, 225, 11550, 30, 1300, 578, 16754, 2652, 261, 430, 810, 353, 16754, 13, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 4158, 11496, 12, 25, 16, 22, 13, 1728, 272, 410, 30, 4158, 11496, 12, 22, 16, 20, 13, 404, 272, 410, 30, 4158, 11496, 12, 21, 19, 22, 16, 374, 13, 404, 272, 410, 30, 4158, 11496, 12, 23, 16, 17, 21, 13, 374, 272, 410, 30, 4158, 11496, 12, 3462, 16, 2163, 13, 404, 5193, 27, 4313, 272, 410, 30, 4158, 11496, 19236, 22, 16, 1381, 13, 300, 26, 272, 410, 30, 4158, 11496, 12, 6955, 974, 1435, 2668, 22, 18, 25, 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, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 225, 6116, 4233, 2866, 225, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, 312, 5, 282, 1492, 353, 2553, 364, 1375, 81, 521, 267, 521, 27096, 68, 471, 1281, 1375, 92, 8338, 1660, 2133, 333, 2379, 358, 2341, 6088, 1347, 1375, 92, 17, 81, 68, 353, 392, 3571, 1496, 1375, 81, 68, 353, 486, 635, 225, 4158, 11496, 12, 92, 16, 81, 13, 33, 4158, 11496, 12, 92, 16, 92, 17, 81, 13, 225, 971, 1375, 81, 32, 20, 68, 327, 1375, 20, 8338, 225, 12943, 30, 225, 300, 225, 12176, 92, 68, 9191, 12176, 2 ]
_USER = 0
_USER = None
def login(username, password, host, port, database): global _SOCK, _USER, _USERNAME, _SESSION, _DATABASE, _VIEW_CACHE, SECURE _VIEW_CACHE = {} SECURE = False try: _SEMAPHORE.acquire() try: if _SOCK and (_SOCK.hostname != host or _SOCK.port != port): _SOCK.disconnect() if _SOCK is None: _SOCK = pysocket.PySocket(fingerprints=Fingerprints(), ca_certs=_CA_CERTS) if not _SOCK.connected: _SOCK.connect(host, port) args = (database, username, password, 'common', 'db', 'login') logging.getLogger('rpc.request').info(repr(args)) _SOCK.send(args) res = _SOCK.receive() logging.getLogger('rpc.result').debug(repr(res)) finally: _SEMAPHORE.release() except (socket.error, RuntimeError): try: _SOCK.reconnect() except (socket.error, RuntimeError): pass _USER = 0 _SESSION = '' return -1 if not res: _USER = 0 _SESSION = '' return -2 _USER = res[0] _USERNAME = username _SESSION = res[1] _DATABASE = database SECURE = _SOCK.ssl context_reload() return 1
d5616e1f3784a444fd7607855fbd4eef4da84ba6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9151/d5616e1f3784a444fd7607855fbd4eef4da84ba6/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 5053, 16, 2201, 16, 1479, 16, 1756, 16, 2063, 4672, 2552, 389, 3584, 3507, 16, 389, 4714, 16, 389, 21292, 16, 389, 7042, 16, 389, 22366, 16, 389, 12145, 67, 8495, 16, 31418, 4830, 389, 12145, 67, 8495, 273, 2618, 31418, 4830, 273, 1083, 775, 30, 389, 1090, 8352, 7995, 862, 18, 1077, 1039, 1435, 775, 30, 309, 389, 3584, 3507, 471, 261, 67, 3584, 3507, 18, 10358, 480, 1479, 578, 389, 3584, 3507, 18, 655, 480, 1756, 4672, 389, 3584, 3507, 18, 20177, 1435, 309, 389, 3584, 3507, 353, 599, 30, 389, 3584, 3507, 273, 21027, 1861, 18, 9413, 4534, 12, 24716, 87, 33, 17678, 87, 9334, 3474, 67, 24596, 33, 67, 3587, 67, 39, 654, 8047, 13, 309, 486, 389, 3584, 3507, 18, 8537, 30, 389, 3584, 3507, 18, 3612, 12, 2564, 16, 1756, 13, 833, 273, 261, 6231, 16, 2718, 16, 2201, 16, 296, 6054, 2187, 296, 1966, 2187, 296, 5819, 6134, 2907, 18, 588, 3328, 2668, 7452, 18, 2293, 16063, 1376, 12, 12715, 12, 1968, 3719, 389, 3584, 3507, 18, 4661, 12, 1968, 13, 400, 273, 389, 3584, 3507, 18, 18149, 1435, 2907, 18, 588, 3328, 2668, 7452, 18, 2088, 16063, 4148, 12, 12715, 12, 455, 3719, 3095, 30, 389, 1090, 8352, 7995, 862, 18, 9340, 1435, 1335, 261, 7814, 18, 1636, 16, 7265, 4672, 775, 30, 389, 3584, 3507, 18, 25913, 1435, 1335, 261, 7814, 18, 1636, 16, 7265, 4672, 1342, 389, 4714, 273, 599, 389, 7042, 273, 875, 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, 3925, 12, 5053, 16, 2201, 16, 1479, 16, 1756, 16, 2063, 4672, 2552, 389, 3584, 3507, 16, 389, 4714, 16, 389, 21292, 16, 389, 7042, 16, 389, 22366, 16, 389, 12145, 67, 8495, 16, 31418, 4830, 389, 12145, 67, 8495, 273, 2618, 31418, 4830, 273, 1083, 775, 30, 389, 1090, 8352, 7995, 862, 18, 1077, 1039, 1435, 775, 30, 309, 389, 3584, 3507, 471, 261, 67, 3584, 3507, 18, 10358, 480, 1479, 578, 389, 3584, 3507, 18, 655, 480, 1756, 4672, 389, 3584, 3507, 18, 20177, 1435, 309, 389, 3584, 3507, 353, 599, 30, 389, 3584, 3507, 273, 21027, 1861, 18, 9413, 4534, 12, 24716, 87, 33, 17678, 87, 9334, 3474, 67, 24596, 33, 67, 3587, 67, 39, 2 ]
raise ExtractError, "fifo not supported by system"
raise ExtractError("fifo not supported by system")
def makefifo(self, tarinfo, targetpath): """Make a fifo called targetpath. """ if hasattr(os, "mkfifo"): os.mkfifo(targetpath) else: raise ExtractError, "fifo not supported by system"
b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 74, 20299, 12, 2890, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1221, 74, 20299, 12, 2890, 16, 8232, 1376, 16, 1018, 803, 4672, 3536, 6464, 279, 284, 20299, 2566, 1018, 803, 18, 3536, 309, 3859, 12, 538, 16, 315, 24816, 74, 20299, 6, 4672, 1140, 18, 24816, 74, 20299, 12, 3299, 803, 13, 469, 30, 1002, 8152, 668, 16, 315, 74, 20299, 486, 3260, 635, 2619, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ch == '\r':
if ch == b'\r':
def __init__(self, ifp): if isinstance(ifp, basestring): ifp = open(ifp) # # Find initial colon. # while 1: ch = ifp.read(1) if not ch: raise Error, "No binhex data found" # Cater for \r\n terminated lines (which show up as \n\r, hence # all lines start with \r) if ch == '\r': continue if ch == ':': break if ch != '\n': dummy = ifp.readline()
2b5df605d4feb6b9f3d5c2b690131cf85c3b0fed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/2b5df605d4feb6b9f3d5c2b690131cf85c3b0fed/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 309, 84, 4672, 309, 1549, 12, 430, 84, 16, 10699, 4672, 309, 84, 273, 1696, 12, 430, 84, 13, 468, 468, 4163, 2172, 13336, 18, 468, 1323, 404, 30, 462, 273, 309, 84, 18, 896, 12, 21, 13, 309, 486, 462, 30, 1002, 1068, 16, 315, 2279, 4158, 7118, 501, 1392, 6, 468, 385, 2045, 364, 521, 86, 64, 82, 14127, 2362, 261, 12784, 2405, 731, 487, 521, 82, 64, 86, 16, 20356, 468, 777, 2362, 787, 598, 521, 86, 13, 309, 462, 422, 324, 8314, 86, 4278, 1324, 309, 462, 422, 3921, 30, 898, 309, 462, 480, 2337, 82, 4278, 9609, 273, 309, 84, 18, 896, 1369, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 309, 84, 4672, 309, 1549, 12, 430, 84, 16, 10699, 4672, 309, 84, 273, 1696, 12, 430, 84, 13, 468, 468, 4163, 2172, 13336, 18, 468, 1323, 404, 30, 462, 273, 309, 84, 18, 896, 12, 21, 13, 309, 486, 462, 30, 1002, 1068, 16, 315, 2279, 4158, 7118, 501, 1392, 6, 468, 385, 2045, 364, 521, 86, 64, 82, 14127, 2362, 261, 12784, 2405, 731, 487, 521, 82, 64, 86, 16, 20356, 468, 777, 2362, 787, 598, 521, 86, 13, 309, 462, 422, 324, 8314, 86, 4278, 1324, 309, 462, 422, 3921, 30, 898, 309, 462, 480, 2337, 82, 4278, 9609, 273, 309, 84, 18, 896, 1369, 1435, 2, -100, -100, -100 ]
c = cmp(dict1, dict2)
if random.random() < 0.5: c = cmp(dict1, dict2) else: c = dict1 == dict2
def test_one(n): global mutate, dict1, dict2, dict1keys, dict2keys # Fill the dicts without mutating them. mutate = 0 dict1keys = fill_dict(dict1, range(n), n) dict2keys = fill_dict(dict2, range(n), n) # Enable mutation, then compare the dicts so long as they have the # same size. mutate = 1 if verbose: print "trying w/ lengths", len(dict1), len(dict2), while dict1 and len(dict1) == len(dict2): if verbose: print ".", c = cmp(dict1, dict2) if verbose: print
f58515b41a9262bdfcfcc36b96da749f5702f21c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f58515b41a9262bdfcfcc36b96da749f5702f21c/test_mutants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 476, 12, 82, 4672, 2552, 15887, 16, 2065, 21, 16, 2065, 22, 16, 2065, 21, 2452, 16, 2065, 22, 2452, 225, 468, 14192, 326, 15838, 2887, 4318, 1776, 2182, 18, 15887, 273, 374, 2065, 21, 2452, 273, 3636, 67, 1576, 12, 1576, 21, 16, 1048, 12, 82, 3631, 290, 13, 2065, 22, 2452, 273, 3636, 67, 1576, 12, 1576, 22, 16, 1048, 12, 82, 3631, 290, 13, 225, 468, 9677, 11934, 16, 1508, 3400, 326, 15838, 1427, 1525, 487, 2898, 1240, 326, 468, 1967, 963, 18, 15887, 273, 404, 309, 3988, 30, 1172, 315, 698, 310, 341, 19, 10917, 3113, 562, 12, 1576, 21, 3631, 562, 12, 1576, 22, 3631, 1323, 2065, 21, 471, 562, 12, 1576, 21, 13, 422, 562, 12, 1576, 22, 4672, 309, 3988, 30, 1172, 4585, 16, 309, 2744, 18, 9188, 1435, 411, 374, 18, 25, 30, 276, 273, 9411, 12, 1576, 21, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 476, 12, 82, 4672, 2552, 15887, 16, 2065, 21, 16, 2065, 22, 16, 2065, 21, 2452, 16, 2065, 22, 2452, 225, 468, 14192, 326, 15838, 2887, 4318, 1776, 2182, 18, 15887, 273, 374, 2065, 21, 2452, 273, 3636, 67, 1576, 12, 1576, 21, 16, 1048, 12, 82, 3631, 290, 13, 2065, 22, 2452, 273, 3636, 67, 1576, 12, 1576, 22, 16, 1048, 12, 82, 3631, 290, 13, 225, 468, 9677, 11934, 16, 1508, 3400, 326, 15838, 1427, 1525, 487, 2898, 1240, 326, 468, 1967, 963, 18, 15887, 273, 404, 309, 3988, 30, 1172, 315, 698, 310, 341, 19, 10917, 3113, 562, 12, 1576, 21, 3631, 562, 12, 1576, 22, 3631, 1323, 2065, 21, 471, 562, 12, 2 ]
def openmcastsock(group, port): import string import struct s = socket(AF_INET, SOCK_DGRAM) s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) s.bind(('', port)) group = gethostbyname(group) bytes = map(int, string.split(group, ".")) grpaddr = 0 for byte in bytes: grpaddr = (grpaddr << 8) | byte ifaddr = INADDR_ANY mreq = struct.pack('ll', htonl(grpaddr), htonl(ifaddr)) s.setsockopt(IPPROTO_IP, IP_ADD_MEMBERSHIP, mreq) return s main()
if __name__ == '__main__': main()
def receiver(): # Open and initialize the socket s = openmcastsock(MYGROUP, MYPORT) # # Loop, printing any data we receive while 1: data, sender = s.recvfrom(1500) while data[-1:] == '\0': data = data[:-1] # Strip trailing \0's print sender, ':', repr(data)
6493d788f0e6b96cd7d2ed70e8e39f8b8b7ec8d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/6493d788f0e6b96cd7d2ed70e8e39f8b8b7ec8d8/mcast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5971, 13332, 468, 3502, 471, 4046, 326, 2987, 272, 273, 1696, 81, 4155, 15031, 12, 22114, 8468, 16, 22069, 6354, 13, 468, 468, 9720, 16, 19171, 1281, 501, 732, 6798, 1323, 404, 30, 501, 16, 5793, 273, 272, 18, 18334, 2080, 12, 3600, 713, 13, 1323, 501, 18919, 21, 26894, 422, 2337, 20, 4278, 501, 273, 501, 10531, 17, 21, 65, 468, 15589, 7341, 521, 20, 1807, 1172, 5793, 16, 4290, 2187, 8480, 12, 892, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5971, 13332, 468, 3502, 471, 4046, 326, 2987, 272, 273, 1696, 81, 4155, 15031, 12, 22114, 8468, 16, 22069, 6354, 13, 468, 468, 9720, 16, 19171, 1281, 501, 732, 6798, 1323, 404, 30, 501, 16, 5793, 273, 272, 18, 18334, 2080, 12, 3600, 713, 13, 1323, 501, 18919, 21, 26894, 422, 2337, 20, 4278, 501, 273, 501, 10531, 17, 21, 65, 468, 15589, 7341, 521, 20, 1807, 1172, 5793, 16, 4290, 2187, 8480, 12, 892, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
langlinks=False):
langlinks=False):
def preloadpages(self, pagelist, groupsize=50, templates=False, langlinks=False): """Return a generator to a list of preloaded pages.
1571bf2f69d49fbc62f297642bbea030e1229fd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9005/1571bf2f69d49fbc62f297642bbea030e1229fd0/site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20941, 7267, 12, 2890, 16, 4262, 5449, 16, 1041, 1467, 33, 3361, 16, 5539, 33, 8381, 16, 3303, 7135, 33, 8381, 4672, 3536, 990, 279, 4456, 358, 279, 666, 434, 675, 4230, 4689, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20941, 7267, 12, 2890, 16, 4262, 5449, 16, 1041, 1467, 33, 3361, 16, 5539, 33, 8381, 16, 3303, 7135, 33, 8381, 4672, 3536, 990, 279, 4456, 358, 279, 666, 434, 675, 4230, 4689, 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 ]
base_url = self.GetAbsoluteScriptURL(name)
base_url = self.GetScriptURL(name, relative=1)
def FormatFormStart(self, name, extra=''):
f32670e904a3c18d331b6aa37d5f7583a903f24e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/f32670e904a3c18d331b6aa37d5f7583a903f24e/HTMLFormatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 1204, 1685, 12, 2890, 16, 508, 16, 2870, 2218, 11, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4077, 1204, 1685, 12, 2890, 16, 508, 16, 2870, 2218, 11, 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 ]
header_locale = "res_index:table(nofallback) {\n CLDRVersion { " header_locale += CLDR_VERSION + " }\n InstalledLocales {\n" header = "res_index:table(nofallback) {\nInstalledLocales {\n" footer = " }\n}" empty_value = " {\"\"}\n" locale_index = open(os.path.join(TMP_DAT_PATH, res_index), "w") locale_index.write(header_locale) brkitr_index = open(os.path.join(TMP_DAT_PATH, "brkitr", res_index), "w") brkitr_index.write(header) coll_index = open(os.path.join(TMP_DAT_PATH, "coll", res_index), "w") coll_index.write(header) rbnf_index = open(os.path.join(TMP_DAT_PATH, "rbnf", res_index), "w") rbnf_index.write(header)
locales = set() brkitrs = set() colls = set() rbnfs = set()
def GenResIndex(dat_list_file_path): res_index = "res_index.txt" header_locale = "res_index:table(nofallback) {\n CLDRVersion { " header_locale += CLDR_VERSION + " }\n InstalledLocales {\n" header = "res_index:table(nofallback) {\nInstalledLocales {\n" footer = " }\n}" empty_value = " {\"\"}\n" # key-value pair for all locale entries locale_index = open(os.path.join(TMP_DAT_PATH, res_index), "w") locale_index.write(header_locale) brkitr_index = open(os.path.join(TMP_DAT_PATH, "brkitr", res_index), "w") brkitr_index.write(header) coll_index = open(os.path.join(TMP_DAT_PATH, "coll", res_index), "w") coll_index.write(header) rbnf_index = open(os.path.join(TMP_DAT_PATH, "rbnf", res_index), "w") rbnf_index.write(header) for line in open(dat_list_file_path, "r"): if line.find("root.") >= 0: continue if line.find("res_index") >= 0: continue if line.find("_.res") >= 0: continue; start = line.find("brkitr/") if start >= 0: end = line.find(".res") if end > 0: brkitr_index.write(line[line.find("/")+1:end] + empty_value) elif line.find("coll/") >= 0: start = line.find("coll/") end = line.find(".res") if end > 0: coll_index.write(line[line.find("/")+1:end] + empty_value) elif line.find("rbnf/") >= 0: start = line.find("rbnf/") end = line.find(".res") if end > 0: rbnf_index.write(line[line.find("/")+1:end] + empty_value) elif line.find(".res") >= 0: # We need to determine the resource is locale resource or misc resource. # To determine the locale resource, we assume max script length is 3. end = line.find(".res") if end <= 3: locale_index.write(line[:end] + empty_value) elif line.find("_") <= 3: if line.find("_") > 0: locale_index.write(line[:end] + empty_value) locale_index.write(footer) brkitr_index.write(footer) coll_index.write(footer) rbnf_index.write(footer) locale_index.close() brkitr_index.close() coll_index.close() rbnf_index.close() # Call genrb to generate new res_index.res. InvokeIcuTool("genrb", TMP_DAT_PATH, [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "brkitr"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "coll"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "rbnf"), [res_index])
e8aab5e9f14e1c3a670fbea64057a2a5f5c35245 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10672/e8aab5e9f14e1c3a670fbea64057a2a5f5c35245/icu_dat_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 607, 1016, 12, 3404, 67, 1098, 67, 768, 67, 803, 4672, 400, 67, 1615, 273, 315, 455, 67, 1615, 18, 5830, 6, 1446, 67, 6339, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 14934, 6331, 1444, 288, 315, 1446, 67, 6339, 1011, 14934, 6331, 67, 5757, 397, 315, 289, 64, 82, 13448, 4502, 13310, 18890, 82, 6, 1446, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 16747, 13310, 18890, 82, 6, 9860, 273, 315, 565, 289, 64, 82, 1532, 1008, 67, 1132, 273, 315, 288, 2412, 2412, 6280, 82, 6, 225, 468, 498, 17, 1132, 3082, 364, 777, 2573, 3222, 225, 2573, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 16, 400, 67, 1615, 3631, 315, 91, 7923, 2573, 67, 1615, 18, 2626, 12, 3374, 67, 6339, 13, 5186, 8691, 86, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 16, 315, 2848, 8691, 86, 3113, 400, 67, 1615, 3631, 315, 91, 7923, 5186, 8691, 86, 67, 1615, 18, 2626, 12, 3374, 13, 4508, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 16, 315, 12910, 3113, 400, 67, 1615, 3631, 315, 91, 7923, 4508, 67, 1615, 18, 2626, 12, 3374, 13, 7138, 82, 74, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 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, 10938, 607, 1016, 12, 3404, 67, 1098, 67, 768, 67, 803, 4672, 400, 67, 1615, 273, 315, 455, 67, 1615, 18, 5830, 6, 1446, 67, 6339, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 14934, 6331, 1444, 288, 315, 1446, 67, 6339, 1011, 14934, 6331, 67, 5757, 397, 315, 289, 64, 82, 13448, 4502, 13310, 18890, 82, 6, 1446, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 16747, 13310, 18890, 82, 6, 9860, 273, 315, 565, 289, 64, 82, 1532, 1008, 67, 1132, 273, 315, 288, 2412, 2412, 6280, 82, 6, 225, 468, 498, 17, 1132, 3082, 364, 777, 2573, 3222, 225, 2573, 67, 1615, 273, 2 ]
sage.ext.sig.get_bad_sigs()
def my_sigfpe(x, n): sage.ext.sig.get_bad_sigs() raise RuntimeError, "A floating point exception occured."
a6685bba5d2c8cc8a971c49bb2cf9c20713773f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/a6685bba5d2c8cc8a971c49bb2cf9c20713773f9/get_sigs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 7340, 74, 347, 12, 92, 16, 290, 4672, 1002, 7265, 16, 315, 37, 13861, 1634, 1520, 16206, 1199, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 7340, 74, 347, 12, 92, 16, 290, 4672, 1002, 7265, 16, 315, 37, 13861, 1634, 1520, 16206, 1199, 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 ]
if e[0] == EINTR:
if e.args[0] == EINTR:
def read(self, size=-1): # Use max, disallow tiny reads in a loop as they are very inefficient. # We never leave read() with any leftover data from a new recv() call # in our internal buffer. rbufsize = max(self._rbufsize, self.default_bufsize) # Our use of StringIO rather than lists of string objects returned by # recv() minimizes memory usage and fragmentation that occurs when # rbufsize is large compared to the typical return value of recv(). buf = self._rbuf buf.seek(0, 2) # seek end if size < 0: # Read until EOF self._rbuf = StringIO() # reset _rbuf. we consume it via buf. while True: try: data = self._sock.recv(rbufsize) except error, e: if e[0] == EINTR: continue raise if not data: break buf.write(data) return buf.getvalue() else: # Read until size bytes or EOF seen, whichever comes first buf_len = buf.tell() if buf_len >= size: # Already have size bytes in our buffer? Extract and return. buf.seek(0) rv = buf.read(size) self._rbuf = StringIO() self._rbuf.write(buf.read()) return rv
b661b1d30c84d146ce4883fd0a1ad27952a5aead /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/b661b1d30c84d146ce4883fd0a1ad27952a5aead/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 29711, 21, 4672, 468, 2672, 943, 16, 29176, 24405, 6838, 316, 279, 2798, 487, 2898, 854, 8572, 316, 25403, 18, 468, 1660, 5903, 8851, 855, 1435, 598, 1281, 29709, 501, 628, 279, 394, 10665, 1435, 745, 468, 316, 3134, 2713, 1613, 18, 436, 4385, 1467, 273, 943, 12, 2890, 6315, 86, 4385, 1467, 16, 365, 18, 1886, 67, 4385, 1467, 13, 468, 29613, 999, 434, 15777, 9178, 2353, 6035, 434, 533, 2184, 2106, 635, 468, 10665, 1435, 18172, 3128, 3778, 4084, 471, 5481, 367, 716, 9938, 1347, 468, 436, 4385, 1467, 353, 7876, 15843, 358, 326, 24917, 327, 460, 434, 10665, 7675, 1681, 273, 365, 6315, 86, 4385, 1681, 18, 16508, 12, 20, 16, 576, 13, 225, 468, 6520, 679, 309, 963, 411, 374, 30, 468, 2720, 3180, 6431, 365, 6315, 86, 4385, 273, 15777, 1435, 225, 468, 2715, 389, 86, 4385, 18, 225, 732, 7865, 518, 3970, 1681, 18, 1323, 1053, 30, 775, 30, 501, 273, 365, 6315, 15031, 18, 18334, 12, 86, 4385, 1467, 13, 1335, 555, 16, 425, 30, 309, 425, 18, 1968, 63, 20, 65, 422, 512, 3217, 54, 30, 1324, 1002, 309, 486, 501, 30, 898, 1681, 18, 2626, 12, 892, 13, 327, 1681, 18, 588, 1132, 1435, 469, 30, 468, 2720, 3180, 963, 1731, 578, 6431, 5881, 16, 600, 335, 580, 502, 14535, 1122, 1681, 67, 1897, 273, 1681, 18, 88, 1165, 1435, 309, 1681, 67, 1897, 1545, 963, 30, 468, 17009, 1240, 963, 1731, 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, 855, 12, 2890, 16, 963, 29711, 21, 4672, 468, 2672, 943, 16, 29176, 24405, 6838, 316, 279, 2798, 487, 2898, 854, 8572, 316, 25403, 18, 468, 1660, 5903, 8851, 855, 1435, 598, 1281, 29709, 501, 628, 279, 394, 10665, 1435, 745, 468, 316, 3134, 2713, 1613, 18, 436, 4385, 1467, 273, 943, 12, 2890, 6315, 86, 4385, 1467, 16, 365, 18, 1886, 67, 4385, 1467, 13, 468, 29613, 999, 434, 15777, 9178, 2353, 6035, 434, 533, 2184, 2106, 635, 468, 10665, 1435, 18172, 3128, 3778, 4084, 471, 5481, 367, 716, 9938, 1347, 468, 436, 4385, 1467, 353, 7876, 15843, 358, 326, 24917, 327, 460, 434, 10665, 7675, 1681, 273, 365, 6315, 86, 4385, 1681, 18, 16508, 12, 20, 2 ]
if to_location: to_location = to_location[0]
def default_unit_price_required(self, cursor, user, context=None): from_location = self.default_from_location(cursor, user, context=context) if from_location: from_location = from_location[0] to_location = self.default_to_location(cursor,user, context=context) if to_location: to_location = to_location[0] vals = { 'from_location': from_location, 'to_location': to_location, } return self.on_change_with_unit_price_required(cursor, user, [], vals, context=context)
ba472c4f0d51f793137375955a51ac9d1128f54c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9298/ba472c4f0d51f793137375955a51ac9d1128f54c/move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 4873, 67, 8694, 67, 4718, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 628, 67, 3562, 273, 365, 18, 1886, 67, 2080, 67, 3562, 12, 9216, 16, 729, 16, 819, 33, 2472, 13, 309, 628, 67, 3562, 30, 628, 67, 3562, 273, 628, 67, 3562, 63, 20, 65, 358, 67, 3562, 273, 365, 18, 1886, 67, 869, 67, 3562, 12, 9216, 16, 1355, 16, 819, 33, 2472, 13, 5773, 273, 288, 296, 2080, 67, 3562, 4278, 628, 67, 3562, 16, 296, 869, 67, 3562, 4278, 358, 67, 3562, 16, 289, 327, 365, 18, 265, 67, 3427, 67, 1918, 67, 4873, 67, 8694, 67, 4718, 12, 9216, 16, 729, 16, 5378, 16, 5773, 16, 819, 33, 2472, 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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 4873, 67, 8694, 67, 4718, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 628, 67, 3562, 273, 365, 18, 1886, 67, 2080, 67, 3562, 12, 9216, 16, 729, 16, 819, 33, 2472, 13, 309, 628, 67, 3562, 30, 628, 67, 3562, 273, 628, 67, 3562, 63, 20, 65, 358, 67, 3562, 273, 365, 18, 1886, 67, 869, 67, 3562, 12, 9216, 16, 1355, 16, 819, 33, 2472, 13, 5773, 273, 288, 296, 2080, 67, 3562, 4278, 628, 67, 3562, 16, 296, 869, 67, 3562, 4278, 358, 67, 3562, 16, 289, 327, 365, 18, 265, 67, 3427, 67, 1918, 67, 4873, 67, 8694, 67, 4718, 12, 9216, 16, 729, 16, 5378, 16, 5773, 16, 2 ]
print "!!! update.fetches=" + str(extraFetches)
def update(reps, extraFetches={}, dbindex = None, force=False): '''Update a list of *reps* within the workspace. The update will either sync with a source rep repository if the project is present in *srcTop* or will install a new binary package through the local package manager. *extraFetches* is a list of extra files to fetch from the remote machine, usually a list of compressed source tar files.''' print "!!! update.fetches=" + str(extraFetches) if not dbindex: dbindex = index dbindex.validate(force) handler = Unserializer(reps) dbindex.parse(handler) if len(extraFetches) > 0: fetch(extraFetches) # If an error occurs, at least save previously configured variables. context.save() for name in reps: # The project is present in *srcTop*, so we will update the source # code from a repository. rep = handler.asProject(name).repository if not rep: rep = handler.asProject(name).patch if rep: # Not every project is made a first-class citizen. If there are # no rep structure for a project, it must depend on a project # that does in order to have a source repled repository. # This is a simple way to specify inter-related projects # with complex dependency set and barely any code. writetext('######## updating project ' + name + '...\n') # \todo We do not propagate force= here to avoid messing up # the local checkouts on pubUpdate() rep.update(name,context) else: writetext('warning: ' + name + ' is not a project under source control. It is most likely a psuedo-project and will be updated through an "update recurse" command.\n')
021d0af4493896ff6811cfbbd2baaa38effbe930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/021d0af4493896ff6811cfbbd2baaa38effbe930/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 266, 1121, 16, 2870, 14288, 28793, 1319, 1615, 273, 599, 16, 2944, 33, 8381, 4672, 9163, 1891, 279, 666, 434, 380, 266, 1121, 14, 3470, 326, 6003, 18, 1021, 1089, 903, 3344, 3792, 598, 279, 1084, 2071, 3352, 309, 326, 1984, 353, 3430, 316, 380, 4816, 3401, 14, 578, 903, 3799, 279, 394, 3112, 2181, 3059, 326, 1191, 2181, 3301, 18, 380, 7763, 14288, 14, 353, 279, 666, 434, 2870, 1390, 358, 2158, 628, 326, 2632, 5228, 16, 11234, 279, 666, 434, 8968, 1084, 8232, 1390, 1093, 6309, 309, 486, 1319, 1615, 30, 1319, 1615, 273, 770, 1319, 1615, 18, 5662, 12, 5734, 13, 1838, 273, 1351, 15663, 12, 266, 1121, 13, 1319, 1615, 18, 2670, 12, 4176, 13, 225, 309, 562, 12, 7763, 14288, 13, 405, 374, 30, 2158, 12, 7763, 14288, 13, 225, 468, 971, 392, 555, 9938, 16, 622, 4520, 1923, 7243, 4351, 3152, 18, 819, 18, 5688, 1435, 364, 508, 316, 283, 1121, 30, 468, 1021, 1984, 353, 3430, 316, 380, 4816, 3401, 14, 16, 1427, 732, 903, 1089, 326, 1084, 468, 981, 628, 279, 3352, 18, 2071, 273, 1838, 18, 345, 4109, 12, 529, 2934, 9071, 309, 486, 2071, 30, 2071, 273, 1838, 18, 345, 4109, 12, 529, 2934, 2272, 309, 2071, 30, 468, 2288, 3614, 1984, 353, 7165, 279, 1122, 17, 1106, 276, 305, 452, 275, 18, 971, 1915, 854, 468, 1158, 2071, 3695, 364, 279, 1984, 16, 518, 1297, 2447, 603, 279, 1984, 468, 716, 1552, 316, 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, 1089, 12, 266, 1121, 16, 2870, 14288, 28793, 1319, 1615, 273, 599, 16, 2944, 33, 8381, 4672, 9163, 1891, 279, 666, 434, 380, 266, 1121, 14, 3470, 326, 6003, 18, 1021, 1089, 903, 3344, 3792, 598, 279, 1084, 2071, 3352, 309, 326, 1984, 353, 3430, 316, 380, 4816, 3401, 14, 578, 903, 3799, 279, 394, 3112, 2181, 3059, 326, 1191, 2181, 3301, 18, 380, 7763, 14288, 14, 353, 279, 666, 434, 2870, 1390, 358, 2158, 628, 326, 2632, 5228, 16, 11234, 279, 666, 434, 8968, 1084, 8232, 1390, 1093, 6309, 309, 486, 1319, 1615, 30, 1319, 1615, 273, 770, 1319, 1615, 18, 5662, 12, 5734, 13, 1838, 273, 1351, 15663, 12, 266, 1121, 13, 1319, 1615, 18, 2670, 2 ]
self.setRoles(['Owner',]) self.assertFalse( getSecurityManager().checkPermission( "Modify portal content", self.portal.docs.doc1 ))
self.setRoles(['Owner',])
def test_workflowState( self ): # ensure baseline workflow state is retained on checkin, including security
feada1eb4a33a4943e5ab5cd43024d6396b3b804 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12223/feada1eb4a33a4943e5ab5cd43024d6396b3b804/test_iterate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13815, 1119, 12, 365, 262, 30, 468, 3387, 14243, 6095, 919, 353, 25227, 603, 866, 267, 16, 6508, 4373, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13815, 1119, 12, 365, 262, 30, 468, 3387, 14243, 6095, 919, 353, 25227, 603, 866, 267, 16, 6508, 4373, 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 ]
getPrincipal = zapi.principals().getPrincipal
getPrincipal = getUtility(IAuthentication).getPrincipal
def _groupsFor(self, principal): groups = self._cache.get(principal.id) if groups is None: groups = getattr(principal, 'groups', ()) if groups: getPrincipal = zapi.principals().getPrincipal groups = self._findGroupsFor(principal, getPrincipal, []) else: groups = ()
f0218125d6bba9de7632c743b5da7ad1ed34b816 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9751/f0218125d6bba9de7632c743b5da7ad1ed34b816/zopepolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4650, 1290, 12, 2890, 16, 8897, 4672, 3252, 273, 365, 6315, 2493, 18, 588, 12, 26138, 18, 350, 13, 309, 3252, 353, 599, 30, 3252, 273, 3869, 12, 26138, 16, 296, 4650, 2187, 1832, 13, 309, 3252, 30, 8248, 5078, 273, 336, 6497, 12, 45, 6492, 2934, 588, 9155, 3252, 273, 365, 6315, 4720, 3621, 1290, 12, 26138, 16, 8248, 5078, 16, 5378, 13, 469, 30, 3252, 273, 1832, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 16, 8897, 4672, 3252, 273, 365, 6315, 2493, 18, 588, 12, 26138, 18, 350, 13, 309, 3252, 353, 599, 30, 3252, 273, 3869, 12, 26138, 16, 296, 4650, 2187, 1832, 13, 309, 3252, 30, 8248, 5078, 273, 336, 6497, 12, 45, 6492, 2934, 588, 9155, 3252, 273, 365, 6315, 4720, 3621, 1290, 12, 26138, 16, 8248, 5078, 16, 5378, 13, 469, 30, 3252, 273, 1832, 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 ]
bug_fetched = 1
bug_fetched = True
def abc(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' #while 1: #tuple_item_key = request.get() #if tuple_item_key is None: # break #(key, item) = tuple_item_key (key, item) = request #INFO: Everything (url, file, download_size, checksum) = stripper(item) thread_name = threading.currentThread().getName() log.verbose("Thread is %s\n" % (thread_name) ) if url.endswith(".deb"): try: PackageName = file.split("_")[0] except IndexError: log.err("Not getting a package name here is problematic. Better bail out.\n") sys.exit(1) #INFO: For Package version, we don't want to fail try: PackageVersion = file.split("_")[1] except IndexError: PackageVersion = "NA" log.verbose("Weird!! Package version not present. Is it really a deb file?\n") #INFO: find_first_match() returns False or a file name with absolute path full_file_path = func(Str_CacheDir, file) #INFO: If we find the file in the local Str_CacheDir, we'll execute this block. if full_file_path != False: # We'll first check for its md5 checksum if Bool_DisableMD5Check is False: if FetcherInstance.CheckHashDigest(full_file_path, checksum) is True: log.verbose("Checksum correct for package %s.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if Bool_BugReports: bug_fetched = 0 log.verbose("Fetching bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) bug_fetched = 1 else: log.verbose("Couldn't fetch bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if Str_BundleFile: if FetcherInstance.compress_the_file(Str_BundleFile, full_file_path) is True: log.success("%s copied from local cache directory %s.%s\n" % (PackageName, Str_CacheDir, LINE_OVERWRITE_MID) ) else: log.err("Couldn't add %s to archive %s.%s\n" % (file, Str_BundleFile, LINE_OVERWRITE_MID) ) sys.exit(1) #INFO: If no zip option enabled, simply copy the downloaded package file # along with the downloaded bug reports. else: try: shutil.copy(full_file_path, Str_DownloadDir) log.success("%s copied from local cache directory %s.%s\n" % (PackageName, Str_CacheDir, LINE_OVERWRITE_MID) ) except shutil.Error: log.verbose("%s already available in %s. Skipping copy!!!%s\n" % (file, Str_DownloadDir, LINE_OVERWRITE_MID) ) if bug_fetched == 1: for x in os.listdir(os.curdir): if (x.startswith(PackageName) and x.endswith(apt_bug_file_format) ): shutil.move(x, Str_DownloadDir) log.verbose("Moved %s file to %s folder.%s\n" % (x, Str_DownloadDir, LINE_OVERWRITE_FULL) ) #INFO: Damn!! The md5chesum didn't match :-( # The file is corrupted and we need to download a new copy from the internet else: log.verbose("%s checksum mismatch. Skipping file.%s\n" % (file, LINE_OVERWRITE_FULL) ) log.msg("Downloading %s - %s %s\n" % (PackageName, log.calcSize(download_size/1024), LINE_OVERWRITE_MID) ) if FetcherInstance.download_from_web(url, file, Str_DownloadDir) == True: log.success("\r%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) #Add to Str_CacheDir if possible if Str_CacheDir and os.access(Str_CacheDir, os.W_OK) == True: try: shutil.copy(file, Str_CacheDir) log.verbose("%s copied to local cache directory %s.%s\n" % (file, Str_CacheDir, LINE_OVERWRITE_MID) ) except shutil.Error: log.verbose("Couldn't copy %s to %s.%s\n" % (file, Str_CacheDir, LINE_OVERWRITE_FULL) ) else: log.verbose("cache_dir %s is not writeable. Skipping copy to it.\n" % (Str_CacheDir) ) #Fetch bug reports if Bool_BugReports: log.verbose("Fetching bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]: log.verbose( "Fetched bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) else: log.verbose( "Couldn't fetch bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) if Str_BundleFile: if FetcherInstance.compress_the_file( Str_BundleFile, file ) != True: log.err( "Couldn't archive %s to file %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) sys.exit( 1 ) else: log.verbose( "%s added to archive %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) os.unlink( os.path.join( Str_DownloadDir, file ) ) #INFO: You're and idiot. # You should NOT disable md5checksum for any files else: if Bool_BugReports: bug_fetched = 0 log.verbose("Fetching bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]: log.verbose( "Fetched bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) bug_fetched = 1 else: log.verbose( "Couldn't fetch bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) #FIXME: Don't know why this was really required. If this has no changes, delete it. #file = full_file_path.split("/") #file = file[len(file) - 1] #file = download_path + "/" + file if Str_BundleFile: if FetcherInstance.compress_the_file( Str_BundleFile, file ) != True: log.err( "Couldn't archive %s to file %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) sys.exit( 1 ) else: log.verbose( "%s added to archive %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) os.unlink( os.path.join( Str_DownloadDir, file ) ) else: # Since zip file option is not enabled let's copy the file to the target folder try: shutil.copy( full_file_path, Str_DownloadDir ) log.success( "%s copied from local cache directory %s.%s\n" % ( file, Str_CacheDir, LINE_OVERWRITE_SMALL ) ) except shutil.Error: log.verbose( "%s already available in dest_dir. Skipping copy!!!%s\n" % ( file, LINE_OVERWRITE_SMALL ) ) # And also the bug reports if bug_fetched == 1: for x in os.listdir( os.curdir ): if ( x.startswith( PackageName ) and x.endswith( apt_bug_file_format ) ): shutil.move( x, Str_DownloadDir ) log.verbose( "Moved %s file to %s folder.%s\n" % ( x, Str_DownloadDir, LINE_OVERWRITE_MID ) ) else: #INFO: This block gets executed if the file is not found in local Str_CacheDir or Str_CacheDir is None # We go ahead and try to download it from the internet log.verbose( "%s not available in local cache %s.%s\n" % ( file, Str_CacheDir, LINE_OVERWRITE_MID ) ) log.msg( "Downloading %s %s - %s %s\n" % ( PackageName, PackageVersion, log.calcSize( download_size / 1024 ), LINE_OVERWRITE_MID ) ) if FetcherInstance.download_from_web( url, file, Str_DownloadDir ) == True: #INFO: This block gets executed if md5checksum is allowed if Bool_DisableMD5Check is False: #INFO: Debian moved to SHA256. So we use that now. Older systems could have md5 log.verbose( "File %s has checksum %s\n" % ( file, checksum ) ) if FetcherInstance.CheckHashDigest( file, checksum ) is True: if Str_CacheDir and os.access( Str_CacheDir, os.W_OK ) == True: try: shutil.copy( file, Str_CacheDir ) log.verbose( "%s copied to local cache directory %s.%s\n" % ( file, Str_CacheDir, LINE_OVERWRITE_MID ) ) except shutil.Error: log.verbose( "%s already available in %s. Skipping copy!!!%s\n" % ( file, Str_CacheDir, LINE_OVERWRITE_MID ) ) else: log.verbose( "Str_CacheDir %s is not writeable. Skipping copy to it.\n" % ( Str_CacheDir ) ) if Bool_BugReports: log.verbose("Fetching bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]: log.verbose( "Fetched bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) else: log.verbose( "Couldn't fetch bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) if Str_BundleFile: if FetcherInstance.compress_the_file( Str_BundleFile, file ) != True: log.err( "Couldn't archive %s to file %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) sys.exit( 1 ) else: log.verbose( "%s added to archive %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) os.unlink( os.path.join( Str_DownloadDir, file ) ) log.success( "\r%s %s done.%s\n" % ( PackageName, PackageVersion, LINE_OVERWRITE_FULL ) ) else: #INFO MD5 Checksum is incorrect. log.err( "%s Checksum mismatch.\n" % ( PackageName ) ) errlist.append( PackageName ) else: if Bool_BugReports: log.verbose("Fetching bug reports for package %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]: log.verbose( "Fetched bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) else: log.verbose( "Couldn't fetch bug reports for package %s.%s\n" % ( PackageName, LINE_OVERWRITE_MID ) ) if Str_BundleFile: if FetcherInstance.compress_the_file( Str_BundleFile, file ) != True: log.err( "Couldn't archive %s to file %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) sys.exit( 1 ) else: log.verbose( "%s added to archive %s.%s\n" % ( file, Str_BundleFile, LINE_OVERWRITE_SMALL ) ) os.unlink( os.path.join( Str_DownloadDir, file ) ) log.success( "\r%s %s done.%s\n" % ( PackageName, PackageVersion, LINE_OVERWRITE_FULL ) ) else: errlist.append( PackageName ) else: #INFO: We are a package update PackageName = url log.msg("Downloading %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetcherInstance.download_from_web(url, file, Str_DownloadDir) == True: log.success("\r%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if Str_BundleFile: if FetcherInstance.compress_the_file(Str_BundleFile, file) != True: log.err("Couldn't archive %s to file %s.%s\n" % (file, Str_BundleFile, LINE_OVERWRITE_MID) ) sys.exit(1) else: log.verbose("%s added to archive %s.%s\n" % (file, Str_BundleFile, LINE_OVERWRITE_FULL) ) os.unlink(os.path.join(Str_DownloadDir, file) ) else: errlist.append(url)
e22d300894f4558c7d16636d6d8bd6a166b03adf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12499/e22d300894f4558c7d16636d6d8bd6a166b03adf/AptOfflineCoreLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20011, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 1807, 508, 1368, 326, 766, 7530, 18, 5131, 3549, 1347, 761, 353, 599, 1093, 6309, 468, 17523, 404, 30, 468, 8052, 67, 1726, 67, 856, 273, 590, 18, 588, 1435, 468, 430, 3193, 67, 1726, 67, 856, 353, 599, 30, 468, 3639, 898, 468, 12, 856, 16, 761, 13, 273, 3193, 67, 1726, 67, 856, 225, 261, 856, 16, 761, 13, 273, 590, 225, 468, 5923, 30, 26553, 261, 718, 16, 585, 16, 4224, 67, 1467, 16, 6697, 13, 273, 2569, 457, 12, 1726, 13, 2650, 67, 529, 273, 17254, 18, 2972, 3830, 7675, 17994, 1435, 613, 18, 11369, 2932, 3830, 353, 738, 87, 64, 82, 6, 738, 261, 5930, 67, 529, 13, 262, 225, 309, 880, 18, 5839, 1918, 2932, 18, 31888, 6, 4672, 775, 30, 7508, 461, 273, 585, 18, 4939, 2932, 67, 7923, 63, 20, 65, 1335, 10195, 30, 613, 18, 370, 2932, 1248, 8742, 279, 2181, 508, 2674, 353, 6199, 2126, 18, 605, 11214, 18422, 596, 8403, 82, 7923, 2589, 18, 8593, 12, 21, 13, 225, 468, 5923, 30, 2457, 7508, 1177, 16, 732, 2727, 1404, 2545, 358, 2321, 775, 30, 7508, 1444, 273, 585, 18, 4939, 2932, 67, 7923, 63, 21, 65, 1335, 10195, 30, 7508, 1444, 273, 315, 11277, 6, 613, 18, 11369, 2932, 3218, 6909, 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, 20011, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 1807, 508, 1368, 326, 766, 7530, 18, 5131, 3549, 1347, 761, 353, 599, 1093, 6309, 468, 17523, 404, 30, 468, 8052, 67, 1726, 67, 856, 273, 590, 18, 588, 1435, 468, 430, 3193, 67, 1726, 67, 856, 353, 599, 30, 468, 3639, 898, 468, 12, 856, 16, 761, 13, 273, 3193, 67, 1726, 67, 856, 225, 261, 856, 16, 761, 13, 273, 590, 225, 468, 5923, 30, 26553, 261, 718, 16, 585, 16, 4224, 67, 1467, 16, 6697, 13, 273, 2569, 457, 12, 1726, 2 ]
(uid, gid, pid) = self.GetContext() tsumufs.cacheManager.access(uid, path, os.W_OK)
context = self.GetContext() tsumufs.cacheManager.access(context['uid'], path, os.W_OK)
def truncate(self, path, size=None): ''' Truncate a file to zero length.
c3478d05944e6e6bef9ad5c70ada99c0c43c2db1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/c3478d05944e6e6bef9ad5c70ada99c0c43c2db1/fusethread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10310, 12, 2890, 16, 589, 16, 963, 33, 7036, 4672, 9163, 25869, 279, 585, 358, 3634, 769, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 279, 585, 358, 3634, 769, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
temp['record'] = print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid)
temp['record'] = print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid, verbose=verbose)
def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress, search_pattern='', print_records_prologue_p=True, print_records_epilogue_p=True): """ Prints list of records 'recIDs' formatted accoding to 'format' in groups of 'rg' starting from 'jrec'. Assumes that the input list 'recIDs' is sorted in reverse order, so it counts records from tail to head. A value of 'rg=-9999' means to print all records: to be used with care. Print also list of RELEVANCES for each record (if defined), in between RELEVANCE_PROLOGUE and RELEVANCE_EPILOGUE. Print prologue and/or epilogue specific to 'format' if 'print_records_prologue_p' and/or print_records_epilogue_p' are True. """ # load the right message language _ = gettext_set_language(ln) # sanity checking: if req is None: return # get user id (for formatting based on priviledge) uid = getUid(req) if len(recIDs): nb_found = len(recIDs) if rg == -9999: # print all records rg = nb_found else: rg = abs(rg) if jrec < 1: # sanity checks jrec = 1 if jrec > nb_found: jrec = max(nb_found-rg+1, 1) # will print records from irec_max to irec_min excluded: irec_max = nb_found - jrec irec_min = nb_found - jrec - rg if irec_min < 0: irec_min = -1 if irec_max >= nb_found: irec_max = nb_found - 1 #req.write("%s:%d-%d" % (recIDs, irec_min, irec_max)) if format.startswith('x'): # print header if needed if print_records_prologue_p: print_records_prologue(req, format) # print records recIDs_to_print = [recIDs[x] for x in range(irec_max, irec_min, -1)] req.write(format_records(recIDs_to_print, format, ln=ln, search_pattern=search_pattern, record_separator="\n", uid=uid)) # print footer if needed if print_records_epilogue_p: print_records_epilogue(req, format) elif format.startswith('t') or str(format[0:3]).isdigit(): # we are doing plain text output: for irec in range(irec_max, irec_min, -1): x = print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid) req.write(x) if x: req.write('\n') elif format == 'excel': recIDs_to_print = [recIDs[x] for x in range(irec_max, irec_min, -1)] create_excel(recIDs=recIDs_to_print, req=req, ln=ln) else: # we are doing HTML output: if format == 'hp' or format.startswith("hb_") or format.startswith("hd_"): # portfolio and on-the-fly formats: for irec in range(irec_max, irec_min, -1): req.write(print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid)) elif format.startswith("hb"): # HTML brief format: rows = [] for irec in range(irec_max, irec_min, -1): temp = { 'number' : jrec+irec_max-irec, 'recid' : recIDs[irec], } if relevances and relevances[irec]: temp['relevance'] = relevances[irec] else: temp['relevance'] = '' temp['record'] = print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid) rows.append(temp) req.write(websearch_templates.tmpl_records_format_htmlbrief( ln = ln, weburl = weburl, rows = rows, relevances_prologue = relevances_prologue, relevances_epilogue = relevances_epilogue, )) else: # HTML detailed format: # print other formatting choices: rows = [] for irec in range(irec_max, irec_min, -1): temp = { 'record' : print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid), 'recid' : recIDs[irec], 'creationdate': '', 'modifydate' : '', } if record_exists(recIDs[irec])==1: temp['creationdate'] = get_creation_date(recIDs[irec]) temp['modifydate'] = get_modification_date(recIDs[irec]) if CFG_EXPERIMENTAL_FEATURES: r = calculate_cited_by_list(recIDs[irec]) if r: temp ['citinglist'] = r temp ['citationhistory'] = create_citation_history_graph_and_box(recIDs[irec], ln) r = calculate_co_cited_with_list(recIDs[irec]) if r: temp ['cociting'] = r if CFG_BIBRANK_SHOW_DOWNLOAD_GRAPHS: r = calculate_reading_similarity_list(recIDs[irec], "downloads") if r: temp ['downloadsimilarity'] = r temp ['downloadhistory'] = create_download_history_graph_and_box(recIDs[irec], ln) # Get comments and reviews for this record if exist # FIXME: templatize me if CFG_WEBCOMMENT_ALLOW_COMMENTS or CFG_WEBCOMMENT_ALLOW_REVIEWS: from invenio.webcomment import get_first_comments_or_remarks (comments, reviews) = get_first_comments_or_remarks(recID=recIDs[irec], ln=ln, nb_comments=CFG_WEBCOMMENT_NB_COMMENTS_IN_DETAILED_VIEW, nb_reviews=CFG_WEBCOMMENT_NB_REVIEWS_IN_DETAILED_VIEW) temp['comments'] = comments temp['reviews'] = reviews r = calculate_reading_similarity_list(recIDs[irec], "pageviews") if r: temp ['viewsimilarity'] = r rows.append(temp) req.write(websearch_templates.tmpl_records_format_other( ln = ln, weburl = weburl, url_argd = req.argd, rows = rows, format = format, )) else: print_warning(req, _("Use different search terms."))
845a99c9c5de9c5d99d06ec25bc8f5be515522e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/845a99c9c5de9c5d99d06ec25bc8f5be515522e8/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7094, 12, 3658, 16, 1950, 5103, 16, 525, 3927, 33, 21, 16, 14524, 33, 2163, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 7211, 33, 4315, 2069, 539, 16, 6707, 90, 6872, 22850, 6487, 6707, 90, 6872, 67, 685, 1330, 344, 1546, 2932, 16, 6707, 90, 6872, 67, 881, 21947, 344, 1546, 11438, 2225, 16, 16824, 33, 94, 2941, 18, 323, 14706, 16, 1623, 67, 4951, 2218, 2187, 1172, 67, 7094, 67, 685, 1330, 344, 67, 84, 33, 5510, 16, 1172, 67, 7094, 67, 881, 21947, 344, 67, 84, 33, 5510, 4672, 225, 3536, 3038, 87, 666, 434, 3853, 296, 3927, 5103, 11, 4955, 4078, 4751, 358, 296, 2139, 11, 316, 3252, 434, 296, 26876, 11, 5023, 628, 296, 78, 3927, 10332, 225, 25374, 716, 326, 810, 666, 296, 3927, 5103, 11, 353, 3115, 316, 4219, 1353, 16, 1427, 518, 6880, 3853, 628, 5798, 358, 910, 18, 225, 432, 460, 434, 296, 26876, 29711, 7991, 11, 4696, 358, 1172, 777, 3853, 30, 358, 506, 1399, 598, 7671, 18, 225, 3038, 2546, 666, 434, 2438, 900, 58, 4722, 55, 364, 1517, 1409, 261, 430, 2553, 3631, 316, 3086, 2438, 900, 58, 4722, 67, 3373, 4842, 1821, 471, 2438, 900, 58, 4722, 67, 41, 1102, 4842, 1821, 18, 225, 3038, 450, 1330, 344, 471, 19, 280, 5529, 21947, 344, 2923, 358, 296, 2139, 11, 309, 296, 1188, 67, 7094, 67, 685, 1330, 344, 67, 84, 11, 471, 19, 280, 1172, 67, 7094, 67, 881, 21947, 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, 1172, 67, 7094, 12, 3658, 16, 1950, 5103, 16, 525, 3927, 33, 21, 16, 14524, 33, 2163, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 7211, 33, 4315, 2069, 539, 16, 6707, 90, 6872, 22850, 6487, 6707, 90, 6872, 67, 685, 1330, 344, 1546, 2932, 16, 6707, 90, 6872, 67, 881, 21947, 344, 1546, 11438, 2225, 16, 16824, 33, 94, 2941, 18, 323, 14706, 16, 1623, 67, 4951, 2218, 2187, 1172, 67, 7094, 67, 685, 1330, 344, 67, 84, 33, 5510, 16, 1172, 67, 7094, 67, 881, 21947, 344, 67, 84, 33, 5510, 4672, 225, 3536, 3038, 87, 666, 434, 3853, 296, 3927, 5103, 11, 4955, 4078, 4751, 358, 296, 2139, 11, 316, 3252, 434, 296, 26876, 2 ]
pkt.time = arch.get_last_packet_timestamp(self.ins)
pkt.time = get_last_packet_timestamp(self.ins)
def recv(self, x): pkt, sa_ll = self.ins.recvfrom(x) if sa_ll[2] == socket.PACKET_OUTGOING: return None if sa_ll[3] in conf.l2types: cls = conf.l2types[sa_ll[3]] lvl = 2 elif sa_ll[1] in conf.l3types: cls = conf.l3types[sa_ll[1]] lvl = 3 else: cls = conf.default_l2 warning("Unable to guess type (interface=%s protocol=%#x family=%i). Using %s" % (sa_ll[0],sa_ll[1],sa_ll[3],cls.name)) lvl = 2
14c74c45cca1c3048391b67bd41fd3df4f699bde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/14c74c45cca1c3048391b67bd41fd3df4f699bde/linux.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 12, 2890, 16, 619, 4672, 11536, 16, 7864, 67, 2906, 273, 365, 18, 2679, 18, 18334, 2080, 12, 92, 13, 309, 7864, 67, 2906, 63, 22, 65, 422, 2987, 18, 12231, 1584, 67, 5069, 16387, 1360, 30, 327, 599, 309, 7864, 67, 2906, 63, 23, 65, 316, 2195, 18, 80, 22, 2352, 30, 2028, 273, 2195, 18, 80, 22, 2352, 63, 13098, 67, 2906, 63, 23, 13563, 14864, 273, 576, 1327, 7864, 67, 2906, 63, 21, 65, 316, 2195, 18, 80, 23, 2352, 30, 2028, 273, 2195, 18, 80, 23, 2352, 63, 13098, 67, 2906, 63, 21, 13563, 14864, 273, 890, 469, 30, 2028, 273, 2195, 18, 1886, 67, 80, 22, 3436, 2932, 3370, 358, 7274, 618, 261, 5831, 5095, 87, 1771, 5095, 7, 92, 6755, 5095, 77, 2934, 11637, 738, 87, 6, 738, 261, 13098, 67, 2906, 63, 20, 6487, 13098, 67, 2906, 63, 21, 6487, 13098, 67, 2906, 63, 23, 6487, 6429, 18, 529, 3719, 14864, 273, 576, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 12, 2890, 16, 619, 4672, 11536, 16, 7864, 67, 2906, 273, 365, 18, 2679, 18, 18334, 2080, 12, 92, 13, 309, 7864, 67, 2906, 63, 22, 65, 422, 2987, 18, 12231, 1584, 67, 5069, 16387, 1360, 30, 327, 599, 309, 7864, 67, 2906, 63, 23, 65, 316, 2195, 18, 80, 22, 2352, 30, 2028, 273, 2195, 18, 80, 22, 2352, 63, 13098, 67, 2906, 63, 23, 13563, 14864, 273, 576, 1327, 7864, 67, 2906, 63, 21, 65, 316, 2195, 18, 80, 23, 2352, 30, 2028, 273, 2195, 18, 80, 23, 2352, 63, 13098, 67, 2906, 63, 21, 13563, 14864, 273, 890, 469, 30, 2028, 273, 2195, 18, 1886, 67, 80, 22, 3436, 2932, 3370, 358, 7274, 618, 2 ]
if progress_callback: progress_callback(filename)
def _write_css(self, directory, progress_callback, cssname): """ Write the CSS stylesheet to the given file. If C{self._css} contains a stylesheet file or name (from L{epydoc.css}), then use that stylesheet; otherwise, if a stylesheet file already exists, use that stylesheet. Otherwise, use the default stylesheet.
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 5212, 12, 2890, 16, 1867, 16, 4007, 67, 3394, 16, 3747, 529, 4672, 3536, 2598, 326, 6765, 13820, 358, 326, 864, 585, 18, 225, 971, 385, 95, 2890, 6315, 5212, 97, 1914, 279, 13820, 585, 578, 508, 261, 2080, 511, 95, 881, 93, 2434, 18, 5212, 97, 3631, 1508, 999, 716, 13820, 31, 3541, 16, 309, 279, 13820, 585, 1818, 1704, 16, 999, 716, 13820, 18, 5272, 16, 999, 326, 805, 13820, 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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, 881, 93, 2434, 18, 5212, 97, 3631, 1508, 999, 716, 13820, 31, 3541, 16, 309, 279, 13820, 585, 1818, 1704, 16, 999, 716, 13820, 18, 5272, 16, 999, 326, 805, 13820, 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 ]
if unmergedDs['MergedLFNBase'] != None: if fileInfo['Size'] >= self.taskAttrs['MinMergeFileSize']: mergeModLabel = "%s-Merged" % outModLabel ds = datasetMap.get(mergeModLabel, None) if ds != None: outModLabel = mergeModLabel fileInfo['MergedBySize'] = "True" fileInfo['MergedLFNBase'] = unmergedDs['MergedLFNBase'] msg = "File Associated to Merge Output based on size:\n" msg += " %s\n Size = %s\n" % (fileInfo['LFN'], fileInfo['Size']) print msg
if unmergedDs is not None: if unmergedDs['MergedLFNBase'] != None: if fileInfo['Size'] >= self.taskAttrs['MinMergeFileSize']: mergeModLabel = "%s-Merged" % outModLabel ds = datasetMap.get(mergeModLabel, None) if ds != None: outModLabel = mergeModLabel fileInfo['MergedBySize'] = "True" fileInfo['MergedLFNBase'] = unmergedDs['MergedLFNBase'] msg = "File Associated to Merge Output based on size:\n" msg += " %s\n Size = %s\n" % (fileInfo['LFN'], fileInfo['Size']) print msg else: print "File is smaller than %s" % self.taskAttrs['MinMergeFileSize']
def matchDataset(self, fileInfo, datasetMap): """ _matchDataset_
eb4bec93f4446a3985de3a2d969ee7e7f5285e78 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/eb4bec93f4446a3985de3a2d969ee7e7f5285e78/TaskState.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 10656, 12, 2890, 16, 12538, 16, 3709, 863, 4672, 3536, 389, 1916, 10656, 67, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 10656, 12, 2890, 16, 12538, 16, 3709, 863, 4672, 3536, 389, 1916, 10656, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]