rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
createTestbedDocu()
self.createTestbedDocu()
def run(project): if not project.generateDoc: return
c3ecfa376fb8010f4c97a0776147ddd9ad9eece6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8259/c3ecfa376fb8010f4c97a0776147ddd9ad9eece6/Documentation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 4406, 4672, 309, 486, 1984, 18, 7163, 1759, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 12, 4406, 4672, 309, 486, 1984, 18, 7163, 1759, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertTrue(hunk.type == HOST_HOSTNAME_ADD)
self.assertTrue(isinstance(hunk, HostHostnameAddHunk))
def test_hostname_add(self): a = Host() b = Host() a.hostnames = [] b.hostnames = ["b"] diff = host_diff(a, b) self.assertTrue(len(diff) > 0) for hunk in diff: self.assertTrue(hunk.type == HOST_HOSTNAME_ADD)
e100fe985a91dc50454e1b16bae62fa0d722a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6331/e100fe985a91dc50454e1b16bae62fa0d722a5a7/ndifftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10358, 67, 1289, 12, 2890, 4672, 279, 273, 4893, 1435, 324, 273, 4893, 1435, 279, 18, 2564, 1973, 273, 5378, 324, 18, 2564, 1973, 273, 8247, 70, 11929, 3122, 273, 1479, 67, 5413, 12, 69, 16, 324, 13, 365, 18, 11231, 5510, 12, 1897, 12, 5413, 13, 405, 374, 13, 364, 366, 1683, 316, 3122, 30, 365, 18, 11231, 5510, 12, 76, 1683, 18, 723, 422, 21425, 67, 8908, 1985, 67, 8355, 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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890, 4672, 279, 273, 4893, 1435, 324, 273, 4893, 1435, 279, 18, 2564, 1973, 273, 5378, 324, 18, 2564, 1973, 273, 8247, 70, 11929, 3122, 273, 1479, 67, 5413, 12, 69, 16, 324, 13, 365, 18, 11231, 5510, 12, 1897, 12, 5413, 13, 405, 374, 13, 364, 366, 1683, 316, 3122, 30, 365, 18, 11231, 5510, 12, 76, 1683, 18, 723, 422, 21425, 67, 8908, 1985, 67, 8355, 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 ]
String representation of Arc primitive.
String representation of ``Arc`` primitive.
def _repr_(self): """ String representation of Arc primitive.
e24dd3c62ad1f440792ccb94718bf5873e280f2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/e24dd3c62ad1f440792ccb94718bf5873e280f2a/arc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 514, 4335, 434, 24881, 8225, 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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0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 514, 4335, 434, 24881, 8225, 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 ]
print >>sys.stderr, "Warning: mozilla/extensions directory does not exist; ChatZilla, DOM Inspector and/or Venkman could not be checked out." options.skip_chatzilla = \ options.skip_inspector = \ options.skip_venkman = \ True
sys.exit("Error: mozilla/extensions directory does not exist;" + \ " ChatZilla, DOM Inspector and/or Venkman cannot be checked out!")
def fixup_venkman_repo_options(options): """Handle special case: initial checkout of Venkman. See fixup_comm_repo_options(). """ if (options.venkman_repo is None and not os.path.exists(os.path.join(topsrcdir, 'mozilla', 'extensions', 'venkman'))): options.venkman_repo = DEFAULT_VENKMAN_REPO
0bc69e7bf7a88a560dd02422d30a49b58dedc9a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11044/0bc69e7bf7a88a560dd02422d30a49b58dedc9a6/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 3995, 79, 4728, 67, 7422, 67, 2116, 12, 2116, 4672, 3536, 3259, 4582, 648, 30, 2172, 13926, 434, 776, 13775, 4728, 18, 225, 2164, 2917, 416, 67, 5702, 67, 7422, 67, 2116, 7675, 3536, 309, 261, 2116, 18, 3995, 79, 4728, 67, 7422, 353, 599, 471, 486, 1140, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 3995, 79, 4728, 67, 7422, 67, 2116, 12, 2116, 4672, 3536, 3259, 4582, 648, 30, 2172, 13926, 434, 776, 13775, 4728, 18, 225, 2164, 2917, 416, 67, 5702, 67, 7422, 67, 2116, 7675, 3536, 309, 261, 2116, 18, 3995, 79, 4728, 67, 7422, 353, 599, 471, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 3669, 4816, 1214, 16, 296, 8683, 15990, 2187, 296, 9489, 2187, 296, 3995, 79, 4728, 26112, 4672, 702, 18, 3995, 79, 4728, 67, 7422, 273, 3331, 67, 58, 1157, 47, 9560, 67, 862, 2419, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return Sum((self, -other))
return Expression.__sub__(self, other)
def __sub__(self, other): if not isinstance(other, Expression): return Constant(self.Value - other) if self.Value == 0: return Negation(other) return Sum((self, -other))
0aea67b6248de24bf5c20988f84fdf8ba68e066d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12571/0aea67b6248de24bf5c20988f84fdf8ba68e066d/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1717, 972,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1717, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 5371, 4672, 327, 10551, 12, 2890, 18, 620, 300, 1308, 13, 309, 365, 18, 620, 422, 374, 30, 327, 423, 1332, 367, 12, 3011, 13, 327, 9352, 12443, 2890, 16, 300, 3011, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
wikipedia.stopme()
wikipedia.stopme()
def readWarnfile(filename, bot): import warnfile reader = warnfile.WarnfileReader(filename) # we won't use removeHints (hints, removeHints) = reader.getHints() pages = hints.keys() for page in pages: # The WarnfileReader gives us a list of pagelinks, but titletranslate.py expects a list of strings, so we convert it back. # TODO: This is a quite ugly hack, in the future we should maybe make titletranslate expect a list of pagelinks. hintStrings = ['%s:%s' % (hintedPage.site().language(), hintedPage.title()) for hintedPage in hints[page]] bot.add(page, hints = hintStrings)
35988aec8175b6647bc2b6127ecbcc3ae9085045 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/35988aec8175b6647bc2b6127ecbcc3ae9085045/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 3160, 768, 12, 3459, 16, 2512, 4672, 1930, 1894, 768, 2949, 273, 1894, 768, 18, 3160, 768, 2514, 12, 3459, 13, 468, 732, 8462, 1404, 999, 1206, 13368, 261, 24598, 16, 1206, 13368, 13, 273, 2949, 18, 588, 13368, 1435, 4689, 273, 13442, 18, 2452, 1435, 364, 1363, 316, 4689, 30, 468, 1021, 6040, 768, 2514, 14758, 584, 279, 666, 434, 4262, 27269, 87, 16, 1496, 268, 305, 1810, 28001, 20293, 18, 2074, 10999, 279, 666, 434, 2064, 16, 1427, 732, 1765, 518, 1473, 18, 468, 2660, 30, 1220, 353, 279, 25102, 26920, 11769, 16, 316, 326, 3563, 732, 1410, 6944, 1221, 268, 305, 1810, 28001, 20293, 4489, 279, 666, 434, 4262, 27269, 87, 18, 7380, 7957, 273, 10228, 9, 87, 5319, 87, 11, 738, 261, 11317, 329, 1964, 18, 4256, 7675, 4923, 9334, 7380, 329, 1964, 18, 2649, 10756, 364, 7380, 329, 1964, 316, 13442, 63, 2433, 13563, 2512, 18, 1289, 12, 2433, 16, 13442, 273, 7380, 7957, 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,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, 273, 13442, 18, 2452, 1435, 364, 1363, 316, 4689, 30, 468, 1021, 6040, 768, 2514, 14758, 584, 279, 666, 434, 4262, 27269, 87, 16, 1496, 268, 305, 1810, 28001, 20293, 18, 2074, 10999, 279, 666, 434, 2064, 16, 1427, 732, 1765, 518, 1473, 18, 468, 2660, 30, 1220, 353, 279, 25102, 26920, 11769, 16, 316, 326, 3563, 732, 1410, 6944, 1221, 268, 305, 1810, 28001, 20293, 4489, 279, 666, 434, 4262, 27269, 87, 18, 7380, 7957, 2 ]
sock2 = xmlrpclib.ServerProxy(url+'/db')
sock2 = xmlrpclib.ServerProxy(url+'/xmlrpc/db')
def wait(id,url=''): progress=0.0 sock2 = xmlrpclib.ServerProxy(url+'/db') while not progress==1.0: progress,users = execute(sock2,'get_progress',admin_passwd, id) return True
2f20758f02fabab6e9b8bd8115e6f6714cba7a88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/2f20758f02fabab6e9b8bd8115e6f6714cba7a88/base_quality_interrogation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 350, 16, 718, 2218, 11, 4672, 4007, 33, 20, 18, 20, 7313, 22, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 12, 718, 6797, 19, 2902, 7452, 19, 1966, 6134, 1323, 486, 4007, 631, 21, 18, 20, 30, 4007, 16, 5577, 273, 1836, 12, 15031, 22, 11189, 588, 67, 8298, 2187, 3666, 67, 24002, 16, 612, 13, 327, 1053, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 350, 16, 718, 2218, 11, 4672, 4007, 33, 20, 18, 20, 7313, 22, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 12, 718, 6797, 19, 2902, 7452, 19, 1966, 6134, 1323, 486, 4007, 631, 21, 18, 20, 30, 4007, 16, 5577, 273, 1836, 12, 15031, 22, 11189, 588, 67, 8298, 2187, 3666, 67, 24002, 16, 612, 13, 327, 1053, 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 ]
and self.combo_database.get_active() != -1 \
and self.combo_database.get_active_text() != "" \
def event_show_button_ok(self, widget, event, data=None): """ This event method decide by rules if the Create button will be sensitive or insensitive. The general rule is, all given fields must be filled, then the Create button is set to sensitive. This event method doesn't check the valid of single entrys. """ if self.entry_server_connection.get_text() != "" \ and self.combo_database.get_active() != -1 \ and self.entry_serverpasswd.get_text() != "": widget.unset_flags(gtk.HAS_DEFAULT) self.button_ok.set_sensitive(True) self.button_ok.set_flags(gtk.CAN_DEFAULT) self.button_ok.set_flags(gtk.HAS_DEFAULT) self.button_ok.set_flags(gtk.CAN_FOCUS) self.button_ok.set_flags(gtk.RECEIVES_DEFAULT) self.button_ok.grab_default() else: self.button_ok.set_sensitive(False)
a6d1f89c8595511490431a3890ed5b1c1c5611d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/a6d1f89c8595511490431a3890ed5b1c1c5611d3/dbdumpdrop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 67, 4500, 67, 5391, 67, 601, 12, 2890, 16, 3604, 16, 871, 16, 501, 33, 7036, 4672, 3536, 1220, 871, 707, 16288, 635, 2931, 309, 326, 1788, 3568, 903, 506, 16692, 578, 17904, 18, 1021, 7470, 1720, 353, 16, 777, 864, 1466, 1297, 506, 6300, 16, 1508, 326, 1788, 3568, 353, 444, 358, 16692, 18, 1220, 871, 707, 3302, 1404, 866, 326, 923, 434, 2202, 1241, 87, 18, 3536, 309, 225, 365, 18, 4099, 67, 3567, 67, 4071, 18, 588, 67, 955, 1435, 480, 225, 1408, 521, 471, 365, 18, 25053, 67, 6231, 18, 588, 67, 3535, 67, 955, 1435, 480, 1408, 521, 471, 365, 18, 4099, 67, 3567, 24002, 18, 588, 67, 955, 1435, 480, 1408, 30, 3604, 18, 18579, 67, 7133, 12, 4521, 79, 18, 27765, 67, 5280, 13, 365, 18, 5391, 67, 601, 18, 542, 67, 23481, 12, 5510, 13, 365, 18, 5391, 67, 601, 18, 542, 67, 7133, 12, 4521, 79, 18, 39, 1258, 67, 5280, 13, 365, 18, 5391, 67, 601, 18, 542, 67, 7133, 12, 4521, 79, 18, 27765, 67, 5280, 13, 365, 18, 5391, 67, 601, 18, 542, 67, 7133, 12, 4521, 79, 18, 39, 1258, 67, 3313, 39, 3378, 13, 365, 18, 5391, 67, 601, 18, 542, 67, 7133, 12, 4521, 79, 18, 27086, 5354, 55, 67, 5280, 13, 365, 18, 5391, 67, 601, 18, 2752, 70, 67, 1886, 1435, 469, 30, 365, 18, 5391, 67, 601, 18, 542, 67, 23481, 12, 8381, 13, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 67, 4500, 67, 5391, 67, 601, 12, 2890, 16, 3604, 16, 871, 16, 501, 33, 7036, 4672, 3536, 1220, 871, 707, 16288, 635, 2931, 309, 326, 1788, 3568, 903, 506, 16692, 578, 17904, 18, 1021, 7470, 1720, 353, 16, 777, 864, 1466, 1297, 506, 6300, 16, 1508, 326, 1788, 3568, 353, 444, 358, 16692, 18, 1220, 871, 707, 3302, 1404, 866, 326, 923, 434, 2202, 1241, 87, 18, 3536, 309, 225, 365, 18, 4099, 67, 3567, 67, 4071, 18, 588, 67, 955, 1435, 480, 225, 1408, 521, 471, 365, 18, 25053, 67, 6231, 18, 588, 67, 3535, 67, 955, 1435, 480, 1408, 521, 471, 365, 18, 4099, 67, 3567, 24002, 18, 588, 67, 955, 1435, 480, 1408, 2 ]
param_obj = PassingData(no_of_valid_deletions=0, cnv_qc_call_id_set=set())
param_obj = PassingData(no_of_valid_deletions=0, cnv_qc_call_id_set=set(), array_id2qc_data={})
def countNoOfCNVDeletionsMatchQC(cls, db_250k, input_fname_ls, ecotype_id=6909, data_source_id=3, cnv_type_id=1, \ min_QC_segment_size=200, deletion_cutoff=-0.33, max_boundary_diff=10000, \ max_diff_perc=0.10, min_no_of_probes=5,\ count_embedded_segment_as_match=True): """ 2009-10-29 for all CNV deletions, check how many are in QC dataset. """ ecotype_id2cnv_qc_call_data = cls.getCNVQCDataFromDB(data_source_id, ecotype_id, cnv_type_id, min_QC_segment_size, min_no_of_probes) from pymodule import PassingData param_obj = PassingData(no_of_valid_deletions=0, cnv_qc_call_id_set=set()) cls.compareCNVSegmentsAgainstQCHandler(input_fname_ls, ecotype_id2cnv_qc_call_data, cls.countMatchedDeletionsFunctor, param_obj, \ deletion_cutoff, max_boundary_diff, max_diff_perc, min_no_of_probes, \ count_embedded_segment_as_match=count_embedded_segment_as_match) sys.stderr.write("For ecotype_id %s, data_source_id %s, min_QC_segment_size %s, deletion_cutoff: %s, min_no_of_probes: %s, max_boundary_diff: %s, max_diff_perc %s.\n"%\ (ecotype_id, \ data_source_id, min_QC_segment_size, deletion_cutoff, min_no_of_probes, max_boundary_diff, max_diff_perc)) param_obj.ecotype_id2cnv_qc_call_data = ecotype_id2cnv_qc_call_data cls.outputFalsePositiveRate(param_obj) cls.outputFalseNegativeRate(param_obj)
1440ce5092ec2e1bfdd9b1e187e40f109bf0000b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/1440ce5092ec2e1bfdd9b1e187e40f109bf0000b/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 2279, 951, 39, 11679, 9019, 1115, 2060, 53, 39, 12, 6429, 16, 1319, 67, 26520, 79, 16, 810, 67, 12749, 67, 3251, 16, 6557, 10570, 67, 350, 33, 8148, 5908, 16, 501, 67, 3168, 67, 350, 33, 23, 16, 6227, 90, 67, 723, 67, 350, 33, 21, 16, 521, 1131, 67, 53, 39, 67, 9273, 67, 1467, 33, 6976, 16, 10899, 67, 16131, 29711, 20, 18, 3707, 16, 943, 67, 16604, 67, 5413, 33, 23899, 16, 521, 943, 67, 5413, 67, 457, 71, 33, 20, 18, 2163, 16, 1131, 67, 2135, 67, 792, 67, 7748, 281, 33, 25, 17211, 1056, 67, 20722, 67, 9273, 67, 345, 67, 1916, 33, 5510, 4672, 3536, 4044, 29, 17, 2163, 17, 5540, 364, 777, 385, 11679, 26334, 16, 866, 3661, 4906, 854, 316, 2238, 39, 3709, 18, 3536, 6557, 10570, 67, 350, 22, 10305, 90, 67, 30675, 67, 1991, 67, 892, 273, 2028, 18, 588, 39, 11679, 53, 39, 751, 1265, 2290, 12, 892, 67, 3168, 67, 350, 16, 6557, 10570, 67, 350, 16, 6227, 90, 67, 723, 67, 350, 16, 1131, 67, 53, 39, 67, 9273, 67, 1467, 16, 1131, 67, 2135, 67, 792, 67, 7748, 281, 13, 225, 628, 2395, 2978, 1930, 31741, 751, 579, 67, 2603, 273, 31741, 751, 12, 2135, 67, 792, 67, 877, 67, 19003, 1115, 33, 20, 16, 6227, 90, 67, 30675, 67, 1991, 67, 350, 67, 542, 33, 542, 9334, 526, 67, 350, 22, 30675, 67, 892, 12938, 13, 2028, 18, 9877, 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, 1056, 2279, 951, 39, 11679, 9019, 1115, 2060, 53, 39, 12, 6429, 16, 1319, 67, 26520, 79, 16, 810, 67, 12749, 67, 3251, 16, 6557, 10570, 67, 350, 33, 8148, 5908, 16, 501, 67, 3168, 67, 350, 33, 23, 16, 6227, 90, 67, 723, 67, 350, 33, 21, 16, 521, 1131, 67, 53, 39, 67, 9273, 67, 1467, 33, 6976, 16, 10899, 67, 16131, 29711, 20, 18, 3707, 16, 943, 67, 16604, 67, 5413, 33, 23899, 16, 521, 943, 67, 5413, 67, 457, 71, 33, 20, 18, 2163, 16, 1131, 67, 2135, 67, 792, 67, 7748, 281, 33, 25, 17211, 1056, 67, 20722, 67, 9273, 67, 345, 67, 1916, 33, 5510, 4672, 3536, 4044, 29, 17, 2163, 17, 2 ]
if last <= m.start() - 1: gen.putXMLString(self.text[last : m.start()-1]) last = m.end()
if next < m.start(): gen.putXMLString(self.text[next : m.start()]) next = m.end()
def publish(self, gen, pageNode = None): if pageNode is None: return last = 0 for m in re.finditer("%\w+;", self.text): if last <= m.start() - 1: gen.putXMLString(self.text[last : m.start()-1]) last = m.end() directive = self.text[m.start()+1 : m.end()-1]
cf995e17ae14a5c84f76f92c557511b77c0bef8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10467/cf995e17ae14a5c84f76f92c557511b77c0bef8f/webdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 2890, 16, 3157, 16, 1363, 907, 273, 599, 4672, 309, 1363, 907, 353, 599, 30, 327, 1142, 273, 374, 364, 312, 316, 283, 18, 4720, 2165, 27188, 64, 91, 15, 31, 3113, 365, 18, 955, 4672, 309, 1024, 411, 312, 18, 1937, 13332, 3157, 18, 458, 4201, 780, 12, 2890, 18, 955, 63, 4285, 294, 312, 18, 1937, 1435, 5717, 1024, 273, 312, 18, 409, 1435, 8655, 273, 365, 18, 955, 63, 81, 18, 1937, 1435, 15, 21, 294, 312, 18, 409, 1435, 17, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3808, 12, 2890, 16, 3157, 16, 1363, 907, 273, 599, 4672, 309, 1363, 907, 353, 599, 30, 327, 1142, 273, 374, 364, 312, 316, 283, 18, 4720, 2165, 27188, 64, 91, 15, 31, 3113, 365, 18, 955, 4672, 309, 1024, 411, 312, 18, 1937, 13332, 3157, 18, 458, 4201, 780, 12, 2890, 18, 955, 63, 4285, 294, 312, 18, 1937, 1435, 5717, 1024, 273, 312, 18, 409, 1435, 8655, 273, 365, 18, 955, 63, 81, 18, 1937, 1435, 15, 21, 294, 312, 18, 409, 1435, 17, 21, 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 ]
('gecos', decodestring),
('gecos', gecos_decode),
def account_lock(value, tmp_entry=temp_user_dict): try: # get around an error where password is not base64 encoded. password = decodestring(value.split('}',1)[1]) except Exception: password = value
612e9eb2908557a6396597e951c2d666006dd93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/612e9eb2908557a6396597e951c2d666006dd93c/ldap_backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 739, 12, 1132, 16, 1853, 67, 4099, 33, 5814, 67, 1355, 67, 1576, 4672, 775, 30, 468, 336, 6740, 392, 555, 1625, 2201, 353, 486, 1026, 1105, 3749, 18, 2201, 273, 16889, 371, 12, 1132, 18, 4939, 2668, 24259, 21, 25146, 21, 5717, 1335, 1185, 30, 2201, 273, 460, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 739, 12, 1132, 16, 1853, 67, 4099, 33, 5814, 67, 1355, 67, 1576, 4672, 775, 30, 468, 336, 6740, 392, 555, 1625, 2201, 353, 486, 1026, 1105, 3749, 18, 2201, 273, 16889, 371, 12, 1132, 18, 4939, 2668, 24259, 21, 25146, 21, 5717, 1335, 1185, 30, 2201, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ret, indent = [], 0
ret, indent = [['']], 0
def redent(s): ret, indent = [], 0 for tok in _redent_pattern.finditer(s): line, end = [st.strip() for st in tok.groups()] if line: if end == ':': line += ':' ret.append(' ' * indent + line) if end == ':': indent += 1 else: indent -= 1 return '\n'.join(ret)
20a1d58e2ebbf9e0264070e64ed405f28c5723c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6095/20a1d58e2ebbf9e0264070e64ed405f28c5723c7/infobatdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1755, 319, 12, 87, 4672, 325, 16, 3504, 273, 306, 3292, 3546, 6487, 374, 364, 946, 316, 389, 1118, 319, 67, 4951, 18, 4720, 2165, 12, 87, 4672, 980, 16, 679, 273, 306, 334, 18, 6406, 1435, 364, 384, 316, 946, 18, 4650, 1435, 65, 309, 980, 30, 309, 679, 422, 3921, 30, 980, 1011, 3921, 325, 18, 6923, 2668, 565, 296, 380, 3504, 397, 980, 13, 309, 679, 422, 3921, 30, 3504, 1011, 404, 469, 30, 3504, 3947, 404, 327, 2337, 82, 10332, 5701, 12, 1349, 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, 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306, 3292, 3546, 6487, 374, 364, 946, 316, 389, 1118, 319, 67, 4951, 18, 4720, 2165, 12, 87, 4672, 980, 16, 679, 273, 306, 334, 18, 6406, 1435, 364, 384, 316, 946, 18, 4650, 1435, 65, 309, 980, 30, 309, 679, 422, 3921, 30, 980, 1011, 3921, 325, 18, 6923, 2668, 565, 296, 380, 3504, 397, 980, 13, 309, 679, 422, 3921, 30, 3504, 1011, 404, 469, 30, 3504, 3947, 404, 327, 2337, 82, 10332, 5701, 12, 1349, 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 ]
if pref != latest: prefstr = pref[0][0] + ":" + pref[0][1] + '-' + pref[0][2] else:
prefstr = pref[0][0] + ":" + pref[0][1] + '-' + pref[0][2] lateststr = latest[0][0] + ":" + latest[0][1] + "-" + latest[0][2] if pref == latest:
def showVersions(self): pkg_pn = self.status.pkg_pn preferred_versions = {} latest_versions = {}
0e4e9ae990e7ac2da17d1e566640a79b3b0538b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/0e4e9ae990e7ac2da17d1e566640a79b3b0538b9/cooker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 5940, 12, 2890, 4672, 3475, 67, 7449, 273, 365, 18, 2327, 18, 10657, 67, 7449, 9119, 67, 10169, 273, 2618, 4891, 67, 10169, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 5940, 12, 2890, 4672, 3475, 67, 7449, 273, 365, 18, 2327, 18, 10657, 67, 7449, 9119, 67, 10169, 273, 2618, 4891, 67, 10169, 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, -100, -100, -100, -100 ]
if isinstance(module, MozillaModule): installdate = packagedb.installdate(module.name, module.get_revision() or '') elif isinstance(module, AutogenModule): installdate = packagedb.installdate(module.name, module.branch.branchname or '') elif isinstance(module, Tarball): installdate = packagedb.installdate(module.name, module.version or '') else: installdate = packagedb.installdate(module.name)
installdate = packagedb.installdate(module.name, module.get_revision() or '')
def show_info(self, module, packagedb, module_set): if isinstance(module, MozillaModule): installdate = packagedb.installdate(module.name, module.get_revision() or '') elif isinstance(module, AutogenModule): installdate = packagedb.installdate(module.name, module.branch.branchname or '') elif isinstance(module, Tarball): installdate = packagedb.installdate(module.name, module.version or '') else: installdate = packagedb.installdate(module.name)
073176e742a58883de2cdda9b44b9c54b2d7cfb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4596/073176e742a58883de2cdda9b44b9c54b2d7cfb8/info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1376, 12, 2890, 16, 1605, 16, 2298, 11349, 70, 16, 1605, 67, 542, 4672, 309, 1549, 12, 2978, 16, 19058, 10745, 3120, 4672, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 529, 16, 1605, 18, 588, 67, 13057, 1435, 578, 28707, 1327, 1549, 12, 2978, 16, 11809, 19409, 3120, 4672, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 529, 16, 1605, 18, 7500, 18, 7500, 529, 578, 28707, 1327, 1549, 12, 2978, 16, 399, 23846, 4672, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 529, 16, 1605, 18, 1589, 578, 28707, 469, 30, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1376, 12, 2890, 16, 1605, 16, 2298, 11349, 70, 16, 1605, 67, 542, 4672, 309, 1549, 12, 2978, 16, 19058, 10745, 3120, 4672, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 529, 16, 1605, 18, 588, 67, 13057, 1435, 578, 28707, 1327, 1549, 12, 2978, 16, 11809, 19409, 3120, 4672, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 529, 16, 1605, 18, 7500, 18, 7500, 529, 578, 28707, 1327, 1549, 12, 2978, 16, 399, 23846, 4672, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 18, 529, 16, 1605, 18, 1589, 578, 28707, 469, 30, 3799, 712, 273, 2298, 11349, 70, 18, 5425, 712, 12, 2978, 2 ]
def update(self, Task = None):
def update(self, task = None):
def update(self, Task = None): """ Check pressed keys and send corresponding events. XXX The problem with this approach is that events are sent only on button down, not on button up. For the moment this is not a problem but it can become troublesome in the future """ commands = self._currentScheme.getCommands().values() + \ self._schemes[BASE_SCHEME].getCommands().values() for commandList in commands: for command in commandList: if command.pressed is True: command.pressed = False if command.type == Command.EVENT: logger.debug("Sending message %s with args %s" % (command.name, command.args)) messenger.send(command.name, command.args) elif command.type == Command.CALLBACK: logger.debug("Executing callback %s with args %s" % (command.name.__name__, command.args)) command.name(*command.args) return Task.cont
f4526751ec82c3a9c7bd2b5d0afc5b9d7d847e83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/f4526751ec82c3a9c7bd2b5d0afc5b9d7d847e83/input.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 1562, 273, 599, 4672, 3536, 2073, 19504, 1311, 471, 1366, 4656, 2641, 18, 11329, 1021, 6199, 598, 333, 17504, 353, 716, 2641, 854, 3271, 1338, 603, 3568, 2588, 16, 486, 603, 3568, 731, 18, 2457, 326, 10382, 333, 353, 486, 279, 6199, 1496, 518, 848, 12561, 23432, 19314, 1742, 316, 326, 3563, 3536, 4364, 273, 365, 6315, 2972, 9321, 18, 588, 9127, 7675, 2372, 1435, 397, 521, 365, 6315, 87, 13268, 63, 8369, 67, 22870, 8009, 588, 9127, 7675, 2372, 1435, 225, 364, 1296, 682, 316, 4364, 30, 364, 1296, 316, 1296, 682, 30, 309, 1296, 18, 10906, 353, 1053, 30, 1296, 18, 10906, 273, 1083, 309, 1296, 18, 723, 422, 3498, 18, 10454, 30, 1194, 18, 4148, 2932, 16322, 883, 738, 87, 598, 833, 225, 738, 87, 6, 738, 261, 3076, 18, 529, 16, 1296, 18, 1968, 3719, 31086, 18, 4661, 12, 3076, 18, 529, 16, 1296, 18, 1968, 13, 1327, 1296, 18, 723, 422, 3498, 18, 30312, 30, 1194, 18, 4148, 2932, 22134, 1348, 738, 87, 598, 833, 225, 738, 87, 6, 738, 261, 3076, 18, 529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, 1562, 273, 599, 4672, 3536, 2073, 19504, 1311, 471, 1366, 4656, 2641, 18, 11329, 1021, 6199, 598, 333, 17504, 353, 716, 2641, 854, 3271, 1338, 603, 3568, 2588, 16, 486, 603, 3568, 731, 18, 2457, 326, 10382, 333, 353, 486, 279, 6199, 1496, 518, 848, 12561, 23432, 19314, 1742, 316, 326, 3563, 3536, 4364, 273, 365, 6315, 2972, 9321, 18, 588, 9127, 7675, 2372, 1435, 397, 521, 365, 6315, 87, 13268, 63, 8369, 67, 22870, 8009, 588, 9127, 7675, 2372, 1435, 225, 364, 1296, 682, 316, 4364, 30, 364, 1296, 316, 1296, 682, 30, 309, 1296, 18, 10906, 353, 1053, 30, 1296, 18, 10906, 273, 1083, 309, 1296, 18, 723, 422, 3498, 18, 10454, 2 ]
DoubleNumber.__init__(self, text, forcetype=self.OCTAL)
DoubleNumber.__init__(self, text, forcetype=Number.OCTAL)
def __init__(self, text): DoubleNumber.__init__(self, text, forcetype=self.OCTAL)
61c498782190367933ab197480db4d4669c6485b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/61c498782190367933ab197480db4d4669c6485b/number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 977, 4672, 3698, 1854, 16186, 2738, 972, 12, 2890, 16, 977, 16, 364, 71, 5872, 33, 2890, 18, 51, 1268, 1013, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 977, 4672, 3698, 1854, 16186, 2738, 972, 12, 2890, 16, 977, 16, 364, 71, 5872, 33, 2890, 18, 51, 1268, 1013, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
view.set_error('Sorry, there was an error in your search.') results = [] else: results = []
errortext = 'Sorry, there was an error in your search.'
def GET(self, site): i = web.input() if solr is None: view.set_error('Solr is not configured.') results = [] elif 'q' in i: if i.q == '': view.set_error('You need to enter some search terms.') results = [] else: try: results = [] offset = int(i.get('offset', '0')) qresults = solr.basic_search(i.q, start=offset)
0768de2a3b17311838813e2c9c4169272332f77d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/0768de2a3b17311838813e2c9c4169272332f77d/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 2834, 4672, 277, 273, 3311, 18, 2630, 1435, 309, 15575, 353, 599, 30, 1476, 18, 542, 67, 1636, 2668, 16478, 353, 486, 4351, 1093, 13, 1686, 273, 5378, 1327, 296, 85, 11, 316, 277, 30, 309, 277, 18, 85, 422, 875, 30, 1476, 18, 542, 67, 1636, 2668, 6225, 1608, 358, 6103, 2690, 1623, 6548, 1093, 13, 1686, 273, 5378, 469,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 2834, 4672, 277, 273, 3311, 18, 2630, 1435, 309, 15575, 353, 599, 30, 1476, 18, 542, 67, 1636, 2668, 16478, 353, 486, 4351, 1093, 13, 1686, 273, 5378, 1327, 296, 85, 11, 316, 277, 30, 309, 277, 18, 85, 422, 875, 30, 1476, 18, 542, 67, 1636, 2668, 6225, 1608, 358, 6103, 2690, 1623, 6548, 1093, 13, 1686, 273, 5378, 469, 30, 775, 30, 1686, 273, 5378, 1384, 273, 509, 12, 77, 18, 588, 2668, 3348, 2187, 296, 20, 26112, 1043, 4717, 273, 15575, 18, 13240, 67, 3072, 12, 77, 18, 85, 16, 787, 33, 3348, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: sage.symbolic.units.is_unit(units.length.meter^2) False
sage: sage.symbolic.units.is_unit(units.length.meter^2) False
def is_unit(s): """ Returns a boolean when asked whether the input is in the list of units. INPUT: - `s` -- an object OUTPUT: - ``bool`` EXAMPLES:: sage: sage.symbolic.units.is_unit(1) False sage: sage.symbolic.units.is_unit(units.length.meter) True The square of a unit is not a unit:: sage: sage.symbolic.units.is_unit(units.length.meter^2) False You can also directly create units using var, though they won't have a nice docstring describing the unit:: sage: sage.symbolic.units.is_unit(var('meter')) True """ return unit_to_type.has_key(str(s))
d9145e61c2e167a847618a21778e0e532a04af5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d9145e61c2e167a847618a21778e0e532a04af5d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 4873, 12, 87, 4672, 3536, 2860, 279, 1250, 1347, 19279, 2856, 326, 810, 353, 316, 326, 666, 434, 4971, 18, 225, 12943, 30, 225, 300, 1375, 87, 68, 1493, 392, 733, 225, 11550, 30, 225, 300, 12176, 6430, 10335, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 21, 13, 1083, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 7705, 18, 2469, 18, 81, 847, 13, 1053, 225, 1021, 8576, 434, 279, 2836, 353, 486, 279, 2836, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 7705, 18, 2469, 18, 81, 847, 66, 22, 13, 1083, 225, 4554, 848, 2546, 5122, 752, 4971, 1450, 569, 16, 11376, 2898, 8462, 1404, 1240, 279, 13752, 14525, 16868, 326, 2836, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 1401, 2668, 81, 847, 26112, 1053, 3536, 327, 2836, 67, 869, 67, 723, 18, 5332, 67, 856, 12, 701, 12, 87, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 4873, 12, 87, 4672, 3536, 2860, 279, 1250, 1347, 19279, 2856, 326, 810, 353, 316, 326, 666, 434, 4971, 18, 225, 12943, 30, 225, 300, 1375, 87, 68, 1493, 392, 733, 225, 11550, 30, 225, 300, 12176, 6430, 10335, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 21, 13, 1083, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 7705, 18, 2469, 18, 81, 847, 13, 1053, 225, 1021, 8576, 434, 279, 2836, 353, 486, 279, 2836, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 291, 67, 4873, 12, 7705, 18, 2469, 2 ]
pass
print('case 03') index = boxdata.index(change['target']) del(boxdata[index]) i = 0 for char in list(change['text']): new = {'char':char, 'xmin':change['target']['xmin'], 'ymin':change['target']['ymin'], 'xmax':change['target']['xmax'], 'ymax':change['target']['ymax']} boxdata.insert(index+i, new) i = i + 1
def resolve(self, boxdata, text): # Convert the boxing information into a plain text string with no bounding information. boxtext = '' for entry in boxdata: boxtext = boxtext + entry['char'] # Remove spacing and newlines from the readable text because the boxing data doesn't have those. text = text.replace(' ', '') text = text.replace('\n', '')
9dbf92d8294de519ef73fabf7e36e75533ae1963 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6474/9dbf92d8294de519ef73fabf7e36e75533ae1963/ocr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 3919, 892, 16, 977, 4672, 468, 4037, 326, 3919, 310, 1779, 1368, 279, 7351, 977, 533, 598, 1158, 7552, 1779, 18, 3919, 955, 273, 875, 364, 1241, 316, 3919, 892, 30, 3919, 955, 273, 3919, 955, 397, 1241, 3292, 3001, 3546, 468, 3581, 13259, 471, 19181, 628, 326, 7471, 977, 2724, 326, 3919, 310, 501, 3302, 1404, 1240, 5348, 18, 977, 273, 977, 18, 2079, 2668, 2265, 28707, 977, 273, 977, 18, 2079, 2668, 64, 82, 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, 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, 2245, 12, 2890, 16, 3919, 892, 16, 977, 4672, 468, 4037, 326, 3919, 310, 1779, 1368, 279, 7351, 977, 533, 598, 1158, 7552, 1779, 18, 3919, 955, 273, 875, 364, 1241, 316, 3919, 892, 30, 3919, 955, 273, 3919, 955, 397, 1241, 3292, 3001, 3546, 468, 3581, 13259, 471, 19181, 628, 326, 7471, 977, 2724, 326, 3919, 310, 501, 3302, 1404, 1240, 5348, 18, 977, 273, 977, 18, 2079, 2668, 2265, 28707, 977, 273, 977, 18, 2079, 2668, 64, 82, 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 ]
real_path = os.path.join (base_path, rel_path)
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Keep the "base path", as all Hylt links are relative. base_path = core_state["base_path"] = os.path.dirname (starting_filename) filename = os.path.basename (starting_filename) core_state["curr_base_path"] = core_state["base_path"] # There are three windows: a top status bar, a primary screen, and a bottom # status bar. There is also the main screen, of course. Create them. top = meta_screen.subwin (1, meta_x, 0, 0) main = meta_screen.subwin (meta_y - 2, meta_x, 1, 0) bottom = meta_screen.subwin (1, meta_x, meta_y - 1, 0) # Read in the configuration. config = core_state["config"] = generateConfiguration (base_path) core_state["history"] = [] fresh_page = True done = False curses.def_prog_mode () main_needs_redraw = True while not done: if fresh_page: core_state["curr_base_path"] = os.path.dirname (filename) readHyltFile (filename, core_state)
3d935dc1773bd71731a9550b77a62ca6c32a7bb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/3d935dc1773bd71731a9550b77a62ca6c32a7bb4/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 10498, 326, 315, 1969, 589, 3113, 487, 777, 14881, 5618, 4716, 854, 3632, 18, 1026, 67, 803, 273, 2922, 67, 2019, 9614, 1969, 67, 803, 11929, 273, 1140, 18, 803, 18, 12287, 261, 18526, 67, 3459, 13, 1544, 273, 1140, 18, 803, 18, 13909, 261, 18526, 67, 3459, 13, 2922, 67, 2019, 9614, 17016, 67, 1969, 67, 803, 11929, 273, 2922, 67, 2019, 9614, 1969, 67, 803, 11929, 282, 468, 6149, 854, 8925, 9965, 30, 279, 1760, 1267, 4653, 16, 279, 3354, 5518, 16, 471, 279, 5469, 468, 1267, 4653, 18, 225, 6149, 353, 2546, 326, 2774, 5518, 16, 434, 4362, 18, 225, 1788, 2182, 18, 1760, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 374, 16, 374, 13, 2774, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 3901, 67, 93, 300, 576, 16, 2191, 67, 92, 16, 404, 16, 374, 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, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 10498, 326, 315, 1969, 589, 3113, 487, 777, 14881, 5618, 4716, 854, 3632, 18, 1026, 67, 803, 273, 2922, 2 ]
result = [Music(row[0]) for row in rows]
result = [Music(row[0]) for row in rows if self.exists(row[0])]
def find_all_by_artist(self, artist): cmd = "SELECT Path FROM Music WHERE Artist = '%s'" % artist.replace("'", "''") rows = self.__db_helper.execute_reader(cmd) result = [Music(row[0]) for row in rows] return result
ad19ad19bb291ef6faba05abac135612ee36eb79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/ad19ad19bb291ef6faba05abac135612ee36eb79/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 454, 67, 1637, 67, 25737, 12, 2890, 16, 15469, 4672, 1797, 273, 315, 4803, 2666, 4571, 490, 14894, 4852, 9042, 376, 273, 1995, 87, 4970, 738, 15469, 18, 2079, 29823, 3113, 2491, 4970, 13, 2595, 273, 365, 16186, 1966, 67, 4759, 18, 8837, 67, 10530, 12, 4172, 13, 563, 273, 306, 49, 14894, 12, 492, 63, 20, 5717, 364, 1027, 316, 2595, 309, 365, 18, 1808, 12, 492, 63, 20, 5717, 65, 327, 563, 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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 4759, 18, 8837, 67, 10530, 12, 4172, 13, 563, 273, 306, 49, 14894, 12, 492, 63, 20, 5717, 364, 1027, 316, 2595, 309, 365, 18, 1808, 12, 492, 63, 20, 5717, 65, 327, 563, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if os.path.exists(a):
if os.path.exists(directory + '/' + a):
def parseArgs(args): """ Parse the command line args return a commands dict and directory. Sanity check all the things being passed in. """ if len(args) == 0: usage() cmds = {} cmds['quiet'] = 0 cmds['verbose'] = 0 cmds['excludes'] = [] cmds['baseurl'] = None cmds['groupfile'] = None cmds['sumtype'] = 'md5' cmds['pretty'] = 0 try: gopts, argsleft = getopt.getopt(args, 'phqVvg:s:x:u:', ['help', 'exclude', 'quiet', 'verbose', 'baseurl=', 'groupfile=', 'checksum=', 'version', 'pretty']) except getopt.error, e: errorprint(_('Options Error: %s.') % e) usage() try: for arg,a in gopts: if arg in ['-h','--help']: usage() elif arg in ['-V', '--version']: print '%s' % __version__ sys.exit(0) elif arg == '-v': cmds['verbose'] = 1 elif arg == "-q": cmds['quiet'] = 1 elif arg in ['-u', '--baseurl']: if cmds['baseurl'] is not None: errorprint(_('Error: Only one baseurl allowed.')) usage() else: cmds['baseurl'] = a elif arg in ['-g', '--groupfile']: if cmds['groupfile'] is not None: errorprint(_('Error: Only one groupfile allowed.')) usage() else: if os.path.exists(a): cmds['groupfile'] = a else: errorprint(_('Error: groupfile %s cannot be found.' % a)) usage() elif arg in ['-x', '--exclude']: cmds['excludes'].append(a) elif arg in ['-p', '--pretty']: cmds['pretty'] = 1 elif arg in ['-s', '--checksum']: if a not in ['md5', 'sha']: errorprint(_('Error: checksums are: md5 or sha.')) usage() else: cmds['sumtype'] = a except ValueError, e: errorprint(_('Options Error: %s') % e) usage() if len(argsleft) != 1: errorprint(_('Error: Only one directory allowed per run.')) usage() else: directory = argsleft[0] return cmds, directory
cbaae1150a20af8046109ed0c49b842d08159e2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/cbaae1150a20af8046109ed0c49b842d08159e2f/genpkgmetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2615, 12, 1968, 4672, 3536, 2884, 326, 1296, 980, 833, 327, 279, 4364, 2065, 471, 1867, 18, 23123, 866, 777, 326, 9198, 3832, 2275, 316, 18, 3536, 309, 225, 562, 12, 1968, 13, 422, 374, 30, 4084, 1435, 13446, 273, 2618, 13446, 3292, 20380, 3546, 273, 374, 13446, 3292, 11369, 3546, 273, 374, 13446, 3292, 338, 8993, 3546, 273, 5378, 13446, 3292, 1969, 718, 3546, 273, 599, 13446, 3292, 1655, 768, 3546, 273, 599, 13446, 3292, 1364, 723, 3546, 273, 296, 1264, 25, 11, 13446, 3292, 19073, 3546, 273, 374, 225, 775, 30, 1960, 1092, 16, 833, 4482, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 296, 844, 85, 58, 20105, 30, 87, 30, 92, 30, 89, 30, 2187, 10228, 5201, 2187, 296, 10157, 2187, 296, 20380, 2187, 296, 11369, 2187, 296, 1969, 718, 33, 2187, 296, 1655, 768, 33, 2187, 296, 15149, 33, 2187, 296, 1589, 2187, 296, 19073, 19486, 1335, 336, 3838, 18, 1636, 16, 425, 30, 555, 1188, 24899, 2668, 1320, 1068, 30, 738, 87, 1093, 13, 738, 425, 13, 4084, 1435, 225, 775, 30, 364, 1501, 16, 69, 316, 1960, 1092, 30, 309, 1501, 316, 10228, 17, 76, 17023, 413, 5201, 3546, 30, 4084, 1435, 1327, 1501, 316, 10228, 17, 58, 2187, 3534, 1589, 3546, 30, 1172, 1995, 87, 11, 738, 1001, 1589, 972, 2589, 18, 8593, 12, 20, 13, 1327, 1501, 422, 2400, 90, 4278, 13446, 3292, 11369, 3546, 273, 404, 1327, 1501, 422, 3701, 85, 6877, 13446, 3292, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2615, 12, 1968, 4672, 3536, 2884, 326, 1296, 980, 833, 327, 279, 4364, 2065, 471, 1867, 18, 23123, 866, 777, 326, 9198, 3832, 2275, 316, 18, 3536, 309, 225, 562, 12, 1968, 13, 422, 374, 30, 4084, 1435, 13446, 273, 2618, 13446, 3292, 20380, 3546, 273, 374, 13446, 3292, 11369, 3546, 273, 374, 13446, 3292, 338, 8993, 3546, 273, 5378, 13446, 3292, 1969, 718, 3546, 273, 599, 13446, 3292, 1655, 768, 3546, 273, 599, 13446, 3292, 1364, 723, 3546, 273, 296, 1264, 25, 11, 13446, 3292, 19073, 3546, 273, 374, 225, 775, 30, 1960, 1092, 16, 833, 4482, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 296, 844, 85, 58, 20105, 30, 87, 30, 92, 30, 2 ]
EXAMPLES: We illustrate the first six input formats (the other two
EXAMPLES: We illustrate the first six input formats (the other two
def canonical_label(self, partition=None, certify=False, verbosity=0, edge_labels=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition.
de4709933461015623fada3458699ad66b31a1d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/de4709933461015623fada3458699ad66b31a1d7/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 7378, 1433, 598, 8762, 358, 326, 3590, 18, 971, 1158, 3590, 353, 864, 16, 4692, 326, 2836, 3590, 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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 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 7378, 1433, 598, 8762, 358, 326, 3590, 18, 971, 1158, 3590, 353, 864, 16, 4692, 326, 2836, 3590, 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 ]
elif capCount < capMax: if (character == string.upper(character)): capitalize = True
elif (character == string.upper(character) and len(self.autoCapitalizeAllowPrefixes) and wordSoFar in self.autoCapitalizeAllowPrefixes): capitalize = True elif (len(self.autoCapitalizeForcePrefixes) and wordSoFar in self.autoCapitalizeForcePrefixes): capitalize = True
def _autoCapitalize(self): name = self.get().decode('utf-8') # capitalize each word capName = '' # allow no more than two capital letters per word capCount = 0 capMax = 2 for i in xrange(len(name)): character = name[i] # is it a letter that can be capitalized? # This assumes that string.lower and string.upper will return different # values for all unicode letters. canCapitalize = string.lower(character) != string.upper(character) if not canCapitalize: # this is a non-capitalize-able letter, assume we are between words. # reset the per-word capital letter count capCount = 0 else: capitalize = False # if it's not preceded by a letter, capitalize it unconditionally; # it's the first letter of a word if (i == 0) or string.lower(name[i-1]) == string.upper(name[i-1]): capitalize = True elif capCount < capMax: # we haven't hit the per-word limit for capital letters yet # is it a capital letter? if (character == string.upper(character)): # allow this letter to remain capitalized capitalize = True if capitalize: character = string.upper(character) capCount += 1 else: character = string.lower(character) capName += character self.enterText(capName.encode('utf-8'))
7e1083d8f97f208e4d9cb13ceab3cbf3a414014e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/7e1083d8f97f208e4d9cb13ceab3cbf3a414014e/DirectEntry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 4664, 7053, 554, 12, 2890, 4672, 508, 273, 365, 18, 588, 7675, 3922, 2668, 3158, 17, 28, 6134, 468, 17451, 1517, 2076, 3523, 461, 273, 875, 468, 1699, 1158, 1898, 2353, 2795, 12872, 13768, 1534, 2076, 3523, 1380, 273, 374, 3523, 2747, 273, 576, 364, 277, 316, 12314, 12, 1897, 12, 529, 3719, 30, 3351, 273, 508, 63, 77, 65, 468, 353, 518, 279, 9471, 716, 848, 506, 12872, 1235, 35, 468, 1220, 13041, 716, 533, 18, 8167, 471, 533, 18, 5797, 903, 327, 3775, 468, 924, 364, 777, 5252, 13768, 18, 848, 4664, 7053, 554, 273, 533, 18, 8167, 12, 11560, 13, 480, 533, 18, 5797, 12, 11560, 13, 309, 486, 848, 4664, 7053, 554, 30, 468, 333, 353, 279, 1661, 17, 5909, 7053, 554, 17, 429, 9471, 16, 6750, 732, 854, 3086, 4511, 18, 468, 2715, 326, 1534, 17, 1095, 12872, 9471, 1056, 3523, 1380, 273, 374, 469, 30, 17451, 273, 1083, 468, 309, 518, 1807, 486, 29953, 635, 279, 9471, 16, 17451, 518, 6301, 1434, 22913, 31, 468, 518, 1807, 326, 1122, 9471, 434, 279, 2076, 309, 261, 77, 422, 374, 13, 578, 533, 18, 8167, 12, 529, 63, 77, 17, 21, 5717, 422, 533, 18, 5797, 12, 529, 63, 77, 17, 21, 65, 4672, 17451, 273, 1053, 1327, 3523, 1380, 411, 3523, 2747, 30, 468, 732, 15032, 1404, 6800, 326, 1534, 17, 1095, 1800, 364, 12872, 13768, 4671, 468, 353, 518, 279, 12872, 9471, 35, 309, 261, 11560, 422, 533, 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, 6079, 4664, 7053, 554, 12, 2890, 4672, 508, 273, 365, 18, 588, 7675, 3922, 2668, 3158, 17, 28, 6134, 468, 17451, 1517, 2076, 3523, 461, 273, 875, 468, 1699, 1158, 1898, 2353, 2795, 12872, 13768, 1534, 2076, 3523, 1380, 273, 374, 3523, 2747, 273, 576, 364, 277, 316, 12314, 12, 1897, 12, 529, 3719, 30, 3351, 273, 508, 63, 77, 65, 468, 353, 518, 279, 9471, 716, 848, 506, 12872, 1235, 35, 468, 1220, 13041, 716, 533, 18, 8167, 471, 533, 18, 5797, 903, 327, 3775, 468, 924, 364, 777, 5252, 13768, 18, 848, 4664, 7053, 554, 273, 533, 18, 8167, 12, 11560, 13, 480, 533, 18, 5797, 12, 11560, 13, 309, 486, 848, 4664, 7053, 554, 2 ]
if action == 'push': if not HasPermissionAnyMiddleware('repository.write', 'repository.admin')\ (user, repo_name): return HTTPForbidden()(environ, start_response)
def __call__(self, environ, start_response): if not is_mercurial(environ): return self.application(environ, start_response)
71052ce4e01163e7f0c4ea0966db2d47bcb5b568 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/71052ce4e01163e7f0c4ea0966db2d47bcb5b568/simplehg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 309, 486, 353, 67, 6592, 1397, 649, 12, 28684, 4672, 327, 365, 18, 3685, 12, 28684, 16, 787, 67, 2740, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 309, 486, 353, 67, 6592, 1397, 649, 12, 28684, 4672, 327, 365, 18, 3685, 12, 28684, 16, 787, 67, 2740, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
key = (j[0], j[1], j[2], arch)
key = (j[0], arch)
def doop_source(self, pkg):
6abbd90bfcb33ae5f570c924e7387a2633b9d0de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/6abbd90bfcb33ae5f570c924e7387a2633b9d0de/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 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, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 741, 556, 67, 3168, 12, 2890, 16, 3475, 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 ]
'mail_service_id' : fields.many2one('dm.mail_service','Mail Service'), 'campaign_id' : fields.many2one('dm.campaign','Campaign'), 'offer_step_id' : fields.many2one('dm.offer.step','Offer Step'),
'mail_service_id': fields.many2one('dm.mail_service', 'Mail Service'), 'campaign_id': fields.many2one('dm.campaign', 'Campaign'), 'offer_step_id': fields.many2one('dm.offer.step', 'Offer Step'),
def on_change_service_type(self, cr, uid, ids, type_id): res = {'value':{}} if type_id: service_type = self.pool.get('dm.mail_service.type').read(cr, uid, [type_id])[0] res['value'] = {'service_type':service_type['code']} return res
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 3278, 67, 723, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 67, 350, 4672, 400, 273, 13666, 1132, 4278, 2916, 97, 309, 618, 67, 350, 30, 1156, 67, 723, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 4408, 67, 3278, 18, 723, 16063, 896, 12, 3353, 16, 4555, 16, 306, 723, 67, 350, 5717, 63, 20, 65, 400, 3292, 1132, 3546, 273, 13666, 3278, 67, 723, 4278, 3278, 67, 723, 3292, 710, 14579, 327, 400, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 3278, 67, 723, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 67, 350, 4672, 400, 273, 13666, 1132, 4278, 2916, 97, 309, 618, 67, 350, 30, 1156, 67, 723, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 4408, 67, 3278, 18, 723, 16063, 896, 12, 3353, 16, 4555, 16, 306, 723, 67, 350, 5717, 63, 20, 65, 400, 3292, 1132, 3546, 273, 13666, 3278, 67, 723, 4278, 3278, 67, 723, 3292, 710, 14579, 327, 400, 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 ]
if include_endpoint: if universe in [int, long, ZZ]: if (start-end) % step == 0: end += step else: count = (start-end)/step if count == int(float(count)): end += step count += 1 if universe is int: return xrange(start, end, step)
if universe in [int, long, ZZ]: if include_endpoint and (end-start) % step == 0: end += step include_endpoint = False if universe is not ZZ: return xrange(start, end, step) count = (end-start)/step if universe is long or not isinstance(universe, type) and universe.is_exact(): icount = int(math.ceil(float(count))) if icount != count: include_endpoint = False
def xsrange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): """ Return an iterator over numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. INPUT: a -- number b -- number step -- number (default: 1) OUTPUT: iterator Unlike range, a and b can be any type of numbers, and the resulting iterator involves numbers of that type. SEE ALSO: srange. NOTE: This function is called \code{xsrange} to distinguish it from the builtin Python \code{xrange} command. EXAMPLES: sage: list(xsrange(1,10)) [1, 2, 3, 4, 5, 6, 7, 8, 9] sage: Q = RationalField() sage: list(xsrange(1, 10, Q('1/2'))) [1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 11/2, 6, 13/2, 7, 15/2, 8, 17/2, 9, 19/2] sage: R = RealField() sage: list(xsrange(1, 5, R(0.5))) [1.00000000000000, 1.50000000000000, 2.00000000000000, 2.50000000000000, 3.00000000000000, 3.50000000000000, 4.00000000000000, 4.50000000000000] sage: list(xsrange(0, 1, R('0.4'))) [0.000000000000000, 0.400000000000000, 0.800000000000000] Negative ranges are also allowed: sage: list(xrange(4,1,-1)) [4, 3, 2] sage: list(sxrange(4,1,-1)) [4, 3, 2] sage: list(sxrange(4,1,-1/2)) [4, 7/2, 3, 5/2, 2, 3/2] """ if end is None: end = start start = 0 if step == 0: raise ValueError, "step must not be 0" from sage.structure.sequence import Sequence from sage.rings.all import ZZ if check: if universe is None: universe = Sequence([start, end, step]).universe() start, end, step = universe(start), universe(end), universe(step) if include_endpoint: if universe in [int, long, ZZ]: if (start-end) % step == 0: end += step else: count = (start-end)/step if count == int(float(count)): end += step count += 1 if universe is int: return xrange(start, end, step)
7dbed6340590bb07caaccdfb42c33acf5a427320 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7dbed6340590bb07caaccdfb42c33acf5a427320/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9280, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 4672, 3536, 2000, 392, 2775, 1879, 5600, 521, 710, 95, 69, 16, 279, 15, 4119, 16, 1372, 16, 279, 15, 79, 14, 4119, 5779, 1625, 521, 710, 95, 69, 15, 79, 14, 4119, 411, 324, 97, 471, 521, 710, 95, 69, 15, 12, 79, 15, 21, 17653, 4119, 405, 324, 5496, 225, 12943, 30, 279, 1493, 1300, 324, 1493, 1300, 2235, 1493, 1300, 261, 1886, 30, 404, 13, 11550, 30, 2775, 225, 25448, 1048, 16, 279, 471, 324, 848, 506, 1281, 618, 434, 5600, 16, 471, 326, 8156, 2775, 29876, 3324, 5600, 434, 716, 618, 18, 225, 3174, 41, 432, 3045, 51, 30, 272, 3676, 18, 225, 5219, 30, 1220, 445, 353, 2566, 521, 710, 95, 13713, 3676, 97, 358, 23926, 518, 628, 326, 15273, 6600, 521, 710, 95, 92, 3676, 97, 1296, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 666, 12, 13713, 3676, 12, 21, 16, 2163, 3719, 306, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 16, 1725, 16, 2468, 65, 225, 272, 410, 30, 2238, 273, 534, 8371, 974, 1435, 272, 410, 30, 666, 12, 13713, 3676, 12, 21, 16, 1728, 16, 2238, 2668, 21, 19, 22, 11, 20349, 306, 21, 16, 890, 19, 22, 16, 576, 16, 1381, 19, 22, 16, 890, 16, 2371, 19, 22, 16, 1059, 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, 9280, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 4672, 3536, 2000, 392, 2775, 1879, 5600, 521, 710, 95, 69, 16, 279, 15, 4119, 16, 1372, 16, 279, 15, 79, 14, 4119, 5779, 1625, 521, 710, 95, 69, 15, 79, 14, 4119, 411, 324, 97, 471, 521, 710, 95, 69, 15, 12, 79, 15, 21, 17653, 4119, 405, 324, 5496, 225, 12943, 30, 279, 1493, 1300, 324, 1493, 1300, 2235, 1493, 1300, 261, 1886, 30, 404, 13, 11550, 30, 2775, 225, 25448, 1048, 16, 279, 471, 324, 848, 506, 1281, 618, 434, 5600, 16, 471, 326, 8156, 2775, 29876, 3324, 5600, 2 ]
signode += addnodes.desc_addname(nameprefix, nameprefix)
signode += addnodes.desc_addname(nameprefix + '.', nameprefix + '.')
def handle_signature(self, sig, signode): match = js_sig_re.match(sig) if match is None: raise ValueError() nameprefix, name, arglist = match.groups()
16af1ad55982941124f9e5f63e6e81f7f3eebe88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/16af1ad55982941124f9e5f63e6e81f7f3eebe88/javascript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 8195, 12, 2890, 16, 3553, 16, 1573, 390, 4672, 845, 273, 3828, 67, 7340, 67, 266, 18, 1916, 12, 7340, 13, 309, 845, 353, 599, 30, 1002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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 8195, 12, 2890, 16, 3553, 16, 1573, 390, 4672, 845, 273, 3828, 67, 7340, 67, 266, 18, 1916, 12, 7340, 13, 309, 845, 353, 599, 30, 1002, 2068, 1435, 508, 3239, 16, 508, 16, 31805, 273, 845, 18, 4650, 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 ]
Result: A list of TestCase objects on success or a dictionary containing values for the keys, "faultCode" and "faultString".
Result: A list of TestCase objects on success
def testplan_get_test_cases(self, plan_id): """Get A List of Test Cases For An Existing Test Plan.
83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py
[ 1, 8585, 326, 22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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7088, 67, 588, 67, 3813, 67, 22186, 12, 2890, 16, 4995, 67, 350, 4672, 3536, 967, 432, 987, 434, 7766, 385, 3304, 2457, 1922, 28257, 7766, 12540, 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 ]
if not re.match(r"^([\w-]+)/([\w-]+)/([\w-]+)/([\w-]+)$", key):
if not re.match(r"^([\w\.-]+)/([\w\.-]+)/([\w\.-]+)/([\w\.-]+)$", key):
def testPerfExpectations(self): perf_data = LoadData()
dec8a15f70878a3d38b16c552b0e3d893d7f68e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/dec8a15f70878a3d38b16c552b0e3d893d7f68e6/perf_expectations_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 22016, 11988, 1012, 12, 2890, 4672, 14184, 67, 892, 273, 4444, 751, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22016, 11988, 1012, 12, 2890, 4672, 14184, 67, 892, 273, 4444, 751, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
box.Add(self.nextButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5)
def OnInit(self):
ba8e5f745581acf2bd520ada71fb09aa70a52e9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ba8e5f745581acf2bd520ada71fb09aa70a52e9e/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2755, 2570, 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 ]
suff = suff[1:]
def is_square_free(self): r""" Returns True if self does not contain squares, and False otherwise.
65e004c0d1f96d960ea72ba590c71bc975cf9627 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/65e004c0d1f96d960ea72ba590c71bc975cf9627/finite_word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 19719, 67, 9156, 12, 2890, 4672, 436, 8395, 2860, 1053, 309, 365, 1552, 486, 912, 31206, 16, 471, 1083, 3541, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 19719, 67, 9156, 12, 2890, 4672, 436, 8395, 2860, 1053, 309, 365, 1552, 486, 912, 31206, 16, 471, 1083, 3541, 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 ]
try: wikipedia.showDiff(oldtext, newtext) except: wikipedia.output(u'Error executing showDiff')
wikipedia.showDiff(oldtext, newtext)
def replaceLinks(self, pl, new, sa): wikipedia.output(u"Updating links on page %s." % pl.aslink(forceInterwiki = True))
02fc12a4124b63d8e2a4be36fe82132950863eae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/02fc12a4124b63d8e2a4be36fe82132950863eae/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 7100, 12, 2890, 16, 886, 16, 394, 16, 7864, 4672, 21137, 18, 2844, 12, 89, 6, 17858, 4716, 603, 1363, 738, 87, 1199, 738, 886, 18, 345, 1232, 12, 5734, 2465, 13044, 273, 1053, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1363, 738, 87, 1199, 738, 886, 18, 345, 1232, 12, 5734, 2465, 13044, 273, 1053, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_logger.debug('BuddyLeft: %s', buddy_path)
_logger.debug('%r: BuddyLeft: %s', self, buddy_path)
def BuddyLeft(self, buddy_path): """Generates DBUS signal when a buddy leaves this activity.
25577b1486c01197df936bb991230734bc38df7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3113/25577b1486c01197df936bb991230734bc38df7b/activity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 29017, 3910, 12, 2890, 16, 324, 29017, 67, 803, 4672, 3536, 6653, 2383, 3378, 4277, 1347, 279, 324, 29017, 15559, 333, 5728, 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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]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 29017, 3910, 12, 2890, 16, 324, 29017, 67, 803, 4672, 3536, 6653, 2383, 3378, 4277, 1347, 279, 324, 29017, 15559, 333, 5728, 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 ]
if 'readonly' in self.attrs and self.attrs['readonly']:
if key == 'readonly' and self.attrs.get(key, False):
def state_set(self, model, values=None): if values is None: values = {'state': 'draft'} state_changes = self.attrs.get('states', {}) try: if isinstance(state_changes, basestring): state_changes = eval(state_changes) for key in ('readonly', 'required', 'invisible'): if 'readonly' in self.attrs and self.attrs['readonly']: continue if key in state_changes: self.get_state_attrs(model)[key] = \ eval(state_changes[key], values) elif key in self.attrs: self.get_state_attrs(model)[key] = self.attrs[key] if model.mgroup.readonly: self.get_state_attrs(model)['readonly'] = True if 'value' in state_changes: value = eval(state_changes['value'], values) if value: self.set(model, value, test_state=False, modified=True) except: pass
5c79be6a7c670c3293355ffcc3e0f4cee9a78181 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/5c79be6a7c670c3293355ffcc3e0f4cee9a78181/field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 67, 542, 12, 2890, 16, 938, 16, 924, 33, 7036, 4672, 309, 924, 353, 599, 30, 924, 273, 13666, 2019, 4278, 296, 17153, 11, 97, 919, 67, 6329, 273, 365, 18, 7039, 18, 588, 2668, 7992, 2187, 2618, 13, 775, 30, 309, 1549, 12, 2019, 67, 6329, 16, 10699, 4672, 919, 67, 6329, 273, 5302, 12, 2019, 67, 6329, 13, 364, 498, 316, 7707, 16365, 2187, 296, 4718, 2187, 296, 267, 8613, 11, 4672, 309, 498, 422, 296, 16365, 11, 471, 365, 18, 7039, 18, 588, 12, 856, 16, 1083, 4672, 1324, 309, 498, 316, 919, 67, 6329, 30, 365, 18, 588, 67, 2019, 67, 7039, 12, 2284, 25146, 856, 65, 273, 521, 5302, 12, 2019, 67, 6329, 63, 856, 6487, 924, 13, 1327, 498, 316, 365, 18, 7039, 30, 365, 18, 588, 67, 2019, 67, 7039, 12, 2284, 25146, 856, 65, 273, 365, 18, 7039, 63, 856, 65, 309, 938, 18, 81, 1655, 18, 16365, 30, 365, 18, 588, 67, 2019, 67, 7039, 12, 2284, 13, 3292, 16365, 3546, 273, 1053, 309, 296, 1132, 11, 316, 919, 67, 6329, 30, 460, 273, 5302, 12, 2019, 67, 6329, 3292, 1132, 17337, 924, 13, 309, 460, 30, 365, 18, 542, 12, 2284, 16, 460, 16, 1842, 67, 2019, 33, 8381, 16, 4358, 33, 5510, 13, 1335, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 919, 67, 542, 12, 2890, 16, 938, 16, 924, 33, 7036, 4672, 309, 924, 353, 599, 30, 924, 273, 13666, 2019, 4278, 296, 17153, 11, 97, 919, 67, 6329, 273, 365, 18, 7039, 18, 588, 2668, 7992, 2187, 2618, 13, 775, 30, 309, 1549, 12, 2019, 67, 6329, 16, 10699, 4672, 919, 67, 6329, 273, 5302, 12, 2019, 67, 6329, 13, 364, 498, 316, 7707, 16365, 2187, 296, 4718, 2187, 296, 267, 8613, 11, 4672, 309, 498, 422, 296, 16365, 11, 471, 365, 18, 7039, 18, 588, 12, 856, 16, 1083, 4672, 1324, 309, 498, 316, 919, 67, 6329, 30, 365, 18, 588, 67, 2019, 67, 7039, 12, 2284, 25146, 856, 65, 273, 521, 5302, 12, 2019, 67, 2 ]
raise ValueError("Unsupported scrap_type: %r" % (scrap_type,))
pass
def put(scrap_type, thing): board = NSPasteboard.generalPasteboard() if scrap_type == SCRAP_TEXT: board.declareTypes_owner_([NSStringPboardType, ScrapPboardType], None) if isinstance(thing, unicode): text_thing = thing else: text_thing = unicode(text_thing, 'utf-8') board.setString_forType_(text_thing, NSStringPboardType) board.setString_forType_(u'', ScrapPboardType) elif scrap_type == SCRAP_BMP: # This is pretty silly, we shouldn't have to do this... fh = tempfile.NamedTemporaryFile(suffix='.png') pygame.image.save(thing, fh.name) path = fh.name if not isinstance(path, unicode): path = unicode(path, sys.getfilesystemencoding()) img = NSImage.alloc().initByReferencingFile_(path) tiff = img.TIFFRepresentation() fh.close() board.declareTypes_owner_([NSTIFFPboardType, ScrapPboardType], None) board.setData_forType_(tiff, NSTIFFPboardType) board.setString_forType_(u'', ScrapPboardType) else: raise ValueError("Unsupported scrap_type: %r" % (scrap_type,))
bd6e0badd3e5bbf24d517ef0c768e2c1534a6350 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/bd6e0badd3e5bbf24d517ef0c768e2c1534a6350/mac_scrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 1017, 1266, 67, 723, 16, 7757, 4672, 11094, 273, 423, 3118, 14725, 3752, 18, 12259, 52, 14725, 3752, 1435, 309, 888, 1266, 67, 723, 422, 348, 5093, 2203, 67, 5151, 30, 11094, 18, 29554, 2016, 67, 8443, 67, 3816, 3156, 780, 52, 3752, 559, 16, 2850, 1266, 52, 3752, 559, 6487, 599, 13, 309, 1549, 12, 4274, 16, 5252, 4672, 977, 67, 4274, 273, 7757, 469, 30, 977, 67, 4274, 273, 5252, 12, 955, 67, 4274, 16, 296, 3158, 17, 28, 6134, 11094, 18, 542, 780, 67, 1884, 559, 67, 12, 955, 67, 4274, 16, 11472, 780, 52, 3752, 559, 13, 11094, 18, 542, 780, 67, 1884, 559, 67, 12, 89, 11, 2187, 2850, 1266, 52, 3752, 559, 13, 1327, 888, 1266, 67, 723, 422, 348, 5093, 2203, 67, 38, 4566, 30, 468, 1220, 353, 7517, 17714, 715, 16, 732, 12044, 1404, 1240, 358, 741, 333, 2777, 7625, 273, 13275, 18, 7604, 23808, 12, 8477, 2218, 18, 6446, 6134, 2395, 13957, 18, 2730, 18, 5688, 12, 4274, 16, 7625, 18, 529, 13, 589, 273, 7625, 18, 529, 309, 486, 1549, 12, 803, 16, 5252, 4672, 589, 273, 5252, 12, 803, 16, 2589, 18, 588, 17846, 5999, 10756, 3774, 273, 11472, 2040, 18, 9853, 7675, 2738, 858, 426, 586, 15495, 812, 67, 12, 803, 13, 268, 3048, 273, 3774, 18, 56, 16962, 13742, 1435, 7625, 18, 4412, 1435, 11094, 18, 29554, 2016, 67, 8443, 67, 3816, 50, 882, 16962, 52, 3752, 559, 16, 2850, 1266, 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, 1378, 12, 1017, 1266, 67, 723, 16, 7757, 4672, 11094, 273, 423, 3118, 14725, 3752, 18, 12259, 52, 14725, 3752, 1435, 309, 888, 1266, 67, 723, 422, 348, 5093, 2203, 67, 5151, 30, 11094, 18, 29554, 2016, 67, 8443, 67, 3816, 3156, 780, 52, 3752, 559, 16, 2850, 1266, 52, 3752, 559, 6487, 599, 13, 309, 1549, 12, 4274, 16, 5252, 4672, 977, 67, 4274, 273, 7757, 469, 30, 977, 67, 4274, 273, 5252, 12, 955, 67, 4274, 16, 296, 3158, 17, 28, 6134, 11094, 18, 542, 780, 67, 1884, 559, 67, 12, 955, 67, 4274, 16, 11472, 780, 52, 3752, 559, 13, 11094, 18, 542, 780, 67, 1884, 559, 67, 12, 89, 11, 2187, 2850, 1266, 52, 2 ]
self.logger.debug("ThreadPackageMirror succeed %s"%(str(result)))
self.logger.debug("ThreadPackageMirror succeed %s" % (str(result)))
def onSuccess(self, result, args): pid, target, is_deletion = args out, err, code = result if code == 0: self.logger.debug("ThreadPackageMirror succeed %s"%(str(result))) Common().removePackagesFromRsyncList(pid, target) else: self.logger.error("ThreadPackageMirror mirroring command failed %s"%(str(result)))
7879d145d6e1f41cca4fb3f4649b20d89d33e95f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/7879d145d6e1f41cca4fb3f4649b20d89d33e95f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20613, 12, 2890, 16, 563, 16, 833, 4672, 4231, 16, 1018, 16, 353, 67, 19003, 285, 273, 833, 596, 16, 393, 16, 981, 273, 563, 309, 981, 422, 374, 30, 365, 18, 4901, 18, 4148, 2932, 3830, 2261, 13035, 12897, 738, 87, 6, 738, 261, 701, 12, 2088, 20349, 5658, 7675, 4479, 11425, 1265, 54, 8389, 682, 12, 6610, 16, 1018, 13, 469, 30, 365, 18, 4901, 18, 1636, 2932, 3830, 2261, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20613, 12, 2890, 16, 563, 16, 833, 4672, 4231, 16, 1018, 16, 353, 67, 19003, 285, 273, 833, 596, 16, 393, 16, 981, 273, 563, 309, 981, 422, 374, 30, 365, 18, 4901, 18, 4148, 2932, 3830, 2261, 13035, 12897, 738, 87, 6, 738, 261, 701, 12, 2088, 20349, 5658, 7675, 4479, 11425, 1265, 54, 8389, 682, 12, 6610, 16, 1018, 13, 469, 30, 365, 18, 4901, 18, 1636, 2932, 3830, 2261, 13035, 312, 7439, 6053, 1296, 2535, 738, 87, 6, 17105, 701, 12, 2088, 20349, 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 ]
package.load(package_dictionary.get(package.codepath, None)) if self._dependency_graph.vertices.has_key(package.identifier): raise VistrailsInternalError('duplicate package identifier: %s' % package.identifier) self._dependency_graph.add_vertex(package.identifier) self._identifier_map[package.identifier] = package
try: package.load(package_dictionary.get(package.codepath, None)) except Package.LoadFailed, e: print "FAILED TO LOAD, let's disable it" package.remove_own_dom_element() failed.append(package) else: if self._dependency_graph.vertices.has_key(package.identifier): raise VistrailsInternalError('duplicate package identifier: %s' % package.identifier) self._dependency_graph.add_vertex(package.identifier) self._identifier_map[package.identifier] = package for pkg in failed: del self._package_list[pkg.codepath]
def initialize_packages(self,package_dictionary={}): """initialize_packages(package_dictionary={}): None
05a09d37512301aa59c1abed9892c1cbc9d5c4d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/05a09d37512301aa59c1abed9892c1cbc9d5c4d0/packagemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 10308, 12, 2890, 16, 5610, 67, 15556, 12938, 4672, 3536, 11160, 67, 10308, 12, 5610, 67, 15556, 12938, 4672, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 10308, 12, 2890, 16, 5610, 67, 15556, 12938, 4672, 3536, 11160, 67, 10308, 12, 5610, 67, 15556, 12938, 4672, 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 ]
residue_dict['%s_%s_%s'% (sidechain_atoms[0],sidechain_atoms[1],sidechain_atoms[2])] = sidechain_angle
residue_dict['%s_%s_%s'% (sidechain_atom_names[0],sidechain_atom_names[1],sidechain_atom_names[2])] = sidechain_angle
def calc_sidechain_angles(residue, residue_dict): """ NEEDS TESTING AND A GOOD LOOKING OVER""" """ Calculates Values for sidechain bond angles. Uses a predefined list from sidechain.py, specifically bond_angles. """ try: mapping = bond_lengths[residue.resname] for i in range(len(mapping)): sidechain_atom_names= mapping[i] try: sidechain_atoms = [residue[n].get_vector() for n in sidechain_atom_names] sidechain_angle = calc_angle(*sidechain_atoms) residue_dict['%s_%s_%s'% (sidechain_atoms[0],sidechain_atoms[1],sidechain_atoms[2])] = sidechain_angle except KeyError: #missing an atom continue except KeyError: # this residue type does not have sidechain angles pass
00777b831a990177de327735023515352dc803bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/00777b831a990177de327735023515352dc803bf/ProcessPDBTask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 5564, 5639, 67, 12356, 12, 23388, 16, 14765, 67, 1576, 4672, 3536, 12901, 2056, 55, 22130, 1360, 4116, 432, 12389, 1212, 1806, 3141, 1360, 22577, 8395, 3536, 26128, 6876, 364, 4889, 5639, 8427, 15479, 18, 14854, 279, 19555, 666, 628, 4889, 5639, 18, 2074, 16, 21195, 8427, 67, 12356, 18, 3536, 775, 30, 2874, 273, 8427, 67, 14907, 63, 23388, 18, 455, 529, 65, 364, 277, 316, 1048, 12, 1897, 12, 6770, 3719, 30, 4889, 5639, 67, 7466, 67, 1973, 33, 2874, 63, 77, 65, 775, 30, 4889, 5639, 67, 14937, 273, 306, 23388, 63, 82, 8009, 588, 67, 7737, 1435, 364, 290, 316, 4889, 5639, 67, 7466, 67, 1973, 65, 4889, 5639, 67, 4341, 273, 7029, 67, 4341, 30857, 5564, 5639, 67, 14937, 13, 14765, 67, 1576, 3292, 9, 87, 10185, 87, 10185, 87, 11, 9, 261, 5564, 5639, 67, 7466, 67, 1973, 63, 20, 6487, 5564, 5639, 67, 7466, 67, 1973, 63, 21, 6487, 5564, 5639, 67, 7466, 67, 1973, 63, 22, 5717, 65, 273, 4889, 5639, 67, 4341, 1335, 4999, 30, 468, 7337, 392, 3179, 1324, 225, 1335, 4999, 30, 468, 333, 14765, 618, 1552, 486, 1240, 4889, 5639, 15479, 1342, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 5564, 5639, 67, 12356, 12, 23388, 16, 14765, 67, 1576, 4672, 3536, 12901, 2056, 55, 22130, 1360, 4116, 432, 12389, 1212, 1806, 3141, 1360, 22577, 8395, 3536, 26128, 6876, 364, 4889, 5639, 8427, 15479, 18, 14854, 279, 19555, 666, 628, 4889, 5639, 18, 2074, 16, 21195, 8427, 67, 12356, 18, 3536, 775, 30, 2874, 273, 8427, 67, 14907, 63, 23388, 18, 455, 529, 65, 364, 277, 316, 1048, 12, 1897, 12, 6770, 3719, 30, 4889, 5639, 67, 7466, 67, 1973, 33, 2874, 63, 77, 65, 775, 30, 4889, 5639, 67, 14937, 273, 306, 23388, 63, 82, 8009, 588, 67, 7737, 1435, 364, 290, 316, 4889, 5639, 67, 7466, 67, 1973, 65, 4889, 5639, 67, 4341, 273, 2 ]
def reload_orientation(self, entry, dropdown): self.load_orientation(entry['group'], entry['key'], dropdown)
def reload_orientation(self, group, key, value, dropdown): self.load_orientation(group, key, dropdown)
def reload_orientation(self, entry, dropdown): self.load_orientation(entry['group'], entry['key'], dropdown)
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, 19235, 12, 2890, 16, 1241, 16, 13972, 4672, 365, 18, 945, 67, 19235, 12, 4099, 3292, 1655, 17337, 1241, 3292, 856, 17337, 13972, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 67, 19235, 12, 2890, 16, 1241, 16, 13972, 4672, 365, 18, 945, 67, 19235, 12, 4099, 3292, 1655, 17337, 1241, 3292, 856, 17337, 13972, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: fp = open(file) except: return None
fp = open(file)
def __init__(self, file=None): if not file: file = os.path.join(os.environ['HOME'], ".netrc") try: fp = open(file) except: return None self.hosts = {} self.macros = {} lexer = shlex.shlex(fp)
94386c09a599b72a60117b78821688716b60139b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/94386c09a599b72a60117b78821688716b60139b/netrc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 33, 7036, 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 33, 7036, 4672, 309, 486, 585, 30, 585, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 28684, 3292, 14209, 17337, 3552, 2758, 1310, 7923, 4253, 273, 1696, 12, 768, 13, 365, 18, 11588, 273, 2618, 365, 18, 5821, 6973, 273, 2618, 8512, 273, 27180, 18, 674, 4149, 12, 7944, 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 ]
self._consumer = _SequenceConsumer()
self._consumer = _SequenceConsumer(alphabet)
def __init__(self): self._scanner = _Scanner() self._consumer = _SequenceConsumer()
c003e4b85f91f86bef6738c9bee1feedd98e365a /local1/tlutelli/issta_data/temp/all_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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 6315, 26842, 273, 389, 11338, 1435, 365, 6315, 13230, 273, 389, 4021, 5869, 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, -100, -100, -100, -100 ]
if isinstance(document, str):
if isinstance(document, basestring):
def parse(cls, document, *args, **kwargs): try: if isinstance(document, str): xml = etree.XML(document, parser=cls._xml_parser) else: xml = etree.parse(document, parser=cls._xml_parser).getroot() except etree.XMLSyntaxError, e: raise ParserError(str(e)) else: kwargs.setdefault('xml_application', cls._xml_application) return cls.from_element(xml, *args, **kwargs)
cd5bb9cd53b39b63fb2b94913998bcd015831424 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/cd5bb9cd53b39b63fb2b94913998bcd015831424/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 6429, 16, 1668, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 309, 1549, 12, 5457, 16, 10699, 4672, 2025, 273, 12031, 18, 4201, 12, 5457, 16, 2082, 33, 6429, 6315, 2902, 67, 4288, 13, 469, 30, 2025, 273, 12031, 18, 2670, 12, 5457, 16, 2082, 33, 6429, 6315, 2902, 67, 4288, 2934, 588, 3085, 1435, 1335, 12031, 18, 4201, 22510, 16, 425, 30, 1002, 6783, 668, 12, 701, 12, 73, 3719, 469, 30, 1205, 18, 542, 1886, 2668, 2902, 67, 3685, 2187, 2028, 6315, 2902, 67, 3685, 13, 327, 2028, 18, 2080, 67, 2956, 12, 2902, 16, 380, 1968, 16, 2826, 4333, 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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082, 33, 6429, 6315, 2902, 67, 4288, 2934, 588, 3085, 1435, 1335, 12031, 18, 4201, 22510, 16, 425, 30, 1002, 6783, 668, 12, 701, 12, 73, 3719, 469, 30, 1205, 18, 542, 1886, 2668, 2902, 67, 3685, 2187, 2028, 6315, 2902, 67, 3685, 13, 327, 2028, 18, 2080, 67, 2956, 12, 2902, 16, 380, 1968, 16, 2826, 4333, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
styles.stylize(styles.ST_BAD, 'ERROR:'),
stylize(ST_BAD, 'ERROR:'),
def error(mesg, returncode=1, full=False, tb=None, listener=None): """ Display a styles.stylized error message and exit badly. """ if full: if tb: sys.stderr.write(tb + '\n') else: import traceback sys.stderr.write ('''>>> %s: ''' % (styles.stylize(styles.ST_OK, "Call trace"))) traceback.print_tb( sys.exc_info()[2] ) sys.stderr.write("\n") sys.stderr.write('%s %s %s\n' % ( styles.stylize(styles.ST_BAD, 'ERROR:'), mytime(), mesg)) raise SystemExit(returncode)
a4712f82b2f0d14c0f1c465fc523b05667dfb57d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a4712f82b2f0d14c0f1c465fc523b05667dfb57d/logging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 26244, 75, 16, 18125, 33, 21, 16, 1983, 33, 8381, 16, 8739, 33, 7036, 16, 2991, 33, 7036, 4672, 3536, 9311, 279, 5687, 18, 334, 93, 80, 1235, 555, 883, 471, 2427, 5570, 715, 18, 202, 8395, 225, 309, 1983, 30, 309, 8739, 30, 2589, 18, 11241, 18, 2626, 12, 18587, 397, 2337, 82, 6134, 469, 30, 1930, 10820, 2589, 18, 11241, 18, 2626, 261, 26418, 23012, 738, 87, 30, 9163, 225, 202, 9, 261, 10218, 18, 334, 93, 80, 554, 12, 10218, 18, 882, 67, 3141, 16, 315, 1477, 2606, 6, 20349, 10820, 18, 1188, 67, 18587, 12, 2589, 18, 10075, 67, 1376, 1435, 63, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 26244, 75, 16, 18125, 33, 21, 16, 1983, 33, 8381, 16, 8739, 33, 7036, 16, 2991, 33, 7036, 4672, 3536, 9311, 279, 5687, 18, 334, 93, 80, 1235, 555, 883, 471, 2427, 5570, 715, 18, 202, 8395, 225, 309, 1983, 30, 309, 8739, 30, 2589, 18, 11241, 18, 2626, 12, 18587, 397, 2337, 82, 6134, 469, 30, 1930, 10820, 2589, 18, 11241, 18, 2626, 261, 26418, 23012, 738, 87, 30, 9163, 225, 202, 9, 261, 10218, 18, 334, 93, 80, 554, 12, 10218, 18, 882, 67, 3141, 16, 315, 1477, 2606, 6, 20349, 10820, 18, 1188, 67, 18587, 12, 2589, 18, 10075, 67, 1376, 1435, 63, 22, 65, 262, 2589, 18, 11241, 18, 2626, 31458, 82, 2 ]
context)
context)
def check_type(field_type): if field_type == 'float': return 0.0 elif field_type == 'integer': return 0 elif field_type == 'boolean': return False return ''
0a6517a8d20ec7978c7b60dc4720e6fc04b81f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/0a6517a8d20ec7978c7b60dc4720e6fc04b81f83/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 723, 12, 1518, 67, 723, 4672, 309, 652, 67, 723, 422, 296, 5659, 4278, 327, 374, 18, 20, 1327, 652, 67, 723, 422, 296, 7745, 4278, 327, 374, 1327, 652, 67, 723, 422, 296, 6494, 4278, 327, 1083, 327, 875, 225, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 723, 12, 1518, 67, 723, 4672, 309, 652, 67, 723, 422, 296, 5659, 4278, 327, 374, 18, 20, 1327, 652, 67, 723, 422, 296, 7745, 4278, 327, 374, 1327, 652, 67, 723, 422, 296, 6494, 4278, 327, 1083, 327, 875, 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 ]
result += txt
result += unicode(txt)
def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate to_translate = tools.ustr(sps.pop(0)) result += tools.ustr(self.localcontext.get('translate', lambda x:x)(to_translate)) if sps: try: txt = None expr = sps.pop(0) txt = eval(expr, self.localcontext) if txt and isinstance(txt, basestring): txt = tools.ustr(txt) except Exception: pass if isinstance(txt, basestring): result += str2xml(txt) elif (txt is not None) and (txt is not False): result += txt return result
f886f8f43b6d627dcd6c6900e61bee3bc2c59648 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f886f8f43b6d627dcd6c6900e61bee3bc2c59648/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 955, 12, 2890, 16, 6463, 4672, 309, 486, 365, 18, 3729, 2472, 30, 327, 609, 22, 2902, 12, 5830, 13, 309, 486, 6463, 30, 327, 875, 563, 273, 875, 272, 1121, 273, 389, 7584, 18, 4939, 12, 5830, 13, 1323, 272, 1121, 30, 468, 1220, 353, 279, 4143, 977, 358, 4204, 358, 67, 13929, 273, 8513, 18, 27008, 12, 87, 1121, 18, 5120, 12, 20, 3719, 563, 1011, 8513, 18, 27008, 12, 2890, 18, 3729, 2472, 18, 588, 2668, 13929, 2187, 3195, 619, 30, 92, 21433, 869, 67, 13929, 3719, 309, 272, 1121, 30, 775, 30, 6463, 273, 599, 3065, 273, 272, 1121, 18, 5120, 12, 20, 13, 6463, 273, 5302, 12, 8638, 16, 365, 18, 3729, 2472, 13, 309, 6463, 471, 1549, 12, 5830, 16, 10699, 4672, 6463, 273, 8513, 18, 27008, 12, 5830, 13, 1335, 1185, 30, 1342, 309, 1549, 12, 5830, 16, 10699, 4672, 563, 1011, 609, 22, 2902, 12, 5830, 13, 1327, 261, 5830, 353, 486, 599, 13, 471, 261, 5830, 353, 486, 1083, 4672, 563, 1011, 5252, 12, 5830, 13, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 955, 12, 2890, 16, 6463, 4672, 309, 486, 365, 18, 3729, 2472, 30, 327, 609, 22, 2902, 12, 5830, 13, 309, 486, 6463, 30, 327, 875, 563, 273, 875, 272, 1121, 273, 389, 7584, 18, 4939, 12, 5830, 13, 1323, 272, 1121, 30, 468, 1220, 353, 279, 4143, 977, 358, 4204, 358, 67, 13929, 273, 8513, 18, 27008, 12, 87, 1121, 18, 5120, 12, 20, 3719, 563, 1011, 8513, 18, 27008, 12, 2890, 18, 3729, 2472, 18, 588, 2668, 13929, 2187, 3195, 619, 30, 92, 21433, 869, 67, 13929, 3719, 309, 272, 1121, 30, 775, 30, 6463, 273, 599, 3065, 273, 272, 1121, 18, 5120, 12, 20, 13, 6463, 273, 5302, 12, 8638, 16, 365, 2 ]
remove_paren = lexer.macro_map[t.value]
remove_paren = t.lexer.macro_map[t.value]
def t_ID(t): r'~?[a-zA-Z_\$][a-zA-Z_0-9\$]*[ \t]*' t.value = t.value.strip() try: remove_paren = lexer.macro_map[t.value] if remove_paren and t.lexer.lexdata[t.lexer.lexpos] == '(': t.lexer.begin('MACRO') except KeyError: t.type = reserved_map.get(t.value, "ID") return t
fd6e74705730e8bfe77462fc585dc1b6c5368739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/fd6e74705730e8bfe77462fc585dc1b6c5368739/ddf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 67, 734, 12, 88, 4672, 436, 11, 98, 18428, 69, 17, 9600, 17, 62, 67, 14433, 6362, 69, 17, 9600, 17, 62, 67, 20, 17, 29, 14433, 5772, 63, 521, 88, 65, 4035, 268, 18, 1132, 273, 268, 18, 1132, 18, 6406, 1435, 775, 30, 1206, 67, 13012, 273, 268, 18, 31731, 18, 26448, 67, 1458, 63, 88, 18, 1132, 65, 309, 1206, 67, 13012, 471, 268, 18, 31731, 18, 4149, 892, 63, 88, 18, 31731, 18, 4149, 917, 65, 422, 7321, 30, 268, 18, 31731, 18, 10086, 2668, 10875, 1457, 6134, 1335, 4999, 30, 268, 18, 723, 273, 8735, 67, 1458, 18, 588, 12, 88, 18, 1132, 16, 315, 734, 7923, 327, 268, 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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, 29, 14433, 5772, 63, 521, 88, 65, 4035, 268, 18, 1132, 273, 268, 18, 1132, 18, 6406, 1435, 775, 30, 1206, 67, 13012, 273, 268, 18, 31731, 18, 26448, 67, 1458, 63, 88, 18, 1132, 65, 309, 1206, 67, 13012, 471, 268, 18, 31731, 18, 4149, 892, 63, 88, 18, 31731, 18, 4149, 917, 65, 422, 7321, 30, 268, 18, 31731, 18, 10086, 2668, 10875, 1457, 6134, 1335, 4999, 30, 268, 18, 723, 273, 8735, 67, 1458, 18, 588, 12, 88, 18, 1132, 16, 315, 734, 7923, 327, 268, 225, 2, -100, -100 ]
return self._track_on_device(episode)
return self._track_on_device(episode.title)
def episode_on_device(self, episode): return self._track_on_device(episode)
079fe886e7ed4e72eb93abcdf5e0a3104e11a387 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/079fe886e7ed4e72eb93abcdf5e0a3104e11a387/sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17054, 67, 265, 67, 5964, 12, 2890, 16, 17054, 4672, 327, 365, 6315, 4101, 67, 265, 67, 5964, 12, 29687, 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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 981, 30, 1652, 17054, 67, 265, 67, 5964, 12, 2890, 16, 17054, 4672, 327, 365, 6315, 4101, 67, 265, 67, 5964, 12, 29687, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Note that decimal places (from zero) is usually not the same
Note that decimal places (from zero) are usually not the same
def failUnlessAlmostEqual(self, first, second, places=7, msg=None): """Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
99c020b458dc7210f2c230a25c6760727a00cc4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/99c020b458dc7210f2c230a25c6760727a00cc4d/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 984, 2656, 1067, 10329, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 12576, 33, 27, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 640, 9729, 487, 11383, 635, 3675, 7114, 16729, 358, 326, 864, 1300, 434, 6970, 12576, 261, 1886, 2371, 13, 471, 17553, 358, 3634, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 984, 2656, 1067, 10329, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 12576, 33, 27, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 640, 9729, 487, 11383, 635, 3675, 7114, 16729, 358, 326, 864, 1300, 434, 6970, 12576, 261, 1886, 2371, 13, 471, 17553, 358, 3634, 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 ]
if (animtest.is_static_image() == True and self.preloadimg_next_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.preloadimg_next_pixbuf_original != animtest): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False)
if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.preloadimg_next_pixbuf_original): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) else: if self.images_are_different(animtest, self.preloadimg_next_pixbuf_original): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) def images_are_different(self, pixbuf1, pixbuf2): if pixbuf1.get_pixels() == pixbuf2.get_pixels(): return False else: return True
def parse_action_command(self, command, batchmode): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() if batchmode == True: for i in range(len(self.image_list)): imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.parse_action_command2(command, self.currimg_name) gc.collect() self.change_cursor(None) # Refresh the current image or any preloaded needed if they have changed: if os.path.exists(self.currimg_name) == False: self.currimg_pixbuf_original = None self.image_load_failed(False) else: animtest = gtk.gdk.PixbufAnimation(self.currimg_name) if (animtest.is_static_image() == True and self.currimg_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.currimg_pixbuf_original != animtest): self.load_new_image(False, False, False, True, False) if os.path.exists(self.preloadimg_prev_name) == False: self.preloadimg_prev_pixbuf_original = None else: animtest = gtk.gdk.PixbufAnimation(self.preloadimg_prev_name) if (animtest.is_static_image() == True and self.preloadimg_prev_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.preloadimg_prev_pixbuf_original != animtest): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) if os.path.exists(self.preloadimg_next_name) == False: self.preloadimg_next_pixbuf_original = None else: animtest = gtk.gdk.PixbufAnimation(self.preloadimg_next_name) if (animtest.is_static_image() == True and self.preloadimg_next_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.preloadimg_next_pixbuf_original != animtest): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False)
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1128, 67, 3076, 12, 2890, 16, 1296, 16, 2581, 3188, 4672, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 1323, 22718, 18, 5989, 67, 9561, 13332, 22718, 18, 5254, 67, 16108, 1435, 309, 2581, 3188, 422, 1053, 30, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 2730, 67, 1098, 3719, 30, 8902, 1069, 273, 365, 18, 2730, 67, 1098, 63, 77, 65, 365, 18, 2670, 67, 1128, 67, 3076, 22, 12, 3076, 16, 8902, 1069, 13, 469, 30, 365, 18, 2670, 67, 1128, 67, 3076, 22, 12, 3076, 16, 365, 18, 17016, 6081, 67, 529, 13, 8859, 18, 14676, 1435, 365, 18, 3427, 67, 9216, 12, 7036, 13, 468, 14179, 326, 783, 1316, 578, 1281, 675, 4230, 3577, 309, 2898, 1240, 3550, 30, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 17016, 6081, 67, 529, 13, 422, 1083, 30, 365, 18, 17016, 6081, 67, 14861, 4385, 67, 8830, 273, 599, 365, 18, 2730, 67, 945, 67, 7307, 12, 8381, 13, 469, 30, 10536, 3813, 273, 22718, 18, 75, 2883, 18, 21816, 4385, 10816, 12, 2890, 18, 17016, 6081, 67, 529, 13, 309, 261, 304, 381, 3813, 18, 291, 67, 3845, 67, 2730, 1435, 422, 1053, 471, 365, 18, 17016, 6081, 67, 14861, 4385, 67, 8830, 480, 10536, 3813, 18, 588, 67, 3845, 67, 2730, 10756, 578, 261, 304, 381, 3813, 18, 291, 67, 3845, 67, 2730, 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, 1109, 67, 1128, 67, 3076, 12, 2890, 16, 1296, 16, 2581, 3188, 4672, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 1323, 22718, 18, 5989, 67, 9561, 13332, 22718, 18, 5254, 67, 16108, 1435, 309, 2581, 3188, 422, 1053, 30, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 2730, 67, 1098, 3719, 30, 8902, 1069, 273, 365, 18, 2730, 67, 1098, 63, 77, 65, 365, 18, 2670, 67, 1128, 67, 3076, 22, 12, 3076, 16, 8902, 1069, 13, 469, 30, 365, 18, 2670, 67, 1128, 67, 3076, 22, 12, 3076, 16, 365, 18, 17016, 6081, 67, 529, 13, 8859, 18, 14676, 1435, 2 ]
(string.capitalize(name), data)) lines.append("%s=%s" % (name, repr(data)[1:-1]))
(string.capitalize(name), escape(data))) lines.append("%s=%s" % (name, escape(data)))
def get_inidata (self): # Return data describing the installation.
65e77e6acdaf1059f02c591a7b54e97974a06b3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/65e77e6acdaf1059f02c591a7b54e97974a06b3a/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 267, 350, 396, 261, 2890, 4672, 468, 2000, 501, 16868, 326, 13193, 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 ]
def meldVariants(self, tile):
def __meldVariants(self, tile):
def meldVariants(self, tile): """returns a list of possible variants based on the dropped tile. The Variants are scoring strings. Do not use the real tiles because we change their properties""" lowerName = tile.scoringStr().lower() upperName = lowerName[0].upper() + lowerName[1] if self.lowerHalf: scName = upperName else: scName = lowerName variants = [scName] baseTiles = self.selector.tilesByElement(tile.element)[0].count if baseTiles >= 2: variants.append(scName * 2) if baseTiles >= 3: variants.append(scName * 3) if baseTiles == 4: if self.lowerHalf: variants.append(lowerName + upperName * 2 + lowerName) else: variants.append(lowerName * 4) variants.append(lowerName * 3 + upperName) if tile.element[:2] not in ('WI', 'DR') and tile.element[1] < '8': chow2 = self.chiNext(tile.element, 2) chow3 = self.chiNext(tile.element, 3) chow2 = self.selector.tilesByElement(chow2)[0] chow3 = self.selector.tilesByElement(chow3)[0] if chow2.count and chow3.count: baseChar = scName[0] baseValue = ord(scName[1]) varStr = '%s%s%s%s%s' % (scName, baseChar, chr(baseValue+1), baseChar, chr(baseValue+2)) variants.append(varStr) return [Meld(x) for x in variants]
13f3881b22585b4afca5955a50ab9791a11df14a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/13f3881b22585b4afca5955a50ab9791a11df14a/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 81, 488, 21165, 12, 2890, 16, 4769, 4672, 3536, 6154, 279, 666, 434, 3323, 12935, 2511, 603, 326, 14611, 4769, 18, 1021, 11487, 4388, 854, 22958, 2064, 18, 2256, 486, 999, 326, 2863, 12568, 2724, 732, 2549, 3675, 1790, 8395, 2612, 461, 273, 4769, 18, 1017, 6053, 1585, 7675, 8167, 1435, 3854, 461, 273, 2612, 461, 63, 20, 8009, 5797, 1435, 397, 2612, 461, 63, 21, 65, 309, 365, 18, 8167, 16168, 30, 888, 461, 273, 3854, 461, 469, 30, 888, 461, 273, 2612, 461, 12935, 273, 306, 1017, 461, 65, 1026, 27669, 273, 365, 18, 9663, 18, 28366, 858, 1046, 12, 15368, 18, 2956, 25146, 20, 8009, 1883, 309, 1026, 27669, 1545, 576, 30, 12935, 18, 6923, 12, 1017, 461, 380, 576, 13, 309, 1026, 27669, 1545, 890, 30, 12935, 18, 6923, 12, 1017, 461, 380, 890, 13, 309, 1026, 27669, 422, 1059, 30, 309, 365, 18, 8167, 16168, 30, 12935, 18, 6923, 12, 8167, 461, 397, 3854, 461, 380, 576, 397, 2612, 461, 13, 469, 30, 12935, 18, 6923, 12, 8167, 461, 380, 1059, 13, 12935, 18, 6923, 12, 8167, 461, 380, 890, 397, 3854, 461, 13, 309, 4769, 18, 2956, 10531, 22, 65, 486, 316, 7707, 23109, 2187, 296, 6331, 6134, 471, 4769, 18, 2956, 63, 21, 65, 411, 296, 28, 4278, 462, 543, 22, 273, 365, 18, 24010, 2134, 12, 15368, 18, 2956, 16, 576, 13, 462, 543, 23, 273, 365, 18, 24010, 2134, 12, 15368, 18, 2956, 16, 890, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 81, 488, 21165, 12, 2890, 16, 4769, 4672, 3536, 6154, 279, 666, 434, 3323, 12935, 2511, 603, 326, 14611, 4769, 18, 1021, 11487, 4388, 854, 22958, 2064, 18, 2256, 486, 999, 326, 2863, 12568, 2724, 732, 2549, 3675, 1790, 8395, 2612, 461, 273, 4769, 18, 1017, 6053, 1585, 7675, 8167, 1435, 3854, 461, 273, 2612, 461, 63, 20, 8009, 5797, 1435, 397, 2612, 461, 63, 21, 65, 309, 365, 18, 8167, 16168, 30, 888, 461, 273, 3854, 461, 469, 30, 888, 461, 273, 2612, 461, 12935, 273, 306, 1017, 461, 65, 1026, 27669, 273, 365, 18, 9663, 18, 28366, 858, 1046, 12, 15368, 18, 2956, 25146, 20, 8009, 1883, 309, 1026, 27669, 1545, 576, 30, 12935, 18, 2 ]
assert False, \ "There must be two nonzero entries (-1 & 1) per column."
msg += "There must be two nonzero entries (-1 & 1) per column." assert False
def __init__(self, data=None, pos=None, loops=None, format=None, boundary=[], weighted=None, implementation='networkx', sparse=True, vertex_labels=True, **kwds): """ TESTS:: sage: D = DiGraph() sage: loads(dumps(D)) == D True
4d8c83f4212c2b60b6c708db820fd70304ef6623 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4d8c83f4212c2b60b6c708db820fd70304ef6623/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 14075, 33, 7036, 16, 740, 33, 7036, 16, 7679, 22850, 6487, 13747, 33, 7036, 16, 4471, 2218, 5185, 92, 2187, 9387, 33, 5510, 16, 5253, 67, 5336, 33, 5510, 16, 2826, 25577, 4672, 3536, 22130, 55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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 14075, 33, 7036, 16, 740, 33, 7036, 16, 7679, 22850, 6487, 13747, 33, 7036, 16, 4471, 2218, 5185, 92, 2187, 9387, 33, 5510, 16, 5253, 67, 5336, 33, 5510, 16, 2826, 25577, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 463, 273, 12508, 4137, 1435, 272, 410, 30, 6277, 12, 13302, 1121, 12, 40, 3719, 422, 463, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.__important__ = [entry.get('name') for struct in config for entry in struct \
self.__important__ = [entry.get('name') \ for struct in config for entry in struct \
def __init__(self, logger, setup, config): self.__important__ = [entry.get('name') for struct in config for entry in struct \ if entry.tag == 'Path' and \ entry.get('important') in ['true', 'True']] self.setup = setup self.logger = logger if not hasattr(self, '__ireq__'): self.__ireq__ = self.__req__ self.config = config self.cmd = executor(logger) self.modified = [] self.extra = [] self.handled = [entry for struct in self.config for entry in struct \ if self.handlesEntry(entry)] for filename in self.__execs__: try: mode = stat.S_IMODE(os.stat(filename)[stat.ST_MODE]) if mode & stat.S_IEXEC != stat.S_IEXEC: self.logger.debug("%s: %s not executable" % \ (self.name, filename)) raise toolInstantiationError except OSError: raise toolInstantiationError except: self.logger.debug("%s failed" % filename, exc_info=1) raise toolInstantiationError
decb4dd187c808e2f1c0ff7040e914abc7adeae2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/decb4dd187c808e2f1c0ff7040e914abc7adeae2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1194, 16, 3875, 16, 642, 4672, 365, 16186, 23221, 972, 273, 306, 4099, 18, 588, 2668, 529, 6134, 521, 364, 1958, 316, 642, 364, 1241, 316, 1958, 521, 309, 1241, 18, 2692, 422, 296, 743, 11, 471, 521, 1241, 18, 588, 2668, 23221, 6134, 316, 10228, 3767, 2187, 296, 5510, 3546, 65, 365, 18, 8401, 273, 3875, 365, 18, 4901, 273, 1194, 309, 486, 3859, 12, 2890, 16, 4940, 577, 85, 7250, 4672, 365, 16186, 577, 85, 972, 273, 365, 16186, 3658, 972, 365, 18, 1425, 273, 642, 365, 18, 4172, 273, 6601, 12, 4901, 13, 365, 18, 7342, 273, 5378, 365, 18, 7763, 273, 5378, 365, 18, 14387, 273, 306, 4099, 364, 1958, 316, 365, 18, 1425, 364, 1241, 316, 1958, 521, 309, 365, 18, 24111, 1622, 12, 4099, 25887, 364, 1544, 316, 365, 16186, 4177, 87, 972, 30, 775, 30, 1965, 273, 610, 18, 55, 67, 3445, 2712, 12, 538, 18, 5642, 12, 3459, 25146, 5642, 18, 882, 67, 7038, 5717, 309, 1965, 473, 610, 18, 55, 67, 45, 15271, 480, 610, 18, 55, 67, 45, 15271, 30, 365, 18, 4901, 18, 4148, 27188, 87, 30, 738, 87, 486, 9070, 6, 738, 521, 261, 2890, 18, 529, 16, 1544, 3719, 1002, 5226, 10675, 7072, 668, 1335, 10002, 30, 1002, 5226, 10675, 7072, 668, 1335, 30, 365, 18, 4901, 18, 4148, 27188, 87, 2535, 6, 738, 1544, 16, 3533, 67, 1376, 33, 21, 13, 1002, 5226, 10675, 7072, 668, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1194, 16, 3875, 16, 642, 4672, 365, 16186, 23221, 972, 273, 306, 4099, 18, 588, 2668, 529, 6134, 521, 364, 1958, 316, 642, 364, 1241, 316, 1958, 521, 309, 1241, 18, 2692, 422, 296, 743, 11, 471, 521, 1241, 18, 588, 2668, 23221, 6134, 316, 10228, 3767, 2187, 296, 5510, 3546, 65, 365, 18, 8401, 273, 3875, 365, 18, 4901, 273, 1194, 309, 486, 3859, 12, 2890, 16, 4940, 577, 85, 7250, 4672, 365, 16186, 577, 85, 972, 273, 365, 16186, 3658, 972, 365, 18, 1425, 273, 642, 365, 18, 4172, 273, 6601, 12, 4901, 13, 365, 18, 7342, 273, 5378, 365, 18, 7763, 273, 5378, 365, 18, 14387, 273, 306, 4099, 2 ]
addnstr is safe
Safe call to addnstr
def addnstr(self, *args): """ addnstr is safe """ try: self.win.addnstr(*args) except: pass
53a5536cf12cbe8474f37b1c8e31b60489b2b62f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/53a5536cf12cbe8474f37b1c8e31b60489b2b62f/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 82, 701, 12, 2890, 16, 380, 1968, 4672, 3536, 14060, 745, 358, 527, 82, 701, 3536, 775, 30, 365, 18, 8082, 18, 1289, 82, 701, 30857, 1968, 13, 1335, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1652, 527, 82, 701, 12, 2890, 16, 380, 1968, 4672, 3536, 14060, 745, 358, 527, 82, 701, 3536, 775, 30, 365, 18, 8082, 18, 1289, 82, 701, 30857, 1968, 13, 1335, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pass
self._allowed_languages.remove(language)
def remove_allowed_language(self, language): """The language must match the first part of the class name of the support class for that language (eg "C" for "CSupport", "Cpp" for "CppSupport"). """ pass
737b136d474a99d3a53c7a60afbfd6b0524e85f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2803/737b136d474a99d3a53c7a60afbfd6b0524e85f4/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 8151, 67, 4923, 12, 2890, 16, 2653, 4672, 3536, 1986, 2653, 1297, 845, 326, 1122, 1087, 434, 326, 667, 508, 434, 326, 2865, 667, 364, 716, 2653, 261, 1332, 315, 39, 6, 364, 315, 39, 6289, 3113, 315, 39, 11858, 6, 364, 315, 39, 11858, 6289, 20387, 3536, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 8151, 67, 4923, 12, 2890, 16, 2653, 4672, 3536, 1986, 2653, 1297, 845, 326, 1122, 1087, 434, 326, 667, 508, 434, 326, 2865, 667, 364, 716, 2653, 261, 1332, 315, 39, 6, 364, 315, 39, 6289, 3113, 315, 39, 11858, 6, 364, 315, 39, 11858, 6289, 20387, 3536, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cmd = cmd + ' panda/src/configfiles/pandaIcon.obj'
cmd = cmd + ' panda/src/configfiles/pandaIcon.obj'
def CompileLink(dll, obj, opts): if (COMPILER=="MSVC"): cmd = 'link /nologo /NOD:MFC80.LIB /NOD:LIBCI.LIB /NOD:MSVCRTD.LIB /DEBUG ' cmd = cmd + " /nod:libc /nod:libcmtd /nod:atlthunk" if (GetOrigExt(dll) != ".exe"): cmd = cmd + " /DLL" optlevel = GetOptimizeOption(opts,OPTIMIZE) if (optlevel==1): cmd = cmd + " /MAP /MAPINFO:EXPORTS" if (optlevel==2): cmd = cmd + " /MAP:NUL " if (optlevel==3): cmd = cmd + " /MAP:NUL " if (optlevel==4): cmd = cmd + " /MAP:NUL /LTCG " cmd = cmd + " /FIXED:NO /OPT:REF /STACK:4194304 /INCREMENTAL:NO " cmd = cmd + ' /OUT:' + dll if (dll.endswith(".dll")): cmd = cmd + ' /IMPLIB:built/lib/'+dll[10:-4]+".lib" for (opt, dir) in LIBDIRECTORIES: if (opt=="ALWAYS") or (opts.count(opt)): cmd = cmd + ' /LIBPATH:"' + dir + '"' for x in obj: if (x.endswith(".dll")): cmd = cmd + ' built/lib/' + x[10:-4] + ".lib" elif (x.endswith(".lib")): dname = x[:-4]+".dll" if (os.path.exists("built/bin/" + x[10:-4] + ".dll")): exit("Error: in makepanda, specify "+dname+", not "+x) cmd = cmd + ' ' + x elif (x.endswith(".def")): cmd = cmd + ' /DEF:"' + x + '"' elif (x.endswith(".dat")): pass else: cmd = cmd + ' ' + x if (GetOrigExt(dll)==".exe"): cmd = cmd + ' panda/src/configfiles/pandaIcon.obj' for (opt, name) in LIBNAMES: if (opt=="ALWAYS") or (opts.count(opt)): cmd = cmd + ' ' + name oscmd(cmd) SetVC80CRTVersion(dll+".manifest", VC80CRTVERSION) mtcmd = 'mt -manifest ' + dll + '.manifest -outputresource:' + dll if (dll.endswith(".exe")==0): mtcmd = mtcmd + ';2' else: mtcmd = mtcmd + ';1' oscmd(mtcmd) if (COMPILER=="LINUX"): if (GetOrigExt(dll)==".exe"): cmd = 'g++ -o ' + dll + ' -Lbuilt/lib -L/usr/X11R6/lib' else: if (sys.platform == "darwin"): cmd = 'g++ -undefined dynamic_lookup -dynamic -dynamiclib -o ' + dll + ' -install_name built/lib/' + os.path.basename(dll) + ' -Lbuilt/lib -L/usr/X11R6/lib' else: cmd = 'g++ -shared -o ' + dll + ' -Lbuilt/lib -L/usr/X11R6/lib' for x in obj: if (GetOrigExt(x) != ".dat"): base = os.path.basename(x) if (base[-3:]==".so") and (base[:3]=="lib"): cmd = cmd + ' -l' + base[3:-3] else: cmd = cmd + ' ' + x for (opt, dir) in LIBDIRECTORIES: if (opt=="ALWAYS") or (opts.count(opt)): cmd = cmd + ' -L"' + dir + '"' for (opt, name) in LIBNAMES: if (opt=="ALWAYS") or (opts.count(opt)): cmd = cmd + ' ' + name cmd = cmd + " -lpthread -ldl" if (sys.platform == "darwin"): if (PkgSkip("PYTHON")==0): cmd = cmd + " -framework Python" cmd = cmd + " -isysroot " + SDK["MACOSX"] + " -Wl,-syslibroot," + SDK["MACOSX"] + " -arch ppc -arch i386" oscmd(cmd)
3d9c0e012fd5ecb5a8156a6ef677b6fbb4876afc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/3d9c0e012fd5ecb5a8156a6ef677b6fbb4876afc/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 296, 1232, 342, 82, 3966, 83, 342, 50, 1212, 30, 49, 4488, 3672, 18, 14484, 342, 50, 1212, 30, 14484, 7266, 18, 14484, 342, 50, 1212, 30, 3537, 58, 5093, 23409, 18, 14484, 342, 9394, 296, 1797, 273, 1797, 397, 315, 342, 19888, 30, 2941, 71, 342, 19888, 30, 2941, 71, 1010, 72, 342, 19888, 30, 270, 80, 451, 1683, 6, 309, 261, 967, 4741, 2482, 12, 27670, 13, 480, 3552, 14880, 6, 4672, 1797, 273, 1797, 397, 315, 342, 40, 4503, 6, 2153, 2815, 273, 968, 6179, 10153, 1895, 12, 4952, 16, 15620, 3445, 15641, 13, 309, 261, 3838, 2815, 631, 21, 4672, 1797, 273, 1797, 397, 315, 342, 8352, 342, 8352, 5923, 30, 31275, 55, 6, 309, 261, 3838, 2815, 631, 22, 4672, 1797, 273, 1797, 397, 315, 342, 8352, 30, 50, 1506, 315, 309, 261, 3838, 2815, 631, 23, 4672, 1797, 273, 1797, 397, 315, 342, 8352, 30, 50, 1506, 315, 309, 261, 3838, 2815, 631, 24, 4672, 1797, 273, 1797, 397, 315, 342, 8352, 30, 50, 1506, 342, 12050, 20585, 315, 1797, 273, 1797, 397, 315, 342, 30406, 30, 3417, 342, 15620, 30, 10771, 342, 21971, 30, 24, 3657, 8942, 3028, 342, 29836, 1013, 30, 3417, 315, 1797, 273, 1797, 397, 296, 342, 5069, 2497, 397, 302, 2906, 309, 261, 27670, 18, 5839, 1918, 2932, 18, 27670, 6, 3719, 30, 1797, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 296, 1232, 342, 82, 3966, 83, 342, 50, 1212, 30, 49, 4488, 3672, 18, 14484, 342, 50, 1212, 30, 14484, 7266, 18, 14484, 342, 50, 1212, 30, 3537, 58, 5093, 23409, 18, 14484, 342, 9394, 296, 1797, 273, 1797, 397, 315, 342, 19888, 30, 2941, 71, 342, 19888, 30, 2941, 71, 1010, 72, 342, 19888, 30, 270, 80, 451, 1683, 6, 309, 261, 967, 4741, 2482, 12, 27670, 13, 480, 3552, 14880, 6, 4672, 1797, 273, 1797, 397, 315, 342, 40, 4503, 6, 2153, 2815, 273, 968, 6179, 10153, 1895, 12, 4952, 16, 15620, 3445, 15641, 13, 309, 2 ]
def processLayout(self, (staves, lyric, harmony), measures):
def processLayout(self, layout, measures):
def processLayout(self, (staves, lyric, harmony), measures): def groupBySystems(measures): system = [] for measure in measures: if measure.newSystem() and len(system): yield system system = [] system.append(measure) if len(system): yield system def groupByLyricLines(measure, width): system = [] for measure in measures: system.append(measure) if len(reduce(lambda x,y: x+y.lyrics(), system, "")) > width: if len(system) > 1: tmp = system.pop(-1) yield system system = [tmp] else: yield system system = [] if len(system): yield system # Process various layout types individually if staves == 1 and not lyric and not harmony: for system in groupBySystems(measures): self.newSystem(system) for measure in system: self.startOfMeasure(measure) self.printBrailleForStaff(measure.staff(0)) elif staves == 2 and not lyric and not harmony: for system in groupBySystems(measures): self.newSystem(system) for staff in range(2): self.startOfStaff(staff) for i, measure in enumerate(system): self.startOfMeasure(measure) if i == 0: self.addSymbol(hand_symbols[staff], None) self.printBrailleForStaff(measure.staff(staff)) elif staves == 1 and lyric and not harmony: for system in groupByLyricLines(measures, self.width): self.newLine() [self.addSymbol(unicode(note.lyric), note) for measure in system for note in measure.musicdata.justNotes() if note.lyric] self.newLine() self.whitespace() for measure in system: self.startOfMeasure(measure) self.printBrailleForStaff(measure.staff(0)) else: raise TypeError("Unsupported layout (%d, %r, %r)" % (staves, lyric, harmony))
33ef92586a1f46016e0adc007cb50c6fe70f43a0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8648/33ef92586a1f46016e0adc007cb50c6fe70f43a0/braillemusic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3744, 12, 2890, 16, 3511, 16, 22692, 4672, 1652, 13197, 31072, 12, 21992, 1823, 4672, 2619, 273, 5378, 364, 6649, 316, 22692, 30, 309, 6649, 18, 2704, 3163, 1435, 471, 562, 12, 4299, 4672, 2824, 2619, 2619, 273, 5378, 2619, 18, 6923, 12, 10772, 13, 309, 562, 12, 4299, 4672, 2824, 2619, 1652, 13197, 48, 93, 1512, 5763, 12, 10772, 16, 1835, 4672, 2619, 273, 5378, 364, 6649, 316, 22692, 30, 2619, 18, 6923, 12, 10772, 13, 309, 562, 12, 12498, 12, 14661, 619, 16, 93, 30, 619, 15, 93, 18, 715, 1512, 87, 9334, 2619, 16, 1408, 3719, 405, 1835, 30, 309, 562, 12, 4299, 13, 405, 404, 30, 1853, 273, 2619, 18, 5120, 19236, 21, 13, 2824, 2619, 2619, 273, 306, 5645, 65, 469, 30, 2824, 2619, 2619, 273, 5378, 309, 562, 12, 4299, 4672, 2824, 2619, 468, 4389, 11191, 3511, 1953, 28558, 309, 384, 6606, 422, 404, 471, 486, 18519, 1512, 471, 486, 17895, 2586, 93, 30, 364, 2619, 316, 13197, 31072, 12, 21992, 1823, 4672, 365, 18, 2704, 3163, 12, 4299, 13, 364, 6649, 316, 2619, 30, 365, 18, 1937, 951, 7197, 12, 10772, 13, 365, 18, 1188, 38, 354, 14120, 1290, 510, 7329, 12, 10772, 18, 31096, 12, 20, 3719, 1327, 384, 6606, 422, 576, 471, 486, 18519, 1512, 471, 486, 17895, 2586, 93, 30, 364, 2619, 316, 13197, 31072, 12, 21992, 1823, 4672, 365, 18, 2704, 3163, 12, 4299, 13, 364, 28904, 316, 1048, 12, 22, 4672, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3744, 12, 2890, 16, 3511, 16, 22692, 4672, 1652, 13197, 31072, 12, 21992, 1823, 4672, 2619, 273, 5378, 364, 6649, 316, 22692, 30, 309, 6649, 18, 2704, 3163, 1435, 471, 562, 12, 4299, 4672, 2824, 2619, 2619, 273, 5378, 2619, 18, 6923, 12, 10772, 13, 309, 562, 12, 4299, 4672, 2824, 2619, 1652, 13197, 48, 93, 1512, 5763, 12, 10772, 16, 1835, 4672, 2619, 273, 5378, 364, 6649, 316, 22692, 30, 2619, 18, 6923, 12, 10772, 13, 309, 562, 12, 12498, 12, 14661, 619, 16, 93, 30, 619, 15, 93, 18, 715, 1512, 87, 9334, 2619, 16, 1408, 3719, 405, 1835, 30, 309, 562, 12, 4299, 13, 405, 404, 30, 1853, 273, 2619, 18, 5120, 19236, 21, 2 ]
raise TypeError("Function '" + self.__target_func.__name__ + "' called with incorrect arguments. " +
if type(self.__target_func) is str: name = self.__target_func else: name = self.__target_func.__name__ raise TypeError("Function '" + name + "' called with incorrect arguments. " +
def _check_arguments(self, *args, **kwargs): """ <Purpose> Check the arguments against the arg_checking_func provided to the constructor. <Arguments> self *args **kwargs The arguments that will ultimately be passed to the wrapped function. <Exceptions> TypeError If the arguments aren't valid. That is, if they fail the arg checking. <Side Effects> None <Returns> None """
e299317fe6ca36856f4bca6d67a5dd5543caf8c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/e299317fe6ca36856f4bca6d67a5dd5543caf8c9/namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 7099, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 411, 10262, 4150, 34, 2073, 326, 1775, 5314, 326, 1501, 67, 24609, 67, 644, 2112, 358, 326, 3885, 18, 411, 4628, 34, 365, 380, 1968, 2826, 4333, 1021, 1775, 716, 903, 225, 406, 381, 5173, 506, 2275, 358, 326, 5805, 445, 18, 411, 11416, 34, 3580, 971, 326, 1775, 11526, 1404, 923, 18, 12466, 353, 16, 309, 2898, 2321, 326, 1501, 6728, 18, 411, 8895, 30755, 87, 34, 599, 411, 1356, 34, 599, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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326, 1775, 5314, 326, 1501, 67, 24609, 67, 644, 2112, 358, 326, 3885, 18, 411, 4628, 34, 365, 380, 1968, 2826, 4333, 1021, 1775, 716, 903, 225, 406, 381, 5173, 506, 2275, 358, 326, 5805, 445, 18, 411, 11416, 34, 3580, 971, 326, 1775, 11526, 1404, 923, 18, 12466, 353, 16, 309, 2898, 2321, 326, 1501, 6728, 18, 411, 8895, 30755, 87, 34, 599, 411, 1356, 34, 599, 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 ]
print name+" not found in "+str(format_elements)
def get_templates_that_use_element(name): """ Returns a list of format templates that call the given format element. The returned format templates also give their dependencies on tags. [ {'filename':"filename_1.bft" 'name': "a name" 'tags': ['710__a', '920__'] }, ... ] Returns templates sorted by name @param name a format element name """ format_templates = {} tags = [] files = os.listdir(CFG_BIBFORMAT_TEMPLATES_PATH) #Retrieve all templates for possible_template in files: if possible_template.endswith(CFG_BIBFORMAT_FORMAT_TEMPLATE_EXTENSION): format_elements = get_elements_used_by_template(possible_template) #Look for elements used in template format_elements = map(lambda x: x['name'].lower(), format_elements) try: #Look for element format_elements.index(name.lower()) #If not found, get out of "try" statement format_template = bibformat_engine.get_format_template(filename=possible_template, with_attributes=True) template_name = format_template['attrs']['name'] format_templates[template_name] = {'name':template_name, 'filename':possible_template} except: print name+" not found in "+str(format_elements) pass keys = format_templates.keys() keys.sort() return map(format_templates.get, keys)
18b5c65a88b4f5a6640b2c1bab76b0a39ca4a56f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/18b5c65a88b4f5a6640b2c1bab76b0a39ca4a56f/bibformatadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8502, 67, 19056, 67, 1202, 67, 2956, 12, 529, 4672, 3536, 2860, 279, 666, 434, 740, 5539, 716, 745, 326, 864, 740, 930, 18, 1021, 2106, 740, 5539, 2546, 8492, 3675, 5030, 603, 2342, 18, 225, 306, 13666, 3459, 11, 2773, 3459, 67, 21, 18, 70, 1222, 6, 296, 529, 4278, 315, 69, 508, 6, 296, 4156, 4278, 10228, 27, 2163, 972, 69, 2187, 296, 29, 3462, 972, 3546, 19879, 1372, 308, 225, 2860, 5539, 3115, 635, 508, 225, 632, 891, 508, 279, 740, 930, 508, 3536, 740, 67, 8502, 273, 2618, 2342, 273, 5378, 1390, 273, 1140, 18, 1098, 1214, 12, 19727, 67, 38, 13450, 7254, 67, 12205, 55, 67, 4211, 13, 468, 5767, 777, 5539, 364, 3323, 67, 3202, 316, 1390, 30, 309, 3323, 67, 3202, 18, 5839, 1918, 12, 19727, 67, 38, 13450, 7254, 67, 7254, 67, 12205, 67, 12796, 4672, 740, 67, 6274, 273, 336, 67, 6274, 67, 3668, 67, 1637, 67, 3202, 12, 12708, 67, 3202, 13, 468, 9794, 364, 2186, 1399, 316, 1542, 740, 67, 6274, 273, 852, 12, 14661, 619, 30, 619, 3292, 529, 29489, 8167, 9334, 740, 67, 6274, 13, 775, 30, 468, 9794, 364, 930, 740, 67, 6274, 18, 1615, 12, 529, 18, 8167, 10756, 468, 2047, 486, 1392, 16, 336, 596, 434, 315, 698, 6, 3021, 225, 740, 67, 3202, 273, 25581, 2139, 67, 8944, 18, 588, 67, 2139, 67, 3202, 12, 3459, 33, 12708, 67, 3202, 16, 598, 67, 4350, 33, 5510, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8502, 67, 19056, 67, 1202, 67, 2956, 12, 529, 4672, 3536, 2860, 279, 666, 434, 740, 5539, 716, 745, 326, 864, 740, 930, 18, 1021, 2106, 740, 5539, 2546, 8492, 3675, 5030, 603, 2342, 18, 225, 306, 13666, 3459, 11, 2773, 3459, 67, 21, 18, 70, 1222, 6, 296, 529, 4278, 315, 69, 508, 6, 296, 4156, 4278, 10228, 27, 2163, 972, 69, 2187, 296, 29, 3462, 972, 3546, 19879, 1372, 308, 225, 2860, 5539, 3115, 635, 508, 225, 632, 891, 508, 279, 740, 930, 508, 3536, 740, 67, 8502, 273, 2618, 2342, 273, 5378, 1390, 273, 1140, 18, 1098, 1214, 12, 19727, 67, 38, 13450, 7254, 67, 12205, 55, 67, 4211, 13, 468, 5767, 777, 2 ]
return TLSGraphChainFastHybrid()
if USE_TLSMDMODULE==True: return TLSGraphChainFastHybrid() else: return TLSGraphChainHybrid()
def NewTLSGraphChain0(tls_model): """Generate and return the proper TLSGraphChain subclass for the requested TLS model. """ if tls_model=="HYBRID": return TLSGraphChainFastHybrid() if tls_model=="ANISO": return TLSGraphChainAnisotropic() if tls_model=="PLUGIN": return TLSGraphChainPlugin() raise Exception()
e84d51aa8f483309e902b29a0f740a21562abad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/e84d51aa8f483309e902b29a0f740a21562abad5/tlsmd_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1166, 9905, 4137, 3893, 20, 12, 17116, 67, 2284, 4672, 3536, 4625, 471, 327, 326, 5338, 8098, 4137, 3893, 10177, 364, 326, 3764, 8098, 938, 18, 3536, 309, 6871, 67, 2284, 31713, 44, 61, 7192, 734, 6877, 309, 14988, 67, 9905, 6188, 12194, 631, 5510, 30, 327, 8098, 4137, 3893, 12305, 17507, 14400, 1435, 469, 30, 327, 8098, 4137, 3893, 17507, 14400, 1435, 309, 6871, 67, 2284, 31713, 1258, 12609, 6877, 327, 8098, 4137, 3893, 979, 17693, 1764, 335, 1435, 309, 6871, 67, 2284, 31713, 19415, 6877, 327, 8098, 4137, 3893, 3773, 1435, 1002, 1185, 1435, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1166, 9905, 4137, 3893, 20, 12, 17116, 67, 2284, 4672, 3536, 4625, 471, 327, 326, 5338, 8098, 4137, 3893, 10177, 364, 326, 3764, 8098, 938, 18, 3536, 309, 6871, 67, 2284, 31713, 44, 61, 7192, 734, 6877, 309, 14988, 67, 9905, 6188, 12194, 631, 5510, 30, 327, 8098, 4137, 3893, 12305, 17507, 14400, 1435, 469, 30, 327, 8098, 4137, 3893, 17507, 14400, 1435, 309, 6871, 67, 2284, 31713, 1258, 12609, 6877, 327, 8098, 4137, 3893, 979, 17693, 1764, 335, 1435, 309, 6871, 67, 2284, 31713, 19415, 6877, 327, 8098, 4137, 3893, 3773, 1435, 1002, 1185, 1435, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
debug("?",stream.tell(),offset)
def read(self,path,length,offset,fh=None): debug("read",path,length,offset) stream,rpath = self.files.get(path) stream.seek(offset) debug("?",stream.tell(),offset) return stream.read(length)
bf63f36d0f7fa2ecf2275b7b07126f2427e7669e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5937/bf63f36d0f7fa2ecf2275b7b07126f2427e7669e/archivefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 803, 16, 2469, 16, 3348, 16, 19260, 33, 7036, 4672, 1198, 2932, 896, 3113, 803, 16, 2469, 16, 3348, 13, 1407, 16, 86, 803, 273, 365, 18, 2354, 18, 588, 12, 803, 13, 1407, 18, 16508, 12, 3348, 13, 327, 1407, 18, 896, 12, 2469, 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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16, 803, 16, 2469, 16, 3348, 16, 19260, 33, 7036, 4672, 1198, 2932, 896, 3113, 803, 16, 2469, 16, 3348, 13, 1407, 16, 86, 803, 273, 365, 18, 2354, 18, 588, 12, 803, 13, 1407, 18, 16508, 12, 3348, 13, 327, 1407, 18, 896, 12, 2469, 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 ]
cvsdir = os.path.join(groupdir,projdir)
cvsdir = os.path.join(d,projdir)
def cvs_checkout(d): os.chdir(d) cvsdir = os.path.join(groupdir,projdir) recursive_rmdir(cvsdir) cvs = find_exe('cvs') if cvs is None: os.exit(1) os.environ['CVSROOT']=':pserver:%s@cvs.reportlab.sourceforge.net:/cvsroot/reportlab' % USER if release: do_exec(cvs+(' export -r %s %s' % (tagname,projdir)), 'the export phase') else: do_exec(cvs+' co %s' % projdir, 'the checkout phase') if py2pdf: # now we need to move the files & delete those we don't need dst = py2pdf_dir recursive_rmdir(dst) os.mkdir(dst) do_exec("mv reportlab/demos/py2pdf/py2pdf.py %s"%dst, "mv py2pdf.py") do_exec("mv reportlab/demos/py2pdf/PyFontify.py %s" % dst, "mv pyfontify.py") do_exec("mv reportlab/demos/py2pdf/idle_print.py %s" % dst, "mv idle_print.py") do_exec("rm -r reportlab/demos reportlab/platypus reportlab/lib/styles.py reportlab/README.pdfgen.txt reportlab/pdfgen/test", "rm") do_exec("mv %s %s" % (projdir,dst), "moving %s to %s" %(projdir,py2pdf_dir)) do_exec("chmod a+x %s/py2pdf.py %s/idle_print.py" % (dst, dst), "chmod") CVS_remove(dst)
06b31010b87a8019947bd5e16c3c4d4ed9be4bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/06b31010b87a8019947bd5e16c3c4d4ed9be4bde/daily.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 276, 6904, 1214, 273, 1140, 18, 803, 18, 5701, 12, 72, 16, 17995, 1214, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 276, 6904, 353, 599, 30, 1140, 18, 8593, 12, 21, 13, 225, 1140, 18, 28684, 3292, 39, 14640, 9185, 3546, 2218, 30, 84, 3567, 5319, 87, 36, 71, 6904, 18, 6006, 7411, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 19, 6006, 7411, 11, 738, 7443, 309, 3992, 30, 741, 67, 4177, 12, 71, 6904, 15, 2668, 3359, 300, 86, 738, 87, 738, 87, 11, 738, 261, 2692, 529, 16, 17995, 1214, 13, 3631, 296, 5787, 3359, 6855, 6134, 469, 30, 741, 67, 4177, 12, 71, 6904, 6797, 1825, 738, 87, 11, 738, 10296, 1214, 16, 296, 5787, 13926, 6855, 6134, 309, 2395, 22, 7699, 30, 468, 2037, 732, 1608, 358, 3635, 326, 1390, 473, 1430, 5348, 732, 2727, 1404, 1608, 3046, 273, 2395, 22, 7699, 67, 1214, 5904, 67, 8864, 1214, 12, 11057, 13, 1140, 18, 26686, 12, 11057, 13, 741, 67, 4177, 2932, 17509, 2605, 7411, 19, 19117, 538, 19, 2074, 22, 7699, 19, 2074, 22, 7699, 18, 2074, 738, 87, 28385, 11057, 16, 315, 17509, 2395, 22, 7699, 18, 2074, 7923, 741, 67, 4177, 2932, 17509, 2605, 7411, 19, 19117, 538, 19, 2074, 22, 7699, 19, 9413, 5711, 1164, 18, 2074, 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, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 276, 6904, 1214, 273, 1140, 18, 803, 18, 5701, 12, 72, 16, 17995, 1214, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 276, 6904, 353, 599, 30, 1140, 18, 8593, 12, 21, 13, 225, 1140, 18, 28684, 3292, 39, 14640, 9185, 3546, 2218, 30, 84, 3567, 5319, 87, 36, 71, 6904, 18, 6006, 7411, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 19, 6006, 7411, 11, 738, 7443, 309, 3992, 30, 741, 67, 4177, 12, 71, 6904, 15, 2668, 3359, 300, 86, 738, 87, 738, 87, 11, 738, 2 ]
timeout = 30
def testTimer(self): timeout = 30 l = [] t = internet.TimerService(1, l.append, "hello") t.startService() while not l: reactor.iterate(0.1) timeout -= 1 self.failIf(timeout == 0) t.stopService() self.failIf(t.running) self.assertEqual(l, ["hello"]) l.pop()
a79e9f9c61953c867382db060dfde03dbf771dc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a79e9f9c61953c867382db060dfde03dbf771dc3/test_application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6777, 12, 2890, 4672, 80, 273, 5378, 268, 273, 24264, 18, 6777, 1179, 12, 21, 16, 328, 18, 6923, 16, 315, 23711, 7923, 268, 18, 1937, 1179, 1435, 1323, 486, 328, 30, 19178, 18, 18793, 12, 20, 18, 21, 13, 2021, 3947, 404, 365, 18, 6870, 2047, 12, 4538, 422, 374, 13, 268, 18, 5681, 1179, 1435, 365, 18, 6870, 2047, 12, 88, 18, 8704, 13, 365, 18, 11231, 5812, 12, 80, 16, 8247, 23711, 6, 5717, 328, 18, 5120, 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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1435, 1323, 486, 328, 30, 19178, 18, 18793, 12, 20, 18, 21, 13, 2021, 3947, 404, 365, 18, 6870, 2047, 12, 4538, 422, 374, 13, 268, 18, 5681, 1179, 1435, 365, 18, 6870, 2047, 12, 88, 18, 8704, 13, 365, 18, 11231, 5812, 12, 80, 16, 8247, 23711, 6, 5717, 328, 18, 5120, 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 ]
EXAMPLE:
EXAMPLE::
def maximal_difference_probability(self): r""" Return the difference probability of the difference with the highest probability in the range between 0.0 and 1.0 indicating 0\% or 100\% respectively.
dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 2840, 67, 23444, 67, 22390, 12, 2890, 4672, 436, 8395, 2000, 326, 7114, 11331, 434, 326, 7114, 598, 326, 9742, 11331, 316, 326, 1048, 3086, 374, 18, 20, 471, 404, 18, 20, 11193, 374, 64, 9, 578, 2130, 64, 9, 19629, 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, 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 22398, 316, 326, 981, 30, 1652, 943, 2840, 67, 23444, 67, 22390, 12, 2890, 4672, 436, 8395, 2000, 326, 7114, 11331, 434, 326, 7114, 598, 326, 9742, 11331, 316, 326, 1048, 3086, 374, 18, 20, 471, 404, 18, 20, 11193, 374, 64, 9, 578, 2130, 64, 9, 19629, 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 ]
sage: T = Cylindrical('z', ['phi', 'rho']) sage: T.gen_transform(rho=var('rho'), phi=var('phi'), z=var('z')) (rho*cos(phi), rho*sin(phi), z) """ return (rho * cos(phi), rho * sin(phi), z)
sage: T = Cylindrical('height', ['azimuth', 'radius']) sage: T.transform(radius=var('r'), azimuth=var('theta'), height=var('z')) (r*cos(theta), r*sin(theta), z) """ return (radius * cos(azimuth), radius * sin(azimuth), height)
def gen_transform(self, rho=None, phi=None, z=None): """ EXAMPLE::
f1a033cac620bf133b1f996c6db511753cab6f3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f1a033cac620bf133b1f996c6db511753cab6f3d/plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 6547, 12, 2890, 16, 10360, 33, 7036, 16, 7706, 33, 7036, 16, 998, 33, 7036, 4672, 3536, 5675, 21373, 2866, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6547, 12, 2890, 16, 10360, 33, 7036, 16, 7706, 33, 7036, 16, 998, 33, 7036, 4672, 3536, 5675, 21373, 2866, 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 ]
if level >= 3 or not ( filter( lambda x: unicode( msg ) in x[1], sharedData.scanoutput ) ) : sharedData.scanoutput.append( (level, unicode( newmsg ) + os.linesep) )
if level >= 3 or not ( filter( lambda x: unicodeC( msg ) in x[1], sharedData.scanoutput ) ) : sharedData.scanoutput.append( (level, unicodeC( newmsg ) + os.linesep) )
def logStatusMsg( msg, level, config=True ): u"""write a message to the log/stdout/stderr, depending on the level. if config=False, goes straight to stderr""" global _action TimeCode = u"[%4d%02d%02d.%02d:%02d.%02d]" % time.localtime()[:6] newmsg = TimeCode + ' ' + unicode( msg ) if not config and _action != "daemon": # daemon == no stdout/err! sys.stderrUTF.write( unicode(ReFormatString( inputstring=newmsg)) ) return None sharedData = getSharedData() # level >=3 is vebose. we don't want to repeatedly send the same error message (the second part), but if we want verbosity, the first part is enough to print the message if level >= 3 or not ( filter( lambda x: unicode( msg ) in x[1], sharedData.scanoutput ) ) : sharedData.scanoutput.append( (level, unicode( newmsg ) + os.linesep) ) logMsg( newmsg, level ) status( newmsg, level )
15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 1482, 3332, 12, 1234, 16, 1801, 16, 642, 33, 5510, 262, 30, 582, 8395, 2626, 279, 883, 358, 326, 613, 19, 10283, 19, 11241, 16, 8353, 603, 326, 1801, 18, 309, 642, 33, 8381, 16, 13998, 21251, 358, 4514, 8395, 2552, 389, 1128, 2647, 1085, 273, 582, 6, 14451, 24, 72, 9, 3103, 72, 9, 3103, 72, 7866, 3103, 72, 5319, 3103, 72, 7866, 3103, 72, 4279, 738, 813, 18, 3729, 957, 1435, 10531, 26, 65, 394, 3576, 273, 2647, 1085, 397, 296, 282, 296, 397, 5252, 12, 1234, 262, 309, 486, 642, 471, 389, 1128, 480, 315, 21511, 6877, 468, 8131, 422, 1158, 3909, 19, 370, 5, 2589, 18, 11241, 5159, 18, 2626, 12, 225, 5252, 12, 426, 1630, 780, 12, 810, 1080, 33, 2704, 3576, 3719, 262, 327, 599, 5116, 751, 273, 23427, 751, 1435, 468, 1801, 1545, 23, 353, 10489, 3346, 18, 732, 2727, 1404, 2545, 358, 30412, 1366, 326, 1967, 555, 883, 261, 5787, 2205, 1087, 3631, 1496, 309, 732, 2545, 11561, 16, 326, 1122, 1087, 353, 7304, 358, 1172, 326, 883, 309, 1801, 1545, 890, 578, 486, 261, 1034, 12, 3195, 619, 30, 5252, 39, 12, 1234, 262, 316, 619, 63, 21, 6487, 225, 5116, 751, 18, 9871, 2844, 262, 262, 294, 5116, 751, 18, 9871, 2844, 18, 6923, 12, 261, 2815, 16, 5252, 39, 12, 394, 3576, 262, 397, 1140, 18, 3548, 881, 13, 262, 613, 3332, 12, 394, 3576, 16, 1801, 262, 1267, 12, 394, 3576, 16, 1801, 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, 613, 1482, 3332, 12, 1234, 16, 1801, 16, 642, 33, 5510, 262, 30, 582, 8395, 2626, 279, 883, 358, 326, 613, 19, 10283, 19, 11241, 16, 8353, 603, 326, 1801, 18, 309, 642, 33, 8381, 16, 13998, 21251, 358, 4514, 8395, 2552, 389, 1128, 2647, 1085, 273, 582, 6, 14451, 24, 72, 9, 3103, 72, 9, 3103, 72, 7866, 3103, 72, 5319, 3103, 72, 7866, 3103, 72, 4279, 738, 813, 18, 3729, 957, 1435, 10531, 26, 65, 394, 3576, 273, 2647, 1085, 397, 296, 282, 296, 397, 5252, 12, 1234, 262, 309, 486, 642, 471, 389, 1128, 480, 315, 21511, 6877, 468, 8131, 422, 1158, 3909, 19, 370, 5, 2589, 18, 11241, 5159, 18, 2626, 12, 225, 5252, 2 ]
fileDestText.SetLabel(path)
self.fileDestText.SetLabel(path)
def newpath(self, path): fileDestText.SetLabel(path)
1837d5770325d3550eb3de5c39a6b107db1bd1ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/1837d5770325d3550eb3de5c39a6b107db1bd1ac/btdownloadgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25094, 12, 2890, 16, 589, 4672, 585, 9378, 1528, 18, 694, 2224, 12, 803, 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,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 25094, 12, 2890, 16, 589, 4672, 585, 9378, 1528, 18, 694, 2224, 12, 803, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
[2, 3, 5]
[2, 3, 5, 23]
def bound_kato(self): r""" Returns a list `p` of primes such that the theorems of Kato's [Ka] and others (e.g., as explained in a paper/thesis of Grigor Grigorov [Gri]) imply that if `p` divides the order of Sha(E) then `p` is in the list.
bf83297096143ea5e25bcdcb414d7d4aa47651ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/bf83297096143ea5e25bcdcb414d7d4aa47651ca/sha_tate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2489, 67, 79, 31093, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 1375, 84, 68, 434, 846, 4485, 4123, 716, 326, 326, 479, 959, 434, 1475, 31093, 1807, 306, 47, 69, 65, 471, 10654, 261, 73, 18, 75, 12990, 487, 19765, 329, 316, 279, 15181, 19, 20432, 434, 611, 86, 360, 280, 611, 86, 360, 280, 1527, 306, 43, 566, 5717, 709, 1283, 716, 309, 1375, 84, 68, 3739, 4369, 225, 326, 1353, 434, 2638, 69, 12, 41, 13, 1508, 1375, 84, 68, 353, 316, 326, 666, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2489, 67, 79, 31093, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 1375, 84, 68, 434, 846, 4485, 4123, 716, 326, 326, 479, 959, 434, 1475, 31093, 1807, 306, 47, 69, 65, 471, 10654, 261, 73, 18, 75, 12990, 487, 19765, 329, 316, 279, 15181, 19, 20432, 434, 611, 86, 360, 280, 611, 86, 360, 280, 1527, 306, 43, 566, 5717, 709, 1283, 716, 309, 1375, 84, 68, 3739, 4369, 225, 326, 1353, 434, 2638, 69, 12, 41, 13, 1508, 1375, 84, 68, 353, 316, 326, 666, 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 ]
filt.append(bandpassZPHSH(tr.data,self.slideHigh.val,self.slideLow.val,df=tr.stats.sampling_rate)) print "Zero-Phase Bandpass: %.2f-%.2f Hz"%(self.slideHigh.val,self.slideLow.val)
filt.append(bandpassZPHSH(tr.data,self.spinbuttonHighpass.get_value(),self.spinbuttonLowpass.get_value(),df=tr.stats.sampling_rate)) msg = "Zero-Phase Bandpass: %.2f-%.2f Hz"%(self.spinbuttonHighpass.get_value(),self.spinbuttonLowpass.get_value()) appendTextview(self.textviewStdOut, msg)
def updatePlot(self): filt=[] #filter data if self.flagFilt==True: if self.flagFiltZPH: if self.flagFiltTyp==0: for tr in self.streams[self.stPt].traces: filt.append(bandpassZPHSH(tr.data,self.slideHigh.val,self.slideLow.val,df=tr.stats.sampling_rate)) print "Zero-Phase Bandpass: %.2f-%.2f Hz"%(self.slideHigh.val,self.slideLow.val) if self.flagFiltTyp==1: for tr in self.streams[self.stPt].traces: filt.append(bandstopZPHSH(tr.data,self.slideHigh.val,self.slideLow.val,df=tr.stats.sampling_rate)) print "Zero-Phase Bandstop: %.2f-%.2f Hz"%(self.slideHigh.val,self.slideLow.val) if self.flagFiltTyp==2: for tr in self.streams[self.stPt].traces: filt.append(lowpassZPHSH(tr.data,self.slideLow.val,df=tr.stats.sampling_rate)) print "Zero-Phase Lowpass: %.2f Hz"%(self.slideLow.val) if self.flagFiltTyp==3: for tr in self.streams[self.stPt].traces: filt.append(highpassZPHSH(tr.data,self.slideHigh.val,df=tr.stats.sampling_rate)) print "Zero-Phase Highpass: %.2f Hz"%(self.slideHigh.val) else: if self.flagFiltTyp==0: for tr in self.streams[self.stPt].traces: filt.append(bandpass(tr.data,self.slideHigh.val,self.slideLow.val,df=tr.stats.sampling_rate)) print "One-Pass Bandpass: %.2f-%.2f Hz"%(self.slideHigh.val,self.slideLow.val) if self.flagFiltTyp==1: for tr in self.streams[self.stPt].traces: filt.append(bandstop(tr.data,self.slideHigh.val,self.slideLow.val,df=tr.stats.sampling_rate)) print "One-Pass Bandstop: %.2f-%.2f Hz"%(self.slideHigh.val,self.slideLow.val) if self.flagFiltTyp==2: for tr in self.streams[self.stPt].traces: filt.append(lowpass(tr.data,self.slideLow.val,df=tr.stats.sampling_rate)) print "One-Pass Lowpass: %.2f Hz"%(self.slideLow.val) if self.flagFiltTyp==3: for tr in self.streams[self.stPt].traces: filt.append(highpass(tr.data,self.slideHigh.val,df=tr.stats.sampling_rate)) print "One-Pass Highpass: %.2f Hz"%(self.slideHigh.val) #make new plots for i in range(len(self.plts)): self.plts[i].set_ydata(filt[i]) else: #make new plots for i in range(len(self.plts)): self.plts[i].set_ydata(self.streams[self.stPt][i].data) print "Unfiltered Traces" # Update all subplots self.redraw()
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11532, 12, 2890, 4672, 18553, 33, 8526, 468, 2188, 501, 309, 365, 18, 6420, 42, 4526, 631, 5510, 30, 309, 365, 18, 6420, 42, 4526, 62, 8939, 30, 309, 365, 18, 6420, 42, 4526, 18488, 631, 20, 30, 364, 433, 316, 365, 18, 16320, 63, 2890, 18, 334, 16484, 8009, 2033, 764, 30, 18553, 18, 6923, 12, 12752, 5466, 62, 8939, 2664, 12, 313, 18, 892, 16, 2890, 18, 22876, 5391, 8573, 5466, 18, 588, 67, 1132, 9334, 2890, 18, 22876, 5391, 10520, 5466, 18, 588, 67, 1132, 9334, 2180, 33, 313, 18, 5296, 18, 23002, 67, 5141, 3719, 1234, 273, 315, 7170, 17, 11406, 27601, 5466, 30, 12639, 22, 74, 6456, 18, 22, 74, 670, 94, 6, 17105, 2890, 18, 22876, 5391, 8573, 5466, 18, 588, 67, 1132, 9334, 2890, 18, 22876, 5391, 10520, 5466, 18, 588, 67, 1132, 10756, 714, 1528, 1945, 12, 2890, 18, 955, 1945, 10436, 1182, 16, 1234, 13, 309, 365, 18, 6420, 42, 4526, 18488, 631, 21, 30, 364, 433, 316, 365, 18, 16320, 63, 2890, 18, 334, 16484, 8009, 2033, 764, 30, 18553, 18, 6923, 12, 12752, 5681, 62, 8939, 2664, 12, 313, 18, 892, 16, 2890, 18, 26371, 8573, 18, 1125, 16, 2890, 18, 26371, 10520, 18, 1125, 16, 2180, 33, 313, 18, 5296, 18, 23002, 67, 5141, 3719, 1172, 315, 7170, 17, 11406, 27601, 5681, 30, 12639, 22, 74, 6456, 18, 22, 74, 670, 94, 6, 17105, 2890, 18, 26371, 8573, 18, 1125, 16, 2890, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11532, 12, 2890, 4672, 18553, 33, 8526, 468, 2188, 501, 309, 365, 18, 6420, 42, 4526, 631, 5510, 30, 309, 365, 18, 6420, 42, 4526, 62, 8939, 30, 309, 365, 18, 6420, 42, 4526, 18488, 631, 20, 30, 364, 433, 316, 365, 18, 16320, 63, 2890, 18, 334, 16484, 8009, 2033, 764, 30, 18553, 18, 6923, 12, 12752, 5466, 62, 8939, 2664, 12, 313, 18, 892, 16, 2890, 18, 22876, 5391, 8573, 5466, 18, 588, 67, 1132, 9334, 2890, 18, 22876, 5391, 10520, 5466, 18, 588, 67, 1132, 9334, 2180, 33, 313, 18, 5296, 18, 23002, 67, 5141, 3719, 1234, 273, 315, 7170, 17, 11406, 27601, 5466, 30, 12639, 22, 74, 6456, 18, 22, 74, 670, 94, 2 ]
parser = OptionParser(option_list=parser_opts + [DEBUG_OPT],
parser = OptionParser(option_list=parser_opts + COMMON_OPTS,
def _ParseArgs(argv, commands, aliases): """Parser for the command line arguments. This function parses the arguments and returns the function which must be executed together with its (modified) arguments. @param argv: the command line @param commands: dictionary with special contents, see the design doc for cmdline handling @param aliases: dictionary with command aliases {'alias': 'target, ...} """ if len(argv) == 0: binary = "<command>" else: binary = argv[0].split("/")[-1] if len(argv) > 1 and argv[1] == "--version": ToStdout("%s (ganeti %s) %s", binary, constants.VCS_VERSION, constants.RELEASE_VERSION) # Quit right away. That way we don't have to care about this special # argument. optparse.py does it the same. sys.exit(0) if len(argv) < 2 or not (argv[1] in commands or argv[1] in aliases): # let's do a nice thing sortedcmds = commands.keys() sortedcmds.sort() ToStdout("Usage: %s {command} [options...] [argument...]", binary) ToStdout("%s <command> --help to see details, or man %s", binary, binary) ToStdout("") # compute the max line length for cmd + usage mlen = max([len(" %s" % cmd) for cmd in commands]) mlen = min(60, mlen) # should not get here... # and format a nice command list ToStdout("Commands:") for cmd in sortedcmds: cmdstr = " %s" % (cmd,) help_text = commands[cmd][4] help_lines = textwrap.wrap(help_text, 79 - 3 - mlen) ToStdout("%-*s - %s", mlen, cmdstr, help_lines.pop(0)) for line in help_lines: ToStdout("%-*s %s", mlen, "", line) ToStdout("") return None, None, None # get command, unalias it, and look it up in commands cmd = argv.pop(1) if cmd in aliases: if cmd in commands: raise errors.ProgrammerError("Alias '%s' overrides an existing" " command" % cmd) if aliases[cmd] not in commands: raise errors.ProgrammerError("Alias '%s' maps to non-existing" " command '%s'" % (cmd, aliases[cmd])) cmd = aliases[cmd] func, args_def, parser_opts, usage, description = commands[cmd] parser = OptionParser(option_list=parser_opts + [DEBUG_OPT], description=description, formatter=TitledHelpFormatter(), usage="%%prog %s %s" % (cmd, usage)) parser.disable_interspersed_args() options, args = parser.parse_args() if not _CheckArguments(cmd, args_def, args): return None, None, None return func, options, args
5786c087558ab0aa68261057009a4716727b30bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/5786c087558ab0aa68261057009a4716727b30bc/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3201, 2615, 12, 19485, 16, 4364, 16, 6900, 4672, 3536, 2678, 364, 326, 1296, 980, 1775, 18, 225, 1220, 445, 8940, 326, 1775, 471, 1135, 326, 445, 1492, 1297, 506, 7120, 9475, 598, 2097, 261, 7342, 13, 1775, 18, 225, 632, 891, 5261, 30, 326, 1296, 980, 632, 891, 4364, 30, 3880, 598, 4582, 2939, 16, 2621, 326, 8281, 997, 364, 22877, 5057, 632, 891, 6900, 30, 3880, 598, 1296, 6900, 13666, 4930, 4278, 296, 3299, 16, 1372, 97, 225, 3536, 309, 562, 12, 19485, 13, 422, 374, 30, 3112, 273, 3532, 3076, 2984, 469, 30, 3112, 273, 5261, 63, 20, 8009, 4939, 2932, 4898, 13, 18919, 21, 65, 225, 309, 562, 12, 19485, 13, 405, 404, 471, 5261, 63, 21, 65, 422, 5238, 1589, 6877, 2974, 27334, 27188, 87, 261, 75, 304, 278, 77, 738, 87, 13, 738, 87, 3113, 3112, 16, 6810, 18, 58, 4596, 67, 5757, 16, 6810, 18, 30762, 67, 5757, 13, 468, 4783, 305, 2145, 10804, 18, 12466, 4031, 732, 2727, 1404, 1240, 358, 7671, 2973, 333, 4582, 468, 1237, 18, 2153, 2670, 18, 2074, 1552, 518, 326, 1967, 18, 2589, 18, 8593, 12, 20, 13, 225, 309, 562, 12, 19485, 13, 411, 576, 578, 486, 261, 19485, 63, 21, 65, 316, 4364, 578, 5261, 63, 21, 65, 316, 6900, 4672, 468, 2231, 1807, 741, 279, 13752, 7757, 3115, 24680, 273, 4364, 18, 2452, 1435, 3115, 24680, 18, 3804, 1435, 225, 2974, 27334, 2932, 5357, 30, 738, 87, 288, 3076, 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, 3201, 2615, 12, 19485, 16, 4364, 16, 6900, 4672, 3536, 2678, 364, 326, 1296, 980, 1775, 18, 225, 1220, 445, 8940, 326, 1775, 471, 1135, 326, 445, 1492, 1297, 506, 7120, 9475, 598, 2097, 261, 7342, 13, 1775, 18, 225, 632, 891, 5261, 30, 326, 1296, 980, 632, 891, 4364, 30, 3880, 598, 4582, 2939, 16, 2621, 326, 8281, 997, 364, 22877, 5057, 632, 891, 6900, 30, 3880, 598, 1296, 6900, 13666, 4930, 4278, 296, 3299, 16, 1372, 97, 225, 3536, 309, 562, 12, 19485, 13, 422, 374, 30, 3112, 273, 3532, 3076, 2984, 469, 30, 3112, 273, 5261, 63, 20, 8009, 4939, 2932, 4898, 13, 18919, 21, 65, 225, 309, 562, 12, 19485, 13, 405, 404, 2 ]
print " " * idt + "parts[%d].iov_base = null;" % part_idx
print " " * idt + "parts[%d].iov_base = pad.ptr;" % part_idx
def nested_from_bytes(ctx_name, members, idt): var_fields = [i for i in members if type(i) is ListMember] print " " * idt + "auto %s_buf = cast(ubyte*)&%s;" % (ctx_name,ctx_name) if len(var_fields) == 0: print " " * idt + "%s_buf[0..%s.sizeof] = buf[offset_idx..offset_idx+%s.sizeof];" % (ctx_name,ctx_name,ctx_name) else: print " " * idt + "%s_buf[0..%s.%s.offsetof] =" % (ctx_name,ctx_name,var_fields[0].name) print " " * (idt+3) + "buf[offset_idx..offset_idx+%s.%s.offsetof];" % (ctx_name,var_fields[0].name) print " " * idt + "offset_idx += %s.%s.offsetof;" % (ctx_name,var_fields[0].name) for m in var_fields: print element_typeinfo = type_registry[m.element_type] if element_typeinfo.fixed(): # dupe slice of elements of fixed type print " " * idt + "%s.%s = (cast(%s*)&buf[offset_idx])[0..%s].dup;" % ( ctx_name,m.name, m.element_type, m.length_expr(ctx_name)) print " " * idt + "offset_idx += %s * %s.sizeof;" % (m.length_expr(ctx_name), m.element_type) #if m.type.size % 4 != 0: print " " * idt + "offset_idx += pad4(%s * %s.sizeof);" % (m.length_expr(ctx_name), m.element_type) else: # allocate array and set each element (vaiable-length) print " " * idt + "%s.%s.length = %s;" % (ctx_name,m.name, m.length_expr(ctx_name)) item = m.element_type.lower() # TODO: const ref? print " " * idt + "foreach (ref %s; %s.%s)" % (item, ctx_name,m.name) print " " * idt + "{" nested_from_bytes(item, element_typeinfo.members, idt + 1) # recursion! print " " * idt + "}"
f1040b873b6dd00166c326e4fab07762ef813c85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3431/f1040b873b6dd00166c326e4fab07762ef813c85/codegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4764, 67, 2080, 67, 3890, 12, 5900, 67, 529, 16, 4833, 16, 612, 88, 4672, 569, 67, 2821, 273, 306, 77, 364, 277, 316, 4833, 309, 618, 12, 77, 13, 353, 987, 4419, 65, 1172, 315, 565, 315, 380, 612, 88, 397, 315, 6079, 738, 87, 67, 4385, 273, 4812, 12, 10340, 736, 12437, 10, 9, 87, 4868, 738, 261, 5900, 67, 529, 16, 5900, 67, 529, 13, 309, 562, 12, 1401, 67, 2821, 13, 422, 374, 30, 1172, 315, 565, 315, 380, 612, 88, 397, 2213, 87, 67, 4385, 63, 20, 838, 9, 87, 18, 1467, 792, 65, 273, 1681, 63, 3348, 67, 3465, 838, 3348, 67, 3465, 15, 9, 87, 18, 1467, 792, 65, 4868, 738, 261, 5900, 67, 529, 16, 5900, 67, 529, 16, 5900, 67, 529, 13, 469, 30, 1172, 315, 565, 315, 380, 612, 88, 397, 2213, 87, 67, 4385, 63, 20, 838, 9, 87, 7866, 87, 18, 3348, 792, 65, 273, 6, 738, 261, 5900, 67, 529, 16, 5900, 67, 529, 16, 1401, 67, 2821, 63, 20, 8009, 529, 13, 1172, 315, 565, 315, 380, 261, 350, 88, 15, 23, 13, 397, 315, 4385, 63, 3348, 67, 3465, 838, 3348, 67, 3465, 15, 9, 87, 7866, 87, 18, 3348, 792, 65, 4868, 738, 261, 5900, 67, 529, 16, 1401, 67, 2821, 63, 20, 8009, 529, 13, 1172, 315, 565, 315, 380, 612, 88, 397, 315, 3348, 67, 3465, 1011, 738, 87, 7866, 87, 18, 3348, 792, 4868, 738, 261, 5900, 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, 4764, 67, 2080, 67, 3890, 12, 5900, 67, 529, 16, 4833, 16, 612, 88, 4672, 569, 67, 2821, 273, 306, 77, 364, 277, 316, 4833, 309, 618, 12, 77, 13, 353, 987, 4419, 65, 1172, 315, 565, 315, 380, 612, 88, 397, 315, 6079, 738, 87, 67, 4385, 273, 4812, 12, 10340, 736, 12437, 10, 9, 87, 4868, 738, 261, 5900, 67, 529, 16, 5900, 67, 529, 13, 309, 562, 12, 1401, 67, 2821, 13, 422, 374, 30, 1172, 315, 565, 315, 380, 612, 88, 397, 2213, 87, 67, 4385, 63, 20, 838, 9, 87, 18, 1467, 792, 65, 273, 1681, 63, 3348, 67, 3465, 838, 3348, 67, 3465, 15, 9, 87, 18, 1467, 792, 65, 4868, 738, 2 ]
cr.execute(""" SELECT move.id FROM stock_picking pick RIGHT JOIN stock_move move ON move.picking_id = pick.id AND move.state = %s WHERE pick.id = %s""", ('done', move.picking_id.id)) res = cr.fetchall() if len(res) == len(move.picking_id.move_lines): picking_obj.action_move(cr, uid, [move.picking_id.id]) wf_service.trg_validate(uid, 'stock.picking', move.picking_id.id, 'button_done', cr)
if move.picking_id.id : cr.execute(""" SELECT move.id FROM stock_picking pick RIGHT JOIN stock_move move ON move.picking_id = pick.id AND move.state = %s WHERE pick.id = %s""", ('done', move.picking_id.id)) res = cr.fetchall() if len(res) == len(move.picking_id.move_lines): picking_obj.action_move(cr, uid, [move.picking_id.id]) wf_service.trg_validate(uid, 'stock.picking', move.picking_id.id, 'button_done', cr)
def do_partial(self, cr, uid, ids, partial_datas, context={}): """ Makes partial pickings and moves done. @param partial_datas: Dictionary containing details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom """ res = {} picking_obj = self.pool.get('stock.picking') product_obj = self.pool.get('product.product') currency_obj = self.pool.get('res.currency') users_obj = self.pool.get('res.users') uom_obj = self.pool.get('product.uom') price_type_obj = self.pool.get('product.price.type') sequence_obj = self.pool.get('ir.sequence') wf_service = netsvc.LocalService("workflow") partner_id = partial_datas.get('partner_id', False) address_id = partial_datas.get('address_id', False) delivery_date = partial_datas.get('delivery_date', False) tracking_lot = context.get('tracking_lot', False)
77fc796e7f50b245eee03d59571118913429c80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/77fc796e7f50b245eee03d59571118913429c80c/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 12938, 4672, 3536, 490, 3223, 4702, 6002, 899, 471, 13934, 2731, 18, 632, 891, 4702, 67, 13178, 30, 16447, 4191, 3189, 434, 4702, 6002, 310, 3007, 19170, 67, 350, 16, 1758, 67, 350, 16, 7912, 67, 712, 16, 7912, 13934, 598, 3017, 67, 350, 16, 3017, 67, 85, 4098, 16, 582, 362, 3536, 400, 273, 2618, 6002, 310, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 11503, 310, 6134, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 6134, 5462, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 7095, 6134, 3677, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 6134, 582, 362, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 89, 362, 6134, 6205, 67, 723, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 8694, 18, 723, 6134, 3102, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 6178, 6134, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2932, 13815, 7923, 19170, 67, 350, 273, 4702, 67, 13178, 18, 588, 2668, 31993, 67, 350, 2187, 1083, 13, 1758, 67, 350, 273, 4702, 67, 13178, 18, 588, 2668, 2867, 67, 350, 2187, 1083, 13, 7912, 67, 712, 273, 4702, 67, 13178, 18, 588, 2668, 15703, 67, 712, 2187, 1083, 13, 11093, 67, 23372, 273, 819, 18, 588, 2668, 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, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 12938, 4672, 3536, 490, 3223, 4702, 6002, 899, 471, 13934, 2731, 18, 632, 891, 4702, 67, 13178, 30, 16447, 4191, 3189, 434, 4702, 6002, 310, 3007, 19170, 67, 350, 16, 1758, 67, 350, 16, 7912, 67, 712, 16, 7912, 13934, 598, 3017, 67, 350, 16, 3017, 67, 85, 4098, 16, 582, 362, 3536, 400, 273, 2618, 6002, 310, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 11503, 310, 6134, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 6134, 5462, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 7095, 6134, 3677, 2 ]
opt = {}
opt = []
def m2i(self, pkt, x): opt = {} while x: onum = ord(x[0]) if onum == 0: break if onum == 1: opt["NOP"] = () x=x[1:] continue olen = ord(x[1]) oval = x[2:olen] if TCPOptions[0].has_key(onum): oname, ofmt = TCPOptions[0][onum] if ofmt: oval = struct.unpack(ofmt, oval) if len(oval) == 1: oval = oval[0] opt[oname] = oval else: opt[onum] = oval x = x[olen:] return opt
72a6cb45046ec8460dd0e9285912420425eca706 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/72a6cb45046ec8460dd0e9285912420425eca706/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 22, 77, 12, 2890, 16, 11536, 16, 619, 4672, 2153, 273, 5378, 1323, 619, 30, 603, 379, 273, 4642, 12, 92, 63, 20, 5717, 309, 603, 379, 422, 374, 30, 898, 309, 603, 379, 422, 404, 30, 2153, 9614, 3417, 52, 11929, 273, 1832, 619, 33, 92, 63, 21, 26894, 1324, 320, 1897, 273, 4642, 12, 92, 63, 21, 5717, 320, 1125, 273, 619, 63, 22, 30, 355, 275, 65, 309, 9911, 1320, 63, 20, 8009, 5332, 67, 856, 12, 265, 379, 4672, 603, 339, 16, 434, 1010, 273, 9911, 1320, 63, 20, 6362, 265, 379, 65, 309, 434, 1010, 30, 320, 1125, 273, 1958, 18, 17309, 12, 792, 1010, 16, 320, 1125, 13, 309, 562, 12, 10866, 13, 422, 404, 30, 320, 1125, 273, 320, 1125, 63, 20, 65, 2153, 63, 265, 339, 65, 273, 320, 1125, 469, 30, 2153, 63, 265, 379, 65, 273, 320, 1125, 619, 273, 619, 63, 355, 275, 26894, 327, 2153, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 22, 77, 12, 2890, 16, 11536, 16, 619, 4672, 2153, 273, 5378, 1323, 619, 30, 603, 379, 273, 4642, 12, 92, 63, 20, 5717, 309, 603, 379, 422, 374, 30, 898, 309, 603, 379, 422, 404, 30, 2153, 9614, 3417, 52, 11929, 273, 1832, 619, 33, 92, 63, 21, 26894, 1324, 320, 1897, 273, 4642, 12, 92, 63, 21, 5717, 320, 1125, 273, 619, 63, 22, 30, 355, 275, 65, 309, 9911, 1320, 63, 20, 8009, 5332, 67, 856, 12, 265, 379, 4672, 603, 339, 16, 434, 1010, 273, 9911, 1320, 63, 20, 6362, 265, 379, 65, 309, 434, 1010, 30, 320, 1125, 273, 1958, 18, 17309, 12, 792, 1010, 16, 320, 1125, 13, 309, 562, 12, 2 ]
self.assertAlmostEqual(np.prod(self.shape)*np.nbytes[np.float], \
self.assertAlmostEqual(np.prod(self.shape)*np.nbytes[self.dtype], \
def get_leaktest_scenario(self): self.assertAlmostEqual(np.prod(self.shape)*np.nbytes[np.float], \ self.footprint, -2) #100B
7b88fdcce5521d473c8d4302f68477e9e7b946f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/7b88fdcce5521d473c8d4302f68477e9e7b946f3/vtk_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 298, 581, 3813, 67, 26405, 12, 2890, 4672, 365, 18, 11231, 1067, 10329, 5812, 12, 6782, 18, 17672, 12, 2890, 18, 4867, 17653, 6782, 18, 82, 3890, 63, 2890, 18, 8972, 6487, 521, 365, 18, 10923, 1188, 16, 300, 22, 13, 468, 6625, 38, 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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18, 8972, 6487, 521, 365, 18, 10923, 1188, 16, 300, 22, 13, 468, 6625, 38, 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 ]
if (e.errno != ENOENT and e.errno != ENOTDIR
if (e.errno != errno.ENOENT and e.errno != errno.ENOTDIR
def _execvpe(file, args, env=None): from errno import ENOENT, ENOTDIR if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ head, tail = path.split(file) if head: func(file, *argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath PATH = envpath.split(pathsep) saved_exc = None saved_tb = None for dir in PATH: fullname = path.join(dir, file) try: func(fullname, *argrest) except error, e: tb = sys.exc_info()[2] if (e.errno != ENOENT and e.errno != ENOTDIR and saved_exc is None): saved_exc = e saved_tb = tb if saved_exc: raise error, saved_exc, saved_tb raise error, e, tb
b49efebb09f99387e06eee626ea679c43a9c22d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b49efebb09f99387e06eee626ea679c43a9c22d1/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 90, 347, 12, 768, 16, 833, 16, 1550, 33, 7036, 4672, 628, 8402, 1930, 29018, 16, 512, 4400, 4537, 225, 309, 1550, 353, 486, 599, 30, 1326, 273, 1196, 537, 1501, 8792, 273, 261, 1968, 16, 1550, 13, 469, 30, 1326, 273, 1196, 90, 1501, 8792, 273, 261, 1968, 16, 13, 1550, 273, 5473, 225, 910, 16, 5798, 273, 589, 18, 4939, 12, 768, 13, 309, 910, 30, 1326, 12, 768, 16, 380, 3175, 8792, 13, 327, 309, 296, 4211, 11, 316, 1550, 30, 1550, 803, 273, 1550, 3292, 4211, 3546, 469, 30, 1550, 803, 273, 1652, 803, 7767, 273, 1550, 803, 18, 4939, 12, 803, 10814, 13, 5198, 67, 10075, 273, 599, 5198, 67, 18587, 273, 599, 364, 1577, 316, 7767, 30, 13321, 273, 589, 18, 5701, 12, 1214, 16, 585, 13, 775, 30, 1326, 12, 21885, 16, 380, 3175, 8792, 13, 1335, 555, 16, 425, 30, 8739, 273, 2589, 18, 10075, 67, 1376, 1435, 63, 22, 65, 309, 261, 73, 18, 19088, 480, 8402, 18, 1157, 51, 2222, 471, 425, 18, 19088, 480, 8402, 18, 1157, 1974, 4537, 471, 5198, 67, 10075, 353, 599, 4672, 5198, 67, 10075, 273, 425, 5198, 67, 18587, 273, 8739, 309, 5198, 67, 10075, 30, 1002, 555, 16, 5198, 67, 10075, 16, 5198, 67, 18587, 1002, 555, 16, 425, 16, 8739, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 90, 347, 12, 768, 16, 833, 16, 1550, 33, 7036, 4672, 628, 8402, 1930, 29018, 16, 512, 4400, 4537, 225, 309, 1550, 353, 486, 599, 30, 1326, 273, 1196, 537, 1501, 8792, 273, 261, 1968, 16, 1550, 13, 469, 30, 1326, 273, 1196, 90, 1501, 8792, 273, 261, 1968, 16, 13, 1550, 273, 5473, 225, 910, 16, 5798, 273, 589, 18, 4939, 12, 768, 13, 309, 910, 30, 1326, 12, 768, 16, 380, 3175, 8792, 13, 327, 309, 296, 4211, 11, 316, 1550, 30, 1550, 803, 273, 1550, 3292, 4211, 3546, 469, 30, 1550, 803, 273, 1652, 803, 7767, 273, 1550, 803, 18, 4939, 12, 803, 10814, 13, 5198, 67, 10075, 273, 599, 5198, 67, 18587, 2 ]
r""" The characteristic function of 0: $a(n) = 0^n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000007;a The characteristic function of 0: a(n) = 0^n. sage: a(0) 1 sage: a(2) 0 sage: a(12) 0 sage: a.list(12) [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] AUTHOR: -- Jaap Spies (2007-01-12) """ def __init__(self):
def __init__(self): r""" The characteristic function of 0: $a(n) = 0^n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000007;a The characteristic function of 0: a(n) = 0^n. sage: a(0) 1 sage: a(2) 0 sage: a(12) 0 sage: a.list(12) [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] AUTHOR: -- Jaap Spies (2007-01-12) """
def _eval(self, n): return arith.euler_phi(n)
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 419, 483, 18, 73, 17040, 67, 9973, 12, 82, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8622, 12, 2890, 16, 290, 4672, 327, 419, 483, 18, 73, 17040, 67, 9973, 12, 82, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.Append(LIBS=module)
self.Append(LINKFLAGS=['-framework', module])
def enable_modules(self, modules, debug=False, crosscompiling=False) : import sys validModules = [ 'QtCore', 'QtGui', 'QtOpenGL', 'Qt3Support', 'QtAssistant', 'QtScript', 'QtDBus', 'QtSql', # The next modules have not been tested yet so, please # maybe they require additional work on non Linux platforms 'QtNetwork', 'QtSvg', 'QtTest', 'QtXml', 'QtUiTools', 'QtDesigner', 'QtDesignerComponents', 'QtWebKit', ] pclessModules = [ 'QtDesigner', 'QtDesignerComponents', ] staticModules = [ 'QtUiTools', ] invalidModules=[] for module in modules: if module not in validModules : invalidModules.append(module) if invalidModules : raise "Modules %s are not Qt4 modules. Valid Qt4 modules are: %s"% \ (str(invalidModules),str(validModules)) moduleDefines = { 'QtScript' : ['QT_SCRIPT_LIB'], 'QtSvg' : ['QT_SVG_LIB'], 'Qt3Support' : ['QT_QT3SUPPORT_LIB','QT3_SUPPORT'], 'QtSql' : ['QT_SQL_LIB'], 'QtXml' : ['QT_XML_LIB'], 'QtOpenGL' : ['QT_OPENGL_LIB'], 'QtGui' : ['QT_GUI_LIB'], 'QtNetwork' : ['QT_NETWORK_LIB'], 'QtCore' : ['QT_CORE_LIB'], } for module in modules : try : self.AppendUnique(CPPDEFINES=moduleDefines[module]) except: pass debugSuffix = '' if sys.platform == "linux2" and not crosscompiling : if debug : debugSuffix = '_debug' for module in modules : if module not in pclessModules : continue self.AppendUnique(LIBS=[module+debugSuffix]) self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")]) self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4")]) self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4",module)]) pcmodules = [module+debugSuffix for module in modules if module not in pclessModules ] if 'QtDBus' in pcmodules: self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4","QtDBus")]) if "QtAssistant" in pcmodules: self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4","QtAssistant")]) pcmodules.remove("QtAssistant") pcmodules.append("QtAssistantClient") self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules)) self["QT4_MOCCPPPATH"] = self["CPPPATH"] return if sys.platform == "win32" or crosscompiling : if crosscompiling: transformedQtdir = transformToWinePath(self['QTDIR']) self['QT4_MOC'] = "QTDIR=%s %s"%( transformedQtdir, self['QT4_MOC']) self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include")]) try: modules.remove("QtDBus") except: pass if debug : debugSuffix = 'd' if "QtAssistant" in modules: self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","QtAssistant")]) modules.remove("QtAssistant") modules.append("QtAssistantClient") self.AppendUnique(LIBS=[lib+debugSuffix+'4' for lib in modules if lib not in staticModules]) self.PrependUnique(LIBS=[lib+debugSuffix for lib in modules if lib in staticModules]) if 'QtOpenGL' in modules: self.AppendUnique(LIBS=['opengl32']) self.AppendUnique(CPPPATH=[ '$QTDIR/include/']) self.AppendUnique(CPPPATH=[ '$QTDIR/include/'+module for module in modules]) if crosscompiling : self["QT4_MOCCPPPATH"] = [ path.replace('$QTDIR', transformedQtdir) for path in self['CPPPATH'] ] else : self["QT4_MOCCPPPATH"] = self["CPPPATH"] self.AppendUnique(LIBPATH=[os.path.join('$QTDIR','lib')]) return if sys.platform=="darwin" : # TODO: Test debug version on Mac self.AppendUnique(LIBPATH=[os.path.join('$QTDIR','lib')]) self.AppendUnique(LINKFLAGS="-F$QTDIR/lib") self.AppendUnique(LINKFLAGS="-L$QTDIR/lib") #TODO clean! if debug : debugSuffix = 'd' for module in modules :
fafa34655cb3a8031269e2f1320871076deb943f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11305/fafa34655cb3a8031269e2f1320871076deb943f/qt4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4237, 67, 6400, 12, 2890, 16, 4381, 16, 1198, 33, 8381, 16, 6828, 2919, 4973, 33, 8381, 13, 294, 1930, 2589, 225, 923, 7782, 273, 306, 296, 23310, 4670, 2187, 296, 23310, 18070, 2187, 296, 23310, 3678, 11261, 2187, 296, 23310, 23, 6289, 2187, 296, 23310, 2610, 17175, 2187, 296, 23310, 3651, 2187, 296, 23310, 2290, 407, 2187, 296, 23310, 5101, 2187, 468, 1021, 1024, 4381, 1240, 486, 2118, 18432, 4671, 1427, 16, 9582, 468, 6944, 2898, 2583, 3312, 1440, 603, 1661, 13318, 17422, 296, 23310, 3906, 2187, 296, 23310, 55, 20105, 2187, 296, 23310, 4709, 2187, 296, 23310, 4432, 2187, 296, 23310, 13943, 10348, 2187, 296, 23310, 15478, 264, 2187, 296, 23310, 15478, 264, 7171, 2187, 296, 23310, 4079, 14102, 2187, 308, 293, 830, 403, 7782, 273, 306, 296, 23310, 15478, 264, 2187, 296, 23310, 15478, 264, 7171, 2187, 308, 760, 7782, 273, 306, 296, 23310, 13943, 10348, 2187, 308, 2057, 7782, 33, 8526, 364, 1605, 316, 4381, 30, 309, 1605, 486, 316, 923, 7782, 294, 2057, 7782, 18, 6923, 12, 2978, 13, 309, 2057, 7782, 294, 1002, 315, 7782, 738, 87, 854, 486, 7354, 24, 4381, 18, 2364, 7354, 24, 4381, 854, 30, 738, 87, 28385, 521, 261, 701, 12, 5387, 7782, 3631, 701, 12, 877, 7782, 3719, 225, 1605, 15109, 273, 288, 296, 23310, 3651, 11, 282, 294, 10228, 53, 56, 67, 10885, 67, 14484, 17337, 296, 23310, 55, 20105, 11, 1377, 294, 10228, 53, 56, 67, 26531, 67, 14484, 17337, 296, 23310, 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, 4237, 67, 6400, 12, 2890, 16, 4381, 16, 1198, 33, 8381, 16, 6828, 2919, 4973, 33, 8381, 13, 294, 1930, 2589, 225, 923, 7782, 273, 306, 296, 23310, 4670, 2187, 296, 23310, 18070, 2187, 296, 23310, 3678, 11261, 2187, 296, 23310, 23, 6289, 2187, 296, 23310, 2610, 17175, 2187, 296, 23310, 3651, 2187, 296, 23310, 2290, 407, 2187, 296, 23310, 5101, 2187, 468, 1021, 1024, 4381, 1240, 486, 2118, 18432, 4671, 1427, 16, 9582, 468, 6944, 2898, 2583, 3312, 1440, 603, 1661, 13318, 17422, 296, 23310, 3906, 2187, 296, 23310, 55, 20105, 2187, 296, 23310, 4709, 2187, 296, 23310, 4432, 2187, 296, 23310, 13943, 10348, 2187, 296, 23310, 15478, 264, 2187, 296, 23310, 15478, 264, 7171, 2187, 296, 2 ]
return [ _("Policies regarding systematic processing of bounce messages," " to help automate recognition and handling of defunct" " addresses."), ('bounce_processing', mm_cfg.Toggle, (_('No'), _('Yes')), 0, _('Try to figure out error messages automatically? ')), ('minimum_removal_date', mm_cfg.Number, 3, 0, _('Minimum number of days an address has been non-fatally ' 'bad before we take action')), ('minimum_post_count_before_bounce_action', mm_cfg.Number, 3, 0, _('Minimum number of posts to the list since members first ' 'bounce before we consider removing them from the list')), ('max_posts_between_bounces', mm_cfg.Number, 3, 0, _("Maximum number of messages your list gets in an hour. " "(Yes, bounce detection finds this info useful)")), ('automatic_bounce_action', mm_cfg.Radio, (_("Do nothing"),
return [ _('''Policies regarding systematic processing of bounce messages, to help automate recognition and handling of defunct addresses.'''), ('bounce_processing', mm_cfg.Toggle, (_('No'), _('Yes')), 0, _('Try to figure out error messages automatically?')), ('minimum_removal_date', mm_cfg.Number, 3, 0, _('''Minimum number of days an address has been non-fatally bad before we take action''')), ('minimum_post_count_before_bounce_action', mm_cfg.Number, 3, 0, _('''Minimum number of posts to the list since members first bounce before we consider removing them from the list''')), ('max_posts_between_bounces', mm_cfg.Number, 3, 0, _('''Maximum number of messages your list gets in an hour. (Yes, bounce detection finds this info useful)''')), ('automatic_bounce_action', mm_cfg.Radio, (_("Do nothing"),
def GetConfigInfo(self):
7f16355cd6d7956dd6f7423c1138cae49b9e93d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7f16355cd6d7956dd6f7423c1138cae49b9e93d5/Bouncer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26666, 966, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26666, 966, 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 ]
r""" Lucas numbers (beginning with 1): $L(n) = L(n-1) + L(n-2)$ with $L(1) = 1$, $L(2) = 3$. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000204; a Lucas numbers (beginning at 1): L(n) = L(n-1) + L(n-2), L(2) = 3. sage: a(1) 1 sage: a(8) 47 sage: a(200) 627376215338105766356982006981782561278127 sage: a(-4) Traceback (most recent call last): ... ValueError: input n (=-4) must be a positive integer sage: a.list(12) [1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322] sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer AUTHOR: -- Jaap Spies (2007-01-18) """ def __init__(self):
def __init__(self): r""" Lucas numbers (beginning with 1): $L(n) = L(n-1) + L(n-2)$ with $L(1) = 1$, $L(2) = 3$. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000204; a Lucas numbers (beginning at 1): L(n) = L(n-1) + L(n-2), L(2) = 3. sage: a(1) 1 sage: a(8) 47 sage: a(200) 627376215338105766356982006981782561278127 sage: a(-4) Traceback (most recent call last): ... ValueError: input n (=-4) must be a positive integer sage: a.list(12) [1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322] sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer AUTHOR: -- Jaap Spies (2007-01-18) """
def _eval(self, n): return arith.moebius(n)
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 225, 419, 483, 18, 8683, 24008, 8384, 12, 82, 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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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, 8622, 12, 2890, 16, 290, 4672, 327, 225, 419, 483, 18, 8683, 24008, 8384, 12, 82, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert doId is None or doId == self.__preallocDoId doId=self.__preallocDoId
assert doId is None or doId == self.doId doId=self.doId
def generateOtpObject(self, parentId, zoneId, optionalFields=[], doId=None): assert self.notify.debugStateCall(self) # have we already allocated a doId? if self.__preallocDoId: assert doId is None or doId == self.__preallocDoId doId=self.__preallocDoId self.__preallocDoId = 0
3b3f694731d4273591114aa5979d2d77904b715b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/3b3f694731d4273591114aa5979d2d77904b715b/DistributedObjectAI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 51, 6834, 921, 12, 2890, 16, 11582, 16, 29939, 16, 3129, 2314, 22850, 6487, 741, 548, 33, 7036, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 468, 1240, 732, 1818, 11977, 279, 741, 548, 35, 309, 365, 16186, 1484, 9853, 3244, 548, 30, 1815, 741, 548, 353, 599, 578, 741, 548, 422, 365, 18, 2896, 548, 741, 548, 33, 2890, 18, 2896, 548, 365, 16186, 1484, 9853, 3244, 548, 273, 374, 2, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 51, 6834, 921, 12, 2890, 16, 11582, 16, 29939, 16, 3129, 2314, 22850, 6487, 741, 548, 33, 7036, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 468, 1240, 732, 1818, 11977, 279, 741, 548, 35, 309, 365, 16186, 1484, 9853, 3244, 548, 30, 1815, 741, 548, 353, 599, 578, 741, 548, 422, 365, 18, 2896, 548, 741, 548, 33, 2890, 18, 2896, 548, 365, 16186, 1484, 9853, 3244, 548, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
call('cp %(infile)s %(outfile_prefix)s', cmd_dict, is_logged=False) pmsg('Compressing file', cmd_dict['outfile_prefix'], cmd_dict['outfile']) zip(cmd_dict['outfile_prefix'])
if isinstance(input_file_handle, gzip.GzipFile): call('cp %(infile)s %(outfile)s', {'infile': input_file, 'outfile': output_file}, is_logged=False) else: call('gzip -c %(infile)s > %(outfile)s', {'infile': input_file, 'outfile': output_file}, is_logged=False) finally: input_file_handle.close() output_file_handle.close()
def copy_sequence(input_file, output_file): '''Copy sequence files from staging area''' cmd_dict = CMD_DICT.copy() cmd_dict['infile'] = input_file cmd_dict['outfile'] = output_file cmd_dict['outfile_prefix'] = output_file.rstrip('.gz') pmsg('Copying sequence files', input_file, cmd_dict['outfile_prefix']) try: SeqIO.convert(cmd_dict['infile'], 'fastq-illumina', cmd_dict['outfile_prefix'], 'fastq-sanger') except ValueError: call('cp %(infile)s %(outfile_prefix)s', cmd_dict, is_logged=False) pmsg('Compressing file', cmd_dict['outfile_prefix'], cmd_dict['outfile']) zip(cmd_dict['outfile_prefix'])
c359c65b2a6820bd70042c17821d4f0279f2b172 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14572/c359c65b2a6820bd70042c17821d4f0279f2b172/align_reads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6178, 12, 2630, 67, 768, 16, 876, 67, 768, 4672, 9163, 2951, 3102, 1390, 628, 22207, 5091, 26418, 1797, 67, 1576, 273, 18052, 67, 31456, 18, 3530, 1435, 1797, 67, 1576, 3292, 267, 768, 3546, 273, 810, 67, 768, 1797, 67, 1576, 3292, 26050, 3546, 273, 876, 67, 768, 1797, 67, 1576, 3292, 26050, 67, 3239, 3546, 273, 876, 67, 768, 18, 86, 6406, 2668, 18, 9764, 6134, 293, 3576, 2668, 2951, 310, 3102, 1390, 2187, 810, 67, 768, 16, 1797, 67, 1576, 3292, 26050, 67, 3239, 19486, 775, 30, 14367, 4294, 18, 6283, 12, 4172, 67, 1576, 3292, 267, 768, 17337, 296, 18668, 17, 737, 379, 15314, 2187, 1797, 67, 1576, 3292, 26050, 67, 3239, 17337, 296, 18668, 17, 87, 11455, 6134, 1335, 2068, 30, 225, 309, 1549, 12, 2630, 67, 768, 67, 4110, 16, 10331, 18, 27825, 812, 4672, 225, 745, 2668, 4057, 8975, 267, 768, 13, 87, 8975, 26050, 13, 87, 2187, 13666, 267, 768, 4278, 810, 67, 768, 16, 296, 26050, 4278, 876, 67, 768, 5779, 353, 67, 19385, 33, 8381, 13, 469, 30, 225, 745, 2668, 17380, 300, 71, 8975, 267, 768, 13, 87, 405, 8975, 26050, 13, 87, 2187, 13666, 267, 768, 4278, 810, 67, 768, 16, 296, 26050, 4278, 876, 67, 768, 5779, 353, 67, 19385, 33, 8381, 13, 3095, 30, 810, 67, 768, 67, 4110, 18, 4412, 1435, 876, 67, 768, 67, 4110, 18, 4412, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6178, 12, 2630, 67, 768, 16, 876, 67, 768, 4672, 9163, 2951, 3102, 1390, 628, 22207, 5091, 26418, 1797, 67, 1576, 273, 18052, 67, 31456, 18, 3530, 1435, 1797, 67, 1576, 3292, 267, 768, 3546, 273, 810, 67, 768, 1797, 67, 1576, 3292, 26050, 3546, 273, 876, 67, 768, 1797, 67, 1576, 3292, 26050, 67, 3239, 3546, 273, 876, 67, 768, 18, 86, 6406, 2668, 18, 9764, 6134, 293, 3576, 2668, 2951, 310, 3102, 1390, 2187, 810, 67, 768, 16, 1797, 67, 1576, 3292, 26050, 67, 3239, 19486, 775, 30, 14367, 4294, 18, 6283, 12, 4172, 67, 1576, 3292, 267, 768, 17337, 296, 18668, 17, 737, 379, 15314, 2187, 1797, 67, 1576, 3292, 26050, 67, 3239, 2 ]
def mouse_within_stickiness_limit(self, event): '''Returns True if the mouse hasn't exceeded the distance determined by the "stickiness limit". Returns False if the mouse has exceeded the limit.
def mouse_within_stickiness_limit(self, event, drag_stickiness_limit): '''Check if mouse has been dragged beyond <drag_stickiness_limit> while holding down the LMB. Returns True if the mouse has not exceeded <drag_stickiness_limit>. Returns False if the mouse has exceeded <drag_stickiness_limit>. <drag_stickiness_limit> is measured in Angstroms.
def mouse_within_stickiness_limit(self, event): '''Returns True if the mouse hasn't exceeded the distance determined by the "stickiness limit". Returns False if the mouse has exceeded the limit. ''' if self.drag_stickiness_limit_exceeded: return False LMB_drag_pt, junk = self.o.mousepoints(event, 0.01) self.drag_distance = vlen(LMB_drag_pt - self.LMB_press_pt) if self.drag_distance/self.o.scale < DRAG_STICKINESS_LIMIT: return True else: self.drag_stickiness_limit_exceeded = True return False
07fcee8afa6d8aa107e744aeb4ac2e422cc110df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/07fcee8afa6d8aa107e744aeb4ac2e422cc110df/depositMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 67, 25850, 67, 334, 1200, 6336, 67, 3595, 12, 2890, 16, 871, 16, 8823, 67, 334, 1200, 6336, 67, 3595, 4672, 9163, 1564, 309, 7644, 711, 2118, 8823, 2423, 17940, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 34, 1323, 19918, 2588, 326, 511, 7969, 18, 2860, 1053, 309, 326, 7644, 711, 486, 12428, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 18652, 2860, 1083, 309, 326, 7644, 711, 12428, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 18652, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 34, 353, 22221, 316, 26956, 334, 520, 87, 18, 9163, 309, 365, 18, 15997, 67, 334, 1200, 6336, 67, 3595, 67, 338, 5816, 30, 327, 1083, 225, 511, 7969, 67, 15997, 67, 337, 16, 525, 1683, 273, 365, 18, 83, 18, 11697, 4139, 12, 2575, 16, 374, 18, 1611, 13, 365, 18, 15997, 67, 8969, 273, 331, 1897, 12, 48, 7969, 67, 15997, 67, 337, 300, 365, 18, 48, 7969, 67, 1028, 67, 337, 13, 309, 365, 18, 15997, 67, 8969, 19, 2890, 18, 83, 18, 5864, 411, 16801, 1781, 67, 882, 16656, 3740, 1260, 67, 8283, 30, 327, 1053, 469, 30, 365, 18, 15997, 67, 334, 1200, 6336, 67, 3595, 67, 338, 5816, 273, 1053, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 67, 25850, 67, 334, 1200, 6336, 67, 3595, 12, 2890, 16, 871, 16, 8823, 67, 334, 1200, 6336, 67, 3595, 4672, 9163, 1564, 309, 7644, 711, 2118, 8823, 2423, 17940, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 34, 1323, 19918, 2588, 326, 511, 7969, 18, 2860, 1053, 309, 326, 7644, 711, 486, 12428, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 18652, 2860, 1083, 309, 326, 7644, 711, 12428, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 18652, 411, 15997, 67, 334, 1200, 6336, 67, 3595, 34, 353, 22221, 316, 26956, 334, 520, 87, 18, 9163, 309, 365, 18, 15997, 67, 334, 1200, 6336, 67, 3595, 67, 338, 5816, 30, 327, 1083, 225, 511, 7969, 67, 2 ]
def PrintResults(mlist, operation, doc, results):
def PrintResults(mlist, operation, doc, results, user=None): if user: url = '%s/%s' % (mlist.GetScriptURL('options'), Utils.ObscureEmail(user)) results = results + '<p>Continue to ' + \ Link(url, 'edit your personal options').Format() + \ '.'
def PrintResults(mlist, operation, doc, results): replacements = mlist.GetStandardReplacements() replacements['<mm-results>'] = results replacements['<mm-operation>'] = operation output = mlist.ParseTags('handle_opts.html', replacements) doc.AddItem(output) print doc.Format(bgcolor="#ffffff") # hrm... sys.exit(0)
7a8a0554b2a09886fbca63e3de1f1da8ae97ceea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7a8a0554b2a09886fbca63e3de1f1da8ae97ceea/handle_opts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 3447, 12, 781, 376, 16, 1674, 16, 997, 16, 1686, 16, 729, 33, 7036, 4672, 309, 729, 30, 880, 273, 1995, 87, 5258, 87, 11, 738, 261, 781, 376, 18, 967, 3651, 1785, 2668, 2116, 19899, 6091, 18, 10516, 1017, 594, 4134, 12, 1355, 3719, 1686, 273, 1686, 397, 2368, 84, 34, 12378, 358, 296, 397, 521, 4048, 12, 718, 16, 296, 4619, 3433, 17816, 702, 16063, 1630, 1435, 397, 521, 2611, 11413, 273, 312, 1098, 18, 967, 8336, 28440, 1435, 11413, 3292, 32, 7020, 17, 4717, 1870, 65, 273, 1686, 11413, 3292, 32, 7020, 17, 7624, 1870, 65, 273, 1674, 876, 273, 312, 1098, 18, 3201, 3453, 2668, 4110, 67, 4952, 18, 2620, 2187, 11413, 13, 997, 18, 986, 1180, 12, 2844, 13, 1172, 997, 18, 1630, 12, 12370, 3266, 1546, 7, 18217, 7923, 468, 366, 8864, 2777, 2589, 18, 8593, 12, 20, 13, 565, 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, 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, 18, 10516, 1017, 594, 4134, 12, 1355, 3719, 1686, 273, 1686, 397, 2368, 84, 34, 12378, 358, 296, 397, 521, 4048, 12, 718, 16, 296, 4619, 3433, 17816, 702, 16063, 1630, 1435, 397, 521, 2611, 11413, 273, 312, 1098, 18, 967, 8336, 28440, 1435, 11413, 3292, 32, 7020, 17, 4717, 1870, 65, 273, 1686, 11413, 3292, 32, 7020, 17, 7624, 1870, 65, 273, 1674, 876, 273, 312, 1098, 18, 3201, 3453, 2668, 4110, 67, 4952, 18, 2620, 2187, 11413, 13, 2 ]
return [offsetvector for offsetvector in dbtables.table.get_table(dbtables.get_xml(connection), lsctables.TimeSlideTable.tableName).as_dict().values() if any(offsetvector.values())]
xmldoc = dbtables.get_xml(connection) offset_vectors = [offsetvector for offsetvector in dbtables.table.get_table(xmldoc, lsctables.TimeSlideTable.tableName).as_dict().values() if any(offsetvector.values())] xmldoc.unlink() return offset_vectors
def get_background_offset_vectors(connection): """ Return a list of the non-zero offset vectors extracted from the database at the given connection. Each offset vector is returned as a dictionary mapping instrument name to offset. """ return [offsetvector for offsetvector in dbtables.table.get_table(dbtables.get_xml(connection), lsctables.TimeSlideTable.tableName).as_dict().values() if any(offsetvector.values())]
e5ea340b13948c3fd0106220caa15d7241ecbbcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e5ea340b13948c3fd0106220caa15d7241ecbbcc/db_thinca_rings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9342, 67, 3348, 67, 18535, 12, 4071, 4672, 3536, 2000, 279, 666, 434, 326, 1661, 17, 7124, 1384, 10046, 9438, 628, 326, 2063, 622, 326, 864, 1459, 18, 225, 8315, 1384, 3806, 353, 2106, 487, 279, 3880, 2874, 10353, 508, 358, 1384, 18, 3536, 2025, 2434, 273, 1319, 9373, 18, 588, 67, 2902, 12, 4071, 13, 1384, 67, 18535, 273, 306, 3348, 7737, 364, 1384, 7737, 316, 1319, 9373, 18, 2121, 18, 588, 67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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9342, 67, 3348, 67, 18535, 12, 4071, 4672, 3536, 2000, 279, 666, 434, 326, 1661, 17, 7124, 1384, 10046, 9438, 628, 326, 2063, 622, 326, 864, 1459, 18, 225, 8315, 1384, 3806, 353, 2106, 487, 279, 3880, 2874, 10353, 508, 358, 1384, 18, 3536, 2025, 2434, 273, 1319, 9373, 18, 588, 67, 2902, 12, 4071, 13, 1384, 67, 18535, 273, 306, 3348, 7737, 364, 1384, 7737, 316, 1319, 9373, 18, 2121, 18, 588, 67, 2121, 12, 2902, 2434, 16, 7180, 299, 1538, 18, 950, 21068, 1388, 18, 18033, 2934, 345, 67, 1576, 7675, 2372, 1435, 309, 1281, 12, 3348, 7737, 18, 2372, 10756, 65, 2025, 2434, 18, 318, 1232, 1435, 327, 1384, 67, 18535, 282, 2, -100 ]
return '0x%02x' % typ
return '0x%02x' % tag_type
def tag_type_name(self): """Tag data type name, if known, and formatted number otherwise.""" tag_type = type_of_tag(self._tag) if tag_type in _TYPE_TO_NAME_MAP: return _TYPE_TO_NAME_MAP[tag_type] return '0x%02x' % typ
4cc9f772087fac8a50e04abee68e2a07f6f29a80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6985/4cc9f772087fac8a50e04abee68e2a07f6f29a80/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 723, 67, 529, 12, 2890, 4672, 3536, 1805, 501, 618, 508, 16, 309, 4846, 16, 471, 4955, 1300, 3541, 12123, 1047, 67, 723, 273, 618, 67, 792, 67, 2692, 12, 2890, 6315, 2692, 13, 309, 1047, 67, 723, 316, 389, 2399, 67, 4296, 67, 1985, 67, 8352, 30, 327, 389, 2399, 67, 4296, 67, 1985, 67, 8352, 63, 2692, 67, 723, 65, 327, 296, 20, 92, 9, 3103, 92, 11, 738, 3815, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 723, 67, 529, 12, 2890, 4672, 3536, 1805, 501, 618, 508, 16, 309, 4846, 16, 471, 4955, 1300, 3541, 12123, 1047, 67, 723, 273, 618, 67, 792, 67, 2692, 12, 2890, 6315, 2692, 13, 309, 1047, 67, 723, 316, 389, 2399, 67, 4296, 67, 1985, 67, 8352, 30, 327, 389, 2399, 67, 4296, 67, 1985, 67, 8352, 63, 2692, 67, 723, 65, 327, 296, 20, 92, 9, 3103, 92, 11, 738, 3815, 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 ]
AbstractFunction.__init__(self,1)
AbstractFunction.__init__(self,find_parameter(func,'dimensions',1))
def __init__(self,func): AbstractFunction.__init__(self,1) transientFunctions[self]=func
efb839c5379e40113984c5668952a679b1239349 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/553/efb839c5379e40113984c5668952a679b1239349/nef.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 644, 4672, 4115, 2083, 16186, 2738, 972, 12, 2890, 16, 4720, 67, 6775, 12, 644, 11189, 14797, 2187, 21, 3719, 12315, 7503, 63, 2890, 65, 33, 644, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 644, 4672, 4115, 2083, 16186, 2738, 972, 12, 2890, 16, 4720, 67, 6775, 12, 644, 11189, 14797, 2187, 21, 3719, 12315, 7503, 63, 2890, 65, 33, 644, 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 ]
try: taskid = jobId[0].split('.')[0] chainid=jobId[0].split('.')[1] resub=jobId[0].split('.')[2] except: pass outfile=executeCommand("boss archive -taskid %s -jobid %s"%(taskid,chainid) + " -c " + bossCfgDir)
outfile=executeCommand("boss archive -taskid %s -jobid %s"%(jobId.split('.')[0],jobId.split('.')[1]) + " -c " + bossCfgDir)
def archive(jobId,bossCfgDir): """ BOSS4archive Boss 4 command to manually archive jobs in the BOSS db (i.e. move jobe entries to ENDED_ tables ) """ #logging.debug("Boss4 getoutput start %s "%jobId) #print "Boss4 getoutput start %s "%jobId try: taskid = jobId[0].split('.')[0] chainid=jobId[0].split('.')[1] resub=jobId[0].split('.')[2] except: pass outfile=executeCommand("boss archive -taskid %s -jobid %s"%(taskid,chainid) + " -c " + bossCfgDir) outp=outfile return outp
ef16c5674de64cd50350f3d7ac24e6741778ec12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/ef16c5674de64cd50350f3d7ac24e6741778ec12/BOSSCommands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 12, 4688, 548, 16, 70, 8464, 8198, 1621, 4672, 3536, 9784, 1260, 24, 10686, 225, 605, 8464, 1059, 1296, 358, 10036, 5052, 6550, 316, 326, 9784, 1260, 1319, 261, 77, 18, 73, 18, 3635, 1719, 73, 3222, 358, 6693, 7660, 67, 4606, 262, 3536, 468, 11167, 18, 4148, 2932, 38, 8464, 24, 336, 2844, 787, 738, 87, 2213, 4688, 548, 13, 468, 1188, 315, 38, 8464, 24, 336, 2844, 787, 738, 87, 2213, 4688, 548, 775, 30, 29035, 273, 13845, 63, 20, 8009, 4939, 2668, 1093, 25146, 20, 65, 2687, 350, 33, 4688, 548, 63, 20, 8009, 4939, 2668, 1093, 25146, 21, 65, 400, 373, 33, 4688, 548, 63, 20, 8009, 4939, 2668, 1093, 25146, 22, 65, 1335, 30, 1342, 225, 8756, 33, 8837, 2189, 2932, 70, 8464, 5052, 300, 4146, 350, 738, 87, 300, 4688, 350, 738, 87, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 12, 4688, 548, 16, 70, 8464, 8198, 1621, 4672, 3536, 9784, 1260, 24, 10686, 225, 605, 8464, 1059, 1296, 358, 10036, 5052, 6550, 316, 326, 9784, 1260, 1319, 261, 77, 18, 73, 18, 3635, 1719, 73, 3222, 358, 6693, 7660, 67, 4606, 262, 3536, 468, 11167, 18, 4148, 2932, 38, 8464, 24, 336, 2844, 787, 738, 87, 2213, 4688, 548, 13, 468, 1188, 315, 38, 8464, 24, 336, 2844, 787, 738, 87, 2213, 4688, 548, 775, 30, 29035, 273, 13845, 63, 20, 8009, 4939, 2668, 1093, 25146, 20, 65, 2687, 350, 33, 4688, 548, 63, 20, 8009, 4939, 2668, 1093, 25146, 21, 65, 400, 373, 33, 4688, 548, 63, 20, 8009, 4939, 2668, 1093, 25146, 22, 65, 2 ]
However, if two points with the same x,y coordinates are given and different z coordinates an exception will be raised
However, if two points are given with the same x,y coordinates but different z coordinates, an exception will be raised:
def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (all of the same length) -- this is treated the same as a matrix. texture -- (default: "automatic"), solid light blue OPTIONAL KEYWORDS: interpolation_type - 'linear', 'nn' (nearest neighbor), 'spline' 'linear' will perform linear interpolation The option 'nn' will interpolate by averaging the value of the nearest neighbors, this produces an interpolating function that is smoother than a linear interpolation, it has one derivative everywhere except at the sample points. The option 'spline' interpolates using a bivariate B-spline. When v is a matrix the default is to use linear interpolation, when v is a list of points the default is nearest neighbor. degree - an integer between 1 and 5, controls the degree of spline used for spline interpolation. For data that is highly oscillatory use higher values point_list - If point_list=True is passed, then if the array is a list of lists of length three, it will be treated as an array of points rather than a 3xn array. num_points - Number of points to sample interpolating function in each direction. By default for an nxn array this is n. **kwds -- all other arguments are passed to the surface function OUTPUT: a 3d plot EXAMPLES: We plot a matrix that illustrates summation modulo $n$. sage: n = 5; list_plot3d(matrix(RDF,n,[(i+j)%n for i in [1..n] for j in [1..n]])) We plot a matrix of values of sin. sage: pi = float(pi) sage: m = matrix(RDF, 6, [sin(i^2 + j^2) for i in [0,pi/5,..,pi] for j in [0,pi/5,..,pi]]) sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3]) Though it doesn't change the shap of the graph, increasing num_points can increase the clarity of the graph sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3],num_points=40) We can change the interpolation type sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3]) We can make this look better by increasing the number of samples sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3],num_points=40) Lets try a spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline',frame_aspect_ratio=[1,1,1/3]) That spline doesn't capture the oscillation very well, lets try a higher degree spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline', degree=5, frame_aspect_ratio=[1,1,1/3]) We plot a list of lists: sage: show(list_plot3d([[1, 1, 1, 1], [1, 2, 1, 2], [1, 1, 3, 1], [1, 2, 1, 4]])) We plot a list of points: As a first example we can extract the (x,y,z) coordinates from the above example and make a list plot out of it. By default we do linear interpolation. sage: l=[] sage: for i in range(6): ... for j in range(6): ... l.append((float(i*pi/5),float(j*pi/5),m[i,j])) sage: list_plot3d(l,texture='yellow') Note that the points do not have to be regularly sampled. For example sage: l=[] sage: for i in range(-5,5): ... for j in range(-5,5): ... l.append((normalvariate(0,1),normalvariate(0,1),normalvariate(0,1))) sage: list_plot3d(l,interpolation_type='nn',texture='yellow',num_points=100) TESTS: We plot 0, 1, and 2 points: sage: list_plot3d([]) sage: list_plot3d([(2,3,4)]) sage: list_plot3d([(0,0,1), (2,3,4)]) However, if two points with the same x,y coordinates are given and different z coordinates an exception will be raised sage: pts =[(-4/5, -2/5, -2/5), (-4/5, -2/5, 2/5), (-4/5, 2/5, -2/5), (-4/5, 2/5, 2/5), (-2/5, -4/5, -2/5), (-2/5, -4/5, 2/5), (-2/5, -2/5, -4/5), (-2/5, -2/5, 4/5), (-2/5, 2/5, -4/5), (-2/5, 2/5, 4/5), (-2/5, 4/5, -2/5), (-2/5, 4/5, 2/5), (2/5, -4/5, -2/5), (2/5, -4/5, 2/5), (2/5, -2/5, -4/5), (2/5, -2/5, 4/5), (2/5, 2/5, -4/5), (2/5, 2/5, 4/5), (2/5, 4/5, -2/5), (2/5, 4/5, 2/5), (4/5, -2/5, -2/5), (4/5, -2/5, 2/5), (4/5, 2/5, -2/5), (4/5, 2/5, 2/5)] sage: show(list_plot3d(pts, interpolation_type='nn')) Traceback (most recent call last): ... ValueError: Two points with same x,y coordinates and different z coordinates were given. Interpolation cannot handle this. Additionally we need at least 3 points to do the interpolation sage: pts=[(0,0,0)] sage: show(list_plot3d(pts,interpolation_type='nn')) Traceback (most recent call last): ... ValueError: We need at least 3 points to perform the interpolation """ import numpy if texture == "automatic": texture = "lightblue" if is_Matrix(v): if interpolation_type=='default' or interpolation_type=='linear' and not kwds.has_key('num_points'): return list_plot3d_matrix(v, texture=texture, **kwds) else: l=[] for i in xrange(v.nrows()): for j in xrange(v.ncols()): l.append((i,j,v[i,j])) return list_plot3d_tuples(l,interpolation_type,texture,**kwds) if type(v)==numpy.ndarray: return list_plot3d(matrix(v),interpolation_type,texture,**kwds) if isinstance(v, list): if len(v) == 0: # return empty 3d graphic from base import Graphics3d return Graphics3d() elif len(v) == 1: # return a point from shapes2 import point3d return point3d(v[0], **kwds) elif len(v) == 2: # return a line from shapes2 import line3d return line3d(v, **kwds) elif isinstance(v[0],tuple) or point_list==True and len(v[0]) == 3: return list_plot3d_tuples(v,interpolation_type,texture=texture, **kwds) else: return list_plot3d_array_of_arrays(v, interpolation_type,texture, **kwds) raise TypeError, "v must be a matrix or list"
d0f0fc2115cde9e1670bebb42ac1add0bbca76c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d0f0fc2115cde9e1670bebb42ac1add0bbca76c1/list_plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4032, 23, 72, 12, 90, 16, 12851, 67, 723, 2218, 1886, 2187, 11428, 1546, 5854, 4941, 3113, 1634, 67, 1098, 33, 7036, 16, 636, 25577, 4672, 3536, 432, 890, 17, 31236, 3207, 434, 279, 9034, 2553, 635, 326, 666, 271, 90, 8, 434, 3143, 316, 890, 17, 31236, 3476, 18, 225, 12943, 30, 331, 1493, 5943, 716, 11164, 279, 444, 434, 3143, 316, 890, 3476, 16, 364, 3454, 30, 380, 279, 3148, 380, 279, 666, 434, 890, 17, 17705, 380, 279, 666, 434, 6035, 261, 454, 434, 326, 1967, 769, 13, 1493, 333, 353, 13974, 326, 1967, 487, 279, 3148, 18, 11428, 1493, 261, 1886, 30, 315, 5854, 4941, 6, 3631, 18035, 9052, 8024, 225, 14930, 5311, 23287, 30, 225, 12851, 67, 723, 300, 296, 12379, 2187, 296, 9074, 11, 261, 25785, 10553, 3631, 296, 13106, 558, 11, 225, 296, 12379, 11, 225, 903, 3073, 9103, 12851, 225, 1021, 1456, 296, 9074, 11, 903, 13156, 635, 23713, 5755, 326, 460, 434, 326, 11431, 11003, 16, 333, 15505, 392, 7326, 1776, 445, 716, 353, 3029, 1632, 1614, 2353, 279, 9103, 12851, 16, 518, 711, 1245, 16417, 3614, 6051, 1335, 622, 326, 3296, 3143, 18, 225, 1021, 1456, 296, 13106, 558, 11, 7326, 815, 1450, 279, 324, 27693, 605, 17, 13106, 558, 18, 225, 5203, 331, 353, 279, 3148, 326, 805, 353, 358, 999, 9103, 12851, 16, 1347, 331, 353, 279, 666, 434, 3143, 326, 805, 353, 11431, 10553, 18, 225, 10782, 300, 392, 3571, 3086, 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, 666, 67, 4032, 23, 72, 12, 90, 16, 12851, 67, 723, 2218, 1886, 2187, 11428, 1546, 5854, 4941, 3113, 1634, 67, 1098, 33, 7036, 16, 636, 25577, 4672, 3536, 432, 890, 17, 31236, 3207, 434, 279, 9034, 2553, 635, 326, 666, 271, 90, 8, 434, 3143, 316, 890, 17, 31236, 3476, 18, 225, 12943, 30, 331, 1493, 5943, 716, 11164, 279, 444, 434, 3143, 316, 890, 3476, 16, 364, 3454, 30, 380, 279, 3148, 380, 279, 666, 434, 890, 17, 17705, 380, 279, 666, 434, 6035, 261, 454, 434, 326, 1967, 769, 13, 1493, 333, 353, 13974, 326, 1967, 487, 279, 3148, 18, 11428, 1493, 261, 1886, 30, 315, 5854, 4941, 6, 3631, 18035, 9052, 8024, 225, 14930, 2 ]
if ce.find(ceb) > 0:
if ce.find(ceb) >= 0:
def lcgInfo(self, tags, seList=None, blacklist=None, whitelist=None, full=False): """ execute a resources discovery through bdii returns a list of resulting sites """
39a8bce7bded0962104656bf92390c6b74fdf5d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/39a8bce7bded0962104656bf92390c6b74fdf5d0/SchedulerGLiteAPI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9109, 75, 966, 12, 2890, 16, 2342, 16, 695, 682, 33, 7036, 16, 11709, 33, 7036, 16, 10734, 33, 7036, 16, 1983, 33, 8381, 4672, 3536, 1836, 279, 2703, 11030, 3059, 13837, 2835, 1135, 279, 666, 434, 8156, 9180, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 33, 8381, 4672, 3536, 1836, 279, 2703, 11030, 3059, 13837, 2835, 1135, 279, 666, 434, 8156, 9180, 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 ]
item_id=self.read(cr,uid,ids)[0]['item_id']
item_id = self.read(cr,uid,ids)[0]['item_id']
def button_skip(self,cr,uid,ids,context=None): item_obj = self.pool.get('ir.actions.todo') item_id=self.read(cr,uid,ids)[0]['item_id'] if item_id: item = item_obj.browse(cr, uid, item_id, context=context) item_obj.write(cr, uid, item.id, { 'state': 'skip', }, context=context) return{ 'view_type': 'form', "view_mode": 'form', 'res_model': 'ir.actions.configuration.wizard', 'type': 'ir.actions.act_window', 'target':'new', } return self.button_next(cr, uid, ids, context)
5a75ea9c7c984bc42528ae56976c533a6d679191 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/5a75ea9c7c984bc42528ae56976c533a6d679191/ir_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 7457, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 2472, 33, 7036, 4672, 761, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4905, 18, 9012, 6134, 761, 67, 350, 273, 365, 18, 896, 12, 3353, 16, 1911, 16, 2232, 25146, 20, 23962, 1726, 67, 350, 3546, 309, 761, 67, 350, 30, 761, 273, 761, 67, 2603, 18, 25731, 12, 3353, 16, 4555, 16, 761, 67, 350, 16, 819, 33, 2472, 13, 761, 67, 2603, 18, 2626, 12, 3353, 16, 4555, 16, 761, 18, 350, 16, 288, 296, 2019, 4278, 296, 7457, 2187, 19879, 819, 33, 2472, 13, 327, 95, 296, 1945, 67, 723, 4278, 296, 687, 2187, 315, 1945, 67, 3188, 6877, 296, 687, 2187, 296, 455, 67, 2284, 4278, 296, 481, 18, 4905, 18, 7025, 18, 31837, 2187, 296, 723, 4278, 296, 481, 18, 4905, 18, 621, 67, 5668, 2187, 296, 3299, 11, 2497, 2704, 2187, 289, 327, 365, 18, 5391, 67, 4285, 12, 3353, 16, 4555, 16, 3258, 16, 819, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3568, 67, 7457, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 2472, 33, 7036, 4672, 761, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4905, 18, 9012, 6134, 761, 67, 350, 273, 365, 18, 896, 12, 3353, 16, 1911, 16, 2232, 25146, 20, 23962, 1726, 67, 350, 3546, 309, 761, 67, 350, 30, 761, 273, 761, 67, 2603, 18, 25731, 12, 3353, 16, 4555, 16, 761, 67, 350, 16, 819, 33, 2472, 13, 761, 67, 2603, 18, 2626, 12, 3353, 16, 4555, 16, 761, 18, 350, 16, 288, 296, 2019, 4278, 296, 7457, 2187, 19879, 819, 33, 2472, 13, 327, 95, 296, 1945, 67, 723, 4278, 296, 687, 2187, 315, 1945, 67, 3188, 6877, 2 ]
if not xmin:
if xmin is None:
def __init__(self, v, xmin=None, xmax=None, ymin=None, ymax=None, **kwds): w = [] for x in v: if not isinstance(x, plot.Graphics): x = plot.plot(x, xmin=xmin, xmax=xmax) w.append(x) if len(w) == 0: w = [plot.Graphics()] self.__frames = w G = w[0] if not xmin: xmin = G.xmin() if not xmax: xmax = G.xmax() if not ymin: ymin = G.ymin() if not ymax: ymax = G.ymax() self.__xmin = xmin self.__xmax = xmax self.__ymin = ymin self.__ymax = ymax self.__kwds = kwds
9c81fcd897d50f9a2961371139896f44cf249289 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/9c81fcd897d50f9a2961371139896f44cf249289/animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 331, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 2826, 25577, 4672, 341, 273, 5378, 364, 619, 316, 331, 30, 309, 486, 1549, 12, 92, 16, 3207, 18, 17558, 4672, 619, 273, 3207, 18, 4032, 12, 92, 16, 13777, 33, 92, 1154, 16, 14016, 33, 92, 1896, 13, 341, 18, 6923, 12, 92, 13, 309, 562, 12, 91, 13, 422, 374, 30, 341, 273, 306, 4032, 18, 17558, 1435, 65, 365, 16186, 10278, 273, 341, 611, 273, 341, 63, 20, 65, 309, 13777, 353, 599, 30, 13777, 273, 611, 18, 92, 1154, 1435, 309, 486, 14016, 30, 14016, 273, 611, 18, 92, 1896, 1435, 309, 486, 15763, 30, 15763, 273, 611, 18, 93, 1154, 1435, 309, 486, 15275, 30, 15275, 273, 611, 18, 93, 1896, 1435, 365, 16186, 92, 1154, 273, 13777, 365, 16186, 92, 1896, 273, 14016, 365, 16186, 93, 1154, 273, 15763, 365, 16186, 93, 1896, 273, 15275, 365, 16186, 25577, 273, 17149, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 331, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 2826, 25577, 4672, 341, 273, 5378, 364, 619, 316, 331, 30, 309, 486, 1549, 12, 92, 16, 3207, 18, 17558, 4672, 619, 273, 3207, 18, 4032, 12, 92, 16, 13777, 33, 92, 1154, 16, 14016, 33, 92, 1896, 13, 341, 18, 6923, 12, 92, 13, 309, 562, 12, 91, 13, 422, 374, 30, 341, 273, 306, 4032, 18, 17558, 1435, 65, 365, 16186, 10278, 273, 341, 611, 273, 341, 63, 20, 65, 309, 13777, 353, 599, 30, 13777, 273, 611, 18, 92, 1154, 1435, 309, 486, 14016, 30, 14016, 273, 611, 18, 92, 1896, 2 ]
print >>stream, warning.as_warning()
print >>stream, warning
def _print_errors(self, stream=None): """ Print any errors that were encountered while constructing this C{ObjDoc} to C{stream}. This method should be called at the end of the constructor of every class that is derived from C{ObjDoc} (I{after} the base C{ObjDoc} constructor has been called). @rtype: C{None} """ parse_warnings = self._parse_warnings parse_errors = self._parse_errors field_warnings = self._field_warnings misc_warnings = self._misc_warnings
7140f1248773f589eaa5826bd2b3d64a09ab01f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7140f1248773f589eaa5826bd2b3d64a09ab01f2/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 4324, 12, 2890, 16, 1407, 33, 7036, 4672, 3536, 3038, 1281, 1334, 716, 4591, 9919, 1323, 27389, 333, 385, 95, 2675, 1759, 97, 358, 385, 95, 3256, 5496, 225, 1220, 707, 1410, 506, 2566, 622, 326, 679, 434, 326, 3885, 434, 3614, 667, 716, 353, 10379, 628, 385, 95, 2675, 1759, 97, 261, 45, 95, 5205, 97, 326, 1026, 385, 95, 2675, 1759, 97, 3885, 711, 2118, 2566, 2934, 225, 632, 86, 723, 30, 385, 95, 7036, 97, 3536, 1109, 67, 12103, 273, 365, 6315, 2670, 67, 12103, 1109, 67, 4324, 273, 365, 6315, 2670, 67, 4324, 652, 67, 12103, 273, 365, 6315, 1518, 67, 12103, 20448, 67, 12103, 273, 365, 6315, 23667, 67, 12103, 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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, 622, 326, 679, 434, 326, 3885, 434, 3614, 667, 716, 353, 10379, 628, 385, 95, 2675, 1759, 97, 261, 45, 95, 5205, 97, 326, 1026, 385, 95, 2675, 1759, 97, 3885, 711, 2118, 2566, 2934, 225, 632, 86, 723, 30, 385, 95, 7036, 97, 3536, 1109, 67, 12103, 273, 365, 6315, 2670, 67, 12103, 1109, 67, 4324, 273, 365, 6315, 2670, 67, 4324, 652, 67, 12103, 273, 365, 6315, 1518, 67, 12103, 20448, 67, 12103, 273, 365, 6315, 23667, 67, 12103, 2 ]
def extract_tls_parameters(remark_3_records):
def extract_tls_parameters(remark_3_records, file_name = ""):
def extract_tls_parameters(remark_3_records):
c7414c7bd0f10baaa7d702b1454c3d4335e68afe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/c7414c7bd0f10baaa7d702b1454c3d4335e68afe/remark_3_interpretation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 17116, 67, 3977, 12, 2764, 1313, 67, 23, 67, 7094, 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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17116, 67, 3977, 12, 2764, 1313, 67, 23, 67, 7094, 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 ]
if not self.reparse and delta > 0:
if not self.reparse:
def incrLoc(self, delta): if not self.memmap.isValid(self.loc + delta): self.error("trying to set loc to an invalid address (%06o)" % (self.loc + delta)) if not self.reparse and delta > 0: self.log(5, "incrementing loc from %06o to %06o (delta=%04o)" % (self.loc, self.loc + delta, delta)) self.loc += delta
e0a54c78f59317185fa7d620689dfe6fe83efd28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/e0a54c78f59317185fa7d620689dfe6fe83efd28/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17633, 1333, 12, 2890, 16, 3622, 4672, 309, 486, 365, 18, 3917, 1458, 18, 26810, 12, 2890, 18, 1829, 397, 3622, 4672, 365, 18, 1636, 2932, 698, 310, 358, 444, 1515, 358, 392, 2057, 1758, 6142, 7677, 83, 2225, 738, 261, 2890, 18, 1829, 397, 3622, 3719, 309, 486, 365, 18, 266, 2670, 30, 365, 18, 1330, 12, 25, 16, 315, 15016, 310, 1515, 628, 738, 7677, 83, 358, 738, 7677, 83, 261, 9878, 5095, 3028, 83, 2225, 738, 261, 2890, 18, 1829, 16, 365, 18, 1829, 397, 3622, 16, 3622, 3719, 365, 18, 1829, 1011, 3622, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17633, 1333, 12, 2890, 16, 3622, 4672, 309, 486, 365, 18, 3917, 1458, 18, 26810, 12, 2890, 18, 1829, 397, 3622, 4672, 365, 18, 1636, 2932, 698, 310, 358, 444, 1515, 358, 392, 2057, 1758, 6142, 7677, 83, 2225, 738, 261, 2890, 18, 1829, 397, 3622, 3719, 309, 486, 365, 18, 266, 2670, 30, 365, 18, 1330, 12, 25, 16, 315, 15016, 310, 1515, 628, 738, 7677, 83, 358, 738, 7677, 83, 261, 9878, 5095, 3028, 83, 2225, 738, 261, 2890, 18, 1829, 16, 365, 18, 1829, 397, 3622, 16, 3622, 3719, 365, 18, 1829, 1011, 3622, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
edition["toc"] = toc
edition['toc'] = toc
def find_toc(r, edition): # table of contents toc = [] for f in r.get_fields('505'): try: toc_line = [] for subfield, value in f.subfield_sequence: if subfield == 'a': toc.extend([x.strip() for x in value.split('--')]) continue if subfield == 't': if len(toc_line): toc.append(' -- '.join(toc_line)) toc_line = [value.strip(" /")] continue toc_line.append(value.strip(" -")) if toc: toc.append(' -- '.join(toc_line)) except AssertionError: print f.subfield_sequence raise if toc: edition["toc"] = toc
da804bedd5a86ca4953a76539728719f215e8cf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/da804bedd5a86ca4953a76539728719f215e8cf0/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1391, 12, 86, 16, 28432, 4672, 468, 1014, 434, 2939, 17919, 273, 5378, 364, 284, 316, 436, 18, 588, 67, 2821, 2668, 3361, 25, 11, 4672, 775, 30, 17919, 67, 1369, 273, 5378, 364, 29616, 16, 460, 316, 284, 18, 1717, 1518, 67, 6178, 30, 309, 29616, 422, 296, 69, 4278, 17919, 18, 14313, 3816, 92, 18, 6406, 1435, 364, 619, 316, 460, 18, 4939, 2668, 413, 6134, 5717, 1324, 309, 29616, 422, 296, 88, 4278, 309, 562, 12, 1391, 67, 1369, 4672, 17919, 18, 6923, 2668, 1493, 2418, 5701, 12, 1391, 67, 1369, 3719, 17919, 67, 1369, 273, 306, 1132, 18, 6406, 2932, 342, 7923, 65, 1324, 17919, 67, 1369, 18, 6923, 12, 1132, 18, 6406, 2932, 300, 6, 3719, 309, 17919, 30, 17919, 18, 6923, 2668, 1493, 2418, 5701, 12, 1391, 67, 1369, 3719, 1335, 12068, 30, 1172, 284, 18, 1717, 1518, 67, 6178, 1002, 309, 17919, 30, 28432, 3292, 1391, 3546, 273, 17919, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1391, 12, 86, 16, 28432, 4672, 468, 1014, 434, 2939, 17919, 273, 5378, 364, 284, 316, 436, 18, 588, 67, 2821, 2668, 3361, 25, 11, 4672, 775, 30, 17919, 67, 1369, 273, 5378, 364, 29616, 16, 460, 316, 284, 18, 1717, 1518, 67, 6178, 30, 309, 29616, 422, 296, 69, 4278, 17919, 18, 14313, 3816, 92, 18, 6406, 1435, 364, 619, 316, 460, 18, 4939, 2668, 413, 6134, 5717, 1324, 309, 29616, 422, 296, 88, 4278, 309, 562, 12, 1391, 67, 1369, 4672, 17919, 18, 6923, 2668, 1493, 2418, 5701, 12, 1391, 67, 1369, 3719, 17919, 67, 1369, 273, 306, 1132, 18, 6406, 2932, 342, 7923, 65, 1324, 17919, 67, 1369, 18, 6923, 12, 1132, 18, 2 ]
new_list_price = get_real_price(list_price, product.id, pricelist)
new_list_price = get_real_price(list_price, product.id, qty, uom, pricelist)
def get_real_price(res_dict, product_id, pricelist): item_obj = self.pool.get('product.pricelist.item') price_type_obj = self.pool.get('product.price.type') product_obj = self.pool.get('product.product') template_obj = self.pool.get('product.template') field_name = 'list_price'
95124a4a3f5b4124e6d6fd7b365643e639e0c5f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/95124a4a3f5b4124e6d6fd7b365643e639e0c5f7/product_visible_discount.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7688, 67, 8694, 12, 455, 67, 1576, 16, 3017, 67, 350, 16, 846, 335, 5449, 4672, 761, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 683, 335, 5449, 18, 1726, 6134, 6205, 67, 723, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 8694, 18, 723, 6134, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 6134, 1542, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 3202, 6134, 652, 67, 529, 273, 296, 1098, 67, 8694, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7688, 67, 8694, 12, 455, 67, 1576, 16, 3017, 67, 350, 16, 846, 335, 5449, 4672, 761, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 683, 335, 5449, 18, 1726, 6134, 6205, 67, 723, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 8694, 18, 723, 6134, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 6134, 1542, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 3202, 6134, 652, 67, 529, 273, 296, 1098, 67, 8694, 11, 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 ]
self.list_checkers_messages( checker)
for msgid in sort_msgs(msgs.keys()): print self.get_message_help(msgid, False)
def print_full_documentation(self): """output a full documentation in ReST format""" for checker in sort_checkers(self._checkers.values()): if checker.name == 'master': prefix = 'Main ' if checker.options: for section, options in checker.options_by_section(): if section is None: title = 'General options' else: title = '%s options' % section.capitalize() print title print '~' * len(title) rest_format_section(sys.stdout, None, options) print else: prefix = '' title = '%s checker' % checker.name.capitalize() print title print '-' * len(title) if checker.__doc__: # __doc__ is None with -OO print linesep.join([l.strip() for l in checker.__doc__.splitlines()]) if checker.options: title = 'Options' print title print '~' * len(title) for section, options in checker.options_by_section(): rest_format_section(sys.stdout, section, options) print if checker.msgs: title = ('%smessages' % prefix).capitalize() print title print '~' * len(title) self.list_checkers_messages( checker) print if getattr(checker, 'reports', None): title = ('%sreports' % prefix).capitalize() print title print '~' * len(title) for report in checker.reports: print ':%s: %s' % report[:2] print print
116d7011f303fd219acc40aabb14bbdc46eb52b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/116d7011f303fd219acc40aabb14bbdc46eb52b6/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 2854, 67, 26941, 12, 2890, 4672, 3536, 2844, 279, 1983, 7323, 316, 868, 882, 740, 8395, 364, 12489, 316, 1524, 67, 1893, 414, 12, 2890, 6315, 1893, 414, 18, 2372, 1435, 4672, 309, 12489, 18, 529, 422, 296, 7525, 4278, 1633, 273, 296, 6376, 296, 309, 12489, 18, 2116, 30, 364, 2442, 16, 702, 316, 12489, 18, 2116, 67, 1637, 67, 3464, 13332, 309, 2442, 353, 599, 30, 2077, 273, 296, 12580, 702, 11, 469, 30, 2077, 273, 1995, 87, 702, 11, 738, 2442, 18, 5909, 7053, 554, 1435, 1172, 2077, 1172, 17690, 380, 562, 12, 2649, 13, 3127, 67, 2139, 67, 3464, 12, 9499, 18, 10283, 16, 599, 16, 702, 13, 1172, 469, 30, 1633, 273, 875, 2077, 273, 1995, 87, 12489, 11, 738, 12489, 18, 529, 18, 5909, 7053, 554, 1435, 1172, 2077, 1172, 4014, 380, 562, 12, 2649, 13, 309, 12489, 16186, 2434, 972, 30, 468, 1001, 2434, 972, 353, 599, 598, 300, 25148, 1172, 24223, 18, 5701, 3816, 80, 18, 6406, 1435, 364, 328, 316, 12489, 16186, 2434, 25648, 4939, 3548, 1435, 5717, 309, 12489, 18, 2116, 30, 2077, 273, 296, 1320, 11, 1172, 2077, 1172, 17690, 380, 562, 12, 2649, 13, 364, 2442, 16, 702, 316, 12489, 18, 2116, 67, 1637, 67, 3464, 13332, 3127, 67, 2139, 67, 3464, 12, 9499, 18, 10283, 16, 2442, 16, 702, 13, 1172, 309, 12489, 18, 27439, 30, 2077, 273, 7707, 9, 4808, 1753, 11, 738, 1633, 2934, 5909, 7053, 554, 1435, 1172, 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, 2854, 67, 26941, 12, 2890, 4672, 3536, 2844, 279, 1983, 7323, 316, 868, 882, 740, 8395, 364, 12489, 316, 1524, 67, 1893, 414, 12, 2890, 6315, 1893, 414, 18, 2372, 1435, 4672, 309, 12489, 18, 529, 422, 296, 7525, 4278, 1633, 273, 296, 6376, 296, 309, 12489, 18, 2116, 30, 364, 2442, 16, 702, 316, 12489, 18, 2116, 67, 1637, 67, 3464, 13332, 309, 2442, 353, 599, 30, 2077, 273, 296, 12580, 702, 11, 469, 30, 2077, 273, 1995, 87, 702, 11, 738, 2442, 18, 5909, 7053, 554, 1435, 1172, 2077, 1172, 17690, 380, 562, 12, 2649, 13, 3127, 67, 2139, 67, 3464, 12, 9499, 18, 10283, 16, 599, 16, 702, 13, 1172, 469, 30, 1633, 2 ]
job -- a sage.dsage.database.Job object
jdict -- sage.dsage.database.Job.jdict
def store_job(self, jdict): """ Stores a job based on information from Job.jdict. The keys of the dictionary should correspond to the columns in the 'jobs' table. Parameters: job -- a sage.dsage.database.Job object """ job_id = jdict['job_id']
de28bc88eceaac20557bdfbfe7a974ed02d19768 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/de28bc88eceaac20557bdfbfe7a974ed02d19768/jobdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 4688, 12, 2890, 16, 525, 1576, 4672, 3536, 20296, 455, 279, 1719, 2511, 603, 1779, 628, 3956, 18, 78, 1576, 18, 1021, 1311, 434, 326, 3880, 1410, 4325, 358, 326, 2168, 316, 326, 296, 10088, 11, 1014, 18, 225, 7012, 30, 525, 1576, 1493, 272, 410, 18, 2377, 410, 18, 6231, 18, 2278, 18, 78, 1576, 225, 3536, 225, 1719, 67, 350, 273, 525, 1576, 3292, 4688, 67, 350, 3546, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 4688, 12, 2890, 16, 525, 1576, 4672, 3536, 20296, 455, 279, 1719, 2511, 603, 1779, 628, 3956, 18, 78, 1576, 18, 1021, 1311, 434, 326, 3880, 1410, 4325, 358, 326, 2168, 316, 326, 296, 10088, 11, 1014, 18, 225, 7012, 30, 525, 1576, 1493, 272, 410, 18, 2377, 410, 18, 6231, 18, 2278, 18, 78, 1576, 225, 3536, 225, 1719, 67, 350, 273, 525, 1576, 3292, 4688, 67, 350, 3546, 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 ]