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
like IPAddress(1), which could be IPv4, '0.0.0.0.1', or IPv6,
like IPAddress(1), which could be IPv4, '0.0.0.1', or IPv6,
def IPAddress(address, version=None): """Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. version: An Integer, 4 or 6. If set, don't try to automatically determine what the IP address type is. important for things like IPAddress(1), which could be IPv4, '0.0.0.0.1', or IPv6, '::1'. Returns: An IPv4Address or IPv6Address object. Raises: ValueError: if the string passed isn't either a v4 or a v6 address. """ if version: if version == 4: return IPv4Address(address) elif version == 6: return IPv6Address(address) try: return IPv4Address(address) except (AddressValueError, NetmaskValueError): pass try: return IPv6Address(address) except (AddressValueError, NetmaskValueError): pass raise ValueError('%r does not appear to be an IPv4 or IPv6 address' % address)
d437f78f6112dbe1b9a4823d75181be2f9ebdc17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5467/d437f78f6112dbe1b9a4823d75181be2f9ebdc17/ipaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23588, 12, 2867, 16, 1177, 33, 7036, 4672, 3536, 13391, 392, 2971, 533, 19, 474, 471, 327, 392, 733, 434, 326, 3434, 618, 18, 225, 6634, 30, 1758, 30, 432, 533, 578, 3571, 16, 326, 2971, 1758, 18, 225, 14635, 7853, 24, 578, 7853, 26, 6138, 2026, 506, 4580, 31, 12321, 5242, 2353, 576, 636, 1578, 903, 506, 7399, 358, 506, 7853, 24, 635, 805, 18, 1177, 30, 1922, 2144, 16, 1059, 578, 1666, 18, 971, 444, 16, 2727, 1404, 775, 358, 6635, 4199, 4121, 326, 2971, 1758, 618, 353, 18, 10802, 364, 9198, 3007, 23588, 12, 21, 3631, 1492, 3377, 506, 7853, 24, 16, 296, 20, 18, 20, 18, 20, 18, 21, 2187, 225, 578, 7853, 26, 16, 20042, 21, 10332, 225, 2860, 30, 1922, 7853, 24, 1887, 578, 7853, 26, 1887, 733, 18, 225, 20497, 30, 2068, 30, 309, 326, 533, 2275, 5177, 1404, 3344, 279, 331, 24, 578, 279, 331, 26, 1758, 18, 225, 3536, 309, 1177, 30, 309, 1177, 422, 1059, 30, 327, 7853, 24, 1887, 12, 2867, 13, 1327, 1177, 422, 1666, 30, 327, 7853, 26, 1887, 12, 2867, 13, 225, 775, 30, 327, 7853, 24, 1887, 12, 2867, 13, 1335, 261, 1887, 23610, 16, 8503, 4455, 23610, 4672, 1342, 225, 775, 30, 327, 7853, 26, 1887, 12, 2867, 13, 1335, 261, 1887, 23610, 16, 8503, 4455, 23610, 4672, 1342, 225, 1002, 2068, 29909, 86, 1552, 486, 9788, 358, 506, 392, 7853, 24, 578, 7853, 26, 1758, 11, 738, 1758, 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, 23588, 12, 2867, 16, 1177, 33, 7036, 4672, 3536, 13391, 392, 2971, 533, 19, 474, 471, 327, 392, 733, 434, 326, 3434, 618, 18, 225, 6634, 30, 1758, 30, 432, 533, 578, 3571, 16, 326, 2971, 1758, 18, 225, 14635, 7853, 24, 578, 7853, 26, 6138, 2026, 506, 4580, 31, 12321, 5242, 2353, 576, 636, 1578, 903, 506, 7399, 358, 506, 7853, 24, 635, 805, 18, 1177, 30, 1922, 2144, 16, 1059, 578, 1666, 18, 971, 444, 16, 2727, 1404, 775, 358, 6635, 4199, 4121, 326, 2971, 1758, 618, 353, 18, 10802, 364, 9198, 3007, 23588, 12, 21, 3631, 1492, 3377, 506, 7853, 24, 16, 296, 20, 18, 20, 18, 20, 18, 21, 2187, 225, 578, 7853, 26, 2 ]
reDepth = re.compile("(\$__\w+)", re.I | re.S ) res = reDepth.sub(r"\1_" + `depth`,res) return res
return indent(res, depth)
def flatten_report(self, report, depth=0):
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 67, 6006, 12, 2890, 16, 2605, 16, 3598, 33, 20, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 67, 6006, 12, 2890, 16, 2605, 16, 3598, 33, 20, 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 ]
self.client.voidresp()
self.assertEqual(self.client.voidresp(), "226 transfer complete")
def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.client.voidresp()
73b3632747ecfa87480afc8a00af27a4a7839ce6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/73b3632747ecfa87480afc8a00af27a4a7839ce6/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 25831, 13, 7313, 18, 4412, 1435, 365, 18, 2625, 18, 6459, 12243, 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 ]
def value(self): return str(self._v)[:-1]
def value(self): result = str(self._v) if result[-1:] == 'L': return result[:-1] return result
def value(self): return str(self._v)[:-1]
643702cbcea435af26b0a5a6dc6e461932f73118 /local1/tlutelli/issta_data/temp/all_python//python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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 12, 2890, 4672, 327, 609, 12, 2890, 6315, 90, 13, 10531, 17, 21, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 Numeric.ones(1,'d')
return ones(1,'d')
def barthann(M,sym=1): """Return the M-point modified Bartlett-Hann window. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M+1 n = arange(0,M) fac = abs(n/(M-1.0)-0.5) w = 0.62 - 0.48*fac + 0.38*cos(2*pi*fac) if not sym and not odd: w = w[:-1] return w
936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 451, 1072, 12, 49, 16, 8117, 33, 21, 4672, 3536, 990, 326, 490, 17, 1153, 4358, 605, 485, 1810, 88, 17, 44, 1072, 2742, 18, 3536, 309, 490, 411, 404, 30, 327, 16980, 18, 1126, 3816, 5717, 309, 490, 422, 404, 30, 327, 5945, 12, 21, 11189, 72, 6134, 14800, 273, 490, 738, 576, 309, 486, 5382, 471, 486, 14800, 30, 490, 273, 490, 15, 21, 290, 273, 9660, 12, 20, 16, 49, 13, 5853, 273, 2417, 12, 82, 19, 12, 49, 17, 21, 18, 20, 24950, 20, 18, 25, 13, 341, 273, 374, 18, 8898, 300, 374, 18, 8875, 14, 11639, 397, 374, 18, 7414, 14, 14445, 12, 22, 14, 7259, 14, 11639, 13, 309, 486, 5382, 471, 486, 14800, 30, 341, 273, 341, 10531, 17, 21, 65, 327, 341, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 451, 1072, 12, 49, 16, 8117, 33, 21, 4672, 3536, 990, 326, 490, 17, 1153, 4358, 605, 485, 1810, 88, 17, 44, 1072, 2742, 18, 3536, 309, 490, 411, 404, 30, 327, 16980, 18, 1126, 3816, 5717, 309, 490, 422, 404, 30, 327, 5945, 12, 21, 11189, 72, 6134, 14800, 273, 490, 738, 576, 309, 486, 5382, 471, 486, 14800, 30, 490, 273, 490, 15, 21, 290, 273, 9660, 12, 20, 16, 49, 13, 5853, 273, 2417, 12, 82, 19, 12, 49, 17, 21, 18, 20, 24950, 20, 18, 25, 13, 341, 273, 374, 18, 8898, 300, 374, 18, 8875, 14, 11639, 397, 374, 18, 7414, 14, 14445, 12, 22, 14, 7259, 14, 11639, 13, 309, 486, 2 ]
PATH = "%s/share/specto/" % sys.prefix
PATH = "%s/share/specto/" % PREFIX
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) else: if not category: PATH =os.path.join(os.getcwd(), "data/") elif category=="doc": PATH = os.path.join(os.getcwd(), "data/doc/") elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) if category == "specto": try: PATH = os.path.join(os.environ['XDG_CONFIG_HOME'], "specto") except KeyError: PATH = os.path.join(os.environ['HOME'], ".config", "specto") if not os.path.exists(PATH): os.makedirs(PATH) os.chmod(PATH, 0700) # Meet XDG spec if category == "tmp": try: PATH = os.path.join(os.environ['XDG_CACHE_HOME'], "specto") except KeyError: PATH = os.path.join(os.environ['HOME'], ".cache", "specto") if not os.path.exists(PATH): os.makedirs(PATH) os.chmod(PATH, 0700) # Meet XDG spec return PATH
cd6c3e3c9b4d25b6b93cb36f41ec74052d9ffe02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10818/cd6c3e3c9b4d25b6b93cb36f41ec74052d9ffe02/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 12, 4743, 33, 7036, 4672, 3536, 2000, 326, 3434, 589, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 2668, 892, 6134, 578, 486, 1140, 18, 803, 18, 1808, 2668, 13234, 2941, 11, 4672, 309, 486, 3150, 30, 7767, 273, 2213, 87, 19, 14419, 19, 13234, 83, 4898, 738, 17154, 1327, 3150, 31713, 2434, 6877, 7767, 273, 2213, 87, 19, 14419, 19, 2434, 19, 13234, 83, 4898, 738, 2589, 18, 3239, 1327, 3150, 31713, 4816, 6877, 7767, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 469, 30, 309, 486, 3150, 30, 7767, 273, 538, 18, 803, 18, 5701, 12, 538, 18, 588, 11089, 9334, 315, 892, 4898, 13, 1327, 3150, 31713, 2434, 6877, 7767, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 588, 11089, 9334, 315, 892, 19, 2434, 4898, 13, 1327, 3150, 31713, 4816, 6877, 7767, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 225, 309, 3150, 422, 315, 13234, 83, 6877, 775, 30, 7767, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 28684, 3292, 22953, 43, 67, 7203, 67, 14209, 17337, 315, 13234, 83, 7923, 1335, 4999, 30, 7767, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 28684, 3292, 14209, 17337, 3552, 1425, 3113, 315, 13234, 83, 7923, 309, 486, 1140, 18, 803, 18, 1808, 12, 4211, 4672, 1140, 18, 81, 9477, 10539, 12, 4211, 13, 1140, 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, 803, 12, 4743, 33, 7036, 4672, 3536, 2000, 326, 3434, 589, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 2668, 892, 6134, 578, 486, 1140, 18, 803, 18, 1808, 2668, 13234, 2941, 11, 4672, 309, 486, 3150, 30, 7767, 273, 2213, 87, 19, 14419, 19, 13234, 83, 4898, 738, 17154, 1327, 3150, 31713, 2434, 6877, 7767, 273, 2213, 87, 19, 14419, 19, 2434, 19, 13234, 83, 4898, 738, 2589, 18, 3239, 1327, 3150, 31713, 4816, 6877, 7767, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 469, 30, 309, 486, 3150, 30, 7767, 273, 538, 18, 803, 18, 5701, 12, 538, 18, 588, 11089, 9334, 315, 2 ]
except:
except AttributeError:
def close(self): self.sync() try: self.dict.close() except: pass self.dict = 0
b7cd7e2b445cac06673bd92abe0cab8d1ab0eac0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b7cd7e2b445cac06673bd92abe0cab8d1ab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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 8389, 1435, 775, 30, 365, 18, 1576, 18, 4412, 1435, 1335, 6394, 30, 1342, 365, 18, 1576, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for entry in response_feed.entry: print 'batch id: %s' % (entry.batch_id.text,) print 'status: %s' % (entry.batch_status.code,) print 'reason: %s' % (entry.batch_status.reason,)
def _batch_delete_recur(self, date, event, cal_user): """Delete a subset of instances of recurring events.""" request_feed = gdata.calendar.CalendarEventFeed() single_events = self.get_events(cal_user, date=date, title=event.title.text, expand_recurrence=True) delete_events = [e for e in single_events if e.original_event and e.original_event.id == event.id.text.split('/')[-1]] map(request_feed.AddDelete, [None], delete_events, [None]) response_feed = self.ExecuteBatch(request_feed, USER_BATCH_URL_FORMAT % cal_user) for entry in response_feed.entry: print 'batch id: %s' % (entry.batch_id.text,) print 'status: %s' % (entry.batch_status.code,) print 'reason: %s' % (entry.batch_status.reason,) # For some reason, batch requests always fail... # Do it the slow way. #for d in delete_events: # gdata.service.GDataService.Delete(self, d.GetEditLink().href)
b0759e4e9a76ab4aee7bf647e700284a0b46a3d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/b0759e4e9a76ab4aee7bf647e700284a0b46a3d0/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5303, 67, 3733, 67, 266, 1397, 12, 2890, 16, 1509, 16, 871, 16, 1443, 67, 1355, 4672, 3536, 2613, 279, 7931, 434, 3884, 434, 26043, 2641, 12123, 590, 67, 7848, 273, 314, 892, 18, 11650, 18, 7335, 1133, 8141, 1435, 2202, 67, 5989, 273, 365, 18, 588, 67, 5989, 12, 771, 67, 1355, 16, 1509, 33, 712, 16, 2077, 33, 2575, 18, 2649, 18, 955, 16, 4542, 67, 266, 17131, 33, 5510, 13, 1430, 67, 5989, 273, 306, 73, 364, 425, 316, 2202, 67, 5989, 309, 425, 18, 8830, 67, 2575, 471, 425, 18, 8830, 67, 2575, 18, 350, 422, 871, 18, 350, 18, 955, 18, 4939, 2668, 2473, 13, 18919, 21, 13563, 852, 12, 2293, 67, 7848, 18, 986, 2613, 16, 306, 7036, 6487, 1430, 67, 5989, 16, 306, 7036, 5717, 766, 67, 7848, 273, 365, 18, 5289, 4497, 12, 2293, 67, 7848, 16, 7443, 67, 25147, 67, 1785, 67, 7254, 738, 1443, 67, 1355, 13, 364, 1241, 316, 766, 67, 7848, 18, 4099, 30, 1172, 296, 5303, 612, 30, 738, 87, 11, 738, 261, 4099, 18, 5303, 67, 350, 18, 955, 16, 13, 1172, 296, 2327, 30, 738, 87, 11, 738, 261, 4099, 18, 5303, 67, 2327, 18, 710, 16, 13, 1172, 296, 10579, 30, 738, 87, 11, 738, 261, 4099, 18, 5303, 67, 2327, 18, 10579, 16, 13, 468, 2457, 2690, 3971, 16, 2581, 3285, 3712, 2321, 2777, 468, 2256, 518, 326, 11816, 4031, 18, 468, 1884, 302, 316, 1430, 67, 5989, 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, 5303, 67, 3733, 67, 266, 1397, 12, 2890, 16, 1509, 16, 871, 16, 1443, 67, 1355, 4672, 3536, 2613, 279, 7931, 434, 3884, 434, 26043, 2641, 12123, 590, 67, 7848, 273, 314, 892, 18, 11650, 18, 7335, 1133, 8141, 1435, 2202, 67, 5989, 273, 365, 18, 588, 67, 5989, 12, 771, 67, 1355, 16, 1509, 33, 712, 16, 2077, 33, 2575, 18, 2649, 18, 955, 16, 4542, 67, 266, 17131, 33, 5510, 13, 1430, 67, 5989, 273, 306, 73, 364, 425, 316, 2202, 67, 5989, 309, 425, 18, 8830, 67, 2575, 471, 425, 18, 8830, 67, 2575, 18, 350, 422, 871, 18, 350, 18, 955, 18, 4939, 2668, 2473, 13, 18919, 21, 13563, 852, 12, 2293, 67, 2 ]
print triplet, angle
def __init__(self, graph): from molmod.data.bonds import bonds
4c86111a0a82f9132f64fc64f733cc3e40895bdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11053/4c86111a0a82f9132f64fc64f733cc3e40895bdf/toyff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2667, 4672, 628, 12629, 1711, 18, 892, 18, 70, 4096, 1930, 15692, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2667, 4672, 628, 12629, 1711, 18, 892, 18, 70, 4096, 1930, 15692, 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 ]
print "enter hello"
def hello(self): print "enter hello" if we_are_translated(): self.saved_pool = gc_swap_pool(self.local_pool) super(ClonableCoroutine).hello(self)
9f8f671d8cefde4ca29b5aa5a6e0ce6f0007cf8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/9f8f671d8cefde4ca29b5aa5a6e0ce6f0007cf8c/interp_clonable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19439, 12, 2890, 4672, 309, 732, 67, 834, 67, 22899, 13332, 365, 18, 14077, 67, 6011, 273, 8859, 67, 22270, 67, 6011, 12, 2890, 18, 3729, 67, 6011, 13, 2240, 12, 2009, 265, 429, 6217, 8983, 2934, 23711, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19439, 12, 2890, 4672, 309, 732, 67, 834, 67, 22899, 13332, 365, 18, 14077, 67, 6011, 273, 8859, 67, 22270, 67, 6011, 12, 2890, 18, 3729, 67, 6011, 13, 2240, 12, 2009, 265, 429, 6217, 8983, 2934, 23711, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Link = GnuPlatformPrefix + Link
def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = CM3VERSION + "-" + time.strftime("%Y%m%d") # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32_VMS": CCompiler = "cc" CCompilerFlags = " " elif Config == "ALPHA64_VMS": CCompiler = "cc" CCompilerFlags = "/pointer_size=64 " elif StringTagged(Config, "SOLARIS") or Config == "SOLsun": CCompiler = "/usr/bin/cc" CCompilerFlags = "-g -mt -xldscope=symbolic " elif Config == "ALPHA_OSF": CCompiler = "/usr/bin/cc" CCompilerFlags = "-g " else: # gcc platforms CCompiler = { "SOLgnu" : "/usr/sfw/bin/gcc", }.get(Config) or "gcc" CCompilerFlags = { "I386_INTERIX" : "-g ", # gcc -fPIC generates incorrect code on Interix "SOLgnu" : "-g ", # -fPIC? }.get(Config) or "-g -fPIC " CCompilerFlags = CCompilerFlags + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "AMD64_DARWIN" : " -arch x86_64 ", "PPC64_DARWIN" : " -arch ppc64 ", "ARM_DARWIN" : " -march=armv6 -mcpu=arm1176jzf-s ", "LINUXLIBC6" : " -m32 -mno-align-double ", "I386_LINUX" : " -m32 -mno-align-double ", "MIPS64_OPENBSD" : " -mabi=64 ", "SOLgnu" : " -m32 -mcpu=v9 ", "I386_SOLARIS" : " -xarch=pentium_pro -Kpic ", "AMD64_SOLARIS" : " -xarch=amd64 -Kpic ", "SOLsun" : " -xarch=v8plus -xcode=pic32 ", "SPARC32_SOLARIS" : " -xarch=v8plus -xcode=pic32 ", "SPARC64_SOLARIS" : " -xarch=v9 -xcode=pic32 ", "SPARC32_LINUX" : " -m32 -mcpu=v9 -munaligned-doubles ", "SPARC64_LINUX" : " -m64 -munaligned-doubles ", }.get(Config) or " ") Link = "$(CC) $(CFLAGS) *.mo *.io *.o " # link flags if StringTagged(Target, "DARWIN"): pass elif StringTagged(Target, "SOLARIS") or Target.startswith("SOL"): Link = Link + " -lrt -lm -lnsl -lsocket -lpthread " elif StringTagged(Target, "HPUX"): Link = Link + " -lrt -lm " elif StringTagged(Target, "INTERIX"): Link = Link + " -lm " else: Link = Link + " -lm -lpthread " # add -c to compiler but not link (i.e. not CCompilerFlags) Compile = "$(CC) $(CFLAGS) " if not StringTagged(Config, "VMS"): Compile = Compile + " -c " AssembleOnTarget = not vms AssembleOnHost = not AssembleOnTarget # pick assembler if StringTagged(Target, "VMS") and AssembleOnTarget: Assembler = "macro" # not right, come back to it later AssemblerFlags = "/alpha " # not right, come back to it later elif StringTagged(Target, "SOLARIS") or Target.startswith("SOL"): # see http://gcc.gnu.org/ml/gcc/2010-05/msg00155.html Assembler = "/usr/ccs/bin/as" elif StringTagged(Target, "OSF"): Assembler = "/usr/bin/as" else: Assembler = "as" # set assembler flags AssemblerFlags = " " if Target != "PPC32_OPENBSD" and Target != "PPC_LINUX" and Target != "ARMEL_LINUX": # "Tag" not right for LINUX due to LINUXLIBC6 # "Tag" not right for BSD or 64 either. if Target.find("LINUX") != -1 or Target.find("BSD") != -1: if Target.find("64") != -1 or (StringTagged(Target, "ALPHA") and not StringTagged(Target, "ALPHA32")): AssemblerFlags = AssemblerFlags + " --64" else: AssemblerFlags = AssemblerFlags + " --32" AssemblerFlags = (AssemblerFlags + ({ "ALPHA_OSF" : " -nocpp ", "AMD64_DARWIN" : " -arch x86_64 ", "PPC64_DARWIN" : " -arch ppc64 ", "ARM_DARWIN" : " -arch armv6 ", "I386_SOLARIS" : " -Qy -s", "AMD64_SOLARIS" : " -Qy -s -xarch=generic64 ", "SOLgnu" : " -Qy -s -K PIC -xarch=v8plus ", "SOLsun" : " -Qy -s -K PIC -xarch=v8plus ", "SPARC32_SOLARIS" : " -Qy -s -K PIC -xarch=v8plus ", "SPARC64_SOLARIS" : " -Qy -s -K PIC -xarch=v9 ", "SPARC32_LINUX" : " -Qy -s -Av9a -32 -relax ", "SPARC64_LINUX" : " -Qy -s -Av9a -64 -no-undeclared-regs -relax ", }.get(Target) or "")) GnuPlatformPrefix = { "ARM_DARWIN" : "arm-apple-darwin8-", "ARMEL_LINUX" : "arm-linux-gnueabi-", "ALPHA32_VMS" : "alpha-dec-vms-", "ALPHA64_VMS" : "alpha64-dec-vms-", }.get(Target) or "" if not vms: CCompiler = GnuPlatformPrefix + CCompiler Link = GnuPlatformPrefix + Link if (not vms) or AssembleOnHost: Assembler = GnuPlatformPrefix + Assembler # squeeze runs of spaces and spaces at ends Compile = _SqueezeSpaces(Compile) CCompilerFlags = _SqueezeSpaces(CCompilerFlags) Link = _SqueezeSpaces(Link) Assembler = _SqueezeSpaces(Assembler) AssemblerFlags = _SqueezeSpaces(AssemblerFlags) BootDir = "./cm3-boot-" + Target + "-" + Version P = [ "m3cc", "import-libs", "m3core", "libm3", "sysutils", "m3middle", "m3quake", "m3objfile", "m3linker", "m3back", "m3front", "cm3" ] #DoPackage(["", "realclean"] + P) or sys.exit(1) DoPackage(["", "buildlocal"] + P) or sys.exit(1) try: shutil.rmtree(BootDir) except: pass try: os.mkdir(BootDir) except: pass # # This would probably be a good use of XSL (xml style sheets) # Make = open(os.path.join(BootDir, "make.sh"), "wb") VmsMake = open(os.path.join(BootDir, "vmsmake.com"), "wb") VmsLink = open(os.path.join(BootDir, "vmslink.opt"), "wb") Makefile = open(os.path.join(BootDir, "Makefile"), "wb") UpdateSource = open(os.path.join(BootDir, "updatesource.sh"), "wb") Objects = { } Makefile.write(".SUFFIXES:\n" + ".SUFFIXES: .c .is .ms .s .o .obj .io .mo\n\n" + "all: cm3\n\n" + "clean:\n" + "\trm -rf *.io *.mo *.o *.obj\n\n") for a in [UpdateSource, Make]: a.write("#!/bin/sh\n\n" + "set -e\n" + "set -x\n\n") for a in [Makefile]: a.write("# edit up here\n\n" + "CC=" + CCompiler + "\n" + "CFLAGS=" + CCompilerFlags + "\n" + "Compile=" + Compile + "\n" + "Assemble=" + Assembler + " " + AssemblerFlags + "\n" + "Link=" + Link + "\n" + "\n# no more editing should be needed\n\n") for a in [Make]: a.write("# edit up here\n\n" + "CC=${CC:-" + CCompiler + "}\n" + "CFLAGS=${CFLAGS:-" + CCompilerFlags + "}\n" + "Compile=" + Compile + "\n" + "Assemble=" + Assembler + " " + AssemblerFlags + "\n" + "Link=" + Link + "\n" + "\n# no more editing should be needed\n\n") for q in P: dir = GetPackagePath(q) for a in os.listdir(os.path.join(Root, dir, Config)): ext_c = a.endswith(".c") ext_h = a.endswith(".h") ext_s = a.endswith(".s") ext_ms = a.endswith(".ms") ext_is = a.endswith(".is") if not (ext_c or ext_h or ext_s or ext_ms or ext_is): continue fullpath = os.path.join(Root, dir, Config, a) if ext_h or ext_c or not vms or AssembleOnTarget: CopyFile(fullpath, BootDir) if ext_h: continue Object = GetObjectName(a) if Objects.get(Object): continue Objects[Object] = 1 if ext_c: VmsMake.write("$ " + Compile + " " + a + "\n") else: if AssembleOnHost: # must have cross assembler a = Assembler + " " + fullpath + " -o " + BootDir + "/" + Object print(a) os.system(a) else: VmsMake.write("$ " + Assembler + " " + a + "\n") VmsLink.write(Object + "/SELECTIVE_SEARCH\n") Makefile.write(".c.o:\n" + "\t$(Compile) -o $@ $<\n\n" + ".c.obj:\n" + "\t$(Compile) -o $@ $<\n\n" + ".is.io:\n" + "\t$(Assemble) -o $@ $<\n\n" + ".s.o:\n" + "\t$(Assemble) -o $@ $<\n\n" + ".ms.mo:\n" + "\t$(Assemble) -o $@ $<\n\n") Makefile.write("cm3:") Objects = Objects.keys() Objects.sort() k = 4 for a in Objects: k = k + 1 + len(a) if k > 76: # line wrap Makefile.write(" \\\n") k = 1 + len(a) Makefile.write(" " + a) Makefile.write("\n\t") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.o\n") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.obj\n") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.mo\n") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.io\n") VmsMake.write("$ link /executable=cm3.exe vmslink/options\n") for a in [Make, Makefile]: a.write("$(Link) -o cm3\n") for a in [ # # Add to this list as needed. # Adding more than necessary is ok -- assume the target system has no changes, # so we can replace whatever is there. # "m3-libs/libm3/src/os/POSIX/OSConfigPosix.m3", "m3-libs/libm3/src/random/m3makefile", "m3-libs/m3core/src/m3makefile", "m3-libs/m3core/src/Uwaitpid.quake", "m3-libs/m3core/src/thread.quake", "m3-libs/m3core/src/C/m3makefile", "m3-libs/m3core/src/C/" + Target + "/m3makefile", "m3-libs/m3core/src/C/Common/m3makefile", "m3-libs/m3core/src/Csupport/m3makefile", "m3-libs/m3core/src/float/m3makefile", "m3-libs/m3core/src/runtime/m3makefile", "m3-libs/m3core/src/runtime/common/m3makefile", "m3-libs/m3core/src/runtime/common/Compiler.tmpl", "m3-libs/m3core/src/runtime/common/m3text.h", "m3-libs/m3core/src/runtime/common/RTError.h", "m3-libs/m3core/src/runtime/common/RTMachine.i3", "m3-libs/m3core/src/runtime/common/RTProcess.h", "m3-libs/m3core/src/runtime/common/RTSignalC.c", "m3-libs/m3core/src/runtime/common/RTSignalC.h", "m3-libs/m3core/src/runtime/common/RTSignalC.i3", "m3-libs/m3core/src/runtime/common/RTSignal.i3", "m3-libs/m3core/src/runtime/common/RTSignal.m3", "m3-libs/m3core/src/runtime/" + Target + "/m3makefile", "m3-libs/m3core/src/runtime/" + Target + "/RTMachine.m3", "m3-libs/m3core/src/runtime/" + Target + "/RTSignal.m3", "m3-libs/m3core/src/runtime/" + Target + "/RTThread.m3", "m3-libs/m3core/src/text/TextLiteral.i3", "m3-libs/m3core/src/thread/m3makefile", "m3-libs/m3core/src/thread/PTHREAD/m3makefile", "m3-libs/m3core/src/thread/PTHREAD/ThreadPThread.m3", "m3-libs/m3core/src/thread/PTHREAD/ThreadPThreadC.i3", "m3-libs/m3core/src/thread/PTHREAD/ThreadPThreadC.c", "m3-libs/m3core/src/time/POSIX/m3makefile", "m3-libs/m3core/src/unix/m3makefile", "m3-libs/m3core/src/unix/Common/m3makefile", "m3-libs/m3core/src/unix/Common/m3unix.h", "m3-libs/m3core/src/unix/Common/Udir.i3", "m3-libs/m3core/src/unix/Common/UdirC.c", "m3-libs/m3core/src/unix/Common/Usignal.i3", "m3-libs/m3core/src/unix/Common/Ustat.i3", "m3-libs/m3core/src/unix/Common/UstatC.c", "m3-libs/m3core/src/unix/Common/UtimeC.c", "m3-libs/m3core/src/unix/Common/Uucontext.i3", "m3-sys/cminstall/src/config-no-install/SOLgnu", "m3-sys/cminstall/src/config-no-install/SOLsun", "m3-sys/cminstall/src/config-no-install/Solaris.common", "m3-sys/cminstall/src/config-no-install/Unix.common", "m3-sys/cminstall/src/config-no-install/cm3cfg.common", "m3-sys/cminstall/src/config-no-install/" + Target, "m3-sys/m3cc/src/m3makefile", "m3-sys/m3cc/src/gcc/m3cg/parse.c", "m3-sys/m3middle/src/Target.i3", "m3-sys/m3middle/src/Target.m3", "scripts/python/pylib.py", "m3-libs/m3core/src/C/" + Target + "/Csetjmp.i3", "m3-libs/m3core/src/C/" + Target + "/m3makefile", "m3-libs/m3core/src/C/Common/Csetjmp.i3", "m3-libs/m3core/src/C/Common/Csignal.i3", "m3-libs/m3core/src/C/Common/Cstdio.i3", "m3-libs/m3core/src/C/Common/Cstring.i3", "m3-libs/m3core/src/C/Common/m3makefile", ]: source = os.path.join(Root, a) if FileExists(source): name = GetLastPathElement(a) reldir = RemoveLastPathElement(a) destdir = os.path.join(BootDir, reldir) dest = os.path.join(destdir, name) try: os.makedirs(destdir) except: pass CopyFile(source, dest) for b in [UpdateSource, Make]: b.write("mkdir -p /dev2/cm3/" + reldir + "\n") b.write("cp " + a + " /dev2/cm3/" + a + "\n") for a in [UpdateSource, Make, Makefile, VmsMake, VmsLink]: a.close() # write entirely new custom makefile for NT # We always have object files so just compile and link in one fell swoop. if StringTagged(Config, "NT") or Config == "NT386": DeleteFile("updatesource.sh") DeleteFile("make.sh") Makefile = open(os.path.join(BootDir, "Makefile"), "wb") Makefile.write("cm3.exe: *.io *.mo *.c\r\n" + " cl -Zi -MD *.c -link *.mo *.io -out:cm3.exe user32.lib kernel32.lib wsock32.lib comctl32.lib gdi32.lib advapi32.lib netapi32.lib\r\n") Makefile.close() if vms or StringTagged(Config, "NT") or Config == "NT386": _MakeZip(BootDir[2:]) else: _MakeTGZ(BootDir[2:])
22b1cc2aedb3fba21804ba1ef44aa7694f1ad88c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/22b1cc2aedb3fba21804ba1ef44aa7694f1ad88c/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 15871, 23, 5757, 397, 7514, 397, 813, 18, 701, 9982, 27188, 61, 9, 81, 9, 72, 7923, 225, 468, 1220, 1779, 353, 16975, 628, 326, 642, 1390, 18, 468, 399, 18096, 30, 1378, 518, 1338, 316, 1245, 3166, 18, 468, 1021, 12156, 7065, 310, 707, 1552, 336, 716, 2145, 18, 225, 23731, 273, 514, 18674, 12, 809, 16, 315, 58, 3537, 7923, 225, 468, 6002, 326, 5274, 225, 309, 1903, 422, 315, 26313, 1578, 67, 58, 3537, 6877, 385, 9213, 273, 315, 952, 6, 385, 9213, 5094, 273, 315, 315, 1327, 1903, 422, 315, 26313, 1105, 67, 58, 3537, 6877, 385, 9213, 273, 315, 952, 6, 385, 9213, 5094, 273, 2206, 10437, 67, 1467, 33, 1105, 315, 1327, 514, 18674, 12, 809, 16, 315, 19815, 985, 5127, 7923, 578, 1903, 422, 315, 19815, 16924, 6877, 385, 9213, 273, 2206, 13640, 19, 4757, 19, 952, 6, 385, 9213, 5094, 273, 3701, 75, 300, 1010, 300, 92, 1236, 4887, 33, 9009, 12164, 315, 1327, 1903, 422, 315, 26313, 67, 4618, 42, 6877, 385, 9213, 273, 2206, 13640, 19, 4757, 19, 952, 6, 385, 9213, 5094, 273, 3701, 75, 315, 469, 30, 468, 314, 952, 17422, 385, 9213, 273, 288, 315, 19815, 1600, 89, 6, 294, 2206, 13640, 19, 87, 11966, 19, 4757, 19, 75, 952, 3113, 289, 18, 588, 12, 809, 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, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 15871, 23, 5757, 397, 7514, 397, 813, 18, 701, 9982, 27188, 61, 9, 81, 9, 72, 7923, 225, 468, 1220, 1779, 353, 16975, 628, 326, 642, 1390, 18, 468, 399, 18096, 30, 1378, 518, 1338, 316, 1245, 3166, 18, 468, 1021, 12156, 7065, 310, 707, 1552, 336, 716, 2145, 18, 225, 23731, 273, 514, 18674, 12, 809, 16, 315, 58, 3537, 7923, 225, 468, 6002, 326, 5274, 225, 309, 1903, 422, 315, 26313, 1578, 67, 58, 3537, 6877, 385, 9213, 273, 315, 952, 6, 385, 9213, 5094, 273, 315, 315, 1327, 1903, 2 ]
s = self.eval('apropos(%s)'%s).replace('\\ - ','-')
if verbose: print s, sys.stdout.flush() s = self._eval_line('apropos(%s)'%s, error_check=False).replace('\\ - ','-')
def completions(self, s): """ Return all commands that complete the command starting with the string s. This is like typing s[tab] in the maple interpreter. """ s = self.eval('apropos(%s)'%s).replace('\\ - ','-') return [x for x in s[1:-1].split(',') if x[0] != '?']
f49ccd764f26597f3e778708f286fd3926f061d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/f49ccd764f26597f3e778708f286fd3926f061d5/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23738, 12, 2890, 16, 272, 4672, 3536, 2000, 777, 4364, 716, 3912, 326, 1296, 5023, 598, 326, 533, 272, 18, 282, 1220, 353, 3007, 13408, 272, 63, 7032, 65, 316, 326, 852, 298, 16048, 18, 3536, 309, 3988, 30, 1172, 272, 16, 2589, 18, 10283, 18, 11330, 1435, 272, 273, 365, 6315, 8622, 67, 1369, 2668, 438, 303, 917, 9275, 87, 2506, 9, 87, 16, 555, 67, 1893, 33, 8381, 2934, 2079, 2668, 1695, 300, 3316, 17, 6134, 327, 306, 92, 364, 619, 316, 272, 63, 21, 30, 17, 21, 8009, 4939, 12, 2187, 6134, 309, 619, 63, 20, 65, 480, 13023, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23738, 12, 2890, 16, 272, 4672, 3536, 2000, 777, 4364, 716, 3912, 326, 1296, 5023, 598, 326, 533, 272, 18, 282, 1220, 353, 3007, 13408, 272, 63, 7032, 65, 316, 326, 852, 298, 16048, 18, 3536, 309, 3988, 30, 1172, 272, 16, 2589, 18, 10283, 18, 11330, 1435, 272, 273, 365, 6315, 8622, 67, 1369, 2668, 438, 303, 917, 9275, 87, 2506, 9, 87, 16, 555, 67, 1893, 33, 8381, 2934, 2079, 2668, 1695, 300, 3316, 17, 6134, 327, 306, 92, 364, 619, 316, 272, 63, 21, 30, 17, 21, 8009, 4939, 12, 2187, 6134, 309, 619, 63, 20, 65, 480, 13023, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"-r", "cubicspline",
"-r", "cubic",
def __resample(dir_temp, input_file, arcseconds_per_pixel): print "Resampling terrain ..." output_file = os.path.join(dir_temp, "terrain_resampled.tif") if os.path.exists(output_file): os.unlink(output_file) degree_per_pixel = float(arcseconds_per_pixel) / 3600.0 args = [cmd_gdal_warp, "-r", "cubicspline", "-tr", str(degree_per_pixel), str(degree_per_pixel), "-wo", "INTERLEAVE=BIL", "-wt", "Int16", "-of", "GTiff", "-srcnodata", "-31744", "-dstnodata", "-31744", "-multi", input_file, output_file] p = subprocess.Popen(args) p.wait() return output_file
c5a47829ab5ae343a54773dd573977f72949a10d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6105/c5a47829ab5ae343a54773dd573977f72949a10d/terrain_srtm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 455, 1511, 12, 1214, 67, 5814, 16, 810, 67, 768, 16, 8028, 7572, 67, 457, 67, 11743, 4672, 1172, 315, 607, 7639, 19272, 7596, 18483, 876, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 1214, 67, 5814, 16, 315, 387, 7596, 67, 455, 14814, 18, 26922, 7923, 309, 1140, 18, 803, 18, 1808, 12, 2844, 67, 768, 4672, 1140, 18, 318, 1232, 12, 2844, 67, 768, 13, 225, 10782, 67, 457, 67, 11743, 273, 1431, 12, 11828, 7572, 67, 457, 67, 11743, 13, 342, 12396, 18, 20, 225, 833, 273, 306, 4172, 67, 19016, 287, 67, 905, 84, 16, 3701, 86, 3113, 315, 71, 17616, 3113, 3701, 313, 3113, 609, 12, 21361, 67, 457, 67, 11743, 3631, 609, 12, 21361, 67, 457, 67, 11743, 3631, 3701, 6933, 3113, 315, 9125, 900, 26714, 33, 38, 2627, 3113, 3701, 6046, 3113, 315, 1702, 2313, 3113, 3701, 792, 3113, 315, 16506, 3048, 3113, 3701, 4816, 82, 18229, 3113, 3701, 23, 4033, 6334, 3113, 3701, 11057, 82, 18229, 3113, 3701, 23, 4033, 6334, 3113, 3701, 7027, 3113, 810, 67, 768, 16, 876, 67, 768, 65, 225, 293, 273, 6652, 18, 52, 3190, 12, 1968, 13, 293, 18, 7048, 1435, 225, 327, 876, 67, 768, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 455, 1511, 12, 1214, 67, 5814, 16, 810, 67, 768, 16, 8028, 7572, 67, 457, 67, 11743, 4672, 1172, 315, 607, 7639, 19272, 7596, 18483, 876, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 1214, 67, 5814, 16, 315, 387, 7596, 67, 455, 14814, 18, 26922, 7923, 309, 1140, 18, 803, 18, 1808, 12, 2844, 67, 768, 4672, 1140, 18, 318, 1232, 12, 2844, 67, 768, 13, 225, 10782, 67, 457, 67, 11743, 273, 1431, 12, 11828, 7572, 67, 457, 67, 11743, 13, 342, 12396, 18, 20, 225, 833, 273, 306, 4172, 67, 19016, 287, 67, 905, 84, 16, 3701, 86, 3113, 315, 71, 17616, 3113, 3701, 313, 3113, 609, 12, 21361, 67, 457, 67, 11743, 2 ]
setattr(c, model_name + '_collection', self.model.select())
setattr(c, model_name + '_collection', g.objectstore.query(self.model).select())
def index(self): """Show a list of all objects currently in the system.""" # GET, POST -> return list of objects
4c8ff3c8082eec023b93d3e4e4196aed23db03e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/4c8ff3c8082eec023b93d3e4e4196aed23db03e5/crud.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 3536, 5706, 279, 666, 434, 777, 2184, 4551, 316, 326, 2619, 12123, 468, 4978, 16, 5485, 317, 327, 666, 434, 2184, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 3536, 5706, 279, 666, 434, 777, 2184, 4551, 316, 326, 2619, 12123, 468, 4978, 16, 5485, 317, 327, 666, 434, 2184, 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 ]
for line in open(timeLog): log(item[item.rfind('/') + 1:] + ' [ %ss ]' % line[:-1]) break
line = open(timeLog).readline()[:-1] log(item[item.rfind('/') + 1:] + ' [ %ss ]' % line)
def runScriptPerfTests(options, testlist, largeData=False): failed = False for item in testlist: #$CHANDLERBIN/release/$RUN_CHANDLER --create --catch=tests # --profileDir="$PC_DIR" # --catsPerfLog="$TIME_LOG" # --scriptTimeout=600 # --scriptFile="$TESTNAME" &> $TESTLOG
3328cd9ca2c398ada6b7bc675bf147dd36d77a3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3328cd9ca2c398ada6b7bc675bf147dd36d77a3e/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 22016, 14650, 12, 2116, 16, 1842, 1098, 16, 7876, 751, 33, 8381, 4672, 2535, 273, 1083, 225, 364, 761, 316, 1842, 1098, 30, 468, 8, 1792, 4307, 14668, 12615, 19, 9340, 11141, 15238, 67, 1792, 4307, 14668, 1493, 2640, 1493, 14683, 33, 16341, 468, 4766, 282, 1493, 5040, 1621, 1546, 8, 3513, 67, 4537, 6, 468, 4766, 282, 1493, 24750, 22016, 1343, 1546, 8, 4684, 67, 4842, 6, 468, 4766, 282, 1493, 4263, 2694, 33, 28133, 468, 4766, 282, 1493, 4263, 812, 1546, 8, 16961, 1985, 6, 473, 34, 271, 16961, 4842, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 22016, 14650, 12, 2116, 16, 1842, 1098, 16, 7876, 751, 33, 8381, 4672, 2535, 273, 1083, 225, 364, 761, 316, 1842, 1098, 30, 468, 8, 1792, 4307, 14668, 12615, 19, 9340, 11141, 15238, 67, 1792, 4307, 14668, 1493, 2640, 1493, 14683, 33, 16341, 468, 4766, 282, 1493, 5040, 1621, 1546, 8, 3513, 67, 4537, 6, 468, 4766, 282, 1493, 24750, 22016, 1343, 1546, 8, 4684, 67, 4842, 6, 468, 4766, 282, 1493, 4263, 2694, 33, 28133, 468, 4766, 282, 1493, 4263, 812, 1546, 8, 16961, 1985, 6, 473, 34, 271, 16961, 4842, 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 ]
if havefilters: for idx in range(len(row)): name = '%sfilter%d' % (self.data_id, idx) if name in self.request.form: filters[idx] = self.request.form[name][0] if filters[idx] == self._all: filters[idx] = None
if havefilters: for idx in range(len(row)): name = '%sfilter%d' % (self.data_id, idx) if name in self.request.form: filters[idx] = self.request.form[name][0] if filters[idx] == self._all: filters[idx] = None
def format(self): fmt = self.request.formatter
95c93369dda35107495ca7ae211cf4108006733d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/95c93369dda35107495ca7ae211cf4108006733d/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 4672, 1325, 273, 365, 18, 2293, 18, 12354, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 4672, 1325, 273, 365, 18, 2293, 18, 12354, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return http.Response(stream=message('nothing to see.'))
return HTMLResponse(stream=message('nothing to see.'))
def render(self, ctx): return http.Response(stream=message('nothing to see.'))
39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 33, 2150, 2668, 30874, 358, 2621, 1093, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 30874, 358, 2621, 1093, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: Util().check_prerequisite_command(self.MAKEFS_CMD) except NotFoundError: sys.exit(1)
Util().check_prerequisite_command(self.MAKEFS_CMD)
def make_fs(self, image_path): try: Util().check_prerequisite_command(self.MAKEFS_CMD) except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2556, 12, 2890, 16, 1316, 67, 803, 4672, 775, 30, 3564, 7675, 1893, 67, 683, 822, 16608, 1137, 67, 3076, 12, 2890, 18, 5535, 6859, 4931, 67, 19473, 13, 1335, 25576, 30, 2589, 18, 8593, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2556, 12, 2890, 16, 1316, 67, 803, 4672, 775, 30, 3564, 7675, 1893, 67, 683, 822, 16608, 1137, 67, 3076, 12, 2890, 18, 5535, 6859, 4931, 67, 19473, 13, 1335, 25576, 30, 2589, 18, 8593, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
reactor.stop()
self.done()
def do_beah_cmd(self): #self.dbg("do_beah_cmd called")
3da422ade4fd77ce2062915f27ae151e509d8d3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/3da422ade4fd77ce2062915f27ae151e509d8d3d/beahcmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2196, 9795, 67, 4172, 12, 2890, 4672, 468, 2890, 18, 1966, 75, 2932, 2896, 67, 2196, 9795, 67, 4172, 2566, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2196, 9795, 67, 4172, 12, 2890, 4672, 468, 2890, 18, 1966, 75, 2932, 2896, 67, 2196, 9795, 67, 4172, 2566, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.environb.clear() os.environb.update(self.__saveb)
if os.name not in ('os2', 'nt'): os.environb.clear() os.environb.update(self.__saveb)
def tearDown(self): os.environ.clear() os.environ.update(self.__save) os.environb.clear() os.environb.update(self.__saveb)
6352f15ba89506e22133010950e36dd505556c13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/6352f15ba89506e22133010950e36dd505556c13/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1140, 18, 28684, 18, 8507, 1435, 1140, 18, 28684, 18, 2725, 12, 2890, 16186, 5688, 13, 1140, 18, 28684, 70, 18, 8507, 1435, 1140, 18, 28684, 70, 18, 2725, 12, 2890, 16186, 5688, 70, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1140, 18, 28684, 18, 8507, 1435, 1140, 18, 28684, 18, 2725, 12, 2890, 16186, 5688, 13, 1140, 18, 28684, 70, 18, 8507, 1435, 1140, 18, 28684, 70, 18, 2725, 12, 2890, 16186, 5688, 70, 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 ]
return ', '.join(users, ', ')
return ', '.join(users)
def creator(self): """Return a sequence of user names who have the local Owner role on an object. The name creator is used for this method to conform to Dublin Core.""" users=[] for user, roles in self.get_local_roles(): if 'Owner' in roles: users.append(user) return ', '.join(users, ', ')
364dbabbaf3733fadd8825986c9048fb1cd2ad61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/364dbabbaf3733fadd8825986c9048fb1cd2ad61/CatalogPathAwareness.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11784, 12, 2890, 4672, 3536, 990, 279, 3102, 434, 729, 1257, 10354, 1240, 326, 1191, 16837, 2478, 603, 392, 733, 18, 1021, 508, 11784, 353, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11784, 12, 2890, 4672, 3536, 990, 279, 3102, 434, 729, 1257, 10354, 1240, 326, 1191, 16837, 2478, 603, 392, 733, 18, 1021, 508, 11784, 353, 1399, 364, 333, 707, 358, 20156, 358, 31760, 4586, 12123, 3677, 33, 8526, 364, 729, 16, 4900, 316, 365, 18, 588, 67, 3729, 67, 7774, 13332, 309, 296, 5541, 11, 316, 4900, 30, 3677, 18, 6923, 12, 1355, 13, 327, 2265, 2418, 5701, 12, 5577, 16, 2265, 8624, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._head = self._createNode(0) self._tail = self._createNode(0)
self._head = self._createNode(1) self._tail = self._createNode(1)
def __init(self):
291188a3a479166ae1db3e1b64d7e6aca6607866 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/291188a3a479166ae1db3e1b64d7e6aca6607866/SkipList.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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.gl_update()
self.gl_update_highlight()
def leaveEvent(self, event): # Mark 060806. [minor revisions by bruce 070110] """Event handler for when the cursor leaves the GLPane. <event> is the last mouse event before leaving the GLpane. """ # If an object is "hover highlighted", unhighlight it when leaving the GLpane. if self.selobj is not None: self.selobj = None self.gl_update() # Kill timer when the cursor leaves the GLpane. It is (re)started in enterEvent() above. if self.highlightTimer: self.killTimer(self.highlightTimer) return
7c768374eefd8c25020cec977ea975b8846970fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/7c768374eefd8c25020cec977ea975b8846970fa/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8851, 1133, 12, 2890, 16, 871, 4672, 468, 6622, 374, 4848, 3672, 26, 18, 306, 17364, 18325, 635, 5186, 3965, 10934, 1611, 2163, 65, 3536, 1133, 1838, 364, 1347, 326, 3347, 15559, 326, 10252, 8485, 18, 411, 2575, 34, 353, 326, 1142, 7644, 871, 1865, 15086, 326, 10252, 29009, 18, 3536, 468, 971, 392, 733, 353, 315, 24969, 24375, 3113, 640, 15978, 518, 1347, 15086, 326, 10252, 29009, 18, 309, 365, 18, 1786, 2603, 353, 486, 599, 30, 365, 18, 1786, 2603, 273, 599, 365, 18, 7043, 67, 2725, 67, 15978, 1435, 225, 468, 20520, 5441, 1347, 326, 3347, 15559, 326, 10252, 29009, 18, 2597, 353, 261, 266, 13, 14561, 316, 6103, 1133, 1435, 5721, 18, 309, 365, 18, 15978, 6777, 30, 365, 18, 16418, 6777, 12, 2890, 18, 15978, 6777, 13, 327, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8851, 1133, 12, 2890, 16, 871, 4672, 468, 6622, 374, 4848, 3672, 26, 18, 306, 17364, 18325, 635, 5186, 3965, 10934, 1611, 2163, 65, 3536, 1133, 1838, 364, 1347, 326, 3347, 15559, 326, 10252, 8485, 18, 411, 2575, 34, 353, 326, 1142, 7644, 871, 1865, 15086, 326, 10252, 29009, 18, 3536, 468, 971, 392, 733, 353, 315, 24969, 24375, 3113, 640, 15978, 518, 1347, 15086, 326, 10252, 29009, 18, 309, 365, 18, 1786, 2603, 353, 486, 599, 30, 365, 18, 1786, 2603, 273, 599, 365, 18, 7043, 67, 2725, 67, 15978, 1435, 225, 468, 20520, 5441, 1347, 326, 3347, 15559, 326, 10252, 29009, 18, 2597, 353, 261, 266, 13, 14561, 316, 6103, 1133, 1435, 5721, 18, 309, 365, 2 ]
StrainID2PCAPosInfo = self.getStrainID2PCAPosInfo(snpData, pca_range=[0,1], snp_id_label_y_offset=snp_id_label_y_offset)
StrainID2PCAPosInfo = self.getStrainID2PCAPosInfo(snpData, pca_range=[0,1], snp_id_label_y_offset=snp_id_label_y_offset, explained_var=explained_var, T=PC_matrix)
def run(self): if self.debug: import pdb pdb.set_trace() db = Stock_250kDB.Stock_250kDB(drivername=self.drivername, username=self.db_user, password=self.db_passwd, hostname=self.hostname, database=self.dbname, schema=self.schema) db.setup(create_tables=False) session = db.session snpData = SNPData(input_fname=self.input_fname, turn_into_integer=1, turn_into_array=1, ignore_2nd_column=1) max_no_of_snps = 30000 if len(snpData.col_id_ls)>max_no_of_snps: #2008-12-01 randomly pick 30000 SNPs picked_col_index_ls = random.sample(range(len(snpData.col_id_ls)), max_no_of_snps) new_col_id_ls = [snpData.col_id_ls[i] for i in picked_col_index_ls] newSnpData = SNPData(row_id_ls=snpData.row_id_ls, col_id_ls=new_col_id_ls, strain_acc_list=snpData.strain_acc_list,\ category_list=snpData.category_list) newSnpData.data_matrix = snpData.data_matrix[:, picked_col_index_ls] snpData = newSnpData snpData, allele2index_ls = snpData.convertSNPAllele2Index() header_phen, strain_acc_list_phen, category_list_phen, data_matrix_phen = read_data(self.phenotype_fname, turn_into_integer=0) phenData = SNPData(header=header_phen, strain_acc_list=snpData.strain_acc_list, data_matrix=data_matrix_phen) #row label is that of the SNP matrix, because the phenotype matrix is gonna be re-ordered in that way phenData.data_matrix = Kruskal_Wallis.get_phenotype_matrix_in_data_matrix_order(snpData.row_id_ls, strain_acc_list_phen, phenData.data_matrix) #tricky, using strain_acc_list_phen phenotype_col_index = self.findOutWhichPhenotypeColumn(phenData, Set([self.phenotype_method_id]))[0] ecotype_info = getEcotypeInfo(db, self.country_order_type) #the offset below decides where the label of strains/snps should start in axe_snp_matrix #2008-11-14 only for PlotGroupOfSNPs.py. you can set it to 1 cuz we dont' draw axe_snp_matrix here. snp_id_label_y_offset = 0.95 StrainID2PCAPosInfo = self.getStrainID2PCAPosInfo(snpData, pca_range=[0,1], snp_id_label_y_offset=snp_id_label_y_offset) axe_y_offset1 = 0.03 axe_height1 = 0.45 #height of axe_chromosome, twice height of axe_map_phenotype_legend axe_y_offset2 = axe_y_offset1+axe_height1 axe_height2 = 0.5 #height of axe_strain_pca, axe_snp_matrix, axe_map axe_y_offset3 = axe_y_offset2+axe_height2 axe_x_offset1 = 0.05 axe_width1 = 0.8 #width of axe_strain_pca axe_x_offset2 = axe_x_offset1 + 0.02 + axe_width1 axe_width2 = 0.05 #width of axe_chromosome, axe_snp_matrix, axe_snp_pca axe_x_offset3 = axe_x_offset2 + axe_width2 axe_width3 = 0.02 #width of axe_phenotype phenotype_method = Stock_250kDB.PhenotypeMethod.get(self.phenotype_method_id) phenotype_cmap = mpl.cm.jet max_phenotype = max(phenData.data_matrix[:,phenotype_col_index]) min_phenotype = min(phenData.data_matrix[:,phenotype_col_index]) phenotype_gap = max_phenotype - min_phenotype phenotype_jitter = phenotype_gap/10. phenotype_norm = mpl.colors.Normalize(vmin=min_phenotype-phenotype_jitter, vmax=max_phenotype+phenotype_jitter) axe_map_phenotype_legend = pylab.axes([axe_x_offset2, axe_y_offset1, axe_width2, 0.3], frameon=False) cb = mpl.colorbar.ColorbarBase(axe_map_phenotype_legend, cmap=phenotype_cmap, norm=phenotype_norm, orientation='vertical') cb.set_label('Legend Of Phenotype %s %s'%(phenotype_method.id, phenotype_method.short_name)) axe_strain_map = pylab.axes([axe_x_offset1, axe_y_offset2, axe_width1, axe_height2], frameon=False) axe_strain_pca = pylab.axes([axe_x_offset1, axe_y_offset1, axe_width1, axe_height1], frameon=False) axe_strain_map_pca_cover = pylab.axes([axe_x_offset1, axe_y_offset1, axe_width1, axe_height1+axe_height2], frameon=False, \ sharex=axe_strain_pca) #cover both axe_strain_map and axe_strain_pca axe_strain_map_pca_cover.set_yticks([]) axe_strain_pca_xlim = [-0.05,1.05] axe_strain_pca_ylim = [0, 1.05] axe_strain_pca.set_xlim(axe_strain_pca_xlim) axe_strain_pca.set_ylim(axe_strain_pca_ylim) axe_strain_map_pca_cover_ylim = [0, (axe_height1+axe_height2)/axe_height1] #set it accordingly axe_strain_map_pca_cover.set_ylim(axe_strain_map_pca_cover_ylim) axe_strain_pca.grid(True, alpha=0.3) axe_strain_pca.set_xticks([]) axe_strain_pca.set_yticks([]) axe_strain_pca_legend = None #no pca legend self.drawStrainPCA(axe_strain_pca, axe_strain_map, axe_strain_map_pca_cover, axe_strain_pca_legend, StrainID2PCAPosInfo, \ ecotype_info, phenData, \ phenotype_col_index, phenotype_cmap, phenotype_norm, rightmost_x_value=axe_strain_pca_xlim[1],\ strain_color_type=2, pca2map_line_color=None, ecotype_width_on_map=10,\ draw_lines_to_axe_snp_matrix = False, strain_size_on_axe_strain_pca=14) #customize a couple of things axe_strain_pca.set_xlim(axe_strain_pca_xlim) axe_strain_pca.set_ylim(axe_strain_pca_ylim) axe_strain_map_pca_cover.set_ylim(axe_strain_map_pca_cover_ylim) png_output_fname = '%s.png'%self.output_fname_prefix pylab.savefig(png_output_fname, dpi=400) pylab.savefig('%s.svg'%self.output_fname_prefix)
2bdedeec67e197efc1586eb251f93015f76066c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/2bdedeec67e197efc1586eb251f93015f76066c2/DrawEcotypeOnMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 365, 18, 4148, 30, 1930, 10892, 10892, 18, 542, 67, 5129, 1435, 1319, 273, 20296, 363, 67, 26520, 79, 2290, 18, 17821, 67, 26520, 79, 2290, 12, 7407, 529, 33, 2890, 18, 7407, 529, 16, 2718, 33, 2890, 18, 1966, 67, 1355, 16, 2201, 33, 2890, 18, 1966, 67, 24002, 16, 5199, 33, 2890, 18, 10358, 16, 2063, 33, 2890, 18, 20979, 16, 1963, 33, 2890, 18, 4821, 13, 1319, 18, 8401, 12, 2640, 67, 9373, 33, 8381, 13, 1339, 273, 1319, 18, 3184, 225, 28648, 751, 273, 14204, 52, 751, 12, 2630, 67, 12749, 33, 2890, 18, 2630, 67, 12749, 16, 7005, 67, 18591, 67, 7745, 33, 21, 16, 7005, 67, 18591, 67, 1126, 33, 21, 16, 2305, 67, 22, 4880, 67, 2827, 33, 21, 13, 225, 943, 67, 2135, 67, 792, 67, 8134, 1121, 273, 890, 2787, 309, 562, 12, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 13, 34, 1896, 67, 2135, 67, 792, 67, 8134, 1121, 30, 202, 7, 6976, 28, 17, 2138, 17, 1611, 20153, 6002, 890, 2787, 14204, 18124, 25534, 67, 1293, 67, 1615, 67, 3251, 273, 2744, 18, 6358, 12, 3676, 12, 1897, 12, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 13, 3631, 943, 67, 2135, 67, 792, 67, 8134, 1121, 13, 394, 67, 1293, 67, 350, 67, 3251, 273, 306, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 63, 77, 65, 364, 277, 316, 25534, 67, 1293, 67, 1615, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 365, 18, 4148, 30, 1930, 10892, 10892, 18, 542, 67, 5129, 1435, 1319, 273, 20296, 363, 67, 26520, 79, 2290, 18, 17821, 67, 26520, 79, 2290, 12, 7407, 529, 33, 2890, 18, 7407, 529, 16, 2718, 33, 2890, 18, 1966, 67, 1355, 16, 2201, 33, 2890, 18, 1966, 67, 24002, 16, 5199, 33, 2890, 18, 10358, 16, 2063, 33, 2890, 18, 20979, 16, 1963, 33, 2890, 18, 4821, 13, 1319, 18, 8401, 12, 2640, 67, 9373, 33, 8381, 13, 1339, 273, 1319, 18, 3184, 225, 28648, 751, 273, 14204, 52, 751, 12, 2630, 67, 12749, 33, 2890, 18, 2630, 67, 12749, 16, 7005, 67, 18591, 67, 7745, 33, 21, 16, 7005, 67, 18591, 2 ]
self.failUnloess(checkPerm(View, self.doc))
self.failUnless(checkPerm(View, self.doc))
def testViewPrivateDocument(self): self.assertEqual(self.workflow.getInfoFor(self.doc, 'review_state'), 'private') # Owner is allowed self.login(default_user) self.failUnless(checkPerm(View, self.doc)) # Member is denied self.login('member') self.failIf(checkPerm(View, self.doc)) # Reviewer is denied self.login('reviewer') self.failIf(checkPerm(View, self.doc)) # Anonymous is denied self.logout() self.failIf(checkPerm(View, self.doc)) # Editor is allowed self.login('editor') self.failUnloess(checkPerm(View, self.doc)) # Reader is allowed self.login('reader') self.failUnless(checkPerm(View, self.doc))
58a5af2950f17e3233bfdf42c75da9eb6086f358 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12187/58a5af2950f17e3233bfdf42c75da9eb6086f358/test_simple_publication_workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1767, 6014, 2519, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 13815, 18, 588, 966, 1290, 12, 2890, 18, 2434, 16, 296, 16041, 67, 2019, 19899, 296, 1152, 6134, 468, 16837, 353, 2935, 365, 18, 5819, 12, 1886, 67, 1355, 13, 365, 18, 6870, 984, 2656, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 8596, 353, 15338, 365, 18, 5819, 2668, 5990, 6134, 365, 18, 6870, 2047, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 21354, 264, 353, 15338, 365, 18, 5819, 2668, 16041, 264, 6134, 365, 18, 6870, 2047, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 29775, 353, 15338, 365, 18, 21229, 1435, 365, 18, 6870, 2047, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 18451, 353, 2935, 365, 18, 5819, 2668, 9177, 6134, 365, 18, 6870, 984, 2656, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 5393, 353, 2935, 365, 18, 5819, 2668, 10530, 6134, 365, 18, 6870, 984, 2656, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 2, 0, 0, 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365, 18, 11231, 5812, 12, 2890, 18, 13815, 18, 588, 966, 1290, 12, 2890, 18, 2434, 16, 296, 16041, 67, 2019, 19899, 296, 1152, 6134, 468, 16837, 353, 2935, 365, 18, 5819, 12, 1886, 67, 1355, 13, 365, 18, 6870, 984, 2656, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 8596, 353, 15338, 365, 18, 5819, 2668, 5990, 6134, 365, 18, 6870, 2047, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 21354, 264, 353, 15338, 365, 18, 5819, 2668, 16041, 264, 6134, 365, 18, 6870, 2047, 12, 1893, 9123, 12, 1767, 16, 365, 18, 2434, 3719, 468, 29775, 353, 15338, 365, 18, 21229, 1435, 365, 2 ]
self.mode.MarkerAdd(line, self.mode.bookmark_marker_number) class NextBookmark(SelectAction):
marker = self.mode.MarkerGet(line) mask = 1 << self.mode.bookmark_marker_number if marker & mask: self.mode.MarkerDelete(line, self.mode.bookmark_marker_number) else: self.mode.MarkerAdd(line, self.mode.bookmark_marker_number) class DelBookmark(MarkerAction): """Remove a bookmark on the current line in the buffer.""" alias = "del-bookmark" name = "Delete Bookmark" default_menu = (("Tools/Bookmarks", 251), 120) def action(self, index=-1, multiplier=1): line = self.mode.GetCurrentLine() self.mode.MarkerDelete(line, self.mode.bookmark_marker_number) class NextBookmark(MarkerAction):
def action(self, index=-1, multiplier=1): line = self.mode.GetCurrentLine() self.mode.MarkerAdd(line, self.mode.bookmark_marker_number)
64f1393c9288463f4fc4ffa09f13ac770fd77b8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/64f1393c9288463f4fc4ffa09f13ac770fd77b8b/cursor_movement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 980, 273, 365, 18, 3188, 18, 967, 3935, 1670, 1435, 365, 18, 3188, 18, 7078, 986, 12, 1369, 16, 365, 18, 3188, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 980, 273, 365, 18, 3188, 18, 967, 3935, 1670, 1435, 365, 18, 3188, 18, 7078, 986, 12, 1369, 16, 365, 18, 3188, 18, 3618, 3355, 67, 11145, 67, 2696, 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 ]
matchstart = match.start(self.groups.initial.whole) matchend = match.end(self.groups.initial.whole)
matchstart = match.start('whole') matchend = match.end('whole')
def reference(self, match, lineno, anonymous=None): referencename = match.group(self.groups.initial.refname) refname = normalize_name(referencename) referencenode = nodes.reference( referencename + match.group(self.groups.initial.refend), referencename) if anonymous: referencenode['anonymous'] = 1 self.document.note_anonymous_ref(referencenode) else: referencenode['refname'] = refname self.document.note_refname(referencenode) string = match.string matchstart = match.start(self.groups.initial.whole) matchend = match.end(self.groups.initial.whole) return (string[:matchstart], [referencenode], string[matchend:], [])
039645ec5706bfe06b64e66663e62db9bc1abf30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/039645ec5706bfe06b64e66663e62db9bc1abf30/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2114, 12, 2890, 16, 845, 16, 7586, 16, 13236, 33, 7036, 4672, 8884, 1331, 1069, 273, 845, 18, 1655, 12, 2890, 18, 4650, 18, 6769, 18, 1734, 529, 13, 1278, 529, 273, 3883, 67, 529, 12, 266, 586, 1331, 1069, 13, 8884, 1331, 20680, 273, 2199, 18, 6180, 12, 8884, 1331, 1069, 397, 845, 18, 1655, 12, 2890, 18, 4650, 18, 6769, 18, 1734, 409, 3631, 8884, 1331, 1069, 13, 309, 13236, 30, 8884, 1331, 20680, 3292, 19070, 3546, 273, 404, 365, 18, 5457, 18, 7652, 67, 19070, 67, 1734, 12, 266, 586, 1331, 20680, 13, 469, 30, 8884, 1331, 20680, 3292, 1734, 529, 3546, 273, 1278, 529, 365, 18, 5457, 18, 7652, 67, 1734, 529, 12, 266, 586, 1331, 20680, 13, 533, 273, 845, 18, 1080, 845, 1937, 273, 845, 18, 1937, 2668, 3350, 790, 6134, 845, 409, 273, 845, 18, 409, 2668, 3350, 790, 6134, 327, 261, 1080, 10531, 1916, 1937, 6487, 306, 266, 586, 1331, 20680, 6487, 533, 63, 1916, 409, 30, 6487, 5378, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2114, 12, 2890, 16, 845, 16, 7586, 16, 13236, 33, 7036, 4672, 8884, 1331, 1069, 273, 845, 18, 1655, 12, 2890, 18, 4650, 18, 6769, 18, 1734, 529, 13, 1278, 529, 273, 3883, 67, 529, 12, 266, 586, 1331, 1069, 13, 8884, 1331, 20680, 273, 2199, 18, 6180, 12, 8884, 1331, 1069, 397, 845, 18, 1655, 12, 2890, 18, 4650, 18, 6769, 18, 1734, 409, 3631, 8884, 1331, 1069, 13, 309, 13236, 30, 8884, 1331, 20680, 3292, 19070, 3546, 273, 404, 365, 18, 5457, 18, 7652, 67, 19070, 67, 1734, 12, 266, 586, 1331, 20680, 13, 469, 30, 8884, 1331, 20680, 3292, 1734, 529, 3546, 273, 1278, 529, 365, 18, 5457, 18, 7652, 67, 1734, 529, 12, 266, 2 ]
message = Message(sender=sender, room=room, timestamp=timestamp, content=content,
message = Message(sender=sender, room=room, timestamp=timestamp, content=topic,
def post(self, room_key): user = users.get_current_user() sender = Account.all().filter('user =', user).get() room = Room.all().filter('__key__ =', Key(room_key)).get() topic = self.request.get('topic') timestamp = datetime.now() #content = self.request.get('message') payload = {} if not sender: # no account for this user payload = {'response_status' : "No Account Found"} elif len(content): # only create message if content is not empty room.topic = topic room.put() message = Message(sender=sender, room=room, timestamp=timestamp, content=content, event=Message_event_codes['topic']) message.put() payload = {'response_status' : "OK", 'message' : topic, 'timestamp' : timestamp.isoformat()} else: payload = {'response_status' : "Unknown Error"} json = simplejson.dumps(payload) self.response.out.write(json)
6b05e2d28904882a811ed41ba940c60bb2116101 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14434/6b05e2d28904882a811ed41ba940c60bb2116101/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 7725, 67, 856, 4672, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 5793, 273, 6590, 18, 454, 7675, 2188, 2668, 1355, 273, 2187, 729, 2934, 588, 1435, 7725, 273, 27535, 18, 454, 7675, 2188, 2668, 972, 856, 972, 273, 2187, 1929, 12, 13924, 67, 856, 13, 2934, 588, 1435, 3958, 273, 365, 18, 2293, 18, 588, 2668, 10476, 6134, 2858, 273, 3314, 18, 3338, 1435, 468, 1745, 273, 365, 18, 2293, 18, 588, 2668, 2150, 6134, 2385, 273, 2618, 309, 486, 5793, 30, 468, 1158, 2236, 364, 333, 729, 2385, 273, 13666, 2740, 67, 2327, 11, 294, 315, 2279, 6590, 10750, 6, 97, 1327, 562, 12, 1745, 4672, 468, 1338, 752, 883, 309, 913, 353, 486, 1008, 7725, 18, 10476, 273, 3958, 7725, 18, 458, 1435, 883, 273, 2350, 12, 15330, 33, 15330, 16, 7725, 33, 13924, 16, 2858, 33, 5508, 16, 913, 33, 10476, 16, 871, 33, 1079, 67, 2575, 67, 7000, 3292, 10476, 19486, 883, 18, 458, 1435, 2385, 273, 13666, 2740, 67, 2327, 11, 294, 315, 3141, 3113, 296, 2150, 11, 294, 3958, 16, 296, 5508, 11, 294, 2858, 18, 9699, 2139, 17767, 469, 30, 2385, 273, 13666, 2740, 67, 2327, 11, 294, 315, 4874, 1068, 6, 97, 1163, 273, 4143, 1977, 18, 13302, 1121, 12, 7648, 13, 365, 18, 2740, 18, 659, 18, 2626, 12, 1977, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 7725, 67, 856, 4672, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 5793, 273, 6590, 18, 454, 7675, 2188, 2668, 1355, 273, 2187, 729, 2934, 588, 1435, 7725, 273, 27535, 18, 454, 7675, 2188, 2668, 972, 856, 972, 273, 2187, 1929, 12, 13924, 67, 856, 13, 2934, 588, 1435, 3958, 273, 365, 18, 2293, 18, 588, 2668, 10476, 6134, 2858, 273, 3314, 18, 3338, 1435, 468, 1745, 273, 365, 18, 2293, 18, 588, 2668, 2150, 6134, 2385, 273, 2618, 309, 486, 5793, 30, 468, 1158, 2236, 364, 333, 729, 2385, 273, 13666, 2740, 67, 2327, 11, 294, 315, 2279, 6590, 10750, 6, 97, 1327, 562, 12, 1745, 4672, 468, 1338, 752, 883, 2 ]
filename = time.strftime('%Y%m%d') + "_" + str(event.Window) + "_" + WindowName
filename = time.strftime('%Y%m%d') + "_" + str(event.Window) + "_" + WindowName + ".txt"
def OpenLogFile(self, event): if self.options.oneFile != None: if self.writeTarget == "": self.writeTarget = os.path.join(os.path.normpath(self.options.dirName), os.path.normpath(self.options.oneFile)) try: self.log = open(self.writeTarget, 'a') except OSError, detail: if(detail.errno==17): #if file already exists, swallow the error pass else: self.PrintDebug(sys.exc_info()[0] + ", " + sys.exc_info()[1] + "\n") return False except: self.PrintDebug("Unexpected error: " + sys.exc_info()[0] + ", " + sys.exc_info()[1] + "\n") return False
74da11ba55b3923d9ef009b692236036b604628f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3638/74da11ba55b3923d9ef009b692236036b604628f/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3502, 19103, 12, 2890, 16, 871, 4672, 225, 309, 365, 18, 2116, 18, 476, 812, 480, 599, 30, 309, 365, 18, 2626, 2326, 422, 1408, 30, 365, 18, 2626, 2326, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 7959, 803, 12, 2890, 18, 2116, 18, 1214, 461, 3631, 1140, 18, 803, 18, 7959, 803, 12, 2890, 18, 2116, 18, 476, 812, 3719, 775, 30, 365, 18, 1330, 273, 1696, 12, 2890, 18, 2626, 2326, 16, 296, 69, 6134, 1335, 10002, 16, 7664, 30, 309, 12, 8992, 18, 19088, 631, 4033, 4672, 225, 468, 430, 585, 1818, 1704, 16, 1352, 5965, 326, 555, 1342, 469, 30, 365, 18, 5108, 2829, 12, 9499, 18, 10075, 67, 1376, 1435, 63, 20, 65, 397, 3104, 315, 397, 2589, 18, 10075, 67, 1376, 1435, 63, 21, 65, 397, 1548, 82, 7923, 327, 1083, 1335, 30, 365, 18, 5108, 2829, 2932, 7762, 555, 30, 315, 397, 2589, 18, 10075, 67, 1376, 1435, 63, 20, 65, 397, 3104, 315, 397, 2589, 18, 10075, 67, 1376, 1435, 63, 21, 65, 397, 1548, 82, 7923, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3502, 19103, 12, 2890, 16, 871, 4672, 225, 309, 365, 18, 2116, 18, 476, 812, 480, 599, 30, 309, 365, 18, 2626, 2326, 422, 1408, 30, 365, 18, 2626, 2326, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 7959, 803, 12, 2890, 18, 2116, 18, 1214, 461, 3631, 1140, 18, 803, 18, 7959, 803, 12, 2890, 18, 2116, 18, 476, 812, 3719, 775, 30, 365, 18, 1330, 273, 1696, 12, 2890, 18, 2626, 2326, 16, 296, 69, 6134, 1335, 10002, 16, 7664, 30, 309, 12, 8992, 18, 19088, 631, 4033, 4672, 225, 468, 430, 585, 1818, 1704, 16, 1352, 5965, 326, 555, 1342, 469, 30, 365, 18, 5108, 2829, 12, 9499, 18, 10075, 67, 1376, 2 ]
return []
return []
def get_dataset(app): """Retrieve the file names starting from an application object""" job=app._getRoot() if not job: logger.warning('Application object is not associated to a job.') return []
030ac5076f363b968bfcfd639df5a0b09330bc8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/030ac5076f363b968bfcfd639df5a0b09330bc8d/ATLASDataset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8682, 12, 2910, 4672, 3536, 5767, 326, 585, 1257, 5023, 628, 392, 2521, 733, 8395, 1719, 33, 2910, 6315, 588, 2375, 1435, 309, 486, 1719, 30, 1194, 18, 8551, 2668, 3208, 733, 353, 486, 3627, 358, 279, 1719, 1093, 13, 327, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8682, 12, 2910, 4672, 3536, 5767, 326, 585, 1257, 5023, 628, 392, 2521, 733, 8395, 1719, 33, 2910, 6315, 588, 2375, 1435, 309, 486, 1719, 30, 1194, 18, 8551, 2668, 3208, 733, 353, 486, 3627, 358, 279, 1719, 1093, 13, 327, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if normal_identity in OPEN_SOCKET_INFO or listen_identity in OPEN_SOCKET_INFO:
if identity in OPEN_SOCKET_INFO or listen_identity in OPEN_SOCKET_INFO:
def _bind_udp_socket(localip, localport, tattle_item): # Conrad: entirely stolen from listenforconnection(). Some of this input # verification stuff especially could probably be combined as a shared # function. Even the rest of the functions are similar enough to be worth # consolidating. # Check the input arguments (type) if type(localip) is not str: raise RepyArgumentError("Provided localip must be a string!") if type(localport) is not int: raise RepyArgumentError("Provided localport must be a int!") # Check the input arguments (sanity) if not _is_valid_ip_address(localip): raise RepyArgumentError("Provided localip is not valid! IP: '"+localip+"'") if not _is_valid_network_port(localport): raise RepyArgumentError("Provided localport is not valid! Port: "+str(localport)) # Check the input arguments (permission) update_ip_cache() if not _ip_is_allowed(localip): raise ResourceForbiddenError("Provided localip is not allowed! IP: '"+localip+"'") if not _is_allowed_localport("UDP", localport): raise ResourceForbiddenError("Provided localport is not allowed! Port: "+str(localport)) # Check if the tuple is in use normal_identity = ("UDP", localip, localport, False, None) listen_identity = ("UDP", localip, localport, None, None) if normal_identity in OPEN_SOCKET_INFO or listen_identity in OPEN_SOCKET_INFO: raise AlreadyListeningError("The provided localip and localport are already in use!") is_listensock = tattle_item == "insockets" if is_listensock: identity = listen_identity else: identity = normal_identity # Check if the tuple is pending PENDING_SOCKETS_LOCK.acquire() try: if normal_identity in PENDING_SOCKETS or listen_identity in PENDING_SOCKETS: raise AlreadyListeningError("Concurrent listenformessage with the localip and localport in progress!") else: # No pending operation, add us to the pending list PENDING_SOCKETS.add(identity) finally: PENDING_SOCKETS_LOCK.release() try: # Register this identity with nanny nanny.tattle_add_item(tattle_item, identity) try: # Get the socket sock = _get_udp_socket(localip, localport) except Exception, e: nanny.tattle_remove_item(tattle_item, identity) # Check if this an already in use error if _is_addr_in_use_exception(e): raise DuplicateTupleError("Provided Local IP and Local Port is already in use!") # Check if this is a binding error if _is_addr_unavailable_exception(e): raise AddressBindingError("Cannot bind to the specified local ip, invalid!") # Unknown error... else: raise # Create entry with a lock and the socket object OPEN_SOCKET_INFO[identity] = (threading.Lock(), sock) # Return the identity return identity finally: # Remove us from the pending operations list PENDING_SOCKETS_LOCK.acquire() PENDING_SOCKETS.remove(identity) PENDING_SOCKETS_LOCK.release()
cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4376, 67, 26029, 67, 7814, 12, 3729, 625, 16, 1191, 655, 16, 268, 4558, 298, 67, 1726, 4672, 468, 735, 6012, 30, 21658, 384, 355, 275, 628, 6514, 1884, 4071, 7675, 10548, 434, 333, 810, 468, 11805, 10769, 29440, 3377, 8656, 506, 8224, 487, 279, 5116, 468, 445, 18, 25067, 326, 3127, 434, 326, 4186, 854, 7281, 7304, 358, 506, 26247, 468, 21785, 1776, 18, 225, 468, 2073, 326, 810, 1775, 261, 723, 13, 309, 618, 12, 3729, 625, 13, 353, 486, 609, 30, 1002, 868, 2074, 1379, 668, 2932, 19254, 1191, 625, 1297, 506, 279, 533, 4442, 13, 225, 309, 618, 12, 3729, 655, 13, 353, 486, 509, 30, 1002, 868, 2074, 1379, 668, 2932, 19254, 1191, 655, 1297, 506, 279, 509, 4442, 13, 282, 468, 2073, 326, 810, 1775, 261, 87, 10417, 13, 309, 486, 389, 291, 67, 877, 67, 625, 67, 2867, 12, 3729, 625, 4672, 1002, 868, 2074, 1379, 668, 2932, 19254, 1191, 625, 353, 486, 923, 5, 2971, 30, 2119, 15, 3729, 625, 9078, 4970, 13, 225, 309, 486, 389, 291, 67, 877, 67, 5185, 67, 655, 12, 3729, 655, 4672, 1002, 868, 2074, 1379, 668, 2932, 19254, 1191, 655, 353, 486, 923, 5, 6008, 30, 13773, 701, 12, 3729, 655, 3719, 282, 468, 2073, 326, 810, 1775, 261, 9827, 13, 1089, 67, 625, 67, 2493, 1435, 309, 486, 389, 625, 67, 291, 67, 8151, 12, 3729, 625, 4672, 1002, 2591, 16553, 668, 2932, 19254, 1191, 625, 353, 486, 2935, 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, 4376, 67, 26029, 67, 7814, 12, 3729, 625, 16, 1191, 655, 16, 268, 4558, 298, 67, 1726, 4672, 468, 735, 6012, 30, 21658, 384, 355, 275, 628, 6514, 1884, 4071, 7675, 10548, 434, 333, 810, 468, 11805, 10769, 29440, 3377, 8656, 506, 8224, 487, 279, 5116, 468, 445, 18, 25067, 326, 3127, 434, 326, 4186, 854, 7281, 7304, 358, 506, 26247, 468, 21785, 1776, 18, 225, 468, 2073, 326, 810, 1775, 261, 723, 13, 309, 618, 12, 3729, 625, 13, 353, 486, 609, 30, 1002, 868, 2074, 1379, 668, 2932, 19254, 1191, 625, 1297, 506, 279, 533, 4442, 13, 225, 309, 618, 12, 3729, 655, 13, 353, 486, 509, 30, 1002, 868, 2074, 1379, 668, 2932, 19254, 2 ]
SWIG = 'swig -O -templatereduce -shadow -python -c++ -keyword -nodefaultctor -w-503,-312,-511,-362,-383,-384,-389,-315,-525'
SWIG = 'swig -O -templatereduce -shadow -python -outdir src -c++ -keyword -nodefaultctor -w-503,-312,-511,-362,-383,-384,-389,-315,-525'
def swig_version(): ''' get the version of swig ''' fout = os.popen('swig -version') # try: version = re.match('SWIG Version\s*(\d+).(\d+).(\d+).*', fout.readlines()[1]).groups() except: print 'Can not obtain swig version, please install swig' sys.exit(1) return map(int, version)
8f04c4582242d345612a60cf2fc688b05d7eb9b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/8f04c4582242d345612a60cf2fc688b05d7eb9b2/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 1589, 13332, 9163, 336, 326, 1177, 434, 1352, 360, 9163, 17382, 273, 1140, 18, 84, 3190, 2668, 5328, 360, 300, 1589, 6134, 468, 775, 30, 1177, 273, 283, 18, 1916, 2668, 18746, 3047, 4049, 64, 87, 27220, 72, 15, 2934, 4713, 72, 15, 2934, 4713, 72, 15, 31376, 2187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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 1589, 13332, 9163, 336, 326, 1177, 434, 1352, 360, 9163, 17382, 273, 1140, 18, 84, 3190, 2668, 5328, 360, 300, 1589, 6134, 468, 775, 30, 1177, 273, 283, 18, 1916, 2668, 18746, 3047, 4049, 64, 87, 27220, 72, 15, 2934, 4713, 72, 15, 2934, 4713, 72, 15, 31376, 2187, 17382, 18, 896, 3548, 1435, 63, 21, 65, 2934, 4650, 1435, 1335, 30, 1172, 296, 2568, 486, 7161, 1352, 360, 1177, 16, 9582, 3799, 1352, 360, 11, 2589, 18, 8593, 12, 21, 13, 327, 852, 12, 474, 16, 1177, 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 ]
changeSetList = kwargs.pop('fromChangesets', [])
def _updateTroves(cfg, applyList, **kwargs): # Take out the apply-related keyword arguments applyDefaults = dict( replaceFiles = False, replaceManagedFiles = False, replaceUnmanagedFiles = False, replaceModifiedFiles = False, replaceModifiedConfigFiles = False, tagScript = None, justDatabase = False, skipCapsuleOps = False, info = False, keepJournal = False, noRestart = False, noScripts = False, ) applyKwargs = {} for k in applyDefaults: if k in kwargs: applyKwargs[k] = kwargs.pop(k) callback = kwargs.pop('callback') loadTroveCache = kwargs.pop('loadTroveCache', False) applyKwargs['test'] = kwargs.get('test', False) applyKwargs['localRollbacks'] = cfg.localRollbacks applyKwargs['autoPinList'] = cfg.pinTroves model = kwargs.pop('systemModel', None) if model: modelFile = kwargs.pop('systemModelFile', None) noRestart = applyKwargs.get('noRestart', False) client = conaryclient.ConaryClient(cfg) client.setUpdateCallback(callback) if kwargs.pop('disconnected', False): client.disconnectRepos() migrate = kwargs.get('migrate', False) # even though we no longer differentiate forceMigrate, we still # remove it from kwargs to avoid confusing prepareUpdateJob kwargs.pop('forceMigrate', False) restartInfo = kwargs.get('restartInfo', None) # Initialize the critical update set applyCriticalOnly = kwargs.get('applyCriticalOnly', False) if kwargs.get('criticalUpdateInfo') is not None: kwargs['criticalUpdateInfo'].criticalOnly = applyCriticalOnly else: kwargs['criticalUpdateInfo'] = CriticalUpdateInfo(applyCriticalOnly) info = applyKwargs.pop('info', False) # Rename depCheck to resolveDeps depCheck = kwargs.pop('depCheck', True) kwargs['resolveDeps'] = depCheck if not info: client.checkWriteableRoot() updJob = client.newUpdateJob() changeSetList = kwargs.pop('fromChangesets', []) try: if model: from conary.conaryclient import modelupdate tc = modelupdate.SystemModelTroveCache(client.getDatabase(), client.getRepos(), callback = callback, changeSetList = changeSetList) tcPath = cfg.root + '/var/lib/conarydb/modelcache' import time start = time.time() if loadTroveCache: log.info("loading modelcache") if os.path.exists(tcPath): tc.load(tcPath) log.info("done %.2f", time.time() - start) ts = client.systemModelGraph( model, changeSetList = changeSetList) suggMap = client._updateFromTroveSetGraph(updJob, ts, tc, fromChangesets = changeSetList) if tc.cacheModified(): log.info("saving modelcache") start = time.time() tc.save(tcPath) log.info("done %.2f", time.time() - start) else: suggMap = client.prepareUpdateJob(updJob, applyList, **kwargs) except: callback.done() client.close() raise if info: callback.done() displayUpdateInfo(updJob, cfg) if restartInfo: callback.done() newJobs = set(itertools.chain(*updJob.getJobs())) oldJobs = set(updJob.getItemList()) addedJobs = newJobs - oldJobs removedJobs = oldJobs - newJobs if addedJobs or removedJobs: print print 'NOTE: after critical updates were applied, the contents of the update were recalculated:' print displayChangedJobs(addedJobs, removedJobs, cfg) updJob.close() client.close() return if suggMap: callback.done() dcfg = display.DisplayConfig() dcfg.setTroveDisplay(fullFlavors = cfg.fullFlavors, fullVersions = cfg.fullVersions, showLabels = cfg.showLabels) formatter = display.TroveTupFormatter(dcfg) print "Including extra troves to resolve dependencies:" print " ", items = sorted(set(formatter.formatNVF(*x) for x in itertools.chain(*suggMap.itervalues()))) print " ".join(items) askInteractive = cfg.interactive if restartInfo: callback.done() newJobs = set(itertools.chain(*updJob.getJobs())) oldJobs = set(updJob.getItemList()) addedJobs = newJobs - oldJobs removedJobs = oldJobs - newJobs if addedJobs or removedJobs: print 'NOTE: after critical updates were applied, the contents of the update were recalculated:' displayChangedJobs(addedJobs, removedJobs, cfg) else: askInteractive = False if not updJob.jobs: # Nothing to do updJob.close() client.close() return elif askInteractive: print 'The following updates will be performed:' displayUpdateInfo(updJob, cfg) if migrate and cfg.interactive: print ('Migrate erases all troves not referenced in the groups' ' specified.') if askInteractive: if migrate: style = 'migrate' else: style = 'update' okay = cmdline.askYn('continue with %s? [Y/n]' % style, default=True) if not okay: updJob.close() client.close() return if not noRestart and updJob.getCriticalJobs(): print "Performing critical system updates, will then restart update." try: restartDir = client.applyUpdateJob(updJob, **applyKwargs) finally: updJob.close() client.close() if restartDir: params = sys.argv # Write command line to disk import xmlrpclib cmdlinefile = open(os.path.join(restartDir, 'cmdline'), "w") cmdlinefile.write(xmlrpclib.dumps((params, ), methodresponse = True)) cmdlinefile.close() # CNY-980: we should have the whole script of changes to perform in # the restart directory (in the job list); if in migrate mode, re-exec # as regular update if migrate and 'migrate' in params: params[params.index('migrate')] = 'update' params.extend(['--restart-info=%s' % restartDir]) client.close() raise errors.ReexecRequired( 'Critical update completed, rerunning command...', params, restartDir) else: if (not kwargs.get('test', False)) and model: modelFile.closeSnapshot()
eb430353d15bc1930e7d04ae12beecbb56337728 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/eb430353d15bc1930e7d04ae12beecbb56337728/updatecmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 56, 303, 3324, 12, 7066, 16, 2230, 682, 16, 2826, 4333, 4672, 468, 17129, 596, 326, 2230, 17, 9243, 4932, 1775, 2230, 7019, 273, 2065, 12, 1453, 2697, 273, 1083, 16, 1453, 10055, 2697, 273, 1083, 16, 1453, 984, 19360, 2697, 273, 1083, 16, 1453, 4575, 2697, 273, 1083, 16, 1453, 4575, 809, 2697, 273, 1083, 16, 1047, 3651, 273, 599, 16, 2537, 4254, 273, 1083, 16, 2488, 24193, 725, 8132, 273, 1083, 16, 1123, 273, 1083, 16, 3455, 16336, 273, 1083, 16, 1158, 15057, 273, 1083, 16, 1158, 15041, 273, 1083, 16, 262, 2230, 47, 1112, 273, 2618, 364, 417, 316, 2230, 7019, 30, 309, 417, 316, 1205, 30, 2230, 47, 1112, 63, 79, 65, 273, 1205, 18, 5120, 12, 79, 13, 225, 1348, 273, 1205, 18, 5120, 2668, 3394, 6134, 1262, 56, 303, 537, 1649, 273, 1205, 18, 5120, 2668, 945, 56, 303, 537, 1649, 2187, 1083, 13, 2230, 47, 1112, 3292, 3813, 3546, 273, 1205, 18, 588, 2668, 3813, 2187, 1083, 13, 2230, 47, 1112, 3292, 3729, 12703, 87, 3546, 273, 2776, 18, 3729, 12703, 87, 2230, 47, 1112, 3292, 6079, 12178, 682, 3546, 273, 2776, 18, 13097, 56, 303, 3324, 225, 938, 273, 1205, 18, 5120, 2668, 4299, 1488, 2187, 599, 13, 309, 938, 30, 938, 812, 273, 1205, 18, 5120, 2668, 4299, 1488, 812, 2187, 599, 13, 225, 1158, 15057, 273, 2230, 47, 1112, 18, 588, 2668, 2135, 15057, 2187, 1083, 13, 225, 1004, 273, 356, 814, 2625, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 56, 303, 3324, 12, 7066, 16, 2230, 682, 16, 2826, 4333, 4672, 468, 17129, 596, 326, 2230, 17, 9243, 4932, 1775, 2230, 7019, 273, 2065, 12, 1453, 2697, 273, 1083, 16, 1453, 10055, 2697, 273, 1083, 16, 1453, 984, 19360, 2697, 273, 1083, 16, 1453, 4575, 2697, 273, 1083, 16, 1453, 4575, 809, 2697, 273, 1083, 16, 1047, 3651, 273, 599, 16, 2537, 4254, 273, 1083, 16, 2488, 24193, 725, 8132, 273, 1083, 16, 1123, 273, 1083, 16, 3455, 16336, 273, 1083, 16, 1158, 15057, 273, 1083, 16, 1158, 15041, 273, 1083, 16, 262, 2230, 47, 1112, 273, 2618, 364, 417, 316, 2230, 7019, 30, 309, 417, 316, 1205, 30, 2230, 47, 1112, 63, 79, 65, 2 ]
if not isForegroundChange: if obj.role not in (controlTypes.ROLE_LISTITEM,controlTypes.ROLE_TREEVIEWITEM,controlTypes.ROLE_MENUITEM): activeChild=obj.activeChild else: activeChild=None if activeChild and obj.activeChild!=obj and activeChild.role!=controlTypes.ROLE_UNKNOWN: return focus_manageEvent(activeChild,False)
else: foregroundObject=api.getForegroundObject() if foregroundObject.windowClassName=="MozillaUIWindowClass" and obj==foregroundObject: return
def focus_manageEvent(obj,isForegroundChange=False,needsFocusState=True): if not obj: return if obj.role==controlTypes.ROLE_UNKNOWN: parent=NVDAObjects.IAccessible.IAccessible._get_parent(obj) if parent: return focus_manageEvent(parent,isForegroundChange,False) if isForegroundChange: api.setForegroundObject(obj) speech.cancelSpeech() needsFocusState=False if not isForegroundChange: if obj.role not in (controlTypes.ROLE_LISTITEM,controlTypes.ROLE_TREEVIEWITEM,controlTypes.ROLE_MENUITEM): activeChild=obj.activeChild else: activeChild=None if activeChild and obj.activeChild!=obj and activeChild.role!=controlTypes.ROLE_UNKNOWN: return focus_manageEvent(activeChild,False) oldFocus=api.getFocusObject() if obj==oldFocus: #Grab event params from this obj though as they may be more correct than oldFocus due to activeChild hack if None in (oldFocus.event_windowHandle,oldFocus.event_objectID,oldFocus.event_childID) and None not in (obj.event_windowHandle,obj.event_objectID,obj.event_childID): oldFocus.event_windowHandle,oldFocus.event_objectID,oldFocus.event_childID=(obj.event_windowHandle,obj.event_objectID,obj.event_childID) return oldAncestors=api.getFocusAncestors() ancestors=[] if needsFocusState: if obj.IAccessibleStates&STATE_SYSTEM_FOCUSED or obj.windowClassName.startswith("Mozilla"): hasFocusState=True else: hasFocusState=False parent=NVDAObjects.IAccessible.IAccessible._get_parent(obj) matchedOld=False oldAncestorLen=len(oldAncestors) while parent: if parent==oldFocus: newAncestors=list(oldAncestors) newAncestors.append(oldFocus) newAncestors.extend(ancestors) ancestors=newAncestors break for index in range(oldAncestorLen): if parent==oldAncestors[(oldAncestorLen-1)-index]: ancestors=oldAncestors[0:oldAncestorLen-index]+ancestors matchedOld=True break if matchedOld: break ancestors.insert(0,parent) parent=NVDAObjects.IAccessible.IAccessible._get_parent(parent) if needsFocusState: for parent in ancestors: if (not hasFocusState) and (parent.IAccessibleStates&STATE_SYSTEM_FOCUSED): hasFocusState=True foundGroup=False for index in range(len(ancestors)): role=ancestors[index].role if role==controlTypes.ROLE_WINDOW: continue if role==controlTypes.ROLE_GROUPING: foundGroup=True break groupObj=findGroupboxObject(ancestors[index]) if groupObj: foundGroup=True ancestors.insert(index,groupObj) break if not foundGroup: groupObj=findGroupboxObject(obj) if groupObj: ancestors.append(groupObj) if needsFocusState: if not hasFocusState: return api.setFocusObject(obj,ancestors=ancestors) if isForegroundChange and obj.childCount>0: eventHandler.manageEvent("focusEntered",obj) else: eventHandler.manageEvent("gainFocus",obj)
b4e9600f137ef3dcfea8b82a2bad3cefbdffb273 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/b4e9600f137ef3dcfea8b82a2bad3cefbdffb273/IAccessibleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7155, 67, 12633, 1133, 12, 2603, 16, 291, 23206, 3043, 33, 8381, 16, 20600, 9233, 1119, 33, 5510, 4672, 309, 486, 1081, 30, 327, 309, 1081, 18, 4615, 631, 7098, 2016, 18, 16256, 67, 14737, 30, 982, 33, 11679, 9793, 4710, 18, 45, 10451, 18, 45, 10451, 6315, 588, 67, 2938, 12, 2603, 13, 309, 982, 30, 327, 7155, 67, 12633, 1133, 12, 2938, 16, 291, 23206, 3043, 16, 8381, 13, 309, 353, 23206, 3043, 30, 1536, 18, 542, 23206, 921, 12, 2603, 13, 24556, 18, 10996, 22334, 1435, 4260, 9233, 1119, 33, 8381, 469, 30, 16231, 921, 33, 2425, 18, 588, 23206, 921, 1435, 309, 16231, 921, 18, 5668, 3834, 31713, 49, 11142, 10745, 5370, 3829, 797, 6, 471, 1081, 631, 1405, 2915, 921, 30, 327, 1592, 9233, 33, 2425, 18, 588, 9233, 921, 1435, 309, 1081, 631, 1673, 9233, 30, 468, 14571, 70, 871, 859, 628, 333, 1081, 11376, 487, 2898, 2026, 506, 1898, 3434, 2353, 1592, 9233, 6541, 358, 2695, 1763, 11769, 309, 599, 316, 261, 1673, 9233, 18, 2575, 67, 5668, 3259, 16, 1673, 9233, 18, 2575, 67, 1612, 734, 16, 1673, 9233, 18, 2575, 67, 3624, 734, 13, 471, 599, 486, 316, 261, 2603, 18, 2575, 67, 5668, 3259, 16, 2603, 18, 2575, 67, 1612, 734, 16, 2603, 18, 2575, 67, 3624, 734, 4672, 1592, 9233, 18, 2575, 67, 5668, 3259, 16, 1673, 9233, 18, 2575, 67, 1612, 734, 16, 1673, 9233, 18, 2575, 67, 3624, 734, 28657, 2603, 18, 2575, 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, 7155, 67, 12633, 1133, 12, 2603, 16, 291, 23206, 3043, 33, 8381, 16, 20600, 9233, 1119, 33, 5510, 4672, 309, 486, 1081, 30, 327, 309, 1081, 18, 4615, 631, 7098, 2016, 18, 16256, 67, 14737, 30, 982, 33, 11679, 9793, 4710, 18, 45, 10451, 18, 45, 10451, 6315, 588, 67, 2938, 12, 2603, 13, 309, 982, 30, 327, 7155, 67, 12633, 1133, 12, 2938, 16, 291, 23206, 3043, 16, 8381, 13, 309, 353, 23206, 3043, 30, 1536, 18, 542, 23206, 921, 12, 2603, 13, 24556, 18, 10996, 22334, 1435, 4260, 9233, 1119, 33, 8381, 469, 30, 16231, 921, 33, 2425, 18, 588, 23206, 921, 1435, 309, 16231, 921, 18, 5668, 3834, 31713, 49, 11142, 10745, 5370, 3829, 797, 2 ]
TabPageLayout_5.addLayout(layout68_3,1,0)
TabPageLayout_6.addLayout(layout68_3,1,0)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
7cc18611a6df93ebc9707a8878e31fb8451f8ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7cc18611a6df93ebc9707a8878e31fb8451f8ff6/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, 16, 2242, 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 ]
logger.debug("removing known segment_definer row for key %s"
ligomd.table['segment_definer']['stream'].pop(row_idx) logger.debug("removed known segment_definer row for key %s"
uniq_def = (row[run_col],row[ifos_col],row[name_col],row[vers_col])
7a2ab3694e834d974558409a5d3f61863f4de6ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/7a2ab3694e834d974558409a5d3f61863f4de6ee/LDBDServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 10748, 67, 536, 273, 261, 492, 63, 2681, 67, 1293, 6487, 492, 63, 430, 538, 67, 1293, 6487, 492, 63, 529, 67, 1293, 6487, 492, 63, 2496, 67, 1293, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10748, 67, 536, 273, 261, 492, 63, 2681, 67, 1293, 6487, 492, 63, 430, 538, 67, 1293, 6487, 492, 63, 529, 67, 1293, 6487, 492, 63, 2496, 67, 1293, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.deferred.callback("SIG%s: exitCode is %s, not None" %
self.deferred.callback("SIG%s: exitCode is %s, not None" %
def processEnded(self, reason): if not reason.check(error.ProcessTerminated): self.deferred.callback("wrong termination: %s" % reason) return v = reason.value if v.exitCode is not None: self.deferred.callback("SIG%s: exitCode is %s, not None" % (self.signal, v.exitCode)) return if v.signal != getattr(signal,'SIG'+self.signal): self.deferred.callback("SIG%s: .signal was %s, wanted %s" % (self.signal, v.signal, getattr(signal,'SIG'+self.signal))) return if os.WTERMSIG(v.status) != getattr(signal,'SIG'+self.signal): self.deferred.callback('SIG%s: %s' % (self.signal, os.WTERMSIG(v.status))) return self.deferred.callback(None)
15d81dd756fc73c4c28f309ec1d38e81ac5b83f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12595/15d81dd756fc73c4c28f309ec1d38e81ac5b83f7/test_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 28362, 12, 2890, 16, 3971, 4672, 309, 486, 3971, 18, 1893, 12, 1636, 18, 2227, 21888, 4672, 365, 18, 26622, 18, 3394, 2932, 21530, 19650, 30, 738, 87, 6, 738, 3971, 13, 327, 331, 273, 3971, 18, 1132, 309, 331, 18, 8593, 1085, 353, 486, 599, 30, 365, 18, 26622, 18, 3394, 2932, 18513, 9, 87, 30, 16067, 353, 738, 87, 16, 486, 599, 6, 738, 261, 2890, 18, 10420, 16, 331, 18, 8593, 1085, 3719, 327, 309, 331, 18, 10420, 480, 3869, 12, 10420, 11189, 18513, 11, 15, 2890, 18, 10420, 4672, 365, 18, 26622, 18, 3394, 2932, 18513, 9, 87, 30, 263, 10420, 1703, 738, 87, 16, 15504, 738, 87, 6, 738, 261, 2890, 18, 10420, 16, 331, 18, 10420, 16, 3869, 12, 10420, 11189, 18513, 11, 15, 2890, 18, 10420, 20349, 327, 309, 1140, 18, 59, 15176, 18513, 12, 90, 18, 2327, 13, 480, 3869, 12, 10420, 11189, 18513, 11, 15, 2890, 18, 10420, 4672, 365, 18, 26622, 18, 3394,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, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 28362, 12, 2890, 16, 3971, 4672, 309, 486, 3971, 18, 1893, 12, 1636, 18, 2227, 21888, 4672, 365, 18, 26622, 18, 3394, 2932, 21530, 19650, 30, 738, 87, 6, 738, 3971, 13, 327, 331, 273, 3971, 18, 1132, 309, 331, 18, 8593, 1085, 353, 486, 599, 30, 365, 18, 26622, 18, 3394, 2932, 18513, 9, 87, 30, 16067, 353, 738, 87, 16, 486, 599, 6, 738, 261, 2890, 18, 10420, 16, 331, 18, 8593, 1085, 3719, 327, 309, 331, 18, 10420, 480, 3869, 12, 10420, 11189, 18513, 11, 15, 2890, 18, 10420, 4672, 365, 18, 26622, 18, 3394, 2932, 18513, 9, 87, 30, 263, 10420, 1703, 738, 87, 16, 15504, 738, 87, 6, 738, 261, 2890, 18, 2 ]
print "We don't have enough builds to bisect. revlist: %s" % revlist
print 'We don\'t have enough builds to bisect. revlist: %s' % revlist
def main(): usage = ('%prog [options] [-- chromium-options]\n' 'Perform binary search on the snapshot builds.') parser = optparse.OptionParser(usage=usage) # Strangely, the default help output doesn't include the choice list. choices = ['mac', 'xp', 'linux', 'linux-64'] parser.add_option('-a', '--archive', choices = choices, help = 'The buildbot archive to bisect [%s].' % '|'.join(choices)) parser.add_option('-b', '--bad', type = 'int', help = 'The bad revision to bisect to.') parser.add_option('-g', '--good', type = 'int', help = 'The last known good revision to bisect from.') parser.add_option('-p', '--profile', '--user-data-dir', type = 'str', help = 'Profile to use; this will not reset every run. ' + 'Defaults to a clean profile.') (opts, args) = parser.parse_args() if opts.archive is None: parser.print_help() return 1 if opts.bad and opts.good and (opts.good > opts.bad): print ('The good revision (%d) must precede the bad revision (%d).\n' % (opts.good, opts.bad)) parser.print_help() return 1 SetArchiveVars(opts.archive) # Pick a starting point, try to get HEAD for this. if opts.bad: bad_rev = opts.bad else: bad_rev = 0 try: # Location of the latest build revision number BUILD_LATEST_URL = "%s/LATEST" % (BUILD_BASE_URL) nh = urllib.urlopen(BUILD_LATEST_URL) latest = int(nh.read()) nh.close() bad_rev = raw_input("Bad revision [HEAD:%d]: " % latest) if (bad_rev == ""): bad_rev = latest bad_rev = int(bad_rev) except Exception, e: print("Could not determine latest revision. This could be bad...") bad_rev = int(raw_input("Bad revision: ")) # Find out when we were good. if opts.good: good_rev = opts.good else: good_rev = 0 try: good_rev = int(raw_input("Last known good [0]: ")) except Exception, e: pass # Get a list of revisions to bisect across. revlist = GetRevList(good_rev, bad_rev) if len(revlist) < 2: # Don't have enough builds to bisect print "We don't have enough builds to bisect. revlist: %s" % revlist sys.exit(1) # If we don't have a |good_rev|, set it to be the first revision possible. if good_rev == 0: good_rev = revlist[0] # These are indexes of |revlist|. good = 0 bad = len(revlist) - 1 last_known_good_rev = revlist[good] # Binary search time! while good < bad: candidates = revlist[good:bad] num_poss = len(candidates) if num_poss > 10: print("%d candidates. %d tries left." % (num_poss, round(math.log(num_poss, 2)))) else: print("Candidates: %s" % revlist[good:bad]) # Cut the problem in half... test = int((bad - good) / 2) + good test_rev = revlist[test] # Let the user give this rev a spin (in her own profile, if she wants). profile = opts.profile if not profile: profile = 'profile' # In a temp dir. TryRevision(test_rev, profile, args) if AskIsGoodBuild(test_rev): last_known_good_rev = revlist[good] good = test + 1 else: bad = test # We're done. Let the user know the results in an official manner. print("You are probably looking for build %d." % revlist[bad]) print("CHANGELOG URL:") print(CHANGELOG_URL % (last_known_good_rev, revlist[bad])) print("Built at revision:") print(BUILD_VIEWVC_URL % revlist[bad])
02d09ff36aee01d534a3b286ed0ea9934b6b02d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/02d09ff36aee01d534a3b286ed0ea9934b6b02d7/build-bisect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 7707, 9, 14654, 306, 2116, 65, 306, 413, 8123, 5077, 17, 2116, 13944, 82, 11, 296, 4990, 3112, 1623, 603, 326, 4439, 10736, 1093, 13, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 33, 9167, 13, 468, 3978, 539, 2357, 16, 326, 805, 2809, 876, 3302, 1404, 2341, 326, 6023, 666, 18, 7246, 273, 10228, 5821, 2187, 296, 23829, 2187, 296, 20132, 2187, 296, 20132, 17, 1105, 3546, 2082, 18, 1289, 67, 3482, 2668, 17, 69, 2187, 3534, 10686, 2187, 7246, 273, 7246, 16, 2809, 273, 296, 1986, 1361, 4819, 5052, 358, 27031, 9799, 87, 65, 1093, 738, 8030, 18, 5701, 12, 11937, 3719, 2082, 18, 1289, 67, 3482, 2668, 17, 70, 2187, 3534, 8759, 2187, 618, 273, 296, 474, 2187, 2809, 273, 296, 1986, 5570, 6350, 358, 27031, 358, 1093, 13, 2082, 18, 1289, 67, 3482, 2668, 17, 75, 2187, 3534, 19747, 2187, 618, 273, 296, 474, 2187, 2809, 273, 296, 1986, 1142, 4846, 7494, 6350, 358, 27031, 628, 1093, 13, 2082, 18, 1289, 67, 3482, 2668, 17, 84, 2187, 3534, 5040, 2187, 3534, 1355, 17, 892, 17, 1214, 2187, 618, 273, 296, 701, 2187, 2809, 273, 296, 4029, 358, 999, 31, 333, 903, 486, 2715, 3614, 1086, 18, 296, 397, 296, 7019, 358, 279, 2721, 3042, 1093, 13, 261, 4952, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 225, 309, 1500, 18, 10686, 353, 599, 30, 2082, 18, 1188, 67, 5201, 1435, 327, 404, 225, 309, 1500, 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, 13332, 4084, 273, 7707, 9, 14654, 306, 2116, 65, 306, 413, 8123, 5077, 17, 2116, 13944, 82, 11, 296, 4990, 3112, 1623, 603, 326, 4439, 10736, 1093, 13, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 33, 9167, 13, 468, 3978, 539, 2357, 16, 326, 805, 2809, 876, 3302, 1404, 2341, 326, 6023, 666, 18, 7246, 273, 10228, 5821, 2187, 296, 23829, 2187, 296, 20132, 2187, 296, 20132, 17, 1105, 3546, 2082, 18, 1289, 67, 3482, 2668, 17, 69, 2187, 3534, 10686, 2187, 7246, 273, 7246, 16, 2809, 273, 296, 1986, 1361, 4819, 5052, 358, 27031, 9799, 87, 65, 1093, 738, 8030, 18, 5701, 12, 11937, 3719, 2082, 18, 1289, 67, 3482, 2668, 17, 70, 2187, 2 ]
if not rep_err:
if rep_err:
def handle_exception(exc_info, conf, error_stream, html=True): """ You can also use exception handling outside of a web context, like:: import sys import paste import paste.error_middleware try: do stuff except: paste.error_middleware.exception_handler( sys.exc_info(), paste.CONFIG, sys.stderr, html=False) If you want to report, but not fully catch the exception, call ``raise`` after ``exception_handler``, which (when given no argument) will reraise the exception. """ reported = False exc_data = collector.collect_exception(*exc_info) extra_data = '' if conf.get('error_email'): rep = reporter.EmailReporter( to_addresses=conf['error_email'], from_address=conf.get('error_email_from', 'errors@localhost'), smtp_server=conf.get('smtp_server', 'localhost'), subject_prefix=conf.get('error_subject_prefix', '')) rep_err = send_report(rep, exc_data, html=html) if not rep_err: extra_data += rep_err reported = True if conf.get('error_log'): rep = reporter.LogReporter( filename=conf['error_log']) rep_err = send_report(rep, exc_data, html=html) if not rep_err: extra_data += rep_err reported = True if conf.get('show_exceptions_in_error_log', True): rep = reporter.FileReporter( file=error_stream) rep_err = send_report(rep, exc_data, html=html) if not rep_err: extra_data += rep_err reported = True else: error_stream.write('Error - %s: %s\n' % ( exc_data.exception_type, exc_data.exception_value)) if html: if conf.get('debug', False): error_html = formatter.format_html(exc_data, include_hidden_frames=True) return_error = error_template( error_html, extra_data) extra_data = '' reported = True else: error_message = conf.get('error_message') return_error = error_template( error_message or ''' An error occurred. See the error logs for more information. (Turn debug on to display exception reports here) ''', '') else: return_error = None if not reported and error_stream: err_report = formatter.format_text(exc_data, show_hidden_frames=True) err_report += '\n' + '-'*60 + '\n' error_stream.write(err_report) if extra_data: error_stream.write(extra_data) return return_error
edfa568c3c0d14678c4445912ce23b14afdb4c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/edfa568c3c0d14678c4445912ce23b14afdb4c21/errormiddleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 2195, 16, 555, 67, 3256, 16, 1729, 33, 5510, 4672, 3536, 4554, 848, 2546, 999, 1520, 5057, 8220, 434, 279, 3311, 819, 16, 3007, 2866, 225, 1930, 2589, 1930, 19401, 1930, 19401, 18, 1636, 67, 17352, 775, 30, 741, 10769, 1335, 30, 19401, 18, 1636, 67, 17352, 18, 4064, 67, 4176, 12, 2589, 18, 10075, 67, 1376, 9334, 19401, 18, 7203, 16, 2589, 18, 11241, 16, 1729, 33, 8381, 13, 225, 971, 1846, 2545, 358, 2605, 16, 1496, 486, 7418, 1044, 326, 1520, 16, 745, 12176, 11628, 10335, 1839, 12176, 4064, 67, 4176, 68, 9191, 1492, 261, 13723, 864, 1158, 1237, 13, 903, 436, 6070, 784, 326, 1520, 18, 3536, 14010, 273, 1083, 3533, 67, 892, 273, 8543, 18, 14676, 67, 4064, 30857, 10075, 67, 1376, 13, 2870, 67, 892, 273, 875, 309, 2195, 18, 588, 2668, 1636, 67, 3652, 11, 4672, 2071, 273, 11528, 18, 4134, 13289, 12, 358, 67, 13277, 33, 3923, 3292, 1636, 67, 3652, 17337, 628, 67, 2867, 33, 3923, 18, 588, 2668, 1636, 67, 3652, 67, 2080, 2187, 296, 4324, 36, 13014, 19899, 17660, 67, 3567, 33, 3923, 18, 588, 2668, 20278, 67, 3567, 2187, 296, 13014, 19899, 3221, 67, 3239, 33, 3923, 18, 588, 2668, 1636, 67, 7857, 67, 3239, 2187, 875, 3719, 2071, 67, 370, 273, 1366, 67, 6006, 12, 14462, 16, 3533, 67, 892, 16, 1729, 33, 2620, 13, 309, 2071, 67, 370, 30, 2870, 67, 892, 1011, 2071, 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, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 2195, 16, 555, 67, 3256, 16, 1729, 33, 5510, 4672, 3536, 4554, 848, 2546, 999, 1520, 5057, 8220, 434, 279, 3311, 819, 16, 3007, 2866, 225, 1930, 2589, 1930, 19401, 1930, 19401, 18, 1636, 67, 17352, 775, 30, 741, 10769, 1335, 30, 19401, 18, 1636, 67, 17352, 18, 4064, 67, 4176, 12, 2589, 18, 10075, 67, 1376, 9334, 19401, 18, 7203, 16, 2589, 18, 11241, 16, 1729, 33, 8381, 13, 225, 971, 1846, 2545, 358, 2605, 16, 1496, 486, 7418, 1044, 326, 1520, 16, 745, 12176, 11628, 10335, 1839, 12176, 4064, 67, 4176, 68, 9191, 1492, 261, 13723, 864, 1158, 1237, 13, 903, 436, 6070, 784, 326, 1520, 18, 3536, 2 ]
def action(env, target, source):
def action(env, target, source, exc=exc):
def action(env, target, source): raise exc
66760f7533670f207386c3051236b5ab13b6d122 /local1/tlutelli/issta_data/temp/all_python//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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 3074, 16, 1018, 16, 1084, 16, 3533, 33, 10075, 4672, 1002, 3533, 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 ]
EXAMPLES:
EXAMPLES::
def WeylCharacterRing(ct, base_ring=ZZ, prefix=None, cache=False, style="lattice"): r""" A class for rings of Weyl characters. The Weyl character is a character of a semisimple (or reductive) Lie group or algebra. They form a ring, in which the addition and multiplication correspond to direct sum and tensor product of representations. INPUT: - ``ct`` - The Cartan Type OPTIONAL ARGUMENTS: - ``base_ring`` - (default: `\ZZ`) - ``prefix`` (default an automatically generated prefix based on Cartan type) - ``cache`` - (default False) setting cache = True is a substantial speedup at the expense of some memory. - ``style`` - (default "lattice") can be set style = "coroots" to obtain an alternative representation of the elements. If no prefix specified, one is generated based on the Cartan type. It is good to name the ring after the prefix, since then it can parse its own output. EXAMPLES:: sage: G2 = WeylCharacterRing(['G',2]) sage: [fw1,fw2] = G2.fundamental_weights() sage: 2*G2(2*fw1+fw2) 2*G2(4,-1,-3) sage: 2*G2(4,-1,-3) 2*G2(4,-1,-3) sage: G2(4,-1,-3).degree() 189 Note that since the ring was named `G_2` after its default prefix, it was able to parse its own output. You do not have to use the default prefix. Thus: EXAMPLES:: sage: R = WeylCharacterRing(['B',3], prefix='R') sage: chi = R(R.fundamental_weights()[3]); chi R(1/2,1/2,1/2) sage: R(1/2,1/2,1/2) == chi True You may choose an alternative style of labeling the elements. If you create the ring with the option style="coroots" then the integers in the label are not the components of the highest weight vector, but rather the coefficients when the highest weight vector is decomposed into a product of irreducibles. These coefficients are the values of the coroots on the highest weight vector. In the coroot style the Lie group or Lie algebra is treated as semisimple, so you lose the distinction between GL(n) and SL(n); you also some information about representations of E6 and E7 for the same reason. The coroot style gives you output that is comparable to that in Tables of Dimensions, Indices and Branching Rules for Representations of Simple Lie Algebras (Marcel Dekker, 1981). EXAMPLES:: sage: B3 = WeylCharacterRing("B3",style="coroots") sage: [fw1,fw2,fw3]=B3.fundamental_weights() sage: fw1+fw3 (3/2, 1/2, 1/2) sage: B3(fw1+fw3) B3(1,0,1) sage: B3(1,0,1) B3(1,0,1) For type ['A',r], the coroot representation carries less information, since elements of the weight lattice that are orthogonal to the coroots are represented as zero. This means that with the default style you can represent the determinant, but not in the coroot style. In the coroot style, elements of the Weyl character ring represent characters of SL(r+1,CC), while in the default style, they represent characters of GL(r+1,CC). EXAMPLES: sage: A2 = WeylCharacterRing("A2") sage: L = A2.space() sage: [A2(L.det()), A2(L(0))] [A2(1,1,1), A2(0,0,0)] sage: A2(L.det()) == A2(L(0)) False sage: A2 = WeylCharacterRing("A2", style="coroots") sage: [A2(L.det()), A2(L(0))] [A2(0,0), A2(0,0)] sage: A2(L.det()) == A2(L(0)) True The multiplication in a Weyl character ring corresponds to the product of characters, which you can use to determine the decomposition of tensor products into irreducibles. For example, let us compute the tensor product of the standard and spin representations of Spin(7). EXAMPLES:: sage: B3 = WeylCharacterRing("B3") sage: [fw1,fw2,fw3]=B3.fundamental_weights() sage: [B3(fw1).degree(),B3(fw3).degree()] [7, 8] sage: B3(fw1)*B3(fw3) B3(1/2,1/2,1/2) + B3(3/2,1/2,1/2) The name of the irreducible representation encodes the highest weight vector. TESTS:: sage: F4 = WeylCharacterRing(['F',4], cache = True) sage: [fw1,fw2,fw3,fw4] = F4.fundamental_weights() sage: chi = F4(fw4); chi, chi.degree() (F4(1,0,0,0), 26) sage: chi^2 F4(0,0,0,0) + F4(1,0,0,0) + F4(1,1,0,0) + F4(3/2,1/2,1/2,1/2) + F4(2,0,0,0) sage: [x.degree() for x in [F4(0,0,0,0), F4(1,0,0,0), F4(1,1,0,0), F4(3/2,1/2,1/2,1/2), F4(2,0,0,0)]] [1, 26, 52, 273, 324] You can produce a list of the irreducible elements of an irreducible character. EXAMPLES:: sage: R = WeylCharacterRing(['A',2], prefix = R) sage: sorted(R([2,1,0]).mlist()) [[(1, 1, 1), 2], [(1, 2, 0), 1], [(1, 0, 2), 1], [(2, 1, 0), 1], [(2, 0, 1), 1], [(0, 1, 2), 1], [(0, 2, 1), 1]] """ ct = cartan_type.CartanType(ct) return cache_wcr(ct, base_ring=base_ring, prefix=prefix, cache=cache, style=style)
a164141dcaca9c673844b5041591f614ac6a8207 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a164141dcaca9c673844b5041591f614ac6a8207/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 678, 402, 80, 3949, 18, 1021, 678, 402, 80, 3351, 353, 279, 3351, 434, 279, 6111, 291, 2052, 261, 280, 1755, 853, 688, 13, 511, 1385, 1041, 578, 524, 29087, 18, 16448, 646, 279, 9221, 16, 316, 1492, 326, 2719, 471, 23066, 4325, 358, 2657, 2142, 471, 8171, 3017, 434, 27851, 18, 225, 12943, 30, 225, 300, 12176, 299, 10335, 300, 1021, 17695, 304, 1412, 225, 14930, 23654, 55, 30, 225, 300, 12176, 1969, 67, 8022, 10335, 300, 225, 261, 1886, 30, 1375, 64, 27096, 24065, 225, 300, 12176, 3239, 10335, 261, 1886, 392, 6635, 4374, 1633, 2511, 603, 17695, 304, 618, 13, 225, 300, 12176, 2493, 10335, 300, 225, 261, 1886, 1083, 13, 3637, 1247, 273, 1053, 353, 279, 720, 1452, 649, 8632, 416, 622, 326, 1329, 3558, 434, 2690, 3778, 18, 225, 300, 12176, 4060, 10335, 300, 261, 1886, 315, 80, 24966, 7923, 848, 506, 444, 2154, 273, 315, 3850, 1632, 87, 6, 358, 7161, 392, 10355, 4335, 434, 326, 2186, 18, 225, 971, 1158, 1633, 1269, 16, 1245, 353, 4374, 2511, 603, 326, 17695, 304, 618, 18, 2597, 353, 7494, 358, 508, 326, 9221, 1839, 326, 1633, 16, 3241, 1508, 518, 848, 1109, 2097, 4953, 876, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 22, 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, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 678, 402, 80, 3949, 18, 1021, 678, 402, 80, 3351, 353, 279, 3351, 434, 279, 6111, 291, 2052, 261, 280, 1755, 853, 688, 13, 511, 1385, 1041, 578, 524, 29087, 18, 16448, 646, 279, 9221, 16, 316, 1492, 326, 2719, 471, 23066, 4325, 358, 2657, 2142, 471, 8171, 3017, 434, 27851, 18, 225, 12943, 30, 225, 300, 12176, 299, 10335, 300, 1021, 17695, 304, 1412, 225, 14930, 23654, 55, 30, 225, 300, 12176, 1969, 67, 8022, 10335, 300, 225, 261, 1886, 30, 1375, 2 ]
send_pretty_error(e, env, req)
try: send_pretty_error(e, env, req) except socket.error, (code, msg): if code == errno.EPIPE or code == 10053: self.log_message('Lost connection to client: %s', self.address_string()) else: raise
def do_trac_req(self): m = self.url_re.findall(self.path) if not m: self.send_error(400, 'Bad Request') return project_name, path_info, query_string = m[0] if not self.server.projects.has_key(project_name): self.send_error(404, 'Not Found') return path_info = urllib.unquote(path_info) env = self.server.projects[project_name] self.log = env.log
e5a8b720df524623ada8d87401e23d0d3e5205ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/e5a8b720df524623ada8d87401e23d0d3e5205ac/standalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 313, 1077, 67, 3658, 12, 2890, 4672, 312, 273, 365, 18, 718, 67, 266, 18, 4720, 454, 12, 2890, 18, 803, 13, 309, 486, 312, 30, 365, 18, 4661, 67, 1636, 12, 16010, 16, 296, 6434, 1567, 6134, 327, 1984, 67, 529, 16, 589, 67, 1376, 16, 843, 67, 1080, 273, 312, 63, 20, 65, 309, 486, 365, 18, 3567, 18, 13582, 18, 5332, 67, 856, 12, 4406, 67, 529, 4672, 365, 18, 4661, 67, 1636, 12, 11746, 16, 296, 1248, 10750, 6134, 327, 589, 67, 1376, 273, 11527, 18, 318, 6889, 12, 803, 67, 1376, 13, 1550, 273, 365, 18, 3567, 18, 13582, 63, 4406, 67, 529, 65, 365, 18, 1330, 273, 1550, 18, 1330, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2890, 4672, 312, 273, 365, 18, 718, 67, 266, 18, 4720, 454, 12, 2890, 18, 803, 13, 309, 486, 312, 30, 365, 18, 4661, 67, 1636, 12, 16010, 16, 296, 6434, 1567, 6134, 327, 1984, 67, 529, 16, 589, 67, 1376, 16, 843, 67, 1080, 273, 312, 63, 20, 65, 309, 486, 365, 18, 3567, 18, 13582, 18, 5332, 67, 856, 12, 4406, 67, 529, 4672, 365, 18, 4661, 67, 1636, 12, 11746, 16, 296, 1248, 10750, 6134, 327, 589, 67, 1376, 273, 11527, 18, 318, 6889, 12, 803, 67, 1376, 13, 1550, 273, 365, 18, 3567, 18, 13582, 63, 4406, 67, 529, 65, 365, 18, 1330, 273, 1550, 18, 1330, 2 ]
global_conf,
global_conf=None,
def middleware( application, global_conf, http_login=False, http_realm='Secure Website', http_overwrite_realm=True, http_and_cookie=True, cookie_prefix='', login_page='_login/login_form', logout_page='_login/logout_form', secret=None, authenticator=None, ): """ Configuration: http_login: If true, then we'll prefer HTTP Basic logins, passing a 401 to the user. If false, we'll use form logins with Cookie authentication. http_realm: The realm to use. If http_overwrite_realm is true then we will force this to be the realm (even if the application supplies its own realm). http_and_cookie: If true, we'll give the user a login cookie even if they use HTTP. Then we don't have to throw a 401 on every page to get them to re-login. cookie_prefix: Used before all cookie names; like a domain. login_page: If using cookie login and we get a 401, we'll turn it into a 200 and do an internal redirect to this page (using recursive). logout_page: Ditto the logout (logout will at some point be triggered with another key we add to the environment). secret: We use this for signing cookies. We'll generate it automatically if it's not provided explicitly (set it explicitly to be sure it is stable). authenticator: When we do HTTP logins we need to tell if they are using the correct login immediately. See the Authenticator object for the framework of an implementation. When you require a login, return a 401 error. When a login has occurred, the logged-in username will be in REMOTE_USER. When the user is logged in, but denied access, use a 403 error (not a 401). It might be useful to have another middleware that wraps an application and returns a 401 error, based on parsing the URL. Currently, the login form, if used, is rendered at the URL requested by the user, instead of issuing an HTTP redirect. This will require some attention to caching issues, but allows forms to be POSTed without losing data after the login (as long as the login page contains the appropriate hidden fields.) Also, the cookie is not deleted on an unsuccessful login attempt. The cookie is issued with path '/' and no expiration date. This should probably be overridable. Environment variables used: paste.login.signer: signer, created from UsernameSigner class paste.login._dologin: user name to be logged in, either from HTTP auth or from form submission (XXX form not implement) paste.login._doredirect: login page to which to redirect paste.login._loginredirect: set to True iff _doredirect set and login_page is relative, else undefined. Used where? """ http_login = converters.asbool(http_login) http_overwrite_realm = converters.asbool(http_overwrite_realm) http_and_cookie = converters.asbool(http_and_cookie) if authenticator and isinstance(authenticator, (str, unicode)): authenticator = import_string.eval_import(authenticator) if http_login: assert authenticator, ( "You must provide an authenticator argument if you " "are using http_login") if secret is None: secret = global_conf.get('secret') if secret is None: secret = create_secret() cookie_name = cookie_prefix + '_login_auth' signer = UsernameSigner(secret) def login_application(environ, start_response): orig_script_name = environ['SCRIPT_NAME'] orig_path_info = environ['PATH_INFO'] cookies = wsgilib.get_cookies(environ) cookie = cookies.get(cookie_name) username = None environ['paste.login.signer'] = signer if cookie and cookie.value: username = signer.check_signature( cookie.value, environ['wsgi.errors']) authenticatee = ( environ.get('HTTP_AUTHORIZATION') or environ.get('HTTP_CGI_AUTHORIZATION')) if (not username and authenticator and authenticatee): username = authenticator().check_basic_auth(authenticatee) if http_and_cookie: environ['paste.login._dologin'] = username if username: environ['REMOTE_USER'] = username def login_start_response(status, headers, exc_info=None): if environ.get('paste.login._dologin'): cookie = SimpleCookie(cookie_name, signer.make_signature(username), '/') headers.append(('Set-Cookie', str(cookie))) del environ['paste.login._dologin'] status_int = int(status.split(None, 1)[0].strip()) if status_int == 401 and http_login: if (http_overwrite_realm or not wsgilib.has_header(headers, 'www-authenticate')): headers.append(('WWW-Authenticate', 'Basic realm="%s"' % http_realm)) elif status_int == 401: status = '200 OK' if login_page.startswith('/'): assert environ.has_key('paste.recursive.include'), ( "You must use the recursive middleware to " "use a non-relative page for the login_page") environ['paste.login._doredirect'] = login_page return garbage_writer return start_response(status, headers, exc_info) app_iter = application(environ, login_start_response) if environ.get('paste.login._doredirect'): page_name = environ['paste.login._doredirect'] del environ['paste.login._doredirect'] eat_app_iter(app_iter) if login_page.startswith('/'): app_iter = environ['paste.recursive.forward']( login_page[1:]) else: # Don't use recursive, since login page is # internal to new_environ = environ.copy() new_environ['SCRIPT_NAME'] = orig_script_name new_environ['PATH_INFO'] = '/' + login_page new_environ['paste.login._loginredirect'] = True app_iter = login_application(new_environ, start_response) return app_iter return login_application
11c0b5e9080fa549903fd37d5173921229e9f876 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/11c0b5e9080fa549903fd37d5173921229e9f876/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5827, 12, 2521, 16, 2552, 67, 3923, 33, 7036, 16, 1062, 67, 5819, 33, 8381, 16, 1062, 67, 24056, 2218, 12834, 1660, 12343, 2187, 1062, 67, 19274, 67, 24056, 33, 5510, 16, 1062, 67, 464, 67, 8417, 33, 5510, 16, 3878, 67, 3239, 2218, 2187, 3925, 67, 2433, 2218, 67, 5819, 19, 5819, 67, 687, 2187, 12735, 67, 2433, 2218, 67, 5819, 19, 21229, 67, 687, 2187, 4001, 33, 7036, 16, 17595, 33, 7036, 16, 262, 30, 3536, 4659, 30, 225, 1062, 67, 5819, 30, 971, 638, 16, 1508, 732, 5614, 13256, 2239, 7651, 613, 2679, 16, 9588, 279, 14052, 358, 326, 729, 18, 225, 971, 629, 16, 732, 5614, 999, 646, 613, 2679, 598, 10201, 5107, 18, 1062, 67, 24056, 30, 1021, 11319, 358, 999, 18, 225, 971, 1062, 67, 19274, 67, 24056, 353, 638, 1508, 732, 903, 2944, 333, 358, 506, 326, 11319, 261, 16728, 309, 326, 2521, 1169, 5259, 2097, 4953, 11319, 2934, 1062, 67, 464, 67, 8417, 30, 971, 638, 16, 732, 5614, 8492, 326, 729, 279, 3925, 3878, 5456, 309, 2898, 999, 2239, 18, 225, 9697, 732, 2727, 1404, 1240, 358, 604, 279, 14052, 603, 3614, 1363, 358, 336, 2182, 358, 283, 17, 5819, 18, 3878, 67, 3239, 30, 10286, 1865, 777, 3878, 1257, 31, 3007, 279, 2461, 18, 3925, 67, 2433, 30, 971, 1450, 3878, 3925, 471, 732, 336, 279, 14052, 16, 732, 5614, 7005, 518, 1368, 279, 4044, 471, 741, 392, 2713, 3136, 358, 333, 1363, 261, 9940, 5904, 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, 5827, 12, 2521, 16, 2552, 67, 3923, 33, 7036, 16, 1062, 67, 5819, 33, 8381, 16, 1062, 67, 24056, 2218, 12834, 1660, 12343, 2187, 1062, 67, 19274, 67, 24056, 33, 5510, 16, 1062, 67, 464, 67, 8417, 33, 5510, 16, 3878, 67, 3239, 2218, 2187, 3925, 67, 2433, 2218, 67, 5819, 19, 5819, 67, 687, 2187, 12735, 67, 2433, 2218, 67, 5819, 19, 21229, 67, 687, 2187, 4001, 33, 7036, 16, 17595, 33, 7036, 16, 262, 30, 3536, 4659, 30, 225, 1062, 67, 5819, 30, 971, 638, 16, 1508, 732, 5614, 13256, 2239, 7651, 613, 2679, 16, 9588, 279, 14052, 358, 326, 729, 18, 225, 971, 629, 16, 732, 5614, 999, 646, 613, 2679, 598, 10201, 5107, 18, 2 ]
while 1:
while True:
def _do_cmp(f1, f2): bufsize = BUFSIZE fp1 = open(f1, 'rb') fp2 = open(f2, 'rb') while 1: b1 = fp1.read(bufsize) b2 = fp2.read(bufsize) if b1 != b2: return 0 if not b1: return 1
96a007422f48d730fd5c8fff2baba32db87faf76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/96a007422f48d730fd5c8fff2baba32db87faf76/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 9625, 12, 74, 21, 16, 284, 22, 4672, 1681, 1467, 273, 10937, 42, 4574, 4253, 21, 273, 1696, 12, 74, 21, 16, 296, 6731, 6134, 4253, 22, 273, 1696, 12, 74, 22, 16, 296, 6731, 6134, 1323, 1053, 30, 324, 21, 273, 4253, 21, 18, 896, 12, 4385, 1467, 13, 324, 22, 273, 4253, 22, 18, 896, 12, 4385, 1467, 13, 309, 324, 21, 480, 324, 22, 30, 327, 374, 309, 486, 324, 21, 30, 327, 404, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 9625, 12, 74, 21, 16, 284, 22, 4672, 1681, 1467, 273, 10937, 42, 4574, 4253, 21, 273, 1696, 12, 74, 21, 16, 296, 6731, 6134, 4253, 22, 273, 1696, 12, 74, 22, 16, 296, 6731, 6134, 1323, 1053, 30, 324, 21, 273, 4253, 21, 18, 896, 12, 4385, 1467, 13, 324, 22, 273, 4253, 22, 18, 896, 12, 4385, 1467, 13, 309, 324, 21, 480, 324, 22, 30, 327, 374, 309, 486, 324, 21, 30, 327, 404, 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 ]
self._data_channel.send(notification.data)
self._data_channel.send(notification)
def _NH_SIPRegistrationDidEnd(self, notification): self._data_channel.send(notification.data)
acf3defabaf48767a177cbf61b78e3f5f810ebf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/acf3defabaf48767a177cbf61b78e3f5f810ebf3/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 7843, 18250, 1638, 12, 2890, 16, 3851, 4672, 365, 6315, 892, 67, 4327, 18, 4661, 12, 9927, 18, 892, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 7843, 18250, 1638, 12, 2890, 16, 3851, 4672, 365, 6315, 892, 67, 4327, 18, 4661, 12, 9927, 18, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
log(1, 'Generated C++ headers will be generated relative to "%s"', headersdir) log(1, 'Generated C++ sources will be generated in "%s"', cppdir)
log(2, 'Generated C++ headers will be generated relative to "%s"', headersdir) log(2, 'Generated C++ sources will be generated in "%s"', cppdir)
def log(minv, fmt, *args): if _verbosity >= minv: print >>sys.stderr, fmt % args
944f67b9f5694da6afa997f7d30c34d1bccb00f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/944f67b9f5694da6afa997f7d30c34d1bccb00f4/ipdl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 1154, 90, 16, 1325, 16, 380, 1968, 4672, 309, 389, 16629, 8807, 1545, 1131, 90, 30, 1172, 1671, 9499, 18, 11241, 16, 1325, 738, 833, 225, 2, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 1154, 90, 16, 1325, 16, 380, 1968, 4672, 309, 389, 16629, 8807, 1545, 1131, 90, 30, 1172, 1671, 9499, 18, 11241, 16, 1325, 738, 833, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
counter = 1
def create_record(msg): if hasattr(model_pool, 'message_new'): res_id = model_pool.message_new(cr, uid, msg, context) else: data = { 'name': msg.get('subject'), 'email_from': msg.get('from'), 'email_cc': msg.get('cc'), 'user_id': False, 'description': msg.get('body'), 'state' : 'draft', } data.update(self.get_partner(cr, uid, msg.get('from'), context=context)) res_id = model_pool.create(cr, uid, data, context=context)
25f3c114cde830404ca9430e1cd75cadc8bfd6fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/25f3c114cde830404ca9430e1cd75cadc8bfd6fd/mail_gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3366, 12, 3576, 4672, 309, 3859, 12, 2284, 67, 6011, 16, 296, 2150, 67, 2704, 11, 4672, 400, 67, 350, 273, 938, 67, 6011, 18, 2150, 67, 2704, 12, 3353, 16, 4555, 16, 1234, 16, 819, 13, 469, 30, 501, 273, 288, 296, 529, 4278, 1234, 18, 588, 2668, 7857, 19899, 296, 3652, 67, 2080, 4278, 1234, 18, 588, 2668, 2080, 19899, 296, 3652, 67, 952, 4278, 1234, 18, 588, 2668, 952, 19899, 296, 1355, 67, 350, 4278, 1083, 16, 296, 3384, 4278, 1234, 18, 588, 2668, 3432, 19899, 296, 2019, 11, 294, 296, 17153, 2187, 289, 501, 18, 2725, 12, 2890, 18, 588, 67, 31993, 12, 3353, 16, 4555, 16, 1234, 18, 588, 2668, 2080, 19899, 819, 33, 2472, 3719, 400, 67, 350, 273, 938, 67, 6011, 18, 2640, 12, 3353, 16, 4555, 16, 501, 16, 819, 33, 2472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 3366, 12, 3576, 4672, 309, 3859, 12, 2284, 67, 6011, 16, 296, 2150, 67, 2704, 11, 4672, 400, 67, 350, 273, 938, 67, 6011, 18, 2150, 67, 2704, 12, 3353, 16, 4555, 16, 1234, 16, 819, 13, 469, 30, 501, 273, 288, 296, 529, 4278, 1234, 18, 588, 2668, 7857, 19899, 296, 3652, 67, 2080, 4278, 1234, 18, 588, 2668, 2080, 19899, 296, 3652, 67, 952, 4278, 1234, 18, 588, 2668, 952, 19899, 296, 1355, 67, 350, 4278, 1083, 16, 296, 3384, 4278, 1234, 18, 588, 2668, 3432, 19899, 296, 2019, 11, 294, 296, 17153, 2187, 289, 501, 18, 2725, 12, 2890, 18, 588, 67, 31993, 12, 3353, 16, 4555, 16, 1234, 18, 588, 2668, 2080, 2 ]
for line in os.popen('sysctl -a hw machdep').readlines():
for line in commands.getoutput('sysctl -a hw machdep').split('\n'):
def get_host_info(self): import platform host_info = {} # uname = (system,node,release,version,machine,processor) uname = platform.uname() host_info['os'] = uname[0] if host_info['os'] == 'Linux': # Get CPU related data cpuinfo = open('/proc/cpuinfo','r').readlines() cpus = 0 for line in cpuinfo: if 'processor' in line: cpus += 1 s = line.split(':') if s != ['\n']: key = s[0].strip() value = s[1].strip() if key == 'cpu MHz': host_info[key] = int(float(value)) else: host_info[key] = value host_info['cpus'] = cpus # perform architecture specific modifications of host_info if uname[5] == 'ppc': host_info['clock'] = host_info['clock'].replace('MHz', '') host_info['cpu MHz'] = int(float(host_info['clock'])) host_info['model name'] = host_info['cpu'] elif uname[5] == 'ia64': host_info['model name'] = host_info['family']
cd5be9f8cccdcc803a5ca5c61255089c839087a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd5be9f8cccdcc803a5ca5c61255089c839087a4/hostinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2564, 67, 1376, 12, 2890, 4672, 1930, 4072, 1479, 67, 1376, 273, 2618, 468, 225, 31444, 273, 261, 4299, 16, 2159, 16, 9340, 16, 1589, 16, 9149, 16, 8700, 13, 31444, 273, 4072, 18, 318, 339, 1435, 1479, 67, 1376, 3292, 538, 3546, 273, 31444, 63, 20, 65, 225, 309, 1479, 67, 1376, 3292, 538, 3546, 422, 296, 19475, 4278, 468, 968, 12154, 3746, 501, 8326, 1376, 273, 1696, 2668, 19, 9381, 19, 11447, 1376, 17023, 86, 16063, 896, 3548, 1435, 20620, 273, 374, 364, 980, 316, 8326, 1376, 30, 309, 296, 8700, 11, 316, 980, 30, 20620, 1011, 404, 272, 273, 980, 18, 4939, 2668, 2497, 13, 309, 272, 480, 306, 8314, 82, 3546, 30, 498, 273, 272, 63, 20, 8009, 6406, 1435, 460, 273, 272, 63, 21, 8009, 6406, 1435, 309, 498, 422, 296, 11447, 490, 25688, 4278, 1479, 67, 1376, 63, 856, 65, 273, 509, 12, 5659, 12, 1132, 3719, 469, 30, 1479, 67, 1376, 63, 856, 65, 273, 460, 1479, 67, 1376, 3292, 20696, 3546, 273, 20620, 225, 468, 3073, 27418, 2923, 17953, 434, 1479, 67, 1376, 309, 31444, 63, 25, 65, 422, 296, 84, 2436, 4278, 1479, 67, 1376, 3292, 18517, 3546, 273, 1479, 67, 1376, 3292, 18517, 29489, 2079, 2668, 49, 25688, 2187, 28707, 1479, 67, 1376, 3292, 11447, 490, 25688, 3546, 273, 509, 12, 5659, 12, 2564, 67, 1376, 3292, 18517, 3546, 3719, 1479, 67, 1376, 3292, 2284, 508, 3546, 273, 1479, 67, 1376, 3292, 11447, 3546, 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, 2564, 67, 1376, 12, 2890, 4672, 1930, 4072, 1479, 67, 1376, 273, 2618, 468, 225, 31444, 273, 261, 4299, 16, 2159, 16, 9340, 16, 1589, 16, 9149, 16, 8700, 13, 31444, 273, 4072, 18, 318, 339, 1435, 1479, 67, 1376, 3292, 538, 3546, 273, 31444, 63, 20, 65, 225, 309, 1479, 67, 1376, 3292, 538, 3546, 422, 296, 19475, 4278, 468, 968, 12154, 3746, 501, 8326, 1376, 273, 1696, 2668, 19, 9381, 19, 11447, 1376, 17023, 86, 16063, 896, 3548, 1435, 20620, 273, 374, 364, 980, 316, 8326, 1376, 30, 309, 296, 8700, 11, 316, 980, 30, 20620, 1011, 404, 272, 273, 980, 18, 4939, 2668, 2497, 13, 309, 272, 480, 306, 8314, 82, 3546, 30, 2 ]
dc.SetFont(self.stc.GetFont()) start_pos, end_pos = self.getPositionsOfPage(page) render_rect = wx.Rect(self.x1, self.y1, 32000, self.y2) page_rect = wx.Rect(self.x1, self.y1, self.x2, self.y2) self.stc.SetPrintColourMode(self.print_mode) edge_mode = self.stc.GetEdgeMode() self.stc.SetEdgeMode(wx.stc.STC_EDGE_NONE) end_point = self.stc.FormatRange(True, start_pos, end_pos, dc, dc, render_rect, page_rect)
def OnPrintPage(self, page): """Scales and Renders the page to a DC and prints it @param page: page number to print
4bebb256853615ba19e6f179b242b1cab3934f85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/4bebb256853615ba19e6f179b242b1cab3934f85/stcprint.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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5108, 1964, 12, 2890, 16, 1363, 4672, 3536, 55, 21177, 471, 534, 10130, 326, 1363, 358, 279, 21533, 471, 14971, 518, 632, 891, 1363, 30, 1363, 1300, 358, 1172, 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 ]
if self.verbose:
if self.verbosity>0:
def get_info(self): """ Return a dictonary with items that are compatible with scipy_distutils.setup keyword arguments. """ flag = 0 if not self.has_info(): flag = 1 if self.verbose: print self.__class__.__name__ + ':' if hasattr(self, 'calc_info'): self.calc_info() if self.verbose: if not self.has_info(): print ' NOT AVAILABLE' self.set_info() else: print ' FOUND:' res = self.saved_results.get(self.__class__.__name__) if self.verbose and flag: for k,v in res.items(): v = str(v) if k=='sources' and len(v)>200: v = v[:60]+' ...\n... '+v[-60:] print ' %s = %s'%(k,v) print return res
11cffa55fceeda7a779a5a596b22fb98270f22b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/11cffa55fceeda7a779a5a596b22fb98270f22b8/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1376, 12, 2890, 4672, 3536, 2000, 279, 2065, 265, 814, 598, 1516, 716, 854, 7318, 598, 10966, 67, 4413, 5471, 18, 8401, 4932, 1775, 18, 3536, 2982, 273, 374, 309, 486, 365, 18, 5332, 67, 1376, 13332, 2982, 273, 404, 309, 365, 18, 16629, 8807, 34, 20, 30, 1172, 365, 16186, 1106, 972, 16186, 529, 972, 397, 3921, 309, 3859, 12, 2890, 16, 296, 12448, 67, 1376, 11, 4672, 365, 18, 12448, 67, 1376, 1435, 309, 365, 18, 16629, 8807, 34, 20, 30, 309, 486, 365, 18, 5332, 67, 1376, 13332, 1172, 296, 225, 4269, 15068, 20027, 11, 365, 18, 542, 67, 1376, 1435, 469, 30, 1172, 296, 225, 17634, 5240, 2497, 400, 273, 365, 18, 14077, 67, 4717, 18, 588, 12, 2890, 16186, 1106, 972, 16186, 529, 972, 13, 309, 365, 18, 11369, 471, 2982, 30, 364, 417, 16, 90, 316, 400, 18, 3319, 13332, 331, 273, 609, 12, 90, 13, 309, 417, 18920, 10141, 11, 471, 562, 12, 90, 13, 34, 6976, 30, 331, 273, 331, 10531, 4848, 30658, 1372, 64, 82, 2777, 15126, 90, 18919, 4848, 26894, 1172, 296, 565, 738, 87, 273, 738, 87, 11, 17105, 79, 16, 90, 13, 1172, 327, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 5332, 67, 1376, 13332, 2982, 273, 404, 309, 365, 18, 16629, 8807, 34, 20, 30, 1172, 365, 16186, 1106, 972, 16186, 529, 972, 397, 3921, 309, 3859, 12, 2890, 16, 296, 12448, 67, 1376, 11, 4672, 365, 18, 12448, 67, 1376, 1435, 309, 365, 18, 16629, 8807, 34, 20, 30, 309, 486, 365, 18, 5332, 67, 1376, 13332, 1172, 296, 225, 4269, 15068, 20027, 11, 365, 18, 542, 67, 1376, 1435, 469, 30, 1172, 296, 225, 17634, 5240, 2497, 400, 273, 365, 18, 2 ]
environ)
environ, view_uri)
def detect_start_response(status, headers, exc_info=None): try: return start_response(status, headers, exc_info) except: raise else: started.append(True)
82b170ea9a75b0f4370d4f07a2c6b03da7d39bff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/82b170ea9a75b0f4370d4f07a2c6b03da7d39bff/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 775, 30, 327, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 13, 1335, 30, 1002, 469, 30, 5746, 18, 6923, 12, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1652, 5966, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 775, 30, 327, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 13, 1335, 30, 1002, 469, 30, 5746, 18, 6923, 12, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
a808f69eab0ba4b4ffd8ff6c59c040174ee156d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a808f69eab0ba4b4ffd8ff6c59c040174ee156d6/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _start_response(self, *args, **kw): pass
def _start_response(self, code, headers): if not code == "200 OK": raise Exception('RPC call returned HTTP error: %s' % code)
def _start_response(self, *args, **kw): pass
f25f3e942b0d443ee9d1245926a7689d7623f010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14630/f25f3e942b0d443ee9d1245926a7689d7623f010/test_jsonrpc_wsgi_application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 2740, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, 389, 1937, 67, 2740, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rsync_exit = rsync_p.wait()
rsync_exit = os.WEXITSTATUS(rsync_p.wait())
def rsync_to_xs(from_path, to_path, keyfile, user): # add a trailing slash to ensure # that we don't generate a subdir # at the remote end. rsync oddities... if not re.compile('/$').search(from_path): from_path = from_path + '/' ssh = '/usr/bin/ssh -F /dev/null -o "PasswordAuthentication no" -i "%s" -l "%s"' \ % (keyfile, user) rsync = """/usr/bin/rsync -az --partial --delete --timeout=160 -e '%s' '%s' '%s' """ % \ (ssh, from_path, to_path) print rsync rsync_p = popen2.Popen3(rsync, True) # here we could track progress with a # for line in pipe: # (an earlier version had it) # TODO: wait returns a 16-bit int, we want the lower # byte of that. rsync_exit = rsync_p.wait() if rsync_exit != 0: raise TransferError('rsync error code %s, message:' % rsync_exit, rsync_p.childerr.read())
7ccf9331a585948e64c58234f9e6f35ddf9013d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9380/7ccf9331a585948e64c58234f9e6f35ddf9013d0/ds_backup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3597, 1209, 67, 869, 67, 13713, 12, 2080, 67, 803, 16, 358, 67, 803, 16, 28632, 16, 729, 4672, 225, 468, 527, 279, 7341, 9026, 358, 3387, 468, 716, 732, 2727, 1404, 2103, 279, 16921, 468, 622, 326, 2632, 679, 18, 3597, 1209, 14800, 1961, 2777, 309, 486, 283, 18, 11100, 2668, 19, 9227, 2934, 3072, 12, 2080, 67, 803, 4672, 628, 67, 803, 273, 628, 67, 803, 397, 2023, 225, 7056, 273, 1173, 13640, 19, 4757, 19, 10975, 300, 42, 342, 5206, 19, 2011, 300, 83, 315, 3913, 6492, 1158, 6, 300, 77, 2213, 87, 6, 300, 80, 2213, 87, 5187, 521, 738, 261, 856, 768, 16, 729, 13, 3597, 1209, 273, 3536, 19, 13640, 19, 4757, 19, 5453, 1209, 300, 1561, 1493, 11601, 1493, 3733, 1493, 4538, 33, 16874, 300, 73, 1995, 87, 11, 1995, 87, 11, 1995, 87, 11, 3536, 738, 521, 261, 10975, 16, 628, 67, 803, 16, 358, 67, 803, 13, 1172, 3597, 1209, 3597, 1209, 67, 84, 273, 30925, 22, 18, 52, 3190, 23, 12, 5453, 1209, 16, 1053, 13, 225, 468, 2674, 732, 3377, 3298, 4007, 598, 279, 468, 364, 980, 316, 6010, 30, 468, 261, 304, 13805, 1177, 9323, 518, 13, 225, 468, 2660, 30, 2529, 1135, 279, 2872, 17, 3682, 509, 16, 732, 2545, 326, 2612, 468, 1160, 434, 716, 18, 3597, 1209, 67, 8593, 273, 1140, 18, 59, 28682, 8608, 12, 5453, 1209, 67, 84, 18, 7048, 10756, 309, 3597, 1209, 67, 8593, 480, 374, 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, 3597, 1209, 67, 869, 67, 13713, 12, 2080, 67, 803, 16, 358, 67, 803, 16, 28632, 16, 729, 4672, 225, 468, 527, 279, 7341, 9026, 358, 3387, 468, 716, 732, 2727, 1404, 2103, 279, 16921, 468, 622, 326, 2632, 679, 18, 3597, 1209, 14800, 1961, 2777, 309, 486, 283, 18, 11100, 2668, 19, 9227, 2934, 3072, 12, 2080, 67, 803, 4672, 628, 67, 803, 273, 628, 67, 803, 397, 2023, 225, 7056, 273, 1173, 13640, 19, 4757, 19, 10975, 300, 42, 342, 5206, 19, 2011, 300, 83, 315, 3913, 6492, 1158, 6, 300, 77, 2213, 87, 6, 300, 80, 2213, 87, 5187, 521, 738, 261, 856, 768, 16, 729, 13, 3597, 1209, 273, 3536, 19, 13640, 19, 4757, 2 ]
return (h(driver.get_jitcell_at, driver.greens, **kwds_s) and h(driver.set_jitcell_at, driver.greens, [s_jitcell], **kwds_s) and h(driver.get_printable_location, driver.greens, **kwds_s))
h(driver.get_jitcell_at, driver.greens, **kwds_s) h(driver.set_jitcell_at, driver.greens, [s_jitcell], **kwds_s) h(driver.get_printable_location, driver.greens, **kwds_s)
def annotate_hooks(self, **kwds_s): driver = self.instance.im_self s_jitcell = self.bookkeeper.valueoftype(BaseJitCell) h = self.annotate_hook return (h(driver.get_jitcell_at, driver.greens, **kwds_s) and h(driver.set_jitcell_at, driver.greens, [s_jitcell], **kwds_s) and h(driver.get_printable_location, driver.greens, **kwds_s))
cfca385a3ea1990aeed90a0f23b338518939ac63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/cfca385a3ea1990aeed90a0f23b338518939ac63/jit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 67, 10468, 12, 2890, 16, 2826, 25577, 67, 87, 4672, 3419, 273, 365, 18, 1336, 18, 381, 67, 2890, 272, 67, 78, 305, 3855, 273, 365, 18, 3618, 79, 9868, 18, 1132, 792, 723, 12, 2171, 46, 305, 4020, 13, 366, 273, 365, 18, 18338, 340, 67, 4476, 327, 261, 76, 12, 7407, 18, 588, 67, 78, 305, 3855, 67, 270, 16, 3419, 18, 11556, 773, 16, 2826, 25577, 67, 87, 13, 471, 366, 12, 7407, 18, 542, 67, 78, 305, 3855, 67, 270, 16, 3419, 18, 11556, 773, 16, 306, 87, 67, 78, 305, 3855, 6487,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 67, 10468, 12, 2890, 16, 2826, 25577, 67, 87, 4672, 3419, 273, 365, 18, 1336, 18, 381, 67, 2890, 272, 67, 78, 305, 3855, 273, 365, 18, 3618, 79, 9868, 18, 1132, 792, 723, 12, 2171, 46, 305, 4020, 13, 366, 273, 365, 18, 18338, 340, 67, 4476, 327, 261, 76, 12, 7407, 18, 588, 67, 78, 305, 3855, 67, 270, 16, 3419, 18, 11556, 773, 16, 2826, 25577, 67, 87, 13, 471, 366, 12, 7407, 18, 542, 67, 78, 305, 3855, 67, 270, 16, 3419, 18, 11556, 773, 16, 306, 87, 67, 78, 305, 3855, 6487, 2826, 25577, 67, 87, 13, 471, 366, 12, 7407, 18, 588, 67, 1188, 429, 67, 3562, 16, 3419, 18, 11556, 2 ]
if runMythtranscode(chanid, starttime, os.path.join(folder,'tmp'), True, localfile): mediafile = os.path.join(folder,'tmp')
if runMythtranscode(chanid, starttime, os.path.join(folder,'newfile.mpg'), True, localfile): mediafile = os.path.join(folder,'newfile.mpg')
def doProcessFile(file, folder): """Process a single video/recording file ready for burning.""" write( "*************************************************************") write( "Processing file " + file.attributes["filename"].value + " of type " + file.attributes["type"].value) write( "*************************************************************") #As part of this routine we need to pre-process the video this MAY mean: #1. removing commercials/cleaning up mpeg2 stream #2. encoding to mpeg2 (if its an avi for instance or isn't DVD compatible) #3. selecting audio track to use and encoding audio from mp2 into ac3 #4. de-multiplexing into video and audio steams) mediafile="" if file.hasAttribute("localfilename"): mediafile=file.attributes["localfilename"].value elif file.attributes["type"].value=="recording": mediafile = file.attributes["filename"].value elif file.attributes["type"].value=="video": mediafile=os.path.join(videopath, file.attributes["filename"].value) elif file.attributes["type"].value=="file": mediafile=file.attributes["filename"].value else: fatalError("Unknown type of video file it must be 'recording', 'video' or 'file'.") #Get the XML containing information about this item infoDOM = xml.dom.minidom.parse( os.path.join(folder,"info.xml") ) #Error out if its the wrong XML if infoDOM.documentElement.tagName != "fileinfo": fatalError("The info.xml file (%s) doesn't look right" % os.path.join(folder,"info.xml")) #If this is an mpeg2 myth recording and there is a cut list available and the user wants to use it #run mythtranscode to cut out commercials etc if file.attributes["type"].value == "recording": #can only use mythtranscode to cut commercials on mpeg2 files write("File type is '%s'" % getFileType(folder)) write("Video codec is '%s'" % getVideoCodec(folder)) if string.lower(getVideoCodec(folder)) == "mpeg2video": if file.attributes["usecutlist"].value == "1" and getText(infoDOM.getElementsByTagName("hascutlist")[0]) == "yes": # Run from local file? if file.hasAttribute("localfilename"): localfile = file.attributes["localfilename"].value else: localfile = "" write("File has a cut list - running mythtrancode to remove unwanted segments") chanid = getText(infoDOM.getElementsByTagName("chanid")[0]) starttime = getText(infoDOM.getElementsByTagName("starttime")[0]) if runMythtranscode(chanid, starttime, os.path.join(folder,'tmp'), True, localfile): mediafile = os.path.join(folder,'tmp') else: write("Failed to run mythtranscode to remove unwanted segments") else: #does the user always want to run recordings through mythtranscode? #may help to fix any errors in the file if (alwaysRunMythtranscode == True or (getFileType(folder) == "mpegts" and isFileOkayForDVD(file, folder))): # Run from local file? if file.hasAttribute("localfilename"): localfile = file.attributes["localfilename"].value else: localfile = "" write("Running mythtranscode --mpeg2 to fix any errors") chanid = getText(infoDOM.getElementsByTagName("chanid")[0]) starttime = getText(infoDOM.getElementsByTagName("starttime")[0]) if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile): mediafile = os.path.join(folder, 'newfile.mpg') else: write("Failed to run mythtrancode to fix any errors") else: #does the user always want to run mpeg2 files through mythtranscode? #may help to fix any errors in the file write("File type is '%s'" % getFileType(folder)) write("Video codec is '%s'" % getVideoCodec(folder)) if (alwaysRunMythtranscode == True and string.lower(getVideoCodec(folder)) == "mpeg2video" and isFileOkayForDVD(file, folder)): if file.hasAttribute("localfilename"): localfile = file.attributes["localfilename"].value else: localfile = file.attributes["filename"].value write("Running mythtranscode --mpeg2 to fix any errors") chanid = -1 starttime = -1 if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile): mediafile = os.path.join(folder, 'newfile.mpg') else: write("Failed to run mythtrancode to fix any errors") #do we need to re-encode the file to make it DVD compliant? if not isFileOkayForDVD(file, folder): if getFileType(folder) == 'nuv': #file is a nuv file which ffmpeg has problems reading so use mythtranscode to pass #the video and audio streams to ffmpeg to do the reencode #we need to re-encode the file, make sure we get the right video/audio streams #would be good if we could also split the file at the same time getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml"), 0) #choose which streams we need video, audio1, audio2 = selectStreams(folder) #choose which aspect ratio we should use aspectratio = selectAspectRatio(folder) write("Re-encoding audio and video from nuv file") # what encoding profile should we use if file.hasAttribute("encodingprofile"): profile = file.attributes["encodingprofile"].value else: profile = defaultEncodingProfile if file.hasAttribute("localfilename"): mediafile = file.attributes["localfilename"].value chanid = -1 starttime = -1 usecutlist = -1 elif file.attributes["type"].value == "recording": mediafile = -1 chanid = getText(infoDOM.getElementsByTagName("chanid")[0]) starttime = getText(infoDOM.getElementsByTagName("starttime")[0]) usecutlist = (file.attributes["usecutlist"].value == "1" and getText(infoDOM.getElementsByTagName("hascutlist")[0]) == "yes") else: chanid = -1 starttime = -1 usecutlist = -1 encodeNuvToMPEG2(chanid, starttime, mediafile, os.path.join(folder, "newfile2.mpg"), folder, profile, usecutlist) mediafile = os.path.join(folder, 'newfile2.mpg') else: #we need to re-encode the file, make sure we get the right video/audio streams #would be good if we could also split the file at the same time getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml"), 0) #choose which streams we need video, audio1, audio2 = selectStreams(folder) #choose which aspect ratio we should use aspectratio = selectAspectRatio(folder) write("Re-encoding audio and video") # Run from local file? if file.hasAttribute("localfilename"): mediafile = file.attributes["localfilename"].value # what encoding profile should we use if file.hasAttribute("encodingprofile"): profile = file.attributes["encodingprofile"].value else: profile = defaultEncodingProfile #do the re-encode encodeVideoToMPEG2(mediafile, os.path.join(folder, "newfile2.mpg"), video, audio1, audio2, aspectratio, profile) mediafile = os.path.join(folder, 'newfile2.mpg') #remove an intermediate file if os.path.exists(os.path.join(folder, "newfile1.mpg")): os.remove(os.path.join(folder,'newfile1.mpg')) # the file is now DVD compliant split it into video and audio parts # find out what streams we have available now getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml"), 1) # choose which streams we need video, audio1, audio2 = selectStreams(folder) # now attempt to split the source file into video and audio parts write("Splitting MPEG stream into audio and video parts") deMultiplexMPEG2File(folder, mediafile, video, audio1, audio2) if os.path.exists(os.path.join(folder, "newfile2.mpg")): os.remove(os.path.join(folder,'newfile2.mpg')) # we now have a video stream and one or more audio streams # check if we need to convert any of the audio streams to ac3 processAudio(folder) # if we don't already have one find a title thumbnail image titleImage = os.path.join(folder, "title.jpg") if not os.path.exists(titleImage): # if the file is a recording try to use its preview image for the thumb if file.attributes["type"].value == "recording": previewImage = file.attributes["filename"].value + ".png" if usebookmark == True and os.path.exists(previewImage): copy(previewImage, titleImage) else: extractVideoFrame(os.path.join(folder, "stream.mv2"), titleImage, thumboffset) else: extractVideoFrame(os.path.join(folder, "stream.mv2"), titleImage, thumboffset) write( "*************************************************************") write( "Finished processing file " + file.attributes["filename"].value) write( "*************************************************************")
d7d780b176df7d4b00b6b9ac53b091f2e8a69296 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/d7d780b176df7d4b00b6b9ac53b091f2e8a69296/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2227, 812, 12, 768, 16, 3009, 4672, 3536, 2227, 279, 2202, 6191, 19, 3366, 310, 585, 5695, 364, 18305, 310, 12123, 225, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 1045, 12, 315, 7798, 585, 315, 397, 585, 18, 4350, 9614, 3459, 6, 8009, 1132, 397, 315, 434, 618, 315, 397, 585, 18, 4350, 9614, 723, 6, 8009, 1132, 13, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 225, 468, 1463, 1087, 434, 333, 12245, 732, 1608, 358, 675, 17, 2567, 326, 6191, 333, 490, 5255, 3722, 30, 468, 21, 18, 9427, 1543, 12610, 649, 87, 19, 6200, 310, 731, 312, 9001, 22, 1407, 468, 22, 18, 2688, 358, 312, 9001, 22, 261, 430, 2097, 392, 279, 522, 364, 791, 578, 5177, 1404, 463, 21544, 7318, 13, 468, 23, 18, 24674, 7447, 3298, 358, 999, 471, 2688, 7447, 628, 6749, 22, 1368, 1721, 23, 468, 24, 18, 443, 17, 9622, 92, 310, 1368, 6191, 471, 7447, 384, 3820, 87, 13, 225, 3539, 768, 1546, 6, 225, 309, 585, 18, 5332, 1499, 2932, 3729, 3459, 6, 4672, 3539, 768, 33, 768, 18, 4350, 9614, 3729, 3459, 6, 8009, 1132, 1327, 585, 18, 4350, 9614, 723, 6, 8009, 1132, 31713, 3366, 310, 6877, 3539, 768, 273, 585, 18, 4350, 9614, 3459, 6, 8009, 1132, 1327, 585, 18, 4350, 9614, 723, 6, 8009, 1132, 31713, 9115, 6877, 3539, 768, 33, 538, 18, 803, 18, 5701, 12, 6768, 556, 421, 16, 585, 18, 4350, 9614, 3459, 6, 8009, 1132, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2227, 812, 12, 768, 16, 3009, 4672, 3536, 2227, 279, 2202, 6191, 19, 3366, 310, 585, 5695, 364, 18305, 310, 12123, 225, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 1045, 12, 315, 7798, 585, 315, 397, 585, 18, 4350, 9614, 3459, 6, 8009, 1132, 397, 315, 434, 618, 315, 397, 585, 18, 4350, 9614, 723, 6, 8009, 1132, 13, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 225, 468, 1463, 1087, 434, 333, 12245, 732, 1608, 358, 675, 17, 2567, 326, 6191, 333, 490, 5255, 3722, 30, 468, 21, 18, 9427, 1543, 12610, 649, 87, 19, 6200, 310, 731, 312, 9001, 22, 1407, 468, 22, 18, 2688, 358, 312, 9001, 22, 261, 430, 2097, 392, 279, 2 ]
meta_to_stdout(document) text_to_stdout(document)
if opts.meta: dump(document.get_formated_meta(), stdout) dump(document.get_formated_text(), stdout)
def spreadsheet_to_csv(document, target): body = document.get_body() for table_element in body.get_table_list(): table = odf_table(odf_element=table_element) name = table.get_tagname() filename = clean_filename(name) + '.csv' csv_file = target.open(filename, 'w') table.export_to_csv(csv_file) csv_file.close()
d034f1988e9ff2b616b9b451dfe7a72ede62b474 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/d034f1988e9ff2b616b9b451dfe7a72ede62b474/lpod-show.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30775, 67, 869, 67, 6715, 12, 5457, 16, 1018, 4672, 1417, 273, 1668, 18, 588, 67, 3432, 1435, 364, 1014, 67, 2956, 316, 1417, 18, 588, 67, 2121, 67, 1098, 13332, 1014, 273, 320, 2180, 67, 2121, 12, 369, 74, 67, 2956, 33, 2121, 67, 2956, 13, 508, 273, 1014, 18, 588, 67, 2692, 529, 1435, 1544, 273, 2721, 67, 3459, 12, 529, 13, 397, 2418, 6715, 11, 6101, 67, 768, 273, 1018, 18, 3190, 12, 3459, 16, 296, 91, 6134, 1014, 18, 6530, 67, 869, 67, 6715, 12, 6715, 67, 768, 13, 6101, 67, 768, 18, 4412, 1435, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30775, 67, 869, 67, 6715, 12, 5457, 16, 1018, 4672, 1417, 273, 1668, 18, 588, 67, 3432, 1435, 364, 1014, 67, 2956, 316, 1417, 18, 588, 67, 2121, 67, 1098, 13332, 1014, 273, 320, 2180, 67, 2121, 12, 369, 74, 67, 2956, 33, 2121, 67, 2956, 13, 508, 273, 1014, 18, 588, 67, 2692, 529, 1435, 1544, 273, 2721, 67, 3459, 12, 529, 13, 397, 2418, 6715, 11, 6101, 67, 768, 273, 1018, 18, 3190, 12, 3459, 16, 296, 91, 6134, 1014, 18, 6530, 67, 869, 67, 6715, 12, 6715, 67, 768, 13, 6101, 67, 768, 18, 4412, 1435, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gobject.type_register(HPaned) self.register_signals(HPaned)
def __init__(self): """Class initialiser""" self.terminator = Terminator() self.cnxids = {} self.signals.append({'name': 'resize-term', 'flags': gobject.SIGNAL_RUN_LAST, 'return_type': gobject.TYPE_NONE, 'param_types': (gobject.TYPE_STRING,)})
f566d5b0c20584f1e6d80dd007f8c274275d92d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/f566d5b0c20584f1e6d80dd007f8c274275d92d0/paned.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 797, 2172, 15914, 8395, 365, 18, 9505, 639, 273, 6820, 4240, 1435, 365, 18, 10305, 92, 2232, 273, 2618, 365, 18, 29659, 18, 6923, 12590, 11, 529, 4278, 296, 15169, 17, 6408, 2187, 296, 7133, 4278, 314, 1612, 18, 11260, 1013, 67, 15238, 67, 14378, 16, 296, 2463, 67, 723, 4278, 314, 1612, 18, 2399, 67, 9826, 16, 296, 891, 67, 2352, 4278, 261, 75, 1612, 18, 2399, 67, 5804, 16, 13, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 797, 2172, 15914, 8395, 365, 18, 9505, 639, 273, 6820, 4240, 1435, 365, 18, 10305, 92, 2232, 273, 2618, 365, 18, 29659, 18, 6923, 12590, 11, 529, 4278, 296, 15169, 17, 6408, 2187, 296, 7133, 4278, 314, 1612, 18, 11260, 1013, 67, 15238, 67, 14378, 16, 296, 2463, 67, 723, 4278, 314, 1612, 18, 2399, 67, 9826, 16, 296, 891, 67, 2352, 4278, 261, 75, 1612, 18, 2399, 67, 5804, 16, 13, 6792, 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 ]
if name != None or len( name ) > 0:
name = name.strip() if name == None or len( name ) == 0 or name == "": return True else:
def areaLeaveMessage( socket, name ): if name != None or len( name ) > 0: socket.sysmessage( "You have left %s." % name ) return True
431d10a8f5ac2aa2951cb11231bd8a40e989e98c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/431d10a8f5ac2aa2951cb11231bd8a40e989e98c/regionchange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5091, 21300, 1079, 12, 2987, 16, 508, 262, 30, 508, 273, 508, 18, 6406, 1435, 309, 508, 422, 599, 578, 562, 12, 508, 262, 422, 374, 578, 508, 422, 1408, 30, 327, 1053, 469, 30, 2987, 18, 9499, 2150, 12, 315, 6225, 1240, 2002, 738, 87, 1199, 738, 508, 262, 327, 1053, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5091, 21300, 1079, 12, 2987, 16, 508, 262, 30, 508, 273, 508, 18, 6406, 1435, 309, 508, 422, 599, 578, 562, 12, 508, 262, 422, 374, 578, 508, 422, 1408, 30, 327, 1053, 469, 30, 2987, 18, 9499, 2150, 12, 315, 6225, 1240, 2002, 738, 87, 1199, 738, 508, 262, 327, 1053, 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 ]
sage: R.<a,b,c> = ZZ['a','b','c'] sage: I = R.ideal(a,b) sage: Q = R.quotient_ring(I)
sage: R.quo(x^2 - y^2).is_integral_domain(proof=False) False sage: R.<a,b,c> = ZZ[] sage: Q = R.quotient_ring([a, b])
def is_integral_domain(self, proof = True): r""" If this function returns ``True`` then self is definitely an integral domain. If it returns ``False``, then either self is definitely not an integral domain or this function was unable to determine whether or not self is an integral domain. Use ``self.defining_ideal().is_prime()`` to find out for sure whether this quotient ring is really not an integral domain, of if Sage is unable to determine the answer. EXAMPLES:: sage: R = Integers(8) sage: R.is_integral_domain() False sage: R.<a,b,c> = ZZ['a','b','c'] sage: I = R.ideal(a,b) sage: Q = R.quotient_ring(I) sage: Q.is_integral_domain() Traceback (most recent call last): ... NotImplementedError """ if proof: return self.defining_ideal().is_prime() else: try: return self.defining_ideal.is_prime() except AttributeError: return False except NotImplementedError: return False
7ed9595a85a12f0211561d84e6407965a64cb54a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7ed9595a85a12f0211561d84e6407965a64cb54a/quotient_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 14970, 23811, 67, 4308, 12, 2890, 16, 14601, 273, 1053, 4672, 436, 8395, 971, 333, 445, 1135, 12176, 5510, 10335, 1508, 365, 353, 2217, 25818, 392, 21423, 2461, 18, 971, 518, 1135, 12176, 8381, 68, 9191, 1508, 3344, 365, 353, 2217, 25818, 486, 392, 21423, 2461, 578, 333, 445, 1703, 13496, 358, 4199, 2856, 578, 486, 365, 353, 392, 21423, 2461, 18, 225, 2672, 12176, 2890, 18, 5649, 310, 67, 831, 287, 7675, 291, 67, 16382, 1435, 10335, 358, 1104, 596, 364, 3071, 2856, 333, 26708, 9221, 353, 8654, 486, 392, 21423, 2461, 16, 434, 309, 348, 410, 353, 13496, 358, 4199, 326, 5803, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 534, 273, 657, 736, 6215, 12, 28, 13, 272, 410, 30, 534, 18, 291, 67, 14970, 23811, 67, 4308, 1435, 1083, 272, 410, 30, 534, 18, 372, 83, 12, 92, 66, 22, 300, 677, 66, 22, 2934, 291, 67, 14970, 23811, 67, 4308, 12, 24207, 33, 8381, 13, 1083, 272, 410, 30, 534, 22782, 69, 16, 70, 16, 71, 34, 273, 2285, 62, 8526, 272, 410, 30, 2238, 273, 534, 18, 9270, 1979, 67, 8022, 3816, 69, 16, 324, 5717, 272, 410, 30, 2238, 18, 291, 67, 14970, 23811, 67, 4308, 1435, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, 11206, 3536, 309, 14601, 30, 327, 365, 18, 5649, 310, 67, 831, 287, 7675, 291, 67, 16382, 1435, 469, 30, 775, 30, 327, 365, 18, 5649, 310, 67, 831, 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, 353, 67, 14970, 23811, 67, 4308, 12, 2890, 16, 14601, 273, 1053, 4672, 436, 8395, 971, 333, 445, 1135, 12176, 5510, 10335, 1508, 365, 353, 2217, 25818, 392, 21423, 2461, 18, 971, 518, 1135, 12176, 8381, 68, 9191, 1508, 3344, 365, 353, 2217, 25818, 486, 392, 21423, 2461, 578, 333, 445, 1703, 13496, 358, 4199, 2856, 578, 486, 365, 353, 392, 21423, 2461, 18, 225, 2672, 12176, 2890, 18, 5649, 310, 67, 831, 287, 7675, 291, 67, 16382, 1435, 10335, 358, 1104, 596, 364, 3071, 2856, 333, 26708, 9221, 353, 8654, 486, 392, 21423, 2461, 16, 434, 309, 348, 410, 353, 13496, 358, 4199, 326, 5803, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 534, 273, 2 ]
def f0C(self, n1, n2):
def f09(self, n1, n2):
def f0C(self, n1, n2): return n1 + n2
7eba157adce404243eac81b4d40f252393526f0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3322/7eba157adce404243eac81b4d40f252393526f0a/db_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 5908, 12, 2890, 16, 290, 21, 16, 290, 22, 4672, 327, 290, 21, 397, 290, 22, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 5908, 12, 2890, 16, 290, 21, 16, 290, 22, 4672, 327, 290, 21, 397, 290, 22, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
list3 += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: list3 += [re.sub(" .*", "", entry)] f = codecs.open('copyright/exclusion_list.txt', 'r','utf-8') list3 += re.sub(" ?
result_list += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: result_list += [re.sub(" .*", "", entry)] result_list += read_file(appdir + 'exclusion_list.txt', cut_comment = True).splitlines() return result_list def read_file(filename, cut_comment = False): text = u"" f = codecs.open(filename, 'r','utf-8') text = f.read() if cut_comment: text = re.sub(" ?
def exclusion_list(): prelist = [] load_pages() for page, path in exclusion_file_list(): f = codecs.open(path, "r", 'utf-8') data = f.read() f.close() # wikipedia:en:Wikipedia:Mirrors and forks prelist += re.findall("(?i)url\s*=\s*<nowiki>(?:http://)?(.*?)</nowiki>", data) prelist += re.findall("(?i)\*\s*Site:\s*\[?(?:http://)?(.*?)\]?", data) # wikipedia:it:Wikipedia:Cloni if 'copyright/it/Cloni.txt' in path: prelist += re.findall('(?i)^==(?!=)\s*\[?\s*(?:<nowiki>)?(?:http://)?(.*?)(?:</nowiki>)?\s*\]?\s*==', data) #prelist += re.findall("(?i)<h2>\s*(?:http://)?(.*?)\s*</h2>", data) list1 = [] for entry in prelist: list1 += entry.split(", ") list2 = [] for entry in list1: list2 += entry.split("and ") list3 = [] for entry in list2: entry = re.sub("http://", "", entry) if entry: if '/' in entry: list3 += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: list3 += [re.sub(" .*", "", entry)] #list3 += [re.sub("/.*", "", entry)] f = codecs.open('copyright/exclusion_list.txt', 'r','utf-8') list3 += re.sub(" ?#.*","",f.read()).splitlines() f.close() return list3
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21244, 67, 1098, 13332, 675, 1098, 273, 5378, 1262, 67, 7267, 1435, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 284, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 296, 3158, 17, 28, 6134, 501, 273, 284, 18, 896, 1435, 284, 18, 4412, 1435, 468, 21137, 30, 275, 30, 59, 16049, 30, 49, 27026, 471, 364, 7904, 675, 1098, 1011, 283, 18, 4720, 454, 2932, 3680, 77, 13, 718, 64, 87, 14, 18206, 87, 14, 32, 3338, 6169, 34, 6503, 2505, 2207, 9945, 21110, 1757, 3338, 6169, 2984, 16, 501, 13, 675, 1098, 1011, 283, 18, 4720, 454, 2932, 3680, 77, 5153, 12174, 87, 14, 4956, 5581, 87, 12174, 63, 35, 6503, 2505, 2207, 9945, 27482, 26717, 3113, 501, 13, 468, 21137, 30, 305, 30, 59, 16049, 30, 2009, 265, 77, 309, 296, 29187, 19, 305, 19, 2009, 265, 77, 18, 5830, 11, 316, 589, 30, 675, 1098, 1011, 283, 18, 4720, 454, 2668, 3680, 77, 13, 66, 631, 19306, 33, 5153, 87, 12174, 63, 10936, 87, 14, 6503, 32, 3338, 6169, 34, 9945, 6503, 2505, 2207, 9945, 21110, 6503, 1757, 3338, 6169, 34, 9945, 64, 87, 12174, 65, 10936, 87, 14, 631, 2187, 501, 13, 468, 1484, 1098, 1011, 283, 18, 4720, 454, 2932, 3680, 77, 13, 32, 76, 22, 5333, 87, 14, 6503, 2505, 2207, 9945, 27482, 87, 14, 1757, 76, 22, 2984, 16, 501, 13, 666, 21, 273, 5378, 364, 1241, 316, 675, 1098, 30, 666, 21, 1011, 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, 21244, 67, 1098, 13332, 675, 1098, 273, 5378, 1262, 67, 7267, 1435, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 284, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 296, 3158, 17, 28, 6134, 501, 273, 284, 18, 896, 1435, 284, 18, 4412, 1435, 468, 21137, 30, 275, 30, 59, 16049, 30, 49, 27026, 471, 364, 7904, 675, 1098, 1011, 283, 18, 4720, 454, 2932, 3680, 77, 13, 718, 64, 87, 14, 18206, 87, 14, 32, 3338, 6169, 34, 6503, 2505, 2207, 9945, 21110, 1757, 3338, 6169, 2984, 16, 501, 13, 675, 1098, 1011, 283, 18, 4720, 454, 2932, 3680, 77, 5153, 12174, 87, 14, 4956, 5581, 87, 12174, 63, 35, 6503, 2505, 2 ]
class CircleFactory(GraphicPrimitiveFactory_circle):
class CircleFactory(GraphicPrimitiveFactory):
def _from_xdata_ydata(self, ind, datalist, xrange, yrange, options): g = Graphics() #TODO: improve below for multiple data sets! #cnt = 1 #for ind, pnts, xrange, yrange in bardata: #options={'rgbcolor':hue(cnt/dl),'width':0.5/dl} # g._bar_chart(ind, pnts, xrange, yrange, options=options) # cnt += 1 #else: g._bar_chart(ind, datalist, xrange, yrange, options=options) return g
6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 1547, 16, 18462, 376, 16, 12314, 16, 677, 3676, 16, 702, 4672, 314, 273, 16830, 1435, 468, 6241, 30, 21171, 5712, 364, 3229, 501, 1678, 5, 468, 13085, 273, 404, 468, 1884, 1547, 16, 293, 27932, 16, 12314, 16, 677, 3676, 316, 4653, 892, 30, 468, 2116, 5899, 11, 10948, 3266, 4278, 76, 344, 12, 13085, 19, 5761, 3631, 11, 2819, 4278, 20, 18, 25, 19, 5761, 97, 468, 565, 314, 6315, 3215, 67, 11563, 12, 728, 16, 293, 27932, 16, 12314, 16, 677, 3676, 16, 702, 33, 2116, 13, 468, 565, 7599, 1011, 404, 468, 12107, 30, 314, 6315, 3215, 67, 11563, 12, 728, 16, 18462, 376, 16, 12314, 16, 677, 3676, 16, 702, 33, 2116, 13, 327, 314, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 1547, 16, 18462, 376, 16, 12314, 16, 677, 3676, 16, 702, 4672, 314, 273, 16830, 1435, 468, 6241, 30, 21171, 5712, 364, 3229, 501, 1678, 5, 468, 13085, 273, 404, 468, 1884, 1547, 16, 293, 27932, 16, 12314, 16, 677, 3676, 316, 4653, 892, 30, 468, 2116, 5899, 11, 10948, 3266, 4278, 76, 344, 12, 13085, 19, 5761, 3631, 11, 2819, 4278, 20, 18, 25, 19, 5761, 97, 468, 565, 314, 6315, 3215, 67, 11563, 12, 728, 16, 293, 27932, 16, 12314, 16, 677, 3676, 16, 702, 33, 2116, 13, 468, 565, 7599, 1011, 404, 468, 12107, 30, 314, 6315, 3215, 67, 11563, 12, 728, 16, 18462, 2 ]
now = datetime.datetime.now()
now = datetime.datetime.now()
def testDate(self): with JSContext() as ctxt: now1 = ctxt.eval("new Date();") self.assert_(now1) now2 = datetime.datetime.utcnow() delta = now2 - now1 if now2 > now1 else now1 - now2 self.assert_(delta < datetime.timedelta(seconds=1)) func = ctxt.eval("(function (d) { return d.toString(); })") now = datetime.datetime.now() self.assert_(str(func(now)).startswith(now.strftime("%a %b %d %Y %H:%M:%S")))
39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1626, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 14286, 30, 2037, 21, 273, 14286, 18, 8622, 2932, 2704, 2167, 26994, 13, 225, 365, 18, 11231, 67, 12, 3338, 21, 13, 225, 2037, 22, 273, 3314, 18, 6585, 18, 17892, 3338, 1435, 225, 3622, 273, 2037, 22, 300, 2037, 21, 309, 2037, 22, 405, 2037, 21, 469, 2037, 21, 300, 2037, 22, 225, 365, 18, 11231, 67, 12, 9878, 411, 3314, 18, 31295, 12, 7572, 33, 21, 3719, 225, 1326, 273, 14286, 18, 8622, 2932, 12, 915, 261, 72, 13, 288, 327, 302, 18, 10492, 5621, 289, 2225, 13, 225, 2037, 273, 3314, 18, 6585, 18, 3338, 1435, 225, 365, 18, 11231, 67, 12, 701, 12, 644, 12, 3338, 13, 2934, 17514, 1918, 12, 3338, 18, 701, 9982, 27188, 69, 738, 70, 738, 72, 738, 61, 738, 44, 5319, 49, 5319, 55, 6, 20349, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1626, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 14286, 30, 2037, 21, 273, 14286, 18, 8622, 2932, 2704, 2167, 26994, 13, 225, 365, 18, 11231, 67, 12, 3338, 21, 13, 225, 2037, 22, 273, 3314, 18, 6585, 18, 17892, 3338, 1435, 225, 3622, 273, 2037, 22, 300, 2037, 21, 309, 2037, 22, 405, 2037, 21, 469, 2037, 21, 300, 2037, 22, 225, 365, 18, 11231, 67, 12, 9878, 411, 3314, 18, 31295, 12, 7572, 33, 21, 3719, 225, 1326, 273, 14286, 18, 8622, 2932, 12, 915, 261, 72, 13, 288, 327, 302, 18, 10492, 5621, 289, 2225, 13, 225, 2037, 273, 3314, 18, 6585, 18, 3338, 1435, 225, 365, 18, 11231, 67, 12, 701, 12, 644, 2 ]
self.mark_mipmap_dirty(tx, ty, t)
assert self.mipmap_level == 0 self.mark_mipmap_dirty(tx, ty)
def get_tile_memory(self, tx, ty, readonly): # copy-on-write for readonly tiles # OPTIMIZE: do some profiling to check if this function is a bottleneck # yes it is # Note: we must return memory that stays valid for writing until the # last end_atomic(), because of the caching in tiledsurface.hpp. t = self.tiledict.get((tx, ty)) if t is None: if readonly: t = transparent_tile else: t = Tile() self.tiledict[(tx, ty)] = t if t.mipmap_dirty: # regenerate mipmap if self.mipmap_level > 0: for x in xrange(2): for y in xrange(2): src = self.parent.get_tile_memory(tx*2 + x, ty*2 + y, True) mypaintlib.tile_downscale_rgba16(src, t.rgba, x*N/2, y*N/2) t.mipmap_dirty = False if t.readonly and not readonly: # OPTIMIZE: we could do the copying in save_snapshot() instead, this might reduce the latency while drawing # (eg. tile.valid_copy = some_other_tile_instance; and valid_copy = None here) # before doing this, measure the worst-case time of the call below; same thing with new tiles t = t.copy() self.tiledict[(tx, ty)] = t if not readonly: self.mark_mipmap_dirty(tx, ty, t) return t.rgba
ff4732cd4946b295d6a939c9984ef1ab05967962 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/ff4732cd4946b295d6a939c9984ef1ab05967962/tiledsurface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15368, 67, 7858, 12, 2890, 16, 2229, 16, 13806, 16, 17102, 4672, 468, 1610, 17, 265, 17, 2626, 364, 17102, 12568, 468, 16456, 3445, 15641, 30, 741, 2690, 25658, 358, 866, 309, 333, 445, 353, 279, 2512, 28445, 468, 6647, 12465, 518, 353, 468, 3609, 30, 732, 1297, 327, 3778, 716, 384, 8271, 923, 364, 7410, 3180, 326, 468, 1142, 679, 67, 27718, 9334, 2724, 434, 326, 11393, 316, 268, 1411, 18266, 18, 76, 11858, 18, 268, 273, 365, 18, 88, 1411, 933, 18, 588, 12443, 978, 16, 13806, 3719, 309, 268, 353, 599, 30, 309, 17102, 30, 268, 273, 17270, 67, 15368, 469, 30, 268, 273, 13791, 1435, 365, 18, 88, 1411, 933, 63, 12, 978, 16, 13806, 25887, 273, 268, 309, 268, 18, 81, 625, 1458, 67, 18013, 30, 468, 20821, 312, 625, 1458, 309, 365, 18, 81, 625, 1458, 67, 2815, 405, 374, 30, 364, 619, 316, 12314, 12, 22, 4672, 364, 677, 316, 12314, 12, 22, 4672, 1705, 273, 365, 18, 2938, 18, 588, 67, 15368, 67, 7858, 12, 978, 14, 22, 397, 619, 16, 13806, 14, 22, 397, 677, 16, 1053, 13, 312, 879, 1598, 2941, 18, 15368, 67, 2378, 5864, 67, 26198, 2313, 12, 4816, 16, 268, 18, 26198, 16, 619, 14, 50, 19, 22, 16, 677, 14, 50, 19, 22, 13, 268, 18, 81, 625, 1458, 67, 18013, 273, 1083, 309, 268, 18, 16365, 471, 486, 17102, 30, 468, 16456, 3445, 15641, 30, 732, 3377, 741, 326, 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, 15368, 67, 7858, 12, 2890, 16, 2229, 16, 13806, 16, 17102, 4672, 468, 1610, 17, 265, 17, 2626, 364, 17102, 12568, 468, 16456, 3445, 15641, 30, 741, 2690, 25658, 358, 866, 309, 333, 445, 353, 279, 2512, 28445, 468, 6647, 12465, 518, 353, 468, 3609, 30, 732, 1297, 327, 3778, 716, 384, 8271, 923, 364, 7410, 3180, 326, 468, 1142, 679, 67, 27718, 9334, 2724, 434, 326, 11393, 316, 268, 1411, 18266, 18, 76, 11858, 18, 268, 273, 365, 18, 88, 1411, 933, 18, 588, 12443, 978, 16, 13806, 3719, 309, 268, 353, 599, 30, 309, 17102, 30, 268, 273, 17270, 67, 15368, 469, 30, 268, 273, 13791, 1435, 365, 18, 88, 1411, 933, 63, 12, 2 ]
print 'Remembering subdirectory', filename
print 'Remembering subdirectory', `filename`
def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open(infofilename, 'r').read() except IOError, msg: text = '{}' try: info = eval(text) except (SyntaxError, NameError): print 'Bad mirror info in %s' % infofilename info = {} subdirs = [] listing = [] if verbose: print 'Listing remote directory %s...' % pwd f.retrlines('LIST', listing.append) filesfound = [] for line in listing: if verbose > 1: print '-->', `line` if mac: # Mac listing has just filenames; # trailing / means subdirectory filename = string.strip(line) mode = '-' if filename[-1:] == '/': filename = filename[:-1] mode = 'd' infostuff = '' else: # Parse, assuming a UNIX listing words = string.split(line, None, 8) if len(words) < 6: if verbose > 1: print 'Skipping short line' continue filename = words[-1] if string.find(filename, " -> ") >= 0: if verbose > 1: print 'Skipping symbolic link %s' % \ filename continue infostuff = words[-5:-1] mode = words[0] skip = 0 for pat in skippats: if fnmatch(filename, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', filename skip = 1 break if skip: continue if mode[0] == 'd': if verbose > 1: print 'Remembering subdirectory', filename subdirs.append(filename) continue filesfound.append(filename) if info.has_key(filename) and info[filename] == infostuff: if verbose > 1: print 'Already have this version of', filename continue fullname = os.path.join(localdir, filename) tempname = os.path.join(localdir, '@'+filename) if interactive: doit = askabout('file', filename, pwd) if not doit: if not info.has_key(filename): info[filename] = 'Not retrieved' continue try: os.unlink(tempname) except os.error: pass try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %s: %s" % (tempname, str(msg)) continue if verbose: print 'Retrieving %s from %s as %s...' % \ (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout) else: fp1 = fp t0 = time.time() try: f.retrbinary('RETR ' + filename, fp1.write, 8*1024) except ftplib.error_perm, msg: print msg t1 = time.time() bytes = fp.tell() fp.close() if fp1 != fp: fp1.close() try: os.unlink(fullname) except os.error: pass # Ignore the error try: os.rename(tempname, fullname) except os.error, msg: print "Can't rename %s to %s: %s" % (tempname, fullname, str(msg)) continue info[filename] = infostuff writedict(info, infofilename) if verbose: dt = t1 - t0 kbytes = bytes / 1024.0 print int(round(kbytes)), print 'Kbytes in', print int(round(dt)), print 'seconds', if t1 > t0: print '(~%d Kbytes/sec)' % \ int(round(kbytes/dt),) print # # Remove files from info that are no longer remote deletions = 0 for filename in info.keys(): if filename not in filesfound: if verbose: print "Removing obsolete info entry for", print filename, "in", localdir or "." del info[filename] deletions = deletions + 1 if deletions: writedict(info, infofilename) # # Remove local files that are no longer in the remote directory try: if not localdir: names = os.listdir(os.curdir) else: names = os.listdir(localdir) except os.error: names = [] for name in names: if name[0] == '.' or info.has_key(name) or name in subdirs: continue skip = 0 for pat in skippats: if fnmatch(name, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', name skip = 1 break if skip: continue fullname = os.path.join(localdir, name) if not rmok: if verbose: print 'Local file', fullname, print 'is no longer pertinent' continue if verbose: print 'Removing local file/dir', fullname remove(fullname) # # Recursively mirror subdirectories for subdir in subdirs: if interactive: doit = askabout('subdirectory', subdir, pwd) if not doit: continue if verbose: print 'Processing subdirectory', subdir localsubdir = os.path.join(localdir, subdir) pwd = f.pwd() if verbose > 1: print 'Remote directory now:', pwd print 'Remote cwd', subdir try: f.cwd(subdir) except ftplib.error_perm, msg: print "Can't chdir to", subdir, ":", msg else: if verbose: print 'Mirroring as', localsubdir mirrorsubdir(f, localsubdir) if verbose > 1: print 'Remote cwd ..' f.cwd('..') newpwd = f.pwd() if newpwd != pwd: print 'Ended up in wrong directory after cd + cd ..' print 'Giving up now.' break else: if verbose > 1: print 'OK.'
ace1e022e9566ad27920d0be67da64be4caffff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ace1e022e9566ad27920d0be67da64be4caffff3/ftpmirror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 1172, 296, 11092, 1191, 1867, 2187, 1191, 1214, 775, 30, 11882, 481, 12, 3729, 1214, 13, 1335, 1140, 18, 1636, 16, 1234, 30, 1172, 315, 2925, 358, 18312, 1191, 1867, 3113, 1191, 1214, 327, 1123, 3459, 273, 1140, 18, 803, 18, 5701, 12, 3729, 1214, 16, 2418, 27197, 1376, 6134, 775, 30, 977, 273, 1696, 12, 1376, 3459, 16, 296, 86, 16063, 896, 1435, 1335, 8340, 16, 1234, 30, 977, 273, 7485, 775, 30, 1123, 273, 5302, 12, 955, 13, 1335, 261, 22510, 16, 25473, 4672, 1172, 296, 6434, 15593, 1123, 316, 738, 87, 11, 738, 1123, 3459, 1123, 273, 2618, 720, 8291, 273, 5378, 11591, 273, 5378, 309, 3988, 30, 1172, 296, 19081, 2632, 1867, 738, 87, 7821, 738, 14720, 284, 18, 266, 313, 3548, 2668, 7085, 2187, 11591, 18, 6923, 13, 1390, 7015, 273, 5378, 364, 980, 316, 11591, 30, 309, 3988, 405, 404, 30, 1172, 3534, 1870, 16, 1375, 1369, 68, 309, 5318, 30, 468, 13217, 11591, 711, 2537, 9066, 31, 468, 7341, 342, 4696, 29869, 1544, 273, 533, 18, 6406, 12, 1369, 13, 1965, 273, 4014, 309, 1544, 18919, 21, 26894, 422, 2023, 30, 1544, 273, 1544, 10531, 17, 21, 65, 1965, 273, 296, 72, 11, 1123, 334, 3809, 273, 875, 469, 30, 468, 2884, 16, 15144, 279, 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, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 1172, 296, 11092, 1191, 1867, 2187, 1191, 1214, 775, 30, 11882, 481, 12, 3729, 1214, 13, 1335, 1140, 18, 1636, 16, 1234, 30, 1172, 315, 2925, 358, 18312, 1191, 1867, 3113, 1191, 1214, 327, 1123, 3459, 273, 1140, 18, 803, 18, 5701, 12, 3729, 1214, 16, 2418, 27197, 1376, 6134, 775, 30, 977, 273, 1696, 12, 1376, 3459, 16, 296, 86, 16063, 896, 1435, 1335, 8340, 16, 1234, 30, 977, 273, 7485, 775, 30, 1123, 273, 5302, 12, 955, 13, 1335, 261, 22510, 16, 2 ]
class POLYLINE(POLYBEZIER):
class _POLYLINE(_POLYBEZIER):
def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.aptl)) return txt.getvalue()
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 1657, 80, 3719, 225, 327, 6463, 18, 588, 1132, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 1657, 80, 3719, 225, 327, 6463, 18, 588, 1132, 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 ]
fvecp = atleast_1d(fcn(xp))
fvecp = atleast_1d(fcn(xp,*args))
def check_gradient(fcn,Dfcn,x0,col_deriv=0): """Perform a simple check on the gradient for correctness. """ x = atleast_1d(x0) n = len(x) x.shape = (n,) fvec = atleast_1d(fcn(x)) if 1 not in fvec.shape: raise ValueError, "Function does not return a 1-D array." m = len(fvec) fvec.shape = (m,) ldfjac = m fjac = atleast_1d(Dfcn(x)) fjac.shape = (m,n) if col_deriv == 0: fjac = transpose(fjac) xp = zeros((n,),Float64) err = zeros((m,),Float64) fvecp = None _minpack._chkder(m,n,x,fvec,fjac,ldfjac,xp,fvecp,1,err) fvecp = atleast_1d(fcn(xp)) fvecp.shape = (m,) _minpack._chkder(m,n,x,fvec,fjac,ldfjac,xp,fvecp,2,err) good = (product(greater(err,0.5))) return (good,err)
e8035e8d7cfa2696816dcfe7607a81878f53a57b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/e8035e8d7cfa2696816dcfe7607a81878f53a57b/minpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 20219, 12, 7142, 82, 16, 40, 7142, 82, 16, 92, 20, 16, 1293, 67, 20615, 33, 20, 4672, 3536, 4990, 279, 4143, 866, 603, 326, 10292, 364, 3434, 4496, 18, 3536, 225, 619, 273, 20098, 67, 21, 72, 12, 92, 20, 13, 290, 273, 562, 12, 92, 13, 619, 18, 4867, 273, 261, 82, 16, 13, 284, 8799, 273, 20098, 67, 21, 72, 12, 7142, 82, 12, 92, 3719, 309, 404, 486, 316, 284, 8799, 18, 4867, 30, 1002, 2068, 16, 315, 2083, 1552, 486, 327, 279, 404, 17, 40, 526, 1199, 312, 273, 562, 12, 74, 8799, 13, 284, 8799, 18, 4867, 273, 261, 81, 16, 13, 328, 2180, 31390, 273, 312, 284, 31390, 273, 20098, 67, 21, 72, 12, 40, 7142, 82, 12, 92, 3719, 284, 31390, 18, 4867, 273, 261, 81, 16, 82, 13, 309, 645, 67, 20615, 422, 374, 30, 284, 31390, 273, 10411, 12, 74, 31390, 13, 225, 13681, 273, 4922, 12443, 82, 16, 3631, 4723, 1105, 13, 393, 273, 4922, 12443, 81, 16, 3631, 4723, 1105, 13, 284, 537, 4057, 273, 599, 389, 1154, 2920, 6315, 27038, 765, 12, 81, 16, 82, 16, 92, 16, 74, 8799, 16, 74, 31390, 16, 1236, 74, 31390, 16, 23829, 16, 74, 537, 4057, 16, 21, 16, 370, 13, 225, 284, 537, 4057, 273, 20098, 67, 21, 72, 12, 7142, 82, 12, 23829, 16, 14, 1968, 3719, 284, 537, 4057, 18, 4867, 273, 261, 81, 16, 13, 389, 1154, 2920, 6315, 27038, 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, 866, 67, 20219, 12, 7142, 82, 16, 40, 7142, 82, 16, 92, 20, 16, 1293, 67, 20615, 33, 20, 4672, 3536, 4990, 279, 4143, 866, 603, 326, 10292, 364, 3434, 4496, 18, 3536, 225, 619, 273, 20098, 67, 21, 72, 12, 92, 20, 13, 290, 273, 562, 12, 92, 13, 619, 18, 4867, 273, 261, 82, 16, 13, 284, 8799, 273, 20098, 67, 21, 72, 12, 7142, 82, 12, 92, 3719, 309, 404, 486, 316, 284, 8799, 18, 4867, 30, 1002, 2068, 16, 315, 2083, 1552, 486, 327, 279, 404, 17, 40, 526, 1199, 312, 273, 562, 12, 74, 8799, 13, 284, 8799, 18, 4867, 273, 261, 81, 16, 13, 328, 2180, 31390, 273, 312, 284, 31390, 273, 2 ]
if not self._loadingFromXML and not self._modified:
if not self._loadingFromXML:
def _objectChanged(self, sender): if not self._loadingFromXML and not self._modified: self._updateGraph(sender) self._modified = True dispatcher.send(('set', 'modified'), self)
aa75b641620c915ab0c0e922b122a0b191cb2409 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/aa75b641620c915ab0c0e922b122a0b191cb2409/network.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1612, 5033, 12, 2890, 16, 5793, 4672, 309, 486, 365, 6315, 15174, 1265, 4201, 30, 365, 6315, 2725, 4137, 12, 15330, 13, 365, 6315, 7342, 273, 1053, 7393, 18, 4661, 12, 2668, 542, 2187, 296, 7342, 19899, 365, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1612, 5033, 12, 2890, 16, 5793, 4672, 309, 486, 365, 6315, 15174, 1265, 4201, 30, 365, 6315, 2725, 4137, 12, 15330, 13, 365, 6315, 7342, 273, 1053, 7393, 18, 4661, 12, 2668, 542, 2187, 296, 7342, 19899, 365, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
text = text.replace('\n', '\mbox{}\\\\')
text = text.replace('\n', '\mbox{}\\\\{}')
def encode(self, text, attval=None): """ Encode special characters in ``text`` and return it.
e5447d1b2a8e64e6e14c45c402c9b100fc120c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/e5447d1b2a8e64e6e14c45c402c9b100fc120c53/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 977, 16, 2403, 1125, 33, 7036, 4672, 3536, 6240, 4582, 3949, 316, 12176, 955, 10335, 471, 327, 518, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 977, 16, 2403, 1125, 33, 7036, 4672, 3536, 6240, 4582, 3949, 316, 12176, 955, 10335, 471, 327, 518, 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 ]
$(this).parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id);
$self.parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id);
def __call__(self, request=None, response=None): """ Returns global configuration of the Flowplayer taken from portal_properties """ self.update() self.request.response.setHeader("Content-type", "text/javascript") return """(function($) { $(function() { $('.autoFlowPlayer').each(function() { var config = %(config)s; if ($(this).is('.minimal')) { config.plugins.controls = null; } var audio = $(this).is('.audio'); if (audio) { $(this).width(500); config.plugins.controls.all = false; config.plugins.controls.play = true; config.plugins.controls.scrubber = true; config.plugins.controls.mute = true; config.plugins.controls.volume = true; } if ($(this).is('div')) { // comming from Kupu, there are relative urls config.clip.baseUrl = $('base').attr('href'); config.clip.url = $(this).find('a').attr('href'); // Ignore global autoplay settings if ($(this).find('img').length == 0) { // no image. Don't autoplay, remove all elements inside the div to show player directly. config.clip.autoPlay = false; $(this).empty(); } else { // Clip is probably linked as image, so autoplay the clip after image is clicked config.clip.autoPlay = true; } } flowplayer(this, %(params)s, config)%(events)s; $('.flowPlayerMessage').remove(); }); $('.playListFlowPlayer').each(function() { var config = %(config)s; var audio = $(this).is('.audio'); if (audio) { config.plugins.controls.fullscreen = false; } if ($(this).is('.minimal')) { config.plugins.controls = null; } if ($(this).find('img').length > 0) { // has splash config.clip.autoPlay = true; } portlet_parents = $(this).parents('.portlet'); var playlist_selector = 'div#flowPlaylist'; if (portlet_parents.length > 0) { var portlet = true; // playlist has to be bound to unique item playlist_selector_id = portlet_parents.parent().attr('id')+'-playlist'; $(this).parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id); playlist_selector = '#'+playlist_selector_id; if (audio) { config.plugins.controls.all = false; config.plugins.controls.play = true; config.plugins.controls.scrubber = true; config.plugins.controls.mute = true; config.plugins.controls.volume = false; } } else { var portlet = false; } if (!portlet) { $("#pl").scrollable({items:playlist_selector, size:4, clickable:false}); } // manual = playlist is setup using HTML tags, not using playlist array in config flowplayer(this, %(params)s, config).playlist(playlist_selector, {loop: true, manual: true})%(events)s; $(this).show(); $('.flowPlayerMessage').remove();
6325b369cd48626ccdf5f7d0a299fc35cf6d8690 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10573/6325b369cd48626ccdf5f7d0a299fc35cf6d8690/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 3536, 2860, 2552, 1664, 434, 326, 9473, 14872, 9830, 628, 11899, 67, 4738, 3536, 365, 18, 2725, 1435, 365, 18, 2293, 18, 2740, 18, 542, 1864, 2932, 1350, 17, 723, 3113, 315, 955, 19, 11242, 7923, 225, 327, 3536, 12, 915, 4372, 13, 288, 27488, 915, 1435, 288, 271, 2668, 18, 6079, 5249, 12148, 16063, 13798, 12, 915, 1435, 288, 569, 642, 273, 8975, 1425, 13, 87, 31, 309, 9253, 12, 2211, 2934, 291, 2668, 18, 1154, 2840, 26112, 288, 642, 18, 8057, 18, 24350, 273, 446, 31, 289, 569, 7447, 273, 27488, 2211, 2934, 291, 2668, 18, 11509, 8284, 309, 261, 11509, 13, 288, 27488, 2211, 2934, 2819, 12, 12483, 1769, 642, 18, 8057, 18, 24350, 18, 454, 273, 629, 31, 642, 18, 8057, 18, 24350, 18, 1601, 273, 638, 31, 642, 18, 8057, 18, 24350, 18, 1017, 18271, 744, 273, 638, 31, 642, 18, 8057, 18, 24350, 18, 81, 624, 273, 638, 31, 642, 18, 8057, 18, 24350, 18, 9491, 273, 638, 31, 289, 309, 9253, 12, 2211, 2934, 291, 2668, 2892, 26112, 288, 368, 1543, 310, 628, 1475, 416, 89, 16, 1915, 854, 3632, 6903, 642, 18, 14161, 18, 31576, 273, 271, 2668, 1969, 16063, 1747, 2668, 7547, 8284, 642, 18, 14161, 18, 718, 273, 27488, 2211, 2934, 4720, 2668, 69, 16063, 1747, 2668, 7547, 8284, 368, 8049, 2552, 3656, 1601, 1947, 309, 9253, 12, 2211, 2934, 4720, 2668, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 3536, 2860, 2552, 1664, 434, 326, 9473, 14872, 9830, 628, 11899, 67, 4738, 3536, 365, 18, 2725, 1435, 365, 18, 2293, 18, 2740, 18, 542, 1864, 2932, 1350, 17, 723, 3113, 315, 955, 19, 11242, 7923, 225, 327, 3536, 12, 915, 4372, 13, 288, 27488, 915, 1435, 288, 271, 2668, 18, 6079, 5249, 12148, 16063, 13798, 12, 915, 1435, 288, 569, 642, 273, 8975, 1425, 13, 87, 31, 309, 9253, 12, 2211, 2934, 291, 2668, 18, 1154, 2840, 26112, 288, 642, 18, 8057, 18, 24350, 273, 446, 31, 289, 569, 7447, 273, 27488, 2211, 2934, 291, 2668, 18, 11509, 8284, 309, 261, 11509, 13, 2 ]
def join(a, b): if isabs(b): return b if a == '' or a[-1:] in '/\\': return a + b return a + os.sep + b
def join(a, *p): path = a for b in p: if isabs(b): path = b elif path == '' or path[-1:] in '/\\': path = path + b else: path = path + os.sep + b return path
def isabs(s): s = splitdrive(s)[1] return s != '' and s[:1] in '/\\'
0f0b31022413145aa92ee61b6ae46482b4e1c46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0f0b31022413145aa92ee61b6ae46482b4e1c46b/dospath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31567, 12, 87, 4672, 272, 273, 1416, 25431, 12, 87, 25146, 21, 65, 327, 272, 480, 875, 471, 272, 10531, 21, 65, 316, 1173, 10471, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31567, 12, 87, 4672, 272, 273, 1416, 25431, 12, 87, 25146, 21, 65, 327, 272, 480, 875, 471, 272, 10531, 21, 65, 316, 1173, 10471, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif n == 2:
elif number == 2:
def circle_card(self, n, style, stroke, fill): svg_string = "" if n == 1: svg_string += self._svg_donut(45.5, style, stroke, fill) elif n == 2: svg_string += self._svg_donut(25.5, style, stroke, fill) svg_string += self._svg_donut(65.5, style, stroke, fill) else: svg_string += self._svg_donut( 5.5, style, stroke, fill) svg_string += self._svg_donut(45.5, style, stroke, fill) svg_string += self._svg_donut(85.5, style, stroke, fill) return svg_string
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12470, 67, 3327, 12, 2890, 16, 290, 16, 2154, 16, 11040, 16, 3636, 4672, 9804, 67, 1080, 273, 1408, 309, 290, 422, 404, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 7950, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 1327, 1300, 422, 576, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 2947, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 9222, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 469, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 1381, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 7950, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 7140, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 327, 9804, 67, 1080, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12470, 67, 3327, 12, 2890, 16, 290, 16, 2154, 16, 11040, 16, 3636, 4672, 9804, 67, 1080, 273, 1408, 309, 290, 422, 404, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 7950, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 1327, 1300, 422, 576, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 2947, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 9222, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 469, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, 1381, 18, 25, 16, 2154, 16, 11040, 16, 3636, 13, 9804, 67, 1080, 2 ]
N = int(G.level()) SQN = int(sqrt(N)) v = { 1: [1] } for d in [x for x in divisors(N) if x > 1 and x <= SQN]:
N = G.level() v = { 1: [1] , N: H } for d in [x for x in divisors(N) if x > 1 and x < N ]:
def _coset_reduction_data_second_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5/congroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 8538, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 62, 13, 26109, 611, 18, 225, 1220, 445, 857, 74, 6478, 1135, 501, 3577, 364, 326, 1122, 1087, 434, 326, 20176, 2235, 261, 5787, 1122, 7799, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 8538, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 62, 13, 26109, 611, 18, 225, 1220, 445, 857, 74, 6478, 1135, 501, 3577, 364, 326, 1122, 1087, 434, 326, 20176, 2235, 261, 5787, 1122, 7799, 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 ]
raise TableDBError, dberror[1]
raise TableDBError, dberror.args[1]
def Delete(self, table, conditions={}): """Delete(table, conditions) - Delete items matching the given conditions from the table.
d84da1b67a12df114de2f76e0644174f07f2c834 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/d84da1b67a12df114de2f76e0644174f07f2c834/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 12, 2890, 16, 1014, 16, 4636, 12938, 4672, 3536, 2613, 12, 2121, 16, 4636, 13, 300, 2504, 1516, 3607, 326, 864, 4636, 628, 326, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return True
return True
def hasEvaluation(self, student, activity): """See interfaces.IGradebook""" student = self._checkStudent(student) activity = self._checkActivity(activity) if activity in requirement.interfaces.IEvaluations(student): return True return False
5fb5e9b9b993944018b200879c2f4defdcd38273 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5fb5e9b9b993944018b200879c2f4defdcd38273/gradebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 13468, 12, 2890, 16, 18110, 16, 5728, 4672, 3536, 9704, 7349, 18, 3047, 354, 323, 3618, 8395, 18110, 273, 365, 6315, 1893, 19943, 319, 12, 26240, 13, 5728, 273, 365, 6315, 1893, 6193, 12, 9653, 13, 309, 5728, 316, 12405, 18, 15898, 18, 45, 6644, 1012, 12, 26240, 4672, 327, 1053, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 18110, 16, 5728, 4672, 3536, 9704, 7349, 18, 3047, 354, 323, 3618, 8395, 18110, 273, 365, 6315, 1893, 19943, 319, 12, 26240, 13, 5728, 273, 365, 6315, 1893, 6193, 12, 9653, 13, 309, 5728, 316, 12405, 18, 15898, 18, 45, 6644, 1012, 12, 26240, 4672, 327, 1053, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return SMTPProtcolError(code, resp, str(self.log))
return SMTPProtocolError(code, resp, str(self.log))
def smtpTransferFailed(self, code, resp): if code < 0: # protocol error return SMTPProtcolError(code, resp, str(self.log)) return self.smtpState_msgSent(code, resp)
8dc1bca02ccb5a35ef89e1b4422d67a7c2a7809d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8dc1bca02ccb5a35ef89e1b4422d67a7c2a7809d/smtp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17660, 5912, 2925, 12, 2890, 16, 981, 16, 1718, 4672, 309, 981, 411, 374, 30, 468, 1771, 555, 327, 18102, 5752, 668, 12, 710, 16, 1718, 16, 609, 12, 2890, 18, 1330, 3719, 327, 365, 18, 20278, 1119, 67, 3576, 7828, 12, 710, 16, 1718, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17660, 5912, 2925, 12, 2890, 16, 981, 16, 1718, 4672, 309, 981, 411, 374, 30, 468, 1771, 555, 327, 18102, 5752, 668, 12, 710, 16, 1718, 16, 609, 12, 2890, 18, 1330, 3719, 327, 365, 18, 20278, 1119, 67, 3576, 7828, 12, 710, 16, 1718, 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 ]
def reportDeadPort(self): port = self.state.udp_port self.showLoginStatus("*** UDP PORT FORWARD REQUIRED ***") text = ( "In order for Dtella to communicate properly, it needs to " "receive UDP traffic from the Internet. Dtella is currently " "listening on UDP port %d, but the packets appear to be " "getting blocked, most likely by a firewall or a router. " "If this is the case, then you will have to configure your " "firewall or router to allow UDP traffic through on this port. " "You may tell Dtella to use a different port from now on by " "typing !UDP followed by a number." % self.state.udp_port ) for line in word_wrap(text): self.showLoginStatus(line)
def logPacket(self, text): raise NotImplemented("Override me!")
8d980de00f93c12efa85a999af305b3ee34268d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/8d980de00f93c12efa85a999af305b3ee34268d5/dtella_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 6667, 12, 2890, 16, 977, 4672, 1002, 10051, 2932, 6618, 1791, 4442, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 6667, 12, 2890, 16, 977, 4672, 1002, 10051, 2932, 6618, 1791, 4442, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def close_all (map=None):
def close_all(map=None):
def close_all (map=None): if map is None: map=socket_map for x in map.values(): x.socket.close() map.clear()
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, 1746, 67, 454, 12, 1458, 33, 7036, 4672, 309, 852, 353, 599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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 67, 454, 12, 1458, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 364, 619, 316, 852, 18, 2372, 13332, 619, 18, 7814, 18, 4412, 1435, 852, 18, 8507, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'collective.singing>=0.6.2',
'collective.singing>=0.6.3',
def read(*pathnames): return open(os.path.join(os.path.dirname(__file__), *pathnames)).read()
bdc0681aa5813c01dd0518625dfb0b75ea186861 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9843/bdc0681aa5813c01dd0518625dfb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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 803, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 803, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import tempfile module = _normalize_module(module) testsrc = testsource(module, name)
def debug(module, name): """Debug a single docstring containing doctests. Provide the module (or dotted name of the module) containing the docstring to be debugged, and the name (within the module) of the object with the docstring to be debugged. The doctest examples are extracted (see function testsource()), and written to a temp file. The Python debugger (pdb) is then invoked on that file. """ import os import pdb import tempfile module = _normalize_module(module) testsrc = testsource(module, name) srcfilename = tempfile.mktemp("doctestdebug.py") f = file(srcfilename, 'w') f.write(testsrc) f.close() globs = {} globs.update(module.__dict__) try: # Note that %r is vital here. '%s' instead can, e.g., cause # backslashes to get treated as metacharacters on Windows. pdb.run("execfile(%r)" % srcfilename, globs, globs) finally: os.remove(srcfilename)
a643b658a7cd1d820fd561665402705f0f76b1d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a643b658a7cd1d820fd561665402705f0f76b1d0/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 2978, 16, 508, 4672, 3536, 2829, 279, 2202, 14525, 4191, 31263, 25563, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 14525, 358, 506, 1198, 2423, 16, 471, 326, 508, 261, 25850, 326, 1605, 13, 434, 326, 733, 598, 326, 14525, 358, 506, 1198, 2423, 18, 225, 1021, 31263, 395, 10991, 854, 9438, 261, 5946, 445, 1842, 3168, 1435, 3631, 471, 5941, 358, 279, 1906, 585, 18, 225, 1021, 6600, 19977, 261, 17414, 13, 353, 1508, 8187, 603, 716, 585, 18, 3536, 225, 1930, 1140, 1930, 10892, 225, 1705, 3459, 273, 13275, 18, 24816, 5814, 2932, 2896, 299, 395, 4148, 18, 2074, 7923, 284, 273, 585, 12, 4816, 3459, 16, 296, 91, 6134, 284, 18, 2626, 12, 3813, 4816, 13, 284, 18, 4412, 1435, 225, 4715, 87, 273, 2618, 4715, 87, 18, 2725, 12, 2978, 16186, 1576, 972, 13, 775, 30, 468, 3609, 716, 738, 86, 353, 331, 7053, 2674, 18, 225, 1995, 87, 11, 3560, 848, 16, 425, 18, 75, 12990, 4620, 468, 1473, 13675, 358, 336, 13974, 487, 5100, 497, 297, 9202, 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, 2978, 16, 508, 4672, 3536, 2829, 279, 2202, 14525, 4191, 31263, 25563, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 14525, 358, 506, 1198, 2423, 16, 471, 326, 508, 261, 25850, 326, 1605, 13, 434, 326, 733, 598, 326, 14525, 358, 506, 1198, 2423, 18, 225, 1021, 31263, 395, 10991, 854, 9438, 261, 5946, 445, 1842, 3168, 1435, 3631, 471, 5941, 358, 279, 1906, 585, 18, 225, 1021, 6600, 19977, 261, 17414, 13, 353, 1508, 8187, 603, 716, 585, 18, 3536, 225, 1930, 1140, 1930, 10892, 225, 1705, 3459, 273, 13275, 18, 24816, 5814, 2932, 2896, 299, 395, 4148, 18, 2074, 7923, 284, 273, 585, 12, 4816, 3459, 16, 2 ]
if jobKeySet.intersection(triggerNameSet) == set(['clean-files']): self.runClean() return
jobTriggers = jobKeySet.intersection(triggersSet) simpleTriggers = jobTriggers.intersection(triggersSimpleSet) classdepTriggers = jobTriggers.intersection(triggersClassDepSet) compileTriggers = jobTriggers.intersection(triggersCompileSet) self._actionLib = ActionLib(self._config, self._console) if simpleTriggers: for trigger in simpleTriggers: apply(triggersSet[trigger]['action'],(self,)) jobTriggers = jobTriggers.difference(simpleTriggers) if not jobTriggers: return
def run(self): config = self._job job = self._job require = config.get("require", {}) use = config.get("use", {})
0407b21baef8f72316472f8f521314b6b5ee7f36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/0407b21baef8f72316472f8f521314b6b5ee7f36/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 2618, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 2618, 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 ]
except exception, e: if isinstance(e, OSError) and e.errno in (13, 16):
except OSError, e: if e.errno not in (13, 16, 32):
def remove_recursively(path): import time # windows sometimes raises exceptions instead of removing files if os.name == 'nt' or sys.platform == 'cygwin': exception = OSError if os.name == 'nt': exception = WindowsError for i in range(12): try: _remove_recursively(path) except exception, e: if isinstance(e, OSError) and e.errno in (13, 16): raise time.sleep(0.3) else: break else: _remove_recursively(path)
b2f15f653fd70fe33fa0117c7720d5e1f330c76d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/b2f15f653fd70fe33fa0117c7720d5e1f330c76d/testutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 266, 6235, 12, 803, 4672, 1930, 813, 468, 9965, 16594, 14183, 4798, 3560, 434, 9427, 1390, 309, 1140, 18, 529, 422, 296, 496, 11, 578, 2589, 18, 9898, 422, 296, 2431, 75, 8082, 4278, 1520, 273, 10002, 309, 1140, 18, 529, 422, 296, 496, 4278, 1520, 273, 8202, 668, 364, 277, 316, 1048, 12, 2138, 4672, 775, 30, 389, 4479, 67, 266, 6235, 12, 803, 13, 1335, 10002, 16, 425, 30, 309, 425, 18, 19088, 486, 316, 261, 3437, 16, 2872, 16, 3847, 4672, 1002, 813, 18, 19607, 12, 20, 18, 23, 13, 469, 30, 898, 469, 30, 389, 4479, 67, 266, 6235, 12, 803, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 266, 6235, 12, 803, 4672, 1930, 813, 468, 9965, 16594, 14183, 4798, 3560, 434, 9427, 1390, 309, 1140, 18, 529, 422, 296, 496, 11, 578, 2589, 18, 9898, 422, 296, 2431, 75, 8082, 4278, 1520, 273, 10002, 309, 1140, 18, 529, 422, 296, 496, 4278, 1520, 273, 8202, 668, 364, 277, 316, 1048, 12, 2138, 4672, 775, 30, 389, 4479, 67, 266, 6235, 12, 803, 13, 1335, 10002, 16, 425, 30, 309, 425, 18, 19088, 486, 316, 261, 3437, 16, 2872, 16, 3847, 4672, 1002, 813, 18, 19607, 12, 20, 18, 23, 13, 469, 30, 898, 469, 30, 389, 4479, 67, 266, 6235, 12, 803, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if subtype:
if subtype and subtype is not self:
def in_stock(self): subtype = self.get_subtype_with_attr('in_stock') if subtype: return subtype.in_stock
2ab2c637bd178f046734eb337ca425e7482591dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/2ab2c637bd178f046734eb337ca425e7482591dc/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 67, 15381, 12, 2890, 4672, 12308, 273, 365, 18, 588, 67, 21974, 67, 1918, 67, 1747, 2668, 267, 67, 15381, 6134, 309, 12308, 471, 12308, 353, 486, 365, 30, 327, 12308, 18, 267, 67, 15381, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 67, 15381, 12, 2890, 4672, 12308, 273, 365, 18, 588, 67, 21974, 67, 1918, 67, 1747, 2668, 267, 67, 15381, 6134, 309, 12308, 471, 12308, 353, 486, 365, 30, 327, 12308, 18, 267, 67, 15381, 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 ]
sage: n = 100000000 + randint(0,100000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 100000000 + randint(0,100000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
sage: n = 1000000000 + randint(0,1000000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
def number_of_partitions(n,k=None, algorithm='default'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'default') 'default' -- if k is given use Gap. Otherwise, on x86 when n > 3000, use 'bober' On non x86 use 'pari'. 'bober' -- use Jonathon Bober's implementation 'gap' -- use GAP (VERY *slow*) 'pari' -- use PARI. Speed seems the same as GAP until $n$ is in the thousands, in which case PARI is faster. *But* PARI has a bug, e.g., on 64-bit Linux PARI-2.3.2 outputs numbpart(147007)%1000 as 536, but it should be 533!. So do not use this option. IMPLEMENTATION: Wraps GAP's NrPartitions or PARI's numbpart function. Use the function \code{partitions(n)} to return a generator over all partitions of $n$. It is possible to associate with every partition of the integer n a conjugacy class of permutations in the symmetric group on n points and vice versa. Therefore p(n) = NrPartitions(n) is the number of conjugacy classes of the symmetric group on n points. EXAMPLES: sage: v = list(partitions(5)); v [(1, 1, 1, 1, 1), (1, 1, 1, 2), (1, 2, 2), (1, 1, 3), (2, 3), (1, 4), (5,)] sage: len(v) 7 sage: number_of_partitions(5, algorithm='gap') 7 sage: number_of_partitions(5, algorithm='pari') 7 sage: number_of_partitions(5, algorithm='bober') 7 The input must be a nonnegative integer or a ValueError is raised. sage: number_of_partitions(-5) Traceback (most recent call last): ... ValueError: n (=-5) must be a nonnegative integer sage: number_of_partitions(10,2) 5 sage: number_of_partitions(10) 42 sage: number_of_partitions(3) 3 sage: number_of_partitions(10) 42 sage: number_of_partitions(3, algorithm='pari') 3 sage: number_of_partitions(10, algorithm='pari') 42 sage: number_of_partitions(40) 37338 sage: number_of_partitions(100) 190569292 sage: number_of_partitions(100000) 27493510569775696512677516320986352688173429315980054758203125984302147328114964173055050741660736621590157844774296248940493063070200461792764493033510116079342457190155718943509725312466108452006369558934464248716828789832182345009262853831404597021307130674510624419227311238999702284408609370935531629697851569569892196108480158600569421098519 A generating function for p(n) is given by the reciprocal of Euler's function: \[ \sum_{n=0}^\infty p(n)x^n = \prod_{k=1}^\infty \left(\frac {1}{1-x^k} \right). \] We use SAGE to verify that the first several coefficients do instead agree: sage: q = PowerSeriesRing(QQ, 'q', default_prec=9).gen() sage: prod([(1-q^k)^(-1) for k in range(1,9)]) ## partial product of 1 + q + 2*q^2 + 3*q^3 + 5*q^4 + 7*q^5 + 11*q^6 + 15*q^7 + 22*q^8 + O(q^9) sage: [number_of_partitions(k) for k in range(2,10)] [2, 3, 5, 7, 11, 15, 22, 30] REFERENCES: http://en.wikipedia.org/wiki/Partition_%28number_theory%29 TESTS: sage: n = 500 + randint(0,500) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1500 + randint(0,1500) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1000000 + randint(0,1000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1000000 + randint(0,1000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1000000 + randint(0,1000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1000000 + randint(0,1000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1000000 + randint(0,1000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 1000000 + randint(0,1000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 100000000 + randint(0,100000000) # takes a long time sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 100000000 + randint(0,100000000) # takes a long time sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 100000000 + randint(0,100000000) # takes a long time sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True Another consistency test for n up to 500: sage: len([n for n in [1..500] if number_of_partitions(n) != number_of_partitions(n,algorithm='pari')]) 0 """ n = ZZ(n) if n < 0: raise ValueError, "n (=%s) must be a nonnegative integer"%n elif n == 0: return ZZ(1) global first_warning PROCESSOR = os.uname()[-1] bober_is_good = 'x86' in PROCESSOR if k is not None: algorithm = 'gap' elif algorithm == 'default': if bober_is_good: algorithm = 'bober' elif PROCESSOR in ['x86', 'Power Macintosh']: algorithm = 'pari' else: algorithm = 'gap' if algorithm == 'gap': if k is None: ans=gap.eval("NrPartitions(%s)"%(ZZ(n))) else: ans=gap.eval("NrPartitions(%s,%s)"%(ZZ(n),ZZ(k))) return ZZ(ans) if k is not None: raise ValueError, "only the GAP algorithm works if k is specified." if algorithm == 'bober': if not bober_is_good: if first_warning: print "*WARNING*: bober's implementation is broken on this platform or this size of n." first_warning=False return partitions_ext.number_of_partitions(n) elif algorithm == 'pari': if n > 3000 and 'x86_64' in PROCESSOR: if first_warning: print "*WARNING*: Pari's numbpart is very buggy on x86_64 (fixed in svn, so don't report to pari-dev)" first_warning = False return ZZ(pari(ZZ(n)).numbpart()) raise ValueError, "unknown algorithm '%s'"%algorithm
32b7e3e34ee2ff937faae0230b8ebf39b731bf5b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/32b7e3e34ee2ff937faae0230b8ebf39b731bf5b/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, 392, 3571, 417, 1493, 261, 1886, 30, 599, 1769, 309, 1269, 16, 3560, 1135, 326, 14379, 434, 326, 444, 434, 777, 261, 318, 9885, 13, 10060, 434, 326, 6895, 3571, 290, 1368, 26608, 598, 417, 2142, 889, 87, 18, 4886, 1493, 261, 1886, 30, 296, 1886, 6134, 296, 1886, 11, 1493, 309, 417, 353, 864, 999, 611, 438, 18, 5272, 16, 603, 619, 5292, 1347, 290, 405, 29839, 16, 999, 296, 1075, 744, 11, 2755, 1661, 619, 5292, 999, 296, 1065, 77, 10332, 296, 1075, 744, 11, 1493, 999, 804, 265, 29900, 17980, 744, 1807, 4471, 296, 14048, 11, 1493, 999, 611, 2203, 261, 17529, 380, 87, 821, 12437, 296, 1065, 77, 11, 1493, 999, 3939, 45, 18, 225, 348, 5868, 12001, 326, 1967, 487, 611, 2203, 3180, 271, 82, 8, 353, 316, 326, 286, 24810, 16, 316, 1492, 648, 3939, 45, 353, 12063, 18, 380, 31167, 14, 3939, 45, 711, 279, 7934, 16, 425, 18, 75, 12990, 603, 5178, 17, 3682, 13318, 3939, 45, 17, 22, 18, 23, 18, 22, 6729, 818, 70, 2680, 12, 3461, 26874, 27, 13, 9, 18088, 487, 1381, 5718, 16, 1496, 518, 1410, 506, 1381, 3707, 5, 18, 225, 6155, 741, 486, 999, 333, 1456, 18, 225, 15694, 7618, 2689, 30, 678, 7506, 611, 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, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, 392, 3571, 417, 1493, 261, 1886, 30, 599, 1769, 309, 1269, 16, 3560, 1135, 326, 14379, 434, 326, 444, 434, 777, 261, 318, 9885, 13, 10060, 434, 326, 6895, 3571, 290, 1368, 26608, 598, 417, 2142, 889, 87, 18, 4886, 1493, 261, 1886, 30, 296, 1886, 6134, 296, 1886, 11, 1493, 309, 417, 353, 864, 999, 611, 438, 18, 5272, 16, 603, 619, 5292, 1347, 290, 405, 29839, 16, 999, 296, 1075, 744, 11, 2755, 1661, 619, 5292, 999, 296, 1065, 77, 2 ]
self._out.write('<' + name)
self._write('<' + name)
def startElementNS(self, name, qname, attrs): if name[0] is None: # if the name was not namespace-scoped, use the unqualified part name = name[1] else: # else try to restore the original prefix from the namespace name = self._current_context[name[0]] + ":" + name[1] self._out.write('<' + name)
7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 3156, 12, 2890, 16, 508, 16, 12621, 16, 3422, 4672, 309, 508, 63, 20, 65, 353, 599, 30, 468, 309, 326, 508, 1703, 486, 1981, 17, 27474, 16, 999, 326, 640, 19724, 1087, 508, 273, 508, 63, 21, 65, 469, 30, 468, 469, 775, 358, 5217, 326, 2282, 1633, 628, 326, 1981, 508, 273, 365, 6315, 2972, 67, 2472, 63, 529, 63, 20, 13563, 397, 6153, 397, 508, 63, 21, 65, 365, 6315, 659, 18, 2626, 2668, 32, 11, 397, 508, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 3156, 12, 2890, 16, 508, 16, 12621, 16, 3422, 4672, 309, 508, 63, 20, 65, 353, 599, 30, 468, 309, 326, 508, 1703, 486, 1981, 17, 27474, 16, 999, 326, 640, 19724, 1087, 508, 273, 508, 63, 21, 65, 469, 30, 468, 469, 775, 358, 5217, 326, 2282, 1633, 628, 326, 1981, 508, 273, 365, 6315, 2972, 67, 2472, 63, 529, 63, 20, 13563, 397, 6153, 397, 508, 63, 21, 65, 365, 6315, 659, 18, 2626, 2668, 32, 11, 397, 508, 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 ]
if child.type != "keyvalue":
if keyvalueItem.type != "keyvalue":
def handleClassDefinition(docTree, item, variant): params = item.getChild("params") className = params.children[0].get("value") if len(params.children) > 1: classMap = params.children[1] else: classMap = {} commentAttributes = comment.parseNode(item) classNode = getClassNode(docTree, className, commentAttributes) if variant in ["class", "clazz"]: classNode.set("type", "class") type = selectNode(params, "2/keyvalue[@key='type']/value/constant/@value") if type == "singleton": classNode.set("isSingleton", True) elif type == "abstract": classNode.set("isAbstract", True) else: classNode.set("type", variant) handleDeprecated(classNode, commentAttributes) handleAccess(classNode, commentAttributes) handleAppearance(item, classNode, className, commentAttributes) try: children = classMap.children except AttributeError: return for keyvalueItem in children: if child.type != "keyvalue": continue key = keyvalueItem.get("key") valueItem = keyvalueItem.getChild("value").getFirstChild() # print "KEY: %s = %s" % (key, valueItem.type) if key == "extend": if variant in ["class", "clazz"]: handleClassExtend(valueItem, classNode, docTree, className) elif variant == "interface": handleInterfaceExtend(valueItem, classNode, docTree, className) elif key == "include": handleMixins(valueItem, classNode, docTree, className) elif key == "implement": handleInterfaces(valueItem, classNode, docTree) elif key == "construct": handleConstructor(valueItem, classNode) elif key == "statics": handleStatics(valueItem, classNode) elif key == "properties": handleProperties(valueItem, classNode) elif key == "members": handleMembers(valueItem, classNode) elif key == "events": handleEvents(valueItem, classNode) handleSingleton(classNode, docTree)
fa8360dbf3adbeda71ac321c1a91df380d0dc3f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/fa8360dbf3adbeda71ac321c1a91df380d0dc3f0/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 797, 1852, 12, 2434, 2471, 16, 761, 16, 5437, 4672, 859, 273, 761, 18, 588, 1763, 2932, 2010, 7923, 2658, 273, 859, 18, 5906, 63, 20, 8009, 588, 2932, 1132, 7923, 225, 309, 562, 12, 2010, 18, 5906, 13, 405, 404, 30, 29835, 273, 859, 18, 5906, 63, 21, 65, 469, 30, 29835, 273, 2618, 225, 2879, 2498, 273, 2879, 18, 2670, 907, 12, 1726, 13, 225, 25822, 273, 2900, 907, 12, 2434, 2471, 16, 2658, 16, 2879, 2498, 13, 309, 5437, 316, 8247, 1106, 3113, 315, 830, 3638, 11929, 30, 25822, 18, 542, 2932, 723, 3113, 315, 1106, 7923, 618, 273, 2027, 907, 12, 2010, 16, 315, 22, 19, 856, 1132, 14782, 856, 2218, 723, 3546, 19, 1132, 19, 14384, 19, 36, 1132, 7923, 309, 618, 422, 315, 24487, 6877, 25822, 18, 542, 2932, 291, 19571, 3113, 1053, 13, 1327, 618, 422, 315, 17801, 6877, 25822, 18, 542, 2932, 291, 7469, 3113, 1053, 13, 225, 469, 30, 25822, 18, 542, 2932, 723, 3113, 5437, 13, 225, 1640, 13534, 12, 1106, 907, 16, 2879, 2498, 13, 1640, 1862, 12, 1106, 907, 16, 2879, 2498, 13, 1640, 1294, 27668, 12, 1726, 16, 25822, 16, 2658, 16, 2879, 2498, 13, 225, 775, 30, 2325, 273, 29835, 18, 5906, 1335, 6394, 30, 327, 225, 364, 498, 1132, 1180, 316, 2325, 30, 225, 309, 498, 1132, 1180, 18, 723, 480, 315, 856, 1132, 6877, 1324, 225, 498, 273, 498, 1132, 1180, 18, 588, 2932, 856, 7923, 460, 1180, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 797, 1852, 12, 2434, 2471, 16, 761, 16, 5437, 4672, 859, 273, 761, 18, 588, 1763, 2932, 2010, 7923, 2658, 273, 859, 18, 5906, 63, 20, 8009, 588, 2932, 1132, 7923, 225, 309, 562, 12, 2010, 18, 5906, 13, 405, 404, 30, 29835, 273, 859, 18, 5906, 63, 21, 65, 469, 30, 29835, 273, 2618, 225, 2879, 2498, 273, 2879, 18, 2670, 907, 12, 1726, 13, 225, 25822, 273, 2900, 907, 12, 2434, 2471, 16, 2658, 16, 2879, 2498, 13, 309, 5437, 316, 8247, 1106, 3113, 315, 830, 3638, 11929, 30, 25822, 18, 542, 2932, 723, 3113, 315, 1106, 7923, 618, 273, 2027, 907, 12, 2010, 16, 315, 22, 19, 856, 1132, 14782, 856, 2218, 723, 3546, 2 ]
self.debug_trace("Tag_ubyte_xy")
def Tag_ubyte_xy(self): self.debug_trace("Tag_ubyte_xy") if ( self.getTag( 'ubyte_xy' ) ): self.pack('B', self.next_num(), self.next_num()) return 1 return 0
ecf78c969222f7513a2f516b0355728295fb546a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/ecf78c969222f7513a2f516b0355728295fb546a/pxlasm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 10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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 10340, 736, 67, 1698, 12, 2890, 4672, 309, 261, 365, 18, 588, 1805, 12, 296, 10340, 736, 67, 1698, 11, 262, 262, 30, 365, 18, 2920, 2668, 38, 2187, 365, 18, 4285, 67, 2107, 9334, 365, 18, 4285, 67, 2107, 10756, 327, 404, 327, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
myFile = downloadPDF(caseLink, caseName)
myFile = downloadPDF(caseLink)
def scrapeCourt(courtID, result): if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shall. """ url = "http://www.ca1.uscourts.gov/opinions/opinionrss.php" ct = Court.objects.get(courtUUID='ca1') req = urllib2.urlopen(url) tree = etree.parse(req) caseLinks = tree.xpath("//item/link") descriptions = tree.xpath("//item/description") docTypes = tree.xpath("//item/category") caseNamesAndNumbers = tree.xpath("//item/title") caseDateRegex = re.compile("(\d{2}/\d{2}/\d{4})", re.VERBOSE | re.DOTALL) caseNumberRegex = re.compile("(\d{2}-.*?\W)(.*)$") i = 0 while i < len(caseLinks): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = caseLinks[i].text caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # next: docType docType = docTypes[i].text.strip() if "unpublished" in docType.lower(): doc.documentType = "U" elif "published" in docType.lower(): doc.documentType = "P" else: # it's an errata, or something else we don't care about i += 1 continue # next: caseDate caseDate = caseDateRegex.search(descriptions[i].text).group(1) splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[2]), int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # next: caseNumber caseNumber = caseNumberRegex.search(caseNamesAndNumbers[i].text)\ .group(1) # next: caseNameShort caseNameShort = caseNumberRegex.search(caseNamesAndNumbers[i].text)\ .group(2) # check for dups, make the object if necessary, otherwise, get it cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 2): """ queries can be made on their system via HTTP POST. """ # second circuit url = "http://www.ca2.uscourts.gov/decisions" ct = Court.objects.get(courtUUID='ca2') today = datetime.date.today() formattedToday = str(today.year) + str(today.month) + str(today.day) data = "IW_DATABASE=OPN&IW_FIELD_TEXT=*&IW_FILTER_DATE_AFTER=" +\ formattedToday + "&IW_FILTER_DATE_BEFORE=&IW_BATCHSIZE=20&" +\ "IW_SORT=-DATE" req = urllib2.Request(url, data) response = urllib2.urlopen(req) html = response.read() soup = BeautifulSoup(html) aTagsRegex = re.compile('(.*?.pdf).*?', re.IGNORECASE) aTags = soup.findAll(attrs={'href' : aTagsRegex}) caseNumRegex = re.compile('.*/(.*?)_(.*?).pdf') i = 0 while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = aTags[i].get('href') caseLink = aTagsRegex.search(caseLink).group(1) caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caseLink, we can get the caseNumber and documentType caseNum = caseNumRegex.search(caseLink).group(1) # and the docType documentType = caseNumRegex.search(caseLink).group(2) if 'opn' in documentType: # it's unpublished doc.documentType = "P" elif 'so' in documentType: doc.documentType = "U" # next, the caseNameShort (there's probably a better way to do this. caseName = aTags[i].parent.parent.nextSibling.nextSibling\ .nextSibling.nextSibling.contents[0].strip().strip('nbsp;') # next, we can do the caseDate caseDate = aTags[i].parent.parent.nextSibling.nextSibling\ .nextSibling.nextSibling.nextSibling.nextSibling.contents[0]\ .strip().strip('nbsp;') # some caseDate cleanup splitDate = caseDate.split('-') caseDate = datetime.date(int(splitDate[2]),int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # check for duplicates, make the object in their absence cite, created = hasDuplicate(caseNum, caseName) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink, caseName) doc.local_path.save(caseName + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash doc.citation = cite # finalize everything doc.save() # next i += 1 return result elif (courtID == 3): """ This URL provides the latest 25 cases, so I need to pick out the new ones and only get those. I can do this efficiently by trying to do each, and then giving up once I hit one that I've done before. This will work because they are in reverse chronological order. """ url = "http://www.ca3.uscourts.gov/recentop/week/recprec.htm" ct = Court.objects.get(courtUUID='ca3') html = urllib2.urlopen(url) soup = BeautifulSoup(html) # all links ending in pdf, case insensitive regex = re.compile("pdf$", re.IGNORECASE) aTags = soup.findAll(attrs={"href": regex}) # we will use these vars in our while loop, better not to compile them # each time regexII = re.compile('\d{2}/\d{2}/\d{2}') regexIII = re.compile('\d{2}-\d{4}') i = 0 while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # caseLink and caseNameShort caseLink = aTags[i].get('href') caseNameShort = aTags[i].contents[0].strip().strip('&npsp;') # caseDate and caseNumber junk = aTags[i].previous.previous.previous try: # this error seems to happen upon dups...not sure why yet caseDate = regexII.search(junk).group(0) caseNumber = regexIII.search(junk).group(0) except: i = i+1 continue # all are precedential doc.documentType = "P" # next, we check for a dup. If there is one, we can break from the # loop, since this court posts in alphabetical order. cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" break doc.citation = cite # next up is the caseDate splitDate = caseDate.split('/') caseDate = datetime.date(int("20" + splitDate[2]),int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # the download URL for the PDF caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # save the file to the db and hard drive myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 4): """The fourth circuit is THE worst form of HTML I've ever seen. It's going to break a lot, but I've done my best to clean it up, and make it reliable.""" url = "http://pacer.ca4.uscourts.gov/opinions_today.htm" ct = Court.objects.get(courtUUID='ca4') html = urllib2.urlopen(url).read() # sadly, beautifulsoup chokes on the lines lines of this file because # the HTML is so bad. Stop laughing - the HTML IS awful, but it's not # funny. Anyway, to make this thing work, we must pull out the target # attributes. And so we do. regex = re.compile("target.*>", re.IGNORECASE) html = re.sub(regex, ">", html) soup = BeautifulSoup(html) # all links ending in pdf, case insensitive regex = re.compile("pdf$", re.IGNORECASE) aTags = soup.findAll(attrs={"href": regex}) i = 0 regexII = re.compile('\d{2}/\d{2}/\d{4}') regexIII = re.compile('\d{4}(.*)') while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # next, we'll sort out the caseLink field, and save it caseLink = aTags[i].get('href') caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caselink, we can get the caseNumber and documentType fileName = caseLink.split('/')[-1] caseNumber, documentType = fileName.split('.')[0:2] # next, we do the caseDate and caseNameShort, so we can quit before # we get too far along. junk = aTags[i].contents[0].strip().strip('&nbsp;') try: # this error seems to happen upon dups...not sure why yet caseDate = regexII.search(junk).group(0).strip() caseNameShort = regexIII.search(junk).group(1).strip() except: i += 1 continue # some caseDate cleanup splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[2]),int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate doc.documentType = documentType # let's check for duplicates before we proceed cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we can save. doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 5): """Fifth circuit scraper. Similar process as to elsewhere, as you might expect at this point""" url = "http://www.ca5.uscourts.gov/Opinions.aspx" ct = Court.objects.get(courtUUID='ca5') html = urllib2.urlopen(url) soup = BeautifulSoup(html) #all links ending in pdf, case insensitive aTagRegex = re.compile("pdf$", re.IGNORECASE) aTags = soup.findAll(attrs={"href": aTagRegex}) opinionRegex = re.compile(r"\opinions.*pub") unpubRegex = re.compile(r"\opinions\unpub") i = 0 while i < len(aTags): # this page has PDFs that aren't cases, we must filter them out if opinionRegex.search(str(aTags[i])) == None: # it's not an opinion, increment and punt i += 1 continue # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = aTags[i].get('href') caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caseLink, we can get the caseNumber and documentType caseNumber = aTags[i].contents[0] if unpubRegex.search(str(aTags[i])) == None: # it's published, else it's unpublished documentType = "P" else: documentType = "U" doc.documentType = documentType # next, we do the caseDate caseDate = aTags[i].next.next.contents[0].contents[0] # some caseDate cleanup splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[2]),int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # next, we do the caseNameShort caseNameShort = aTags[i].next.next.next.next.next.contents[0]\ .contents[0].strip().strip('&nbsp;') # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() # next i += 1 return result elif (courtID == 6): """Results are available without an HTML POST, but those results lack a date field. Hence, we must do an HTML POST.""" url = "http://www.ca6.uscourts.gov/cgi-bin/opinions.pl" ct = Court.objects.get(courtUUID = 'ca6') today = datetime.date.today() formattedToday = str(today.month) + '/' + str(today.day) + '/' +\ str(today.year) postValues = { 'CASENUM' : '', 'TITLE' : '', 'FROMDATE' : formattedToday, 'TODATE' : formattedToday, 'OPINNUM' : '' } data = urllib.urlencode(postValues) req = urllib2.Request(url, data) response = urllib2.urlopen(req) html = response.read() soup = BeautifulSoup(html) aTagsRegex = re.compile('pdf$', re.IGNORECASE) aTags = soup.findAll(attrs={'href' : aTagsRegex}) i = 0 while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = aTags[i].get('href') caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caseLink, we can get the caseNumber and documentType caseNumber = aTags[i].contents[0] if 'n' in caseNumber: # it's unpublished documentType = "U" elif 'p' in caseNumber: documentType = "P" doc.documentType = documentType # next, we can do the caseDate caseDate = aTags[i].next.next.next.next.next.next.next.next\ .contents[0].strip().strip('&nbsp;') # some caseDate cleanup splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[0]),int(splitDate[1]), int(splitDate[2])) doc.dateFiled = caseDate # next, the caseNameShort (there's probably a better way to do this. caseNameShort = aTags[i].next.next.next.next.next.next.next.next\ .next.next.next.strip().strip('&nbsp;') # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() # next i += 1 return result elif (courtID == 7): """another court where we need to do a post. This will be a good starting place for getting the judge field, when we're ready for that""" url = "http://www.ca7.uscourts.gov/fdocs/docs.fwx" ct = Court.objects.get(courtUUID = 'ca7') data = "yr=&num=&Submit=Today&dtype=Opinion&scrid=Select+a+Case" req = urllib2.Request(url, data) response = urllib2.urlopen(req) html = response.read() soup = BeautifulSoup(html) aTagsRegex = re.compile('pdf$', re.IGNORECASE) aTags = soup.findAll(attrs={'href' : aTagsRegex}) i = 0 while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = aTags[i].get("href") caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caseLink, we can get the caseNumber and documentType caseNumber = aTags[i].previous.previous.previous.previous.previous\ .previous.previous.previous.previous.previous.strip() # next up: caseDate caseDate = aTags[i].previous.previous.previous.contents[0].strip() splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[2]), int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # next up: caseNameShort caseNameShort = aTags[i].previous.previous.previous.previous\ .previous.previous.previous.strip() # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 8): url = "http://www.ca8.uscourts.gov/cgi-bin/new/today2.pl" ct = Court.objects.get(courtUUID = 'ca8') html = urllib2.urlopen(url) soup = BeautifulSoup(html) aTagsRegex = re.compile('pdf$', re.IGNORECASE) aTags = soup.findAll(attrs={'href' : aTagsRegex}) caseNumRegex = re.compile('(\d{2})(\d{4})(u|p)', re.IGNORECASE) caseDateRegex = re.compile('(\d{2}/\d{2}/\d{4})(.*)(</b>)') i = 0 while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = aTags[i].get('href') caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caseLink, we can get the caseNumber and documentType junk = aTags[i].contents[0] caseNumber = caseNumRegex.search(junk).group(1) + "-" +\ caseNumRegex.search(junk).group(2) documentType = caseNumRegex.search(junk).group(3).upper() doc.documentType = documentType # caseDate is next on the block junk = str(aTags[i].next.next.next) caseDate = caseDateRegex.search(junk).group(1)\ .strip().strip('&nbsp;') caseNameShort = caseDateRegex.search(junk).group(2)\ .strip().strip('&nbsp;') # some caseDate cleanup splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[2]),int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 9): """This court, by virtue of having a javascript laden website, was very hard to parse properly. BeautifulSoup couldn't handle it at all, so lxml has to be used. lxml seems pretty useful, but it was a pain to learn.""" url = "http://www.ca9.uscourts.gov/opinions/?o_mode=view" +\ "&amp;o_sort_field=24&amp;o_sort_field_by=19&amp;o_sort_type=" +\ "asc&o_page_size=10" ct = Court.objects.get(courtUUID = 'ca9') req = urllib2.urlopen(url).read() tree = fromstring(req) caseLinks = tree.xpath('//table[3]/tbody/tr/td/a') caseNumbers = tree.xpath('//table[3]/tbody/tr/td[2]/label') caseDates = tree.xpath('//table[3]/tbody/tr/td[6]/label') i = 0 while i < len(caseLinks): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = caseLinks[i].get('href') caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # next, we'll do the caseNumber caseNumber = caseNumbers[i].text # next up: document type (static for now) doc.documentType = "P" # next up: caseDate splitDate = caseDates[i].text.split('/') caseDate = datetime.date(int(splitDate[2]), int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate #next up: caseNameShort caseNameShort = titlecase(caseLinks[i].text.lower()) # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 10): url = "http://www.ck10.uscourts.gov/opinions/new/daily_decisions.rss" ct = Court.objects.get(courtUUID = 'ca10') req = urllib2.urlopen(url) tree = etree.parse(req) caseLinks = tree.xpath("//item/link") descriptions = tree.xpath("//item/description") docTypes = tree.xpath("//item/category") caseNames = tree.xpath("//item/title") caseDateRegex = re.compile("(\d{2}/\d{2}/\d{4})", re.VERBOSE | re.DOTALL) caseNumberRegex = re.compile("(\d{2}-\d{4})(.*)$") i = 0 while i < len(caseLinks): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = caseLinks[i].text caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # next: docType docType = docTypes[i].text.strip() if "unpublished" in docType.lower(): doc.documentType = "U" elif "published" in docType.lower(): doc.documentType = "P" else: # it's an errata, or something else we don't care about i += 1 continue # next: caseDate caseDate = caseDateRegex.search(descriptions[i].text).group(1) splitDate = caseDate.split('/') caseDate = datetime.date(int(splitDate[2]), int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate # next: caseNumber caseNumber = caseNumberRegex.search(descriptions[i].text)\ .group(1) # next: caseNameShort caseNameShort = caseNames[i].text.strip().strip('&nbsp') # check for dups, make the object if necessary, otherwise, get it cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 11): """Trying out an RSS feed this time, since the feed looks good.""" url = "http://www.ca11.uscourts.gov/rss/pubopnsfeed.php" ct = Court.objects.get(courtUUID = 'ca11') req = urllib2.urlopen(url) tree = etree.parse(req) caseLinks = tree.xpath('//item/link') description = tree.xpath('//item/description') caseNames = tree.xpath('//item/title') # some regexes caseNumRegex = re.compile(''' case # the word case .*? # some junk, not greedy (\d{2}-\d{5}) # two digits a hyphen then five more ''', re.IGNORECASE | re.VERBOSE) caseDateRegex = re.compile(''' date # the word date .*? # some junk, not greedy (\d{2}-\d{2}-\d{4}) # two digits - two digits - four digits ''', re.IGNORECASE | re.VERBOSE) i = 0 while i < len(caseLinks): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = caseLinks[i].text caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # these are only published opinions doc.documentType = "P" # next, we'll do the caseNumber caseNumber = caseNumRegex.search(description[i].text).group(1) # next up: caseDate caseDate = caseDateRegex.search(description[i].text).group(1) splitDate = caseDate.split('-') caseDate = datetime.date(int(splitDate[2]), int(splitDate[0]), int(splitDate[1])) doc.dateFiled = caseDate #next up: caseNameShort caseNameShort = caseNames[i].text.strip().strip('&nbsp;') # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 12): url = "http://www.cadc.uscourts.gov/bin/opinions/allopinions.asp" ct = Court.objects.get(courtUUID = 'cadc') html = urllib2.urlopen(url) soup = BeautifulSoup(html) aTagsRegex = re.compile('pdf$', re.IGNORECASE) aTags = soup.findAll(attrs={'href' : aTagsRegex}) caseNumRegex = re.compile("(\d{2}-\d{4})") i = 0 while i < len(aTags): # these will hold our final document and citation doc = Document() doc.court = ct # we begin with the caseLink field caseLink = aTags[i].get('href') caseLink = make_url_absolute(url, caseLink) doc.download_URL = caseLink # using caseLink, we can get the caseNumber caseNumber = caseNumRegex.search(caseLink).group(1) # we can hard-code this b/c the D.C. Court paywalls all # unpublished opinions. doc.documentType = "P" # caseDate is next on the block caseDate = datetime.date.today() doc.dateFiled = caseDate caseNameShort = aTags[i].next.next.next.strip().strip('&nbsp;') # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i += 1 continue # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result elif (courtID == 13): url = "http://www.cafc.uscourts.gov/dailylog.html" ct = Court.objects.get(courtUUID = "cafc") html = urllib2.urlopen(url) soup = BeautifulSoup(html) aTagsRegex = re.compile('pdf$', re.IGNORECASE) trTags = soup.findAll('tr') i = 4 while i <= 20: # these will hold our final document and citation doc = Document() doc.court = ct try: caseLink = trTags[i].td.nextSibling.nextSibling.nextSibling\ .nextSibling.nextSibling.nextSibling.a.get('href').strip('.') caseLink = make_url_absolute(url, caseLink) if 'opinion' not in caseLink: # we have a non-case PDF. punt i += 1 continue except: # the above fails when things get funky, in that case, we punt i += 1 continue doc.download_URL = caseLink # next: caseNumber caseNumber = trTags[i].td.nextSibling.nextSibling.contents[0]\ .strip('.pdf') # next: dateFiled dateFiled = trTags[i].td.contents splitDate = dateFiled[0].split("/") dateFiled = datetime.date(int(splitDate[0]), int(splitDate[1]), int(splitDate[2])) doc.dateFiled = dateFiled # next: caseNameShort caseNameShort = trTags[i].td.nextSibling.nextSibling.nextSibling\ .nextSibling.nextSibling.nextSibling.a.contents[0] # next: documentType documentType = trTags[i].td.nextSibling.nextSibling.nextSibling\ .nextSibling.nextSibling.nextSibling.nextSibling.nextSibling\ .contents[0].contents[0] doc.documentType = documentType # now that we have the caseNumber and caseNameShort, we can dup check cite, created = hasDuplicate(caseNumber, caseNameShort) if not created: result += "duplicate found at: " + str(i) + "<br>" i =+ 1 break # if that goes well, we save to the DB doc.citation = cite # finally, we should download the PDF and save it locally. myFile = downloadPDF(caseLink) doc.local_path.save(caseNameShort + ".pdf", myFile) # and using the PDF we just downloaded, we can generate our sha1 hash data = doc.local_path.read() sha1Hash = hashlib.sha1(data).hexdigest() doc.documentSHA1 = sha1Hash # finalize everything doc.save() i += 1 return result
f2ff54a056836c405242045f15d611945cc1a262 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/f2ff54a056836c405242045f15d611945cc1a262/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 4672, 309, 261, 71, 477, 88, 734, 422, 404, 4672, 3536, 12667, 87, 854, 2319, 628, 326, 1122, 12937, 309, 1846, 1960, 358, 3675, 31481, 4746, 18, 6155, 1960, 358, 3675, 31481, 4746, 732, 24315, 18, 3536, 880, 273, 315, 2505, 2207, 5591, 18, 5353, 21, 18, 19446, 477, 3428, 18, 75, 1527, 19, 556, 267, 1115, 19, 556, 267, 285, 25151, 18, 2684, 6, 5691, 273, 385, 477, 88, 18, 6911, 18, 588, 12, 71, 477, 88, 5562, 2218, 5353, 21, 6134, 225, 1111, 273, 11527, 22, 18, 295, 18589, 12, 718, 13, 2151, 273, 12031, 18, 2670, 12, 3658, 13, 225, 648, 7100, 273, 2151, 18, 18644, 2932, 759, 1726, 19, 1232, 7923, 15550, 273, 2151, 18, 18644, 2932, 759, 1726, 19, 3384, 7923, 997, 2016, 273, 2151, 18, 18644, 2932, 759, 1726, 19, 4743, 7923, 648, 1557, 1876, 10072, 273, 2151, 18, 18644, 2932, 759, 1726, 19, 2649, 7923, 225, 648, 1626, 6628, 273, 283, 18, 11100, 2932, 4713, 72, 95, 22, 4004, 64, 72, 95, 22, 4004, 64, 72, 95, 24, 12646, 16, 283, 18, 21900, 571, 283, 18, 17591, 4685, 13, 648, 1854, 6628, 273, 283, 18, 11100, 2932, 4713, 72, 95, 22, 14023, 4509, 10936, 59, 13, 14361, 8, 7923, 282, 277, 273, 374, 1323, 277, 411, 562, 12, 3593, 7100, 4672, 468, 4259, 903, 6887, 3134, 727, 1668, 471, 21145, 997, 273, 4319, 1435, 997, 18, 71, 477, 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, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 4672, 309, 261, 71, 477, 88, 734, 422, 404, 4672, 3536, 12667, 87, 854, 2319, 628, 326, 1122, 12937, 309, 1846, 1960, 358, 3675, 31481, 4746, 18, 6155, 1960, 358, 3675, 31481, 4746, 732, 24315, 18, 3536, 880, 273, 315, 2505, 2207, 5591, 18, 5353, 21, 18, 19446, 477, 3428, 18, 75, 1527, 19, 556, 267, 1115, 19, 556, 267, 285, 25151, 18, 2684, 6, 5691, 273, 385, 477, 88, 18, 6911, 18, 588, 12, 71, 477, 88, 5562, 2218, 5353, 21, 6134, 225, 1111, 273, 11527, 22, 18, 295, 18589, 12, 718, 13, 2151, 273, 12031, 18, 2670, 12, 3658, 13, 225, 648, 7100, 273, 2151, 2 ]
raw_free(addr)
llmemory.raw_free(addr)
def f(offset, char): char = chr(char) addr = raw_malloc(10000) same_offset = (addr + 2 * offset - offset) - addr addr.char[offset] = char result = (addr + same_offset).char[0] raw_free(addr) return ord(result)
401345f9cba6aa1ad4cb9dd888b1649b3cd0501a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/401345f9cba6aa1ad4cb9dd888b1649b3cd0501a/test_lladdresses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 3348, 16, 1149, 4672, 1149, 273, 4513, 12, 3001, 13, 3091, 273, 1831, 67, 81, 9853, 12, 23899, 13, 1967, 67, 3348, 273, 261, 4793, 397, 576, 380, 1384, 300, 1384, 13, 300, 3091, 3091, 18, 3001, 63, 3348, 65, 273, 1149, 563, 273, 261, 4793, 397, 1967, 67, 3348, 2934, 3001, 63, 20, 65, 6579, 7858, 18, 1899, 67, 9156, 12, 4793, 13, 327, 4642, 12, 2088, 13, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 3348, 16, 1149, 4672, 1149, 273, 4513, 12, 3001, 13, 3091, 273, 1831, 67, 81, 9853, 12, 23899, 13, 1967, 67, 3348, 273, 261, 4793, 397, 576, 380, 1384, 300, 1384, 13, 300, 3091, 3091, 18, 3001, 63, 3348, 65, 273, 1149, 563, 273, 261, 4793, 397, 1967, 67, 3348, 2934, 3001, 63, 20, 65, 6579, 7858, 18, 1899, 67, 9156, 12, 4793, 13, 327, 4642, 12, 2088, 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 ]
if not fake_cursor.nbr % 5000: ct = [] for t,c in fake_cursor._tables.items(): ct.append([c,t]) ct.sort() ct.reverse() print 'After %d queries' % (fake_cursor.nbr,) for line in ct[:50]: print ' %s: %d' % (line[1], line[0])
def execute_dont_run(self,*args): if not fake_cursor.nbr % 100: print 'sql: ',fake_cursor.nbr res = re.match('^select.* from ([a-zA-Z_]+) .*$', args[0], re.I) if res: fake_cursor._tables.setdefault(res.group(1), 0) fake_cursor._tables[res.group(1)] += 1
63f1614bfec3a551d73de9a484e2d7c606828f08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/63f1614bfec3a551d73de9a484e2d7c606828f08/sql_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 72, 1580, 67, 2681, 12, 2890, 16, 14, 1968, 4672, 309, 486, 10517, 67, 9216, 18, 82, 2848, 738, 2130, 30, 1172, 296, 4669, 30, 2265, 28395, 67, 9216, 18, 82, 2848, 400, 273, 283, 18, 1916, 2668, 66, 4025, 4509, 628, 23265, 69, 17, 9600, 17, 62, 67, 7941, 263, 26788, 2187, 833, 63, 20, 6487, 283, 18, 45, 13, 309, 400, 30, 10517, 67, 9216, 6315, 9373, 18, 542, 1886, 12, 455, 18, 1655, 12, 21, 3631, 374, 13, 10517, 67, 9216, 6315, 9373, 63, 455, 18, 1655, 12, 21, 25887, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 72, 1580, 67, 2681, 12, 2890, 16, 14, 1968, 4672, 309, 486, 10517, 67, 9216, 18, 82, 2848, 738, 2130, 30, 1172, 296, 4669, 30, 2265, 28395, 67, 9216, 18, 82, 2848, 400, 273, 283, 18, 1916, 2668, 66, 4025, 4509, 628, 23265, 69, 17, 9600, 17, 62, 67, 7941, 263, 26788, 2187, 833, 63, 20, 6487, 283, 18, 45, 13, 309, 400, 30, 10517, 67, 9216, 6315, 9373, 18, 542, 1886, 12, 455, 18, 1655, 12, 21, 3631, 374, 13, 10517, 67, 9216, 6315, 9373, 63, 455, 18, 1655, 12, 21, 25887, 1011, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print >> pedOut, '%d %d %d 3 0 0 %d %s 0 %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.affected()]),
print >> pedOut, '%d %d %d 3 0 0 %d %s 0 %s' % (famID, id, fa, mo, sexCode[ind.sex()], affectedCode[ind.affected()]),
def writeInd(ind, famID, id, fa, mo): if pre: print >> pedOut, '%d %d %d %d %s %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.sex()]), else: if fa == 0: print >> pedOut, '%d %d %d 3 0 0 %d %s 0 %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.affected()]), else: print >> pedOut, '%d %d %d 0 4 4 %d %s 1 %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.affected()]), for marker in loci: if combine is None: for p in range(pldy): print >> pedOut, " %d" % (ind.allele(marker, p) + shift), else: print >> pedOut, " %d" % combine([ind.allele(marker, p) for p in range(pldy)]), print >> pedOut
e39225a74e6f3cec67d7c04e675aabf9a57553c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/401/e39225a74e6f3cec67d7c04e675aabf9a57553c5/simuUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3866, 12, 728, 16, 26688, 734, 16, 612, 16, 11087, 16, 7344, 4672, 309, 675, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 738, 72, 738, 87, 738, 87, 11, 738, 261, 74, 301, 734, 16, 612, 16, 11087, 16, 7344, 16, 19631, 1085, 12, 728, 3631, 9844, 1085, 63, 728, 18, 20909, 1435, 65, 3631, 469, 30, 309, 11087, 422, 374, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 890, 374, 374, 738, 72, 738, 87, 374, 738, 87, 11, 738, 261, 74, 301, 734, 16, 612, 16, 11087, 16, 7344, 16, 19631, 1085, 63, 728, 18, 20909, 1435, 6487, 9844, 1085, 63, 728, 18, 20119, 1435, 65, 3631, 469, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 374, 1059, 1059, 738, 72, 738, 87, 404, 738, 87, 11, 738, 261, 74, 301, 734, 16, 612, 16, 11087, 16, 7344, 16, 19631, 1085, 12, 728, 3631, 9844, 1085, 63, 728, 18, 20119, 1435, 65, 3631, 364, 5373, 316, 1515, 77, 30, 309, 8661, 353, 599, 30, 364, 293, 316, 1048, 12, 412, 15680, 4672, 1172, 1671, 31840, 1182, 16, 315, 738, 72, 6, 738, 261, 728, 18, 21962, 12, 11145, 16, 293, 13, 397, 4654, 3631, 469, 30, 1172, 1671, 31840, 1182, 16, 315, 738, 72, 6, 738, 8661, 3816, 728, 18, 21962, 12, 11145, 16, 293, 13, 364, 293, 316, 1048, 12, 412, 15680, 25887, 3631, 1172, 1671, 31840, 1182, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3866, 12, 728, 16, 26688, 734, 16, 612, 16, 11087, 16, 7344, 4672, 309, 675, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 738, 72, 738, 87, 738, 87, 11, 738, 261, 74, 301, 734, 16, 612, 16, 11087, 16, 7344, 16, 19631, 1085, 12, 728, 3631, 9844, 1085, 63, 728, 18, 20909, 1435, 65, 3631, 469, 30, 309, 11087, 422, 374, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 890, 374, 374, 738, 72, 738, 87, 374, 738, 87, 11, 738, 261, 74, 301, 734, 16, 612, 16, 11087, 16, 7344, 16, 19631, 1085, 63, 728, 18, 20909, 1435, 6487, 9844, 1085, 63, 728, 18, 20119, 1435, 65, 2 ]
file = wx.Menu() exit = file.Append(-1,'Exit','Close pyLoad') menubar.Append(file, '&File')
menu_file = wx.Menu() submenu_exit = menu_file.Append(-1,'Schliessen','pyLoad beenden') menubar.Append(menu_file, '&Datei')
def __init__(self, parent, id, title="pyLoad"): wx.Frame.__init__(self,parent,id,title, size=(800,500)) appPath = dirname(abspath(__file__)) + sep
94c1c737c5455762bbea312f891856b5c0deb497 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/94c1c737c5455762bbea312f891856b5c0deb497/pyMainGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 350, 16, 2649, 16, 963, 28657, 17374, 16, 12483, 3719, 225, 28563, 273, 4283, 12, 5113, 803, 12, 972, 768, 972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 350, 16, 2649, 16, 963, 28657, 17374, 16, 12483, 3719, 225, 28563, 273, 4283, 12, 5113, 803, 12, 972, 768, 972, 3719, 397, 5478, 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 ]
__swig_setmethods__["cityNo"] = _micropolisengine.Micropolis_cityNo_set __swig_getmethods__["cityNo"] = _micropolisengine.Micropolis_cityNo_get if _newclass:cityNo = _swig_property(_micropolisengine.Micropolis_cityNo_get, _micropolisengine.Micropolis_cityNo_set)
def MakeFlood(*args): return _micropolisengine.Micropolis_MakeFlood(*args)
ac864f622a0e51e9e610d76687dbf229cdda2c09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12485/ac864f622a0e51e9e610d76687dbf229cdda2c09/mic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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 42, 383, 369, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 6464, 42, 383, 369, 30857, 1968, 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 ]
self.dlsdbsContact[item] = value
self.dbsdlsContact[item] = value
def __init__(self, workflowSpecFile, workingDir): self.workflow = workflowSpecFile self.workingDir = workingDir self.currentJob = None self.workflowSpec = WorkflowSpec() self.workflowSpec.load(workflowSpecFile) self.currentJobDef = None self.count = 0 self.allowedBlocks = [] self.allowedSites = [] self.dbsdlsContact = {} self.splitType = \ self.workflowSpec.parameters.get("SplitType", "file").lower() self.splitSize = int(self.workflowSpec.parameters.get("SplitSize", 1)) # // # // Does the workflow contain a block restriction?? #// blockRestriction = \ self.workflowSpec.parameters.get("OnlyBlocks", None) if blockRestriction != None: # // # // restriction on blocks present, populate allowedBlocks list #// msg = "Block restriction provided in Workflow Spec:\n" msg += "%s\n" % blockRestriction blockList = blockRestriction.split(",") for block in blockList: if len(block.strip() ) > 0: self.allowedBlocks.append(block.strip())
547bc8360381177d040857051a9c3d1d96eb88ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/547bc8360381177d040857051a9c3d1d96eb88ae/DatasetIterator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6095, 1990, 812, 16, 5960, 1621, 4672, 365, 18, 13815, 273, 6095, 1990, 812, 365, 18, 20478, 1621, 273, 5960, 1621, 365, 18, 2972, 2278, 273, 599, 365, 18, 13815, 1990, 273, 11363, 1990, 1435, 365, 18, 13815, 1990, 18, 945, 12, 13815, 1990, 812, 13, 365, 18, 2972, 2278, 3262, 273, 599, 365, 18, 1883, 273, 374, 365, 18, 8151, 6450, 273, 5378, 365, 18, 8151, 17055, 273, 5378, 365, 18, 1966, 6427, 3251, 6567, 273, 2618, 365, 18, 4939, 559, 273, 521, 365, 18, 13815, 1990, 18, 3977, 18, 588, 2932, 5521, 559, 3113, 315, 768, 20387, 8167, 1435, 365, 18, 4939, 1225, 273, 509, 12, 2890, 18, 13815, 1990, 18, 3977, 18, 588, 2932, 5521, 1225, 3113, 404, 3719, 225, 468, 225, 368, 468, 368, 9637, 326, 6095, 912, 279, 1203, 9318, 14646, 468, 759, 1203, 11670, 273, 521, 365, 18, 13815, 1990, 18, 3977, 18, 588, 2932, 3386, 6450, 3113, 599, 13, 309, 1203, 11670, 480, 599, 30, 468, 225, 368, 468, 368, 9318, 603, 4398, 3430, 16, 6490, 2935, 6450, 666, 468, 759, 1234, 273, 315, 1768, 9318, 2112, 316, 11363, 4185, 5581, 82, 6, 1234, 1011, 2213, 87, 64, 82, 6, 738, 1203, 11670, 1203, 682, 273, 1203, 11670, 18, 4939, 2932, 16, 7923, 364, 1203, 316, 1203, 682, 30, 309, 562, 12, 2629, 18, 6406, 1435, 262, 405, 374, 30, 365, 18, 8151, 6450, 18, 6923, 12, 2629, 18, 6406, 10756, 2, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6095, 1990, 812, 16, 5960, 1621, 4672, 365, 18, 13815, 273, 6095, 1990, 812, 365, 18, 20478, 1621, 273, 5960, 1621, 365, 18, 2972, 2278, 273, 599, 365, 18, 13815, 1990, 273, 11363, 1990, 1435, 365, 18, 13815, 1990, 18, 945, 12, 13815, 1990, 812, 13, 365, 18, 2972, 2278, 3262, 273, 599, 365, 18, 1883, 273, 374, 365, 18, 8151, 6450, 273, 5378, 365, 18, 8151, 17055, 273, 5378, 365, 18, 1966, 6427, 3251, 6567, 273, 2618, 365, 18, 4939, 559, 273, 521, 365, 18, 13815, 1990, 18, 3977, 18, 588, 2932, 5521, 559, 3113, 315, 768, 20387, 8167, 1435, 365, 18, 4939, 1225, 273, 509, 12, 2890, 18, 13815, 1990, 2 ]
priorcodes[key] = self.ownerDocument.whichCode(key) self.ownerDocument.catcode(key, value) except: pass
priorcodes[key] = self.ownerDocument.context.whichCode(key) self.ownerDocument.context.catcode(key, value)
def readArgumentAndSource(self, spec=None, type=None, subtype=None, delim=',', expanded=False, default=None, parentNode=None, name=None, stripLeadingWhitespace=True): """ Get an argument and the TeX source that created it
004df1451775a6dd62b83138bb1b68634bca9b69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/004df1451775a6dd62b83138bb1b68634bca9b69/TeX.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1379, 1876, 1830, 12, 2890, 16, 857, 33, 7036, 16, 618, 33, 7036, 16, 12308, 33, 7036, 16, 10508, 33, 2187, 2187, 8406, 33, 8381, 16, 805, 33, 7036, 16, 7234, 33, 7036, 16, 508, 33, 7036, 16, 2569, 19112, 9431, 33, 5510, 4672, 3536, 968, 392, 1237, 471, 326, 28602, 60, 1084, 716, 2522, 518, 2, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1379, 1876, 1830, 12, 2890, 16, 857, 33, 7036, 16, 618, 33, 7036, 16, 12308, 33, 7036, 16, 10508, 33, 2187, 2187, 8406, 33, 8381, 16, 805, 33, 7036, 16, 7234, 33, 7036, 16, 508, 33, 7036, 16, 2569, 19112, 9431, 33, 5510, 4672, 3536, 968, 392, 1237, 471, 326, 28602, 60, 1084, 716, 2522, 518, 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 ]
safety.append('\n!' + usernam)
safety.append('\n!%s' % usernam)
def logmaker(wsite, welcomed_users, logg, summ2, usernam, contrib): """ Deduct the correct sub page name form the current date """ safety = list() rightime = time.localtime(time.time()) year = str(rightime[0]) month = str(rightime[1]) day = str(rightime[2]) if len(month) == 1: month = u'0' + month if wsite.lang == 'it': target = logg + '/' + day + '/' + month + '/' + year else: target = logg + '/' + year + '/' + month + '/' + day page = wikipedia.Page(wsite, target) try: safety.append(page.get()) except wikipedia.NoPage: #Add the table heading each new period. See http://commons.wikimedia.org/wiki/Commons:Welcome_log if wsite.lang == 'it': safety.append(u'[[Categoria:Benvenuto log|{{subst:PAGENAME}}]]\n{|border="2" cellpadding="4" cellspacing="0" style="margin: 0.5em 0.5em 0.5em 1em; padding: 0.5em; background: #bfcda5; border: 1px #b6fd2c solid; border-collapse: collapse; font-size: 95%;"') elif wsite.lang == 'no': safety.append(u'[[Kategori:Velkomstlogg|{{PAGENAME}}]]\n{| class="wikitable"') else: safety.append(u'{|border="2" cellpadding="4" cellspacing="0" style="margin: 0.5em 0.5em 0.5em 1em; padding: 0.5em; background: #bfcda5; border: 1px #b6fd2c solid; border-collapse: collapse; font-size: 95%;"') # The string below show how the "Usernames" will be notified. safety.append('\n!' + usernam) # The string below show how the "Contribs" will be notified. safety.append(u'\n!' + contrib) for found_result in welcomed_users: # Adding the log... (don't take care of the variable's name...). luserpage = str(found_result[0]) luser = wikipedia.url2link(luserpage, wsite, wsite) edit_count = str(found_result[1]) logtext = u'\n{{WLE|user=%s|contribs=%s}}' % (luser, edit_count) safety.append(logtext) try: page.put(''.join(safety), summ2) return True except wikipedia.EditConflict: wikipedia.output(u'An edit conflict has occured. Pausing for 10 seconds before continuing.') time.sleep(10) page = wikipedia.Page(wsite, target) try: page.put(u''.join(safety), summ2) return True except wikipedia.EditConflict: wikipedia.output(u'Another edit conflict... Skipping...') return False
39b7ba3c7caa86382857fed4504f0e143bf50fc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/39b7ba3c7caa86382857fed4504f0e143bf50fc9/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 29261, 12, 91, 4256, 16, 341, 292, 832, 329, 67, 5577, 16, 31443, 16, 2142, 81, 22, 16, 729, 17808, 16, 13608, 4672, 3536, 463, 329, 853, 326, 3434, 720, 1363, 508, 646, 326, 783, 1509, 3536, 24179, 273, 666, 1435, 2145, 494, 273, 813, 18, 3729, 957, 12, 957, 18, 957, 10756, 3286, 273, 609, 12, 4083, 494, 63, 20, 5717, 3138, 273, 609, 12, 4083, 494, 63, 21, 5717, 2548, 273, 609, 12, 4083, 494, 63, 22, 5717, 309, 562, 12, 7496, 13, 422, 404, 30, 3138, 273, 582, 11, 20, 11, 397, 3138, 309, 341, 4256, 18, 4936, 422, 296, 305, 4278, 1018, 273, 31443, 397, 2023, 397, 2548, 397, 2023, 397, 3138, 397, 2023, 397, 3286, 469, 30, 1018, 273, 31443, 397, 2023, 397, 3286, 397, 2023, 397, 3138, 397, 2023, 397, 2548, 1363, 273, 21137, 18, 1964, 12, 91, 4256, 16, 1018, 13, 775, 30, 24179, 18, 6923, 12, 2433, 18, 588, 10756, 1335, 21137, 18, 2279, 1964, 30, 468, 986, 326, 1014, 11053, 1517, 394, 3879, 18, 2164, 1062, 2207, 6054, 87, 18, 11999, 381, 1980, 18, 3341, 19, 13044, 19, 6517, 87, 30, 59, 16312, 67, 1330, 309, 341, 4256, 18, 4936, 422, 296, 305, 4278, 24179, 18, 6923, 12, 89, 11, 31128, 39, 20252, 1155, 30, 38, 3074, 275, 3003, 613, 96, 12187, 1717, 334, 30, 30633, 21150, 9090, 13563, 64, 82, 95, 96, 8815, 1546, 22, 6, 2484, 9598, 1546, 24, 6, 2484, 14080, 1546, 20, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 29261, 12, 91, 4256, 16, 341, 292, 832, 329, 67, 5577, 16, 31443, 16, 2142, 81, 22, 16, 729, 17808, 16, 13608, 4672, 3536, 463, 329, 853, 326, 3434, 720, 1363, 508, 646, 326, 783, 1509, 3536, 24179, 273, 666, 1435, 2145, 494, 273, 813, 18, 3729, 957, 12, 957, 18, 957, 10756, 3286, 273, 609, 12, 4083, 494, 63, 20, 5717, 3138, 273, 609, 12, 4083, 494, 63, 21, 5717, 2548, 273, 609, 12, 4083, 494, 63, 22, 5717, 309, 562, 12, 7496, 13, 422, 404, 30, 3138, 273, 582, 11, 20, 11, 397, 3138, 309, 341, 4256, 18, 4936, 422, 296, 305, 4278, 1018, 273, 31443, 397, 2023, 397, 2548, 397, 2023, 397, 3138, 397, 2 ]
'list': students_Q & Q(registrationprofile__student_info__graduation_year__lte = yog_12)}
'list': students_Q & Q(registrationprofile__student_info__graduation_year__gte = yog_12)}
def getLists(self, QObjects=False): from esp.users.models import ESPUser lists = self.students(QObjects) lists.update(self.teachers(QObjects)) learnmodules = self.getModules(None) teachmodules = self.getModules(None)
6d7953a5484b4f89b927473b456eb8b25182942b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/6d7953a5484b4f89b927473b456eb8b25182942b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7432, 12, 2890, 16, 2238, 4710, 33, 8381, 4672, 628, 5001, 84, 18, 5577, 18, 7665, 1930, 512, 3118, 1299, 225, 6035, 273, 365, 18, 16120, 4877, 12, 53, 4710, 13, 6035, 18, 2725, 12, 2890, 18, 736, 497, 414, 12, 53, 4710, 3719, 16094, 6400, 273, 365, 18, 588, 7782, 12, 7036, 13, 6489, 497, 6400, 273, 365, 18, 588, 7782, 12, 7036, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7432, 12, 2890, 16, 2238, 4710, 33, 8381, 4672, 628, 5001, 84, 18, 5577, 18, 7665, 1930, 512, 3118, 1299, 225, 6035, 273, 365, 18, 16120, 4877, 12, 53, 4710, 13, 6035, 18, 2725, 12, 2890, 18, 736, 497, 414, 12, 53, 4710, 3719, 16094, 6400, 273, 365, 18, 588, 7782, 12, 7036, 13, 6489, 497, 6400, 273, 365, 18, 588, 7782, 12, 7036, 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 ]
category.set_label("Unknown") capabilities.set_label("Unknown")
if device.properties.has_key("info.category"): category.set_label("%s"%device.properties["info.category"]) else: category.set_label("Unknown") if device.properties.has_key("info.capabilities"): capabilities.set_label("%s"%device.properties["info.capabilities"]) else: capabilities.set_label("Unknown")
def update_tab_device(self, device): """Updates the 'Device' tab given a Device object""" bus = self.xml.get_widget("ns_device_bus") #state = self.xml.get_widget("ns_device_status") vendor = self.xml.get_widget("ns_device_vendor") product = self.xml.get_widget("ns_device_name") category = self.xml.get_widget("ns_device_category") capabilities = self.xml.get_widget("ns_device_capabilities")
9b2d3649b5464db19b0fe9180ff2bf16ad28c157 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2597/9b2d3649b5464db19b0fe9180ff2bf16ad28c157/DeviceManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 7032, 67, 5964, 12, 2890, 16, 2346, 4672, 3536, 5121, 326, 296, 3654, 11, 3246, 864, 279, 6077, 733, 8395, 5766, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 9274, 7923, 468, 2019, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 2327, 7923, 8556, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 10645, 7923, 3017, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 529, 7923, 3150, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 4743, 7923, 12359, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 22140, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 3536, 5121, 326, 296, 3654, 11, 3246, 864, 279, 6077, 733, 8395, 5766, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 9274, 7923, 468, 2019, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 2327, 7923, 8556, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 10645, 7923, 3017, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 529, 7923, 3150, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 4743, 7923, 12359, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, 67, 22140, 2 ]
def __init__(self, addr, port, ssl_context): asyncore.dispatcher.__init__(self) self.create_socket(ssl_context) self.set_reuse_addr() self.socket.setblocking(0) self.bind((addr, port)) self.listen(5) def handle_accept(self): sock, addr=self.socket.accept() self.channel_class(sock)
def __init__(self, addr, port, ssl_context): SSL.ssl_dispatcher.__init__(self) self.create_socket(ssl_context) self.set_reuse_addr() self.socket.setblocking(0) self.bind((addr, port)) self.listen(5) self.ssl_ctx=ssl_context def handle_accept(self): try: sock, addr = self.socket.accept() self.channel_class(sock) except: print '-'*40 import traceback traceback.print_exc() print '-'*40 return
def __init__(self, addr, port, ssl_context): asyncore.dispatcher.__init__(self) self.create_socket(ssl_context) self.set_reuse_addr() self.socket.setblocking(0) self.bind((addr, port)) self.listen(5)
80a31efd04e64c5c20e961926a236dee986868ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/80a31efd04e64c5c20e961926a236dee986868ab/echod-async.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3091, 16, 1756, 16, 5832, 67, 2472, 4672, 4326, 479, 18, 18495, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 7814, 12, 8157, 67, 2472, 13, 365, 18, 542, 67, 266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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3091, 16, 1756, 16, 5832, 67, 2472, 4672, 4326, 479, 18, 18495, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 7814, 12, 8157, 67, 2472, 13, 365, 18, 542, 67, 266, 1202, 67, 4793, 1435, 365, 18, 7814, 18, 542, 18926, 12, 20, 13, 365, 18, 4376, 12443, 4793, 16, 1756, 3719, 365, 18, 18085, 12, 25, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]