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
seh_func = process.read_uint( seh + 4 )
seh_func = process.read_pointer( seh + 4 )
def get_seh_chain(self): """ @rtype: list of tuple( int, int ) @return: List of structured exception handlers. Each SEH is represented as a tuple of two addresses: - Address of the SEH block - Address of the SEH callback function
015d670d265cb2758bfa6d6c506d4c7735582b07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/015d670d265cb2758bfa6d6c506d4c7735582b07/system.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 307, 76, 67, 5639, 12, 2890, 4672, 3536, 632, 86, 723, 30, 225, 666, 434, 3193, 12, 509, 16, 509, 262, 632, 2463, 30, 987, 434, 19788, 1520, 4919, 18, 8315, 3174, 44, 353, 10584, 487, 279, 3193, 434, 2795, 6138, 30, 300, 5267, 434, 326, 3174, 44, 1203, 300, 5267, 434, 326, 3174, 44, 1348, 445, 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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2795, 6138, 30, 300, 5267, 434, 326, 3174, 44, 1203, 300, 5267, 434, 326, 3174, 44, 1348, 445, 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 ]
'cpu Mhz': 'cpu_speed',
'cpu MHz': 'cpu_speed',
def canonical_info(self, platform_host_info): """Standarize host info so we can parse it easily"""
5f4b23fe65778c1a99fe8c4e6a2e48884ae1ce8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5f4b23fe65778c1a99fe8c4e6a2e48884ae1ce8e/hostinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 1376, 12, 2890, 16, 4072, 67, 2564, 67, 1376, 4672, 3536, 20612, 297, 554, 1479, 1123, 1427, 732, 848, 1109, 518, 17997, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 2564, 67, 1376, 4672, 3536, 20612, 297, 554, 1479, 1123, 1427, 732, 848, 1109, 518, 17997, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rng_state0 = numpy.random.RandomState(55) numpy_rng = numpy.random.RandomState(55)
rng_state0 = numpy.random.RandomState(utt.fetch_seed()) numpy_rng = numpy.random.RandomState(utt.fetch_seed())
def test_default_shape(self): rng_R = random_state_type() post_r, out = uniform(rng_R) f = compile.function([rng_R], [post_r, out], accept_inplace=True)
d5701303093e5943cc4df89bc18c7fecc19b0be2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/d5701303093e5943cc4df89bc18c7fecc19b0be2/test_raw_random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1886, 67, 4867, 12, 2890, 4672, 11418, 67, 54, 273, 2744, 67, 2019, 67, 723, 1435, 1603, 67, 86, 16, 596, 273, 10823, 12, 86, 3368, 67, 54, 13, 284, 273, 4074, 18, 915, 3816, 86, 3368, 67, 54, 6487, 306, 2767, 67, 86, 16, 596, 6487, 2791, 67, 267, 964, 33, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1886, 67, 4867, 12, 2890, 4672, 11418, 67, 54, 273, 2744, 67, 2019, 67, 723, 1435, 1603, 67, 86, 16, 596, 273, 10823, 12, 86, 3368, 67, 54, 13, 284, 273, 4074, 18, 915, 3816, 86, 3368, 67, 54, 6487, 306, 2767, 67, 86, 16, 596, 6487, 2791, 67, 267, 964, 33, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if len(user_absroot) == 0: print "\nCleaning up temporary abs tree(s)..." for path in absroots: if os.path.exists(path): removeall(path) os.rmdir(path) finally: if os.path.exists(fsup): os.remove(fsup)
sys.exit()
def print_usage(): print "" print "Usage: check_archlinux [OPTION]" print "" print "Options:" print " --abs-tree=<path> Check specified tree (assumes the abs tree" print " is i686 unless overridden with --arch)" print " --arch=<arch> Use specified arch (e.g. 'x86_64')" print " -g Generate graphical dependency tree(s)" print " -h, --help Show this help and exit" print "" print "Examples:" print "\n Check all arches and do fresh cvs checkouts:" print " check_archlinux" print "\n Check x_86_64 only and do fresh cvs checkout:" print " check_archlinux --arch=x86_64" print "\n Check existing i686 abs tree:" print " check_archlinux --abs-tree=/var/abs" print "\n Check existing x86_64 abs tree and also generate dep tree image:" print " check_archlinux --abs-tree=/var/abs --arch=x86_64 -g" print ""
5cf896673b4b73d6591f52acbcba5a1dfc803f6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3911/5cf896673b4b73d6591f52acbcba5a1dfc803f6c/check_archlinux.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 9167, 13332, 1172, 1408, 1172, 315, 5357, 30, 866, 67, 991, 20132, 306, 7425, 4279, 1172, 1408, 1172, 315, 1320, 2773, 1172, 315, 225, 1493, 5113, 17, 3413, 27127, 803, 34, 6647, 2073, 1269, 2151, 261, 428, 6411, 326, 2417, 2151, 6, 1172, 315, 17311, 353, 277, 26, 5292, 3308, 11000, 598, 1493, 991, 2225, 1172, 315, 225, 1493, 991, 27127, 991, 34, 9079, 2672, 1269, 6637, 261, 73, 18, 75, 18, 296, 92, 5292, 67, 1105, 23291, 1172, 315, 225, 300, 75, 12900, 6654, 2667, 1706, 4904, 2151, 12, 87, 2225, 1172, 315, 225, 300, 76, 16, 1493, 5201, 5375, 9674, 333, 2809, 471, 2427, 6, 1172, 1408, 1172, 315, 23905, 2773, 1172, 1548, 82, 225, 2073, 777, 6637, 281, 471, 741, 12186, 276, 6904, 13926, 87, 2773, 1172, 315, 565, 866, 67, 991, 20132, 6, 1172, 1548, 82, 225, 2073, 619, 67, 5292, 67, 1105, 1338, 471, 741, 12186, 276, 6904, 13926, 2773, 1172, 315, 565, 866, 67, 991, 20132, 1493, 991, 33, 92, 5292, 67, 1105, 6, 1172, 1548, 82, 225, 2073, 2062, 277, 26, 5292, 2417, 2151, 2773, 1172, 315, 565, 866, 67, 991, 20132, 1493, 5113, 17, 3413, 33, 19, 1401, 19, 5113, 6, 1172, 1548, 82, 225, 2073, 2062, 619, 5292, 67, 1105, 2417, 2151, 471, 2546, 2103, 5993, 2151, 1316, 2773, 1172, 315, 565, 866, 67, 991, 20132, 1493, 5113, 17, 3413, 33, 19, 1401, 19, 5113, 1493, 991, 33, 92, 5292, 67, 1105, 300, 75, 6, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 9167, 13332, 1172, 1408, 1172, 315, 5357, 30, 866, 67, 991, 20132, 306, 7425, 4279, 1172, 1408, 1172, 315, 1320, 2773, 1172, 315, 225, 1493, 5113, 17, 3413, 27127, 803, 34, 6647, 2073, 1269, 2151, 261, 428, 6411, 326, 2417, 2151, 6, 1172, 315, 17311, 353, 277, 26, 5292, 3308, 11000, 598, 1493, 991, 2225, 1172, 315, 225, 1493, 991, 27127, 991, 34, 9079, 2672, 1269, 6637, 261, 73, 18, 75, 18, 296, 92, 5292, 67, 1105, 23291, 1172, 315, 225, 300, 75, 12900, 6654, 2667, 1706, 4904, 2151, 12, 87, 2225, 1172, 315, 225, 300, 76, 16, 1493, 5201, 5375, 9674, 333, 2809, 471, 2427, 6, 1172, 1408, 1172, 315, 23905, 2773, 1172, 1548, 82, 2 ]
prolog="""<table align="right" class="googlebox"><tr><th class="googleboxheader">Try your search on:</th></tr><tr><td class="googleboxbody">""",
prolog="""<table class="googlebox"><tr><th class="googleboxheader">Try your search on:</th></tr><tr><td class="googleboxbody">""",
def create_google_box(p, f, p1, p2, p3, prolog="""<table align="right" class="googlebox"><tr><th class="googleboxheader">Try your search on:</th></tr><tr><td class="googleboxbody">""", separator= """<br>""", epilog="""</td></tr></table>"""): "Creates the box that proposes links to other useful search engines like Google. 'p' is the search pattern." out = "" if not p and (p1 or p2 or p3): p = p1 + " " + p2 + " " + p3 if cfg_google_box == 1: out += prolog if cfg_google_box_cern: # CERN Intranet: out += """<a href="http://search.cern.ch/query.html?qt=%s">CERN&nbsp;Intranet</a>""" % urllib.quote(p) # SPIRES if f == "author": out += separator out += """<a href="http://www.slac.stanford.edu/spires/find/hep/www?AUTHOR=%s">SPIRES</a>""" % urllib.quote(p) elif f == "title": out += separator out += """<a href="http://www.slac.stanford.edu/spires/find/hep/www?TITLE=%s">SPIRES</a>""" % urllib.quote(p) elif f == "reportnumber": out += separator out += """<a href="http://www.slac.stanford.edu/spires/find/hep/www?REPORT-NUM=%s">SPIRES</a>""" % urllib.quote(p) elif f == "keyword": out += separator out += """<a href="http://www.slac.stanford.edu/spires/find/hep/www?k=%s">SPIRES</a>""" % urllib.quote(p) # KEK if f == "author": out += separator out += """<a href="http://www-lib.kek.jp/cgi-bin/kiss_prepri?AU=%s">KEK</a>""" % urllib.quote(p) elif f == "title": out += separator out += """<a href="http://www-lib.kek.jp/cgi-bin/kiss_prepri?TI=%s">KEK</a>""" % urllib.quote(p) elif f == "reportnumber": out += separator out += """<a href="http://www-lib.kek.jp/cgi-bin/kiss_prepri?RP=%s">KEK</a>""" % urllib.quote(p) out += separator # Google: out += """<a href="http://google.com/search?q=%s">Google</a>""" % urllib.quote(p) # AllTheWeb: out += separator out += """<a href="http://alltheweb.com/search?q=%s">AllTheWeb</a>""" % urllib.quote(p) out += epilog return out
0aec736283882ec36ab3010d663d9be625f4d852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/0aec736283882ec36ab3010d663d9be625f4d852/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 9536, 67, 2147, 12, 84, 16, 284, 16, 293, 21, 16, 293, 22, 16, 293, 23, 16, 450, 1330, 1546, 3660, 32, 2121, 667, 1546, 9536, 2147, 14050, 313, 4438, 451, 667, 1546, 9536, 2147, 3374, 6441, 7833, 3433, 1623, 603, 19814, 451, 4695, 313, 4438, 313, 4438, 4465, 667, 1546, 9536, 2147, 3432, 6, 2984, 6, 3113, 4182, 33, 3536, 32, 2848, 2984, 6, 3113, 5529, 21947, 1546, 3660, 1757, 4465, 4695, 313, 4695, 2121, 2984, 3660, 4672, 315, 2729, 326, 3919, 716, 450, 10522, 4716, 358, 1308, 5301, 1623, 20504, 3007, 6124, 18, 225, 296, 84, 11, 353, 326, 1623, 1936, 1199, 596, 273, 1408, 309, 486, 293, 471, 261, 84, 21, 578, 293, 22, 578, 293, 23, 4672, 293, 273, 293, 21, 397, 315, 315, 397, 293, 22, 397, 315, 315, 397, 293, 23, 309, 2776, 67, 9536, 67, 2147, 422, 404, 30, 596, 1011, 450, 1330, 309, 2776, 67, 9536, 67, 2147, 67, 14770, 30, 468, 385, 654, 50, 657, 26148, 30, 596, 1011, 3536, 32, 69, 3897, 1546, 2505, 2207, 3072, 18, 14770, 18, 343, 19, 2271, 18, 2620, 35, 23311, 5095, 87, 6441, 39, 654, 50, 10, 10600, 31, 382, 26148, 1757, 69, 2984, 3660, 738, 11527, 18, 6889, 12, 84, 13, 468, 20955, 7031, 309, 284, 422, 315, 4161, 6877, 596, 1011, 4182, 596, 1011, 3536, 32, 69, 3897, 1546, 2505, 2207, 5591, 18, 2069, 1077, 18, 541, 31836, 18, 28049, 19, 1752, 2814, 19, 4720, 19, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 9536, 67, 2147, 12, 84, 16, 284, 16, 293, 21, 16, 293, 22, 16, 293, 23, 16, 450, 1330, 1546, 3660, 32, 2121, 667, 1546, 9536, 2147, 14050, 313, 4438, 451, 667, 1546, 9536, 2147, 3374, 6441, 7833, 3433, 1623, 603, 19814, 451, 4695, 313, 4438, 313, 4438, 4465, 667, 1546, 9536, 2147, 3432, 6, 2984, 6, 3113, 4182, 33, 3536, 32, 2848, 2984, 6, 3113, 5529, 21947, 1546, 3660, 1757, 4465, 4695, 313, 4695, 2121, 2984, 3660, 4672, 315, 2729, 326, 3919, 716, 450, 10522, 4716, 358, 1308, 5301, 1623, 20504, 3007, 6124, 18, 225, 296, 84, 11, 353, 326, 1623, 1936, 1199, 596, 273, 1408, 309, 486, 293, 471, 261, 84, 21, 578, 293, 2 ]
not, an exception is raised ::
not, an exception is raised::
def decode(self, string): r""" Returns a decoded version of the given string corresponding to the current encoding table.
0aa5d0e07206199e4e64708c13056046cecfe083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0aa5d0e07206199e4e64708c13056046cecfe083/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 533, 4672, 436, 8395, 2860, 279, 6383, 1177, 434, 326, 864, 533, 4656, 358, 326, 783, 2688, 1014, 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, 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 2860, 279, 6383, 1177, 434, 326, 864, 533, 4656, 358, 326, 783, 2688, 1014, 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 ]
filename = os.path.join("SPAM", ft.GetExtensions()[0])
ext = ft.GetExtensions()[0] if ext[0] == ".": ext = ext[1:] filename = "SPAM" + "." + ext
def Update(self, ft): #icon = ft.GetIcon() info = ft.GetIconInfo() if info is None: bmp = MyBitmapsFunc(0) ##print bmp.Ok(), bmp.GetWidth(), bmp.GetHeight() self.GetIconBmp().SetBitmap(bmp) self.GetIconFileTxt().SetValue("") self.GetIconIndexTxt().SetValue("") else: icon, file, idx = info #bmp = wxBitmapFromIcon(icon) #self.GetIconBmp().SetBitmap(bmp) self.GetIconBmp().SetIcon(icon) self.GetIconFileTxt().SetValue(file) self.GetIconIndexTxt().SetValue(str(idx))
4c3b4ed07f8d33e70baa4e66ca43dd0ab834578b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c3b4ed07f8d33e70baa4e66ca43dd0ab834578b/wxMimeTypesManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 12, 2890, 16, 11038, 4672, 468, 3950, 273, 11038, 18, 967, 5554, 1435, 1123, 273, 11038, 18, 967, 5554, 966, 1435, 309, 1123, 353, 599, 30, 324, 1291, 273, 8005, 5775, 10711, 2622, 12, 20, 13, 7541, 1188, 324, 1291, 18, 8809, 9334, 324, 1291, 18, 967, 2384, 9334, 324, 1291, 18, 967, 2686, 1435, 365, 18, 967, 5554, 38, 1291, 7675, 694, 12224, 12, 70, 1291, 13, 365, 18, 967, 5554, 812, 21811, 7675, 694, 620, 2932, 7923, 365, 18, 967, 5554, 1016, 21811, 7675, 694, 620, 2932, 7923, 469, 30, 4126, 16, 585, 16, 2067, 273, 1123, 468, 70, 1291, 273, 7075, 12224, 1265, 5554, 12, 3950, 13, 468, 2890, 18, 967, 5554, 38, 1291, 7675, 694, 12224, 12, 70, 1291, 13, 365, 18, 967, 5554, 38, 1291, 7675, 694, 5554, 12, 3950, 13, 365, 18, 967, 5554, 812, 21811, 7675, 694, 620, 12, 768, 13, 365, 18, 967, 5554, 1016, 21811, 7675, 694, 620, 12, 701, 12, 3465, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 12, 2890, 16, 11038, 4672, 468, 3950, 273, 11038, 18, 967, 5554, 1435, 1123, 273, 11038, 18, 967, 5554, 966, 1435, 309, 1123, 353, 599, 30, 324, 1291, 273, 8005, 5775, 10711, 2622, 12, 20, 13, 7541, 1188, 324, 1291, 18, 8809, 9334, 324, 1291, 18, 967, 2384, 9334, 324, 1291, 18, 967, 2686, 1435, 365, 18, 967, 5554, 38, 1291, 7675, 694, 12224, 12, 70, 1291, 13, 365, 18, 967, 5554, 812, 21811, 7675, 694, 620, 2932, 7923, 365, 18, 967, 5554, 1016, 21811, 7675, 694, 620, 2932, 7923, 469, 30, 4126, 16, 585, 16, 2067, 273, 1123, 468, 70, 1291, 273, 7075, 12224, 1265, 5554, 12, 3950, 13, 468, 2890, 18, 967, 5554, 38, 1291, 2 ]
test_mesg = 'From: %s@localhost\nSubject: IMAP4 test\n\ndata...\n' % USER
test_mesg = 'From: %(user)s@localhost%(lf)sSubject: IMAP4 test%(lf)s%(lf)sdata...%(lf)s' % {'user':USER, 'lf':CRLF}
def print_log(): _mesg('last %d IMAP4 interactions:' % len(_cmd_log)) for secs,line in _cmd_log: _mesg(line, secs)
e02f904cbfd12e5d89b71bc65ed76d5828cb4e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e02f904cbfd12e5d89b71bc65ed76d5828cb4e83/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1330, 13332, 389, 26244, 75, 2668, 2722, 738, 72, 6246, 2203, 24, 23877, 2497, 738, 562, 24899, 4172, 67, 1330, 3719, 364, 18043, 16, 1369, 316, 389, 4172, 67, 1330, 30, 389, 26244, 75, 12, 1369, 16, 18043, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1330, 13332, 389, 26244, 75, 2668, 2722, 738, 72, 6246, 2203, 24, 23877, 2497, 738, 562, 24899, 4172, 67, 1330, 3719, 364, 18043, 16, 1369, 316, 389, 4172, 67, 1330, 30, 389, 26244, 75, 12, 1369, 16, 18043, 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 ]
class ClientDisabledError(Error):
class ClientDisabledError(Exception):
def _canonicalize_hostport(host, port): if port is not None: return host, port elif port is None and ':' in host: host, port = host.split(':') port = int(port) return host, port else: raise ValueError('Invalid host, port pair: %r', (host, port))
0b6d310b91b4b6fa422ba429cea92ac7c05501b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14738/0b6d310b91b4b6fa422ba429cea92ac7c05501b4/thrift_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18288, 554, 67, 2564, 655, 12, 2564, 16, 1756, 4672, 309, 1756, 353, 486, 599, 30, 327, 1479, 16, 1756, 1327, 1756, 353, 599, 471, 3921, 316, 1479, 30, 1479, 16, 1756, 273, 1479, 18, 4939, 2668, 2497, 13, 1756, 273, 509, 12, 655, 13, 327, 1479, 16, 1756, 469, 30, 1002, 2068, 2668, 1941, 1479, 16, 1756, 3082, 30, 738, 86, 2187, 261, 2564, 16, 1756, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18288, 554, 67, 2564, 655, 12, 2564, 16, 1756, 4672, 309, 1756, 353, 486, 599, 30, 327, 1479, 16, 1756, 1327, 1756, 353, 599, 471, 3921, 316, 1479, 30, 1479, 16, 1756, 273, 1479, 18, 4939, 2668, 2497, 13, 1756, 273, 509, 12, 655, 13, 327, 1479, 16, 1756, 469, 30, 1002, 2068, 2668, 1941, 1479, 16, 1756, 3082, 30, 738, 86, 2187, 261, 2564, 16, 1756, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
setattr(values, dest, 1)
setattr(values, dest, True)
def take_action (self, action, dest, opt, value, values, parser): if action == "store": setattr(values, dest, value) elif action == "store_const": setattr(values, dest, self.const) elif action == "store_true": setattr(values, dest, 1) elif action == "store_false": setattr(values, dest, 0) elif action == "append": values.ensure_value(dest, []).append(value) elif action == "count": setattr(values, dest, values.ensure_value(dest, 0) + 1) elif action == "callback": args = self.callback_args or () kwargs = self.callback_kwargs or {} self.callback(self, opt, value, parser, *args, **kwargs) elif action == "help": parser.print_help() sys.exit(0) elif action == "version": parser.print_version() sys.exit(0) else: raise RuntimeError, "unknown action %r" % self.action
cdb9ddb9f396d777ecea5b78113fcc9202879129 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cdb9ddb9f396d777ecea5b78113fcc9202879129/optparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4862, 67, 1128, 261, 2890, 16, 1301, 16, 1570, 16, 2153, 16, 460, 16, 924, 16, 2082, 4672, 309, 1301, 422, 315, 2233, 6877, 9241, 12, 2372, 16, 1570, 16, 460, 13, 1327, 1301, 422, 315, 2233, 67, 10248, 6877, 9241, 12, 2372, 16, 1570, 16, 365, 18, 10248, 13, 1327, 1301, 422, 315, 2233, 67, 3767, 6877, 9241, 12, 2372, 16, 1570, 16, 1053, 13, 1327, 1301, 422, 315, 2233, 67, 5743, 6877, 9241, 12, 2372, 16, 1570, 16, 374, 13, 1327, 1301, 422, 315, 6923, 6877, 924, 18, 15735, 67, 1132, 12, 10488, 16, 5378, 2934, 6923, 12, 1132, 13, 1327, 1301, 422, 315, 1883, 6877, 9241, 12, 2372, 16, 1570, 16, 924, 18, 15735, 67, 1132, 12, 10488, 16, 374, 13, 397, 404, 13, 1327, 1301, 422, 315, 3394, 6877, 833, 273, 365, 18, 3394, 67, 1968, 578, 1832, 1205, 273, 365, 18, 3394, 67, 4333, 578, 2618, 365, 18, 3394, 12, 2890, 16, 2153, 16, 460, 16, 2082, 16, 380, 1968, 16, 2826, 4333, 13, 1327, 1301, 422, 315, 5201, 6877, 2082, 18, 1188, 67, 5201, 1435, 2589, 18, 8593, 12, 20, 13, 1327, 1301, 422, 315, 1589, 6877, 2082, 18, 1188, 67, 1589, 1435, 2589, 18, 8593, 12, 20, 13, 469, 30, 1002, 7265, 16, 315, 8172, 1301, 738, 86, 6, 738, 365, 18, 1128, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4862, 67, 1128, 261, 2890, 16, 1301, 16, 1570, 16, 2153, 16, 460, 16, 924, 16, 2082, 4672, 309, 1301, 422, 315, 2233, 6877, 9241, 12, 2372, 16, 1570, 16, 460, 13, 1327, 1301, 422, 315, 2233, 67, 10248, 6877, 9241, 12, 2372, 16, 1570, 16, 365, 18, 10248, 13, 1327, 1301, 422, 315, 2233, 67, 3767, 6877, 9241, 12, 2372, 16, 1570, 16, 1053, 13, 1327, 1301, 422, 315, 2233, 67, 5743, 6877, 9241, 12, 2372, 16, 1570, 16, 374, 13, 1327, 1301, 422, 315, 6923, 6877, 924, 18, 15735, 67, 1132, 12, 10488, 16, 5378, 2934, 6923, 12, 1132, 13, 1327, 1301, 422, 315, 1883, 6877, 9241, 12, 2372, 16, 1570, 16, 924, 18, 15735, 67, 2 ]
hdir = os.path.join (os.environ["HOME"], ".config/awn/applets") dirs = ["/usr/lib/awn/applets", "/usr/local/lib/awn/applets", "/usr/lib64/awn/applets", "/usr/local/lib64/awn/applets", hdir]
prefixes = ["/usr/lib", "/usr/local/lib", "/usr/lib64", "/usr/local/lib64", os.path.join(defs.PREFIX, "lib"), os.path.expanduser("~/.config")] dirs = [os.path.join(prefix, "awn", "applets") for prefix in prefixes]
def load_applets (self): self.make_appmodel () model = self.appmodel
45620a39e26118940962f52e60ed2313f485fb09 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8416/45620a39e26118940962f52e60ed2313f485fb09/awnApplet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 438,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 438, 20773, 261, 2890, 4672, 365, 18, 6540, 67, 2910, 2284, 1832, 938, 273, 365, 18, 2910, 2284, 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 ]
deps = terminal_deps[expression.__class__](expression)
h = terminal_deps[expression.__class__] deps = h(expression)
def _split_by_dependencies(expression, codestructure, terminal_deps): if isinstance(expression, Variable): c = expression._count info = codestructure.variableinfo.get(c, None) if info is not None: return info.variable, info.deps #codestructure.stacks[vdeps].append(v) elif isinstance(expression, Terminal): deps = terminal_deps[expression.__class__](expression) if codestructure.stacks: ufl_assert(deps.size() == some_key(codestructure.stacks).size(), "Inconsistency in dependency definitions.") return expression, deps ops = expression.operands() ops2 = [_split_by_dependencies(o, codestructure, terminal_deps) for o in ops] deps = ops2[0][1] for o in ops2[1:]: deps |= o[1] ops3 = [] for (v,vdeps) in ops2: if isinstance(v, Variable): # if this subexpression is a variable, it has already been added to the stack ufl_assert(v._count in codestructure.variableinfo, "") elif not vdeps == deps: # if this subexpression has other dependencies than 'expression', store a variable for it v = Variable(v) vinfo = VariableInfo(v, vdeps) codestructure.variableinfo[v._count] = vinfo codestructure.stacks[vdeps].append(vinfo) ops3.append(v) if isinstance(expression, Variable): c = expression._count ufl_assert(c not in codestructure.variableinfo, "Shouldn't reach this point if the variable was already cached!") vinfo = VariableInfo(expression, deps) codestructure.variableinfo[c] = vinfo codestructure.stacks[deps].append(vinfo) # Try to reuse expression if nothing has changed: if any((o1 is not o3) for (o1,o3) in izip(ops,ops3)): e = expression.__class__(*ops3) else: e = expression return e, deps
b1b48c45bfffb609a40d14125016d63b2899726b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/b1b48c45bfffb609a40d14125016d63b2899726b/dependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 67, 1637, 67, 11037, 12, 8692, 16, 6198, 13583, 16, 8651, 67, 14877, 4672, 309, 1549, 12, 8692, 16, 7110, 4672, 276, 273, 2652, 6315, 1883, 1123, 273, 6198, 13583, 18, 6105, 1376, 18, 588, 12, 71, 16, 599, 13, 309, 1123, 353, 486, 599, 30, 327, 1123, 18, 6105, 16, 1123, 18, 14877, 468, 7000, 13583, 18, 3772, 87, 63, 90, 14877, 8009, 6923, 12, 90, 13, 1327, 1549, 12, 8692, 16, 18778, 4672, 366, 273, 8651, 67, 14877, 63, 8692, 16186, 1106, 972, 65, 8740, 273, 366, 12, 8692, 13, 309, 6198, 13583, 18, 3772, 87, 30, 582, 2242, 67, 11231, 12, 14877, 18, 1467, 1435, 422, 2690, 67, 856, 12, 7000, 13583, 18, 3772, 87, 2934, 1467, 9334, 315, 382, 28725, 316, 4904, 6377, 1199, 13, 327, 2652, 16, 8740, 225, 6727, 273, 2652, 18, 4063, 5708, 1435, 6727, 22, 273, 306, 67, 4939, 67, 1637, 67, 11037, 12, 83, 16, 6198, 13583, 16, 8651, 67, 14877, 13, 364, 320, 316, 6727, 65, 8740, 273, 6727, 22, 63, 20, 6362, 21, 65, 364, 320, 316, 6727, 22, 63, 21, 30, 14542, 8740, 5626, 320, 63, 21, 65, 225, 6727, 23, 273, 5378, 364, 261, 90, 16, 90, 14877, 13, 316, 6727, 22, 30, 309, 1549, 12, 90, 16, 7110, 4672, 468, 309, 333, 720, 8692, 353, 279, 2190, 16, 518, 711, 1818, 2118, 3096, 358, 326, 2110, 582, 2242, 67, 11231, 12, 90, 6315, 1883, 316, 6198, 13583, 18, 6105, 1376, 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, 4939, 67, 1637, 67, 11037, 12, 8692, 16, 6198, 13583, 16, 8651, 67, 14877, 4672, 309, 1549, 12, 8692, 16, 7110, 4672, 276, 273, 2652, 6315, 1883, 1123, 273, 6198, 13583, 18, 6105, 1376, 18, 588, 12, 71, 16, 599, 13, 309, 1123, 353, 486, 599, 30, 327, 1123, 18, 6105, 16, 1123, 18, 14877, 468, 7000, 13583, 18, 3772, 87, 63, 90, 14877, 8009, 6923, 12, 90, 13, 1327, 1549, 12, 8692, 16, 18778, 4672, 366, 273, 8651, 67, 14877, 63, 8692, 16186, 1106, 972, 65, 8740, 273, 366, 12, 8692, 13, 309, 6198, 13583, 18, 3772, 87, 30, 582, 2242, 67, 11231, 12, 14877, 18, 1467, 1435, 422, 2690, 67, 856, 12, 7000, 13583, 18, 2 ]
if im is None: im = create_mat()
def draw_clay(self, context): global im ok_clay = not bpy.types.Scene.Clay rnd = context.scene.render rnl = rnd.layers.active if im is None: im = create_mat() split = self.layout.split() col = split.column() col.operator(CheckClay.bl_idname, emboss=False, icon='CHECKBOX_HLT' \ if ok_clay else 'CHECKBOX_DEHLT') col = split.column() col.prop(im, "diffuse_color", text="") self.layout.separator()
e6b5c1a3ecbf3cf3e1bff92597f90631a576aa84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/e6b5c1a3ecbf3cf3e1bff92597f90631a576aa84/render_clay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 830, 528, 12, 2890, 16, 819, 4672, 2552, 709, 1529, 67, 830, 528, 273, 486, 324, 2074, 18, 2352, 18, 14370, 18, 2009, 528, 225, 20391, 273, 819, 18, 23694, 18, 5902, 436, 14039, 273, 20391, 18, 10396, 18, 3535, 1416, 273, 365, 18, 6741, 18, 4939, 1435, 645, 273, 1416, 18, 2827, 1435, 645, 18, 9497, 12, 1564, 2009, 528, 18, 3083, 67, 350, 529, 16, 31265, 8464, 33, 8381, 16, 4126, 2218, 10687, 16876, 67, 44, 12050, 11, 521, 309, 1529, 67, 830, 528, 469, 296, 10687, 16876, 67, 1639, 44, 12050, 6134, 645, 273, 1416, 18, 2827, 1435, 645, 18, 5986, 12, 381, 16, 315, 5413, 1202, 67, 3266, 3113, 977, 1546, 7923, 365, 18, 6741, 18, 11287, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 830, 528, 12, 2890, 16, 819, 4672, 2552, 709, 1529, 67, 830, 528, 273, 486, 324, 2074, 18, 2352, 18, 14370, 18, 2009, 528, 225, 20391, 273, 819, 18, 23694, 18, 5902, 436, 14039, 273, 20391, 18, 10396, 18, 3535, 1416, 273, 365, 18, 6741, 18, 4939, 1435, 645, 273, 1416, 18, 2827, 1435, 645, 18, 9497, 12, 1564, 2009, 528, 18, 3083, 67, 350, 529, 16, 31265, 8464, 33, 8381, 16, 4126, 2218, 10687, 16876, 67, 44, 12050, 11, 521, 309, 1529, 67, 830, 528, 469, 296, 10687, 16876, 67, 1639, 44, 12050, 6134, 645, 273, 1416, 18, 2827, 1435, 645, 18, 5986, 12, 381, 16, 315, 5413, 1202, 67, 3266, 3113, 977, 1546, 7923, 2 ]
def preView(self, file): sys.stdout.write(str(file.toString()))
def preView(self, filename):
def preView(self, file): sys.stdout.write(str(file.toString())) self.clear() if self.item.load(unicode(file.toString()), 1) == -2: return
1c952f8c4f0b08ff01cccae09b7e430d2744792d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/1c952f8c4f0b08ff01cccae09b7e430d2744792d/ItemList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 1767, 12, 2890, 16, 1544, 4672, 365, 18, 8507, 1435, 309, 365, 18, 1726, 18, 945, 12, 9124, 12, 768, 18, 10492, 1435, 3631, 404, 13, 422, 300, 22, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 1767, 12, 2890, 16, 1544, 4672, 365, 18, 8507, 1435, 309, 365, 18, 1726, 18, 945, 12, 9124, 12, 768, 18, 10492, 1435, 3631, 404, 13, 422, 300, 22, 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 ]
**configuration()
**configuration(top_path='').todict()
def configuration(parent_package='',parent_path=None): from scipy.distutils.system_info import get_info package = 'cluster' local_path = get_path(__name__,parent_path) config = Configuration(package,parent_package) config.add_extension('_vq', sources=[join('src', 'vq_wrap.cpp')]) return config
64d85ae8d3fb0f7cebd49730623ca86bac49fef6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/64d85ae8d3fb0f7cebd49730623ca86bac49fef6/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 2187, 2938, 67, 803, 33, 7036, 4672, 628, 10966, 18, 4413, 5471, 18, 4299, 67, 1376, 1930, 336, 67, 1376, 2181, 273, 296, 7967, 11, 1191, 67, 803, 273, 336, 67, 803, 12, 972, 529, 972, 16, 2938, 67, 803, 13, 642, 273, 4659, 12, 5610, 16, 2938, 67, 5610, 13, 225, 642, 18, 1289, 67, 6447, 2668, 67, 90, 85, 2187, 5550, 22850, 5701, 2668, 4816, 2187, 296, 90, 85, 67, 4113, 18, 4057, 84, 6134, 5717, 225, 327, 642, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 67, 803, 273, 336, 67, 803, 12, 972, 529, 972, 16, 2938, 67, 803, 13, 642, 273, 4659, 12, 5610, 16, 2938, 67, 5610, 13, 225, 642, 18, 1289, 67, 6447, 2668, 67, 90, 85, 2187, 5550, 22850, 5701, 2668, 4816, 2187, 296, 90, 85, 67, 4113, 18, 4057, 84, 6134, 5717, 225, 327, 642, 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 ]
uchunks = [unicode(s, str(charset)) for s, charset in self._chunks] return u''.join(uchunks)
uchunks = [] lastcs = None for s, charset in self._chunks: nextcs = charset if uchunks: if lastcs is not None: if nextcs is None or nextcs == 'us-ascii': uchunks.append(USPACE) nextcs = None elif nextcs is not None and nextcs <> 'us-ascii': uchunks.append(USPACE) lastcs = nextcs uchunks.append(unicode(s, str(charset))) return UEMPTYSTRING.join(uchunks)
def __unicode__(self): """Helper for the built-in unicode function.""" # charset item is a Charset instance so we need to stringify it. uchunks = [unicode(s, str(charset)) for s, charset in self._chunks] return u''.join(uchunks)
215c9acdb204958722e25c4e5d42025d0c15916f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/215c9acdb204958722e25c4e5d42025d0c15916f/Header.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 3536, 2276, 364, 326, 6650, 17, 267, 5252, 445, 12123, 468, 4856, 761, 353, 279, 12080, 791, 1427, 732, 1608, 358, 7077, 518, 18, 582, 14691, 273, 306, 9124, 12, 87, 16, 609, 12, 9999, 3719, 364, 272, 16, 4856, 316, 365, 6315, 14691, 65, 327, 582, 6309, 18, 5701, 12, 2648, 1683, 87, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 3536, 2276, 364, 326, 6650, 17, 267, 5252, 445, 12123, 468, 4856, 761, 353, 279, 12080, 791, 1427, 732, 1608, 358, 7077, 518, 18, 582, 14691, 273, 306, 9124, 12, 87, 16, 609, 12, 9999, 3719, 364, 272, 16, 4856, 316, 365, 6315, 14691, 65, 327, 582, 6309, 18, 5701, 12, 2648, 1683, 87, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, code, hresult, result): self.code = code
def __init__(self, name, value, parent = None, hresult = 0): self.name = name self.value = value self.parent = parent
def __init__(self, code, hresult, result): self.code = code self.hresult = hresult self.result = result
11987ba923ad498972ab210ac08a30ffbfe1cb28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/11987ba923ad498972ab210ac08a30ffbfe1cb28/expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 460, 16, 982, 273, 599, 16, 366, 2088, 273, 374, 4672, 365, 18, 529, 273, 508, 365, 18, 1132, 273, 460, 365, 18, 2938, 273, 982, 365, 18, 76, 2088, 273, 366, 2088, 365, 18, 2088, 273, 563, 225, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 460, 16, 982, 273, 599, 16, 366, 2088, 273, 374, 4672, 365, 18, 529, 273, 508, 365, 18, 1132, 273, 460, 365, 18, 2938, 273, 982, 365, 18, 76, 2088, 273, 366, 2088, 365, 18, 2088, 273, 563, 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 ]
elif objID.is_function() or objID.is_method(): self.data[objID] = FuncDoc(obj, self._verbosity) elif objID.is_builtin_function(): self.data[objID] = FuncDoc(obj, self._verbosity) def add(self, obj): """ Add the documentation for an object, and everything contained by that object, to this documentation map. @param obj: The object whose documentation should be added to this documentation map. @type obj: any @rtype: C{None} """ objID = UID(obj) if self.data.has_key(objID): return self.add_one(obj) if objID.is_module(): for val in obj.__dict__.values(): valID = _makeuid(val) if not valID: continue if valID.is_class() or valID.is_function(): if UID(val).module() != objID: if WARN_SKIPPING: print 'Skipping imported value', val continue if valID.is_class(): self.add(val) elif valID.is_function() or valID.is_builtin_function(): self.add(val) elif objID.is_class(): for val in obj.__dict__.values(): valID = _makeuid(val) if not valID: continue if valID.is_function(): self.add(new.instancemethod(val, None, obj)) elif valID.is_builtin_method(): self.add(val)
def add_one(self, obj): """ Add an object's documentation to this documentation map. If you also want to include the objects contained by C{obj}, then use L{add}.
065d9e81e0092aa76af93c5f65eb4326d02a3124 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/065d9e81e0092aa76af93c5f65eb4326d02a3124/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 476, 12, 2890, 16, 1081, 4672, 3536, 1436, 392, 733, 1807, 7323, 358, 333, 7323, 852, 18, 225, 971, 1846, 2546, 2545, 358, 2341, 326, 2184, 7542, 635, 385, 95, 2603, 5779, 1508, 999, 511, 95, 1289, 5496, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 476, 12, 2890, 16, 1081, 4672, 3536, 1436, 392, 733, 1807, 7323, 358, 333, 7323, 852, 18, 225, 971, 1846, 2546, 2545, 358, 2341, 326, 2184, 7542, 635, 385, 95, 2603, 5779, 1508, 999, 511, 95, 1289, 5496, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
log.error("Error: %s" % re) systemExit(re.code, re.msg)
print _(" Adding consumer failed ") log.error("Error: %s" % re) sys.exit(-1)
def _add_consumer(self): if not self.options.consumerid: print("consumer id required. Try --help") sys.exit(0) if not self.options.groupid: print("group id required. Try --help") sys.exit(0) try: self.cgconn.add_consumer(self.options.groupid, self.options.consumerid) print _(" Successfully added Consumer [%s] to Group [%s]" % (self.options.consumerid, self.options.groupid)) except RestlibException, re: log.error("Error: %s" % re) systemExit(re.code, re.msg) except Exception, e: log.error("Error: %s" % e) raise
6b0b4ca97d3579a18fdf98fb7cc2c56a724d726e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/6b0b4ca97d3579a18fdf98fb7cc2c56a724d726e/core_consumergroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 13230, 12, 2890, 4672, 309, 486, 365, 18, 2116, 18, 13230, 350, 30, 1172, 2932, 13230, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 309, 486, 365, 18, 2116, 18, 1655, 350, 30, 1172, 2932, 1655, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 775, 30, 365, 18, 26275, 4646, 18, 1289, 67, 13230, 12, 2890, 18, 2116, 18, 1655, 350, 16, 365, 18, 2116, 18, 13230, 350, 13, 1172, 389, 2932, 11958, 4095, 3096, 9326, 9799, 87, 65, 358, 3756, 9799, 87, 4279, 738, 261, 2890, 18, 2116, 18, 13230, 350, 16, 365, 18, 2116, 18, 1655, 350, 3719, 1335, 6320, 2941, 503, 16, 283, 30,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 13230, 12, 2890, 4672, 309, 486, 365, 18, 2116, 18, 13230, 350, 30, 1172, 2932, 13230, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 309, 486, 365, 18, 2116, 18, 1655, 350, 30, 1172, 2932, 1655, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 775, 30, 365, 18, 26275, 4646, 18, 1289, 67, 13230, 12, 2890, 18, 2116, 18, 1655, 350, 16, 365, 18, 2116, 18, 13230, 350, 13, 1172, 389, 2932, 11958, 4095, 3096, 9326, 9799, 87, 65, 358, 3756, 9799, 87, 4279, 738, 261, 2890, 18, 2116, 18, 13230, 350, 16, 365, 18, 2116, 18, 1655, 350, 3719, 1335, 6320, 2941, 503, 16, 2 ]
l.append ((fd, flags)) r = poll.poll (l, timeout)
l.append((fd, flags)) r = poll.poll(l, timeout)
def poll2 (timeout=0.0, map=None): import poll if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) if map: l = [] for fd, obj in map.iteritems(): flags = 0 if obj.readable(): flags = poll.POLLIN if obj.writable(): flags = flags | poll.POLLOUT if flags: l.append ((fd, flags)) r = poll.poll (l, timeout) for fd, flags in r: obj = map.get(fd) if obj is None: continue readwrite(obj, flags)
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 261, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 1930, 7672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 309, 2021, 353, 486, 599, 30, 468, 2021, 353, 316, 10993, 2021, 273, 509, 12, 4538, 14, 18088, 13, 309, 852, 30, 328, 273, 5378, 364, 5194, 16, 1081, 316, 852, 18, 2165, 3319, 13332, 2943, 273, 374, 309, 1081, 18, 11018, 13332, 2943, 273, 7672, 18, 14232, 20663, 309, 1081, 18, 15699, 13332, 2943, 273, 2943, 571, 7672, 18, 14232, 1502, 1693, 309, 2943, 30, 328, 18, 6923, 12443, 8313, 16, 2943, 3719, 436, 273, 7672, 18, 13835, 12, 80, 16, 2021, 13, 364, 5194, 16, 2943, 316, 436, 30, 1081, 273, 852, 18, 588, 12, 8313, 13, 309, 1081, 353, 599, 30, 1324, 855, 2626, 12, 2603, 16, 2943, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 261, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 1930, 7672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 309, 2021, 353, 486, 599, 30, 468, 2021, 353, 316, 10993, 2021, 273, 509, 12, 4538, 14, 18088, 13, 309, 852, 30, 328, 273, 5378, 364, 5194, 16, 1081, 316, 852, 18, 2165, 3319, 13332, 2943, 273, 374, 309, 1081, 18, 11018, 13332, 2943, 273, 7672, 18, 14232, 20663, 309, 1081, 18, 15699, 13332, 2943, 273, 2943, 571, 7672, 18, 14232, 1502, 1693, 309, 2943, 30, 328, 18, 6923, 12443, 8313, 16, 2943, 3719, 436, 273, 7672, 18, 13835, 12, 80, 16, 2021, 13, 364, 5194, 16, 2943, 316, 436, 30, 1081, 273, 2 ]
sage: from sage.calculus.calculus import maxima as calcmaxima sage: calcmaxima.eval('declare(n,integer)')
sage: sage.calculus.calculus.maxima.eval('declare(n,integer)')
def assume(*args): """ Make the given assumptions. INPUT: *args -- assumptions EXAMPLES: sage: assume(x > 0) sage: bool(sqrt(x^2) == x) True sage: forget() sage: bool(sqrt(x^2) == x) False An integer constraint (todo: this needs to be made possible with just the assume command!): sage: from sage.calculus.calculus import maxima as calcmaxima sage: calcmaxima.eval('declare(n,integer)') 'done' sage: var('n, P, r, r2') (n, P, r, r2) sage: c = P*e^(r*n) sage: d = P*(1+r2)^n sage: solve(c==d,r2) [r2 == e^r - 1] """ for x in args: if isinstance(x, (tuple, list)): for y in x: assume(y) else: try: x.assume() except KeyError: raise TypeError, "assume not defined for objects of type '%s'"%type(x)
a29ebe31d2f06be51bf94592bb756e3abbdda738 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a29ebe31d2f06be51bf94592bb756e3abbdda738/equations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6750, 30857, 1968, 4672, 3536, 4344, 326, 864, 6287, 573, 18, 225, 12943, 30, 380, 1968, 1493, 6287, 573, 225, 5675, 8900, 11386, 30, 272, 410, 30, 6750, 12, 92, 405, 374, 13, 272, 410, 30, 1426, 12, 24492, 12, 92, 66, 22, 13, 422, 619, 13, 1053, 272, 410, 30, 13776, 1435, 272, 410, 30, 1426, 12, 24492, 12, 92, 66, 22, 13, 422, 619, 13, 1083, 225, 1922, 3571, 4954, 261, 9012, 30, 333, 4260, 358, 506, 7165, 3323, 598, 2537, 326, 6750, 1296, 5, 4672, 272, 410, 30, 272, 410, 18, 12780, 407, 18, 12780, 407, 18, 1896, 13888, 18, 8622, 2668, 29554, 12, 82, 16, 7745, 2506, 13, 296, 8734, 11, 272, 410, 30, 569, 2668, 82, 16, 453, 16, 436, 16, 436, 22, 6134, 261, 82, 16, 453, 16, 436, 16, 436, 22, 13, 272, 410, 30, 276, 273, 453, 14, 73, 29020, 86, 14, 82, 13, 272, 410, 30, 302, 273, 453, 21556, 21, 15, 86, 22, 13, 66, 82, 272, 410, 30, 12439, 12, 71, 631, 72, 16, 86, 22, 13, 306, 86, 22, 422, 425, 66, 86, 300, 404, 65, 3536, 364, 619, 316, 833, 30, 309, 1549, 12, 92, 16, 261, 8052, 16, 666, 3719, 30, 364, 677, 316, 619, 30, 6750, 12, 93, 13, 469, 30, 775, 30, 619, 18, 428, 2066, 1435, 1335, 4999, 30, 1002, 3580, 16, 315, 428, 2066, 486, 2553, 364, 2184, 434, 618, 1995, 87, 4970, 9, 723, 12, 92, 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, 6750, 30857, 1968, 4672, 3536, 4344, 326, 864, 6287, 573, 18, 225, 12943, 30, 380, 1968, 1493, 6287, 573, 225, 5675, 8900, 11386, 30, 272, 410, 30, 6750, 12, 92, 405, 374, 13, 272, 410, 30, 1426, 12, 24492, 12, 92, 66, 22, 13, 422, 619, 13, 1053, 272, 410, 30, 13776, 1435, 272, 410, 30, 1426, 12, 24492, 12, 92, 66, 22, 13, 422, 619, 13, 1083, 225, 1922, 3571, 4954, 261, 9012, 30, 333, 4260, 358, 506, 7165, 3323, 598, 2537, 326, 6750, 1296, 5, 4672, 272, 410, 30, 272, 410, 18, 12780, 407, 18, 12780, 407, 18, 1896, 13888, 18, 8622, 2668, 29554, 12, 82, 16, 7745, 2506, 13, 296, 8734, 11, 272, 410, 30, 2 ]
swap16(self["d"].value), swap16(self["e"].value), swap32(self["f"].value))
str2hex(d[:2]), str2hex(d[2:4]), str2hex(d[4:6]),str2hex(d[6:8]))
def createValue(self): return "%08X-%04X-%04X-%04X-%04X%08X" % ( self["a"].value, self["b"].value, self["c"].value, swap16(self["d"].value), swap16(self["e"].value), swap32(self["f"].value))
4e2d58125f1278adc31fb77536ee805cd8075760 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/4e2d58125f1278adc31fb77536ee805cd8075760/win32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 620, 12, 2890, 4672, 327, 2213, 6840, 60, 6456, 3028, 60, 6456, 3028, 60, 6456, 3028, 60, 6456, 3028, 60, 9, 6840, 60, 6, 738, 261, 365, 9614, 69, 6, 8009, 1132, 16, 365, 9614, 70, 6, 8009, 1132, 16, 365, 9614, 71, 6, 8009, 1132, 16, 7720, 2313, 12, 2890, 9614, 72, 6, 8009, 1132, 3631, 7720, 2313, 12, 2890, 9614, 73, 6, 8009, 1132, 3631, 7720, 1578, 12, 2890, 9614, 74, 6, 8009, 1132, 3719, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 620, 12, 2890, 4672, 327, 2213, 6840, 60, 6456, 3028, 60, 6456, 3028, 60, 6456, 3028, 60, 6456, 3028, 60, 9, 6840, 60, 6, 738, 261, 365, 9614, 69, 6, 8009, 1132, 16, 365, 9614, 70, 6, 8009, 1132, 16, 365, 9614, 71, 6, 8009, 1132, 16, 7720, 2313, 12, 2890, 9614, 72, 6, 8009, 1132, 3631, 7720, 2313, 12, 2890, 9614, 73, 6, 8009, 1132, 3631, 7720, 1578, 12, 2890, 9614, 74, 6, 8009, 1132, 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 ]
if os.path.isdir(os.path.join(dir,elem)):
if os.path.isdir(os.path.join(dir,elem)):
def get_file_listing(dir, mode, pattern=None): """ Returns the file listing of a given directory. It returns only files. Returns a list of [file,/path/to/file] """ filelist = [] if pattern == (None or ''): listaux = dircache.listdir(dir) else: if dir != '/': dir += '/' dir = escape_pattern(dir + pattern) listaux = glob.glob(dir) listaux.sort(key=str.lower) for elem in listaux: if STOP: return filelist if mode == 0: # Get files if not os.path.isdir(os.path.join(dir,elem)): filelist.append([os.path.basename(elem),os.path.join(dir,elem)]) elif mode == 1: # Get directories if os.path.isdir(os.path.join(dir,elem)): filelist.append([os.path.basename(elem),os.path.join(dir,elem)]) elif mode == 2: # Get files and directories filelist.append([os.path.basename(elem),os.path.join(dir,elem)]) else: # Get files if not os.path.isdir(os.path.join(dir,elem)): filelist.append([os.path.basename(elem),os.path.join(dir,elem)]) return filelist
48fc1c8d86f8cfbba31b22fbb4fd6c28972893ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/735/48fc1c8d86f8cfbba31b22fbb4fd6c28972893ca/pyrenamer_filefuncs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 21228, 12, 1214, 16, 1965, 16, 1936, 33, 7036, 4672, 3536, 2860, 326, 585, 11591, 434, 279, 864, 1867, 18, 2597, 1135, 1338, 1390, 18, 2860, 279, 666, 434, 306, 768, 16, 19, 803, 19, 869, 19, 768, 65, 3536, 225, 26204, 273, 5378, 225, 309, 225, 1936, 422, 261, 7036, 578, 875, 4672, 17822, 2616, 273, 1577, 2493, 18, 1098, 1214, 12, 1214, 13, 469, 30, 309, 1577, 480, 2023, 30, 1577, 1011, 2023, 1577, 273, 4114, 67, 4951, 12, 1214, 397, 1936, 13, 17822, 2616, 273, 4715, 18, 10581, 12, 1214, 13, 225, 17822, 2616, 18, 3804, 12, 856, 33, 701, 18, 8167, 13, 364, 3659, 316, 17822, 2616, 30, 309, 17815, 30, 327, 26204, 309, 1965, 422, 374, 30, 468, 968, 1390, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 1214, 16, 10037, 3719, 30, 26204, 18, 6923, 3816, 538, 18, 803, 18, 13909, 12, 10037, 3631, 538, 18, 803, 18, 5701, 12, 1214, 16, 10037, 13, 5717, 1327, 1965, 422, 404, 30, 468, 968, 6402, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 1214, 16, 10037, 3719, 30, 26204, 18, 6923, 3816, 538, 18, 803, 18, 13909, 12, 10037, 3631, 538, 18, 803, 18, 5701, 12, 1214, 16, 10037, 13, 5717, 1327, 1965, 422, 576, 30, 468, 968, 1390, 471, 6402, 26204, 18, 6923, 3816, 538, 18, 803, 18, 13909, 12, 10037, 3631, 538, 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, 336, 67, 768, 67, 21228, 12, 1214, 16, 1965, 16, 1936, 33, 7036, 4672, 3536, 2860, 326, 585, 11591, 434, 279, 864, 1867, 18, 2597, 1135, 1338, 1390, 18, 2860, 279, 666, 434, 306, 768, 16, 19, 803, 19, 869, 19, 768, 65, 3536, 225, 26204, 273, 5378, 225, 309, 225, 1936, 422, 261, 7036, 578, 875, 4672, 17822, 2616, 273, 1577, 2493, 18, 1098, 1214, 12, 1214, 13, 469, 30, 309, 1577, 480, 2023, 30, 1577, 1011, 2023, 1577, 273, 4114, 67, 4951, 12, 1214, 397, 1936, 13, 17822, 2616, 273, 4715, 18, 10581, 12, 1214, 13, 225, 17822, 2616, 18, 3804, 12, 856, 33, 701, 18, 8167, 13, 364, 3659, 316, 17822, 2616, 30, 309, 17815, 2 ]
if result in trues:
if result.lower() in trues:
def getboolean(self, section, option): result = self.get(section, option) try: trues = ["1", "yes", "true", "on"] falses = ["0", "no", "false", "off"] if result in trues: return True if result in falses: return False except AttributeError as err: if str(err) == "\'bool\' object has no attribute \'lower\'": return result raise err
6b3fa3e06c70a338f1eef5c44d802e586cb99c22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/6b3fa3e06c70a338f1eef5c44d802e586cb99c22/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6494, 12, 2890, 16, 2442, 16, 1456, 4672, 563, 273, 365, 18, 588, 12, 3464, 16, 1456, 13, 775, 30, 433, 3610, 273, 8247, 21, 3113, 315, 9707, 3113, 315, 3767, 3113, 315, 265, 11929, 284, 1031, 281, 273, 8247, 20, 3113, 315, 2135, 3113, 315, 5743, 3113, 315, 3674, 11929, 309, 563, 18, 8167, 1435, 316, 433, 3610, 30, 327, 1053, 309, 563, 316, 284, 1031, 281, 30, 327, 1083, 1335, 6394, 487, 393, 30, 309, 609, 12, 370, 13, 422, 1548, 11, 6430, 3730, 733, 711, 1158, 1566, 7164, 8167, 3730, 6877, 327, 563, 1002, 393, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6494, 12, 2890, 16, 2442, 16, 1456, 4672, 563, 273, 365, 18, 588, 12, 3464, 16, 1456, 13, 775, 30, 433, 3610, 273, 8247, 21, 3113, 315, 9707, 3113, 315, 3767, 3113, 315, 265, 11929, 284, 1031, 281, 273, 8247, 20, 3113, 315, 2135, 3113, 315, 5743, 3113, 315, 3674, 11929, 309, 563, 18, 8167, 1435, 316, 433, 3610, 30, 327, 1053, 309, 563, 316, 284, 1031, 281, 30, 327, 1083, 1335, 6394, 487, 393, 30, 309, 609, 12, 370, 13, 422, 1548, 11, 6430, 3730, 733, 711, 1158, 1566, 7164, 8167, 3730, 6877, 327, 563, 1002, 393, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.client.set_list(defs.PANEL, defs.APPLET_LIST, awn.CONFIG_LIST_STRING, l)
self.client.set_list(defs.PANEL, defs.APPLET_LIST, awn.CONFIG_LIST_STRING, applets_list)
def _apply (self): l = [] it = self.active_model.get_iter_first () while (it): path = self.active_model.get_value (it, 1) uid = self.active_model.get_value (it, 2) s = "%s::%s" % (path, uid) l.append (s) it= self.active_model.iter_next (it)
78ee6ac8bee04c02291714737ad666a3999353a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/78ee6ac8bee04c02291714737ad666a3999353a7/awnClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9010, 261, 2890, 4672, 328, 273, 5378, 518, 273, 365, 18, 3535, 67, 2284, 18, 588, 67, 2165, 67, 3645, 1832, 1323, 261, 305, 4672, 589, 273, 365, 18, 3535, 67, 2284, 18, 588, 67, 1132, 261, 305, 16, 404, 13, 4555, 273, 365, 18, 3535, 67, 2284, 18, 588, 67, 1132, 261, 305, 16, 576, 13, 272, 273, 2213, 87, 2866, 9, 87, 6, 738, 261, 803, 16, 4555, 13, 328, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9010, 261, 2890, 4672, 328, 273, 5378, 518, 273, 365, 18, 3535, 67, 2284, 18, 588, 67, 2165, 67, 3645, 1832, 1323, 261, 305, 4672, 589, 273, 365, 18, 3535, 67, 2284, 18, 588, 67, 1132, 261, 305, 16, 404, 13, 4555, 273, 365, 18, 3535, 67, 2284, 18, 588, 67, 1132, 261, 305, 16, 576, 13, 272, 273, 2213, 87, 2866, 9, 87, 6, 738, 261, 803, 16, 4555, 13, 328, 18, 6923, 261, 87, 13, 518, 33, 365, 18, 3535, 67, 2284, 18, 2165, 67, 4285, 261, 305, 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 ]
m = self.rfile.read (n)
m = packet.fromClient (n)
def handle (self): """ This is where the action starts. """ self.server.controller.updateProgressInfo ('Idle.', 2) # create a packet structure packet = IIS () packet.datain = self.rfile packet.dataout = self.wfile # decode the header size = struct.calcsize ('8h') line = packet.datain.read (size) n = len (line) if (n < size): return while (n): try: bytes = struct.unpack ('8h', line) except: sys.stderr.write ('PYIMTOOL: error unpacking the data.\n') for exctn in sys.exc_info(): sys.stderr.write (exctn) # verify checksum # DO SOMETHING! # decode the packet fields subunit = bytes[2] subunit077 = subunit & 077 tid = bytes[0] x = bytes[4] & 0177777 y = bytes[5] & 0177777 z = bytes[6] & 0177777 t = bytes[7] & 017777 ndatabytes = - bytes[1] # are the bytes packed? if (not (tid & PACKED)): ndatabytes *= 2 # populate the packet structure packet.subunit = subunit packet.subunit077 = subunit077 packet.tid = tid packet.x = x packet.y = y packet.z = z packet.t = t packet.nbytes = ndatabytes # decide what to do, depending on the # value of subunit if (packet.subunit077 == FEEDBACK): self.handleFeedback (packet) elif (packet.subunit077 == LUT): self.handleLut (packet) # read the next packet line = packet.datain.read (size) n = len (line) continue elif (packet.subunit077 == MEMORY): self.handleMemory (packet) # if (self.needsUpdate): # self.server.controller.animateProgressWeel () # read the next packet line = packet.datain.read (size) n = len (line) continue elif (packet.subunit077 == WCS): self.handleWCS (packet) line = packet.datain.read (size) n = len (line) continue elif (packet.subunit077 == IMCURSOR): self.handleImcursor (packet) line = packet.datain.read (size) n = len (line) continue else: # no-op pass if (not (packet.tid & IIS_READ)): # OK, discard the rest of the data nbytes = packet.nbytes while (nbytes > 0): if (nbytes < SZ_FIFOBUF): n = nbytes else: n = SZ_FIFOBUF m = self.rfile.read (n) if (m <= 0): break nbytes -= n # read the next packet line = packet.datain.read (size) n = len (line) if (n < size): return # <--- end of the while (n) loop self.server.controller.updateProgressInfo ('Done.', 2.0) if (self.needsUpdate): self.server.controller.displayImage () return
eb163fa149dbd928a3fa7b9842edc6170373d658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2360/eb163fa149dbd928a3fa7b9842edc6170373d658/RequestHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 261, 2890, 4672, 3536, 1220, 353, 1625, 326, 1301, 2542, 18, 3536, 365, 18, 3567, 18, 5723, 18, 2725, 5491, 966, 7707, 13834, 1093, 16, 576, 13, 225, 468, 752, 279, 4414, 3695, 4414, 273, 467, 5127, 1832, 4414, 18, 892, 267, 273, 365, 18, 86, 768, 4414, 18, 892, 659, 273, 365, 18, 91, 768, 225, 468, 2495, 326, 1446, 963, 273, 1958, 18, 12448, 1467, 7707, 28, 76, 6134, 980, 273, 4414, 18, 892, 267, 18, 896, 261, 1467, 13, 290, 273, 562, 261, 1369, 13, 309, 261, 82, 411, 963, 4672, 327, 225, 1323, 261, 82, 4672, 775, 30, 1731, 273, 1958, 18, 17309, 7707, 28, 76, 2187, 980, 13, 1335, 30, 2589, 18, 11241, 18, 2626, 7707, 16235, 3445, 26263, 30, 555, 6167, 310, 326, 501, 8403, 82, 6134, 364, 431, 299, 82, 316, 2589, 18, 10075, 67, 1376, 13332, 2589, 18, 11241, 18, 2626, 261, 338, 299, 82, 13, 225, 468, 3929, 6697, 468, 5467, 7460, 5277, 1360, 5, 225, 468, 2495, 326, 4414, 1466, 720, 4873, 273, 1731, 63, 22, 65, 720, 4873, 20, 4700, 273, 720, 4873, 473, 374, 4700, 11594, 273, 1731, 63, 20, 65, 619, 273, 1731, 63, 24, 65, 473, 374, 4033, 4700, 4700, 677, 273, 1731, 63, 25, 65, 473, 374, 4033, 4700, 4700, 998, 273, 1731, 63, 26, 65, 473, 374, 4033, 4700, 4700, 268, 273, 1731, 63, 27, 65, 473, 374, 4033, 14509, 290, 3404, 24383, 1078, 273, 300, 1731, 63, 21, 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, 1640, 261, 2890, 4672, 3536, 1220, 353, 1625, 326, 1301, 2542, 18, 3536, 365, 18, 3567, 18, 5723, 18, 2725, 5491, 966, 7707, 13834, 1093, 16, 576, 13, 225, 468, 752, 279, 4414, 3695, 4414, 273, 467, 5127, 1832, 4414, 18, 892, 267, 273, 365, 18, 86, 768, 4414, 18, 892, 659, 273, 365, 18, 91, 768, 225, 468, 2495, 326, 1446, 963, 273, 1958, 18, 12448, 1467, 7707, 28, 76, 6134, 980, 273, 4414, 18, 892, 267, 18, 896, 261, 1467, 13, 290, 273, 562, 261, 1369, 13, 309, 261, 82, 411, 963, 4672, 327, 225, 1323, 261, 82, 4672, 775, 30, 1731, 273, 1958, 18, 17309, 7707, 28, 76, 2187, 980, 13, 1335, 30, 2589, 18, 2 ]
def tearDown( self ) : if os.path.exists( self.outputFileName ) : os.remove( self.outputFileName )
def tearDown( self ) : if os.path.exists( self.outputFileName ) : os.remove( self.outputFileName )
def tearDown( self ) : if os.path.exists( self.outputFileName ) : os.remove( self.outputFileName )
3226fd684faf050b161b7fec70a80ccf91cb515a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9042/3226fd684faf050b161b7fec70a80ccf91cb515a/CurvesTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 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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, 268, 2091, 4164, 12, 365, 262, 294, 225, 309, 1140, 18, 803, 18, 1808, 12, 365, 18, 2844, 4771, 262, 294, 1140, 18, 4479, 12, 365, 18, 2844, 4771, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: duration = int (self.__metadata["duration"]) / gst.SECOND except KeyError: duration = 0 if duration == -1 or duration == 0:
duration = int(self.__metadata.get("duration", 0)) / gst.SECOND if duration == 0:
def on_finished (self, event): if event.id == operations.ERROR: self._propagate(event) return try: duration = int (self.__metadata["duration"]) / gst.SECOND except KeyError: duration = 0 if duration == -1 or duration == 0: self._send_finished_event(operations.ERROR) return self.__metadata["duration"] = duration evt = operations.Event (self) self._notify ("on_metadata", evt, self.__metadata) self.__metadata = None self.__element = None self._send_finished_event (operations.SUCCESSFUL)
016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 13527, 261, 2890, 16, 871, 4672, 309, 871, 18, 350, 422, 5295, 18, 3589, 30, 365, 6315, 5986, 346, 340, 12, 2575, 13, 327, 225, 3734, 273, 509, 12, 2890, 16186, 4165, 18, 588, 2932, 8760, 3113, 374, 3719, 342, 314, 334, 18, 16328, 225, 309, 3734, 422, 374, 30, 365, 6315, 4661, 67, 13527, 67, 2575, 12, 17542, 18, 3589, 13, 327, 225, 365, 16186, 4165, 9614, 8760, 11929, 273, 3734, 225, 6324, 273, 5295, 18, 1133, 261, 2890, 13, 365, 6315, 12336, 7566, 265, 67, 4165, 3113, 6324, 16, 365, 16186, 4165, 13, 225, 365, 16186, 4165, 273, 599, 365, 16186, 2956, 273, 599, 365, 6315, 4661, 67, 13527, 67, 2575, 261, 17542, 18, 12778, 42, 1506, 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, 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, 225, 309, 3734, 422, 374, 30, 365, 6315, 4661, 67, 13527, 67, 2575, 12, 17542, 18, 3589, 13, 327, 225, 365, 16186, 4165, 9614, 8760, 11929, 273, 3734, 225, 6324, 273, 5295, 18, 1133, 261, 2890, 13, 365, 6315, 12336, 7566, 265, 67, 4165, 3113, 6324, 16, 365, 16186, 4165, 13, 225, 365, 16186, 4165, 273, 599, 365, 16186, 2956, 273, 599, 365, 6315, 4661, 67, 13527, 67, 2575, 261, 17542, 18, 2 ]
static = ['options', 'installcolormap', 'initwait', 'statusbar', 'cursor']
static = ['options', 'installcolormap', 'initwait', 'statusbar', 'cursor']
def __init__(self, master=None, cnf={}, **kw): # static seem to be -installcolormap -initwait -statusbar -cursor static = ['options', 'installcolormap', 'initwait', 'statusbar', 'cursor'] TixWidget.__init__(self, master, 'tixBalloon', static, cnf, kw) self.subwidget_list['label'] = _dummyLabel(self, 'label', destroy_physically=0) self.subwidget_list['message'] = _dummyLabel(self, 'message', destroy_physically=0)
2c55b08db886232a6fd7f100f955f541567ab82d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c55b08db886232a6fd7f100f955f541567ab82d/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 468, 760, 19264, 358, 506, 300, 5425, 1293, 18804, 300, 2738, 7048, 300, 2327, 3215, 300, 9216, 760, 273, 10228, 2116, 2187, 296, 5425, 1293, 18804, 2187, 296, 2738, 7048, 2187, 296, 2327, 3215, 2187, 296, 9216, 3546, 399, 697, 4609, 16186, 2738, 972, 12, 2890, 16, 4171, 16, 296, 88, 697, 38, 287, 383, 265, 2187, 760, 16, 23118, 16, 5323, 13, 365, 18, 1717, 6587, 67, 1098, 3292, 1925, 3546, 273, 389, 21050, 2224, 12, 2890, 16, 296, 1925, 2187, 5546, 67, 844, 1900, 6478, 33, 20, 13, 365, 18, 1717, 6587, 67, 1098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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 468, 760, 19264, 358, 506, 300, 5425, 1293, 18804, 300, 2738, 7048, 300, 2327, 3215, 300, 9216, 760, 273, 10228, 2116, 2187, 296, 5425, 1293, 18804, 2187, 296, 2738, 7048, 2187, 296, 2327, 3215, 2187, 296, 9216, 3546, 399, 697, 4609, 16186, 2738, 972, 12, 2890, 16, 4171, 16, 296, 88, 697, 38, 287, 383, 265, 2187, 760, 16, 23118, 16, 5323, 13, 365, 18, 1717, 6587, 67, 1098, 3292, 1925, 3546, 273, 389, 21050, 2224, 12, 2890, 16, 296, 1925, 2187, 5546, 67, 844, 1900, 6478, 33, 20, 13, 365, 18, 1717, 6587, 67, 1098, 3292, 2150, 3546, 273, 389, 21050, 2224, 2 ]
exprn += reqtsDict[name].replace('NAME',name).replace('VALUE',str(value))+plus if len(plus): exprn = exprn[:-len(plus)]
exprn += reqtsDict[name].replace( 'NAME', name ).replace( 'VALUE', str( value ) ) + plus if len( plus ): exprn = exprn[:-len( plus )]
def _toJDL(self,xmlFile=''): #messy but need to account for xml file being in /tmp/guid dir """Creates a JDL representation of itself as a Job. """ #Check if we have to do old bootstrap... classadJob = ClassAd('[]')
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 46, 8914, 12, 2890, 16, 2902, 812, 2218, 11, 4672, 468, 81, 403, 93,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 46, 8914, 12, 2890, 16, 2902, 812, 2218, 11, 4672, 468, 81, 403, 93, 1496, 1608, 358, 2236, 364, 2025, 585, 3832, 316, 342, 5645, 19, 14066, 1577, 3536, 2729, 279, 804, 8914, 4335, 434, 6174, 487, 279, 3956, 18, 3536, 468, 1564, 309, 732, 1240, 358, 741, 1592, 7065, 2777, 667, 361, 2278, 273, 1659, 1871, 2668, 63, 3864, 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 ]
return self.readlines().join('')
return ''.join(self.readlines())
def read(self): # Note: no size argument -- read until EOF only! return self.readlines().join('')
0bba6c0ff4e2c058993f80cc13cc5b0a269ce8d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0bba6c0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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 4672, 468, 3609, 30, 1158, 963, 1237, 1493, 855, 3180, 6431, 1338, 5, 327, 365, 18, 896, 3548, 7675, 5701, 2668, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (len(DATA) != 0 and DATA[0] != ""):
if (len(DATA) != 0):
def create_record(begin_record_header, ending_record_footer, query_string, match_mode, Xcount): "Create output record" global data_parsed out_to_print = "" out = [] field_data_item_LIST = [] ssn5cnt = "%3d" % Xcount sysno = generate("DATE(%w%H%M%S)") sysno500 = generate("XDATE(%w%H%M%S)," + ssn5cnt) for T_tpl_item_LIST in target_tpl_parsed: # the line is printed only if the variables inside are not empty print_line = 0 to_output = [] rows = 1 for field_tpl_item_STRING in T_tpl_item_LIST[1]: DATA = [] if (field_tpl_item_STRING[:2]=="<:"): field_tpl_item_STRING = field_tpl_item_STRING[2:-2] field = field_tpl_item_STRING.split("::")[0] if (len(field_tpl_item_STRING.split("::")) == 1): value = generate(field) to_output.append([value]) else: subfield = field_tpl_item_STRING.split("::")[1] if (field[-1] == "*"): repetitive = 1 field = field[:-1] else: repetitive = 0 if dirmode: DATA = select_line(field, data_parsed) else: DATA = select_line(field, data_parsed) if (repetitive == 0): DATA = [string.join(DATA, " ")] SRC_TPL = select_line(field, source_tpl_parsed) try: if (DATA[0] != ""): DATA = get_subfields(DATA, subfield, SRC_TPL) FF = field_tpl_item_STRING.split("::") if (len(FF) > 2): FF = FF[2:] for fn in FF:
e36e5294ad2d41e928be4bc7f952ea56c88b7b15 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/e36e5294ad2d41e928be4bc7f952ea56c88b7b15/bibconvert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3366, 12, 10086, 67, 3366, 67, 3374, 16, 11463, 67, 3366, 67, 14723, 16, 843, 67, 1080, 16, 845, 67, 3188, 16, 1139, 1883, 4672, 315, 1684, 876, 1409, 6, 225, 2552, 501, 67, 10817, 225, 596, 67, 869, 67, 1188, 540, 273, 1408, 596, 5375, 273, 5378, 652, 67, 892, 67, 1726, 67, 7085, 273, 5378, 5202, 82, 25, 13085, 273, 2213, 23, 72, 6, 738, 1139, 1883, 2589, 2135, 7734, 273, 2103, 2932, 4594, 9275, 91, 9, 44, 9, 49, 9, 55, 2225, 13, 2589, 2135, 12483, 2398, 273, 2103, 2932, 60, 4594, 9275, 91, 9, 44, 9, 49, 9, 55, 3631, 6, 397, 5202, 82, 25, 13085, 13, 565, 364, 399, 67, 10933, 67, 1726, 67, 7085, 316, 1018, 67, 10933, 67, 10817, 30, 468, 326, 980, 353, 14099, 1338, 309, 326, 3152, 4832, 854, 486, 1008, 1172, 67, 1369, 273, 374, 358, 67, 2844, 273, 5378, 2595, 1377, 273, 404, 364, 652, 67, 10933, 67, 1726, 67, 5804, 316, 399, 67, 10933, 67, 1726, 67, 7085, 63, 21, 14542, 8730, 273, 5378, 309, 261, 1518, 67, 10933, 67, 1726, 67, 5804, 10531, 22, 65, 31713, 32, 2773, 4672, 652, 67, 10933, 67, 1726, 67, 5804, 273, 652, 67, 10933, 67, 1726, 67, 5804, 63, 22, 30, 17, 22, 65, 652, 273, 652, 67, 10933, 67, 1726, 67, 5804, 18, 4939, 2932, 30, 2773, 25146, 20, 65, 309, 261, 1897, 12, 1518, 67, 10933, 67, 1726, 67, 5804, 18, 4939, 2932, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3366, 12, 10086, 67, 3366, 67, 3374, 16, 11463, 67, 3366, 67, 14723, 16, 843, 67, 1080, 16, 845, 67, 3188, 16, 1139, 1883, 4672, 315, 1684, 876, 1409, 6, 225, 2552, 501, 67, 10817, 225, 596, 67, 869, 67, 1188, 540, 273, 1408, 596, 5375, 273, 5378, 652, 67, 892, 67, 1726, 67, 7085, 273, 5378, 5202, 82, 25, 13085, 273, 2213, 23, 72, 6, 738, 1139, 1883, 2589, 2135, 7734, 273, 2103, 2932, 4594, 9275, 91, 9, 44, 9, 49, 9, 55, 2225, 13, 2589, 2135, 12483, 2398, 273, 2103, 2932, 60, 4594, 9275, 91, 9, 44, 9, 49, 9, 55, 3631, 6, 397, 5202, 82, 25, 13085, 13, 565, 364, 399, 67, 10933, 2 ]
tab = [ [self[0]] ] for i in range(1,len(self)): if self[i-1].value > self[i].value: tab.append([self[i]]) else: l = len(tab)-1 tab[l].append(self[i]) return Tableau(tab)
shape = self.parent().shape.conjugate() tab = [] s = 0 for i in range(len(shape)): col = [ self[s+k] for k in range(shape[i]) ] col.reverse() s += shape[i] tab.append(col) tab = Tableau(tab) return(tab.conjugate())
def to_tableau(self):
32a3559acd5b97a7ee5e4709552657a21bace556 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/32a3559acd5b97a7ee5e4709552657a21bace556/tensor_product.py
[ 1, 8585, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2121, 8377, 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 ]
self.label.set_sensitive(False)
def __init__(self, content): gtk.HBox.__init__(self, False, 2) self.set_no_show_all(True)
337e2628519817abde9df50dbed69c769add8439 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 913, 4672, 22718, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 576, 13, 365, 18, 542, 67, 2135, 67, 4500, 67, 454, 12, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
exec compile(example.source, filename, "single", compileflags, 1) in test.globs self.debugger.set_continue()
exec(compile(example.source, filename, "single", compileflags, 1), test.globs) self.debugger.set_continue()
def __run(self, test, compileflags, out): SUCCESS, FAILURE, BOOM = range(3) # `outcome` state check = self._checker.check_output
b8f49ac140c4bcdad775a66ec9ed8977bd223553 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/b8f49ac140c4bcdad775a66ec9ed8977bd223553/docrunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 12, 2890, 16, 1842, 16, 4074, 7133, 16, 596, 4672, 16561, 16, 24077, 16, 9784, 1872, 273, 1048, 12, 23, 13, 468, 1375, 21672, 68, 919, 866, 273, 365, 6315, 19243, 18, 1893, 67, 2844, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 12, 2890, 16, 1842, 16, 4074, 7133, 16, 596, 4672, 16561, 16, 24077, 16, 9784, 1872, 273, 1048, 12, 23, 13, 468, 1375, 21672, 68, 919, 866, 273, 365, 6315, 19243, 18, 1893, 67, 2844, 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 ]
elif type == 'resource/x-bb-announcement':
elif res_type == 'resource/x-bb-announcement':
def convert_resources(self): for resource in self.manifest.iterfind('.//resource'): dat_name = resource.attrib['file'] xml = etree.parse(self.zip.open(dat_name))
44d3a90ab51205bf3bce4be15847de4b362fb7c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/44d3a90ab51205bf3bce4be15847de4b362fb7c9/bb9_course.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 4683, 12, 2890, 4672, 364, 1058, 316, 365, 18, 14357, 18, 2165, 4720, 2668, 18, 759, 3146, 11, 4672, 1150, 67, 529, 273, 1058, 18, 14588, 3292, 768, 3546, 2025, 273, 12031, 18, 2670, 12, 2890, 18, 4450, 18, 3190, 12, 3404, 67, 529, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 2670, 12, 2890, 18, 4450, 18, 3190, 12, 3404, 67, 529, 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 ]
if type(nb) is int and nb < len(res_comments): first_res_comments = res_comments[:nb]
if type(nb_comments) is int and nb_comments < len(res_comments): first_res_comments = res_comments[:nb_comments]
def get_first_comments_or_remarks(recID=-1, ln=cdslang, nb='all', voted=-1, reported=-1): """ Gets nb number comments/reviews or remarks. In the case of comments, will get both comments and reviews Comments and remarks sorted by most recent date, reviews sorted by highest helpful score @param recID: record id @param ln: language @param nb: number of comment/reviews or remarks to get @param voted: 1 if user has voted for a remark @param reported: 1 if user has reported a comment or review @return if comment, tuple (comments, reviews) both being html of first nb comments/reviews if remark, tuple (remakrs, None) """ warnings = [] errors = [] voted = wash_url_argument(voted, 'int') reported = wash_url_argument(reported, 'int') ## check recID argument if type(recID) is not int: return () if recID >= 1 or recID <= -100: #comment or remark if cfg_webcomment_allow_reviews: res_reviews = query_retrieve_comments_or_remarks(recID=recID, display_order="hh", ranking=1) nb_res_reviews = len(res_reviews) ## check nb argument if type(nb) is int and nb < len(res_reviews): first_res_reviews = res_reviews[:nb] else: if nb_res_reviews > cfg_webcomment_nb_reviews_in_detailed_view: first_res_reviews = res_reviews[:cfg_comment_nb_reports_before_send_email_to_admin] else: first_res_reviews = res_reviews if cfg_webcomment_allow_comments: res_comments = query_retrieve_comments_or_remarks(recID=recID, display_order="od", ranking=0) nb_res_comments = len(res_comments) ## check nb argument if type(nb) is int and nb < len(res_comments): first_res_comments = res_comments[:nb] else: if nb_res_comments > cfg_webcomment_nb_comments_in_detailed_view: first_res_comments = res_comments[:cfg_webcomment_nb_comments_in_detailed_view] else: first_res_comments = res_comments else: #error errors.append(('ERR_WEBCOMMENT_RECID_INVALID', recID)) #!FIXME dont return error anywhere since search page # comment if recID >= 1: comments = reviews = "" if reported > 0: warnings.append(('WRN_WEBCOMMENT_FEEDBACK_RECORDED_GREEN_TEXT',)) elif reported == 0: warnings.append(('WRN_WEBCOMMENT_FEEDBACK_NOT_RECORDED_RED_TEXT',)) if cfg_webcomment_allow_comments: # normal comments comments = webcomment_templates.tmpl_get_first_comments_without_ranking(recID, ln, first_res_comments, nb_res_comments, warnings) if cfg_webcomment_allow_reviews: # ranked comments #calculate average score avg_score = calculate_avg_score(res_reviews) if voted > 0: warnings.append(('WRN_WEBCOMMENT_FEEDBACK_RECORDED_GREEN_TEXT',)) elif voted == 0: warnings.append(('WRN_WEBCOMMENT_FEEDBACK_NOT_RECORDED_RED_TEXT',)) reviews = webcomment_templates.tmpl_get_first_comments_with_ranking(recID, ln, first_res_reviews, nb_res_reviews, avg_score, warnings) return (comments, reviews) # remark else: return(webcomment_templates.tmpl_get_first_remarks(first_res_comments, ln, nb_res_comments), None)
59b2f46200e058cd5c93d817edb4a6602269fb3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3302/59b2f46200e058cd5c93d817edb4a6602269fb3a/webcomment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3645, 67, 9231, 67, 280, 67, 2764, 27943, 12, 3927, 734, 29711, 21, 16, 7211, 33, 4315, 2069, 539, 16, 4264, 2218, 454, 2187, 331, 16474, 29711, 21, 16, 14010, 29711, 21, 4672, 3536, 11881, 4264, 1300, 5678, 19, 266, 7061, 578, 849, 27943, 18, 657, 326, 648, 434, 5678, 16, 903, 336, 3937, 5678, 471, 283, 7061, 23452, 471, 849, 27943, 3115, 635, 4486, 8399, 1509, 16, 283, 7061, 3115, 635, 9742, 28063, 4462, 632, 891, 1950, 734, 30, 1409, 612, 632, 891, 7211, 30, 2653, 632, 891, 4264, 30, 1300, 434, 2879, 19, 266, 7061, 578, 849, 27943, 358, 336, 632, 891, 331, 16474, 30, 404, 309, 729, 711, 331, 16474, 364, 279, 849, 1313, 632, 891, 14010, 30, 404, 309, 729, 711, 14010, 279, 2879, 578, 10725, 632, 2463, 309, 2879, 16, 3193, 261, 9231, 16, 283, 7061, 13, 3937, 3832, 1729, 434, 1122, 4264, 5678, 19, 266, 7061, 309, 849, 1313, 16, 3193, 261, 2764, 581, 5453, 16, 599, 13, 3536, 5599, 273, 5378, 1334, 273, 5378, 331, 16474, 273, 341, 961, 67, 718, 67, 3446, 12, 90, 16474, 16, 296, 474, 6134, 14010, 273, 341, 961, 67, 718, 67, 3446, 12, 266, 1798, 16, 296, 474, 6134, 225, 7541, 866, 1950, 734, 1237, 309, 618, 12, 3927, 734, 13, 353, 486, 509, 30, 327, 1832, 309, 1950, 734, 1545, 404, 578, 1950, 734, 1648, 300, 6625, 30, 468, 3469, 578, 849, 1313, 309, 2776, 67, 4875, 3469, 67, 5965, 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, 3645, 67, 9231, 67, 280, 67, 2764, 27943, 12, 3927, 734, 29711, 21, 16, 7211, 33, 4315, 2069, 539, 16, 4264, 2218, 454, 2187, 331, 16474, 29711, 21, 16, 14010, 29711, 21, 4672, 3536, 11881, 4264, 1300, 5678, 19, 266, 7061, 578, 849, 27943, 18, 657, 326, 648, 434, 5678, 16, 903, 336, 3937, 5678, 471, 283, 7061, 23452, 471, 849, 27943, 3115, 635, 4486, 8399, 1509, 16, 283, 7061, 3115, 635, 9742, 28063, 4462, 632, 891, 1950, 734, 30, 1409, 612, 632, 891, 7211, 30, 2653, 632, 891, 4264, 30, 1300, 434, 2879, 19, 266, 7061, 578, 849, 27943, 358, 336, 632, 891, 331, 16474, 30, 404, 309, 729, 711, 331, 16474, 364, 279, 849, 2 ]
self.definition = definition
self.definition = str(definition)
def __init__(self, parent, title, itemid, definition, amount = 1): MakeAction.__init__(self, parent, title) self.itemid = itemid self.definition = definition self.amount = amount self.otherhtml = '' self.materialshtml = '' self.skillshtml = '' self.hasdetails = 1
08fd4d21f876c63596100977b08ed1357780ec09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/08fd4d21f876c63596100977b08ed1357780ec09/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 16, 16862, 16, 2379, 16, 3844, 273, 404, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 16, 16862, 16, 2379, 16, 3844, 273, 404, 4672, 4344, 1803, 16186, 2738, 972, 12, 2890, 16, 982, 16, 2077, 13, 365, 18, 17252, 273, 16862, 365, 18, 6907, 273, 609, 12, 6907, 13, 365, 18, 8949, 273, 3844, 365, 18, 3011, 2620, 273, 875, 365, 18, 20542, 87, 2620, 273, 875, 365, 18, 7771, 737, 87, 2620, 273, 875, 365, 18, 5332, 6395, 273, 404, 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 ]
member = '"mailto:DEV-GROUP@host.com"'
member = 'mailto:DEV-GROUP@host.com'
def test_property(self): """Test to create, access and encode a property with or without parameters. """ # Property without parameter expected = ['SUMMARY:This is the summary\n']
4284d14984f2a4b3da93b77281110353f761aa67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/4284d14984f2a4b3da93b77281110353f761aa67/test_ical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4468, 12, 2890, 4672, 3536, 4709, 358, 752, 16, 2006, 471, 2017, 279, 1272, 598, 578, 2887, 1472, 18, 3536, 468, 4276, 2887, 1569, 2665, 273, 10228, 14020, 11293, 30, 2503, 353, 326, 4916, 64, 82, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4468, 12, 2890, 4672, 3536, 4709, 358, 752, 16, 2006, 471, 2017, 279, 1272, 598, 578, 2887, 1472, 18, 3536, 468, 4276, 2887, 1569, 2665, 273, 10228, 14020, 11293, 30, 2503, 353, 326, 4916, 64, 82, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Resets all ID fields."""
"""Reset all ID fields."""
def _resetID(self): """Resets all ID fields.""" # Dirty.. .=)) self._setID((None,) * len(self._sqlPrimary)) self._new = True
6f065d7f40e2cd8ad1cba00bf68d639f5bb58726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1051/6f065d7f40e2cd8ad1cba00bf68d639f5bb58726/forgetSQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6208, 734, 12, 2890, 4672, 3536, 7013, 777, 1599, 1466, 12123, 468, 463, 30012, 838, 1587, 3719, 365, 6315, 542, 734, 12443, 7036, 16, 13, 380, 562, 12, 2890, 6315, 4669, 6793, 3719, 365, 6315, 2704, 273, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6208, 734, 12, 2890, 4672, 3536, 7013, 777, 1599, 1466, 12123, 468, 463, 30012, 838, 1587, 3719, 365, 6315, 542, 734, 12443, 7036, 16, 13, 380, 562, 12, 2890, 6315, 4669, 6793, 3719, 365, 6315, 2704, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEquals('file', error.type) self.assertEquals('nosuchfile: not found', error.info)
self.assertEquals('file', error.type()) self.assertEquals('nosuchfile: not found', error.info())
def testError(self): tmpl = template.Template( { 'BLOCKS': { 'badinc': '[% INCLUDE nosuchfile %]' } }) self.assert_(not tmpl.process('badinc')) error = tmpl.error() self.assert_(error) self.assert_(isinstance(error, base.Exception)) self.assertEquals('file', error.type) self.assertEquals('nosuchfile: not found', error.info)
fa79ad39a61af067262479c4a935b54360d58ddd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1390/fa79ad39a61af067262479c4a935b54360d58ddd/error_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 668, 12, 2890, 4672, 10720, 273, 1542, 18, 2283, 12, 288, 296, 11403, 55, 4278, 288, 296, 8759, 9523, 4278, 21848, 28062, 26628, 2648, 768, 738, 3864, 289, 289, 13, 365, 18, 11231, 67, 12, 902, 10720, 18, 2567, 2668, 8759, 9523, 26112, 555, 273, 10720, 18, 1636, 1435, 365, 18, 11231, 67, 12, 1636, 13, 365, 18, 11231, 67, 12, 291, 1336, 12, 1636, 16, 1026, 18, 503, 3719, 365, 18, 11231, 8867, 2668, 768, 2187, 555, 18, 723, 13, 365, 18, 11231, 8867, 2668, 18050, 2648, 768, 30, 486, 1392, 2187, 555, 18, 1376, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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652, 1842, 668, 12, 2890, 4672, 10720, 273, 1542, 18, 2283, 12, 288, 296, 11403, 55, 4278, 288, 296, 8759, 9523, 4278, 21848, 28062, 26628, 2648, 768, 738, 3864, 289, 289, 13, 365, 18, 11231, 67, 12, 902, 10720, 18, 2567, 2668, 8759, 9523, 26112, 555, 273, 10720, 18, 1636, 1435, 365, 18, 11231, 67, 12, 1636, 13, 365, 18, 11231, 67, 12, 291, 1336, 12, 1636, 16, 1026, 18, 503, 3719, 365, 18, 11231, 8867, 2668, 768, 2187, 555, 18, 723, 13, 365, 18, 11231, 8867, 2668, 18050, 2648, 768, 30, 486, 1392, 2187, 555, 18, 1376, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'location_dest_id': produc_id
'location_dest_id': product_id
def onchange_operation_type(self, cr, uid, ids, type, guarantee_limit): """ On change of operation type it sets source location, destination location and to invoice field. @param product: Changed operation type. @param guarantee_limit: Guarantee limit of current record. @return: Dictionary of values. """ if not type: return {'value': { 'location_id': False, 'location_dest_id': False } } produc_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Production')])[0]
be1a8c1e604749abf7ee3480839b37552209b85e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/be1a8c1e604749abf7ee3480839b37552209b85e/mrp_repair.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 7624, 67, 723, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 18779, 67, 3595, 4672, 3536, 2755, 2549, 434, 1674, 618, 518, 1678, 1084, 2117, 16, 2929, 2117, 471, 358, 9179, 652, 18, 632, 891, 3017, 30, 27707, 1674, 618, 18, 632, 891, 18779, 67, 3595, 30, 6467, 9106, 73, 1800, 434, 783, 1409, 18, 632, 2463, 30, 16447, 434, 924, 18, 3536, 309, 486, 618, 30, 327, 13666, 1132, 4278, 288, 296, 3562, 67, 350, 4278, 1083, 16, 296, 3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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 7624, 67, 723, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 18779, 67, 3595, 4672, 3536, 2755, 2549, 434, 1674, 618, 518, 1678, 1084, 2117, 16, 2929, 2117, 471, 358, 9179, 652, 18, 632, 891, 3017, 30, 27707, 1674, 618, 18, 632, 891, 18779, 67, 3595, 30, 6467, 9106, 73, 1800, 434, 783, 1409, 18, 632, 2463, 30, 16447, 434, 924, 18, 3536, 309, 486, 618, 30, 327, 13666, 1132, 4278, 288, 296, 3562, 67, 350, 4278, 1083, 16, 296, 3562, 67, 10488, 67, 350, 4278, 1083, 289, 289, 4810, 71, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 16063, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2 ]
if type(obj) in [str, unicode, int, long, float, complex, bool, types.NoneType, types.FunctionType, types.LambdaType, types.MethodType, types.InstanceType]:
if _is_in(type(obj), [str, unicode, int, long, float, complex, bool, types.NoneType, types.FunctionType, types.LambdaType, types.MethodType, types.InstanceType]):
def _copy(self, obj): """ <Purpose> Create a deep copy of an object without using the python 'copy' module. Using copy.deepcopy() doesn't work because builtins like id and hasattr aren't available when this is called. <Arguments> self obj The object to make a deep copy of. <Exceptions> TypeError If an object is encountered that we don't know how to make a copy of. NamespaceViolationError If an unexpected error occurs while copying. This isn't the greatest solution, but in general the idea is we just need to abort the wrapped function call. <Side Effects> A new reference is created to every non-simple type of object. That is, everything except objects of type str, unicode, int, etc. <Returns> The deep copy of obj. """ try: # types.InstanceType is included because the user can provide an instance # of a class of their own in the list of callback args to settimer. if type(obj) in [str, unicode, int, long, float, complex, bool, types.NoneType, types.FunctionType, types.LambdaType, types.MethodType, types.InstanceType]: return obj elif type(obj) in [tuple, list, set, frozenset]: temp_list = [] for item in obj: temp_list.append(self._copy(item)) if type(obj) is tuple: return tuple(temp_list) elif type(obj) is set: return set(temp_list) elif type(obj) is frozenset: return frozenset(temp_list) else: return temp_list elif type(obj) is dict: temp_dict = {} for key in obj: temp_dict[key] = self._copy(obj[key]) return temp_dict # We don't copy certain objects. This is because copying an emulated file # object, for example, will cause the destructor of the original one to # be invoked, which will close the actual underlying file. As the object # is wrapped and the client does not have access to it, it's safe to not # wrap it. elif isinstance(obj, (NamespaceObjectWrapper, emulfile.emulated_file, emulcomm.emulated_socket, thread.LockType)): return obj else: raise TypeError("_copy is not implemented for objects of type " + str(type(obj))) except Exception, e: self._handle_violation("_copy failed on " + str(obj) + " with message " + str(e))
21f3c0e95b7b1702eeb6283f53d4f9d7960179d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/21f3c0e95b7b1702eeb6283f53d4f9d7960179d0/namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 1081, 4672, 3536, 411, 10262, 4150, 34, 1788, 279, 4608, 1610, 434, 392, 733, 2887, 1450, 326, 5790, 296, 3530, 11, 1605, 18, 11637, 1610, 18, 16589, 3530, 1435, 3302, 1404, 1440, 2724, 6650, 2679, 3007, 612, 471, 3859, 11526, 1404, 2319, 1347, 333, 353, 2566, 18, 411, 4628, 34, 365, 1081, 1021, 733, 358, 1221, 279, 4608, 1610, 434, 18, 411, 11416, 34, 3580, 971, 392, 733, 353, 9919, 716, 732, 2727, 1404, 5055, 3661, 358, 1221, 279, 1610, 434, 18, 6005, 11683, 668, 971, 392, 9733, 555, 9938, 1323, 8933, 18, 1220, 5177, 1404, 326, 18825, 395, 6959, 16, 1496, 316, 7470, 326, 21463, 353, 732, 2537, 1608, 358, 6263, 326, 5805, 445, 745, 18, 411, 8895, 30755, 87, 34, 432, 394, 2114, 353, 2522, 358, 3614, 1661, 17, 9647, 618, 434, 733, 18, 12466, 353, 16, 7756, 1335, 2184, 434, 618, 609, 16, 5252, 16, 509, 16, 5527, 18, 411, 1356, 34, 1021, 4608, 1610, 434, 1081, 18, 3536, 775, 30, 468, 1953, 18, 29123, 353, 5849, 2724, 326, 729, 848, 5615, 392, 791, 468, 434, 279, 667, 434, 3675, 4953, 316, 326, 666, 434, 1348, 833, 358, 444, 12542, 18, 309, 389, 291, 67, 267, 12, 723, 12, 2603, 3631, 306, 701, 16, 5252, 16, 509, 16, 1525, 16, 1431, 16, 7233, 16, 1426, 16, 1953, 18, 7036, 559, 16, 1953, 18, 2083, 559, 16, 1953, 18, 12025, 559, 16, 1953, 18, 21988, 16, 1953, 18, 29123, 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, 3530, 12, 2890, 16, 1081, 4672, 3536, 411, 10262, 4150, 34, 1788, 279, 4608, 1610, 434, 392, 733, 2887, 1450, 326, 5790, 296, 3530, 11, 1605, 18, 11637, 1610, 18, 16589, 3530, 1435, 3302, 1404, 1440, 2724, 6650, 2679, 3007, 612, 471, 3859, 11526, 1404, 2319, 1347, 333, 353, 2566, 18, 411, 4628, 34, 365, 1081, 1021, 733, 358, 1221, 279, 4608, 1610, 434, 18, 411, 11416, 34, 3580, 971, 392, 733, 353, 9919, 716, 732, 2727, 1404, 5055, 3661, 358, 1221, 279, 1610, 434, 18, 6005, 11683, 668, 971, 392, 9733, 555, 9938, 1323, 8933, 18, 1220, 5177, 1404, 326, 18825, 395, 6959, 16, 1496, 316, 7470, 326, 21463, 353, 732, 2537, 1608, 358, 6263, 326, 2 ]
self.prompt=u"[%s]: " % (string.join(prompt,"/"))
self.prompt=u" [%s]: " % (string.join(prompt,"/"))
def __init__(self,abortable,required,default,choice): InputWidget.__init__(self,abortable,required) from input import InputError self.single_choice=[] self.string_choice=[] self.range_choice=[] prompt=[] for c in choice: if type(c) in (StringType,UnicodeType): if len(c)==1: self.single_choice.append(c) else: self.string_choice.append(c) if c==default: prompt.append(c.upper()) else: prompt.append(c) elif type(c) is IntType: self.range_choice.append(xrange(c,c+1)) prompt.append(str(c)) elif type(c) is XRangeType: self.range_choice.append(c) p="%i-%i" % (c[0],c[-1]) if default in c: p+="(%i)" % (default,) prompt.append(p) else: raise InputError,"Bad choice value: %r" % (c,) self.prompt=u"[%s]: " % (string.join(prompt,"/")) self.content=u"" self.default=default self.pos=0
f9695375f92ac56051eb1897d17f9e4936f27b06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/f9695375f92ac56051eb1897d17f9e4936f27b06/choice_input.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 18623, 429, 16, 4718, 16, 1886, 16, 11569, 4672, 2741, 4609, 16186, 2738, 972, 12, 2890, 16, 18623, 429, 16, 4718, 13, 628, 810, 1930, 2741, 668, 365, 18, 7526, 67, 11569, 33, 8526, 365, 18, 1080, 67, 11569, 33, 8526, 365, 18, 3676, 67, 11569, 33, 8526, 6866, 33, 8526, 364, 276, 316, 6023, 30, 309, 618, 12, 71, 13, 316, 261, 780, 559, 16, 16532, 559, 4672, 309, 562, 12, 71, 13, 631, 21, 30, 365, 18, 7526, 67, 11569, 18, 6923, 12, 71, 13, 469, 30, 365, 18, 1080, 67, 11569, 18, 6923, 12, 71, 13, 309, 276, 631, 1886, 30, 6866, 18, 6923, 12, 71, 18, 5797, 10756, 469, 30, 6866, 18, 6923, 12, 71, 13, 1327, 618, 12, 71, 13, 353, 3094, 559, 30, 365, 18, 3676, 67, 11569, 18, 6923, 12, 92, 3676, 12, 71, 16, 71, 15, 21, 3719, 6866, 18, 6923, 12, 701, 12, 71, 3719, 1327, 618, 12, 71, 13, 353, 1139, 2655, 559, 30, 365, 18, 3676, 67, 11569, 18, 6923, 12, 71, 13, 293, 11613, 77, 6456, 77, 6, 738, 261, 71, 63, 20, 6487, 71, 18919, 21, 5717, 309, 805, 316, 276, 30, 293, 15, 1546, 9275, 77, 2225, 738, 261, 1886, 16, 13, 6866, 18, 6923, 12, 84, 13, 469, 30, 1002, 2741, 668, 10837, 6434, 6023, 460, 30, 738, 86, 6, 738, 261, 71, 16, 13, 365, 18, 13325, 33, 89, 6, 9799, 87, 14542, 315, 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, 18623, 429, 16, 4718, 16, 1886, 16, 11569, 4672, 2741, 4609, 16186, 2738, 972, 12, 2890, 16, 18623, 429, 16, 4718, 13, 628, 810, 1930, 2741, 668, 365, 18, 7526, 67, 11569, 33, 8526, 365, 18, 1080, 67, 11569, 33, 8526, 365, 18, 3676, 67, 11569, 33, 8526, 6866, 33, 8526, 364, 276, 316, 6023, 30, 309, 618, 12, 71, 13, 316, 261, 780, 559, 16, 16532, 559, 4672, 309, 562, 12, 71, 13, 631, 21, 30, 365, 18, 7526, 67, 11569, 18, 6923, 12, 71, 13, 469, 30, 365, 18, 1080, 67, 11569, 18, 6923, 12, 71, 13, 309, 276, 631, 1886, 30, 6866, 18, 6923, 12, 71, 18, 5797, 10756, 2 ]
def main(instr_path, dir_to_clean):
def clean_folder(instr_path, dir_to_clean): """ <Purpose> Given an instructions file and a directory, it will make sure that the directory matches the instructions, deleting files where necessary, printing errors where files are missing, and printing warnings where unrecognized files exist. <Arguments> instr_path: The location of the instructions file to be used. dir_to_clean: The location of the directory to be cleaned. <Exceptions> IllegalArgError on bad filepaths. ParseError on invalid instructions file. <Side Effects> None. <Returns> None. """
def main(instr_path, dir_to_clean): # First, get the required files and the files to be deleted (req_files, del_files) = parse_instructions(instr_path) req_files_found = [False for i in range(len(req_files))] unrecognized_files = [] if not os.path.exists(dir_to_clean): raise IllegalArgError("Given directory does not exist: " + dir_to_clean) for filename in os.listdir(dir_to_clean): deleted = False for del_file in del_files: if re.match(del_file, filename): deleted = True try: os.remove(dir_to_clean + "/" + filename) except OSError: # If it can't delete for some reason, move on pass if not deleted: required = False for i in range(len(req_files)): for part in req_files[i].split(","): part = part.strip() if re.match(part, filename): req_files_found[i] = True required = True if not required: unrecognized_files.append(filename) for filename in unrecognized_files: output("Warning: unrecognized file " + filename + " in " + dir_to_clean) for i in range(len(req_files)): if not req_files_found[i]: output("Error: required file " + req_files[i] + " not found in " + dir_to_clean)
958b93cb1e0f3ea2b72c48a31383e8c4d00d0ec3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7995/958b93cb1e0f3ea2b72c48a31383e8c4d00d0ec3/clean_folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 5609, 12, 267, 701, 67, 803, 16, 1577, 67, 869, 67, 6200, 4672, 3536, 411, 10262, 4150, 34, 16803, 392, 12509, 585, 471, 279, 1867, 16, 518, 903, 1221, 3071, 716, 326, 1867, 1885, 326, 12509, 16, 12993, 1390, 1625, 4573, 16, 19171, 1334, 1625, 1390, 854, 3315, 16, 471, 19171, 5599, 1625, 28333, 1390, 1005, 18, 225, 411, 4628, 34, 16170, 67, 803, 30, 1021, 2117, 434, 326, 12509, 585, 358, 506, 1399, 18, 1577, 67, 869, 67, 6200, 30, 1021, 2117, 434, 326, 1867, 358, 506, 9426, 18, 225, 411, 11416, 34, 2141, 4117, 668, 603, 5570, 3608, 87, 18, 17372, 603, 2057, 12509, 585, 18, 225, 411, 8895, 30755, 87, 34, 599, 18, 225, 411, 1356, 34, 599, 18, 3536, 468, 5783, 16, 336, 326, 1931, 1390, 471, 326, 1390, 358, 506, 4282, 261, 3658, 67, 2354, 16, 1464, 67, 2354, 13, 273, 1109, 67, 25758, 12, 267, 701, 67, 803, 13, 1111, 67, 2354, 67, 7015, 273, 306, 8381, 364, 277, 316, 1048, 12, 1897, 12, 3658, 67, 2354, 3719, 65, 28333, 67, 2354, 273, 5378, 309, 486, 1140, 18, 803, 18, 1808, 12, 1214, 67, 869, 67, 6200, 4672, 1002, 2141, 4117, 668, 2932, 6083, 1867, 1552, 486, 1005, 30, 315, 397, 1577, 67, 869, 67, 6200, 13, 364, 1544, 316, 1140, 18, 1098, 1214, 12, 1214, 67, 869, 67, 6200, 4672, 4282, 273, 1083, 364, 1464, 67, 768, 316, 1464, 67, 2354, 30, 309, 283, 18, 1916, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 5609, 12, 267, 701, 67, 803, 16, 1577, 67, 869, 67, 6200, 4672, 3536, 411, 10262, 4150, 34, 16803, 392, 12509, 585, 471, 279, 1867, 16, 518, 903, 1221, 3071, 716, 326, 1867, 1885, 326, 12509, 16, 12993, 1390, 1625, 4573, 16, 19171, 1334, 1625, 1390, 854, 3315, 16, 471, 19171, 5599, 1625, 28333, 1390, 1005, 18, 225, 411, 4628, 34, 16170, 67, 803, 30, 1021, 2117, 434, 326, 12509, 585, 358, 506, 1399, 18, 1577, 67, 869, 67, 6200, 30, 1021, 2117, 434, 326, 1867, 358, 506, 9426, 18, 225, 411, 11416, 34, 2141, 4117, 668, 603, 5570, 3608, 87, 18, 17372, 603, 2057, 12509, 585, 18, 225, 411, 8895, 30755, 87, 34, 599, 18, 2 ]
"""ButtonBox - A container for pushbuttons"""
"""ButtonBox - A container for pushbuttons. Subwidgets are the buttons added with the add method. """
def unbind_widget(self, widget): self.tk.call(self._w, 'unbind', widget._w)
48af83dadc128720a7642beb50800c6971404eb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/48af83dadc128720a7642beb50800c6971404eb9/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17449, 67, 6587, 12, 2890, 16, 3604, 4672, 365, 18, 16099, 18, 1991, 12, 2890, 6315, 91, 16, 296, 318, 4376, 2187, 3604, 6315, 91, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17449, 67, 6587, 12, 2890, 16, 3604, 4672, 365, 18, 16099, 18, 1991, 12, 2890, 6315, 91, 16, 296, 318, 4376, 2187, 3604, 6315, 91, 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 ]
print "=== Lookup for", start_word, "stopped" return
print "[update_completion_worker] === Lookup for", start_word, "stopped" break
def update_completion_worker(self): while True: print "Waiting for next update completion task" start_word, to_select = self.update_completion_q.get() self.update_completion_stopped = False print "update_completion_worker: will look for", start_word, "in", self.dictionaries.size(), "dictionaries" lang_word_list = {} skipped = util.ListMap() for lang in self.dictionaries.langs(): word_lookups = sdict.WordLookupByWord() for item in self.dictionaries.get_word_list_iter(lang, start_word): if self.update_completion_stopped: print "=== Lookup for", start_word, "stopped" return if isinstance(item, sdict.WordLookup): word_lookups[item.word].add_articles(item) else: skipped[item.dict].append(item) word_list = word_lookups.values() word_list.sort(key=str) if len (word_list) > 0: lang_word_list[lang] = word_list for dict, skipped_words in skipped.iteritems(): print "skipped %d words in %s" % (len(skipped_words), dict) for stats in dict.index(skipped_words): if self.update_completion_stopped: print "=== Indexing of", len(skipped_words), "in",dict, "stopped" break if not self.update_completion_stopped: gobject.idle_add(self.update_completion_callback, lang_word_list, to_select) else: print "=== Word list update finished, but stop request was received, will not update UI" self.update_completion_q.task_done()
2eaab3657626ca2843fa42964af0e31d029027df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/2eaab3657626ca2843fa42964af0e31d029027df/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 11469, 67, 10124, 12, 2890, 4672, 1323, 1053, 30, 1172, 315, 15946, 364, 1024, 1089, 8364, 1562, 6, 787, 67, 1095, 16, 358, 67, 4025, 273, 365, 18, 2725, 67, 11469, 67, 85, 18, 588, 1435, 365, 18, 2725, 67, 11469, 67, 24228, 273, 1083, 1172, 315, 2725, 67, 11469, 67, 10124, 30, 903, 2324, 364, 3113, 787, 67, 1095, 16, 315, 267, 3113, 365, 18, 72, 14336, 18, 1467, 9334, 315, 72, 14336, 6, 3303, 67, 1095, 67, 1098, 273, 2618, 9700, 273, 1709, 18, 682, 863, 1435, 364, 3303, 316, 365, 18, 72, 14336, 18, 4936, 87, 13332, 2076, 67, 8664, 87, 273, 272, 1576, 18, 3944, 6609, 858, 3944, 1435, 364, 761, 316, 365, 18, 72, 14336, 18, 588, 67, 1095, 67, 1098, 67, 2165, 12, 4936, 16, 787, 67, 1095, 4672, 309, 365, 18, 2725, 67, 11469, 67, 24228, 30, 1172, 5158, 2725, 67, 11469, 67, 10124, 65, 757, 8834, 364, 3113, 787, 67, 1095, 16, 315, 24228, 6, 898, 309, 1549, 12, 1726, 16, 272, 1576, 18, 3944, 6609, 4672, 2076, 67, 8664, 87, 63, 1726, 18, 1095, 8009, 1289, 67, 16462, 12, 1726, 13, 469, 30, 9700, 63, 1726, 18, 1576, 8009, 6923, 12, 1726, 13, 2076, 67, 1098, 273, 2076, 67, 8664, 87, 18, 2372, 1435, 2076, 67, 1098, 18, 3804, 12, 856, 33, 701, 13, 309, 562, 261, 1095, 67, 1098, 13, 405, 374, 30, 3303, 67, 1095, 67, 1098, 63, 4936, 65, 273, 2076, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 11469, 67, 10124, 12, 2890, 4672, 1323, 1053, 30, 1172, 315, 15946, 364, 1024, 1089, 8364, 1562, 6, 787, 67, 1095, 16, 358, 67, 4025, 273, 365, 18, 2725, 67, 11469, 67, 85, 18, 588, 1435, 365, 18, 2725, 67, 11469, 67, 24228, 273, 1083, 1172, 315, 2725, 67, 11469, 67, 10124, 30, 903, 2324, 364, 3113, 787, 67, 1095, 16, 315, 267, 3113, 365, 18, 72, 14336, 18, 1467, 9334, 315, 72, 14336, 6, 3303, 67, 1095, 67, 1098, 273, 2618, 9700, 273, 1709, 18, 682, 863, 1435, 364, 3303, 316, 365, 18, 72, 14336, 18, 4936, 87, 13332, 2076, 67, 8664, 87, 273, 272, 1576, 18, 3944, 6609, 858, 3944, 1435, 364, 761, 316, 2 ]
d.set_comments('This plugin work as text editor inside PIDA')
d.set_comments('This plugin works as text editor inside PIDA')
def about(self, mi): d = gtk.AboutDialog() d.set_name('Culebra Editor') d.set_version('0.2.3') d.set_copyright('Copyright © 2005 Fernando San Martín Woerner') d.set_comments('This plugin work as text editor inside PIDA') d.set_authors(['Fernando San Martín Woerner (fsmw@gnome.org)']) d.show()
0f525b61e6243365ac6f2740ddaa0261cedfc786 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/0f525b61e6243365ac6f2740ddaa0261cedfc786/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2973, 12, 2890, 16, 12837, 4672, 302, 273, 22718, 18, 24813, 6353, 1435, 302, 18, 542, 67, 529, 2668, 39, 725, 15397, 18451, 6134, 302, 18, 542, 67, 1589, 2668, 20, 18, 22, 18, 23, 6134, 302, 18, 542, 67, 29187, 2668, 2951, 4083, 225, 131, 107, 4044, 25, 478, 8865, 28630, 348, 304, 490, 485, 132, 260, 82, 678, 83, 264, 1224, 6134, 302, 18, 542, 67, 9231, 2668, 2503, 1909, 6330, 487, 977, 4858, 4832, 14788, 37, 6134, 302, 18, 542, 67, 19368, 12, 3292, 42, 8865, 28630, 348, 304, 490, 485, 132, 260, 82, 678, 83, 264, 1224, 261, 2556, 81, 91, 36, 1600, 1742, 18, 3341, 2506, 5717, 302, 18, 4500, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2973, 12, 2890, 16, 12837, 4672, 302, 273, 22718, 18, 24813, 6353, 1435, 302, 18, 542, 67, 529, 2668, 39, 725, 15397, 18451, 6134, 302, 18, 542, 67, 1589, 2668, 20, 18, 22, 18, 23, 6134, 302, 18, 542, 67, 29187, 2668, 2951, 4083, 225, 131, 107, 4044, 25, 478, 8865, 28630, 348, 304, 490, 485, 132, 260, 82, 678, 83, 264, 1224, 6134, 302, 18, 542, 67, 9231, 2668, 2503, 1909, 6330, 487, 977, 4858, 4832, 14788, 37, 6134, 302, 18, 542, 67, 19368, 12, 3292, 42, 8865, 28630, 348, 304, 490, 485, 132, 260, 82, 678, 83, 264, 1224, 261, 2556, 81, 91, 36, 1600, 1742, 18, 3341, 2506, 5717, 302, 18, 4500, 1435, 2, -100, -100 ]
print msg break
sys.exit()
def main(options): """ Main execution loop of the server. """ # config = get_conf('server') # LOG_FILE = config['log_file'] # LOG_LEVEL = config['log_level'] # SSL = get_bool(config['ssl']) # SSL_PRIVKEY = config['privkey_file'] # SSL_CERT = config['cert_file'] # CLIENT_PORT = int(config['client_port']) # PUBKEY_DATABASE = os.path.expanduser(config['pubkey_database']) # STATS_FILE = config['stats_file'] LOG_FILE = options.logfile LOG_LEVEL = options.loglevel SSL = get_bool(options.ssl) SSL_PRIVKEY = options.privkey SSL_CERT = options.cert CLIENT_PORT = options.port STATS_FILE = options.statsfile DB_FILE = options.dbfile FAILURE_THRESHOLD = options.job_failure_threshold # start logging startLogging(LOG_FILE) # Job database jobdb = JobDatabaseSQLite(db_file=DB_FILE, job_failure_threshold=FAILURE_THRESHOLD, log_file=LOG_FILE, log_level=LOG_LEVEL) # Worker database monitordb = MonitorDatabase(db_file=DB_FILE, log_file=LOG_FILE, log_level=LOG_LEVEL) # Client database clientdb = ClientDatabase() # Create the main DSage object dsage_server = DSageServer(jobdb, monitordb, clientdb, log_level=LOG_LEVEL) p = _SSHKeyPortalRoot(portal.Portal(Realm(dsage_server))) # Credentials checker p.portal.registerChecker(PublicKeyCredentialsCheckerDB(clientdb)) # HACK: unsafeTracebacks should eventually be TURNED off client_factory = pb.PBServerFactory(p, unsafeTracebacks=True) # Create the looping call that will output the XML file for Dashboard tsk1 = task.LoopingCall(write_stats, dsage_server, STATS_FILE) tsk1.start(5.0, now=False) # Create the PBServerFactory for workers # Use this for unauthorized workers # dsage_worker = DSageWorkerServer(jobdb, log_level=LOG_LEVEL) # worker_factory = WorkerPBServerFactory(dsage_worker) dsage_server.client_factory = client_factory attempts = 0 err_msg = "Could not find an open port after 50 attempts." NEW_CLIENT_PORT = CLIENT_PORT while True: if attempts > 50: log.err(err_msg) log.err('Last attempted port: %s' % (NEW_CLIENT_PORT)) sys.exit(-1) try: try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('', NEW_CLIENT_PORT)) port_used = True except socket.error, msg: port_used = False if not port_used: if SSL: ssl_context = ssl.DefaultOpenSSLContextFactory( SSL_PRIVKEY, SSL_CERT) reactor.listenSSL(NEW_CLIENT_PORT, client_factory, contextFactory = ssl_context) break else: reactor.listenTCP(NEW_CLIENT_PORT, client_factory) break else: raise SystemError('Trying to bind to open port: ' + '%s.' % (NEW_CLIENT_PORT)) except (SystemError, error.CannotListenError): attempts += 1 NEW_CLIENT_PORT += 1 except Exception, msg: if SSL: print 'Error starting server with SSL enabled, please ' + \ 'check your configuration' else: print 'Error starting server, please check your configuration' print msg break if CLIENT_PORT != NEW_CLIENT_PORT: log.msg(DELIMITER) log.msg("***NOTICE***") log.msg("Changing listening port in server.conf " + "to %s" % (NEW_CLIENT_PORT)) log.msg(DELIMITER) log.msg(DELIMITER) log.msg('DSAGE Server') log.msg('Started with PID: %s' % (os.getpid())) if SSL: log.msg('Using SSL: True') else: log.msg('Using SSL: False') log.msg('Listening on port: %s' % (NEW_CLIENT_PORT)) log.msg(DELIMITER) # Code below can be turned on to do countrefs # from sage.dsage.misc.countrefs import logInThread # logInThread(n=15) # reactor.callWhenRunning(create_manhole) # import pdb; pdb.set_trace() if options.noblock: reactor.run(installSignalHandlers=0) else: reactor.run(installSignalHandlers=1)
a071b032ff5b433666efb987d420ef707525ccb1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a071b032ff5b433666efb987d420ef707525ccb1/dsage_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 12740, 4588, 2798, 434, 326, 1438, 18, 225, 3536, 225, 468, 642, 273, 336, 67, 3923, 2668, 3567, 6134, 468, 2018, 67, 3776, 273, 642, 3292, 1330, 67, 768, 3546, 468, 2018, 67, 10398, 273, 642, 3292, 1330, 67, 2815, 3546, 468, 7419, 273, 336, 67, 6430, 12, 1425, 3292, 8157, 19486, 468, 7419, 67, 7698, 58, 3297, 273, 642, 3292, 11365, 856, 67, 768, 3546, 468, 7419, 67, 22367, 273, 642, 3292, 7593, 67, 768, 3546, 468, 16395, 67, 6354, 273, 509, 12, 1425, 3292, 2625, 67, 655, 19486, 468, 23295, 3297, 67, 22366, 273, 1140, 18, 803, 18, 12320, 1355, 12, 1425, 3292, 23428, 67, 6231, 19486, 468, 2347, 17813, 67, 3776, 273, 642, 3292, 5296, 67, 768, 3546, 225, 2018, 67, 3776, 273, 702, 18, 28806, 2018, 67, 10398, 273, 702, 18, 28189, 7419, 273, 336, 67, 6430, 12, 2116, 18, 8157, 13, 7419, 67, 7698, 58, 3297, 273, 702, 18, 11365, 856, 7419, 67, 22367, 273, 702, 18, 7593, 16395, 67, 6354, 273, 702, 18, 655, 2347, 17813, 67, 3776, 273, 702, 18, 5296, 768, 2383, 67, 3776, 273, 702, 18, 1966, 768, 24077, 67, 23840, 273, 702, 18, 4688, 67, 12251, 67, 8699, 225, 468, 787, 2907, 787, 7735, 12, 4842, 67, 3776, 13, 225, 468, 3956, 2063, 1719, 1966, 273, 3956, 4254, 3997, 1137, 12, 1966, 67, 768, 33, 2290, 67, 3776, 16, 1719, 67, 12251, 67, 8699, 33, 17623, 67, 23840, 16, 613, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 12740, 4588, 2798, 434, 326, 1438, 18, 225, 3536, 225, 468, 642, 273, 336, 67, 3923, 2668, 3567, 6134, 468, 2018, 67, 3776, 273, 642, 3292, 1330, 67, 768, 3546, 468, 2018, 67, 10398, 273, 642, 3292, 1330, 67, 2815, 3546, 468, 7419, 273, 336, 67, 6430, 12, 1425, 3292, 8157, 19486, 468, 7419, 67, 7698, 58, 3297, 273, 642, 3292, 11365, 856, 67, 768, 3546, 468, 7419, 67, 22367, 273, 642, 3292, 7593, 67, 768, 3546, 468, 16395, 67, 6354, 273, 509, 12, 1425, 3292, 2625, 67, 655, 19486, 468, 23295, 3297, 67, 22366, 273, 1140, 18, 803, 18, 12320, 1355, 12, 1425, 3292, 23428, 67, 6231, 19486, 468, 2347, 17813, 67, 2 ]
self.count = 0
def __init__(self, hdf, prefix='changeset.diff'): self.count = 0 self.block = [] self.ttype = None self.p_block = [] self.p_type = None self.hdf = hdf self.prefix = prefix self.changeno = 0 self.blockno = 0
5dca6282e50a01de0d2391edf83de1f9e93f7147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5dca6282e50a01de0d2391edf83de1f9e93f7147/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 24217, 16, 1633, 2218, 6329, 278, 18, 5413, 11, 4672, 365, 18, 2629, 273, 5378, 365, 18, 88, 723, 225, 273, 599, 365, 18, 84, 67, 2629, 273, 5378, 365, 18, 84, 67, 723, 225, 273, 599, 365, 18, 26428, 273, 24217, 365, 18, 3239, 273, 1633, 365, 18, 24083, 5764, 273, 374, 365, 18, 2629, 2135, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 24217, 16, 1633, 2218, 6329, 278, 18, 5413, 11, 4672, 365, 18, 2629, 273, 5378, 365, 18, 88, 723, 225, 273, 599, 365, 18, 84, 67, 2629, 273, 5378, 365, 18, 84, 67, 723, 225, 273, 599, 365, 18, 26428, 273, 24217, 365, 18, 3239, 273, 1633, 365, 18, 24083, 5764, 273, 374, 365, 18, 2629, 2135, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
%s """ % (start_string_prefix, uric, urilast, uric, urilast, uric, urilast, emailc, emailc, emailc, emailc, urilast, end_string_suffix,), re.VERBOSE))
%(end_string_suffix)s """ % locals(), re.VERBOSE))
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
a5c0eb6861885d1f50c31667ba475c9c99a4acf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/a5c0eb6861885d1f50c31667ba475c9c99a4acf6/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 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 ]
def update_equality_graph(eq_graph_edges, s, t, mat)
def update_equality_graph(eq_graph, s, t, mat, x_vec, y_vec):
def update_equality_graph(eq_graph_edges, s, t, mat) # update the equality graph based on the new labelings # only edges that contain the vertices in s and t need to be # checked. # add equality edges from s for x_el in s: row = y_vec[x_el.index] x_w = x_el.label_weight weight_row = mat[x_el.index] for y_el in row: y_w = y_el.label_weight w = weight_row[y_el.index] if (x_w + y_w) == w: eq_graph.add(x_el, y_el) else: eq_graph.remove(x_el, y_el) # add equality edges from t for y_el in t: offset = y_el.index y_w = y_el.label_weight for x_el, row in itertools.izip(x_vec, mat): x_w = x_el.label_weight w = mat[x_el.index][offset] if (x_w + y_w) == w: eq_graph.add(x_el, y_el) else: eq_graph.remove(x_el, y_el)
a2ad0dee0947cbc68b1113dad3dc27777f909fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11717/a2ad0dee0947cbc68b1113dad3dc27777f909fdb/partition_dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 9729, 560, 67, 4660, 12, 11253, 67, 4660, 16, 272, 16, 268, 16, 4834, 16, 619, 67, 8799, 16, 677, 67, 8799, 4672, 468, 1089, 326, 14958, 2667, 2511, 603, 326, 394, 1433, 899, 468, 282, 1338, 5231, 716, 912, 326, 6928, 316, 272, 471, 268, 1608, 358, 506, 468, 282, 5950, 18, 468, 527, 14958, 5231, 628, 272, 364, 619, 67, 292, 316, 272, 30, 1027, 273, 677, 67, 8799, 63, 92, 67, 292, 18, 1615, 65, 619, 67, 91, 273, 619, 67, 292, 18, 1925, 67, 4865, 3119, 67, 492, 273, 4834, 63, 92, 67, 292, 18, 1615, 65, 364, 677, 67, 292, 316, 1027, 30, 677, 67, 91, 273, 677, 67, 292, 18, 1925, 67, 4865, 341, 273, 3119, 67, 492, 63, 93, 67, 292, 18, 1615, 65, 309, 261, 92, 67, 91, 397, 677, 67, 91, 13, 422, 341, 30, 7555, 67, 4660, 18, 1289, 12, 92, 67, 292, 16, 677, 67, 292, 13, 469, 30, 7555, 67, 4660, 18, 4479, 12, 92, 67, 292, 16, 677, 67, 292, 13, 468, 527, 14958, 5231, 628, 268, 364, 677, 67, 292, 316, 268, 30, 1384, 273, 677, 67, 292, 18, 1615, 677, 67, 91, 273, 677, 67, 292, 18, 1925, 67, 4865, 364, 619, 67, 292, 16, 1027, 316, 13315, 18, 452, 625, 12, 92, 67, 8799, 16, 4834, 4672, 619, 67, 91, 273, 619, 67, 292, 18, 1925, 67, 4865, 341, 273, 4834, 63, 92, 67, 292, 18, 1615, 6362, 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, 67, 9729, 560, 67, 4660, 12, 11253, 67, 4660, 16, 272, 16, 268, 16, 4834, 16, 619, 67, 8799, 16, 677, 67, 8799, 4672, 468, 1089, 326, 14958, 2667, 2511, 603, 326, 394, 1433, 899, 468, 282, 1338, 5231, 716, 912, 326, 6928, 316, 272, 471, 268, 1608, 358, 506, 468, 282, 5950, 18, 468, 527, 14958, 5231, 628, 272, 364, 619, 67, 292, 316, 272, 30, 1027, 273, 677, 67, 8799, 63, 92, 67, 292, 18, 1615, 65, 619, 67, 91, 273, 619, 67, 292, 18, 1925, 67, 4865, 3119, 67, 492, 273, 4834, 63, 92, 67, 292, 18, 1615, 65, 364, 677, 67, 292, 316, 1027, 30, 677, 67, 91, 273, 677, 67, 292, 18, 2 ]
self.selenium.wait_for_condition(self._selenium_page_timeout)
self.selenium.wait_for_condition('window.selenium_ready == true', self._selenium_page_timeout)
def check_result(user): "Check if the user is alone in the result list" #Also check if the the results are right assert self.selenium.get_text(\ "//table[contains(@class, 'datatable')]/tbody/tr[last()]//td[2]") ==\ user
7686569c6e1eb1b3ab91cb4d767cf5f1ee14324c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7686569c6e1eb1b3ab91cb4d767cf5f1ee14324c/test_user_management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2088, 12, 1355, 4672, 315, 1564, 309, 326, 729, 353, 24068, 316, 326, 563, 666, 6, 468, 1067, 2048, 866, 309, 326, 326, 1686, 854, 2145, 1815, 365, 18, 1786, 17327, 18, 588, 67, 955, 4713, 16177, 2121, 63, 12298, 26964, 1106, 16, 296, 3404, 8163, 6134, 18537, 20779, 19, 313, 63, 2722, 1435, 65, 759, 4465, 63, 22, 4279, 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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, 2088, 12, 1355, 4672, 315, 1564, 309, 326, 729, 353, 24068, 316, 326, 563, 666, 6, 468, 1067, 2048, 866, 309, 326, 326, 1686, 854, 2145, 1815, 365, 18, 1786, 17327, 18, 588, 67, 955, 4713, 16177, 2121, 63, 12298, 26964, 1106, 16, 296, 3404, 8163, 6134, 18537, 20779, 19, 313, 63, 2722, 1435, 65, 759, 4465, 63, 22, 4279, 13, 422, 64, 729, 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 ]
self.statement=Redland.librdf_new_statement(__world__.world) def __del__(self): if __debug__:
self.statement=Redland.librdf_new_statement(_world.world) def __del__(self): global _debug if _debug:
def __init__(self, **args): """Create an RDF Statement (constructor).""" if __debug__: print "Creating RDF.statement object args",args self.statement=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 3536,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 3536, 1684, 392, 13539, 8056, 261, 12316, 13, 12123, 309, 1001, 4148, 972, 30, 1172, 315, 11092, 13539, 18, 11516, 733, 833, 3113, 1968, 365, 18, 11516, 33, 7036, 365, 18, 9156, 67, 3501, 33, 21, 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 ]
“Hyper-Star Graph: A New Interconnection Network Improving the Network Cost of the Hypercube.” In Proceedings of the First EurAsian
"Hyper-Star Graph: A New Interconnection Network Improving the Network Cost of the Hypercube." In Proceedings of the First EurAsian
def HyperStarGraph(self,n,k): r''' Returns the hyper star graph HS(n,k).
346077e6393b41e1dedbad030afee4bb67844281 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/346077e6393b41e1dedbad030afee4bb67844281/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18274, 18379, 4137, 12, 2890, 16, 82, 16, 79, 4672, 436, 26418, 2860, 326, 9512, 10443, 2667, 670, 55, 12, 82, 16, 79, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18274, 18379, 4137, 12, 2890, 16, 82, 16, 79, 4672, 436, 26418, 2860, 326, 9512, 10443, 2667, 670, 55, 12, 82, 16, 79, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return [('id', 'in', child_ids.get(uid,[]))]
return [('id', 'in', child_ids.get(uid, []))]
def _parent_search(self, cr, uid, obj, name, args, context=None): if context is None: context = {} parent = [] for arg in args: if arg[0] == 'parent_id': parent = arg[2] child_ids = self._child_compute(cr, uid, parent, name, args, context=context) if not child_ids: return [('id', 'in', [0])] return [('id', 'in', child_ids.get(uid,[]))]
096ec13381cfb6869abdf9d9e6d69469c89d8678 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/096ec13381cfb6869abdf9d9e6d69469c89d8678/hr_department.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2938, 67, 3072, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 982, 273, 5378, 364, 1501, 316, 833, 30, 309, 1501, 63, 20, 65, 422, 296, 2938, 67, 350, 4278, 982, 273, 1501, 63, 22, 65, 1151, 67, 2232, 273, 365, 6315, 3624, 67, 9200, 12, 3353, 16, 4555, 16, 982, 16, 508, 16, 833, 16, 819, 33, 2472, 13, 309, 486, 1151, 67, 2232, 30, 327, 306, 2668, 350, 2187, 296, 267, 2187, 306, 20, 5717, 65, 327, 306, 2668, 350, 2187, 296, 267, 2187, 1151, 67, 2232, 18, 588, 12, 1911, 16, 8526, 3719, 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, 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, 1501, 63, 20, 65, 422, 296, 2938, 67, 350, 4278, 982, 273, 1501, 63, 22, 65, 1151, 67, 2232, 273, 365, 6315, 3624, 67, 9200, 12, 3353, 16, 4555, 16, 982, 16, 508, 16, 833, 16, 819, 33, 2472, 13, 309, 486, 1151, 67, 2232, 30, 327, 306, 2668, 350, 2187, 296, 267, 2187, 306, 20, 5717, 65, 327, 306, 2668, 350, 2187, 296, 267, 2187, 1151, 67, 2232, 18, 588, 12, 1911, 16, 8526, 3719, 65, 2, -100, -100, -100 ]
if (not match or not match.group(1)) and vc_type in _version_controls:
if (not match or not match.group(1)) and vcs.get_backend(vc_type):
def parse_editable(editable_req): """Parses svn+http://blahblah@rev#egg=Foobar into a requirement (Foobar) and a URL""" url = editable_req if os.path.isdir(url) and os.path.exists(os.path.join(url, 'setup.py')): # Treating it as code that has already been checked out url = filename_to_url(url) if url.lower().startswith('file:'): return None, url for vc_type in _version_controls: if url.lower().startswith('%s:' % vc_type): url = '%s+' % vc_type + url if '+' not in url: if default_vcs: url = default_vcs + '+' + url else: raise InstallationError( '--editable=%s should be formatted with svn+URL, git+URL or hg+URL' % editable_req) vc_type = url.split('+', 1)[0].lower() if vc_type not in _version_controls: raise InstallationError( 'For --editable=%s only svn (svn+URL), Git (git+URL) and Mercurial (hg+URL) is currently supported' % editable_req) match = re.search(r'(?:#|#.*?&)egg=([^&]*)', editable_req) if (not match or not match.group(1)) and vc_type in _version_controls: parts = [p for p in editable_req.split('#', 1)[0].split('/') if p] if parts[-2] in ('tags', 'branches', 'tag', 'branch'): req = parts[-3] elif parts[-1] == 'trunk': req = parts[-2] else: raise InstallationError( '--editable=%s is not the right format; it must have #egg=Package' % editable_req) else: req = match.group(1) ## FIXME: use package_to_requirement? match = re.search(r'^(.*?)(?:-dev|-\d.*)', req) if match: # Strip off -dev, -0.2, etc. req = match.group(1) return req, url
404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 19653, 12, 19653, 67, 3658, 4672, 3536, 6656, 5893, 82, 15, 2505, 2207, 3083, 9795, 3083, 9795, 36, 9083, 7, 23171, 33, 42, 83, 947, 297, 1368, 279, 12405, 261, 42, 83, 947, 297, 13, 471, 279, 1976, 8395, 880, 273, 13754, 67, 3658, 309, 1140, 18, 803, 18, 291, 1214, 12, 718, 13, 471, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 718, 16, 296, 8401, 18, 2074, 26112, 30, 468, 399, 266, 1776, 518, 487, 981, 716, 711, 1818, 2118, 5950, 596, 880, 273, 1544, 67, 869, 67, 718, 12, 718, 13, 309, 880, 18, 8167, 7675, 17514, 1918, 2668, 768, 2497, 4672, 327, 599, 16, 880, 364, 12802, 67, 723, 316, 389, 1589, 67, 24350, 30, 309, 880, 18, 8167, 7675, 17514, 1918, 29909, 87, 2497, 738, 12802, 67, 723, 4672, 880, 273, 1995, 87, 6797, 738, 12802, 67, 723, 397, 880, 309, 10058, 486, 316, 880, 30, 309, 805, 67, 18982, 30, 880, 273, 805, 67, 18982, 397, 10058, 397, 880, 469, 30, 1002, 10284, 367, 668, 12, 3534, 19653, 5095, 87, 1410, 506, 4955, 598, 5893, 82, 15, 1785, 16, 5071, 15, 1785, 578, 22576, 15, 1785, 11, 738, 13754, 67, 3658, 13, 12802, 67, 723, 273, 880, 18, 4939, 2668, 15, 2187, 404, 25146, 20, 8009, 8167, 1435, 309, 12802, 67, 723, 486, 316, 389, 1589, 67, 24350, 30, 1002, 10284, 367, 668, 12, 296, 1290, 1493, 19653, 5095, 87, 1338, 5893, 82, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 19653, 12, 19653, 67, 3658, 4672, 3536, 6656, 5893, 82, 15, 2505, 2207, 3083, 9795, 3083, 9795, 36, 9083, 7, 23171, 33, 42, 83, 947, 297, 1368, 279, 12405, 261, 42, 83, 947, 297, 13, 471, 279, 1976, 8395, 880, 273, 13754, 67, 3658, 309, 1140, 18, 803, 18, 291, 1214, 12, 718, 13, 471, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 718, 16, 296, 8401, 18, 2074, 26112, 30, 468, 399, 266, 1776, 518, 487, 981, 716, 711, 1818, 2118, 5950, 596, 880, 273, 1544, 67, 869, 67, 718, 12, 718, 13, 309, 880, 18, 8167, 7675, 17514, 1918, 2668, 768, 2497, 4672, 327, 599, 16, 880, 364, 12802, 67, 2 ]
net_count = 0 "8005551213 > llin nets 2001 123 456 78 90"
count = 0
def testGenerateNetFixture(self): """ This isn't actually a test. It just takes advantage of the test harness to spam a bunch of messages to the supply app and spit out the data in a format that can be sucked into a fixture """ # this is the number of net reports that will be generated net_count = 0 "8005551213 > llin nets 2001 123 456 78 90" # the sender will always be the same, for now phone = "55555" expected_actual_match_percent = .8 # allow specifying the minimum and maximum dates for message generation min_date = datetime(2009,4,1) max_date = datetime(2009,4,30) min_time = time.mktime(min_date.timetuple()) max_time = time.mktime(max_date.timetuple()) # these are the locations that will be chosen. The actual # location will be a distribution point under one of these # wards wards = [200101, 200102, 200103, 200104, 200201] all_net_strings = [] for i in range(net_count): date = datetime.fromtimestamp(random.randint(min_time, max_time)) ward = Location.objects.get(code=random.choice(wards)) dp = random.choice(ward.children.all()) distributed = random.randint(50,500) expected = random.randint(0,2000) # create an actual amount based on the likelihood of match if random.random() < expected_actual_match_percent: actual = expected else: actual = random.randint(0,2000) discrepancy = random.randint(0,distributed/5) net_string = "%s@%s > llin nets %s %s %s %s %s" % (phone, date.strftime("%Y%m%d%H%M"), dp.code, distributed, expected, actual, discrepancy) all_net_strings.append(net_string) script = "\n".join(all_net_strings) self.runScript(script) dumpdata = Command() filename = os.path.abspath(os.path.join(os.path.dirname(__file__),"fixtures/test_net_data.json")) options = { "indent" : 2 } datadump = dumpdata.handle("nigeria", **options) # uncomment these lines to save the fixture #file = open(filename, "w") #file.write(datadump) #file.write(datadump) #file.close() #print "=== Successfully wrote fixtures to %s ===" % filename
da380eee6f7c5d277d18706ac990f23216dcd4f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/da380eee6f7c5d277d18706ac990f23216dcd4f5/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4625, 7308, 26392, 12, 2890, 4672, 3536, 1220, 5177, 1404, 6013, 279, 1842, 18, 225, 2597, 2537, 5530, 1261, 7445, 410, 434, 326, 1842, 366, 1303, 403, 358, 24824, 279, 25606, 434, 2743, 358, 326, 14467, 595, 471, 1694, 305, 596, 326, 501, 316, 279, 740, 716, 848, 506, 1597, 363, 329, 1368, 279, 16678, 3536, 468, 333, 353, 326, 1300, 434, 2901, 10557, 716, 903, 506, 4374, 1056, 273, 374, 225, 468, 326, 5793, 903, 3712, 506, 326, 1967, 16, 364, 2037, 7353, 273, 315, 27982, 25, 6, 225, 2665, 67, 18672, 67, 1916, 67, 8849, 273, 263, 28, 282, 468, 1699, 13664, 326, 5224, 471, 4207, 7811, 364, 883, 9377, 1131, 67, 712, 273, 3314, 12, 6976, 29, 16, 24, 16, 21, 13, 943, 67, 712, 273, 3314, 12, 6976, 29, 16, 24, 16, 5082, 13, 1131, 67, 957, 273, 813, 18, 24816, 957, 12, 1154, 67, 712, 18, 8584, 278, 2268, 10756, 943, 67, 957, 273, 813, 18, 24816, 957, 12, 1896, 67, 712, 18, 8584, 278, 2268, 10756, 225, 468, 4259, 854, 326, 7838, 716, 903, 506, 10447, 18, 225, 1021, 3214, 468, 2117, 903, 506, 279, 7006, 1634, 3613, 1245, 434, 4259, 468, 341, 14727, 341, 14727, 273, 306, 6976, 15168, 16, 4044, 20481, 16, 4044, 23494, 16, 4044, 21869, 16, 4044, 6734, 65, 777, 67, 2758, 67, 10219, 273, 5378, 364, 277, 316, 1048, 12, 2758, 67, 1883, 4672, 1509, 273, 3314, 18, 2080, 5508, 12, 9188, 18, 7884, 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, 1842, 4625, 7308, 26392, 12, 2890, 4672, 3536, 1220, 5177, 1404, 6013, 279, 1842, 18, 225, 2597, 2537, 5530, 1261, 7445, 410, 434, 326, 1842, 366, 1303, 403, 358, 24824, 279, 25606, 434, 2743, 358, 326, 14467, 595, 471, 1694, 305, 596, 326, 501, 316, 279, 740, 716, 848, 506, 1597, 363, 329, 1368, 279, 16678, 3536, 468, 333, 353, 326, 1300, 434, 2901, 10557, 716, 903, 506, 4374, 1056, 273, 374, 225, 468, 326, 5793, 903, 3712, 506, 326, 1967, 16, 364, 2037, 7353, 273, 315, 27982, 25, 6, 225, 2665, 67, 18672, 67, 1916, 67, 8849, 273, 263, 28, 282, 468, 1699, 13664, 326, 5224, 471, 4207, 7811, 364, 883, 9377, 1131, 67, 712, 273, 3314, 2 ]
server_data = { 'port': listen_port } server_data_json = simplejson.dumps(server_data) debug('sending server_data: %s' % server_data_json)
def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): print 'specified server cert file not found: ' + options.cert + \ ' exiting...' return for ca_cert in options.ssl_client_ca: if not os.path.isfile(ca_cert): print 'specified trusted client CA file not found: ' + ca_cert + \ ' exiting...' return server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert, options.ssl_client_auth, options.ssl_client_ca, options.ssl_bulk_cipher) print 'HTTPS server started on port %d...' % server.server_port else: server = StoppableHTTPServer(('127.0.0.1', port), TestPageHandler) print 'HTTP server started on port %d...' % server.server_port server.data_dir = MakeDataDir() server.file_root_url = options.file_root_url listen_port = server.server_port server._device_management_handler = None elif options.server_type == SERVER_SYNC: server = SyncHTTPServer(('127.0.0.1', port), SyncPageHandler) print 'Sync HTTP server started on port %d...' % server.server_port listen_port = server.server_port # means FTP Server else: my_data_dir = MakeDataDir() # Instantiate a dummy authorizer for managing 'virtual' users authorizer = pyftpdlib.ftpserver.DummyAuthorizer() # Define a new user having full r/w permissions and a read-only # anonymous user authorizer.add_user('chrome', 'chrome', my_data_dir, perm='elradfmw') authorizer.add_anonymous(my_data_dir) # Instantiate FTP handler class ftp_handler = pyftpdlib.ftpserver.FTPHandler ftp_handler.authorizer = authorizer # Define a customized banner (string returned when client connects) ftp_handler.banner = ("pyftpdlib %s based ftpd ready." % pyftpdlib.ftpserver.__ver__) # Instantiate FTP server class and listen to 127.0.0.1:port address = ('127.0.0.1', port) server = pyftpdlib.ftpserver.FTPServer(address, ftp_handler) listen_port = server.socket.getsockname()[1] print 'FTP server started on port %d...' % listen_port # Notify the parent that we've started. (BaseServer subclasses # bind their sockets on construction.) if options.startup_pipe is not None: server_data = { 'port': listen_port } server_data_json = simplejson.dumps(server_data) debug('sending server_data: %s' % server_data_json) if sys.platform == 'win32': fd = msvcrt.open_osfhandle(options.startup_pipe, 0) else: fd = options.startup_pipe startup_pipe = os.fdopen(fd, "w") # Write the listening port as a 2 byte value. This is _not_ using # network byte ordering since the other end of the pipe is on the same # machine. startup_pipe.write(struct.pack('@H', listen_port)) startup_pipe.close() try: server.serve_forever() except KeyboardInterrupt: print 'shutting down server' server.stop = True
e98ed6c2044d751b05eace99e5a3cf191ecda36b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/e98ed6c2044d751b05eace99e5a3cf191ecda36b/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, 2589, 18, 10283, 273, 1387, 8438, 92, 264, 12, 9499, 18, 10283, 16, 15204, 13, 2589, 18, 11241, 273, 1387, 8438, 92, 264, 12, 9499, 18, 11241, 16, 15204, 13, 225, 1756, 273, 702, 18, 655, 225, 309, 702, 18, 3567, 67, 723, 422, 15061, 67, 3693, 30, 309, 702, 18, 7593, 30, 468, 2231, 1807, 1221, 3071, 326, 3320, 585, 1704, 18, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 2116, 18, 7593, 4672, 1172, 296, 13827, 1438, 3320, 585, 486, 1392, 30, 296, 397, 702, 18, 7593, 397, 521, 296, 15702, 7821, 327, 364, 3474, 67, 7593, 316, 702, 18, 8157, 67, 2625, 67, 5353, 30, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 5353, 67, 7593, 4672, 1172, 296, 13827, 13179, 1004, 6425, 585, 486, 1392, 30, 296, 397, 3474, 67, 7593, 397, 521, 296, 15702, 7821, 327, 1438, 273, 18904, 2081, 12, 2668, 14260, 18, 20, 18, 20, 18, 21, 2187, 1756, 3631, 7766, 1964, 1503, 16, 702, 18, 7593, 16, 702, 18, 8157, 67, 2625, 67, 1944, 16, 702, 18, 8157, 67, 2625, 67, 5353, 16, 702, 18, 8157, 67, 14597, 67, 17094, 13, 1172, 296, 18657, 1438, 5746, 603, 1756, 738, 72, 7821, 738, 1438, 18, 3567, 67, 655, 469, 30, 1438, 273, 5131, 19586, 3693, 2081, 12, 2668, 14260, 18, 20, 18, 20, 18, 21, 2187, 1756, 3631, 7766, 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, 2774, 12, 2116, 16, 833, 4672, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, 2589, 18, 10283, 273, 1387, 8438, 92, 264, 12, 9499, 18, 10283, 16, 15204, 13, 2589, 18, 11241, 273, 1387, 8438, 92, 264, 12, 9499, 18, 11241, 16, 15204, 13, 225, 1756, 273, 702, 18, 655, 225, 309, 702, 18, 3567, 67, 723, 422, 15061, 67, 3693, 30, 309, 702, 18, 7593, 30, 468, 2231, 1807, 1221, 3071, 326, 3320, 585, 1704, 18, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 2116, 18, 7593, 4672, 1172, 296, 13827, 1438, 3320, 585, 486, 1392, 30, 296, 397, 702, 18, 7593, 397, 521, 296, 15702, 7821, 327, 364, 3474, 67, 7593, 2 ]
return f.rhs() - f.lhs()
s = symbolic_expression(f.rhs() - f.lhs()).function(*variables) return s
def equify(f): """ Returns the equation rewritten to give negative values when True, positive when False. EXAMPLES: sage: from sage.plot.contour_plot import equify sage: equify(x^2 < 2) x^2 - 2 sage: equify(x^2 > 2) 2 - x^2 """ import operator op = f.operator() if op is operator.gt or op is operator.ge: return f.rhs() - f.lhs() else: return f.lhs() - f.rhs()
53e7b825257a4b83d2112766abf7b79749cd0e7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/53e7b825257a4b83d2112766abf7b79749cd0e7f/contour_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1298, 1164, 12, 74, 4672, 3536, 2860, 326, 15778, 26768, 358, 8492, 6092, 924, 1347, 1053, 16, 6895, 1347, 1083, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 4032, 18, 1213, 477, 67, 4032, 1930, 1298, 1164, 272, 410, 30, 1298, 1164, 12, 92, 66, 22, 411, 576, 13, 619, 66, 22, 300, 576, 272, 410, 30, 1298, 1164, 12, 92, 66, 22, 405, 576, 13, 576, 300, 619, 66, 22, 3536, 1930, 3726, 1061, 273, 284, 18, 9497, 1435, 309, 1061, 353, 3726, 18, 4521, 578, 1061, 353, 3726, 18, 908, 30, 272, 273, 16754, 67, 8692, 12, 74, 18, 86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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1298, 1164, 12, 74, 4672, 3536, 2860, 326, 15778, 26768, 358, 8492, 6092, 924, 1347, 1053, 16, 6895, 1347, 1083, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 4032, 18, 1213, 477, 67, 4032, 1930, 1298, 1164, 272, 410, 30, 1298, 1164, 12, 92, 66, 22, 411, 576, 13, 619, 66, 22, 300, 576, 272, 410, 30, 1298, 1164, 12, 92, 66, 22, 405, 576, 13, 576, 300, 619, 66, 22, 3536, 1930, 3726, 1061, 273, 284, 18, 9497, 1435, 309, 1061, 353, 3726, 18, 4521, 578, 1061, 353, 3726, 18, 908, 30, 272, 273, 16754, 67, 8692, 12, 74, 18, 86, 4487, 1435, 300, 284, 18, 80, 4487, 1435, 2934, 915, 30857, 2 ]
else if isinstance(other,tuple):
elif isinstance(other,tuple):
def __mul__(self,other): if isinstance(other,int): minElements, optElements = other,0 else if isinstance(other,tuple): if len(other)==2: if isinstance(other[0],int) and isinstance(other[1],int)): minElements, optElements = other optElements -= minElements else: raise TypeError("cannot multiply 'ParserElement' and ('%s','%s') objects", type(other[0]),type(other[1])) else: raise TypeError("can only multiply 'ParserElement' and int or (int,int) objects") else: raise TypeError("cannot multiply 'ParserElement' and '%s' objects", type(other)) if minElements < 0: raise ValueError("cannot multiply ParserElement by negative value") if optElements < 0: raise ValueError("second tuple value must be greater or equal to first tuple value") if minElements == optElements == 0: raise ValueError("cannot multiply ParserElement by 0 or (0,0)") if (optElements): def makeOptionalList(n): if n>1: return Optional(self + makeOptionalList(n-1)) else: return Optional(self) if minElements: ret = And([self]*minElements)+ makeOptionalList(optElements) else: ret = makeOptionalList(optElements) else: ret = And([self]*minElements) return ret
67b5974c57a925760ac9dd44e40ea9dbe87e31fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12364/67b5974c57a925760ac9dd44e40ea9dbe87e31fb/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 3011, 4672, 309, 1549, 12, 3011, 16, 474, 4672, 1131, 3471, 16, 2153, 3471, 273, 1308, 16, 20, 1327, 1549, 12, 3011, 16, 8052, 4672, 309, 562, 12, 3011, 13, 631, 22, 30, 309, 1549, 12, 3011, 63, 20, 6487, 474, 13, 471, 1549, 12, 3011, 63, 21, 6487, 474, 3719, 30, 1131, 3471, 16, 2153, 3471, 273, 1308, 2153, 3471, 3947, 1131, 3471, 469, 30, 1002, 3580, 2932, 12892, 10194, 296, 2678, 1046, 11, 471, 7707, 9, 87, 17023, 9, 87, 6134, 2184, 3113, 618, 12, 3011, 63, 20, 65, 3631, 723, 12, 3011, 63, 21, 22643, 469, 30, 1002, 3580, 2932, 4169, 1338, 10194, 296, 2678, 1046, 11, 471, 509, 578, 261, 474, 16, 474, 13, 2184, 7923, 469, 30, 1002, 3580, 2932, 12892, 10194, 296, 2678, 1046, 11, 471, 1995, 87, 11, 2184, 3113, 618, 12, 3011, 3719, 225, 309, 1131, 3471, 411, 374, 30, 1002, 2068, 2932, 12892, 10194, 6783, 1046, 635, 6092, 460, 7923, 309, 2153, 3471, 411, 374, 30, 1002, 2068, 2932, 8538, 3193, 460, 1297, 506, 6802, 578, 3959, 358, 1122, 3193, 460, 7923, 309, 1131, 3471, 422, 2153, 3471, 422, 374, 30, 1002, 2068, 2932, 12892, 10194, 6783, 1046, 635, 374, 578, 261, 20, 16, 20, 2225, 13, 225, 309, 261, 3838, 3471, 4672, 1652, 1221, 6542, 682, 12, 82, 4672, 309, 290, 34, 21, 30, 327, 4055, 12, 2890, 397, 1221, 6542, 682, 12, 82, 17, 21, 3719, 469, 30, 327, 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, 16411, 972, 12, 2890, 16, 3011, 4672, 309, 1549, 12, 3011, 16, 474, 4672, 1131, 3471, 16, 2153, 3471, 273, 1308, 16, 20, 1327, 1549, 12, 3011, 16, 8052, 4672, 309, 562, 12, 3011, 13, 631, 22, 30, 309, 1549, 12, 3011, 63, 20, 6487, 474, 13, 471, 1549, 12, 3011, 63, 21, 6487, 474, 3719, 30, 1131, 3471, 16, 2153, 3471, 273, 1308, 2153, 3471, 3947, 1131, 3471, 469, 30, 1002, 3580, 2932, 12892, 10194, 296, 2678, 1046, 11, 471, 7707, 9, 87, 17023, 9, 87, 6134, 2184, 3113, 618, 12, 3011, 63, 20, 65, 3631, 723, 12, 3011, 63, 21, 22643, 469, 30, 1002, 3580, 2932, 4169, 1338, 10194, 296, 2678, 1046, 11, 471, 509, 2 ]
def test_triu_indices():
def test_triu_indices(self):
def test_triu_indices(): iu1 = triu_indices(4) iu2 = triu_indices(4, 2)
01362e33c84a2fb03d8b6ff66de866c2d1f9da95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/01362e33c84a2fb03d8b6ff66de866c2d1f9da95/test_twodim_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16857, 89, 67, 6836, 12, 2890, 4672, 277, 89, 21, 273, 6882, 89, 67, 6836, 12, 24, 13, 277, 89, 22, 273, 6882, 89, 67, 6836, 12, 24, 16, 576, 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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 6836, 12, 24, 13, 277, 89, 22, 273, 6882, 89, 67, 6836, 12, 24, 16, 576, 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 ]
import os
def import_all_modules_cmd(glpane): #bruce 080721 experimental del glpane import os from utilities.constants import CAD_SRC_PATH _original_cwd = os.getcwd() # so we can restore it before returning try: os.chdir(CAD_SRC_PATH) # this doesn't work, don't know why: ## pipe = os.popen("./tools/AllPyFiles.sh") ## modules = pipe.readlines() # IOError: [Errno 4] Interrupted system call ## pipe.close() # so try this instead: from platform_dependent.PlatformDependent import find_or_make_Nanorex_subdir tmpdir = find_or_make_Nanorex_subdir("TemporaryFiles") tmpfile = os.path.join( tmpdir, "_all_modules" ) os.system("./tools/AllPyFiles.sh > '%s'" % tmpfile) file1 = file(tmpfile, "rU") modules = file1.readlines() file1.close os.remove(tmpfile) print "will import %d modules" % len(modules) # 722 modules as of 080721! modules.sort() SKIP_THESE = ("_import_roots", "main", "ExecSubDir") import_these = [] for module in modules: module = module.strip() if module.startswith("./"): module = module[2:] basename = module assert os.path.exists(module), "should exist: %r" % (module,) assert module.endswith(".py"), "should end with .py: %r" % (module,) module = module[:-3] if module in SKIP_THESE or ' ' in module or '-' in module: # those funny chars can happen when developers have junk files lying around # todo: do a real regexp match, permit identifiers and '/' only; # or, only do this for files known to svn? print "skipping import of", basename continue import_these.append(module.replace('/', '.')) continue for module in import_these: statement = "import " + module try: exec statement except: print_compact_traceback("ignoring exception in %r: " % statement) pass print "done importing all modules" except: print_compact_traceback("ignoring exception: ") os.chdir(_original_cwd) return
8f7c7fd818831bb371b24f22dc79c158cd6b8f82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/8f7c7fd818831bb371b24f22dc79c158cd6b8f82/debug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 454, 67, 6400, 67, 4172, 12, 7043, 29009, 4672, 468, 2848, 3965, 374, 3672, 27, 5340, 23070, 1464, 5118, 29009, 225, 628, 22538, 18, 13358, 1930, 385, 1880, 67, 28413, 67, 4211, 225, 389, 8830, 67, 11089, 273, 1140, 18, 588, 11089, 1435, 468, 1427, 732, 848, 5217, 518, 1865, 5785, 225, 775, 30, 1140, 18, 343, 1214, 12, 39, 1880, 67, 28413, 67, 4211, 13, 225, 468, 333, 3302, 1404, 1440, 16, 2727, 1404, 5055, 11598, 30, 7541, 6010, 273, 1140, 18, 84, 3190, 2932, 18, 19, 6642, 19, 1595, 9413, 2697, 18, 674, 7923, 7541, 4381, 273, 6010, 18, 896, 3548, 1435, 468, 8340, 30, 306, 2524, 2135, 1059, 65, 7350, 2619, 745, 7541, 6010, 18, 4412, 1435, 225, 468, 1427, 775, 333, 3560, 30, 628, 4072, 67, 10891, 18, 8201, 18571, 1930, 1104, 67, 280, 67, 6540, 67, 10312, 479, 92, 67, 1717, 1214, 20213, 273, 1104, 67, 280, 67, 6540, 67, 10312, 479, 92, 67, 1717, 1214, 2932, 11685, 2697, 7923, 25613, 273, 1140, 18, 803, 18, 5701, 12, 20213, 16, 4192, 454, 67, 6400, 6, 262, 1140, 18, 4299, 2932, 18, 19, 6642, 19, 1595, 9413, 2697, 18, 674, 405, 1995, 87, 4970, 738, 25613, 13, 585, 21, 273, 585, 12, 5645, 768, 16, 315, 86, 57, 7923, 4381, 273, 585, 21, 18, 896, 3548, 1435, 585, 21, 18, 4412, 1140, 18, 4479, 12, 5645, 768, 13, 225, 1172, 315, 20194, 1930, 738, 72, 4381, 6, 738, 562, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 454, 67, 6400, 67, 4172, 12, 7043, 29009, 4672, 468, 2848, 3965, 374, 3672, 27, 5340, 23070, 1464, 5118, 29009, 225, 628, 22538, 18, 13358, 1930, 385, 1880, 67, 28413, 67, 4211, 225, 389, 8830, 67, 11089, 273, 1140, 18, 588, 11089, 1435, 468, 1427, 732, 848, 5217, 518, 1865, 5785, 225, 775, 30, 1140, 18, 343, 1214, 12, 39, 1880, 67, 28413, 67, 4211, 13, 225, 468, 333, 3302, 1404, 1440, 16, 2727, 1404, 5055, 11598, 30, 7541, 6010, 273, 1140, 18, 84, 3190, 2932, 18, 19, 6642, 19, 1595, 9413, 2697, 18, 674, 7923, 7541, 4381, 273, 6010, 18, 896, 3548, 1435, 468, 8340, 30, 306, 2524, 2135, 1059, 65, 7350, 2619, 745, 7541, 2 ]
asslength = stop - start if step != 1 or len(x) != asslength: sublist = self.tolist() sublist[i] = x.tolist() self._clear() self.fromlist(sublist) return self._data[start * self.itemsize : stop * self.itemsize] = x._data
boundary1 = start * self.itemsize boundary2 = stop * self.itemsize boundary2new = boundary1 + len(x._data) if boundary2 == boundary2new: self._data[boundary1:boundary2] = x._data else: newdata = bytebuffer(len(self._data) + boundary2new-boundary2) newdata[:boundary1] = self._data[:boundary1] newdata[boundary1:boundary2new] = x._data newdata[boundary2new:] = self._data[boundary2:] self._data = newdata
def __setitem__(self, i, x): if isinstance(i, slice): if (not isinstance(x, array) or self.typecode != x.typecode): raise TypeError("can only assign array of same kind" " to array slice") seqlength = len(self) start, stop, step = i.indices(seqlength) if start < 0: start = 0 if stop < start: stop = start assert stop <= seqlength asslength = stop - start if step != 1 or len(x) != asslength: sublist = self.tolist() # fall-back sublist[i] = x.tolist() self._clear() self.fromlist(sublist) return self._data[start * self.itemsize : stop * self.itemsize] = x._data else: seqlength = len(self) if i < 0: i += seqlength if self.typecode == 'c': # speed trick self._data[i] = x return if not (0 <= i < seqlength): raise IndexError(i) boundary = i * self.itemsize pack_into(self.typecode, self._data, boundary, x)
c28499ec7fee86434eb5d6df895c25dbc9db8b2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/c28499ec7fee86434eb5d6df895c25dbc9db8b2e/array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 277, 16, 619, 4672, 309, 1549, 12, 77, 16, 2788, 4672, 309, 261, 902, 1549, 12, 92, 16, 526, 13, 578, 365, 18, 723, 710, 480, 619, 18, 723, 710, 4672, 1002, 3580, 2932, 4169, 1338, 2683, 526, 434, 1967, 3846, 6, 315, 358, 526, 2788, 7923, 695, 1217, 1288, 273, 562, 12, 2890, 13, 787, 16, 2132, 16, 2235, 273, 277, 18, 6836, 12, 307, 1217, 1288, 13, 309, 787, 411, 374, 30, 787, 273, 374, 309, 2132, 411, 787, 30, 2132, 273, 787, 1815, 2132, 1648, 695, 1217, 1288, 1551, 2469, 273, 2132, 300, 787, 309, 2235, 480, 404, 578, 562, 12, 92, 13, 480, 1551, 2469, 30, 26680, 273, 365, 18, 3490, 376, 1435, 565, 468, 4159, 17, 823, 26680, 63, 77, 65, 273, 619, 18, 3490, 376, 1435, 365, 6315, 8507, 1435, 365, 18, 2080, 1098, 12, 87, 440, 376, 13, 327, 365, 6315, 892, 63, 1937, 380, 365, 18, 1726, 1467, 294, 2132, 380, 365, 18, 1726, 1467, 65, 273, 619, 6315, 892, 469, 30, 695, 1217, 1288, 273, 562, 12, 2890, 13, 309, 277, 411, 374, 30, 277, 1011, 695, 1217, 1288, 309, 365, 18, 723, 710, 422, 296, 71, 4278, 225, 468, 8632, 28837, 365, 6315, 892, 63, 77, 65, 273, 619, 327, 309, 486, 261, 20, 1648, 277, 411, 695, 1217, 1288, 4672, 1002, 10195, 12, 77, 13, 7679, 273, 277, 380, 365, 18, 1726, 1467, 2298, 67, 18591, 12, 2890, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 277, 16, 619, 4672, 309, 1549, 12, 77, 16, 2788, 4672, 309, 261, 902, 1549, 12, 92, 16, 526, 13, 578, 365, 18, 723, 710, 480, 619, 18, 723, 710, 4672, 1002, 3580, 2932, 4169, 1338, 2683, 526, 434, 1967, 3846, 6, 315, 358, 526, 2788, 7923, 695, 1217, 1288, 273, 562, 12, 2890, 13, 787, 16, 2132, 16, 2235, 273, 277, 18, 6836, 12, 307, 1217, 1288, 13, 309, 787, 411, 374, 30, 787, 273, 374, 309, 2132, 411, 787, 30, 2132, 273, 787, 1815, 2132, 1648, 695, 1217, 1288, 1551, 2469, 273, 2132, 300, 787, 309, 2235, 480, 404, 578, 562, 12, 92, 13, 480, 1551, 2469, 30, 26680, 2 ]
copyfile(stdinc_dir, inc_dir, fn)
copyfile(stdinc_dir, inc_dir)
def create_environment(home_dir, site_packages=True, clear=False): """ Creates a new environment in ``home_dir``. If ``site_packages`` is true (the default) then the global ``site-packages/`` directory will be on the path. If ``clear`` is true (default False) then the environment will first be cleared. """ if sys.platform == 'win32': lib_dir = join(home_dir, 'Lib') else: lib_dir = join(home_dir, 'lib', py_version) inc_dir = join(home_dir, 'include', py_version) if sys.platform == 'win32': bin_dir = join(home_dir, 'Scripts') else: bin_dir = join(home_dir, 'bin') if sys.executable.startswith(bin_dir): print 'Please use the *system* python to run this script' return if clear: rmtree(lib_dir) rmtree(inc_dir) ## FIXME: why not delete it? logger.notify('Not deleting %s', bin_dir) prefix = sys.prefix mkdir(lib_dir) fix_lib64(lib_dir) stdlib_dir = os.path.dirname(os.__file__) for fn in os.listdir(stdlib_dir): if fn != 'site-packages' and os.path.splitext(fn)[0] in REQUIRED_MODULES: copyfile(join(stdlib_dir, fn), join(lib_dir, fn)) mkdir(join(lib_dir, 'site-packages')) writefile(join(lib_dir, 'site.py'), SITE_PY) writefile(join(lib_dir, 'orig-prefix.txt'), prefix) site_packages_filename = join(lib_dir, 'no-global-site-packages.txt') if not site_packages: writefile(site_packages_filename, '') else: if os.path.exists(site_packages_filename): logger.info('Deleting %s' % site_packages_filename) os.unlink(site_packages_filename) stdinc_dir = join(prefix, 'include', py_version) if os.path.exists(stdinc_dir): copyfile(stdinc_dir, inc_dir, fn) else: logger.debug('No include dir %s' % stdinc_dir) if sys.exec_prefix != sys.prefix: if sys.platform == 'win32': exec_dir = join(sys.exec_prefix, 'lib') else: exec_dir = join(sys.exec_prefix, 'lib', py_version) for fn in os.listdir(exec_dir): copyfile(join(exec_dir, fn), join(lib_dir, fn)) mkdir(bin_dir) py_executable = join(bin_dir, os.path.basename(sys.executable)) logger.notify('New python executable in %s', py_executable) if sys.executable != py_executable: ## FIXME: could I just hard link? shutil.copyfile(sys.executable, py_executable) make_exe(py_executable) cmd = [py_executable, '-c', 'import sys; print sys.prefix'] logger.info('Testing executable with %s %s "%s"' % tuple(cmd)) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) proc_stdout, proc_stderr = proc.communicate() proc_stdout = os.path.normcase(os.path.abspath(proc_stdout.strip())) if proc_stdout != os.path.normcase(os.path.abspath(home_dir)): logger.fatal( 'ERROR: The executable %s is not functioning' % py_executable) logger.fatal( 'ERROR: It thinks sys.prefix is %r (should be %r)' % (proc_stdout, os.path.normcase(os.path.abspath(home_dir)))) logger.fatal( 'ERROR: virtualenv is not compatible with this system or executable') sys.exit(100) else: logger.info('Got sys.prefix result: %r' % proc_stdout) pydistutils = os.path.expanduser('~/.pydistutils.cfg') if os.path.exists(pydistutils): logger.notify('Please make sure you remove any previous custom paths from ' 'your %s file.' % pydistutils) install_setuptools(py_executable)
5b1de68d91b6740b4679a9645ada263a166dc964 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12981/5b1de68d91b6740b4679a9645ada263a166dc964/virtualenv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 10274, 12, 8712, 67, 1214, 16, 2834, 67, 10308, 33, 5510, 16, 2424, 33, 8381, 4672, 3536, 10210, 279, 394, 3330, 316, 12176, 8712, 67, 1214, 68, 8338, 225, 971, 12176, 4256, 67, 10308, 10335, 353, 638, 261, 5787, 805, 13, 1508, 326, 2552, 12176, 4256, 17, 10308, 19, 10335, 1867, 903, 506, 603, 326, 589, 18, 225, 971, 12176, 8507, 10335, 353, 638, 261, 1886, 1083, 13, 1508, 326, 3330, 903, 1122, 506, 16054, 18, 3536, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2561, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 5664, 6134, 469, 30, 2561, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 2941, 2187, 2395, 67, 1589, 13, 7290, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 6702, 2187, 2395, 67, 1589, 13, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 4158, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 15041, 6134, 469, 30, 4158, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 4757, 6134, 225, 309, 2589, 18, 17751, 18, 17514, 1918, 12, 4757, 67, 1214, 4672, 1172, 296, 8496, 999, 326, 380, 4299, 14, 5790, 358, 1086, 333, 2728, 11, 327, 225, 309, 2424, 30, 17941, 12, 2941, 67, 1214, 13, 17941, 12, 9523, 67, 1214, 13, 7541, 9852, 30, 11598, 486, 1430, 518, 35, 1194, 18, 12336, 2668, 1248, 12993, 738, 87, 2187, 4158, 67, 1214, 13, 225, 1633, 273, 2589, 18, 3239, 6535, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 10274, 12, 8712, 67, 1214, 16, 2834, 67, 10308, 33, 5510, 16, 2424, 33, 8381, 4672, 3536, 10210, 279, 394, 3330, 316, 12176, 8712, 67, 1214, 68, 8338, 225, 971, 12176, 4256, 67, 10308, 10335, 353, 638, 261, 5787, 805, 13, 1508, 326, 2552, 12176, 4256, 17, 10308, 19, 10335, 1867, 903, 506, 603, 326, 589, 18, 225, 971, 12176, 8507, 10335, 353, 638, 261, 1886, 1083, 13, 1508, 326, 3330, 903, 1122, 506, 16054, 18, 3536, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2561, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 5664, 6134, 469, 30, 2561, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 2941, 2187, 2395, 67, 2 ]
event=DataPool.Event(DataPool.Event.updated_value, new_data_name)
event=DataPool.Event(DataPool.Event.updated_value, new_data_name)
def display_source_changed_event(self, widget, data=None): new_data_name = self.source_list_current() if (self.displayed_data[0] is None and new_data_name==u"None"): return if (self.displayed_data[0]==new_data_name): return if self.displayed_data[1] is not None and hasattr(self.displayed_data[1], "unregister_listener"): self.displayed_data[1].unregister_listener(self.datastructures_listener) self.displayed_data[1]=None # register new one if new_data_name==u"None": self.display_source_path_label.set_label(u"") self.displayed_data=[None,None] self.clear_display() elif self.data_pool is None or new_data_name not in self.data_pool: none_iter=self.source_list_find([u'None']) if none_iter is not None: self.display_source_combobox.set_active_iter(none_iter) self.display_source_path_label.set_label(u"") else: new_data_struct=self.data_pool[new_data_name] if hasattr(new_data_struct, "register_listener"): new_data_struct.register_listener(self.datastructures_listener) self.displayed_data=[new_data_name, new_data_struct] dirpart=new_data_name.rfind("/") if dirpart>=0: self.display_source_path_label.set_label(u"in "+new_data_name[:dirpart]) else: self.display_source_path_label.set_label(u"") self.clear_display() # renew display via idle event self.update_counter_lock.acquire() self.update_counter+=1 self.update_counter_lock.release() event=DataPool.Event(DataPool.Event.updated_value, new_data_name) gobject.idle_add(self.datapool_idle_listener,event,priority=gobject.PRIORITY_DEFAULT_IDLE)
85cb9b4d7b72c3f6f26aa81a84e23575d4d02d97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2646/85cb9b4d7b72c3f6f26aa81a84e23575d4d02d97/DamarisGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 3168, 67, 6703, 67, 2575, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 225, 394, 67, 892, 67, 529, 273, 365, 18, 3168, 67, 1098, 67, 2972, 1435, 309, 261, 2890, 18, 5417, 329, 67, 892, 63, 20, 65, 353, 599, 471, 394, 67, 892, 67, 529, 631, 89, 6, 7036, 6, 4672, 327, 309, 261, 2890, 18, 5417, 329, 67, 892, 63, 20, 65, 631, 2704, 67, 892, 67, 529, 4672, 327, 309, 365, 18, 5417, 329, 67, 892, 63, 21, 65, 353, 486, 599, 471, 3859, 12, 2890, 18, 5417, 329, 67, 892, 63, 21, 6487, 315, 318, 4861, 67, 12757, 6, 4672, 365, 18, 5417, 329, 67, 892, 63, 21, 8009, 318, 4861, 67, 12757, 12, 2890, 18, 13178, 8813, 1823, 67, 12757, 13, 365, 18, 5417, 329, 67, 892, 63, 21, 65, 33, 7036, 468, 1744, 394, 1245, 309, 394, 67, 892, 67, 529, 631, 89, 6, 7036, 6877, 365, 18, 5417, 67, 3168, 67, 803, 67, 1925, 18, 542, 67, 1925, 12, 89, 3660, 13, 365, 18, 5417, 329, 67, 892, 22850, 7036, 16, 7036, 65, 365, 18, 8507, 67, 5417, 1435, 1327, 365, 18, 892, 67, 6011, 353, 599, 578, 394, 67, 892, 67, 529, 486, 316, 365, 18, 892, 67, 6011, 30, 6555, 67, 2165, 33, 2890, 18, 3168, 67, 1098, 67, 4720, 3816, 89, 11, 7036, 19486, 309, 6555, 67, 2165, 353, 486, 599, 30, 365, 18, 5417, 67, 3168, 67, 9301, 27570, 18, 542, 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, 2562, 67, 3168, 67, 6703, 67, 2575, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 225, 394, 67, 892, 67, 529, 273, 365, 18, 3168, 67, 1098, 67, 2972, 1435, 309, 261, 2890, 18, 5417, 329, 67, 892, 63, 20, 65, 353, 599, 471, 394, 67, 892, 67, 529, 631, 89, 6, 7036, 6, 4672, 327, 309, 261, 2890, 18, 5417, 329, 67, 892, 63, 20, 65, 631, 2704, 67, 892, 67, 529, 4672, 327, 309, 365, 18, 5417, 329, 67, 892, 63, 21, 65, 353, 486, 599, 471, 3859, 12, 2890, 18, 5417, 329, 67, 892, 63, 21, 6487, 315, 318, 4861, 67, 12757, 6, 4672, 365, 18, 5417, 329, 67, 892, 63, 21, 8009, 318, 2 ]
print 1
def parsetext(text): """ parsetext(text) -> dict() Tokenizes a body of text and returns a dictionary containing a set of features located within the text. 'start': the byte offset of '<s>' tags found in the text. 'end': the byte offset of '</s>' tags found in the text. 'email': the byte offset and text of emails found in the text. 'date': the byte offset and text of date like strings found. 'time': the byte offset and text of time like strings found. 'year': the byte offset and text of year like strings found. 'float': the byte offset and text of floating point numbers found. 'copyright':the byte offset and text of copyright strings and symbols. includes 'opyright', '(c)', and the copyright characters. 'tokens': the byte offset and text of white space split tokens. this also includes the characters located between alphanumeric characters. """ stuff = {} print 0 text = RE_ANDOR.sub('and or',text) (temp, text) = findall_erase(RE_COMMENT, text) print 1 (stuff['start'], text) = findall_erase(RE_START, text) print 2 (stuff['end'], text) = findall_erase(RE_END, text) print 3 (stuff['email'], text) = findall_erase(RE_EMAIL, text) print 4 (stuff['url'], text) = findall_erase(RE_URL, text) # (stuff['path'], text) = findall_erase(RE_PATH, text) print 5 #(stuff['date'], text) = findall_erase(RE_DATE, text) print 6 #(stuff['time'], text) = findall_erase(RE_TIME, text) print 7 (stuff['year'], text) = findall_erase(RE_YEAR, text) print 8 (stuff['float'], text) = findall_erase(RE_FLOAT, text) print 9 (stuff['copyright'], text) = findall_erase(RE_COPYRIGHT, text) print 10 (stuff['tokens'], text) = findall_erase(RE_TOKEN, text) print 11 # we replace the original information extracted from the text with place # holders so we can learn a generic trend in the structure of the # documents. stuff['tokens'].extend([['XXXstartXXX', stuff['start'][i][1], stuff['start'][i][2]] for i in range(len(stuff['start']))]) stuff['tokens'].extend([['XXXendXXX', stuff['end'][i][1], stuff['end'][i][2]] for i in range(len(stuff['end']))]) stuff['tokens'].extend([['XXXemailXXX', stuff['email'][i][1], stuff['email'][i][2]] for i in range(len(stuff['email']))]) stuff['tokens'].extend([['XXXurlXXX', stuff['url'][i][1], stuff['url'][i][2]] for i in range(len(stuff['url']))]) # stuff['tokens'].extend([['XXXpathXXX', stuff['path'][i][1], stuff['path'][i][2]] for i in range(len(stuff['path']))]) # stuff['tokens'].extend([['XXXdateXXX', stuff['date'][i][1], stuff['date'][i][2]] for i in range(len(stuff['date']))]) # stuff['tokens'].extend([['XXXtimeXXX', stuff['time'][i][1], stuff['time'][i][2]] for i in range(len(stuff['time']))]) stuff['tokens'].extend([['XXXyearXXX', stuff['year'][i][1], stuff['year'][i][2]] for i in range(len(stuff['year']))]) stuff['tokens'].extend([['XXXfloatXXX', stuff['float'][i][1], stuff['float'][i][2]] for i in range(len(stuff['float']))]) stuff['tokens'].extend([['XXXcopyrightXXX', stuff['copyright'][i][1], stuff['copyright'][i][2]] for i in range(len(stuff['copyright']))]) stuff['tokens'].sort(token_sort) return stuff
c9bff2a47221cbe589c7c2da84104eab2fe9431c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6959/c9bff2a47221cbe589c7c2da84104eab2fe9431c/copyright_library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 542, 408, 12, 955, 4672, 3536, 779, 542, 408, 12, 955, 13, 317, 2065, 1435, 225, 3155, 3128, 279, 1417, 434, 977, 471, 1135, 279, 3880, 4191, 279, 444, 434, 4467, 13801, 3470, 326, 977, 18, 225, 296, 1937, 4278, 565, 326, 1160, 1384, 434, 296, 1, 11, 2342, 1392, 316, 326, 977, 18, 296, 409, 4278, 1377, 326, 1160, 1384, 434, 296, 2, 11, 2342, 1392, 316, 326, 977, 18, 296, 3652, 4278, 565, 326, 1160, 1384, 471, 977, 434, 14255, 1392, 316, 326, 977, 18, 296, 712, 4278, 377, 326, 1160, 1384, 471, 977, 434, 1509, 3007, 2064, 1392, 18, 296, 957, 4278, 377, 326, 1160, 1384, 471, 977, 434, 813, 3007, 2064, 1392, 18, 296, 6874, 4278, 377, 326, 1160, 1384, 471, 977, 434, 3286, 3007, 2064, 1392, 18, 296, 5659, 4278, 565, 326, 1160, 1384, 471, 977, 434, 13861, 1634, 5600, 1392, 18, 296, 29187, 4278, 5787, 1160, 1384, 471, 977, 434, 22245, 2064, 471, 7963, 18, 6104, 296, 1101, 4083, 2187, 7747, 71, 13, 2187, 471, 326, 22245, 3949, 18, 296, 7860, 4278, 282, 326, 1160, 1384, 471, 977, 434, 9578, 3476, 1416, 2430, 18, 333, 2546, 6104, 326, 3949, 13801, 3086, 27374, 3949, 18, 3536, 10769, 273, 2618, 225, 1172, 374, 225, 977, 273, 2438, 67, 4307, 916, 18, 1717, 2668, 464, 578, 2187, 955, 13, 261, 5814, 16, 977, 13, 273, 11842, 67, 264, 448, 12, 862, 67, 12200, 16, 977, 13, 225, 261, 334, 3809, 3292, 1937, 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, 779, 542, 408, 12, 955, 4672, 3536, 779, 542, 408, 12, 955, 13, 317, 2065, 1435, 225, 3155, 3128, 279, 1417, 434, 977, 471, 1135, 279, 3880, 4191, 279, 444, 434, 4467, 13801, 3470, 326, 977, 18, 225, 296, 1937, 4278, 565, 326, 1160, 1384, 434, 296, 1, 11, 2342, 1392, 316, 326, 977, 18, 296, 409, 4278, 1377, 326, 1160, 1384, 434, 296, 2, 11, 2342, 1392, 316, 326, 977, 18, 296, 3652, 4278, 565, 326, 1160, 1384, 471, 977, 434, 14255, 1392, 316, 326, 977, 18, 296, 712, 4278, 377, 326, 1160, 1384, 471, 977, 434, 1509, 3007, 2064, 1392, 18, 296, 957, 4278, 377, 326, 1160, 1384, 471, 977, 434, 813, 3007, 2064, 1392, 18, 2 ]
self.done.remove(page)
if page in self.done: self.done.remove(page)
def workDone(self, counter): """ This is called by a worker to tell us that the promised work was completed as far as possible. The only argument is an instance of a counter class, that has methods minus() and plus() to keep counts of the total work todo. """ # Loop over all the pages that should have been taken care of for page in self.pending: # Mark the page as done self.done.append(page)
10ff301375f1bd347d43a0e412ebd05500fd052a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/10ff301375f1bd347d43a0e412ebd05500fd052a/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 7387, 12, 2890, 16, 3895, 4672, 3536, 1220, 353, 2566, 635, 279, 4322, 358, 9276, 584, 716, 326, 3012, 5918, 1440, 1703, 5951, 487, 10247, 487, 3323, 18, 1021, 1338, 1237, 353, 392, 791, 434, 279, 3895, 667, 16, 716, 711, 2590, 12647, 1435, 471, 8737, 1435, 358, 3455, 6880, 434, 326, 2078, 1440, 10621, 18, 3536, 468, 9720, 1879, 777, 326, 4689, 716, 1410, 1240, 2118, 9830, 7671, 434, 364, 1363, 316, 365, 18, 9561, 30, 468, 6622, 326, 1363, 487, 2731, 365, 18, 8734, 18, 6923, 12, 2433, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 7387, 12, 2890, 16, 3895, 4672, 3536, 1220, 353, 2566, 635, 279, 4322, 358, 9276, 584, 716, 326, 3012, 5918, 1440, 1703, 5951, 487, 10247, 487, 3323, 18, 1021, 1338, 1237, 353, 392, 791, 434, 279, 3895, 667, 16, 716, 711, 2590, 12647, 1435, 471, 8737, 1435, 358, 3455, 6880, 434, 326, 2078, 1440, 10621, 18, 3536, 468, 9720, 1879, 777, 326, 4689, 716, 1410, 1240, 2118, 9830, 7671, 434, 364, 1363, 316, 365, 18, 9561, 30, 468, 6622, 326, 1363, 487, 2731, 365, 18, 8734, 18, 6923, 12, 2433, 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 ]
def editwindow_response(self, window, response, filetags, titleentry, artistentry, albumentry, yearentry, trackentry, genreentry, commententry, mpdpaths, fileentry, savebutton):
self.updating_edit_entries = False for i in range(len(entries)-1): if tag_changed[self.filetagnum][entries_names[i]]: self.edit_entry_changed(entries[i]) else: self.edit_entry_revert_color(entries[i], entries[len(entries)-1]) def editwindow_response(self, window, response, filetags, mpdpaths, savebutton, tag_changed, entries, entries_names):
def editwindow_update(self, window, filetags, titleentry, artistentry, albumentry, yearentry, trackentry, genreentry, commententry, mpdpaths, fileentry, savebutton): titleentry.set_text(filetags[self.filetagnum].tag().title) titleentry.select_region(0, len(titleentry.get_text())) artistentry.set_text(filetags[self.filetagnum].tag().artist) albumentry.set_text(filetags[self.filetagnum].tag().album) if filetags[self.filetagnum].tag().year != 0: yearentry.set_text(str(filetags[self.filetagnum].tag().year)) if filetags[self.filetagnum].tag().track != 0: trackentry.set_text(str(filetags[self.filetagnum].tag().track)) genreentry.set_text(filetags[self.filetagnum].tag().genre) commententry.set_text(filetags[self.filetagnum].tag().comment) fileentry.set_text(mpdpaths[self.filetagnum].split('/')[-1]) window.set_title(_("Edit Tags" + " - " + str(self.filetagnum+1) + " " + _("of") + " " + str(len(filetags)))) titleentry.grab_focus() gobject.idle_add(savebutton.set_sensitive, True)
8e7f75d3649afea0782df60c0cbc0b9c2fb7cc04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8e7f75d3649afea0782df60c0cbc0b9c2fb7cc04/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 5668, 67, 2725, 12, 2890, 16, 2742, 16, 661, 278, 1341, 16, 2077, 4099, 16, 15469, 4099, 16, 14844, 4099, 16, 677, 73, 7892, 698, 16, 3298, 4099, 16, 3157, 2842, 698, 16, 2879, 4099, 16, 6749, 72, 4481, 16, 585, 4099, 16, 1923, 5391, 4672, 2077, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 2649, 13, 2077, 4099, 18, 4025, 67, 6858, 12, 20, 16, 562, 12, 2649, 4099, 18, 588, 67, 955, 1435, 3719, 15469, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 25737, 13, 14844, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 25090, 13, 309, 661, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 6874, 480, 374, 30, 677, 73, 7892, 698, 18, 542, 67, 955, 12, 701, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 6874, 3719, 309, 661, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 4101, 480, 374, 30, 3298, 4099, 18, 542, 67, 955, 12, 701, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 4101, 3719, 3157, 2842, 698, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 4507, 266, 13, 2879, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 5668, 67, 2725, 12, 2890, 16, 2742, 16, 661, 278, 1341, 16, 2077, 4099, 16, 15469, 4099, 16, 14844, 4099, 16, 677, 73, 7892, 698, 16, 3298, 4099, 16, 3157, 2842, 698, 16, 2879, 4099, 16, 6749, 72, 4481, 16, 585, 4099, 16, 1923, 5391, 4672, 2077, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 2649, 13, 2077, 4099, 18, 4025, 67, 6858, 12, 20, 16, 562, 12, 2649, 4099, 18, 588, 67, 955, 1435, 3719, 15469, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 63, 2890, 18, 7540, 20788, 2107, 8009, 2692, 7675, 25737, 13, 14844, 4099, 18, 542, 67, 955, 12, 7540, 278, 1341, 2 ]
numberOfNodes=len(net._nodes)
numberOfNodes=len(net)
def mst_kruskal(net,randomize=True,maximum=False): """Find a minimum/maximum spanning tree using Kruskal's algorithm If random is set to true and the mst is not unique, a random mst is chosen. >>> t=pynet.SymmNet() >>> t[1,2]=1 >>> t[2,3]=2 >>> t[3,1]=3 >>> m=mst_kruskal(t) >>> print m.edges [[1, 2, 1], [2, 3, 2]] """ edges=list(net.edges) if randomize: random.shuffle(edges) #the sort has been stable since python version 2.3 edges.sort(lambda x,y:cmp(x[2],y[2]),reverse=maximum) mst=pynet.SymmNet() numberOfNodes=len(net._nodes) #ktree=percolator.Ktree(numberOfNodes) ktree=percolator.Ktree() #just use dict addedEdges=0 for edge in edges: if ktree.getParent(edge[0])!=ktree.getParent(edge[1]): mst[edge[0],edge[1]]=edge[2] ktree.setParent(edge[0],edge[1]) addedEdges+=1 if addedEdges==numberOfNodes-1: #the mst is a tree return mst #the mst is a forest netext.copyNodeProperties(net,mst) return mst
22b5baa8ba2d784e6389be4cccba69bbf005ce85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/22b5baa8ba2d784e6389be4cccba69bbf005ce85/transforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 334, 67, 79, 8010, 79, 287, 12, 2758, 16, 9188, 554, 33, 5510, 16, 15724, 33, 8381, 4672, 3536, 3125, 279, 5224, 19, 15724, 1694, 10903, 2151, 1450, 1475, 8010, 79, 287, 1807, 4886, 225, 971, 2744, 353, 444, 358, 638, 471, 326, 312, 334, 353, 486, 3089, 16, 279, 2744, 312, 334, 353, 10447, 18, 225, 4080, 268, 33, 84, 878, 278, 18, 11901, 81, 7308, 1435, 4080, 268, 63, 21, 16, 22, 65, 33, 21, 4080, 268, 63, 22, 16, 23, 65, 33, 22, 4080, 268, 63, 23, 16, 21, 65, 33, 23, 4080, 312, 33, 27523, 67, 79, 8010, 79, 287, 12, 88, 13, 4080, 1172, 312, 18, 8746, 12167, 21, 16, 576, 16, 404, 6487, 306, 22, 16, 890, 16, 576, 13563, 3536, 5231, 33, 1098, 12, 2758, 18, 8746, 13, 309, 2744, 554, 30, 2744, 18, 31980, 12, 8746, 13, 468, 5787, 1524, 711, 2118, 14114, 3241, 5790, 1177, 576, 18, 23, 5231, 18, 3804, 12, 14661, 619, 16, 93, 30, 9625, 12, 92, 63, 22, 6487, 93, 63, 22, 65, 3631, 9845, 33, 15724, 13, 312, 334, 33, 84, 878, 278, 18, 11901, 81, 7308, 1435, 7922, 3205, 33, 1897, 12, 2758, 13, 468, 79, 3413, 33, 457, 1293, 639, 18, 47, 3413, 12, 2696, 951, 3205, 13, 417, 3413, 33, 457, 1293, 639, 18, 47, 3413, 1435, 468, 3732, 999, 2065, 3096, 10697, 33, 20, 364, 3591, 316, 5231, 30, 309, 417, 3413, 18, 588, 3054, 12, 7126, 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, 312, 334, 67, 79, 8010, 79, 287, 12, 2758, 16, 9188, 554, 33, 5510, 16, 15724, 33, 8381, 4672, 3536, 3125, 279, 5224, 19, 15724, 1694, 10903, 2151, 1450, 1475, 8010, 79, 287, 1807, 4886, 225, 971, 2744, 353, 444, 358, 638, 471, 326, 312, 334, 353, 486, 3089, 16, 279, 2744, 312, 334, 353, 10447, 18, 225, 4080, 268, 33, 84, 878, 278, 18, 11901, 81, 7308, 1435, 4080, 268, 63, 21, 16, 22, 65, 33, 21, 4080, 268, 63, 22, 16, 23, 65, 33, 22, 4080, 268, 63, 23, 16, 21, 65, 33, 23, 4080, 312, 33, 27523, 67, 79, 8010, 79, 287, 12, 88, 13, 4080, 1172, 312, 18, 8746, 12167, 21, 16, 576, 16, 2 ]
for line in self.browse(cr, uid, ids, context): result[line.id] = line.amount / line.amount_unit.factor
tm = self.pool.get('res.users').browse(cr, uid, uid, context).company_id.planning_time_mode_id if tm and tm.factor: div = tm.factor else: div = 1.0 for line in self.browse(cr, uid, ids, context): result[line.id] = line.amount / line.amount_unit.factor * div
def _amount_base_uom(self, cr, uid, ids, name, args, context): result = {} for line in self.browse(cr, uid, ids, context): result[line.id] = line.amount / line.amount_unit.factor return result
ae7597596cba3342d97dcae8ae9e8fa1990f86bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ae7597596cba3342d97dcae8ae9e8fa1990f86bd/report_analytic_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 1969, 67, 89, 362, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 4672, 563, 273, 2618, 6118, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 4555, 16, 4555, 16, 819, 2934, 16840, 67, 350, 18, 412, 10903, 67, 957, 67, 3188, 67, 350, 309, 6118, 471, 6118, 18, 6812, 30, 3739, 273, 6118, 18, 6812, 469, 30, 3739, 273, 404, 18, 20, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 563, 63, 1369, 18, 350, 65, 273, 980, 18, 8949, 342, 980, 18, 8949, 67, 4873,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 1969, 67, 89, 362, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 4672, 563, 273, 2618, 6118, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 4555, 16, 4555, 16, 819, 2934, 16840, 67, 350, 18, 412, 10903, 67, 957, 67, 3188, 67, 350, 309, 6118, 471, 6118, 18, 6812, 30, 3739, 273, 6118, 18, 6812, 469, 30, 3739, 273, 404, 18, 20, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 563, 63, 1369, 18, 350, 65, 273, 980, 18, 8949, 342, 980, 18, 8949, 67, 4873, 18, 6812, 380, 3739, 327, 563, 2, -100, -100, -100 ]
h = {}
h = []
def warn(msg): self.ui.warn(_("%s, line %s: %s\n") % (fn, count, msg))
ad764463845d829f6853631904d2d7ea878fc7f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/ad764463845d829f6853631904d2d7ea878fc7f4/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1894, 12, 3576, 4672, 365, 18, 4881, 18, 8935, 24899, 27188, 87, 16, 980, 738, 87, 30, 738, 87, 64, 82, 7923, 738, 261, 4293, 16, 1056, 16, 1234, 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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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, 1894, 12, 3576, 4672, 365, 18, 4881, 18, 8935, 24899, 27188, 87, 16, 980, 738, 87, 30, 738, 87, 64, 82, 7923, 738, 261, 4293, 16, 1056, 16, 1234, 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, -100, -100, -100, -100, -100, -100 ]
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0] for line in (p.stdout, p.stdin):
stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout:
def commit(self, db): self.file.close() try: os.unlink(self.name+".cab") except OSError: pass for k, v in [(r"Software\Microsoft\VisualStudio\7.1\Setup\VS", "VS7CommonBinDir"), (r"Software\Microsoft\Win32SDK\Directories", "Install Dir")]: try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, k) except WindowsError: continue cabarc = os.path.join(_winreg.QueryValueEx(key, v)[0], r"Bin", "cabarc.exe") _winreg.CloseKey(key) if not os.path.exists(cabarc):continue break else: print "WARNING: cabarc.exe not found in registry" cabarc = "cabarc.exe" cmd = r'"%s" -m lzx:21 n %s.cab @%s.txt' % (cabarc, self.name, self.name) p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0] for line in (p.stdout, p.stdin): if line.startswith(" -- adding "): sys.stdout.write(".") else: sys.stdout.write(line) sys.stdout.flush() if not os.path.exists(self.name+".cab"): raise IOError, "cabarc failed" add_data(db, "Media", [(1, self.index, None, "#"+self.name, None, None)]) add_stream(db, self.name, self.name+".cab") os.unlink(self.name+".txt") os.unlink(self.name+".cab") db.Commit()
ae8a7673374c126c5208591e66df10f3c8536d32 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ae8a7673374c126c5208591e66df10f3c8536d32/msilib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 1319, 4672, 365, 18, 768, 18, 4412, 1435, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 529, 9078, 18, 71, 378, 7923, 1335, 10002, 30, 1342, 364, 417, 16, 331, 316, 306, 12, 86, 6, 21742, 64, 22350, 64, 25780, 510, 4484, 64, 27, 18, 21, 64, 7365, 64, 14640, 3113, 315, 14640, 27, 6517, 9913, 1621, 6, 3631, 261, 86, 6, 21742, 64, 22350, 64, 18049, 1578, 22625, 64, 13071, 3113, 315, 6410, 8446, 7923, 14542, 775, 30, 498, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 417, 13, 1335, 8202, 668, 30, 1324, 276, 378, 11828, 273, 1140, 18, 803, 18, 5701, 24899, 8082, 1574, 18, 1138, 620, 424, 12, 856, 16, 331, 25146, 20, 6487, 436, 6, 9913, 3113, 315, 71, 378, 11828, 18, 14880, 7923, 389, 8082, 1574, 18, 4605, 653, 12, 856, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 71, 378, 11828, 4672, 17143, 898, 469, 30, 1172, 315, 9511, 30, 276, 378, 11828, 18, 14880, 486, 1392, 316, 4023, 6, 276, 378, 11828, 273, 315, 71, 378, 11828, 18, 14880, 6, 1797, 273, 436, 4970, 9, 87, 6, 300, 81, 328, 94, 92, 30, 5340, 290, 738, 87, 18, 71, 378, 632, 9, 87, 18, 5830, 11, 738, 261, 71, 378, 11828, 16, 365, 18, 529, 16, 365, 18, 529, 13, 293, 273, 6652, 18, 52, 3190, 12, 4172, 16, 5972, 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, 3294, 12, 2890, 16, 1319, 4672, 365, 18, 768, 18, 4412, 1435, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 529, 9078, 18, 71, 378, 7923, 1335, 10002, 30, 1342, 364, 417, 16, 331, 316, 306, 12, 86, 6, 21742, 64, 22350, 64, 25780, 510, 4484, 64, 27, 18, 21, 64, 7365, 64, 14640, 3113, 315, 14640, 27, 6517, 9913, 1621, 6, 3631, 261, 86, 6, 21742, 64, 22350, 64, 18049, 1578, 22625, 64, 13071, 3113, 315, 6410, 8446, 7923, 14542, 775, 30, 498, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 417, 13, 1335, 8202, 668, 30, 1324, 276, 378, 11828, 273, 1140, 18, 2 ]
r"""(?P<begintt>\{\{\{)""", r"""(?P<endtt>\}\}\})""",
r"""(?P<inlinecode>\{\{\{(?P<inline>.*)\}\}\})""",
def populate_page_dict(db): """Extract wiki page names. This is used to detect broken wiki-links""" global page_dict page_dict = {'TitleIndex': 1} cursor = db.cursor() cursor.execute('SELECT DISTINCT name FROM wiki') while 1: row = cursor.fetchone() if not row: break page_dict[row[0]] = 1
79f037dc1a45ad31c8543afffec2cc8ebcd5c637 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/79f037dc1a45ad31c8543afffec2cc8ebcd5c637/Wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 2433, 67, 1576, 12, 1966, 4672, 3536, 4976, 9050, 1363, 1257, 18, 1220, 353, 1399, 358, 5966, 12933, 9050, 17, 7135, 8395, 2552, 1363, 67, 1576, 1363, 67, 1576, 273, 13666, 4247, 1016, 4278, 404, 97, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2668, 4803, 23286, 508, 4571, 9050, 6134, 1323, 404, 30, 1027, 273, 3347, 18, 5754, 476, 1435, 309, 486, 1027, 30, 898, 1363, 67, 1576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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 2433, 67, 1576, 12, 1966, 4672, 3536, 4976, 9050, 1363, 1257, 18, 1220, 353, 1399, 358, 5966, 12933, 9050, 17, 7135, 8395, 2552, 1363, 67, 1576, 1363, 67, 1576, 273, 13666, 4247, 1016, 4278, 404, 97, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2668, 4803, 23286, 508, 4571, 9050, 6134, 1323, 404, 30, 1027, 273, 3347, 18, 5754, 476, 1435, 309, 486, 1027, 30, 898, 1363, 67, 1576, 63, 492, 63, 20, 13563, 273, 404, 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 ]
trace=[]):
trace=[], errcompletion=None):
def _executeAndFetchLastRowID(self, stmt, args, completion, priority=None, trace=[]): if priority == None: priority = self._priority trace = extractTraceStack(trace) self._dbThread.executeAndFetchLastRowID(stmt, args, self._completionEvent( completion), priority, trace=trace)
4c36469fd45745f1611941d2eb0ffe07ddc38123 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/4c36469fd45745f1611941d2eb0ffe07ddc38123/Database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 1876, 5005, 3024, 1999, 734, 12, 2890, 16, 3480, 16, 833, 16, 8364, 16, 4394, 33, 7036, 16, 2606, 22850, 6487, 393, 11469, 33, 7036, 4672, 309, 4394, 422, 599, 30, 4394, 273, 365, 6315, 8457, 2606, 273, 2608, 3448, 2624, 12, 5129, 13, 365, 6315, 1966, 3830, 18, 8837, 1876, 5005, 3024, 1999, 734, 12, 10589, 16, 833, 16, 365, 6315, 11469, 1133, 12, 8364, 3631, 4394, 16, 2606, 33, 5129, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 1876, 5005, 3024, 1999, 734, 12, 2890, 16, 3480, 16, 833, 16, 8364, 16, 4394, 33, 7036, 16, 2606, 22850, 6487, 393, 11469, 33, 7036, 4672, 309, 4394, 422, 599, 30, 4394, 273, 365, 6315, 8457, 2606, 273, 2608, 3448, 2624, 12, 5129, 13, 365, 6315, 1966, 3830, 18, 8837, 1876, 5005, 3024, 1999, 734, 12, 10589, 16, 833, 16, 365, 6315, 11469, 1133, 12, 8364, 3631, 4394, 16, 2606, 33, 5129, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
<br><br>For more information, please go to the <a href="%s/admin/bibrank/guide.html">BibRank guide</a> and read the section regarding deleting a rank method.</dd>
<br><br>For more information, please go to the <a title="See guide" href="%s/admin/bibrank/guide.html">BibRank guide</a> and read the section regarding deleting a rank method.</dd>
def perform_deleterank(rnkID, ln=cdslang, confirm=0): """form to delete a rank method """ subtitle ='' output = """ <span class="warning"> <strong> <dl> <dt>WARNING:</dt> <dd>When deleting a rank method, you also deletes all data related to the rank method, like translations, which collections it was attached to and the data necessary to rank the searchresults. Any scheduled tasks using the deleted rank method will also stop working. <br><br>For more information, please go to the <a href="%s/admin/bibrank/guide.html">BibRank guide</a> and read the section regarding deleting a rank method.</dd> </dl> </strong> </span> """ % weburl if rnkID: if confirm in ["0", 0]: rnkNAME = get_current_name(rnkID, ln, get_rnk_nametypes()[0][0], "rnkMETHOD")[0][1] subtitle = 'Step 1 - Confirm deletion' text = """Delete rank method '%s'.""" % (rnkNAME) output += createhiddenform(action="deleterank", text=text, rnkID=rnkID, confirm=1) elif confirm in ["1", 1]: try: rnkNAME = get_current_name(rnkID, ln, get_rnk_nametypes()[0][0], "rnkMETHOD")[0][1] rnkcode = get_rnk_code(rnkID)[0][0] result = delete_rnk(rnkID) subtitle = "Step 2 - Result" if result: text = """<b><span class="info">Rank method '%s' deleted</span></b>""" % rnkNAME try: os.remove("%s/bibrank/%s.cfg" % (etcdir, rnkcode)) text += """<br><b><span class="info">Configuration file deleted: '%s/bibrank/%s.cfg'.</span></b>""" % (etcdir, rnkcode) except StandardError, e: text += """<br><b><span class="info">Sorry, could not delete configuration file: '%s/bibrank/%s.cfg'.</span><br>Please delete the file manually.</span></b>""" % (etcdir, rnkcode) else: text = """<b><span class="info">Sorry, could not delete rank method '%s'</span></b>""" % rnkNAME except StandardError, e: text = """<b><span class="info">Sorry, could not delete rank method, most likely already deleted</span></b>""" output = text try: body = [output, extra] except NameError: body = [output] return addadminbox(subtitle + """&nbsp;&nbsp&nbsp;<small>[<a href="%s/admin/bibrank/guide.html#dr">?</a>]</small>""" % weburl, body)
a6a2a3f836d914026219bf3610ec841b23ae03ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/a6a2a3f836d914026219bf3610ec841b23ae03ce/bibrankadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 19003, 264, 2304, 12, 27639, 79, 734, 16, 7211, 33, 4315, 2069, 539, 16, 6932, 33, 20, 4672, 3536, 687, 358, 1430, 279, 6171, 707, 3536, 20281, 273, 6309, 876, 225, 273, 3536, 411, 3969, 667, 1546, 8551, 6441, 411, 9110, 34, 411, 5761, 34, 411, 7510, 34, 9511, 19814, 7510, 34, 411, 449, 34, 9434, 12993, 279, 6171, 707, 16, 1846, 2546, 9792, 777, 501, 3746, 358, 326, 6171, 707, 16, 3007, 7863, 16, 1492, 6980, 518, 1703, 7495, 358, 471, 326, 501, 4573, 358, 6171, 326, 1623, 4717, 18, 5502, 9755, 4592, 1450, 326, 4282, 6171, 707, 903, 2546, 2132, 5960, 18, 411, 2848, 4438, 2848, 34, 1290, 1898, 1779, 16, 9582, 1960, 358, 326, 411, 69, 2077, 1546, 9704, 7343, 6, 3897, 11613, 87, 19, 3666, 19, 70, 495, 11500, 19, 12118, 18, 2620, 6441, 38, 495, 12925, 7343, 1757, 69, 34, 471, 855, 326, 2442, 29012, 12993, 279, 6171, 707, 17347, 449, 34, 7765, 5761, 34, 7765, 9110, 34, 7765, 3969, 34, 3536, 738, 3311, 718, 225, 309, 20594, 79, 734, 30, 309, 6932, 316, 8247, 20, 3113, 374, 14542, 20594, 79, 1985, 273, 336, 67, 2972, 67, 529, 12, 27639, 79, 734, 16, 7211, 16, 336, 67, 27639, 79, 67, 17808, 15180, 1435, 63, 20, 6362, 20, 6487, 315, 27639, 79, 5327, 7923, 63, 20, 6362, 21, 65, 20281, 273, 296, 4160, 404, 300, 17580, 10899, 11, 977, 273, 3536, 2613, 6171, 707, 1995, 87, 11, 12123, 738, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 19003, 264, 2304, 12, 27639, 79, 734, 16, 7211, 33, 4315, 2069, 539, 16, 6932, 33, 20, 4672, 3536, 687, 358, 1430, 279, 6171, 707, 3536, 20281, 273, 6309, 876, 225, 273, 3536, 411, 3969, 667, 1546, 8551, 6441, 411, 9110, 34, 411, 5761, 34, 411, 7510, 34, 9511, 19814, 7510, 34, 411, 449, 34, 9434, 12993, 279, 6171, 707, 16, 1846, 2546, 9792, 777, 501, 3746, 358, 326, 6171, 707, 16, 3007, 7863, 16, 1492, 6980, 518, 1703, 7495, 358, 471, 326, 501, 4573, 358, 6171, 326, 1623, 4717, 18, 5502, 9755, 4592, 1450, 326, 4282, 6171, 707, 903, 2546, 2132, 5960, 18, 411, 2848, 4438, 2848, 34, 1290, 1898, 1779, 16, 9582, 1960, 358, 2 ]
return True return '.'.join(tokens[1:]) return name
raise StopIteration('Match found') return (long, '.'.join(tokens[1:])) return (long, long)
def _filter_suite_name(self, name): tokens = name.split('.') if utils.matches(self.name, tokens[0], ignore=['_']): if len(tokens) == 1: return True # match return '.'.join(tokens[1:]) return name
ec4e173743785708e87eff7e6a2e244a52e0b07b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/ec4e173743785708e87eff7e6a2e244a52e0b07b/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 67, 30676, 67, 529, 12, 2890, 16, 508, 4672, 2430, 273, 508, 18, 4939, 2668, 1093, 13, 309, 2990, 18, 8436, 12, 2890, 18, 529, 16, 2430, 63, 20, 6487, 2305, 33, 3292, 67, 3546, 4672, 309, 562, 12, 7860, 13, 422, 404, 30, 327, 1053, 282, 468, 845, 327, 2611, 18, 5701, 12, 7860, 63, 21, 30, 5717, 327, 508, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 3546, 4672, 309, 562, 12, 7860, 13, 422, 404, 30, 327, 1053, 282, 468, 845, 327, 2611, 18, 5701, 12, 7860, 63, 21, 30, 5717, 327, 508, 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 ]
timeout=360000)
timeout=360 * DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND)
def onStateChange(self, web_progress, request, state_flags, status): if state_flags == interfaces.nsIWebProgressListener.STATE_START: self._create_journal_object() self._create_clipboard_object() elif state_flags == interfaces.nsIWebProgressListener.STATE_STOP: if NS_FAILED(status): # download cancelled return
ef7e4fc70eb5cf2b9240b0fc6ad68a7d3298b441 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6905/ef7e4fc70eb5cf2b9240b0fc6ad68a7d3298b441/downloadmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 22505, 12, 2890, 16, 3311, 67, 8298, 16, 590, 16, 919, 67, 7133, 16, 1267, 4672, 309, 919, 67, 7133, 422, 7349, 18, 2387, 45, 4079, 5491, 2223, 18, 7998, 67, 7570, 30, 365, 6315, 2640, 67, 22644, 67, 1612, 1435, 365, 6315, 2640, 67, 14161, 3752, 67, 1612, 1435, 1327, 919, 67, 7133, 422, 7349, 18, 2387, 45, 4079, 5491, 2223, 18, 7998, 67, 17513, 30, 309, 11472, 67, 11965, 12, 2327, 4672, 468, 4224, 13927, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 22505, 12, 2890, 16, 3311, 67, 8298, 16, 590, 16, 919, 67, 7133, 16, 1267, 4672, 309, 919, 67, 7133, 422, 7349, 18, 2387, 45, 4079, 5491, 2223, 18, 7998, 67, 7570, 30, 365, 6315, 2640, 67, 22644, 67, 1612, 1435, 365, 6315, 2640, 67, 14161, 3752, 67, 1612, 1435, 1327, 919, 67, 7133, 422, 7349, 18, 2387, 45, 4079, 5491, 2223, 18, 7998, 67, 17513, 30, 309, 11472, 67, 11965, 12, 2327, 4672, 468, 4224, 13927, 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 ]
def fl_get_object_bbox(obj, x, y, w, h): """ fl_get_object_bbox(obj, x, y, w, h) """ _fl_get_object_bbox(obj, x, y, w, h)
def fl_get_object_bbox(pObject, x, y, w, h): """ fl_get_object_bbox(pObject, x, y, w, h) """ _fl_get_object_bbox(pObject, x, y, w, h)
def fl_get_object_bbox(obj, x, y, w, h): """ fl_get_object_bbox(obj, x, y, w, h) """ _fl_get_object_bbox(obj, x, y, w, h)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 1612, 67, 20737, 12, 84, 921, 16, 619, 16, 677, 16, 341, 16, 366, 4672, 3536, 1183, 67, 588, 67, 1612, 67, 20737, 12, 84, 921, 16, 619, 16, 677, 16, 341, 16, 366, 13, 3536, 225, 389, 2242, 67, 588, 67, 1612, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 1612, 67, 20737, 12, 84, 921, 16, 619, 16, 677, 16, 341, 16, 366, 4672, 3536, 1183, 67, 588, 67, 1612, 67, 20737, 12, 84, 921, 16, 619, 16, 677, 16, 341, 16, 366, 13, 3536, 225, 389, 2242, 67, 588, 67, 1612, 67, 20737, 12, 84, 921, 16, 619, 16, 677, 16, 341, 16, 366, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (beta, coeffs, coeff_names, basis, m, _treshold)
return (beta, coeffs, coeff_names, basis, m, _treshold, flip)
def __call__(self,classifier,examples, buckets): if classifier.model['kernel_type'] != 0: raise "Use SVM with a linear kernel." if classifier.model["svm_type"] != 0: raise "Use ordinary SVM classification." if classifier.model["nr_class"] != 2: raise "This is not SVM with a binary class."
e79ace60fc6ec671079d5cf322daa70694026a6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/e79ace60fc6ec671079d5cf322daa70694026a6f/orngLinVis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1106, 1251, 16, 16858, 16, 9169, 4672, 309, 14622, 18, 2284, 3292, 8111, 67, 723, 3546, 480, 374, 30, 1002, 315, 3727, 348, 7397, 598, 279, 9103, 5536, 1199, 309, 14622, 18, 2284, 9614, 87, 3489, 67, 723, 11929, 480, 374, 30, 1002, 315, 3727, 4642, 2101, 348, 7397, 13804, 1199, 309, 14622, 18, 2284, 9614, 11611, 67, 1106, 11929, 480, 576, 30, 1002, 315, 2503, 353, 486, 348, 7397, 598, 279, 3112, 667, 1199, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1106, 1251, 16, 16858, 16, 9169, 4672, 309, 14622, 18, 2284, 3292, 8111, 67, 723, 3546, 480, 374, 30, 1002, 315, 3727, 348, 7397, 598, 279, 9103, 5536, 1199, 309, 14622, 18, 2284, 9614, 87, 3489, 67, 723, 11929, 480, 374, 30, 1002, 315, 3727, 4642, 2101, 348, 7397, 13804, 1199, 309, 14622, 18, 2284, 9614, 11611, 67, 1106, 11929, 480, 576, 30, 1002, 315, 2503, 353, 486, 348, 7397, 598, 279, 3112, 667, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Manufacturer=u"Martin v. L\xf6wis")
Manufacturer=u"Python Software Foundation")
def build_database(): """Generate an empty database, with just the schema and the Summary information stream.""" if snapshot: uc = upgrade_code_snapshot else: uc = upgrade_code # schema represents the installer 2.0 database schema. # sequence is the set of standard sequences # (ui/execute, admin/advt/install) db = msilib.init_database("python-%s%s.msi" % (full_current_version, msilib.arch_ext), schema, ProductName="Python "+full_current_version, ProductCode=product_code, ProductVersion=current_version, Manufacturer=u"Martin v. L\xf6wis") # The default sequencing of the RemoveExistingProducts action causes # removal of files that got just installed. Place it after # InstallInitialize, so we first uninstall everything, but still roll # back in case the installation is interrupted msilib.change_sequence(sequence.InstallExecuteSequence, "RemoveExistingProducts", 1510) msilib.add_tables(db, sequence) # We cannot set ALLUSERS in the property table, as this cannot be # reset if the user choses a per-user installation. Instead, we # maintain WhichUsers, which can be "ALL" or "JUSTME". The UI manages # this property, and when the execution starts, ALLUSERS is set # accordingly. add_data(db, "Property", [("UpgradeCode", uc), ("WhichUsers", "ALL"), ("ProductLine", "Python%s%s" % (major, minor)), ]) db.Commit() return db
88eddbbe1a4742234a9de6f1905d787539f29860 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/88eddbbe1a4742234a9de6f1905d787539f29860/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6231, 13332, 3536, 4625, 392, 1008, 2063, 16, 598, 2537, 326, 1963, 471, 326, 17967, 1779, 1407, 12123, 309, 4439, 30, 6232, 273, 8400, 67, 710, 67, 11171, 469, 30, 6232, 273, 8400, 67, 710, 468, 1963, 8686, 326, 16050, 576, 18, 20, 2063, 1963, 18, 468, 3102, 353, 326, 444, 434, 4529, 8463, 468, 261, 4881, 19, 8837, 16, 3981, 19, 361, 11734, 19, 5425, 13, 1319, 273, 4086, 330, 495, 18, 2738, 67, 6231, 2932, 8103, 6456, 87, 9, 87, 18, 959, 77, 6, 738, 261, 2854, 67, 2972, 67, 1589, 16, 4086, 330, 495, 18, 991, 67, 408, 3631, 1963, 16, 8094, 461, 1546, 15774, 13773, 2854, 67, 2972, 67, 1589, 16, 8094, 1085, 33, 5896, 67, 710, 16, 8094, 1444, 33, 2972, 67, 1589, 16, 8660, 13019, 33, 89, 6, 15774, 24199, 31289, 7923, 468, 1021, 805, 26401, 15495, 434, 326, 3581, 9895, 13344, 1301, 14119, 468, 14817, 434, 1390, 716, 2363, 2537, 5876, 18, 13022, 518, 1839, 468, 10284, 7520, 16, 1427, 732, 1122, 16577, 7756, 16, 1496, 4859, 5824, 468, 1473, 316, 648, 326, 13193, 353, 15711, 4086, 330, 495, 18, 3427, 67, 6178, 12, 6178, 18, 6410, 5289, 4021, 16, 315, 3288, 9895, 13344, 3113, 4711, 2163, 13, 4086, 330, 495, 18, 1289, 67, 9373, 12, 1966, 16, 3102, 13, 468, 1660, 2780, 444, 8061, 30846, 316, 326, 1272, 1014, 16, 487, 333, 2780, 506, 468, 2715, 309, 326, 729, 462, 538, 281, 279, 1534, 17, 1355, 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, 1361, 67, 6231, 13332, 3536, 4625, 392, 1008, 2063, 16, 598, 2537, 326, 1963, 471, 326, 17967, 1779, 1407, 12123, 309, 4439, 30, 6232, 273, 8400, 67, 710, 67, 11171, 469, 30, 6232, 273, 8400, 67, 710, 468, 1963, 8686, 326, 16050, 576, 18, 20, 2063, 1963, 18, 468, 3102, 353, 326, 444, 434, 4529, 8463, 468, 261, 4881, 19, 8837, 16, 3981, 19, 361, 11734, 19, 5425, 13, 1319, 273, 4086, 330, 495, 18, 2738, 67, 6231, 2932, 8103, 6456, 87, 9, 87, 18, 959, 77, 6, 738, 261, 2854, 67, 2972, 67, 1589, 16, 4086, 330, 495, 18, 991, 67, 408, 3631, 1963, 16, 8094, 461, 1546, 15774, 13773, 2854, 67, 2972, 67, 1589, 16, 8094, 2 ]
sec.setVoltageMode(0) sec.setToneMode(0)
sec.setVoltageMode(switchParam.HV) sec.setToneMode(switchParam.HILO)
def addLNBSimple(self, slotid, diseqcmode, toneburstmode = 0, diseqcpos = 0, orbpos = 0, longitude = 0, latitude = 0, loDirection = 0, laDirection = 0): #simple defaults sec = eDVBSatelliteEquipmentControl.getInstance() sec.addLNB() sec.setLNBTunerMask(1 << slotid) sec.setLNBLOFL(9750000) sec.setLNBLOFH(10600000) sec.setLNBThreshold(11750000) sec.setRepeats(0) sec.setFastDiSEqC(0) sec.setSeqRepeat(0) sec.setVoltageMode(0) #HV sec.setToneMode(0) #HILO sec.setCommandOrder(0) #user values sec.setDiSEqCMode(diseqcmode) sec.setToneburst(toneburstmode) sec.setCommittedCommand(diseqcpos) #print "set orbpos to:" + str(orbpos)
45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 48, 20626, 5784, 12, 2890, 16, 4694, 350, 16, 302, 784, 30675, 3188, 16, 30600, 70, 18593, 3188, 273, 374, 16, 302, 784, 30675, 917, 273, 374, 16, 16823, 917, 273, 374, 16, 9192, 273, 374, 16, 8904, 273, 374, 16, 437, 8212, 273, 374, 16, 7125, 8212, 273, 374, 4672, 468, 9647, 3467, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 1428, 18, 1289, 48, 20626, 1435, 1428, 18, 542, 48, 20626, 56, 29640, 5796, 12, 21, 2296, 4694, 350, 13, 1428, 18, 542, 48, 20626, 1502, 19054, 12, 29, 5877, 2787, 13, 1428, 18, 542, 48, 20626, 1502, 42, 44, 12, 22135, 11706, 13, 1428, 18, 542, 48, 20626, 7614, 12, 2499, 5877, 2787, 13, 1428, 18, 542, 426, 347, 2323, 12, 20, 13, 1428, 18, 542, 12305, 14521, 1090, 85, 39, 12, 20, 13, 1428, 18, 542, 6926, 16750, 12, 20, 13, 1428, 18, 542, 58, 14198, 2309, 12, 20, 13, 468, 44, 58, 1428, 18, 542, 56, 476, 2309, 12, 20, 13, 202, 202, 7, 29994, 1502, 1428, 18, 542, 2189, 2448, 12, 20, 13, 468, 1355, 924, 1428, 18, 542, 14521, 1090, 85, 39, 2309, 12, 72, 784, 30675, 3188, 13, 1428, 18, 542, 56, 476, 70, 18593, 12, 88, 476, 70, 18593, 3188, 13, 1428, 18, 542, 27813, 2189, 12, 72, 784, 30675, 917, 13, 468, 1188, 315, 542, 16823, 917, 358, 2773, 397, 609, 12, 16640, 917, 13, 2, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 48, 20626, 5784, 12, 2890, 16, 4694, 350, 16, 302, 784, 30675, 3188, 16, 30600, 70, 18593, 3188, 273, 374, 16, 302, 784, 30675, 917, 273, 374, 16, 16823, 917, 273, 374, 16, 9192, 273, 374, 16, 8904, 273, 374, 16, 437, 8212, 273, 374, 16, 7125, 8212, 273, 374, 4672, 468, 9647, 3467, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 1428, 18, 1289, 48, 20626, 1435, 1428, 18, 542, 48, 20626, 56, 29640, 5796, 12, 21, 2296, 4694, 350, 13, 1428, 18, 542, 48, 20626, 1502, 19054, 12, 29, 5877, 2787, 13, 1428, 18, 542, 48, 20626, 1502, 42, 44, 12, 22135, 11706, 13, 1428, 18, 542, 48, 20626, 2 ]
if (type(i) is tuple) and (len(i) == 2):
if (type(i) is tuple) and (len(i) == 2) and type(i[0]) is int and type(i[1]) is int:
def __iter__(self): for i in self.set: if (type(i) is tuple) and (len(i) == 2): if (i[0] <= i[1]): j=i[0] while j <= i[1]: yield j j += 1 elif isinstance(i, Gen): for j in i: yield j else: yield i
2e6cda571e501c15a11465b73809a085df6e617f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/2e6cda571e501c15a11465b73809a085df6e617f/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 364, 277, 316, 365, 18, 542, 30, 309, 261, 723, 12, 77, 13, 353, 3193, 13, 471, 261, 1897, 12, 77, 13, 422, 576, 13, 471, 618, 12, 77, 63, 20, 5717, 353, 509, 471, 618, 12, 77, 63, 21, 5717, 353, 509, 30, 309, 225, 261, 77, 63, 20, 65, 1648, 277, 63, 21, 65, 4672, 525, 33, 77, 63, 20, 65, 1323, 525, 1648, 277, 63, 21, 14542, 2824, 525, 525, 1011, 404, 1327, 1549, 12, 77, 16, 10938, 4672, 364, 525, 316, 277, 30, 2824, 525, 469, 30, 2824, 277, 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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585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 364, 277, 316, 365, 18, 542, 30, 309, 261, 723, 12, 77, 13, 353, 3193, 13, 471, 261, 1897, 12, 77, 13, 422, 576, 13, 471, 618, 12, 77, 63, 20, 5717, 353, 509, 471, 618, 12, 77, 63, 21, 5717, 353, 509, 30, 309, 225, 261, 77, 63, 20, 65, 1648, 277, 63, 21, 65, 4672, 525, 33, 77, 63, 20, 65, 1323, 525, 1648, 277, 63, 21, 14542, 2824, 525, 525, 1011, 404, 1327, 1549, 12, 77, 16, 10938, 4672, 364, 525, 316, 277, 30, 2824, 525, 469, 30, 2824, 277, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (not os.path.samefile(build_path, os.getcwd())):
if (not op.samefile(build_path, os.getcwd())):
def cold_start(args): cwd_was_empty_at_start = True for file_name in os.listdir("."): if (not file_name.startswith(".")): cwd_was_empty_at_start = False break default_repositories = [] r = os.path.dirname(os.path.dirname(args[0])) b = os.path.basename(r) if (b.lower().startswith("cctbx_project")): default_repositories.append(os.path.dirname(r)) default_repositories.append(r) pre_processed_args = pre_process_args( args=args[1:], default_repositories=default_repositories) build_path=pre_processed_args.command_line.options.current_working_directory if (build_path is None): build_path = os.getcwd() else: if (not os.path.isabs(build_path)): raise Sorry("Not an absolute path name:" " --current_working_directory %s" % show_string(build_path)) if (not os.path.isdir(build_path)): raise Sorry("Not a directory:" " --current_working_directory %s" % show_string(build_path)) if (not os.path.samefile(build_path, os.getcwd())): raise Sorry("Not equivalent to the current working directory:" " --current_working_directory %s" % show_string(build_path)) n = len(os.sep) while (len(build_path) > n and build_path.endswith(os.sep)): build_path = build_path[:-n] set_preferred_sys_prefix_and_sys_executable(build_path=build_path) env = environment(build_path=build_path) env.process_args(pre_processed_args=pre_processed_args) if ( pre_processed_args.command_line.options.clear_scons_memory or cwd_was_empty_at_start): env.clear_scons_memory() env.refresh()
621ff93ea6f104ac4c6d943d7e9d6c18b1468502 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/621ff93ea6f104ac4c6d943d7e9d6c18b1468502/env_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 645, 72, 67, 1937, 12, 1968, 4672, 7239, 67, 17416, 67, 5531, 67, 270, 67, 1937, 273, 1053, 364, 585, 67, 529, 316, 1140, 18, 1098, 1214, 2932, 1199, 4672, 309, 261, 902, 585, 67, 529, 18, 17514, 1918, 2932, 1199, 3719, 30, 7239, 67, 17416, 67, 5531, 67, 270, 67, 1937, 273, 1083, 898, 805, 67, 26626, 273, 5378, 436, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, 12, 1968, 63, 20, 22643, 324, 273, 1140, 18, 803, 18, 13909, 12, 86, 13, 309, 261, 70, 18, 8167, 7675, 17514, 1918, 2932, 71, 299, 70, 92, 67, 4406, 6, 3719, 30, 805, 67, 26626, 18, 6923, 12, 538, 18, 803, 18, 12287, 12, 86, 3719, 805, 67, 26626, 18, 6923, 12, 86, 13, 675, 67, 11005, 67, 1968, 273, 675, 67, 2567, 67, 1968, 12, 833, 33, 1968, 63, 21, 30, 6487, 805, 67, 26626, 33, 1886, 67, 26626, 13, 1361, 67, 803, 33, 1484, 67, 11005, 67, 1968, 18, 3076, 67, 1369, 18, 2116, 18, 2972, 67, 20478, 67, 5149, 309, 261, 3510, 67, 803, 353, 599, 4672, 1361, 67, 803, 273, 1140, 18, 588, 11089, 1435, 469, 30, 309, 261, 902, 1140, 18, 803, 18, 291, 5113, 12, 3510, 67, 803, 3719, 30, 1002, 348, 21637, 2932, 1248, 392, 4967, 589, 508, 2773, 315, 1493, 2972, 67, 20478, 67, 5149, 738, 87, 6, 738, 2405, 67, 1080, 12, 3510, 67, 803, 3719, 309, 261, 902, 1140, 18, 803, 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, 645, 72, 67, 1937, 12, 1968, 4672, 7239, 67, 17416, 67, 5531, 67, 270, 67, 1937, 273, 1053, 364, 585, 67, 529, 316, 1140, 18, 1098, 1214, 2932, 1199, 4672, 309, 261, 902, 585, 67, 529, 18, 17514, 1918, 2932, 1199, 3719, 30, 7239, 67, 17416, 67, 5531, 67, 270, 67, 1937, 273, 1083, 898, 805, 67, 26626, 273, 5378, 436, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, 12, 1968, 63, 20, 22643, 324, 273, 1140, 18, 803, 18, 13909, 12, 86, 13, 309, 261, 70, 18, 8167, 7675, 17514, 1918, 2932, 71, 299, 70, 92, 67, 4406, 6, 3719, 30, 805, 67, 26626, 18, 6923, 12, 538, 18, 803, 18, 12287, 12, 2 ]
col=10; line=375; BGL.glRasterPos2i(col, line); Draw.Text("For exporting bump and normal maps, have the second texture slot (slot 1) name begin with bump or normal") col=10; line=350; BGL.glRasterPos2i(col, line); Draw.Text("Uber: shader name should start with 'sfube' - imports Blender's Col and Spe RGB values") col=10; line=325; BGL.glRasterPos2i(col, line); Draw.Text("\t\tIF Texture Slot 0: diffuse texture(Mapto Col value), else Col RGB values") col=10; line=300; BGL.glRasterPos2i(col, line); Draw.Text("\t\tIF Texture Slot 2: specular texture(Mapto Var value), else Spe RGB values") col=10; line=275; BGL.glRasterPos2i(col, line); Draw.Text("Regarding Textures: Diffuse, shiny, ambocc, phong, and ward materials will use textures as the diffuse channel if the texture is in the first texture slot.") col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Diffuse: shader name should start with 'sfdif' - imports Blender's Col RGB values") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("Shiny: shader name sould start with 'sfshi' - imports Blender's Col RGB and RayMirr values") col=10; line=200; BGL.glRasterPos2i(col, line); Draw.Text("Ambient Occlusion: shader name sould start with 'sfamb' - imports Blender's Col RGB (Bright) and Spe RGB (Dark) values") col=10; line=175; BGL.glRasterPos2i(col, line); Draw.Text("Phong: shader name sould start with 'sfpho' - imports Blender's Col RGB and Spe RGB values") col=10; line=150; BGL.glRasterPos2i(col, line); Draw.Text("Ward: shader name sould start with 'sfwar' - imports Blender's Col RGB and Spe RGB values") col=10; line=125; BGL.glRasterPos2i(col, line); Draw.Text("Mirror: shader name sould start with 'sfmir' - imports Blender's Col RGB values, Ray Mir button must be on") col=10; line=100; BGL.glRasterPos2i(col, line); Draw.Text("Glass: shader name sould start with 'sfgla' - imports Blender's Col RGB and IOR values, Ray Transp button must be on") col=10; line=75; BGL.glRasterPos2i(col, line); Draw.Text("Constant: shader name should start with 'sfcon' - imports Blender's Col RGB values")
col=10; line=375; BGL.glRasterPos2i(col, line); Draw.Text("For exporting bump and normal maps, have the second texture slot (slot 1)") col=10; line=350; BGL.glRasterPos2i(col, line); Draw.Text("name begin with bump or normal") col=10; line=325; BGL.glRasterPos2i(col, line); Draw.Text("Regarding Textures: Diffuse, shiny, ambocc, phong, and ward materials will") col=10; line=300; BGL.glRasterPos2i(col, line); Draw.Text("use textures as the diffuse channel if the texture is in the first texture slot.") col=10; line=275; SHADTYPE=Draw.Menu("%tSelect shader|Uber|Diffuse|Shiny|AO|Phong|Ward|Mirror|Glass|Constant", SHADER_TYPE, col, line, 85, 18, SHADTYPE.val) col=100; SHADOK=Draw.Button("OK", SHAD_OK, col, line, 30, 18, "Print on screen instructions") if SHADTYPE == 1: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Uber: shader name should start with 'sfube' - imports Blender's Col and Spe RGB") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("values") col=10; line=200; BGL.glRasterPos2i(col, line); Draw.Text("\t\tIF Texture Slot 0: diffuse texture(Mapto Col value), else Col RGB values") col=10; line=175; BGL.glRasterPos2i(col, line); Draw.Text("\t\tIF Texture Slot 2: specular texture(Mapto Var value), else Spe RGB values") if SHADTYPE == 2: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Diffuse: shader name should start with 'sfdif' - imports Blender's Col RGB values") if SHADTYPE == 3: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Shiny: shader name sould start with 'sfshi' - imports Blender's Col RGB and") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("RayMirr values") if SHADTYPE == 4: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Ambient Occlusion: shader name sould start with 'sfamb' - imports Blender's") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("Col RGB (Bright) and Spe RGB (Dark) values") if SHADTYPE == 5: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Phong: shader name sould start with 'sfpho' - imports Blender's Col RGB and") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("Spe RGB values") if SHADTYPE == 6: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Ward: shader name sould start with 'sfwar' - imports Blender's Col RGB and") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("Spe RGB values") if SHADTYPE == 7: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Mirror: shader name sould start with 'sfmir' - imports Blender's Col RGB values,") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("Ray Mir button must be on") if SHADTYPE == 8: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Glass: shader name sould start with 'sfgla' - imports Blender's Col RGB and") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("IOR values, Ray Transp button must be on") if SHADTYPE == 9: col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Constant: shader name should start with 'sfcon' - imports Blender's Col RGB values")
def drawShad(): col=10; line=400; BGL.glRasterPos2i(col, line); Draw.Text("Specific instructions for exporting shaders:") col=10; line=375; BGL.glRasterPos2i(col, line); Draw.Text("For exporting bump and normal maps, have the second texture slot (slot 1) name begin with bump or normal") col=10; line=350; BGL.glRasterPos2i(col, line); Draw.Text("Uber: shader name should start with 'sfube' - imports Blender's Col and Spe RGB values") col=10; line=325; BGL.glRasterPos2i(col, line); Draw.Text("\t\tIF Texture Slot 0: diffuse texture(Mapto Col value), else Col RGB values") col=10; line=300; BGL.glRasterPos2i(col, line); Draw.Text("\t\tIF Texture Slot 2: specular texture(Mapto Var value), else Spe RGB values") col=10; line=275; BGL.glRasterPos2i(col, line); Draw.Text("Regarding Textures: Diffuse, shiny, ambocc, phong, and ward materials will use textures as the diffuse channel if the texture is in the first texture slot.") col=10; line=250; BGL.glRasterPos2i(col, line); Draw.Text("Diffuse: shader name should start with 'sfdif' - imports Blender's Col RGB values") col=10; line=225; BGL.glRasterPos2i(col, line); Draw.Text("Shiny: shader name sould start with 'sfshi' - imports Blender's Col RGB and RayMirr values") col=10; line=200; BGL.glRasterPos2i(col, line); Draw.Text("Ambient Occlusion: shader name sould start with 'sfamb' - imports Blender's Col RGB (Bright) and Spe RGB (Dark) values") col=10; line=175; BGL.glRasterPos2i(col, line); Draw.Text("Phong: shader name sould start with 'sfpho' - imports Blender's Col RGB and Spe RGB values") col=10; line=150; BGL.glRasterPos2i(col, line); Draw.Text("Ward: shader name sould start with 'sfwar' - imports Blender's Col RGB and Spe RGB values") col=10; line=125; BGL.glRasterPos2i(col, line); Draw.Text("Mirror: shader name sould start with 'sfmir' - imports Blender's Col RGB values, Ray Mir button must be on") col=10; line=100; BGL.glRasterPos2i(col, line); Draw.Text("Glass: shader name sould start with 'sfgla' - imports Blender's Col RGB and IOR values, Ray Transp button must be on") col=10; line=75; BGL.glRasterPos2i(col, line); Draw.Text("Constant: shader name should start with 'sfcon' - imports Blender's Col RGB values") drawButtons()
ff0c0525f9c6de0fb4c2616a2bdc03109465145c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/ff0c0525f9c6de0fb4c2616a2bdc03109465145c/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 1555, 361, 13332, 645, 33, 2163, 31, 980, 33, 16010, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 9969, 12509, 364, 3359, 310, 699, 361, 414, 2773, 13, 645, 33, 2163, 31, 980, 33, 23, 5877, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 1290, 3359, 310, 23559, 471, 2212, 7565, 16, 1240, 326, 2205, 11428, 4694, 261, 14194, 404, 2225, 13, 645, 33, 2163, 31, 980, 33, 23, 3361, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 529, 2376, 598, 23559, 578, 2212, 7923, 645, 33, 2163, 31, 980, 33, 1578, 25, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 1617, 1060, 310, 3867, 1823, 30, 225, 13008, 1202, 16, 699, 11652, 16, 13232, 25049, 16, 1844, 932, 16, 471, 341, 1060, 31824, 903, 7923, 645, 33, 2163, 31, 980, 33, 19249, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 1202, 977, 1823, 487, 326, 3122, 1202, 1904, 309, 326, 11428, 353, 316, 326, 1122, 11428, 4694, 1199, 13, 645, 33, 2163, 31, 980, 33, 5324, 25, 31, 6122, 1880, 2399, 33, 6493, 18, 4599, 27188, 88, 3391, 16700, 96, 57, 744, 96, 5938, 1202, 96, 1555, 11652, 96, 20463, 96, 3731, 932, 96, 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, 3724, 1555, 361, 13332, 645, 33, 2163, 31, 980, 33, 16010, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 9969, 12509, 364, 3359, 310, 699, 361, 414, 2773, 13, 645, 33, 2163, 31, 980, 33, 23, 5877, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 1290, 3359, 310, 23559, 471, 2212, 7565, 16, 1240, 326, 2205, 11428, 4694, 261, 14194, 404, 2225, 13, 645, 33, 2163, 31, 980, 33, 23, 3361, 31, 605, 11261, 18, 7043, 18637, 1616, 22, 77, 12, 1293, 16, 980, 1769, 10184, 18, 1528, 2932, 529, 2376, 598, 23559, 578, 2212, 7923, 645, 33, 2 ]
result = None
if condition.type != "not": result = None
def __if(node): thenPart = node.thenPart condition = node.condition elsePart = getattr(node, "elsePart", None) # Pre-checks for deeper optimization if thenPart and elsePart: thenContent = thenPart[0] if thenPart.type == "block" and len(thenPart) == 1 else thenPart elseContent = elsePart[0] if elsePart.type == "block" and len(elsePart) == 1 else elsePart # Our strategy for if-else is to use hooks/ternary operators to create # a more compact alternative to the classic if-else construction. # There is only a little limitation that hooks only works with expressions # and not typical statements. Semicolon statements are typically wrappers # around expression, so we directly filter them out here. if thenContent.type == "semicolon": thenContent = thenContent.expression if elseContent.type == "semicolon": elseContent = elseContent.expression # Merge equal types. This works very well for "return" and "assign" statements # and creates even more compact versions than the normal hook translation. if thenContent.type == elseContent.type: # Merge return statements if thenContent.type == "return": return addSemicolon("return %s?%s:%s" % (compress(condition), compress(thenContent.value), compress(elseContent.value))) elif thenContent.type == "assign": operator = assignOperator(thenContent) if operator == assignOperator(elseContent): firstTargetCode = compress(thenContent[0]) if firstTargetCode == compress(elseContent[0]): return addSemicolon("%s%s%s?%s:%s" % (firstTargetCode, operator, compress(condition), compress(thenContent[1]), compress(elseContent[1]))) # Reached the original idea to use hook statements instead of if-else constructs if thenContent.type != "comma" and thenContent.type in expressions and elseContent.type != "comma" and elseContent.type in expressions: return addSemicolon("%s?%s:%s" % (compress(condition), compress(thenContent), compress(elseContent))) else: # Check whether all children are semicolon statements. Their # expressions can be modified safely into the target statement. thenContent = thenPart[0] if thenPart.type == "block" and len(thenPart) == 1 else thenPart # Fast-path for empty block statements if thenContent.type == "block" and len(thenContent) == 0: return addSemicolon(compress(condition)) elif thenContent.type == "semicolon" and not hasattr(thenContent, "expression"): return addSemicolon(compress(condition)) # Pre-flight check to quickly analyse whether our children # are just simple expressions which can be used here. containsOnlyExpressions = True if thenContent.type == "block": for child in thenContent: if child.type != "semicolon": containsOnlyExpressions = False break elif thenContent.type != "semicolon": containsOnlyExpressions = False # If pre-flight check was OK, then continue with # optimized compression. if containsOnlyExpressions: if thenContent.type == "block": result = [] for child in thenContent: # Omit semicolon statements without an actual expression childExpression = getattr(child, "expression", None) if childExpression: result.append(compress(childExpression)) result = "(%s)" % ",".join(result) else: thenContent = thenContent.expression result = compress(thenContent) if thenContent else "" # We need to support the parser here in assing statements and we # need to keep the priority of expressions correctly so we sometimes # need to put the whole statement into parens - even at single # statement scenarios like here. if thenContent.type in ("comma", "assign", "bitwise_and", "bitwise_xor", "bitwise_or", "and", "or"): # result = "(%s)" % result # As this result in no benefit regarding compression size, we just keep # the default behavior so the original developer easier understand # the code because it is more familiar to the orignal one. result = None if result != None: if condition.type == "not": result = "%s||%s" % (compress(condition[0]), result) else: result = "%s&&%s" % (compress(condition), result) return addSemicolon(result) # The normal if-compression result = "if(%s)" % compress(condition) thenCode = compress(thenPart) if elsePart: # Special handling for cascaded if-else-if cases where the else might be # attached to the wrong if in cases where the braces are omitted. if len(thenPart) == 1 and containsIf(thenPart): thenCode = "{%s}" % removeSemicolon(thenCode) # Finally append code result += thenCode # Now process else part if elsePart: result += "else" elseCode = compress(elsePart) # Micro optimization: Don't need a space when the child is a block # At this time the brace could not be part of a map declaration (would be a syntax error) if not elseCode.startswith("{"): result += " " result += elseCode return result
2417f4b2da17524d247c3b911811df9b81acd346 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/2417f4b2da17524d247c3b911811df9b81acd346/Compressor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 430, 12, 2159, 4672, 1508, 1988, 273, 756, 18, 15991, 1988, 2269, 273, 756, 18, 4175, 469, 1988, 273, 3869, 12, 2159, 16, 315, 12107, 1988, 3113, 599, 13, 225, 468, 2962, 17, 12366, 364, 31554, 14850, 309, 1508, 1988, 471, 469, 1988, 30, 1508, 1350, 273, 1508, 1988, 63, 20, 65, 309, 1508, 1988, 18, 723, 422, 315, 2629, 6, 471, 562, 12, 15991, 1988, 13, 422, 404, 469, 1508, 1988, 469, 1350, 273, 469, 1988, 63, 20, 65, 309, 469, 1988, 18, 723, 422, 315, 2629, 6, 471, 562, 12, 12107, 1988, 13, 422, 404, 469, 469, 1988, 225, 468, 29613, 6252, 364, 309, 17, 12107, 353, 358, 999, 9153, 19, 798, 814, 12213, 358, 752, 468, 279, 1898, 6739, 10355, 358, 326, 28937, 309, 17, 12107, 16171, 18, 468, 6149, 353, 1338, 279, 12720, 17732, 716, 9153, 1338, 6330, 598, 8041, 468, 471, 486, 24917, 6317, 18, 15661, 17280, 6317, 854, 14755, 21589, 468, 6740, 2652, 16, 1427, 732, 5122, 1034, 2182, 596, 2674, 18, 309, 1508, 1350, 18, 723, 422, 315, 12000, 17280, 6877, 1508, 1350, 273, 1508, 1350, 18, 8692, 309, 469, 1350, 18, 723, 422, 315, 12000, 17280, 6877, 469, 1350, 273, 469, 1350, 18, 8692, 225, 468, 8964, 3959, 1953, 18, 1220, 6330, 8572, 5492, 364, 315, 2463, 6, 471, 315, 6145, 6, 6317, 468, 471, 3414, 5456, 1898, 6739, 5244, 2353, 326, 2212, 3953, 4794, 18, 309, 1508, 1350, 18, 723, 422, 469, 1350, 18, 723, 30, 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, 430, 12, 2159, 4672, 1508, 1988, 273, 756, 18, 15991, 1988, 2269, 273, 756, 18, 4175, 469, 1988, 273, 3869, 12, 2159, 16, 315, 12107, 1988, 3113, 599, 13, 225, 468, 2962, 17, 12366, 364, 31554, 14850, 309, 1508, 1988, 471, 469, 1988, 30, 1508, 1350, 273, 1508, 1988, 63, 20, 65, 309, 1508, 1988, 18, 723, 422, 315, 2629, 6, 471, 562, 12, 15991, 1988, 13, 422, 404, 469, 1508, 1988, 469, 1350, 273, 469, 1988, 63, 20, 65, 309, 469, 1988, 18, 723, 422, 315, 2629, 6, 471, 562, 12, 12107, 1988, 13, 422, 404, 469, 469, 1988, 225, 468, 29613, 6252, 364, 309, 17, 12107, 353, 358, 999, 9153, 19, 798, 814, 12213, 358, 2 ]
"""Assemble document parts and return as string""" head = '\n'.join(self.head_prefix + self.head)
"""Assemble document parts and return as string.""" head = '\n'.join(self.head_prefix + self.stylesheet + self.head)
def astext(self): """Assemble document parts and return as string""" head = '\n'.join(self.head_prefix + self.head) body = ''.join(self.body_prefix + self.body + self.body_suffix) return head + '\n' + body
46a0c8dd14843f2383711724a77c799cd55db324 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/46a0c8dd14843f2383711724a77c799cd55db324/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3364, 408, 12, 2890, 4672, 3536, 1463, 10045, 1668, 2140, 471, 327, 487, 533, 12123, 910, 273, 2337, 82, 10332, 5701, 12, 2890, 18, 1978, 67, 3239, 397, 365, 18, 19403, 397, 365, 18, 1978, 13, 1417, 273, 875, 18, 5701, 12, 2890, 18, 3432, 67, 3239, 225, 397, 365, 18, 3432, 397, 365, 18, 3432, 67, 8477, 13, 327, 910, 397, 2337, 82, 11, 397, 1417, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3364, 408, 12, 2890, 4672, 3536, 1463, 10045, 1668, 2140, 471, 327, 487, 533, 12123, 910, 273, 2337, 82, 10332, 5701, 12, 2890, 18, 1978, 67, 3239, 397, 365, 18, 19403, 397, 365, 18, 1978, 13, 1417, 273, 875, 18, 5701, 12, 2890, 18, 3432, 67, 3239, 225, 397, 365, 18, 3432, 397, 365, 18, 3432, 67, 8477, 13, 327, 910, 397, 2337, 82, 11, 397, 1417, 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 ]
'http://www.isi.edu/in-notes/iana/assignments/media-types/image/png'
'image/png'
def sniffLanguage(stream, baseURI=ianaBase): """ Return a URI which identifies the stream's formal language, following some experimental rules. May replace stream's internals with a seekable version of the same data. >>> import sniff >>> import urllib >>> f=urllib.urlopen("http://www.w3.org/Icons/w3c_main") >>> sniff.sniffLanguage(f) 'http://www.isi.edu/in-notes/iana/assignments/media-types/image/png' Now let's try it with XML content. Right now at least this is served as text/html, but we'll sniff out the namespace: >>> f=urllib.urlopen("http://www.w3.org") >>> sniff.sniffLanguage(f) 'http://www.w3.org/1999/xhtml#html' Note the first line still appears next... >>> f.readline().strip() '<?xml version="1.0" encoding="UTF-8"?>' Now try a few sniffs of text/plain documents. This one has no override: >>> f=urllib.urlopen("file:test/sniff-1.plain") >>> sniff.sniffLanguage(f) 'http://www.isi.edu/in-notes/iana/assignments/media-types/text/plain' But this one does: >>> f=urllib.urlopen("file:test/sniff-2.plain") >>> sniff.sniffLanguage(f) 'http://www.isi.edu/in-notes/iana/assignments/media-types/application/octet-stream' #>>> f=urllib.urlopen("file:/home/sandro/WWW/2000/10/swap/test/crypto/acc.n3") #>>> sniff.sniffLanguage(f) #'application/vnd.w3c.n3' @@ still needs a way to handle suffixes: n3, nt, etc. http://archive.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/extension-map.html http://web.pydoc.org/2.2/mimetypes.html use .mime.types if still text/plain maybe special case n3? @@ needs preferences to handle content-negotation, both with file: (knowing suffixes) and http: . (open foo when foo.html exists.) """ lang = stream.info().type if lang.find(":") == -1: lang = baseURI + lang if xmlPattern.match(lang): sniffer = sniffXML elif plainPattern.match(lang): sniffer = sniffPlain else: return lang try: stream.fp.seek(0) except IOError: makeSeekable(stream) except AttributeError: makeSeekable(stream) lang = sniffer(stream, lang) stream.fp.seek(0) if lang.find(":") == -1: lang = baseURI + lang # fall back to suffix! if lang == baseURI+"text/plain": uri=stream.info().uri try: suffix = uri[uri.rindex(".")+1:] return baseURI+"application/"+suffix except ValueError: # no period in it?!?! pass return lang
4bbd28f061930698a51594776087016f74ae39e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/4bbd28f061930698a51594776087016f74ae39e0/sniff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26974, 3779, 12, 3256, 16, 1026, 3098, 33, 2779, 69, 2171, 4672, 3536, 225, 2000, 279, 3699, 1492, 25283, 326, 1407, 1807, 25739, 2653, 16, 3751, 2690, 23070, 2931, 18, 225, 16734, 1453, 1407, 1807, 8216, 1031, 598, 279, 6520, 429, 1177, 434, 326, 1967, 501, 18, 225, 4080, 1930, 26974, 4080, 1930, 11527, 4080, 284, 33, 718, 2941, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 27510, 19, 91, 23, 71, 67, 5254, 7923, 4080, 26974, 18, 8134, 3048, 3779, 12, 74, 13, 296, 2730, 19, 6446, 11, 225, 4494, 2231, 1807, 775, 518, 598, 3167, 913, 18, 225, 13009, 2037, 622, 4520, 333, 353, 30722, 487, 977, 19, 2620, 16, 1496, 732, 5614, 26974, 596, 326, 1981, 30, 225, 4080, 284, 33, 718, 2941, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 7923, 4080, 26974, 18, 8134, 3048, 3779, 12, 74, 13, 296, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 7, 2620, 11, 225, 3609, 326, 1122, 980, 4859, 14606, 1024, 2777, 225, 4080, 284, 18, 896, 1369, 7675, 6406, 1435, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 1870, 225, 4494, 775, 279, 11315, 4556, 430, 2556, 434, 977, 19, 7446, 7429, 18, 282, 1220, 1245, 711, 1158, 3849, 30, 225, 4080, 284, 33, 718, 2941, 18, 295, 18589, 2932, 768, 30, 3813, 19, 8134, 3048, 17, 21, 18, 7446, 7923, 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, 26974, 3779, 12, 3256, 16, 1026, 3098, 33, 2779, 69, 2171, 4672, 3536, 225, 2000, 279, 3699, 1492, 25283, 326, 1407, 1807, 25739, 2653, 16, 3751, 2690, 23070, 2931, 18, 225, 16734, 1453, 1407, 1807, 8216, 1031, 598, 279, 6520, 429, 1177, 434, 326, 1967, 501, 18, 225, 4080, 1930, 26974, 4080, 1930, 11527, 4080, 284, 33, 718, 2941, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 27510, 19, 91, 23, 71, 67, 5254, 7923, 4080, 26974, 18, 8134, 3048, 3779, 12, 74, 13, 296, 2730, 19, 6446, 11, 225, 4494, 2231, 1807, 775, 518, 598, 3167, 913, 18, 225, 13009, 2037, 622, 4520, 333, 353, 30722, 487, 977, 19, 2620, 16, 1496, 2 ]
"error is: %s." % (User.users_file, e))
"error is: %s." % (user_filename, e))
def create_user(name): """Creates a new User. Writes an entry in users.txt for the new user. Exceptions: If the specified name contains any characters other than letters, numbers, or spaces, raises an InvalidNameError. If another user exists with this name, raises a TODO. """ # TODO Validate name try: users_file = None users_file = open(User.users_file) except IOError, e: logging.critical("There was an error opening the users file (%s). The " "error is: %s." % (User.users_file, e)) raise UserCreationError() try: lines = users_file.readlines() except IOError, e: logging.critical("There was an error reading the users file (%s). The " "error is: %s." % (User.users_file, e)) raise UserCreationError() users_file.close() ids = [] names = [] for line in lines: entry = line.split(':') if len(entry) != 2: logging.error("There is an invalid entry in the users file: %s. " "Skipping this entry." % line) ids.append(entry[0]) names.append(entry[1]) if name in names: raise NameAlreadyExistsError() id = random.randint(1000, 9999) while str(id) in ids: id = random.randint(1000, 9999) try: file = open(User.users_file, 'a') file.write("%s:%s\n" % (id, name)) except IOError, e: logging.critical("There was an error opening the users file (%s). The " "error is: %s." % (User.users_file, e)) file.close() return User(id)
f42a194fdebca5d19e0277d35955d7040cb0756d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2803/f42a194fdebca5d19e0277d35955d7040cb0756d/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 12, 529, 4672, 3536, 2729, 279, 394, 2177, 18, 30053, 392, 1241, 316, 3677, 18, 5830, 364, 326, 394, 729, 18, 12781, 30, 971, 326, 1269, 508, 1914, 1281, 3949, 1308, 2353, 13768, 16, 5600, 16, 578, 7292, 16, 14183, 392, 1962, 461, 668, 18, 971, 4042, 729, 1704, 598, 333, 508, 16, 14183, 279, 2660, 18, 225, 3536, 468, 2660, 3554, 508, 225, 775, 30, 3677, 67, 768, 273, 599, 3677, 67, 768, 273, 1696, 12, 1299, 18, 5577, 67, 768, 13, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 10890, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 1355, 67, 3459, 16, 425, 3719, 1002, 2177, 9906, 668, 1435, 775, 30, 2362, 273, 3677, 67, 768, 18, 896, 3548, 1435, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 6453, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 1355, 67, 3459, 16, 425, 3719, 1002, 2177, 9906, 668, 1435, 3677, 67, 768, 18, 4412, 1435, 225, 3258, 273, 5378, 1257, 273, 5378, 364, 980, 316, 2362, 30, 1241, 273, 980, 18, 4939, 2668, 2497, 13, 309, 562, 12, 4099, 13, 480, 576, 30, 2907, 18, 1636, 2932, 9828, 353, 392, 2057, 1241, 316, 326, 3677, 585, 30, 738, 87, 18, 315, 315, 16877, 333, 1241, 1199, 738, 980, 13, 3258, 18, 6923, 12, 4099, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 12, 529, 4672, 3536, 2729, 279, 394, 2177, 18, 30053, 392, 1241, 316, 3677, 18, 5830, 364, 326, 394, 729, 18, 12781, 30, 971, 326, 1269, 508, 1914, 1281, 3949, 1308, 2353, 13768, 16, 5600, 16, 578, 7292, 16, 14183, 392, 1962, 461, 668, 18, 971, 4042, 729, 1704, 598, 333, 508, 16, 14183, 279, 2660, 18, 225, 3536, 468, 2660, 3554, 508, 225, 775, 30, 3677, 67, 768, 273, 599, 3677, 67, 768, 273, 1696, 12, 1299, 18, 5577, 67, 768, 13, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 10890, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 1355, 2 ]
fname = Header.Header(m.filename).encode()
fname = Header.Header(attachment.filename).encode()
def kindToMessageObject(mailMessage): """ This method converts a email message string to a Chandler C{MailMessage} object @param mailMessage: A C{email.Message} object representation of a mail message @type mailMessage: C{email.Message} @return: C{Message.Message} """ assert has_stamp(mailMessage, MailStamp), \ "mailMessage must have been stamped as a MailStamp" messageObject = Message.Message() stampedMail = MailStamp(mailMessage) # Create a messageId if none exists if not hasValue(stampedMail.messageId): stampedMail.messageId = createMessageID() populateHeader(messageObject, 'Message-ID', stampedMail.messageId) populateHeader(messageObject, 'Date', stampedMail.dateSentString) populateEmailAddresses(stampedMail, messageObject) populateStaticHeaders(messageObject) populateHeaders(stampedMail, messageObject) populateHeader(messageObject, 'Subject', stampedMail.subject, encode=True) if getattr(stampedMail, "inReplyTo", None): populateHeader(messageObject, 'In-Reply-To', stampedMail.inReplyTo, encode=False) if stampedMail.referencesMID and len(stampedMail.referencesMID): messageObject["References"] = " ".join(stampedMail.referencesMID) try: payload = mailMessage.body except AttributeError: payload = u"" isEvent = has_stamp(mailMessage, EventStamp) hasAttachments = stampedMail.getNumberOfAttachments() > 0 if not isEvent and not hasAttachments: # There are no attachments or Ical events so just add the # body text as the payload and return the messageObject messageObject.set_payload(payload.encode("utf-8"), charset="utf-8") return messageObject messageObject.set_type("multipart/mixed") if isEvent: # If this message is an event, prepend the event description to the body, # and add the event data as an attachment. # @@@ This probably isn't the right place to do this (since it couples the # email service to events and ICalendarness), but until we resolve the architectural # questions around stamping, it's good enough. # It's an event - prepend the description to the body, make the # message multipart, and add the body & ICS event as parts. Also, # add a private header telling us how long the description is, so # we'll know what to remove on the receiving end. # @@@ I tried multipart/alternative here, but this hides the attachment # completely on some clients... # @@@ In formatting the prepended description, I'm adding an extra newline # at the end so that Apple Mail will display the .ics attachment on its own line. event = EventStamp(mailMessage) timeDescription = event.getTimeDescription() location = unicode(getattr(event, 'location', u'')) if len(location.strip()) > 0: evtDesc = _(u"When: %(whenValue)s\nWhere: %(locationValue)s") \ % { 'whenValue': timeDescription, 'locationValue': location } else: evtDesc = _(u"When: %(whenValue)s") \ % { 'whenValue': timeDescription } payload = _(u"%(eventDescription)s\n\n%(bodyText)s\n") \ % {'eventDescription': evtDesc, 'bodyText': payload } mt = email.MIMEText.MIMEText(payload.encode('utf-8'), _charset="utf-8") messageObject.attach(mt) messageObject.add_header(createChandlerHeader("EventDescriptionLength"), str(len(evtDesc))) # Format this message as an ICalendar object import osaf.sharing.ICalendar as ICalendar calendar = ICalendar.itemsToVObject(mailMessage.itsItem.itsView, [event], filters=(Remindable.reminders.name,)) calendar.add('method').value="REQUEST" ics = calendar.serialize().encode('utf-8') # Attach the ICalendar object icsPayload = MIMENonMultipart('text', 'calendar', method='REQUEST', _charset="utf-8") fname = Header.Header(_(u"event.ics")).encode() icsPayload.add_header("Content-Disposition", "attachment", filename=fname) icsPayload.set_payload(ics) messageObject.attach(icsPayload) else: mt = email.MIMEText.MIMEText(payload.encode('utf-8'), _charset="utf-8") messageObject.attach(mt) if hasAttachments: attachments = stampedMail.getAttachments() for attachment in attachments: if has_stamp(attachment, MailStamp): # The attachment is another MailMessage try: rfc2822 = binaryToData(MailStamp(attachment).rfc2822Message) except AttributeError: rfc2822 = kindToMessageText(attachment, False) message = email.message_from_string(rfc2822) rfc2822Payload = MIMEMessage(message) messageObject.attach(rfc2822Payload) else: m = email.MIMEText.MIMEText(attachment) if m.mimeType == u"text/calendar": icsPayload = MIMENonMultipart('text', 'calendar', \ method='REQUEST', _charset="utf-8") fname = Header.Header(m.filename).encode() icsPayload.add_header("Content-Disposition", "attachment", filename=fname) icsPayload.set_payload(m.data.encode('utf-8')) messageObject.attach(icsPayload) return messageObject
b824ffaa4bf208ea594a3c9dcb2a3bef9daae3c2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/b824ffaa4bf208ea594a3c9dcb2a3bef9daae3c2/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3846, 774, 1079, 921, 12, 4408, 1079, 4672, 3536, 1220, 707, 7759, 279, 2699, 883, 533, 358, 279, 1680, 464, 749, 385, 95, 6759, 1079, 97, 733, 225, 632, 891, 4791, 1079, 30, 432, 385, 95, 3652, 18, 1079, 97, 733, 4335, 434, 279, 4791, 883, 632, 723, 4791, 1079, 30, 385, 95, 3652, 18, 1079, 97, 225, 632, 2463, 30, 385, 95, 1079, 18, 1079, 97, 3536, 225, 1815, 711, 67, 14317, 12, 4408, 1079, 16, 11542, 8860, 3631, 521, 315, 4408, 1079, 1297, 1240, 2118, 14429, 329, 487, 279, 11542, 8860, 6, 225, 883, 921, 273, 2350, 18, 1079, 1435, 14429, 329, 6759, 273, 11542, 8860, 12, 4408, 1079, 13, 225, 468, 1788, 279, 19090, 309, 6555, 1704, 225, 309, 486, 24932, 12, 14317, 329, 6759, 18, 2150, 548, 4672, 14429, 329, 6759, 18, 2150, 548, 273, 23836, 734, 1435, 225, 6490, 1864, 12, 2150, 921, 16, 296, 1079, 17, 734, 2187, 14429, 329, 6759, 18, 2150, 548, 13, 6490, 1864, 12, 2150, 921, 16, 296, 1626, 2187, 14429, 329, 6759, 18, 712, 7828, 780, 13, 6490, 4134, 7148, 12, 14317, 329, 6759, 16, 883, 921, 13, 6490, 5788, 3121, 12, 2150, 921, 13, 6490, 3121, 12, 14317, 329, 6759, 16, 883, 921, 13, 6490, 1864, 12, 2150, 921, 16, 296, 6638, 2187, 14429, 329, 6759, 18, 7857, 16, 2017, 33, 5510, 13, 225, 309, 3869, 12, 14317, 329, 6759, 16, 315, 267, 7817, 774, 3113, 599, 4672, 6490, 1864, 12, 2150, 921, 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, 3846, 774, 1079, 921, 12, 4408, 1079, 4672, 3536, 1220, 707, 7759, 279, 2699, 883, 533, 358, 279, 1680, 464, 749, 385, 95, 6759, 1079, 97, 733, 225, 632, 891, 4791, 1079, 30, 432, 385, 95, 3652, 18, 1079, 97, 733, 4335, 434, 279, 4791, 883, 632, 723, 4791, 1079, 30, 385, 95, 3652, 18, 1079, 97, 225, 632, 2463, 30, 385, 95, 1079, 18, 1079, 97, 3536, 225, 1815, 711, 67, 14317, 12, 4408, 1079, 16, 11542, 8860, 3631, 521, 315, 4408, 1079, 1297, 1240, 2118, 14429, 329, 487, 279, 11542, 8860, 6, 225, 883, 921, 273, 2350, 18, 1079, 1435, 14429, 329, 6759, 273, 11542, 8860, 12, 4408, 1079, 13, 225, 468, 1788, 279, 19090, 309, 2 ]
output += """
output += """
def tmpl_create_multiple_actions_form(self, form_name="", form_action="", method="GET", action_display={}, action_field_name="", button_label="", button_name="", content="", **hidden): """ Creates an HTML form with a multiple choice of actions and a button to select it. @param form_action: link to the receiver of the formular @param form_name: name of the HTML formular @param method: either 'GET' or 'POST' @param action_display: dictionary of actions. action is HTML name (name of action) display is the string provided in the popup @param action_field_name: html name of action field @param button_label: what's written on the button @param button_name: html name of the button @param content: what's inside te formular @param **hidden: dictionary of name/value pairs of hidden fields. """ output = """
27d7091bee433f509ff19c7a2e5950fe24ff0eca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3302/27d7091bee433f509ff19c7a2e5950fe24ff0eca/webcomment_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2640, 67, 9622, 67, 4905, 67, 687, 12, 2890, 16, 646, 67, 529, 1546, 3113, 646, 67, 1128, 1546, 3113, 707, 1546, 3264, 3113, 1301, 67, 5417, 28793, 1301, 67, 1518, 67, 529, 1546, 3113, 3568, 67, 1925, 1546, 3113, 3568, 67, 529, 1546, 3113, 913, 1546, 3113, 2826, 6345, 4672, 3536, 10210, 392, 3982, 646, 598, 279, 3229, 6023, 434, 4209, 471, 279, 3568, 358, 2027, 518, 18, 632, 891, 646, 67, 1128, 30, 1692, 358, 326, 5971, 434, 326, 646, 2490, 632, 891, 646, 67, 529, 30, 508, 434, 326, 3982, 646, 2490, 632, 891, 707, 30, 3344, 296, 3264, 11, 578, 296, 3798, 11, 632, 891, 1301, 67, 5417, 30, 3880, 434, 4209, 18, 1301, 353, 3982, 508, 261, 529, 434, 1301, 13, 2562, 353, 326, 533, 2112, 316, 326, 10431, 632, 891, 1301, 67, 1518, 67, 529, 30, 1729, 508, 434, 1301, 652, 632, 891, 3568, 67, 1925, 30, 4121, 1807, 5941, 603, 326, 3568, 632, 891, 3568, 67, 529, 30, 1729, 508, 434, 326, 3568, 632, 891, 913, 30, 4121, 1807, 4832, 6489, 646, 2490, 632, 891, 2826, 6345, 30, 3880, 434, 508, 19, 1132, 5574, 434, 5949, 1466, 18, 3536, 876, 225, 273, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2640, 67, 9622, 67, 4905, 67, 687, 12, 2890, 16, 646, 67, 529, 1546, 3113, 646, 67, 1128, 1546, 3113, 707, 1546, 3264, 3113, 1301, 67, 5417, 28793, 1301, 67, 1518, 67, 529, 1546, 3113, 3568, 67, 1925, 1546, 3113, 3568, 67, 529, 1546, 3113, 913, 1546, 3113, 2826, 6345, 4672, 3536, 10210, 392, 3982, 646, 598, 279, 3229, 6023, 434, 4209, 471, 279, 3568, 358, 2027, 518, 18, 632, 891, 646, 67, 1128, 30, 1692, 358, 326, 5971, 434, 326, 646, 2490, 632, 891, 646, 67, 529, 30, 508, 434, 326, 3982, 646, 2490, 632, 891, 707, 30, 3344, 296, 3264, 11, 578, 296, 3798, 11, 632, 891, 1301, 67, 5417, 30, 3880, 434, 4209, 2 ]
except urllib.HTTPError, e:
except HTTPError, e:
def allow_watcher(watcher): global prules, prules_etag, allow_rule, allow_rule_identities for i in xrange(3): if prules is None: get_prules() if prules is not None: if allow_rule is None: allow_rule_identities = Identity() allow_rule = Rule('pres_whitelist', conditions=Conditions([allow_rule_identities]), actions=Actions([SubHandling('allow')]), transformations=Transformations([ProvideServices([AllServices()]), ProvidePersons([AllPersons()]), ProvideDevices([AllDevices()]), ProvideAllAttributes()])) prules.append(allow_rule) if str(watcher) not in allow_rule_identities: allow_rule_identities.append(IdentityOne(str(watcher))) try: xcap_client.put('pres-rules', prules.toxml(pretty_print=True), etag=prules_etag) except urllib.HTTPError, e: print "Cannot PUT 'pres-rules' document: %s" % str(e) else: print "Watcher %s is now authorized" % watcher break sleep(0.1) else: print "Could not authorized watcher %s" % watcher
fbbc801ff4aa4626209164dd0f4907c6809b6e2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/fbbc801ff4aa4626209164dd0f4907c6809b6e2a/sip_subscribe_winfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1699, 67, 23894, 12, 23894, 4672, 2552, 846, 1513, 16, 846, 1513, 67, 20788, 16, 1699, 67, 5345, 16, 1699, 67, 5345, 67, 6392, 1961, 364, 277, 316, 12314, 12, 23, 4672, 309, 846, 1513, 353, 599, 30, 336, 67, 683, 1513, 1435, 309, 846, 1513, 353, 486, 599, 30, 309, 1699, 67, 5345, 353, 599, 30, 1699, 67, 5345, 67, 6392, 1961, 273, 7808, 1435, 1699, 67, 5345, 273, 6781, 2668, 12202, 67, 20409, 2187, 4636, 33, 8545, 3816, 5965, 67, 5345, 67, 6392, 1961, 65, 3631, 4209, 33, 6100, 3816, 1676, 14701, 2668, 5965, 6134, 65, 3631, 19245, 33, 4059, 1012, 3816, 20632, 5676, 3816, 1595, 5676, 1435, 65, 3631, 26569, 8346, 87, 3816, 1595, 8346, 87, 1435, 65, 3631, 26569, 10053, 3816, 1595, 10053, 1435, 65, 3631, 26569, 1595, 2498, 1435, 22643, 846, 1513, 18, 6923, 12, 5965, 67, 5345, 13, 309, 609, 12, 23894, 13, 486, 316, 1699, 67, 5345, 67, 6392, 1961, 30, 1699, 67, 5345, 67, 6392, 1961, 18, 6923, 12, 4334, 3335, 12, 701, 12, 23894, 20349, 775, 30, 619, 5909, 67, 2625, 18, 458, 2668, 12202, 17, 7482, 2187, 846, 1513, 18, 869, 2902, 12, 19073, 67, 1188, 33, 5510, 3631, 13655, 33, 683, 1513, 67, 20788, 13, 1335, 14415, 16, 425, 30, 1172, 315, 4515, 11443, 296, 12202, 17, 7482, 11, 1668, 30, 738, 87, 6, 738, 609, 12, 73, 13, 469, 30, 1172, 315, 9918, 738, 87, 353, 2037, 10799, 6, 738, 9527, 898, 5329, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1699, 67, 23894, 12, 23894, 4672, 2552, 846, 1513, 16, 846, 1513, 67, 20788, 16, 1699, 67, 5345, 16, 1699, 67, 5345, 67, 6392, 1961, 364, 277, 316, 12314, 12, 23, 4672, 309, 846, 1513, 353, 599, 30, 336, 67, 683, 1513, 1435, 309, 846, 1513, 353, 486, 599, 30, 309, 1699, 67, 5345, 353, 599, 30, 1699, 67, 5345, 67, 6392, 1961, 273, 7808, 1435, 1699, 67, 5345, 273, 6781, 2668, 12202, 67, 20409, 2187, 4636, 33, 8545, 3816, 5965, 67, 5345, 67, 6392, 1961, 65, 3631, 4209, 33, 6100, 3816, 1676, 14701, 2668, 5965, 6134, 65, 3631, 19245, 33, 4059, 1012, 3816, 20632, 5676, 3816, 1595, 5676, 1435, 65, 3631, 26569, 8346, 87, 3816, 1595, 8346, 2 ]
required_headers = ('date',)
def location(self): for name, value in self.headers: if name.lower() == 'location': return value else: raise KeyError("No location set for %s" % self)
4409e3621ec9c4cb235da7e66fb061a9ebfc61da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/4409e3621ec9c4cb235da7e66fb061a9ebfc61da/httpexceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2117, 12, 2890, 4672, 364, 508, 16, 460, 316, 365, 18, 2485, 30, 309, 508, 18, 8167, 1435, 422, 296, 3562, 4278, 327, 460, 469, 30, 1002, 4999, 2932, 2279, 2117, 444, 364, 738, 87, 6, 738, 365, 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,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, 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, 2117, 12, 2890, 4672, 364, 508, 16, 460, 316, 365, 18, 2485, 30, 309, 508, 18, 8167, 1435, 422, 296, 3562, 4278, 327, 460, 469, 30, 1002, 4999, 2932, 2279, 2117, 444, 364, 738, 87, 6, 738, 365, 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 ]
message['to'] = "jaxemachat@conference.%s" % ( CHATSERVER,)
message['to'] = "jaxemachat@conference.%s" % (secret.CHATSERVER,)
def processMessagePC(self, elem): _from = jid.JID( elem["from"] ) # Intercept private messages via a chatroom, can't do that :) if (_from.host == "conference.%s" % (CHATSERVER,)): self.send_private_request( _from ) return
24fa6a8a683868db6a24e95e0b656f67ea1dbe8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11180/24fa6a8a683868db6a24e95e0b656f67ea1dbe8d/iemchatbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1079, 3513, 12, 2890, 16, 3659, 4672, 389, 2080, 273, 14201, 18, 46, 734, 12, 3659, 9614, 2080, 11929, 262, 468, 5294, 956, 3238, 2743, 3970, 279, 7916, 13924, 16, 848, 1404, 741, 716, 294, 13, 309, 261, 67, 2080, 18, 2564, 422, 315, 591, 1134, 7866, 87, 6, 738, 261, 1792, 789, 4370, 16, 3719, 30, 365, 18, 4661, 67, 1152, 67, 2293, 12, 389, 2080, 262, 327, 2, 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, 1207, 1079, 3513, 12, 2890, 16, 3659, 4672, 389, 2080, 273, 14201, 18, 46, 734, 12, 3659, 9614, 2080, 11929, 262, 468, 5294, 956, 3238, 2743, 3970, 279, 7916, 13924, 16, 848, 1404, 741, 716, 294, 13, 309, 261, 67, 2080, 18, 2564, 422, 315, 591, 1134, 7866, 87, 6, 738, 261, 1792, 789, 4370, 16, 3719, 30, 365, 18, 4661, 67, 1152, 67, 2293, 12, 389, 2080, 262, 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 ]
def set_message(self, msgid, msgstr=[''], comments=[], references={}):
def set_message(self, msgid, msgstr=[u''], comments=[], references={}):
def set_message(self, msgid, msgstr=[''], comments=[], references={}): self._set_message(msgid, msgstr, comments, references) self.save()
92fbac2762ad6f7abb01e267b4ed5b254274700f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/92fbac2762ad6f7abb01e267b4ed5b254274700f/PO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2150, 12, 2890, 16, 24389, 16, 8733, 313, 22850, 89, 11, 17337, 5678, 22850, 6487, 5351, 12938, 4672, 365, 6315, 542, 67, 2150, 12, 3576, 350, 16, 8733, 313, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2150, 12, 2890, 16, 24389, 16, 8733, 313, 22850, 89, 11, 17337, 5678, 22850, 6487, 5351, 12938, 4672, 365, 6315, 542, 67, 2150, 12, 3576, 350, 16, 8733, 313, 16, 5678, 16, 5351, 13, 365, 18, 5688, 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 ]
post_syncdb.connect(wrap_evolution) mgmt.evolution = wrap_evolution
signal.connect(wrapper_func) dispatcher.connect = custom_connect
def wrap_evolution(app, created_models, verbosity=1, **kwargs): old_evolution(app, created_models, verbosity)
4be12cee712f5dd9c897c67f2f4f57f46869138f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/4be12cee712f5dd9c897c67f2f4f57f46869138f/manage.py
[ 1, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 14965, 5889, 12, 2910, 16, 2522, 67, 7665, 16, 11561, 33, 21, 16, 2826, 4333, 4672, 1592, 67, 14965, 5889, 12, 2910, 16, 2522, 67, 7665, 16, 11561, 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 ]
'<small>'
'<font size="-3">'
def about(self): QMessageBox.about(self, self.tr("About QReduce"),self.tr( '<center>' '<h3>QReduce 0.2</h3>' '<p>&copy; 2009-2010 T. Sturm, 2010 C. Zengler' '</center>' 'A worksheet-based GUI for the computer algebra system Reduce.' '<p>' '<small>' '<hr>' '<strong>License: </strong>' 'Redistribution and use in source and binary forms, with ' 'or without modification, are permitted provided that the ' 'following conditions are met: ' '(a) Redistributions of source code must retain the relevant ' 'copyright notice, this list of conditions and the following ' 'disclaimer. ' '(b) Redistributions in binary form must reproduce the above ' 'copyright notice, this list of conditions and the following ' 'disclaimer in the documentation and/or other materials ' 'provided with the distribution. ' '</small>' '<p>' '<small>' '<strong>Disclaimer:</strong> ' 'This software is provided by the copyright holders and ' 'contributors "as is" and any express or implied warranties, ' 'including, but not limited to, the implied warranties of ' 'merchantability and fitness for a particular purpose are ' 'disclaimed. In no event shall the copyright owners or ' 'contributors be liable for any direct, indirect, incidental, ' 'special, exemplary, or consequential damages (including, but ' 'not limited to, procurement of substitute goods or services; ' 'loss of use, data, or profits; or business interruption) ' 'however caused and on any theory of liability, whether in ' 'contract, strict liability, or tort (including negligence or ' 'otherwise) arising in any way out of the use of this ' 'software, even if advised of the possibility of such damage.' '</small>'))
64c03aad72260c69e1fcd6d14f19abc81a6789a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/403/64c03aad72260c69e1fcd6d14f19abc81a6789a2/qrmainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2973, 12, 2890, 4672, 30728, 18, 21071, 12, 2890, 16, 365, 18, 313, 2932, 24813, 2238, 12944, 6, 3631, 2890, 18, 313, 12, 2368, 5693, 1870, 2368, 76, 23, 34, 53, 12944, 374, 18, 22, 1757, 76, 23, 1870, 2368, 84, 22393, 3530, 31, 4044, 29, 17, 6734, 20, 399, 18, 934, 27430, 16, 18965, 385, 18, 2285, 24688, 749, 11, 4357, 5693, 1870, 296, 37, 13622, 17, 12261, 10978, 364, 326, 26579, 524, 29087, 2619, 24614, 1093, 2368, 84, 1870, 2368, 5776, 963, 1546, 17, 23, 7918, 2368, 7256, 1870, 2368, 9110, 34, 13211, 30, 7765, 9110, 1870, 296, 14406, 4027, 471, 999, 316, 1084, 471, 3112, 10138, 16, 598, 296, 296, 280, 2887, 11544, 16, 854, 15498, 2112, 716, 326, 296, 296, 14641, 310, 4636, 854, 5100, 30, 296, 7747, 69, 13, 8505, 15326, 434, 1084, 981, 1297, 15096, 326, 9368, 296, 296, 29187, 11690, 16, 333, 666, 434, 4636, 471, 326, 3751, 296, 296, 2251, 830, 69, 4417, 18, 296, 7747, 70, 13, 8505, 15326, 316, 3112, 646, 1297, 283, 11776, 311, 326, 5721, 296, 296, 29187, 11690, 16, 333, 666, 434, 4636, 471, 326, 3751, 296, 296, 2251, 830, 69, 4417, 316, 326, 7323, 471, 19, 280, 1308, 31824, 296, 296, 29206, 598, 326, 7006, 18, 296, 4357, 12019, 1870, 2368, 84, 1870, 2368, 5776, 963, 1546, 17, 23, 7918, 2368, 9110, 34, 1669, 830, 69, 4417, 19814, 9110, 34, 296, 296, 2503, 17888, 353, 2112, 635, 326, 22245, 366, 4665, 471, 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, 2973, 12, 2890, 4672, 30728, 18, 21071, 12, 2890, 16, 365, 18, 313, 2932, 24813, 2238, 12944, 6, 3631, 2890, 18, 313, 12, 2368, 5693, 1870, 2368, 76, 23, 34, 53, 12944, 374, 18, 22, 1757, 76, 23, 1870, 2368, 84, 22393, 3530, 31, 4044, 29, 17, 6734, 20, 399, 18, 934, 27430, 16, 18965, 385, 18, 2285, 24688, 749, 11, 4357, 5693, 1870, 296, 37, 13622, 17, 12261, 10978, 364, 326, 26579, 524, 29087, 2619, 24614, 1093, 2368, 84, 1870, 2368, 5776, 963, 1546, 17, 23, 7918, 2368, 7256, 1870, 2368, 9110, 34, 13211, 30, 7765, 9110, 1870, 296, 14406, 4027, 471, 999, 316, 1084, 471, 3112, 10138, 16, 598, 296, 296, 280, 2887, 11544, 16, 854, 2 ]
self.notify.debug("delayDeleteCount for doId %s -- deleteImminent" % (self.doId))
assert(self.notify.debug("delayDeleteCount for doId %s -- deleteImminent" % (self.doId)))
def delayDelete(self, flag): # Flag should be 0 or 1, meaning increment or decrement count # Also see DelayDelete.py
4661ac427c38464e5c9cefaa283687baf3f33af3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/4661ac427c38464e5c9cefaa283687baf3f33af3/DistributedObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4624, 2613, 12, 2890, 16, 2982, 4672, 468, 9960, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4624, 2613, 12, 2890, 16, 2982, 4672, 468, 9960, 1410, 506, 374, 578, 404, 16, 12256, 5504, 578, 15267, 1056, 468, 8080, 2621, 20165, 2613, 18, 2074, 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 ]
roundup_server.run(port, success_message)
roundup_server.run(success_message=success_message) def demo_main(): """Run a demo server for users to play with for instant gratification. Sets up the web service on localhost. Disables nosy lists. """ home = os.path.abspath('demo') if not os.path.exists(home) or (sys.argv[-1] == 'nuke'): if len(sys.argv) > 2: backend = sys.argv[-2] else: backend = 'anydbm' install_demo(home, backend, os.path.join('templates', 'classic')) run_demo(home)
def run_demo(): ''' Run a demo server for users to play with for instant gratification. Sets up the web service on localhost. Disables nosy lists. ''' home = os.path.abspath('demo') backend = 'anydbm' if not os.path.exists(home) or sys.argv[-1] == 'nuke': if len(sys.argv) > 2: backend = sys.argv[-2] install_demo(home, backend) cfg = ConfigParser.ConfigParser() cfg.read(os.path.join(home, 'config.ini')) url = cfg.get('tracker', 'web') hostname, port = urlparse.urlparse(url)[1].split(':') port = int(port) # ok, so start up the server from roundup.scripts import roundup_server roundup_server.RoundupRequestHandler.TRACKER_HOMES = {'demo': home} success_message = '''Server running - connect to: %s
4e39cc9c84cb81d6ae66e39468fe97b20a969216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4e39cc9c84cb81d6ae66e39468fe97b20a969216/demo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 27928, 13332, 9163, 1939, 279, 21477, 1438, 364, 3677, 358, 6599, 598, 364, 5934, 3821, 270, 1480, 18, 225, 11511, 731, 326, 3311, 1156, 603, 17365, 18, 3035, 1538, 26628, 93, 6035, 18, 9163, 6382, 273, 1140, 18, 803, 18, 5113, 803, 2668, 27928, 6134, 4221, 273, 296, 2273, 1966, 81, 11, 309, 486, 1140, 18, 803, 18, 1808, 12, 8712, 13, 578, 2589, 18, 19485, 18919, 21, 65, 422, 296, 29705, 4278, 309, 562, 12, 9499, 18, 19485, 13, 405, 576, 30, 4221, 273, 2589, 18, 19485, 18919, 22, 65, 3799, 67, 27928, 12, 8712, 16, 4221, 13, 225, 2776, 273, 25076, 18, 809, 2678, 1435, 2776, 18, 896, 12, 538, 18, 803, 18, 5701, 12, 8712, 16, 296, 1425, 18, 8767, 26112, 880, 273, 2776, 18, 588, 2668, 16543, 2187, 296, 4875, 6134, 5199, 16, 1756, 273, 15185, 18, 718, 2670, 12, 718, 25146, 21, 8009, 4939, 2668, 2497, 13, 1756, 273, 509, 12, 655, 13, 225, 468, 1529, 16, 1427, 787, 731, 326, 1438, 628, 3643, 416, 18, 12827, 1930, 3643, 416, 67, 3567, 3643, 416, 67, 3567, 18, 11066, 416, 28773, 18, 28720, 654, 67, 14209, 55, 273, 13666, 27928, 4278, 6382, 97, 225, 2216, 67, 2150, 273, 9163, 2081, 3549, 300, 3077, 358, 30, 738, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 27928, 13332, 9163, 1939, 279, 21477, 1438, 364, 3677, 358, 6599, 598, 364, 5934, 3821, 270, 1480, 18, 225, 11511, 731, 326, 3311, 1156, 603, 17365, 18, 3035, 1538, 26628, 93, 6035, 18, 9163, 6382, 273, 1140, 18, 803, 18, 5113, 803, 2668, 27928, 6134, 4221, 273, 296, 2273, 1966, 81, 11, 309, 486, 1140, 18, 803, 18, 1808, 12, 8712, 13, 578, 2589, 18, 19485, 18919, 21, 65, 422, 296, 29705, 4278, 309, 562, 12, 9499, 18, 19485, 13, 405, 576, 30, 4221, 273, 2589, 18, 19485, 18919, 22, 65, 3799, 67, 27928, 12, 8712, 16, 4221, 13, 225, 2776, 273, 25076, 18, 809, 2678, 1435, 2776, 18, 896, 12, 538, 18, 803, 18, 5701, 2 ]
if alert_device not in engine.output_devices: if 'default' in engine.output_devices: alert_device = 'default' else: alert_device = None
if alert_device not in (None, 'default') and alert_device not in engine.output_devices: alert_device = 'default'
def start(self, config_backend=None): if self.state is not None: raise RuntimeError("SIPApplication cannot be started from '%s' state" % self.state) self.state = 'starting' account_manager = AccountManager() configuration_manager = ConfigurationManager() notification_center = NotificationCenter() session_manager = SessionManager()
a820090ef4574b702ee6770efee9bb4e9f5f382e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/a820090ef4574b702ee6770efee9bb4e9f5f382e/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 642, 67, 9993, 33, 7036, 4672, 309, 365, 18, 2019, 353, 486, 599, 30, 1002, 7265, 2932, 17739, 3208, 2780, 506, 5746, 628, 1995, 87, 11, 919, 6, 738, 365, 18, 2019, 13, 365, 18, 2019, 273, 296, 18526, 11, 2236, 67, 4181, 273, 6590, 1318, 1435, 1664, 67, 4181, 273, 4659, 1318, 1435, 3851, 67,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 642, 67, 9993, 33, 7036, 4672, 309, 365, 18, 2019, 353, 486, 599, 30, 1002, 7265, 2932, 17739, 3208, 2780, 506, 5746, 628, 1995, 87, 11, 919, 6, 738, 365, 18, 2019, 13, 365, 18, 2019, 273, 296, 18526, 11, 2236, 67, 4181, 273, 6590, 1318, 1435, 1664, 67, 4181, 273, 4659, 1318, 1435, 3851, 67, 5693, 273, 8050, 8449, 1435, 1339, 67, 4181, 273, 3877, 1318, 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 ]