rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
cr.execute(("select sum(debit-credit) from account_move_line l where account_id=%d and partner_id=%d and reconcile_id is null and "+query), (acc, id))
|
cr.execute("select sum(debit-credit) from account_move_line as l where account_id in (select id from account_account where type = %s) and partner_id=%d and reconcile_id is null and "+query, ('receivable', id))
|
def _credit_get(self, cr, uid, ids, name, arg, context): res={} for partner in self.browse(cr, uid, ids, context): id = partner.id if not partner.property_account_receivable: res[id] = 0.0 continue acc = partner.property_account_receivable[0] query = self.pool.get('account.move.line')._query_get(cr, uid, context=context) cr.execute(("select sum(debit-credit) from account_move_line l where account_id=%d and partner_id=%d and reconcile_id is null and "+query), (acc, id)) res[id]=cr.fetchone()[0] or 0.0 return res
|
619c7ed206b97cbc7ef9b3f3975712615d388c75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/619c7ed206b97cbc7ef9b3f3975712615d388c75/partner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
20688,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
4672,
400,
12938,
364,
19170,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
612,
273,
19170,
18,
350,
309,
486,
19170,
18,
4468,
67,
4631,
67,
8606,
427,
429,
30,
400,
63,
350,
65,
273,
374,
18,
20,
1324,
4078,
273,
19170,
18,
4468,
67,
4631,
67,
8606,
427,
429,
63,
20,
65,
843,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
18,
1369,
16063,
67,
2271,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
4422,
18,
8837,
2932,
4025,
2142,
12,
323,
3682,
17,
20688,
13,
628,
2236,
67,
8501,
67,
1369,
487,
328,
1625,
2236,
67,
350,
316,
261,
4025,
612,
628,
2236,
67,
4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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
20688,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
4672,
400,
12938,
364,
19170,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
612,
273,
19170,
18,
350,
309,
486,
19170,
18,
4468,
67,
4631,
67,
8606,
427,
429,
30,
400,
63,
350,
65,
273,
374,
18,
20,
1324,
4078,
273,
19170,
18,
4468,
67,
4631,
67,
8606,
427,
429,
63,
20,
65,
843,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
18,
1369,
16063,
67,
2271,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
4422,
18,
8837,
2932,
4025,
2142,
12,
323,
3682,
17,
20688,
13,
628,
2236,
67,
2
] |
libraries = ["ginac"]), \
|
libraries = ["pynac"]), \
|
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
|
d061a18049c744ede72cc1e15956b57c439fa97f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d061a18049c744ede72cc1e15956b57c439fa97f/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
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
] |
script.write('''
|
script.write(r'''
|
def installCygwinPostinstallScript(path): ''' Install lyx.sh ''' postinstall_script = os.path.join(path, 'lyx.sh') script = open(postinstall_script, 'w') script.write('''#!/bin/sh
|
145c4d9afef7ef533d432ae64f3b4568ea906914 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/145c4d9afef7ef533d432ae64f3b4568ea906914/scons_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
39,
4338,
8082,
3349,
5425,
3651,
12,
803,
4672,
9163,
10284,
18519,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
39,
4338,
8082,
3349,
5425,
3651,
12,
803,
4672,
9163,
10284,
18519,
92,
18,
674,
9163,
1603,
5425,
67,
4263,
273,
1140,
18,
803,
18,
5701,
12,
803,
16,
296,
715,
92,
18,
674,
6134,
2728,
273,
1696,
12,
2767,
5425,
67,
4263,
16,
296,
91,
6134,
2728,
18,
2626,
2668,
6309,
7,
5,
19,
4757,
19,
674,
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
] |
use_threadpool=True, threadpool_workers=10,
|
use_threadpool=False, threadpool_workers=10,
|
def serve(application, host=None, port=None, handler=None, ssl_pem=None, ssl_context=None, server_version=None, protocol_version=None, start_loop=True, daemon_threads=None, socket_timeout=None, use_threadpool=True, threadpool_workers=10, threadpool_options=None): """ Serves your ``application`` over HTTP(S) via WSGI interface ``host`` This is the ipaddress to bind to (or a hostname if your nameserver is properly configured). This defaults to 127.0.0.1, which is not a public interface. ``port`` The port to run on, defaults to 8080 for HTTP, or 4443 for HTTPS. This can be a string or an integer value. ``handler`` This is the HTTP request handler to use, it defaults to ``WSGIHandler`` in this module. ``ssl_pem`` This an optional SSL certificate file (via OpenSSL). You can supply ``*`` and a development-only certificate will be created for you, or you can generate a self-signed test PEM certificate file as follows: $ openssl genrsa 1024 > host.key $ chmod 400 host.key $ openssl req -new -x509 -nodes -sha1 -days 365 \\ -key host.key > host.cert $ cat host.cert host.key > host.pem $ chmod 400 host.pem ``ssl_context`` This an optional SSL context object for the server. A SSL context will be automatically constructed for you if you supply ``ssl_pem``. Supply this to use a context of your own construction. ``server_version`` The version of the server as reported in HTTP response line. This defaults to something like "PasteWSGIServer/0.5". Many servers hide their code-base identity with a name like 'Amnesiac/1.0' ``protocol_version`` This sets the protocol used by the server, by default ``HTTP/1.0``. There is some support for ``HTTP/1.1``, which defaults to nicer keep-alive connections. This server supports ``100 Continue``, but does not yet support HTTP/1.1 Chunked Encoding. Hence, if you use HTTP/1.1, you're somewhat in error since chunked coding is a mandatory requirement of a HTTP/1.1 server. If you specify HTTP/1.1, every response *must* have a ``Content-Length`` and you must be careful not to read past the end of the socket. ``start_loop`` This specifies if the server loop (aka ``server.serve_forever()``) should be called; it defaults to ``True``. ``daemon_threads`` This flag specifies if when your webserver terminates all in-progress client connections should be droppped. It defaults to ``False``. You might want to set this to ``True`` if you are using ``HTTP/1.1`` and don't set a ``socket_timeout``. ``socket_timeout`` This specifies the maximum amount of time that a connection to a given client will be kept open. At this time, it is a rude disconnect, but at a later time it might follow the RFC a bit more closely. ``use_threadpool`` Server requests from a pool of worker threads (``threadpool_workers``) rather than creating a new thread for each request. This can substantially reduce latency since there is a high cost associated with thread creation. ``threadpool_workers`` Number of worker threads to create when ``use_threadpool`` is true. This can be a string or an integer value. ``threadpool_options`` A dictionary of options to be used when instantiating the threadpool. See paste.httpserver.ThreadPool for specific options (``threadpool_workers`` is a specific option that can also go here). """ is_ssl = False if ssl_pem or ssl_context: assert SSL, "pyOpenSSL is not installed" is_ssl = True port = int(port or 4443) if not ssl_context: if ssl_pem == '*': ssl_context = _auto_ssl_context() else: ssl_context = SSL.Context(SSL.SSLv23_METHOD) ssl_context.use_privatekey_file(ssl_pem) ssl_context.use_certificate_file(ssl_pem) host = host or '127.0.0.1' if not port: if ':' in host: host, port = host.split(':', 1) else: port = 8080 server_address = (host, int(port)) if not handler: handler = WSGIHandler if server_version: handler.server_version = server_version handler.sys_version = None if protocol_version: assert protocol_version in ('HTTP/0.9', 'HTTP/1.0', 'HTTP/1.1') handler.protocol_version = protocol_version if converters.asbool(use_threadpool): server = WSGIThreadPoolServer(application, server_address, handler, ssl_context, int(threadpool_workers), daemon_threads, threadpool_options=threadpool_options) else: server = WSGIServer(application, server_address, handler, ssl_context) if daemon_threads: server.daemon_threads = daemon_threads if socket_timeout: server.wsgi_socket_timeout = int(socket_timeout) if converters.asbool(start_loop): protocol = is_ssl and 'https' or 'http' host, port = server.server_address if host == '0.0.0.0': print 'serving on 0.0.0.0:%s view at %s://127.0.0.1:%s' % \ (port, protocol, port) else: print "serving on %s://%s:%s" % (protocol, host, port) try: server.serve_forever() except KeyboardInterrupt: # allow CTRL+C to shutdown pass return server
|
0a91d7bab1d2b94a422c77cf0294b453090d3b4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/0a91d7bab1d2b94a422c77cf0294b453090d3b4a/httpserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
12,
3685,
16,
1479,
33,
7036,
16,
1756,
33,
7036,
16,
1838,
33,
7036,
16,
5832,
67,
20313,
33,
7036,
16,
5832,
67,
2472,
33,
7036,
16,
1438,
67,
1589,
33,
7036,
16,
1771,
67,
1589,
33,
7036,
16,
787,
67,
6498,
33,
5510,
16,
8131,
67,
12495,
33,
7036,
16,
2987,
67,
4538,
33,
7036,
16,
999,
67,
5930,
6011,
33,
8381,
16,
2650,
6011,
67,
15625,
33,
2163,
16,
2650,
6011,
67,
2116,
33,
7036,
4672,
3536,
1275,
3324,
3433,
12176,
3685,
10335,
1879,
2239,
12,
55,
13,
3970,
7649,
13797,
1560,
225,
12176,
2564,
10335,
225,
1220,
353,
326,
24964,
358,
1993,
358,
261,
280,
279,
5199,
309,
3433,
1257,
12330,
353,
8214,
4351,
2934,
225,
1220,
3467,
358,
12331,
18,
20,
18,
20,
18,
21,
16,
1492,
353,
486,
279,
1071,
1560,
18,
225,
12176,
655,
10335,
225,
1021,
1756,
358,
1086,
603,
16,
3467,
358,
8958,
3672,
364,
2239,
16,
578,
1059,
6334,
23,
364,
18904,
18,
1220,
848,
506,
279,
533,
578,
392,
3571,
460,
18,
225,
12176,
4176,
10335,
225,
1220,
353,
326,
2239,
590,
1838,
358,
999,
16,
518,
3467,
358,
12176,
2651,
13797,
1503,
10335,
316,
333,
1605,
18,
225,
12176,
8157,
67,
20313,
10335,
225,
1220,
392,
3129,
7419,
4944,
585,
261,
21985,
21859,
2934,
4554,
848,
14467,
12176,
14,
10335,
471,
279,
17772,
17,
3700,
4944,
903,
506,
2522,
364,
1846,
16,
578,
1846,
848,
2103,
279,
365,
17,
5679,
1842,
17475,
4944,
585,
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,
12175,
12,
3685,
16,
1479,
33,
7036,
16,
1756,
33,
7036,
16,
1838,
33,
7036,
16,
5832,
67,
20313,
33,
7036,
16,
5832,
67,
2472,
33,
7036,
16,
1438,
67,
1589,
33,
7036,
16,
1771,
67,
1589,
33,
7036,
16,
787,
67,
6498,
33,
5510,
16,
8131,
67,
12495,
33,
7036,
16,
2987,
67,
4538,
33,
7036,
16,
999,
67,
5930,
6011,
33,
8381,
16,
2650,
6011,
67,
15625,
33,
2163,
16,
2650,
6011,
67,
2116,
33,
7036,
4672,
3536,
1275,
3324,
3433,
12176,
3685,
10335,
1879,
2239,
12,
55,
13,
3970,
7649,
13797,
1560,
225,
12176,
2564,
10335,
225,
1220,
353,
326,
24964,
358,
1993,
358,
261,
280,
279,
5199,
309,
3433,
1257,
12330,
353,
8214,
4351,
2
] |
return data
|
return data
|
def getSampleTOCData(depth=3): """Returns a longish block of page numbers and headings over 3 levels""" from random import randint pgNum = 2 data = [] for chapter in range(1,8): data.append(0, """Chapter %d with a really long name which will hopefully wrap onto a second line, fnding out if the right things happen with full paragraphs n the table of contents""" % chapter, pgNum) pgNum = pgNum + randint(0,2) if depth > 1: for section in range(1,5): data.append(1, 'Chapter %d Section %d' % (chapter, section), pgNum) pgNum = pgNum + randint(0,2) if depth > 2: for subSection in range(1,6): data.append(2, 'Chapter %d Section %d Subsection %d' % (chapter, section, subSection), pgNum) pgNum = pgNum + randint(0,1) return data
|
3a22afced413e2d4edb74ba12a3b2489da70a8aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/3a22afced413e2d4edb74ba12a3b2489da70a8aa/tocindex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26078,
4296,
39,
751,
12,
5979,
33,
23,
4672,
3536,
1356,
279,
1525,
1468,
1203,
434,
1363,
5600,
471,
910,
899,
1879,
890,
7575,
8395,
628,
2744,
1930,
16783,
7184,
2578,
273,
576,
501,
273,
5378,
364,
23580,
316,
1048,
12,
21,
16,
28,
4672,
501,
18,
6923,
12,
20,
16,
3536,
782,
2487,
738,
72,
598,
279,
8654,
1525,
508,
1492,
903,
27370,
4095,
2193,
10170,
279,
2205,
980,
16,
2295,
7459,
596,
309,
326,
2145,
9198,
5865,
598,
1983,
24552,
290,
326,
1014,
434,
2939,
8395,
738,
23580,
16,
7184,
2578,
13,
7184,
2578,
273,
7184,
2578,
397,
16783,
12,
20,
16,
22,
13,
309,
3598,
405,
404,
30,
364,
2442,
316,
1048,
12,
21,
16,
25,
4672,
501,
18,
6923,
12,
21,
16,
296,
782,
2487,
738,
72,
10092,
738,
72,
11,
738,
261,
31254,
16,
2442,
3631,
7184,
2578,
13,
7184,
2578,
273,
7184,
2578,
397,
16783,
12,
20,
16,
22,
13,
309,
3598,
405,
576,
30,
364,
720,
5285,
316,
1048,
12,
21,
16,
26,
4672,
501,
18,
6923,
12,
22,
16,
296,
782,
2487,
738,
72,
10092,
738,
72,
2592,
3464,
738,
72,
11,
738,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
279,
1525,
1468,
1203,
434,
1363,
5600,
471,
910,
899,
1879,
890,
7575,
8395,
628,
2744,
1930,
16783,
7184,
2578,
273,
576,
501,
273,
5378,
364,
23580,
316,
1048,
12,
21,
16,
28,
4672,
501,
18,
6923,
12,
20,
16,
3536,
782,
2487,
738,
72,
598,
279,
8654,
1525,
508,
1492,
903,
27370,
4095,
2193,
10170,
279,
2205,
980,
16,
2295,
7459,
596,
309,
326,
2145,
9198,
5865,
598,
1983,
24552,
290,
326,
1014,
434,
2939,
8395,
738,
23580,
16,
7184,
2578,
13,
7184,
2578,
273,
7184,
2578,
397,
16783,
12,
20,
16,
22,
13,
309,
3598,
405,
404,
30,
364,
2442,
316,
1048,
12,
21,
16,
2
] |
self.numerator.array = numpy.where(self.denominator.array, self.numerator.array, epsilon) self.denominator.array = numpy.where(self.denominator.array, self.denominator.array, 1)
|
self.numerator.array[self.denominator.array == 0] = epsilon self.denominator.array[self.denominator.array == 0] = 1
|
def logregularize(self, epsilon = 2**-1074): """ Find bins in the denominator that are 0, and set them to 1, while setting the corresponding bin in the numerator to float epsilon. This has the effect of allowing the logarithm of the ratio array to be evaluated without error. """ # FIXME: assign to contents instead self.numerator.array = numpy.where(self.denominator.array, self.numerator.array, epsilon) self.denominator.array = numpy.where(self.denominator.array, self.denominator.array, 1) return self
|
bc865ea0fd2c64e2ed5ec9ea056406d8ec6e3136 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/bc865ea0fd2c64e2ed5ec9ea056406d8ec6e3136/rate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
16819,
554,
12,
2890,
16,
12263,
273,
576,
636,
17,
2163,
5608,
4672,
3536,
4163,
8963,
316,
326,
15030,
716,
854,
374,
16,
471,
444,
2182,
358,
404,
16,
1323,
3637,
326,
4656,
4158,
316,
326,
16730,
358,
1431,
12263,
18,
225,
1220,
711,
326,
5426,
434,
15632,
326,
613,
31249,
434,
326,
7169,
526,
358,
506,
12697,
2887,
555,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
16819,
554,
12,
2890,
16,
12263,
273,
576,
636,
17,
2163,
5608,
4672,
3536,
4163,
8963,
316,
326,
15030,
716,
854,
374,
16,
471,
444,
2182,
358,
404,
16,
1323,
3637,
326,
4656,
4158,
316,
326,
16730,
358,
1431,
12263,
18,
225,
1220,
711,
326,
5426,
434,
15632,
326,
613,
31249,
434,
326,
7169,
526,
358,
506,
12697,
2887,
555,
18,
3536,
468,
9852,
30,
2683,
358,
2939,
3560,
2890,
18,
2107,
7385,
18,
1126,
63,
2890,
18,
13002,
26721,
18,
1126,
422,
374,
65,
273,
12263,
365,
18,
13002,
26721,
18,
1126,
63,
2890,
18,
13002,
26721,
18,
1126,
422,
374,
65,
273,
404,
327,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif type == "EndTag": preserve = False
|
elif type == "EndTag" and preserve: preserve -= 1
|
def __iter__(self): preserve = False for token in _base.Filter.__iter__(self): type = token["type"] if not preserve and type == "StartTag" \ and token["name"] in self.spacePreserveElements: preserve = True
|
c6fafd977a7cf98126eb34fe207f44e09cb09e3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/c6fafd977a7cf98126eb34fe207f44e09cb09e3d/whitespace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
9420,
273,
1083,
364,
1147,
316,
389,
1969,
18,
1586,
16186,
2165,
972,
12,
2890,
4672,
618,
273,
1147,
9614,
723,
11929,
309,
486,
9420,
471,
618,
422,
315,
30512,
6,
521,
471,
1147,
9614,
529,
11929,
316,
365,
18,
2981,
12236,
6527,
3471,
30,
9420,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
9420,
273,
1083,
364,
1147,
316,
389,
1969,
18,
1586,
16186,
2165,
972,
12,
2890,
4672,
618,
273,
1147,
9614,
723,
11929,
309,
486,
9420,
471,
618,
422,
315,
30512,
6,
521,
471,
1147,
9614,
529,
11929,
316,
365,
18,
2981,
12236,
6527,
3471,
30,
9420,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
res_ata = self.cr.dictfetchall()
|
res_cert = self.cr.dictfetchall() self.cr.execute("select t.section, count(t.id) as no_certi, sum(d.goods_value) as no_goods, \ sum(l.total) as total_sub, d.type_id, t.name \ from cci_missions_dossier as d,cci_missions_dossier_type as t, cci_missions_legalization as l \ where l.dossier_id = d.id and d.type_id=t.id and ( d.date::date BETWEEN '%s' AND '%s' )\ group by type_id,t.name,t.section, t.id" % (d1, d2)) res_leg = self.cr.dictfetchall()
|
def _get_missions_states(self, d1, d2): self.cr.execute("select t.section, count(t.id) as no_certi, sum(goods_value) as no_goods, \ sum(sub_total) as total_sub, type_id, t.name \ from cci_missions_dossier as d,cci_missions_dossier_type as t \ where d.type_id=t.id and ( t.create_date BETWEEN '%s' AND '%s' )\ group by type_id,t.name,t.section, t.id" % (d1, d2)) res_ata = self.cr.dictfetchall()
|
9f092a99a526fdd09f626e0c2a44007c857cb559 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9f092a99a526fdd09f626e0c2a44007c857cb559/stats_mission_type.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7300,
67,
7992,
12,
2890,
16,
302,
21,
16,
302,
22,
4672,
365,
18,
3353,
18,
8837,
2932,
4025,
268,
18,
3464,
16,
1056,
12,
88,
18,
350,
13,
487,
1158,
67,
7593,
77,
16,
2142,
12,
19747,
87,
67,
1132,
13,
487,
1158,
67,
19747,
87,
16,
225,
521,
2142,
12,
1717,
67,
4963,
13,
487,
2078,
67,
1717,
16,
618,
67,
350,
16,
268,
18,
529,
225,
521,
628,
4946,
77,
67,
7300,
67,
72,
8464,
2453,
487,
302,
16,
952,
77,
67,
7300,
67,
72,
8464,
2453,
67,
723,
487,
268,
521,
1625,
302,
18,
723,
67,
350,
33,
88,
18,
350,
225,
471,
261,
268,
18,
2640,
67,
712,
225,
25178,
1995,
87,
11,
4116,
1995,
87,
11,
262,
64,
1041,
635,
618,
67,
350,
16,
88,
18,
529,
16,
88,
18,
3464,
16,
268,
18,
350,
6,
738,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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,
389,
588,
67,
7300,
67,
7992,
12,
2890,
16,
302,
21,
16,
302,
22,
4672,
365,
18,
3353,
18,
8837,
2932,
4025,
268,
18,
3464,
16,
1056,
12,
88,
18,
350,
13,
487,
1158,
67,
7593,
77,
16,
2142,
12,
19747,
87,
67,
1132,
13,
487,
1158,
67,
19747,
87,
16,
225,
521,
2142,
12,
1717,
67,
4963,
13,
487,
2078,
67,
1717,
16,
618,
67,
350,
16,
268,
18,
529,
225,
521,
628,
4946,
77,
67,
7300,
67,
72,
8464,
2453,
487,
302,
16,
952,
77,
67,
7300,
67,
72,
8464,
2453,
67,
723,
487,
268,
521,
1625,
302,
18,
723,
67,
350,
33,
88,
18,
350,
225,
471,
261,
268,
18,
2640,
67,
712,
225,
25178,
2
] |
elif (os.path.isfile(source_file)
|
elif (op.isfile(source_file)
|
def write_dispatcher(self, source_file, target_file): reg = self._dispatcher_registry.setdefault(target_file, source_file) if (reg != source_file): if (not os.path.isfile(reg)): self._dispatcher_registry[target_file] = source_file elif (os.path.isfile(source_file) and ( not hasattr(os.path, "samefile") or not os.path.samefile(reg, source_file)) and self.abs_path_short(abs_path=reg) != self.abs_path_short(abs_path=source_file)): raise Sorry("Multiple sources for dispatcher:\n" + " target file:\n" + " %s\n" % show_string(target_file) + " source files:\n" + " %s\n" % show_string(reg) + " %s" % show_string(source_file)) if (os.name == "nt"): action = self.write_win32_dispatcher ext = ".exe" else: action = self.write_bin_sh_dispatcher ext = "" target_file_ext = target_file + ext remove_or_rename(target_file_ext) try: action(source_file, target_file_ext) except IOError, e: print " Ignored:", e
|
621ff93ea6f104ac4c6d943d7e9d6c18b1468502 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/621ff93ea6f104ac4c6d943d7e9d6c18b1468502/env_config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
18495,
12,
2890,
16,
1084,
67,
768,
16,
1018,
67,
768,
4672,
960,
273,
365,
6315,
18495,
67,
9893,
18,
542,
1886,
12,
3299,
67,
768,
16,
1084,
67,
768,
13,
309,
261,
1574,
480,
1084,
67,
768,
4672,
309,
261,
902,
1140,
18,
803,
18,
291,
768,
12,
1574,
3719,
30,
365,
6315,
18495,
67,
9893,
63,
3299,
67,
768,
65,
273,
1084,
67,
768,
1327,
261,
556,
18,
291,
768,
12,
3168,
67,
768,
13,
471,
261,
282,
486,
3859,
12,
538,
18,
803,
16,
315,
14307,
768,
7923,
578,
486,
1140,
18,
803,
18,
14307,
768,
12,
1574,
16,
1084,
67,
768,
3719,
471,
565,
365,
18,
5113,
67,
803,
67,
6620,
12,
5113,
67,
803,
33,
1574,
13,
480,
365,
18,
5113,
67,
803,
67,
6620,
12,
5113,
67,
803,
33,
3168,
67,
768,
3719,
30,
1002,
348,
21637,
2932,
8438,
5550,
364,
7393,
5581,
82,
6,
397,
315,
225,
1018,
585,
5581,
82,
6,
397,
315,
565,
738,
87,
64,
82,
6,
738,
2405,
67,
1080,
12,
3299,
67,
768,
13,
397,
315,
225,
1084,
1390,
5581,
82,
6,
397,
315,
565,
738,
87,
64,
82,
6,
738,
2405,
67,
1080,
12,
1574,
13,
397,
315,
565,
738,
87,
6,
738,
2405,
67,
1080,
12,
3168,
67,
768,
3719,
309,
261,
538,
18,
529,
422,
315,
496,
6,
4672,
1301,
273,
365,
18,
2626,
67,
8082,
1578,
67,
18495,
1110,
273,
3552,
14880,
6,
469,
30,
1301,
273,
365,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
18495,
12,
2890,
16,
1084,
67,
768,
16,
1018,
67,
768,
4672,
960,
273,
365,
6315,
18495,
67,
9893,
18,
542,
1886,
12,
3299,
67,
768,
16,
1084,
67,
768,
13,
309,
261,
1574,
480,
1084,
67,
768,
4672,
309,
261,
902,
1140,
18,
803,
18,
291,
768,
12,
1574,
3719,
30,
365,
6315,
18495,
67,
9893,
63,
3299,
67,
768,
65,
273,
1084,
67,
768,
1327,
261,
556,
18,
291,
768,
12,
3168,
67,
768,
13,
471,
261,
282,
486,
3859,
12,
538,
18,
803,
16,
315,
14307,
768,
7923,
578,
486,
1140,
18,
803,
18,
14307,
768,
12,
1574,
16,
1084,
67,
768,
3719,
471,
565,
365,
18,
5113,
67,
803,
67,
6620,
12,
2
] |
def __init__(self, order=None, params=None,
|
def __init__(self, order, params=None,
|
def __init__(self, order=None, params=None, xmin=-1., xmax=1., ooimode='constant', dtype=0): modes = "constant zeroth extrapolate cyclic edge".split() if not ooimode in modes: raise ValueError("Unrecognized ooimode") mode = {'interval': [float(xmin),float(xmax)], 'intervalMode': ooimode, 'default': float(0.0) }; functional.__init__(self, name="chebyshev", order=order, params= params, mode=mode, dtype=dtype) if params is None: self.set_parameters([v+1. for v in self.parameters()])
|
181fc45332a548d05739eb951d6b72074ad435a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/181fc45332a548d05739eb951d6b72074ad435a8/functional.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1353,
16,
859,
33,
7036,
16,
13777,
29711,
21,
12990,
14016,
33,
21,
12990,
320,
83,
381,
390,
2218,
14384,
2187,
3182,
33,
20,
4672,
12382,
273,
315,
14384,
24910,
10370,
7582,
438,
30144,
30383,
3591,
9654,
4939,
1435,
309,
486,
320,
83,
381,
390,
316,
12382,
30,
1002,
2068,
2932,
19648,
320,
83,
381,
390,
7923,
1965,
273,
13666,
6624,
4278,
306,
5659,
12,
92,
1154,
3631,
5659,
12,
92,
1896,
13,
6487,
296,
6624,
2309,
4278,
320,
83,
381,
390,
16,
296,
1886,
4278,
1431,
12,
20,
18,
20,
13,
289,
31,
18699,
16186,
2738,
972,
12,
2890,
16,
508,
1546,
18706,
1637,
87,
580,
90,
3113,
1353,
33,
1019,
16,
859,
33,
859,
16,
1965,
33,
3188,
16,
3182,
33,
8972,
13,
309,
859,
353,
599,
30,
365,
18,
542,
67,
3977,
3816,
90,
15,
21,
18,
364,
331,
316,
365,
18,
3977,
1435,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
3182,
33,
20,
4672,
12382,
273,
315,
14384,
24910,
10370,
7582,
438,
30144,
30383,
3591,
9654,
4939,
1435,
309,
486,
320,
83,
381,
390,
316,
12382,
30,
1002,
2068,
2932,
19648,
320,
83,
381,
390,
7923,
1965,
273,
13666,
6624,
4278,
306,
5659,
12,
92,
1154,
3631,
5659,
12,
92,
1896,
13,
6487,
296,
6624,
2309,
4278,
320,
83,
381,
390,
16,
296,
1886,
4278,
1431,
12,
20,
18,
20,
13,
289,
31,
18699,
16186,
2738,
972,
12,
2890,
16,
508,
1546,
18706,
1637,
87,
580,
90,
3113,
1353,
33,
1019,
2
] |
label = "Import material from the Crystallography Open Database", id = self.experiment_id), director.cgihome)] p.text += [action_href(actionRequireAuthentication(
|
label = "Import material from the Crystallography Open Database<br>", id = self.inventory.id ), director.cgihome)] p.text += [action_link(actionRequireAuthentication(
|
def create_new_sample(self, director): try: page = director.retrieveSecurePage( 'neutronexperimentwizard' ) except AuthenticationError, err: return err.page
|
e9fbac8f71b9f6b8c6aa9f36455c6a2d106f7f16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/578/e9fbac8f71b9f6b8c6aa9f36455c6a2d106f7f16/NeutronExperimentWizard.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2704,
67,
6358,
12,
2890,
16,
2657,
280,
4672,
775,
30,
1363,
273,
2657,
280,
18,
17466,
12834,
1964,
12,
296,
4644,
14566,
265,
18142,
31837,
11,
262,
1335,
8665,
668,
16,
393,
30,
327,
393,
18,
2433,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2704,
67,
6358,
12,
2890,
16,
2657,
280,
4672,
775,
30,
1363,
273,
2657,
280,
18,
17466,
12834,
1964,
12,
296,
4644,
14566,
265,
18142,
31837,
11,
262,
1335,
8665,
668,
16,
393,
30,
327,
393,
18,
2433,
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
] |
scattering_type = eltbx.xray_scattering.it1992( scattering_type, exact_scattering_type).label()
|
scattering_type = eltbx.xray_scattering.get_standard_label( label=scattering_type, exact=exact_scattering_type)
|
def extract_xray_structure(self, special_position_settings=None, crystal_symmetry=None, force_symmetry=False, sites_cart=None, sites_frac=None, site_symmetry_table=None, scattering_types=None, infer_scattering_types_from_names=False, unknown_scattering_type_substitute=None): assert sites_cart is None or sites_frac is None if (infer_scattering_types_from_names): assert scattering_types is None if ( unknown_scattering_type_substitute is not None and unknown_scattering_type_substitute not in ["", "?"]): try: unknown_scattering_type_substitute = eltbx.xray_scattering.it1992( unknown_scattering_type_substitute, True).label() except: raise RuntimeError( 'unknown_scattering_type_substitute="%s"' % unknown_scattering_type_substitute + ' is not a valid scattering type label.') special_position_settings = self.get_special_position_settings( special_position_settings=special_position_settings, crystal_symmetry=crystal_symmetry, force_symmetry=force_symmetry) if (special_position_settings is None): raise RuntimeError("Crystal symmetry not defined.") result = xray.structure( special_position_settings=special_position_settings) if (sites_cart is None): sites_cart = self.get_sites_cart() if (sites_frac is None): sites_frac = result.unit_cell().fractionalize(sites_cart=sites_cart) if (site_symmetry_table is not None): assert site_symmetry_table.indices().size() == sites_frac.size() if (scattering_types is None): scattering_types = self.get_element_symbols(strip_symbols=True) site_symmetry_ops = None for i_seq,atom,site_frac,scattering_type in zip( count(), self.atom_attributes_list, sites_frac, scattering_types): exact_scattering_type = True if (scattering_type == "" and infer_scattering_types_from_names): scattering_type = atom.name if (scattering_type[0] in "0123456789"): scattering_type = scattering_type[1:] exact_scattering_type = False try: scattering_type = eltbx.xray_scattering.it1992( scattering_type, exact_scattering_type).label() except RuntimeError: if (unknown_scattering_type_substitute is None): raise RuntimeError("Unknown scattering type: %s" % str(atom)) scattering_type = unknown_scattering_type_substitute if (atom.Ucart is None): u = adptbx.b_as_u(atom.tempFactor) else: u = adptbx.u_cart_as_u_star(result.unit_cell(), atom.Ucart) if (site_symmetry_table is not None): site_symmetry_ops = site_symmetry_table.get(i_seq=i_seq) result.add_scatterer( scatterer=xray.scatterer( label=atom.pdb_format(), site=site_frac, u=u, occupancy=atom.occupancy, scattering_type=scattering_type), site_symmetry_ops=site_symmetry_ops) return result
|
25c5a305bd4bb7ef1d3f285273942c6f32e9b91d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/25c5a305bd4bb7ef1d3f285273942c6f32e9b91d/interpretation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
92,
435,
67,
7627,
12,
2890,
16,
4582,
67,
3276,
67,
4272,
33,
7036,
16,
4422,
31365,
67,
8117,
18042,
33,
7036,
16,
2944,
67,
8117,
18042,
33,
8381,
16,
9180,
67,
11848,
33,
7036,
16,
9180,
67,
22187,
33,
7036,
16,
2834,
67,
8117,
18042,
67,
2121,
33,
7036,
16,
14644,
310,
67,
2352,
33,
7036,
16,
12455,
67,
31320,
310,
67,
2352,
67,
2080,
67,
1973,
33,
8381,
16,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
33,
7036,
4672,
1815,
9180,
67,
11848,
353,
599,
578,
9180,
67,
22187,
353,
599,
309,
261,
25889,
67,
31320,
310,
67,
2352,
67,
2080,
67,
1973,
4672,
1815,
14644,
310,
67,
2352,
353,
599,
309,
261,
565,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
353,
486,
599,
471,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
486,
316,
8247,
3113,
13574,
65,
4672,
775,
30,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
273,
11572,
70,
92,
18,
92,
435,
67,
31320,
310,
18,
305,
19818,
22,
12,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
16,
1053,
2934,
1925,
1435,
1335,
30,
1002,
7265,
12,
296,
8172,
67,
31320,
310,
67,
723,
67,
1717,
17207,
11613,
87,
5187,
738,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
397,
296,
353,
486,
279,
923,
14644,
310,
618,
1433,
1093,
13,
4582,
67,
3276,
67,
4272,
273,
365,
18,
588,
67,
9371,
67,
3276,
67,
4272,
12,
4582,
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,
2608,
67,
92,
435,
67,
7627,
12,
2890,
16,
4582,
67,
3276,
67,
4272,
33,
7036,
16,
4422,
31365,
67,
8117,
18042,
33,
7036,
16,
2944,
67,
8117,
18042,
33,
8381,
16,
9180,
67,
11848,
33,
7036,
16,
9180,
67,
22187,
33,
7036,
16,
2834,
67,
8117,
18042,
67,
2121,
33,
7036,
16,
14644,
310,
67,
2352,
33,
7036,
16,
12455,
67,
31320,
310,
67,
2352,
67,
2080,
67,
1973,
33,
8381,
16,
5917,
67,
31320,
310,
67,
723,
67,
1717,
17207,
33,
7036,
4672,
1815,
9180,
67,
11848,
353,
599,
578,
9180,
67,
22187,
353,
599,
309,
261,
25889,
67,
31320,
310,
67,
2352,
67,
2080,
67,
1973,
4672,
1815,
14644,
310,
67,
2352,
353,
599,
309,
2
] |
'''Delete row from chunk table by id'''
|
'''Delete row from chunk table by id'''
|
def chunk_delete_id(self, chunk_id):
|
1529a2b14e10f76cb017262bcf3aee397a2818f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8549/1529a2b14e10f76cb017262bcf3aee397a2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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,
2441,
67,
3733,
67,
350,
12,
2890,
16,
2441,
67,
350,
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
] |
except:
|
except KeyError:
|
def accept_drop(self, table_view, model, type, source_actions, parent, position, data): if (type in ('feed', 'feed-with-folder') and self.tablist == app.tab_list_manager.audio_feed_list): source_tablist = app.tab_list_manager.feed_list dest_tablist = self.tablist elif (type in ('audio-feed', 'audio-feed-with-folder') and self.tablist == app.tab_list_manager.feed_list): source_tablist = app.tab_list_manager.audio_feed_list dest_tablist = self.tablist else: source_tablist = dest_tablist = self.tablist selected_infos = app.tab_list_manager.get_selection()[1] selected_rows = [info.id for info in selected_infos] source_tablist.doing_change = dest_tablist.doing_change = True source_tablist.view.unselect_all() dest_tablist.view.unselect_all() dragged_ids = set([int(id) for id in data.split('-')]) expanded_rows = [id for id in dragged_ids if \ source_tablist.view.is_row_expanded(source_tablist.iter_map[id])] reorderer = TabDnDReorder() try: new_iters = reorderer.reorder( source_tablist.view.model, dest_tablist.view.model, parent, position, dragged_ids)
|
bc94056163a1721db746c32c79c104aed06ef672 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/bc94056163a1721db746c32c79c104aed06ef672/tablist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
67,
7285,
12,
2890,
16,
1014,
67,
1945,
16,
938,
16,
618,
16,
1084,
67,
4905,
16,
982,
16,
1754,
16,
501,
4672,
309,
261,
723,
316,
7707,
7848,
2187,
296,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
11509,
67,
7848,
67,
1098,
4672,
1084,
67,
7032,
1098,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
1327,
261,
723,
316,
7707,
11509,
17,
7848,
2187,
296,
11509,
17,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
4672,
1084,
67,
7032,
1098,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
11509,
67,
7848,
67,
1098,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
469,
30,
1084,
67,
7032,
1098,
273,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
3170,
67,
18227,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
588,
67,
10705,
1435,
63,
21,
65,
3170,
67,
3870,
273,
306,
1376,
18,
350,
364,
1123,
316,
3170,
67,
18227,
65,
1084,
67,
7032,
1098,
18,
2896,
310,
67,
3427,
273,
1570,
67,
7032,
1098,
18,
2896,
310,
67,
3427,
273,
1053,
1084,
67,
7032,
1098,
18,
1945,
18,
318,
4025,
67,
454,
1435,
1570,
67,
7032,
1098,
18,
1945,
18,
318,
4025,
67,
454,
1435,
8823,
2423,
67,
2232,
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,
2791,
67,
7285,
12,
2890,
16,
1014,
67,
1945,
16,
938,
16,
618,
16,
1084,
67,
4905,
16,
982,
16,
1754,
16,
501,
4672,
309,
261,
723,
316,
7707,
7848,
2187,
296,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
11509,
67,
7848,
67,
1098,
4672,
1084,
67,
7032,
1098,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
1327,
261,
723,
316,
7707,
11509,
17,
7848,
2187,
296,
11509,
17,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
2
] |
self.dataMin = None self.dataMax = None
|
def __init__(self, master,
|
4e35e7dfcacf352e70e7e9ef698593a84d740a52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/4e35e7dfcacf352e70e7e9ef698593a84d740a52/GrayImageDispWdg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
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
] |
|
print "set field" print repr(newdata) print mutator
|
def checklink(match): matched = match.group(0) newlink = link = match.group('href') classification, uid, relpath, tail = self.classifyLink(link, base)
|
877e6dc1e1a56805e9f55bed9cf08b4b829b9a9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/877e6dc1e1a56805e9f55bed9cf08b4b829b9a9a/html2captioned.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1232,
12,
1916,
4672,
4847,
273,
845,
18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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1232,
12,
1916,
4672,
4847,
273,
845,
18,
1655,
12,
20,
13,
394,
1232,
273,
1692,
273,
845,
18,
1655,
2668,
7547,
6134,
13804,
16,
4555,
16,
14614,
16,
5798,
273,
365,
18,
1106,
1164,
2098,
12,
1232,
16,
1026,
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
] |
|
sys.stdout.write("--> %s --- " % t.test_name)
|
def main(argv=None): if argv is None: args = sys.argv usage = "Usage: ./runtests.py [options]\n\n" + BIG_WARNING parser = optparse.OptionParser(usage=usage) parser.add_option("-l", "--list-tests", action="store_true", dest="list_tests", default=False, help="List tests instead of running them.") (options, args) = parser.parse_args(argv) # Check to see if this has been executed within a sub directory of an # Asterisk source tree. This is required so that we can execute # install and uninstall targets of the Asterisk Makefile in between # tests. if os.path.exists("../main/asterisk.c") is False: print "*** ERROR ***\n" \ "runtests has not been executed from within a\n" \ "subdirectory of an Asterisk source tree. This\n" \ "is required for being able to uninstall and install\n" \ "Asterisk in between tests.\n" \ "***************\n" return 1 ast_version = AsteriskVersion() test_suite = TestSuite(ast_version) if options.list_tests is True: print "Asterisk Version: %s\n" % str(ast_version) test_suite.list_tests() return 0 if os.geteuid() != 0: print "You must run this script as root." print BIG_WARNING return 1 print "Running tests for Asterisk %s ...\n" % str(ast_version) test_suite.run(ast_version) print "\n=== TEST RESULTS ===" for t in test_suite.tests: if t.can_run is False: continue sys.stdout.write("--> %s --- " % t.test_name) if t.passed is True: print "PASSED" else: print "FAILED" print "\n" test_suite.write_results_xml(TEST_RESULTS, stdout=True)
|
d2a3f2a7b5484a3e645c0010d6328c0b07fdebd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6013/d2a3f2a7b5484a3e645c0010d6328c0b07fdebd1/runtests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
833,
273,
2589,
18,
19485,
225,
4084,
273,
315,
5357,
30,
263,
19,
2681,
16341,
18,
2074,
306,
2116,
13944,
82,
64,
82,
6,
397,
18855,
67,
9511,
225,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
80,
3113,
5238,
1098,
17,
16341,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
1098,
67,
16341,
3113,
805,
33,
8381,
16,
2809,
1546,
682,
7434,
3560,
434,
3549,
2182,
1199,
13,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
12,
19485,
13,
225,
468,
2073,
358,
2621,
309,
333,
711,
2118,
7120,
3470,
279,
720,
1867,
434,
392,
468,
432,
8190,
10175,
1084,
2151,
18,
225,
1220,
353,
1931,
1427,
716,
732,
848,
1836,
468,
3799,
471,
16577,
5774,
434,
326,
432,
8190,
10175,
4344,
768,
316,
3086,
468,
7434,
18,
309,
1140,
18,
803,
18,
1808,
2932,
6216,
5254,
19,
2440,
10175,
18,
71,
7923,
353,
1083,
30,
1172,
315,
14465,
225,
5475,
225,
18852,
64,
82,
6,
521,
315,
2681,
16341,
711,
486,
2118,
7120,
628,
3470,
279,
64,
82,
6,
521,
315,
1717,
5149,
434,
392,
432,
8190,
10175,
1084,
2151,
18,
225,
1220,
64,
82,
6,
521,
315,
291,
1931,
364,
3832,
7752,
358,
16577,
471,
3799,
64,
82,
6,
521,
315,
37,
8190,
10175,
316,
3086,
7434,
8403,
82,
6,
521,
315,
1644,
11345,
12174,
82,
6,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
833,
273,
2589,
18,
19485,
225,
4084,
273,
315,
5357,
30,
263,
19,
2681,
16341,
18,
2074,
306,
2116,
13944,
82,
64,
82,
6,
397,
18855,
67,
9511,
225,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
80,
3113,
5238,
1098,
17,
16341,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
1098,
67,
16341,
3113,
805,
33,
8381,
16,
2809,
1546,
682,
7434,
3560,
434,
3549,
2182,
1199,
13,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
12,
19485,
13,
225,
468,
2073,
358,
2621,
309,
333,
711,
2118,
7120,
3470,
279,
2
] |
|
nuconfig["nuauth_tls_cacert"] = cacert
|
nuconfig["nuauth_tls_cacert"] = '"%s"' % cacert
|
def setUp(self): nuconfig = NuauthConf()
|
47f3c2aac295ba64b00c7e5eac2a018245c72f69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/47f3c2aac295ba64b00c7e5eac2a018245c72f69/test_cert_auth.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
9244,
1425,
273,
20123,
1944,
3976,
1435,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
9244,
1425,
273,
20123,
1944,
3976,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.plist.CFBundleExecutable = self.name
|
def setup(self): if self.mainprogram is None and self.executable is None: raise TypeError, ("must specify either or both of " "'executable' and 'mainprogram'")
|
d9c5e6233902df9129b9a0b435bbc9340286cf5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d9c5e6233902df9129b9a0b435bbc9340286cf5e/bundlebuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
309,
365,
18,
5254,
12890,
353,
599,
471,
365,
18,
17751,
353,
599,
30,
1002,
3580,
16,
7566,
11926,
4800,
3344,
578,
3937,
434,
315,
2491,
17751,
11,
471,
296,
5254,
12890,
4970,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
309,
365,
18,
5254,
12890,
353,
599,
471,
365,
18,
17751,
353,
599,
30,
1002,
3580,
16,
7566,
11926,
4800,
3344,
578,
3937,
434,
315,
2491,
17751,
11,
471,
296,
5254,
12890,
4970,
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
] |
|
for i in range(plot_points+1):
|
for i in range(plot_points):
|
def _call(self, funcs, xrange, parametric=False, polar=False, label='', **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v
|
d274024cc5c2eb3dc7cb77f27b21fc757fe9e529 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d274024cc5c2eb3dc7cb77f27b21fc757fe9e529/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
15630,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
1433,
2218,
2187,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
63,
79,
65,
273,
331,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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332,
702,
63,
79,
65,
273,
331,
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
] |
if self.stream.readBytes(0, len(MarkerBlock.magic)) != MarkerBlock.magic:
|
magic = self.MAGIC if self.stream.readBytes(0, len(magic)) != magic:
|
def validate(self): if self.stream.readBytes(0, len(MarkerBlock.magic)) != MarkerBlock.magic: return "Invalid magic" return True
|
0b8280a0e33b5a86c9fcd19254d8217b392a5ba3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/0b8280a0e33b5a86c9fcd19254d8217b392a5ba3/rar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
4672,
8146,
273,
365,
18,
49,
22247,
309,
365,
18,
3256,
18,
896,
2160,
12,
20,
16,
562,
12,
11179,
3719,
480,
8146,
30,
327,
315,
1941,
8146,
6,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
4672,
8146,
273,
365,
18,
49,
22247,
309,
365,
18,
3256,
18,
896,
2160,
12,
20,
16,
562,
12,
11179,
3719,
480,
8146,
30,
327,
315,
1941,
8146,
6,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
opt_name = string.translate(opt_name, longopt_xlate) val = getattr(self, opt_name)
|
if self.negative_opt.has_key(opt_name): opt_name = string.translate(self.negative_opt[opt_name], longopt_xlate) val = not getattr(self, opt_name) else: opt_name = string.translate(opt_name, longopt_xlate) val = getattr(self, opt_name)
|
def dump_dirs (self, msg): if DEBUG: from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate(opt_name, longopt_xlate) val = getattr(self, opt_name) print " %s: %s" % (opt_name, val)
|
b91cfb90796ece14c534cec38f3210b2dea67cba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b91cfb90796ece14c534cec38f3210b2dea67cba/install.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
8291,
261,
2890,
16,
1234,
4672,
309,
6369,
30,
628,
2411,
5471,
18,
74,
12514,
67,
588,
3838,
1930,
1525,
3838,
67,
18402,
340,
1172,
1234,
397,
6153,
364,
2153,
316,
365,
18,
1355,
67,
2116,
30,
2153,
67,
529,
273,
2153,
63,
20,
65,
309,
2153,
67,
529,
18919,
21,
65,
422,
9671,
30,
2153,
67,
529,
273,
2153,
67,
529,
63,
20,
30,
17,
21,
65,
309,
365,
18,
13258,
67,
3838,
18,
5332,
67,
856,
12,
3838,
67,
529,
4672,
2153,
67,
529,
273,
533,
18,
13929,
12,
2890,
18,
13258,
67,
3838,
63,
3838,
67,
529,
6487,
1525,
3838,
67,
18402,
340,
13,
1244,
273,
486,
3869,
12,
2890,
16,
2153,
67,
529,
13,
469,
30,
2153,
67,
529,
273,
533,
18,
13929,
12,
3838,
67,
529,
16,
1525,
3838,
67,
18402,
340,
13,
1244,
273,
3869,
12,
2890,
16,
2153,
67,
529,
13,
1172,
315,
225,
738,
87,
30,
738,
87,
6,
738,
261,
3838,
67,
529,
16,
1244,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
8291,
261,
2890,
16,
1234,
4672,
309,
6369,
30,
628,
2411,
5471,
18,
74,
12514,
67,
588,
3838,
1930,
1525,
3838,
67,
18402,
340,
1172,
1234,
397,
6153,
364,
2153,
316,
365,
18,
1355,
67,
2116,
30,
2153,
67,
529,
273,
2153,
63,
20,
65,
309,
2153,
67,
529,
18919,
21,
65,
422,
9671,
30,
2153,
67,
529,
273,
2153,
67,
529,
63,
20,
30,
17,
21,
65,
309,
365,
18,
13258,
67,
3838,
18,
5332,
67,
856,
12,
3838,
67,
529,
4672,
2153,
67,
529,
273,
533,
18,
13929,
12,
2890,
18,
13258,
67,
3838,
63,
3838,
67,
529,
6487,
1525,
3838,
67,
18402,
340,
13,
1244,
273,
486,
3869,
12,
2890,
16,
2153,
67,
2
] |
optionflags=REPORT_NDIFF|ELLIPSIS
|
optionflags=REPORT_NDIFF|ELLIPSIS, module_relative=False,
|
def test_suite(): return unittest.TestSuite(( DocFileSuite( os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..','..','README.txt')), optionflags=REPORT_NDIFF|ELLIPSIS ), ))
|
cfa447345337f148ec2a03b57a451c7d62bc216e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9869/cfa447345337f148ec2a03b57a451c7d62bc216e/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
30676,
13332,
327,
2836,
3813,
18,
4709,
13587,
12443,
3521,
812,
13587,
12,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
11,
838,
17023,
838,
17023,
838,
17023,
6949,
958,
18,
5830,
6134,
3631,
1456,
7133,
33,
22710,
67,
24513,
2246,
96,
2247,
2053,
52,
15664,
16,
1605,
67,
11626,
33,
8381,
16,
262,
16,
8623,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
30676,
13332,
327,
2836,
3813,
18,
4709,
13587,
12443,
3521,
812,
13587,
12,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
11,
838,
17023,
838,
17023,
838,
17023,
6949,
958,
18,
5830,
6134,
3631,
1456,
7133,
33,
22710,
67,
24513,
2246,
96,
2247,
2053,
52,
15664,
16,
1605,
67,
11626,
33,
8381,
16,
262,
16,
8623,
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
] |
gp.path = line[10:].rstrip()
|
gp.path = line[10:]
|
def readgitpatch(lr): """extract git-style metadata about patches from <patchname>""" # Filter patch for git information gp = None gitpatches = [] # Can have a git patch with only metadata, causing patch to complain dopatch = 0 lineno = 0 for line in lr: lineno += 1 if line.startswith('diff --git'): m = gitre.match(line) if m: if gp: gitpatches.append(gp) src, dst = m.group(1, 2) gp = patchmeta(dst) gp.lineno = lineno elif gp: if line.startswith('--- '): if gp.op in ('COPY', 'RENAME'): dopatch |= GP_FILTER gitpatches.append(gp) gp = None dopatch |= GP_PATCH continue if line.startswith('rename from '): gp.op = 'RENAME' gp.oldpath = line[12:].rstrip() elif line.startswith('rename to '): gp.path = line[10:].rstrip() elif line.startswith('copy from '): gp.op = 'COPY' gp.oldpath = line[10:].rstrip() elif line.startswith('copy to '): gp.path = line[8:].rstrip() elif line.startswith('deleted file'): gp.op = 'DELETE' # is the deleted file a symlink? gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('new file mode '): gp.op = 'ADD' gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('new mode '): gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('GIT binary patch'): dopatch |= GP_BINARY gp.binary = True if gp: gitpatches.append(gp) if not gitpatches: dopatch = GP_PATCH return (dopatch, gitpatches)
|
be5497a5fc601c2dd2fa6a4688b100383b0f1202 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/be5497a5fc601c2dd2fa6a4688b100383b0f1202/patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6845,
2272,
12,
10826,
4672,
3536,
8004,
5071,
17,
4060,
1982,
2973,
16482,
628,
411,
2272,
529,
2984,
3660,
225,
468,
4008,
4729,
364,
5071,
1779,
4178,
273,
599,
5071,
30278,
273,
5378,
468,
4480,
1240,
279,
5071,
4729,
598,
1338,
1982,
16,
25416,
4729,
358,
532,
7446,
302,
556,
505,
273,
374,
225,
7586,
273,
374,
364,
980,
316,
12226,
30,
7586,
1011,
404,
309,
980,
18,
17514,
1918,
2668,
5413,
1493,
6845,
11,
4672,
312,
273,
5071,
266,
18,
1916,
12,
1369,
13,
309,
312,
30,
309,
4178,
30,
5071,
30278,
18,
6923,
12,
6403,
13,
1705,
16,
3046,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
4178,
273,
4729,
3901,
12,
11057,
13,
4178,
18,
17782,
273,
7586,
1327,
4178,
30,
309,
980,
18,
17514,
1918,
2668,
6062,
296,
4672,
309,
4178,
18,
556,
316,
7707,
24875,
2187,
296,
862,
1985,
11,
4672,
302,
556,
505,
5626,
4948,
67,
11126,
5071,
30278,
18,
6923,
12,
6403,
13,
4178,
273,
599,
302,
556,
505,
5626,
4948,
67,
20366,
1324,
309,
980,
18,
17514,
1918,
2668,
18539,
628,
296,
4672,
4178,
18,
556,
273,
296,
862,
1985,
11,
4178,
18,
1673,
803,
273,
980,
63,
2138,
30,
8009,
86,
6406,
1435,
1327,
980,
18,
17514,
1918,
2668,
18539,
358,
296,
4672,
4178,
18,
803,
273,
980,
63,
2163,
26894,
1327,
980,
18,
17514,
1918,
2668,
3530,
628,
296,
4672,
4178,
18,
556,
273,
296,
24875,
11,
4178,
18,
1673,
803,
273,
980,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6845,
2272,
12,
10826,
4672,
3536,
8004,
5071,
17,
4060,
1982,
2973,
16482,
628,
411,
2272,
529,
2984,
3660,
225,
468,
4008,
4729,
364,
5071,
1779,
4178,
273,
599,
5071,
30278,
273,
5378,
468,
4480,
1240,
279,
5071,
4729,
598,
1338,
1982,
16,
25416,
4729,
358,
532,
7446,
302,
556,
505,
273,
374,
225,
7586,
273,
374,
364,
980,
316,
12226,
30,
7586,
1011,
404,
309,
980,
18,
17514,
1918,
2668,
5413,
1493,
6845,
11,
4672,
312,
273,
5071,
266,
18,
1916,
12,
1369,
13,
309,
312,
30,
309,
4178,
30,
5071,
30278,
18,
6923,
12,
6403,
13,
1705,
16,
3046,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
4178,
273,
4729,
3901,
12,
11057,
13,
2
] |
if gemtype == 'Unused': continue
|
def restoreItem(self, item): if item is None: return wasnocalc = self.nocalc self.nocalc = 1 itemtype = item.ActiveState if itemtype == 'player': self.PlayerMade.setChecked(1) self.showPlayerWidgets() typelist = list(TypeList) else: self.Drop.setChecked(1) self.showDropWidgets() typelist = list(DropTypeList) self.ItemLevel.setText(item.Level) location = item.Location self.Equipped.setChecked(int(item.Equipped)) for slot in range(0, item.slotCount()): typecombo = self.Type[slot] typecombo.clear() if slot == 4 and itemtype == 'player': typelist = list(EffectTypeList) gemtype = str(item.slot(slot).type()) if not gemtype in typelist: typelist.append(gemtype) typecombo.insertItems(0, list(typelist)) typecombo.setCurrentIndex(typelist.index(gemtype)) self.UpdateCombo(0, slot) if gemtype == 'Unused': continue gemeffect = str(item.slot(slot).effect()) effect = self.Effect[slot].findText(gemeffect) if len(gemeffect) and effect < 0: if not self.Effect[slot].isEditable(): self.Effect[slot].setEditable(True) self.Effect[slot].setEditText(gemeffect) else: self.Effect[slot].setCurrentIndex(effect) self.UpdateCombo(1, slot) if itemtype == 'drop': self.AmountEdit[slot].setText(item.slot(slot).amount()) else: gemamount = item.slot(slot).amount() if ValuesLists.has_key(gemtype): if isinstance(ValuesLists[gemtype], tuple): amountlist = ValuesLists[gemtype] else: if ValuesLists[gemtype].has_key(gemeffect): amountlist = ValuesLists[gemtype][gemeffect] if gemamount in amountlist: self.AmountDrop[slot].setCurrentIndex(amountlist.index(gemamount)) quacombo = self.Quality[slot] gemqua = item.slot(slot).qua() if gemqua in QualityValues: if quacombo.count() > 0: quacombo.setCurrentIndex(QualityValues.index(gemqua)) self.AFDPS_Edit.setText(item.AFDPS) self.Speed_Edit.setText(item.Speed) self.Bonus_Edit.setText(item.Bonus) if itemtype == 'drop': self.QualEdit.setText(item.ItemQuality) self.ItemName.setText(item.ItemName) else: if item.ItemQuality in QualityValues: self.QualDrop.setCurrentIndex( QualityValues.index(item.ItemQuality)) self.nocalc = wasnocalc if self.nocalc: return self.calculate()
|
a7a1482adf6420f7ec7655d474d874c497851ff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/a7a1482adf6420f7ec7655d474d874c497851ff3/ScWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
1180,
12,
2890,
16,
761,
4672,
309,
761,
353,
599,
30,
327,
14487,
23735,
71,
273,
365,
18,
82,
23735,
71,
365,
18,
82,
23735,
71,
273,
404,
761,
723,
273,
761,
18,
3896,
1119,
309,
761,
723,
422,
296,
14872,
4278,
365,
18,
12148,
49,
2486,
18,
542,
11454,
12,
21,
13,
365,
18,
4500,
12148,
16166,
1435,
3815,
5449,
273,
666,
12,
559,
682,
13,
469,
30,
365,
18,
7544,
18,
542,
11454,
12,
21,
13,
365,
18,
4500,
7544,
16166,
1435,
3815,
5449,
273,
666,
12,
7544,
559,
682,
13,
365,
18,
1180,
2355,
18,
542,
1528,
12,
1726,
18,
2355,
13,
2117,
273,
761,
18,
2735,
365,
18,
13142,
625,
1845,
18,
542,
11454,
12,
474,
12,
1726,
18,
13142,
625,
1845,
3719,
364,
4694,
316,
1048,
12,
20,
16,
761,
18,
14194,
1380,
1435,
4672,
618,
25053,
273,
365,
18,
559,
63,
14194,
65,
618,
25053,
18,
8507,
1435,
309,
4694,
422,
1059,
471,
761,
723,
422,
296,
14872,
4278,
3815,
5449,
273,
666,
12,
12477,
559,
682,
13,
17474,
723,
273,
609,
12,
1726,
18,
14194,
12,
14194,
2934,
723,
10756,
309,
486,
17474,
723,
316,
3815,
5449,
30,
3815,
5449,
18,
6923,
12,
23465,
723,
13,
618,
25053,
18,
6387,
3126,
12,
20,
16,
666,
12,
12846,
5449,
3719,
618,
25053,
18,
542,
3935,
1016,
12,
12846,
5449,
18,
1615,
12,
23465,
723,
3719,
365,
18,
1891,
16156,
12,
20,
16,
4694,
13,
314,
4698,
3736,
273,
609,
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,
5217,
1180,
12,
2890,
16,
761,
4672,
309,
761,
353,
599,
30,
327,
14487,
23735,
71,
273,
365,
18,
82,
23735,
71,
365,
18,
82,
23735,
71,
273,
404,
761,
723,
273,
761,
18,
3896,
1119,
309,
761,
723,
422,
296,
14872,
4278,
365,
18,
12148,
49,
2486,
18,
542,
11454,
12,
21,
13,
365,
18,
4500,
12148,
16166,
1435,
3815,
5449,
273,
666,
12,
559,
682,
13,
469,
30,
365,
18,
7544,
18,
542,
11454,
12,
21,
13,
365,
18,
4500,
7544,
16166,
1435,
3815,
5449,
273,
666,
12,
7544,
559,
682,
13,
365,
18,
1180,
2355,
18,
542,
1528,
12,
1726,
18,
2355,
13,
2117,
273,
761,
18,
2735,
365,
18,
13142,
625,
1845,
18,
542,
2
] |
|
print "CreateViewWindow", prev, settings, browser, rect
|
print "FileSystemView.CreateViewWindow", prev, settings, browser, rect
|
def CreateViewWindow(self, prev, settings, browser, rect): print "CreateViewWindow", prev, settings, browser, rect self.cur_foldersettings = settings self.browser = browser self._CreateMainWindow(prev, settings, browser, rect) self._CreateChildWindow(prev) return self.hwnd
|
8216b30a77097d3b45747f427de06d488491eaca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/8216b30a77097d3b45747f427de06d488491eaca/shell_view.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1767,
3829,
12,
2890,
16,
2807,
16,
1947,
16,
4748,
16,
4917,
4672,
1172,
315,
11785,
1767,
18,
1684,
1767,
3829,
3113,
2807,
16,
1947,
16,
4748,
16,
4917,
365,
18,
1397,
67,
16064,
278,
1256,
273,
1947,
365,
18,
11213,
273,
4748,
365,
6315,
1684,
6376,
3829,
12,
10001,
16,
1947,
16,
4748,
16,
4917,
13,
365,
6315,
1684,
1763,
3829,
12,
10001,
13,
327,
365,
18,
20701,
4880,
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,
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1947,
16,
4748,
16,
4917,
365,
18,
1397,
67,
16064,
278,
1256,
273,
1947,
365,
18,
11213,
273,
4748,
365,
6315,
1684,
6376,
3829,
12,
10001,
16,
1947,
16,
4748,
16,
4917,
13,
365,
6315,
1684,
1763,
3829,
12,
10001,
13,
327,
365,
18,
20701,
4880,
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
] |
self.theLoggerWindowWindow.show_all() self.theLoggerWindow.update() else : self.theLoggerWindowWindow.hide()
|
if ( self.theLoggerWindow.getExist() == 0 ): self.theLoggerWindow = LoggerWindow.LoggerWindow( self.theSession , self ) self.theLoggerWindow.update() else: self.theLoggerWindow['LoggerWindow'].show_all() else: if ( self.theLoggerWindow.getExist() == 0 ): pass else: self.theLoggerWindow['LoggerWindow'].hide()
|
def toggleLoggerWindow( self, button_obj ):
|
e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
3328,
3829,
12,
365,
16,
3568,
67,
2603,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
3328,
3829,
12,
365,
16,
3568,
67,
2603,
262,
30,
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
] |
for file in glob.iglob(os.path.expandvars('%SystemRoot\\Minidump\\*.dmp')):
|
for file in glob.iglob(os.path.expandvars('$windir\\Minidump\\*.dmp')):
|
def get_commands(self, option_id): # cache if 'posix' == os.name and 'cache' == option_id: dirname = os.path.expanduser("~/.cache/") for filename in children_in_directory(dirname, True): yield Command.Delete(filename)
|
cc4d7c323b32dc1bec50333652d586b266b89d80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/cc4d7c323b32dc1bec50333652d586b266b89d80/Cleaner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7847,
12,
2890,
16,
1456,
67,
350,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7847,
12,
2890,
16,
1456,
67,
350,
4672,
468,
1247,
309,
296,
24463,
11,
422,
1140,
18,
529,
471,
296,
2493,
11,
422,
1456,
67,
350,
30,
4283,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
15865,
2493,
4898,
13,
364,
1544,
316,
2325,
67,
267,
67,
5149,
12,
12287,
16,
1053,
4672,
2824,
3498,
18,
2613,
12,
3459,
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
] |
if uid is not None: doc = self._docmap.get(uid, None) name = `uid`.split('.')[-1] str = ' '*depth + '<LI> <B>' str += self._uid_to_href(uid, name)+'</B>' if doc and doc.descr(): str += ': <I>' + self._summary(doc) + '</I>' str += '\n' if doc and doc.ispackage() and doc.modules(): str += ' '*depth + ' <UL>\n' modules = [l.target() for l in doc.modules()] modules.sort() for module in modules: str += self._module_tree_item(module, depth+4) str += ' '*depth + ' </UL>\n'
|
if uid is None: return '' doc = self._docmap.get(uid, None) name = `uid`.split('.')[-1] str = ' '*depth + '<li> <b>' str += self._uid_to_href(uid, name)+'</b>' if doc and doc.descr(): str += ': <i>' + self._summary(doc) + '</i>' str += '\n' if doc and doc.ispackage() and doc.modules(): str += ' '*depth + ' <ul>\n' modules = [l.target() for l in doc.modules()] modules.sort() for module in modules: str += self._module_tree_item(module, depth+4) str += ' '*depth + ' </ul>\n' str += ' '*depth+'</li>'
|
def _module_tree_item(self, uid=None, depth=0): if uid is not None: doc = self._docmap.get(uid, None) name = `uid`.split('.')[-1] str = ' '*depth + '<LI> <B>' str += self._uid_to_href(uid, name)+'</B>' if doc and doc.descr(): str += ': <I>' + self._summary(doc) + '</I>' str += '\n' if doc and doc.ispackage() and doc.modules(): str += ' '*depth + ' <UL>\n' modules = [l.target() for l in doc.modules()] modules.sort() for module in modules: str += self._module_tree_item(module, depth+4) str += ' '*depth + ' </UL>\n' return str
|
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
4555,
33,
7036,
16,
3598,
33,
20,
4672,
309,
4555,
353,
599,
30,
327,
875,
225,
997,
273,
365,
6315,
2434,
1458,
18,
588,
12,
1911,
16,
599,
13,
508,
273,
1375,
1911,
8338,
4939,
2668,
1093,
13,
18919,
21,
65,
609,
273,
296,
14609,
5979,
397,
2368,
549,
34,
411,
70,
1870,
609,
1011,
365,
6315,
1911,
67,
869,
67,
7547,
12,
1911,
16,
508,
13,
6797,
1757,
70,
1870,
309,
997,
471,
997,
18,
28313,
13332,
609,
1011,
4290,
411,
77,
1870,
397,
365,
6315,
7687,
12,
2434,
13,
397,
4357,
77,
1870,
609,
1011,
2337,
82,
11,
309,
997,
471,
997,
18,
291,
5610,
1435,
471,
997,
18,
6400,
13332,
609,
1011,
296,
14609,
5979,
397,
296,
225,
411,
332,
5333,
82,
11,
4381,
273,
306,
80,
18,
3299,
1435,
364,
328,
316,
997,
18,
6400,
1435,
65,
4381,
18,
3804,
1435,
364,
1605,
316,
4381,
30,
609,
1011,
365,
6315,
2978,
67,
3413,
67,
1726,
12,
2978,
16,
3598,
15,
24,
13,
609,
1011,
296,
14609,
5979,
397,
296,
225,
7765,
332,
5333,
82,
11,
609,
1011,
296,
14609,
5979,
6797,
1757,
549,
1870,
327,
609,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
4555,
33,
7036,
16,
3598,
33,
20,
4672,
309,
4555,
353,
599,
30,
327,
875,
225,
997,
273,
365,
6315,
2434,
1458,
18,
588,
12,
1911,
16,
599,
13,
508,
273,
1375,
1911,
8338,
4939,
2668,
1093,
13,
18919,
21,
65,
609,
273,
296,
14609,
5979,
397,
2368,
549,
34,
411,
70,
1870,
609,
1011,
365,
6315,
1911,
67,
869,
67,
7547,
12,
1911,
16,
508,
13,
6797,
1757,
70,
1870,
309,
997,
471,
997,
18,
28313,
13332,
609,
1011,
4290,
411,
77,
1870,
397,
365,
6315,
7687,
12,
2434,
13,
397,
4357,
77,
1870,
609,
1011,
2337,
82,
11,
309,
997,
471,
997,
18,
291,
5610,
1435,
471,
2
] |
buf = buf[:148] + "%06o\0" % chksum + buf[155:]
|
buf = buf[:-364] + "%06o\0" % chksum + buf[-357:]
|
def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), stn(MAGIC, 6), stn(VERSION, 2), stn(self.uname, 32), stn(self.gname, 32), itn(self.devmajor, 8, posix), itn(self.devminor, 8, posix), stn(self.prefix, 155) ]
|
46d1c177e7795bb80efefb14c12ab8864b4218e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/46d1c177e7795bb80efefb14c12ab8864b4218e1/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
1203,
487,
279,
13908,
1160,
533,
18,
3536,
2140,
273,
306,
384,
82,
12,
2890,
18,
529,
16,
2130,
3631,
518,
82,
12,
2890,
18,
3188,
473,
374,
4700,
4700,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
1911,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
15780,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
1467,
16,
2593,
16,
16366,
3631,
518,
82,
12,
2890,
18,
10838,
16,
2593,
16,
16366,
3631,
315,
3639,
3104,
468,
6697,
652,
365,
18,
723,
16,
384,
82,
12,
2890,
18,
1232,
529,
16,
2130,
3631,
384,
82,
12,
49,
22247,
16,
1666,
3631,
384,
82,
12,
5757,
16,
576,
3631,
384,
82,
12,
2890,
18,
318,
339,
16,
3847,
3631,
384,
82,
12,
2890,
18,
75,
529,
16,
3847,
3631,
518,
82,
12,
2890,
18,
5206,
14019,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
5206,
17364,
16,
1725,
16,
16366,
3631,
384,
82,
12,
2890,
18,
3239,
16,
404,
2539,
13,
308,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
1203,
487,
279,
13908,
1160,
533,
18,
3536,
2140,
273,
306,
384,
82,
12,
2890,
18,
529,
16,
2130,
3631,
518,
82,
12,
2890,
18,
3188,
473,
374,
4700,
4700,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
1911,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
15780,
16,
1725,
16,
16366,
3631,
518,
82,
12,
2890,
18,
1467,
16,
2593,
16,
16366,
3631,
518,
82,
12,
2890,
18,
10838,
16,
2593,
16,
16366,
3631,
315,
3639,
3104,
468,
6697,
652,
365,
18,
723,
16,
384,
82,
12,
2890,
18,
1232,
529,
16,
2130,
3631,
384,
82,
12,
49,
22247,
2
] |
oid=object._p_oid
|
oid = object._p_oid
|
def setstate(self, object): oid=object._p_oid
|
8f44f0fa4dea8b55bb647630f9a0187d2cf2b3c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/8f44f0fa4dea8b55bb647630f9a0187d2cf2b3c9/Connection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2019,
12,
2890,
16,
733,
4672,
7764,
33,
1612,
6315,
84,
67,
839,
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,
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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
] |
return this = flowables[0] if isinstance(this, KeepTogether): if hasattr(this, '_skipMeNextTime'): delattr(this, '_skipMeNextTime') return keepWithNext = ((hasattr(this, 'keepWithNext') and this.keepWithNext == 1) or (hasattr(this, 'style') and hasattr(this.style, 'keepWithNext') and this.style.keepWithNext == 1) ) if keepWithNext: print 'found a keepWithNext, %d items remaining' % len(flowables) collected = [] while keepWithNext: collected.append(this) del flowables[0] if len(flowables) == 0: break else: this = flowables[0] keepWithNext = ((hasattr(this, 'keepWithNext') and this.keepTogether == 1) or (hasattr(this, 'style') and hasattr(this.style, 'keepWithNext') and this.style.keepWithNext == 1) ) if len(flowables) > 0: this = flowables[0] collected.append(this) del flowables[0] Keeper = KeepTogether(collected) Keeper._skipMeNextTime = 1 print 'gathered %d items into one KeepTogether' % len(collected) flowables.insert(0, Keeper)
|
i = 0 n = len(flowables) while i<n and flowables[i].getKeepWithNext(): i = i + 1 if i: i = i + 1 K = KeepTogether(flowables[:i]) for f in K._flowables: f.keepWithNext = 0 del flowables[:i] flowables.insert(0,K)
|
def handle_keepWithNext(self, flowables): "implements keepWithNext" #disabled for now - will not work return this = flowables[0] if isinstance(this, KeepTogether): if hasattr(this, '_skipMeNextTime'): delattr(this, '_skipMeNextTime') return keepWithNext = ((hasattr(this, 'keepWithNext') and this.keepWithNext == 1) or (hasattr(this, 'style') and hasattr(this.style, 'keepWithNext') and this.style.keepWithNext == 1) ) if keepWithNext: print 'found a keepWithNext, %d items remaining' % len(flowables) collected = []
|
6b017b578c60b0c89c5020387d61cb8b0f327edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/6b017b578c60b0c89c5020387d61cb8b0f327edf/doctemplate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
10102,
1190,
2134,
12,
2890,
16,
4693,
1538,
4672,
315,
17061,
3455,
1190,
2134,
6,
468,
9278,
364,
2037,
300,
903,
486,
1440,
327,
225,
333,
273,
4693,
1538,
63,
20,
65,
309,
1549,
12,
2211,
16,
10498,
56,
717,
2437,
4672,
309,
3859,
12,
2211,
16,
2070,
7457,
4667,
2134,
950,
11,
4672,
1464,
1747,
12,
2211,
16,
2070,
7457,
4667,
2134,
950,
6134,
327,
225,
3455,
1190,
2134,
273,
14015,
5332,
1747,
12,
2211,
16,
296,
10102,
1190,
2134,
6134,
471,
333,
18,
10102,
1190,
2134,
422,
404,
13,
578,
261,
5332,
1747,
12,
2211,
16,
296,
4060,
6134,
471,
3859,
12,
2211,
18,
4060,
16,
296,
10102,
1190,
2134,
6134,
471,
333,
18,
4060,
18,
10102,
1190,
2134,
422,
404,
13,
262,
309,
3455,
1190,
2134,
30,
1172,
296,
7015,
279,
3455,
1190,
2134,
16,
738,
72,
1516,
4463,
11,
738,
562,
12,
2426,
1538,
13,
12230,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
10102,
1190,
2134,
12,
2890,
16,
4693,
1538,
4672,
315,
17061,
3455,
1190,
2134,
6,
468,
9278,
364,
2037,
300,
903,
486,
1440,
327,
225,
333,
273,
4693,
1538,
63,
20,
65,
309,
1549,
12,
2211,
16,
10498,
56,
717,
2437,
4672,
309,
3859,
12,
2211,
16,
2070,
7457,
4667,
2134,
950,
11,
4672,
1464,
1747,
12,
2211,
16,
2070,
7457,
4667,
2134,
950,
6134,
327,
225,
3455,
1190,
2134,
273,
14015,
5332,
1747,
12,
2211,
16,
296,
10102,
1190,
2134,
6134,
471,
333,
18,
10102,
1190,
2134,
422,
404,
13,
578,
261,
5332,
1747,
12,
2211,
16,
296,
4060,
6134,
471,
3859,
12,
2211,
18,
4060,
16,
296,
10102,
1190,
2134,
6134,
471,
333,
18,
2
] |
uri = fileTag.getAttributeNS(None, 'uri')
|
uri = fileTag.getAttribute('uri')
|
def format_file(self, name, fileTag=None): """Given the short name of a file, and optionally its XML tag, return a Nouvelle-serializable representation. """ if fileTag:
|
a2d46d2f17bb91152ffbb89134cefa08c5d47beb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/a2d46d2f17bb91152ffbb89134cefa08c5d47beb/Commit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
768,
12,
2890,
16,
508,
16,
585,
1805,
33,
7036,
4672,
3536,
6083,
326,
3025,
508,
434,
279,
585,
16,
471,
8771,
2097,
3167,
1047,
16,
327,
279,
423,
1395,
941,
298,
17,
8818,
6934,
4335,
18,
3536,
309,
585,
1805,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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434,
279,
585,
16,
471,
8771,
2097,
3167,
1047,
16,
327,
279,
423,
1395,
941,
298,
17,
8818,
6934,
4335,
18,
3536,
309,
585,
1805,
30,
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
] |
Graph on 30 vertices
|
union( Dodecahedron, Petersen graph ): Graph on 30 vertices
|
def disjoint_union(self, other): """ Returns the disjoint union of self and other. If there are common vertices to both, they will be renamed. EXAMPLE: sage: D = graphs.DodecahedralGraph() sage: P = graphs.PetersenGraph() sage: D.disjoint_union(P) Graph on 30 vertices """ if (self.is_directed() and not other.is_directed()) or (not self.is_directed() and other.is_directed()): raise TypeError('Both arguments must be of the same class.') repeat = False for u in self.vertices(): for v in other.vertices(): if u == v: repeat = True break if repeat: break if repeat: rename = ('0,','1,') else: rename = False import networkx if self.is_directed(): return DiGraph(networkx.union(self._nxg, other._nxg, rename=rename)) else: return Graph(networkx.union(self._nxg, other._nxg, rename=rename))
|
b54583533bf5722e80f03aff4e8ce7cd5637b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b54583533bf5722e80f03aff4e8ce7cd5637b8f5/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
16452,
67,
18910,
12,
2890,
16,
1308,
4672,
3536,
2860,
326,
1015,
16452,
7812,
434,
365,
471,
1308,
18,
225,
971,
1915,
854,
2975,
6928,
358,
3937,
16,
2898,
903,
506,
17657,
18,
225,
5675,
21373,
30,
272,
410,
30,
463,
273,
19422,
18,
40,
390,
5353,
28351,
4137,
1435,
272,
410,
30,
453,
273,
19422,
18,
52,
1032,
275,
4137,
1435,
272,
410,
30,
463,
18,
2251,
16452,
67,
18910,
12,
52,
13,
7812,
12,
463,
390,
5353,
18550,
1949,
16,
453,
1032,
275,
2667,
262,
30,
5601,
603,
5196,
6928,
225,
3536,
309,
261,
2890,
18,
291,
67,
26830,
1435,
471,
486,
1308,
18,
291,
67,
26830,
10756,
578,
261,
902,
365,
18,
291,
67,
26830,
1435,
471,
1308,
18,
291,
67,
26830,
1435,
4672,
1002,
3580,
2668,
20240,
1775,
1297,
506,
434,
326,
1967,
667,
1093,
13,
7666,
273,
1083,
364,
582,
316,
365,
18,
17476,
13332,
364,
331,
316,
1308,
18,
17476,
13332,
309,
582,
422,
331,
30,
7666,
273,
1053,
898,
309,
7666,
30,
898,
309,
7666,
30,
6472,
273,
7707,
20,
16,
17023,
21,
16,
6134,
469,
30,
6472,
273,
1083,
1930,
2483,
92,
309,
365,
18,
291,
67,
26830,
13332,
327,
12508,
4137,
12,
5185,
92,
18,
18910,
12,
2890,
6315,
16769,
75,
16,
1308,
6315,
16769,
75,
16,
6472,
33,
18539,
3719,
469,
30,
327,
5601,
12,
5185,
92,
18,
18910,
12,
2890,
6315,
16769,
75,
16,
1308,
6315,
16769,
75,
16,
6472,
33,
18539,
3719,
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,
1015,
16452,
67,
18910,
12,
2890,
16,
1308,
4672,
3536,
2860,
326,
1015,
16452,
7812,
434,
365,
471,
1308,
18,
225,
971,
1915,
854,
2975,
6928,
358,
3937,
16,
2898,
903,
506,
17657,
18,
225,
5675,
21373,
30,
272,
410,
30,
463,
273,
19422,
18,
40,
390,
5353,
28351,
4137,
1435,
272,
410,
30,
453,
273,
19422,
18,
52,
1032,
275,
4137,
1435,
272,
410,
30,
463,
18,
2251,
16452,
67,
18910,
12,
52,
13,
7812,
12,
463,
390,
5353,
18550,
1949,
16,
453,
1032,
275,
2667,
262,
30,
5601,
603,
5196,
6928,
225,
3536,
309,
261,
2890,
18,
291,
67,
26830,
1435,
471,
486,
1308,
18,
291,
67,
26830,
10756,
578,
261,
902,
365,
18,
291,
67,
2
] |
options for lines which are also available.
|
options for lines, which are also available.
|
def ruler(start, end, ticks=4, sub_ticks=4, absolute=False, snap=False, **kwds): """ Draw a ruler in 3D, with major and minor ticks. INPUT: - ``start`` - the beginning of the ruler, as a list, tuple, or vector - ``end`` - the end of the ruler, as a list, tuple, or vector - ``ticks`` - (default: 4) the number of major ticks shown on the ruler - ``sub_ticks`` - (default: 4) the number of shown subdivisions between each major tick - ``absolute`` - (default: False) if True, makes a huge ruler in the direction of an axis - ``snap`` - (default: False) if True, snaps to an implied grid Type ``line3d.options`` for a dictionary of the default options for lines which are also available. EXAMPLES: A ruler:: sage: from sage.plot.plot3d.shapes2 import ruler sage: R = ruler([1,2,3],vector([2,3,4])); R A ruler with some options:: sage: R = ruler([1,2,3],vector([2,3,4]),ticks=6, sub_ticks=2, color='red'); R The keyword ``snap`` makes the ticks not necessarily coincide with the ruler:: sage: ruler([1,2,3],vector([1,2,4]),snap=True) The keyword ``absolute`` makes a huge ruler in one of the axis directions:: sage: ruler([1,2,3],vector([1,2,4]),absolute=True) TESTS:: sage: ruler([1,2,3],vector([1,3,4]),absolute=True) Traceback (most recent call last): ... ValueError: Absolute rulers only valid for axis-aligned paths """ start = vector(RDF, start) end = vector(RDF, end) dir = end - start dist = math.sqrt(dir.dot_product(dir)) dir /= dist one_tick = dist/ticks * 1.414 unit = 10 ** math.floor(math.log(dist/ticks, 10)) if unit * 5 < one_tick: unit *= 5 elif unit * 2 < one_tick: unit *= 2 if dir[0]: tick = dir.cross_product(vector(RDF, (0,0,-dist/30))) elif dir[1]: tick = dir.cross_product(vector(RDF, (0,0,dist/30))) else: tick = vector(RDF, (dist/30,0,0)) if snap: for i in range(3): start[i] = unit * math.floor(start[i]/unit + 1e-5) end[i] = unit * math.ceil(end[i]/unit - 1e-5) if absolute: if dir[0]*dir[1] or dir[1]*dir[2] or dir[0]*dir[2]: raise ValueError, "Absolute rulers only valid for axis-aligned paths" m = max(dir[0], dir[1], dir[2]) if dir[0] == m: off = start[0] elif dir[1] == m: off = start[1] else: off = start[2] first_tick = unit * math.ceil(off/unit - 1e-5) - off else: off = 0 first_tick = 0 ruler = shapes.LineSegment(start, end, **kwds) for k in range(1, int(sub_ticks * first_tick/unit)): P = start + dir*(k*unit/sub_ticks) ruler += shapes.LineSegment(P, P + tick/2, **kwds) for d in srange(first_tick, dist + unit/(sub_ticks+1), unit): P = start + dir*d ruler += shapes.LineSegment(P, P + tick, **kwds) ruler += shapes.Text(str(d+off), **kwds).translate(P - tick) if dist - d < unit: sub_ticks = int(sub_ticks * (dist - d)/unit) for k in range(1, sub_ticks): P += dir * (unit/sub_ticks) ruler += shapes.LineSegment(P, P + tick/2, **kwds) return ruler
|
c85cd8e70aed89c86059888b9925f160e190c0a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c85cd8e70aed89c86059888b9925f160e190c0a7/shapes2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
12,
1937,
16,
679,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
4967,
33,
8381,
16,
10915,
33,
8381,
16,
2826,
25577,
4672,
3536,
10184,
279,
436,
17040,
316,
890,
40,
16,
598,
7888,
471,
8439,
13003,
18,
225,
12943,
30,
225,
300,
12176,
1937,
10335,
300,
326,
8435,
434,
326,
436,
17040,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
409,
10335,
300,
326,
679,
434,
326,
436,
17040,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
11767,
10335,
300,
261,
1886,
30,
1059,
13,
326,
1300,
434,
7888,
13003,
12188,
603,
326,
436,
17040,
225,
300,
12176,
1717,
67,
11767,
10335,
300,
261,
1886,
30,
1059,
13,
326,
1300,
434,
12188,
25741,
12682,
3086,
1517,
7888,
4024,
225,
300,
12176,
12547,
10335,
300,
261,
1886,
30,
1083,
13,
309,
1053,
16,
7297,
279,
366,
21627,
436,
17040,
316,
326,
4068,
434,
392,
2654,
225,
300,
12176,
28449,
10335,
300,
261,
1886,
30,
1083,
13,
309,
1053,
16,
10915,
87,
358,
392,
23547,
3068,
225,
1412,
12176,
1369,
23,
72,
18,
2116,
10335,
364,
279,
3880,
434,
326,
805,
702,
364,
2362,
16,
1492,
854,
2546,
2319,
18,
225,
5675,
8900,
11386,
30,
225,
432,
436,
17040,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4032,
18,
4032,
23,
72,
18,
17648,
22,
1930,
436,
17040,
272,
410,
30,
534,
273,
436,
17040,
3816,
21,
16,
22,
16,
23,
6487,
7737,
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,
436,
17040,
12,
1937,
16,
679,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
4967,
33,
8381,
16,
10915,
33,
8381,
16,
2826,
25577,
4672,
3536,
10184,
279,
436,
17040,
316,
890,
40,
16,
598,
7888,
471,
8439,
13003,
18,
225,
12943,
30,
225,
300,
12176,
1937,
10335,
300,
326,
8435,
434,
326,
436,
17040,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
409,
10335,
300,
326,
679,
434,
326,
436,
17040,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
11767,
10335,
300,
261,
1886,
30,
1059,
13,
326,
1300,
434,
7888,
13003,
12188,
603,
326,
436,
17040,
225,
300,
12176,
1717,
67,
11767,
10335,
300,
261,
2
] |
def do_clear_break(self, arg): if not arg: self.do_clear("") return arg = string.strip(arg) args = string.split(arg) if len(args) < 2: print '*** Specify file and line number.' return try: line = int(args[1]) except: print '*** line number must be an integer.' return result =self.clear_break(args[0], line) if result: print result do_clb = do_clear_break
|
def do_clear(self, arg): # Three possibilities, tried in this order: # clear -> clear all breaks, ask for confirmation # clear file:lineno -> clear all breaks at file:lineno # clear bpno bpno ... -> clear breakpoints by number if not arg: try: reply = raw_input('Clear all breaks? ') except EOFError: reply = 'no' reply = string.lower(string.strip(reply)) if reply in ('y', 'yes'): self.clear_all_breaks() return if ':' in arg: # Make sure it works for "clear C:\foo\bar.py:12" i = string.rfind(arg, ':') filename = arg[:i] arg = arg[i+1:] try: lineno = int(arg) except: err = "Invalid line number (%s)" % arg else: err = self.clear_break(filename, lineno) if err: print '***', err return numberlist = string.split(arg) for i in numberlist: err = self.clear_bpbynumber(i) if err: print '***', err else: print 'Deleted breakpoint %s ' % (i,)
|
57db99cc5ba70b40e9dc26f41dd7c7d4cffb9d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/57db99cc5ba70b40e9dc26f41dd7c7d4cffb9d35/pdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8507,
12,
2890,
16,
1501,
4672,
468,
935,
992,
28550,
16,
12928,
316,
333,
1353,
30,
468,
2424,
317,
2424,
777,
16217,
16,
6827,
364,
14296,
468,
2424,
585,
30,
17782,
317,
2424,
777,
16217,
622,
585,
30,
17782,
468,
2424,
9107,
2135,
9107,
2135,
1372,
317,
2424,
23416,
635,
1300,
309,
486,
1501,
30,
775,
30,
4332,
273,
1831,
67,
2630,
2668,
9094,
777,
16217,
35,
8624,
1335,
6431,
668,
30,
4332,
273,
296,
2135,
11,
4332,
273,
533,
18,
8167,
12,
1080,
18,
6406,
12,
10629,
3719,
309,
4332,
316,
7707,
93,
2187,
296,
9707,
11,
4672,
365,
18,
8507,
67,
454,
67,
29292,
1435,
327,
309,
3921,
316,
1501,
30,
468,
4344,
3071,
518,
6330,
364,
315,
8507,
385,
5581,
11351,
64,
3215,
18,
2074,
30,
2138,
6,
277,
273,
533,
18,
86,
4720,
12,
3175,
16,
3921,
13,
1544,
273,
1501,
10531,
77,
65,
1501,
273,
1501,
63,
77,
15,
21,
26894,
775,
30,
7586,
273,
509,
12,
3175,
13,
1335,
30,
393,
273,
315,
1941,
980,
1300,
6142,
87,
2225,
738,
1501,
469,
30,
393,
273,
365,
18,
8507,
67,
8820,
12,
3459,
16,
7586,
13,
309,
393,
30,
1172,
296,
14465,
2187,
393,
327,
1300,
1098,
273,
533,
18,
4939,
12,
3175,
13,
364,
277,
316,
1300,
1098,
30,
393,
273,
365,
18,
8507,
67,
70,
5733,
878,
1226,
12,
77,
13,
309,
393,
30,
1172,
296,
14465,
2187,
393,
469,
30,
1172,
296,
7977,
18820,
738,
87,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8507,
12,
2890,
16,
1501,
4672,
468,
935,
992,
28550,
16,
12928,
316,
333,
1353,
30,
468,
2424,
317,
2424,
777,
16217,
16,
6827,
364,
14296,
468,
2424,
585,
30,
17782,
317,
2424,
777,
16217,
622,
585,
30,
17782,
468,
2424,
9107,
2135,
9107,
2135,
1372,
317,
2424,
23416,
635,
1300,
309,
486,
1501,
30,
775,
30,
4332,
273,
1831,
67,
2630,
2668,
9094,
777,
16217,
35,
8624,
1335,
6431,
668,
30,
4332,
273,
296,
2135,
11,
4332,
273,
533,
18,
8167,
12,
1080,
18,
6406,
12,
10629,
3719,
309,
4332,
316,
7707,
93,
2187,
296,
9707,
11,
4672,
365,
18,
8507,
67,
454,
67,
29292,
1435,
327,
309,
3921,
316,
1501,
30,
468,
4344,
3071,
2
] |
|
'action_id': fields.many2one('ir.actions.actions', 'Home Action'),
|
'action_id': fields.many2one('ir.actions.act_window', 'Action', required=True),
|
def generate_random_pass(): pass_chars = RANDOM_PASS_CHARACTERS[:] random.shuffle(pass_chars) return ''.join(pass_chars[0:10])
|
5a3d000f53c314c2371a67a107ab4f10b5f260ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5a3d000f53c314c2371a67a107ab4f10b5f260ea/wizard_share.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
9188,
67,
5466,
13332,
1342,
67,
7549,
273,
534,
28159,
67,
10884,
67,
7305,
6526,
11367,
10531,
65,
2744,
18,
31980,
12,
5466,
67,
7549,
13,
327,
875,
18,
5701,
12,
5466,
67,
7549,
63,
20,
30,
2163,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
67,
9188,
67,
5466,
13332,
1342,
67,
7549,
273,
534,
28159,
67,
10884,
67,
7305,
6526,
11367,
10531,
65,
2744,
18,
31980,
12,
5466,
67,
7549,
13,
327,
875,
18,
5701,
12,
5466,
67,
7549,
63,
20,
30,
2163,
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
] |
value = self.decorator.__get__(obj, type)
|
value = self.descriptor.__get__(obj, type)
|
def __get__(self, obj, type=None): if obj is None: return self value = self.decorator.__get__(obj, type) return self.getter_converter(value, *self.converter_args)
|
794e01db0a9a27af898f920c4a3d23e8786e0371 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12287/794e01db0a9a27af898f920c4a3d23e8786e0371/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
1081,
16,
618,
33,
7036,
4672,
309,
1081,
353,
599,
30,
327,
365,
460,
273,
365,
18,
12628,
16186,
588,
972,
12,
2603,
16,
618,
13,
327,
365,
18,
11990,
67,
15747,
12,
1132,
16,
380,
2890,
18,
15747,
67,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
4672,
309,
1081,
353,
599,
30,
327,
365,
460,
273,
365,
18,
12628,
16186,
588,
972,
12,
2603,
16,
618,
13,
327,
365,
18,
11990,
67,
15747,
12,
1132,
16,
380,
2890,
18,
15747,
67,
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
] |
path = path.decode('utf-8', 'strict')
|
def decode_path(path): """ Decode file/path string. Return `nodes.reprunicode` object. Provides a conversion to unicode without the UnicodeDecode error of the implicit 'ascii:strict' decoding. """ # see also http://article.gmane.org/gmane.text.docutils.user/2905 try: path = path.decode(sys.getfilesystemencoding(), 'strict') except AttributeError: # default value None has no decode method return nodes.reprunicode(path) except UnicodeDecodeError: path = path.decode('utf-8', 'strict') try: path = path.decode(sys.getfilesystemencoding(), 'strict') except UnicodeDecodeError: path = path.decode('ascii', 'replace') return nodes.reprunicode(path)
|
bd16ec7e3b535f0a19611a914bdffc4e2cf7aef2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/bd16ec7e3b535f0a19611a914bdffc4e2cf7aef2/utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
803,
12,
803,
4672,
3536,
6209,
585,
19,
803,
533,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
28805,
279,
4105,
358,
5252,
2887,
326,
9633,
6615,
555,
434,
326,
10592,
296,
9184,
30,
13948,
11,
13547,
18,
3536,
468,
2621,
2546,
1062,
2207,
11480,
18,
75,
4728,
73,
18,
3341,
19,
75,
4728,
73,
18,
955,
18,
2434,
5471,
18,
1355,
19,
5540,
6260,
775,
30,
589,
273,
589,
18,
3922,
12,
9499,
18,
588,
17846,
5999,
9334,
296,
13948,
6134,
1335,
6394,
30,
468,
805,
460,
599,
711,
1158,
2495,
707,
327,
2199,
18,
12715,
9124,
12,
803,
13,
1335,
26311,
30,
775,
30,
589,
273,
589,
18,
3922,
12,
9499,
18,
588,
17846,
5999,
9334,
296,
13948,
6134,
1335,
26311,
30,
589,
273,
589,
18,
3922,
2668,
9184,
2187,
296,
2079,
6134,
327,
2199,
18,
12715,
9124,
12,
803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
803,
12,
803,
4672,
3536,
6209,
585,
19,
803,
533,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
28805,
279,
4105,
358,
5252,
2887,
326,
9633,
6615,
555,
434,
326,
10592,
296,
9184,
30,
13948,
11,
13547,
18,
3536,
468,
2621,
2546,
1062,
2207,
11480,
18,
75,
4728,
73,
18,
3341,
19,
75,
4728,
73,
18,
955,
18,
2434,
5471,
18,
1355,
19,
5540,
6260,
775,
30,
589,
273,
589,
18,
3922,
12,
9499,
18,
588,
17846,
5999,
9334,
296,
13948,
6134,
1335,
6394,
30,
468,
805,
460,
599,
711,
1158,
2495,
707,
327,
2199,
18,
12715,
9124,
12,
803,
13,
1335,
26311,
30,
775,
30,
589,
273,
589,
18,
3922,
12,
9499,
2
] |
|
os.environ['TERMRCFILE'] = rcfile
|
os.environ['SHELLCMDS'] = "bash --rcfile " + rcfile
|
def Resolve(self):
|
beef002bb4c23f105458b8a8ead2c8eec06eb829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/beef002bb4c23f105458b8a8ead2c8eec06eb829/patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9910,
12,
2890,
4672,
2,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9910,
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,
-100
] |
gotone = Interpretive.parseOperand(self.context, operands)
|
newoperands = [ opcode ] if operands: newoperands.extend(operands) gotone = Interpretive.parseOperand(self.context, newoperands)
|
def parse(self, label, opcode, operands): try: # Check for any outstanding interpretive operands first, i.e. until interpArgs reaches zero. if opcode in self.context.opcodes[OpcodeType.INTERPRETIVE]: self.context.opcodes[OpcodeType.INTERPRETIVE][opcode].parse(self.context, operands) else: gotone = Interpretive.parseOperand(self.context, operands) if gotone: return if opcode in self.context.opcodes[OpcodeType.DIRECTIVE]: self.context.opcodes[OpcodeType.DIRECTIVE][opcode].parse(self.context, operands) if opcode in self.context.opcodes[self.context.mode]: self.context.opcodes[self.context.mode][opcode].parse(self.context, operands) if opcode != "EXTEND" and self.context.mode == OpcodeType.EXTENDED: self.context.mode = OpcodeType.BASIC if label != None and self.context.addSymbol == True: if not self.context.reparse: self.context.symtab.add(label, operands, self.context.loc) else: self.context.symtab.update(label, operands, self.context.loc) except: self.error("Exception processing line:") raise
|
b1e36cd7bc5216c2322cd7b4ae7f5236112a9cbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/b1e36cd7bc5216c2322cd7b4ae7f5236112a9cbd/assembler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1433,
16,
11396,
16,
14883,
4672,
775,
30,
468,
2073,
364,
1281,
20974,
10634,
688,
14883,
1122,
16,
277,
18,
73,
18,
3180,
8174,
2615,
30093,
3634,
18,
309,
11396,
316,
365,
18,
2472,
18,
556,
7000,
63,
22808,
559,
18,
9125,
3670,
56,
5354,
14542,
365,
18,
2472,
18,
556,
7000,
63,
22808,
559,
18,
9125,
3670,
56,
5354,
6362,
556,
710,
8009,
2670,
12,
2890,
18,
2472,
16,
14883,
13,
469,
30,
394,
4063,
5708,
273,
306,
11396,
308,
309,
14883,
30,
394,
4063,
5708,
18,
14313,
12,
4063,
5708,
13,
2363,
476,
273,
5294,
15089,
688,
18,
2670,
10265,
12,
2890,
18,
2472,
16,
394,
4063,
5708,
13,
309,
2363,
476,
30,
327,
309,
11396,
316,
365,
18,
2472,
18,
556,
7000,
63,
22808,
559,
18,
17541,
5354,
14542,
365,
18,
2472,
18,
556,
7000,
63,
22808,
559,
18,
17541,
5354,
6362,
556,
710,
8009,
2670,
12,
2890,
18,
2472,
16,
14883,
13,
309,
11396,
316,
365,
18,
2472,
18,
556,
7000,
63,
2890,
18,
2472,
18,
3188,
14542,
365,
18,
2472,
18,
556,
7000,
63,
2890,
18,
2472,
18,
3188,
6362,
556,
710,
8009,
2670,
12,
2890,
18,
2472,
16,
14883,
13,
309,
11396,
480,
315,
4142,
4415,
6,
471,
365,
18,
2472,
18,
3188,
422,
16424,
559,
18,
4142,
22088,
30,
365,
18,
2472,
18,
3188,
273,
16424,
559,
18,
25642,
309,
1433,
480,
599,
471,
365,
18,
2472,
18,
1289,
5335,
422,
1053,
30,
309,
486,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1433,
16,
11396,
16,
14883,
4672,
775,
30,
468,
2073,
364,
1281,
20974,
10634,
688,
14883,
1122,
16,
277,
18,
73,
18,
3180,
8174,
2615,
30093,
3634,
18,
309,
11396,
316,
365,
18,
2472,
18,
556,
7000,
63,
22808,
559,
18,
9125,
3670,
56,
5354,
14542,
365,
18,
2472,
18,
556,
7000,
63,
22808,
559,
18,
9125,
3670,
56,
5354,
6362,
556,
710,
8009,
2670,
12,
2890,
18,
2472,
16,
14883,
13,
469,
30,
394,
4063,
5708,
273,
306,
11396,
308,
309,
14883,
30,
394,
4063,
5708,
18,
14313,
12,
4063,
5708,
13,
2363,
476,
273,
5294,
15089,
688,
18,
2670,
10265,
12,
2890,
18,
2472,
16,
394,
4063,
5708,
13,
309,
2363,
476,
2
] |
InteractivePanel.paintPreview(self) self.makeBackgroundBuffer(dc)
|
self.makeBackgroundBuffer(dc) InteractivePanel.paintPreview(self, dc)
|
def paintPreview(self): """ Created: 24.03.2005, KP Description: Paints the image to a DC """ dc = wx.MemoryDC() dc.SelectObject(self.buffer) dc.BeginDrawing() dc.SetBackground(wx.Brush(wx.Colour(*self.bgcolor))) dc.SetPen(wx.Pen(wx.Colour(*self.bgcolor), 0)) dc.SetBrush(wx.Brush(wx.Color(*self.bgcolor))) x0, y0, x1, y1 = self.GetClientRect()
|
43646914fd17224ebb8ce2c56b9ae39bfc0a79bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/43646914fd17224ebb8ce2c56b9ae39bfc0a79bb/SectionsPanel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
11124,
12,
2890,
4672,
3536,
12953,
30,
4248,
18,
4630,
18,
6976,
25,
16,
1475,
52,
6507,
30,
30001,
87,
326,
1316,
358,
279,
21533,
3536,
6744,
273,
7075,
18,
6031,
5528,
1435,
6744,
18,
3391,
921,
12,
2890,
18,
4106,
13,
6744,
18,
8149,
26885,
1435,
6744,
18,
694,
8199,
12,
27226,
18,
19114,
1218,
12,
27226,
18,
26404,
30857,
2890,
18,
12370,
3266,
20349,
6744,
18,
694,
24251,
12,
27226,
18,
24251,
12,
27226,
18,
26404,
30857,
2890,
18,
12370,
3266,
3631,
374,
3719,
6744,
18,
694,
19114,
1218,
12,
27226,
18,
19114,
1218,
12,
27226,
18,
2957,
30857,
2890,
18,
12370,
3266,
20349,
225,
619,
20,
16,
677,
20,
16,
619,
21,
16,
677,
21,
273,
365,
18,
967,
1227,
6120,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
11124,
12,
2890,
4672,
3536,
12953,
30,
4248,
18,
4630,
18,
6976,
25,
16,
1475,
52,
6507,
30,
30001,
87,
326,
1316,
358,
279,
21533,
3536,
6744,
273,
7075,
18,
6031,
5528,
1435,
6744,
18,
3391,
921,
12,
2890,
18,
4106,
13,
6744,
18,
8149,
26885,
1435,
6744,
18,
694,
8199,
12,
27226,
18,
19114,
1218,
12,
27226,
18,
26404,
30857,
2890,
18,
12370,
3266,
20349,
6744,
18,
694,
24251,
12,
27226,
18,
24251,
12,
27226,
18,
26404,
30857,
2890,
18,
12370,
3266,
3631,
374,
3719,
6744,
18,
694,
19114,
1218,
12,
27226,
18,
19114,
1218,
12,
27226,
18,
2957,
30857,
2890,
18,
12370,
3266,
20349,
225,
619,
20,
16,
677,
20,
16,
619,
21,
16,
677,
2
] |
unittest.TestResult.__init__(self)
|
testresult.TestResult.__init__(self)
|
def __init__(self, stream): """Create a TestResultStats which outputs to stream.""" unittest.TestResult.__init__(self) self._stream = stream self.failed_tests = 0 self.skipped_tests = 0 self.seen_tags = set()
|
811e35ca81232d4aaa814395fb6cf5501aa9aa6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6381/811e35ca81232d4aaa814395fb6cf5501aa9aa6f/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
4672,
3536,
1684,
279,
7766,
1253,
4195,
1492,
6729,
358,
1407,
12123,
1842,
2088,
18,
4709,
1253,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
3256,
273,
1407,
365,
18,
7307,
67,
16341,
273,
374,
365,
18,
25346,
67,
16341,
273,
374,
365,
18,
15156,
67,
4156,
273,
444,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
4672,
3536,
1684,
279,
7766,
1253,
4195,
1492,
6729,
358,
1407,
12123,
1842,
2088,
18,
4709,
1253,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
3256,
273,
1407,
365,
18,
7307,
67,
16341,
273,
374,
365,
18,
25346,
67,
16341,
273,
374,
365,
18,
15156,
67,
4156,
273,
444,
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
] |
def testMultiply(self);
|
def testMultiply(self):
|
def testMultiply(self); self.assertEquals((0 * 10), 0) self.assertEquals((5 * 8), 40)
|
7b0657027f04ac0367908ee0474f6d762366e4bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7b0657027f04ac0367908ee0474f6d762366e4bb/unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26040,
12,
2890,
4672,
365,
18,
11231,
8867,
12443,
20,
380,
1728,
3631,
374,
13,
365,
18,
11231,
8867,
12443,
25,
380,
1725,
3631,
8063,
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,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,
13,
365,
18,
11231,
8867,
12443,
25,
380,
1725,
3631,
8063,
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
] |
if not reports: return {}
|
def _update_report_translation(self, cursor, user, data, context): report_obj = self.pool.get('ir.action.report') report_ids = report_obj.search(cursor, user, [], context=context) reports = report_obj.browse(cursor, user, report_ids, context=context)
|
ca67b46a5992787b09c87fa4159cad8ab6f691f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/ca67b46a5992787b09c87fa4159cad8ab6f691f8/translation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
6006,
67,
10173,
12,
2890,
16,
3347,
16,
729,
16,
501,
16,
819,
4672,
2605,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
1128,
18,
6006,
6134,
2605,
67,
2232,
273,
2605,
67,
2603,
18,
3072,
12,
9216,
16,
729,
16,
5378,
16,
819,
33,
2472,
13,
10557,
273,
2605,
67,
2603,
18,
25731,
12,
9216,
16,
729,
16,
2605,
67,
2232,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
6006,
67,
10173,
12,
2890,
16,
3347,
16,
729,
16,
501,
16,
819,
4672,
2605,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
1128,
18,
6006,
6134,
2605,
67,
2232,
273,
2605,
67,
2603,
18,
3072,
12,
9216,
16,
729,
16,
5378,
16,
819,
33,
2472,
13,
10557,
273,
2605,
67,
2603,
18,
25731,
12,
9216,
16,
729,
16,
2605,
67,
2232,
16,
819,
33,
2472,
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
] |
|
site_name = getSiteName(cp)
|
site_name = getSiteName(cp2)
|
def __write_config_value(section, option, new_val): if not cp.has_section(section): cp.add_section(section) if override and (not cp.has_option(section, option)): cp.set(section, option, new_val) elif (not override): cp.set(section, option, new_val)
|
7bcefa53a36c600ebb5ec070cd2c1981314354b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12088/7bcefa53a36c600ebb5ec070cd2c1981314354b2/gip_osg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2626,
67,
1425,
67,
1132,
12,
3464,
16,
1456,
16,
394,
67,
1125,
4672,
309,
486,
3283,
18,
5332,
67,
3464,
12,
3464,
4672,
3283,
18,
1289,
67,
3464,
12,
3464,
13,
309,
3849,
471,
261,
902,
3283,
18,
5332,
67,
3482,
12,
3464,
16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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2626,
67,
1425,
67,
1132,
12,
3464,
16,
1456,
16,
394,
67,
1125,
4672,
309,
486,
3283,
18,
5332,
67,
3464,
12,
3464,
4672,
3283,
18,
1289,
67,
3464,
12,
3464,
13,
309,
3849,
471,
261,
902,
3283,
18,
5332,
67,
3482,
12,
3464,
16,
1456,
3719,
30,
3283,
18,
542,
12,
3464,
16,
1456,
16,
394,
67,
1125,
13,
1327,
261,
902,
3849,
4672,
3283,
18,
542,
12,
3464,
16,
1456,
16,
394,
67,
1125,
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
] |
DebugPrint(0, "Badly formed XML in " + xmlFilename + ": UserIdentity block has multiple VOName nodes - uploading anyway")
|
[jobIdType, jobId] = FindBestJobId(userIdentityNode.parentNode, namespace, prefix) DebugPrint(0, "Warning: UserIdentity block has multiple VOName nodes in " + jobIdType + " " + jobId)
|
def CheckAndExtendUserIdentity(xmlDoc, userIdentityNode, namespace, prefix): "Check the contents of the UserIdentity block and extend if necessary" # LocalUserId LocalUserIdNodes = userIdentityNode.getElementsByTagNameNS(namespace, 'LocalUserId') if len(LocalUserIdNodes) != 1 or not \ (LocalUserIdNodes[0].firstChild and LocalUserIdNodes[0].firstChild.data): DebugPrint(0, "Badly formed XML in " + xmlFilename + ": UserIdentity block does not have exactly one populated LocalUserId node - uploading anyway") return [None, None] LocalUserId = LocalUserIdNodes[0].firstChild.data # VOName VONameNodes = userIdentityNode.getElementsByTagNameNS(namespace, 'VOName') if len(VONameNodes) > 1: DebugPrint(0, "Badly formed XML in " + xmlFilename + ": UserIdentity block has multiple VOName nodes - uploading anyway") return [None, None] elif not VONameNodes: VONameNodes.append(xmlDoc.createElementNS(namespace, prefix + 'VOName')) textNode = xmlDoc.createTextNode(r''); VONameNodes[0].appendChild(textNode); userIdentityNode.appendChild(VONameNodes[0]) # ReportableVOName ReportableVONameNodes = userIdentityNode.getElementsByTagNameNS(namespace, 'ReportableVOName') if len(ReportableVONameNodes) > 1: DebugPrint(0, "Badly formed XML in " + xmlFilename + ": UserIdentity block has multiple ReportableVOName nodes - uploading anyway") return [None, None] elif not ReportableVONameNodes: ReportableVONameNodes.append(xmlDoc.createElementNS(namespace, prefix + 'ReportableVOName')) textNode = xmlDoc.createTextNode(r''); ReportableVONameNodes[0].appendChild(textNode); userIdentityNode.appendChild(ReportableVONameNodes[0]) VOName = VONameNodes[0].firstChild.data ReportableVOName = ReportableVONameNodes[0].firstChild.data vo_info = VOfromUser(LocalUserId) if vo_info: if not (VOName and ReportableVOName) or VOName == "Unknown": VONameNodes[0].firstChild.data = vo_info['VOName'] ReportableVONameNodes[0].firstChild.data = vo_info['ReportableVOName'] VOName = VONameNodes[0].firstChild.data ReportableVOName = ReportableVONameNodes[0].firstChild.data if not VOName: userIdentityNode.removeChild(VONameNodes[0]) VONameNodes[0].unlink() if not ReportableVOName: userIdentityNode.removeChild(ReportableVONameNodes[0]) ReportableVONameNodes[0].unlink() return [VOName, ReportableVOName]
|
82362dc0c1d2f5f0727670c6ff01b444853b1602 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/82362dc0c1d2f5f0727670c6ff01b444853b1602/Gratia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
1876,
16675,
1299,
4334,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
1564,
326,
2939,
434,
326,
2177,
4334,
1203,
471,
2133,
309,
4573,
6,
225,
468,
3566,
10502,
3566,
10502,
3205,
273,
729,
4334,
907,
18,
588,
3471,
10401,
3156,
12,
4937,
16,
296,
2042,
10502,
6134,
309,
562,
12,
2042,
10502,
3205,
13,
480,
404,
578,
486,
521,
261,
2042,
10502,
3205,
63,
20,
8009,
3645,
1763,
471,
3566,
10502,
3205,
63,
20,
8009,
3645,
1763,
18,
892,
4672,
4015,
5108,
12,
20,
16,
315,
6434,
715,
20010,
3167,
316,
315,
397,
2025,
5359,
397,
6398,
2177,
4334,
1203,
1552,
486,
1240,
8950,
1245,
6737,
3566,
10502,
756,
300,
25306,
13466,
7923,
327,
306,
7036,
16,
599,
65,
225,
3566,
10502,
273,
3566,
10502,
3205,
63,
20,
8009,
3645,
1763,
18,
892,
225,
468,
776,
51,
461,
776,
51,
461,
3205,
273,
729,
4334,
907,
18,
588,
3471,
10401,
3156,
12,
4937,
16,
296,
16169,
461,
6134,
309,
562,
12,
16169,
461,
3205,
13,
405,
404,
30,
306,
4688,
548,
559,
16,
13845,
65,
273,
4163,
14173,
23378,
12,
1355,
4334,
907,
18,
2938,
907,
16,
1981,
16,
1633,
13,
4015,
5108,
12,
20,
16,
315,
6210,
30,
2177,
4334,
1203,
711,
3229,
776,
51,
461,
2199,
316,
315,
397,
13845,
559,
397,
315,
315,
397,
13845,
13,
327,
306,
7036,
16,
599,
65,
1327,
486,
776,
51,
461,
3205,
30,
776,
51,
461,
3205,
18,
6923,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
1876,
16675,
1299,
4334,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
1564,
326,
2939,
434,
326,
2177,
4334,
1203,
471,
2133,
309,
4573,
6,
225,
468,
3566,
10502,
3566,
10502,
3205,
273,
729,
4334,
907,
18,
588,
3471,
10401,
3156,
12,
4937,
16,
296,
2042,
10502,
6134,
309,
562,
12,
2042,
10502,
3205,
13,
480,
404,
578,
486,
521,
261,
2042,
10502,
3205,
63,
20,
8009,
3645,
1763,
471,
3566,
10502,
3205,
63,
20,
8009,
3645,
1763,
18,
892,
4672,
4015,
5108,
12,
20,
16,
315,
6434,
715,
20010,
3167,
316,
315,
397,
2025,
5359,
397,
6398,
2177,
4334,
1203,
1552,
486,
1240,
8950,
1245,
6737,
3566,
10502,
756,
300,
25306,
2
] |
lea t3, flatseg, [ldsz, t3, base], dataSize=asz ld t1, seg, [1, t3, t7], disp
|
ld t1, seg, [dsz, t3, t7], disp
|
def macroop BT_P_R { rdip t7 srai t2, reg, 3, dataSize=asz srai t3, t2, ldsz, dataSize=asz lea t3, flatseg, [ldsz, t3, base], dataSize=asz ld t1, seg, [1, t3, t7], disp sext t0, t1, reg, flags=(CF,)
|
c41e633e0efebb440083279c3841a2029ff50240 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6787/c41e633e0efebb440083279c3841a2029ff50240/bit_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
605,
56,
67,
52,
67,
54,
288,
9437,
625,
268,
27,
272,
354,
77,
268,
22,
16,
960,
16,
890,
16,
30216,
33,
345,
94,
272,
354,
77,
268,
23,
16,
268,
22,
16,
328,
2377,
94,
16,
30216,
33,
345,
94,
16916,
268,
21,
16,
2291,
16,
306,
2377,
94,
16,
268,
23,
16,
268,
27,
6487,
16232,
272,
408,
268,
20,
16,
268,
21,
16,
960,
16,
2943,
28657,
8955,
16,
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,
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
11522,
556,
605,
56,
67,
52,
67,
54,
288,
9437,
625,
268,
27,
272,
354,
77,
268,
22,
16,
960,
16,
890,
16,
30216,
33,
345,
94,
272,
354,
77,
268,
23,
16,
268,
22,
16,
328,
2377,
94,
16,
30216,
33,
345,
94,
16916,
268,
21,
16,
2291,
16,
306,
2377,
94,
16,
268,
23,
16,
268,
27,
6487,
16232,
272,
408,
268,
20,
16,
268,
21,
16,
960,
16,
2943,
28657,
8955,
16,
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
] |
self._console.error("The given path does not contain a translation folder: %s" % path) sys.exit(1)
|
raise ValueError("The given path does not contain a translation folder: %s" % path)
|
def _scanTranslationPath(self, path): if not os.path.exists(path): self._console.error("The given path does not contain a translation folder: %s" % path) sys.exit(1)
|
8b4b0c8973aec5a80d278fabe144face9c23b31d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/8b4b0c8973aec5a80d278fabe144face9c23b31d/LibraryPath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
6717,
743,
12,
2890,
16,
589,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
365,
6315,
8698,
18,
1636,
2932,
1986,
864,
589,
1552,
486,
912,
279,
4794,
3009,
30,
738,
87,
6,
738,
589,
13,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
6717,
743,
12,
2890,
16,
589,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
365,
6315,
8698,
18,
1636,
2932,
1986,
864,
589,
1552,
486,
912,
279,
4794,
3009,
30,
738,
87,
6,
738,
589,
13,
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
] |
page.table.attach (self.check, 0, 1, i, i+1, EXPAND|FILL, 0, 5, 5)
|
page.table.attach (self.check, 0, 1, i, i+1, gtk.EXPAND|gtk.FILL, 0, 5, 5)
|
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: desc = u"(no description available)" self.check = WrappingCheckButton (desc.encode(encoding), width=200) self.check.set_active (page.app.options.has_key (opt.name)) self.check.set_sensitive (page.app.device.config.writable) self.check.connect ("clicked", self.checkOpt) tooltipString = str(opt) page.tooltips.set_tip (self.check, tooltipString.encode(encoding)) self.check.show() page.table.attach (self.check, 0, 1, i, i+1, EXPAND|FILL, 0, 5, 5) # a button to reset the option to its default value sensitive = self.check.get_active() and page.app.device.config.writable self.resetButton = GtkButton () pixmap = DataPixmap (tb_undo_xpm) pixmap.show() self.resetButton.add (pixmap) self.resetButton.set_relief (RELIEF_NONE) self.resetButton.set_sensitive (sensitive) self.resetButton.connect ("clicked", self.resetOpt) self.resetButton.show() page.table.attach (self.resetButton, 2, 3, i, i+1, 0, 0, 5, 5)
|
ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d/driconf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1363,
16,
277,
16,
2153,
4672,
3536,
11417,
18,
3536,
365,
18,
2433,
273,
1363,
365,
18,
3838,
273,
2153,
618,
780,
273,
2153,
18,
723,
309,
2153,
18,
877,
30,
618,
780,
273,
618,
780,
9078,
8247,
15,
521,
5459,
12,
14661,
619,
16,
93,
30,
619,
15,
17023,
15,
93,
16,
852,
12,
701,
16,
3838,
18,
877,
3719,
9078,
4279,
468,
279,
866,
3568,
598,
392,
1456,
2477,
3044,
273,
2153,
18,
588,
4217,
3816,
4936,
5717,
309,
3044,
480,
599,
30,
3044,
273,
3044,
18,
955,
469,
30,
3044,
273,
582,
6,
12,
2135,
2477,
2319,
2225,
365,
18,
1893,
273,
4266,
1382,
1564,
3616,
261,
5569,
18,
3015,
12,
5999,
3631,
1835,
33,
6976,
13,
365,
18,
1893,
18,
542,
67,
3535,
261,
2433,
18,
2910,
18,
2116,
18,
5332,
67,
856,
261,
3838,
18,
529,
3719,
365,
18,
1893,
18,
542,
67,
23481,
261,
2433,
18,
2910,
18,
5964,
18,
1425,
18,
15699,
13,
365,
18,
1893,
18,
3612,
7566,
7475,
329,
3113,
365,
18,
1893,
6179,
13,
11915,
780,
273,
609,
12,
3838,
13,
1363,
18,
869,
4397,
7146,
18,
542,
67,
14587,
261,
2890,
18,
1893,
16,
11915,
780,
18,
3015,
12,
5999,
3719,
365,
18,
1893,
18,
4500,
1435,
1363,
18,
2121,
18,
7331,
261,
2890,
18,
1893,
16,
374,
16,
404,
16,
277,
16,
277,
15,
21,
16,
22718,
18,
16109,
4307,
96,
4521,
79,
18,
29818,
16,
374,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1363,
16,
277,
16,
2153,
4672,
3536,
11417,
18,
3536,
365,
18,
2433,
273,
1363,
365,
18,
3838,
273,
2153,
618,
780,
273,
2153,
18,
723,
309,
2153,
18,
877,
30,
618,
780,
273,
618,
780,
9078,
8247,
15,
521,
5459,
12,
14661,
619,
16,
93,
30,
619,
15,
17023,
15,
93,
16,
852,
12,
701,
16,
3838,
18,
877,
3719,
9078,
4279,
468,
279,
866,
3568,
598,
392,
1456,
2477,
3044,
273,
2153,
18,
588,
4217,
3816,
4936,
5717,
309,
3044,
480,
599,
30,
3044,
273,
3044,
18,
955,
469,
30,
3044,
273,
582,
6,
12,
2135,
2477,
2319,
2225,
365,
18,
1893,
273,
4266,
1382,
1564,
3616,
261,
5569,
18,
2
] |
self.assertEqual(err[-1], b'OK')
|
self.assertIn(b'OK', err)
|
def get_parse_out_err(p): return [b.splitlines() for b in p.communicate()]
|
c3e825223ad597b42f5e350548fa054c38f063a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/c3e825223ad597b42f5e350548fa054c38f063a1/test_runner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2670,
67,
659,
67,
370,
12,
84,
4672,
327,
306,
70,
18,
4939,
3548,
1435,
364,
324,
316,
293,
18,
5702,
318,
2659,
1435,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2670,
67,
659,
67,
370,
12,
84,
4672,
327,
306,
70,
18,
4939,
3548,
1435,
364,
324,
316,
293,
18,
5702,
318,
2659,
1435,
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
] |
_default = "false" def __init__(self, master=None):
|
_default = False def __init__(self, master=None, value=None, name=None):
|
def get(self): """Return the value of the variable as a float.""" return getdouble(self._tk.globalgetvar(self._name))
|
d9565dc51f7ac24afa5838b531be5ac7f386c816 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9565dc51f7ac24afa5838b531be5ac7f386c816/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
3536,
990,
326,
460,
434,
326,
2190,
487,
279,
1431,
12123,
327,
336,
9056,
12,
2890,
6315,
16099,
18,
6347,
588,
1401,
12,
2890,
6315,
529,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
336,
12,
2890,
4672,
3536,
990,
326,
460,
434,
326,
2190,
487,
279,
1431,
12123,
327,
336,
9056,
12,
2890,
6315,
16099,
18,
6347,
588,
1401,
12,
2890,
6315,
529,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "__coerce__:", args
|
def __coerce__(self, *args): print "__coerce__:", args return (self,) + args
|
6c016a3e555a636a0dfc3960a70885989bbcf82f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/6c016a3e555a636a0dfc3960a70885989bbcf82f/test_class.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2894,
2765,
972,
12,
2890,
16,
380,
1968,
4672,
327,
261,
2890,
16,
13,
397,
833,
2,
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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2894,
2765,
972,
12,
2890,
16,
380,
1968,
4672,
327,
261,
2890,
16,
13,
397,
833,
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
] |
|
s += self.__pp_dict(fieldval.items(), doublespace,
|
s += self.__pp_dict(fieldval, doublespace,
|
def pp(self, doublespace=0, depth=2, exclude=[]): """ @return: A string representation for this C{APIDoc}. @param doublespace: If true, then extra lines will be inserted to make the output more readable. @param depth: The maximum depth that pp will descend into descendent VarDocs. To put no limit on depth, use C{depth=-1}. """ if hasattr(self, '_cyclecheck') or depth == 0: if hasattr(self, 'name') and self.name is not None: return '%s...' % self.name else: return '...' self._cyclecheck = True s = '%s 0x%x' % (self.__class__.__name__, id(self))
|
a15d7aa85de27eed09a891e5147e9f0ca61f2e10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a15d7aa85de27eed09a891e5147e9f0ca61f2e10/apidoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8228,
12,
2890,
16,
31446,
909,
33,
20,
16,
3598,
33,
22,
16,
4433,
33,
8526,
4672,
3536,
632,
2463,
30,
432,
533,
4335,
364,
333,
385,
95,
2203,
734,
504,
5496,
632,
891,
31446,
909,
30,
971,
638,
16,
1508,
2870,
2362,
903,
506,
9564,
358,
1221,
326,
876,
1898,
7471,
18,
632,
891,
3598,
30,
1021,
4207,
3598,
716,
8228,
903,
10653,
1368,
10653,
319,
4562,
12656,
18,
225,
2974,
1378,
1158,
1800,
603,
3598,
16,
999,
385,
95,
5979,
29711,
21,
5496,
3536,
309,
3859,
12,
2890,
16,
2070,
13946,
1893,
6134,
578,
3598,
422,
374,
30,
309,
3859,
12,
2890,
16,
296,
529,
6134,
471,
365,
18,
529,
353,
486,
599,
30,
327,
1995,
87,
7821,
738,
365,
18,
529,
469,
30,
327,
20243,
365,
6315,
13946,
1893,
273,
1053,
225,
272,
273,
1995,
87,
374,
92,
9,
92,
11,
738,
261,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
612,
12,
2890,
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,
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358,
1221,
326,
876,
1898,
7471,
18,
632,
891,
3598,
30,
1021,
4207,
3598,
716,
8228,
903,
10653,
1368,
10653,
319,
4562,
12656,
18,
225,
2974,
1378,
1158,
1800,
603,
3598,
16,
999,
385,
95,
5979,
29711,
21,
5496,
3536,
309,
3859,
12,
2890,
16,
2070,
13946,
1893,
6134,
578,
3598,
422,
374,
30,
309,
3859,
12,
2890,
16,
296,
529,
6134,
471,
365,
18,
529,
353,
486,
599,
30,
327,
1995,
2
] |
teste = kopeteLog()
|
teste = KopeteLog()
|
def feedDatabase(self, file): if file.find('WlmProtocol'): protocol = 'wlm' elif file.find('ICQProtocol'): protocol = 'icq' elif file.find('JabberProtocol'): protocol = 'jabber' else: protocol = '' xmllog = parse(file) for head in xmllog.getiterator('head'): for date in head.getiterator('date'): month=date.attrib['month'] year=date.attrib['year'] for contact in head.getiterator('contact'): if contact.attrib.has_key('type'): if contact.attrib['type'] == 'myself': contactfrom = contact.attrib['contactId'] else: contactto = contact.attrib['contactId'] for msg in xmllog.getiterator('msg'): nick = msg.attrib['nick'] time = msg.attrib['time'] inbound = msg.attrib['in'] message = msg.text sender = msg.attrib['from'] date = datetime.strptime("%s;%s;%s" % (year, month, msg.attrib['time']) , "%Y;%m;%d %H:%M:%S") self.messages.insert( protocol=protocol, date=date.strftime("%Y%m%d"), time=date.strftime("%H:%M:%S"), msgfrom=contactfrom, msgto=contactto, sender=sender, inbound=inbound, nick=nick, message=message)
|
32c9ce5a16147a0a40ab7b8ad544368288a0ce69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8537/32c9ce5a16147a0a40ab7b8ad544368288a0ce69/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4254,
12,
2890,
16,
225,
585,
4672,
309,
585,
18,
4720,
2668,
59,
25972,
5752,
11,
4672,
1771,
273,
296,
21504,
81,
11,
1327,
585,
18,
4720,
2668,
2871,
53,
5752,
11,
4672,
1771,
273,
296,
335,
85,
11,
1327,
585,
18,
4720,
2668,
46,
378,
744,
5752,
11,
4672,
1771,
273,
296,
78,
378,
744,
11,
469,
30,
1771,
273,
875,
2025,
1330,
273,
1109,
12,
768,
13,
364,
910,
316,
2025,
1330,
18,
588,
9838,
2668,
1978,
11,
4672,
364,
1509,
316,
910,
18,
588,
9838,
2668,
712,
11,
4672,
3138,
33,
712,
18,
14588,
3292,
7496,
3546,
3286,
33,
712,
18,
14588,
3292,
6874,
3546,
364,
5388,
316,
910,
18,
588,
9838,
2668,
8994,
11,
4672,
309,
5388,
18,
14588,
18,
5332,
67,
856,
2668,
723,
11,
4672,
309,
5388,
18,
14588,
3292,
723,
3546,
422,
296,
4811,
2890,
4278,
5388,
2080,
273,
5388,
18,
14588,
3292,
8994,
548,
3546,
469,
30,
5388,
869,
273,
5388,
18,
14588,
3292,
8994,
548,
3546,
364,
1234,
316,
2025,
1330,
18,
588,
9838,
2668,
3576,
11,
4672,
10909,
273,
1234,
18,
14588,
3292,
17091,
3546,
813,
273,
1234,
18,
14588,
3292,
957,
3546,
13357,
273,
1234,
18,
14588,
3292,
267,
3546,
883,
273,
1234,
18,
955,
5793,
273,
1234,
18,
14588,
3292,
2080,
3546,
1509,
273,
3314,
18,
701,
10650,
27188,
87,
31,
9,
87,
31,
9,
87,
6,
738,
261,
6874,
16,
225,
3138,
16,
225,
1234,
18,
14588,
3292,
957,
19486,
269,
2213,
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,
4746,
4254,
12,
2890,
16,
225,
585,
4672,
309,
585,
18,
4720,
2668,
59,
25972,
5752,
11,
4672,
1771,
273,
296,
21504,
81,
11,
1327,
585,
18,
4720,
2668,
2871,
53,
5752,
11,
4672,
1771,
273,
296,
335,
85,
11,
1327,
585,
18,
4720,
2668,
46,
378,
744,
5752,
11,
4672,
1771,
273,
296,
78,
378,
744,
11,
469,
30,
1771,
273,
875,
2025,
1330,
273,
1109,
12,
768,
13,
364,
910,
316,
2025,
1330,
18,
588,
9838,
2668,
1978,
11,
4672,
364,
1509,
316,
910,
18,
588,
9838,
2668,
712,
11,
4672,
3138,
33,
712,
18,
14588,
3292,
7496,
3546,
3286,
33,
712,
18,
14588,
3292,
6874,
3546,
364,
5388,
316,
910,
18,
588,
9838,
2668,
8994,
2
] |
""" Called from %pre of the test machine. We record a start
|
""" Called from %pre of the test machine. We record a start
|
def install_start(self):
|
b6c575ff66dcd6a6087afa755cdfa553552086b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
1937,
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
] |
outputFile = "%s-%s.exe" outputFile = outputFile % \ (template_vars['shortAppName'], template_vars['appVersion']) nsisVars['CONFIG_OUTPUT_FILE'] = outputFile nsisVars['CONFIG_TWOSTAGE'] = "No" nsisArgs = ["/D%s=%s" % (k, v) for (k, v) in nsisVars.iteritems()] nsisArgs.append(os.path.join(self.dist_dir, "Miro.nsi")) if os.access(outputFile, os.F_OK): os.remove(outputFile) if subprocess.call([NSIS_PATH] + nsisArgs) != 0:
|
output_file = "%s-%s.exe" output_file = (output_file % (template_vars['shortAppName'], template_vars['appVersion'])) nsis_vars['CONFIG_OUTPUT_FILE'] = output_file nsis_vars['CONFIG_TWOSTAGE'] = "No" nsis_args = ["/D%s=%s" % (k, v) for (k, v) in nsis_vars.iteritems()] nsis_args.append(os.path.join(self.dist_dir, "Miro.nsi")) if os.access(output_file, os.F_OK): os.remove(output_file) if subprocess.call([NSIS_PATH] + nsis_args) != 0:
|
def run(self): self.run_command('bdist_miro') self.dist_dir = self.get_finalized_command('py2exe').dist_dir
|
16717514d85be409df247e58637855a19e0ad04f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/16717514d85be409df247e58637855a19e0ad04f/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
2681,
67,
3076,
2668,
70,
4413,
67,
9197,
303,
6134,
365,
18,
4413,
67,
1214,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
2074,
22,
14880,
16063,
4413,
67,
1214,
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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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
365,
18,
2681,
67,
3076,
2668,
70,
4413,
67,
9197,
303,
6134,
365,
18,
4413,
67,
1214,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
2074,
22,
14880,
16063,
4413,
67,
1214,
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
] |
lines = string.split(line,'\n') for line in lines: line = lowDequote(line) try: prefix, command, params = parsemsg(line) if numeric_to_symbolic.has_key(command): command = numeric_to_symbolic[command] method = getattr(self, "irc_%s" % command, None) if method is not None: method(prefix, params) else: self.irc_unknown(prefix, command, params) except IRCBadMessage: apply(self.badMessage, (line,) + sys.exc_info())
|
line = lowDequote(line) try: prefix, command, params = parsemsg(line) if numeric_to_symbolic.has_key(command): command = numeric_to_symbolic[command] method = getattr(self, "irc_%s" % command, None) if method is not None: method(prefix, params) else: self.irc_unknown(prefix, command, params) except IRCBadMessage: apply(self.badMessage, (line,) + sys.exc_info())
|
def lineReceived(self, line): # some servers (dalnet!) break RFC and send their first few # lines just delimited by \n lines = string.split(line,'\n') for line in lines: line = lowDequote(line) try: prefix, command, params = parsemsg(line) if numeric_to_symbolic.has_key(command): command = numeric_to_symbolic[command] method = getattr(self, "irc_%s" % command, None) if method is not None: method(prefix, params) else: self.irc_unknown(prefix, command, params) except IRCBadMessage: apply(self.badMessage, (line,) + sys.exc_info())
|
e962a8bb8dcad31eea345dc001bf1c2a593d3f2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e962a8bb8dcad31eea345dc001bf1c2a593d3f2c/irc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
8872,
12,
2890,
16,
980,
4672,
468,
2690,
7084,
261,
72,
287,
2758,
24949,
898,
8372,
471,
1366,
3675,
1122,
11315,
468,
2362,
2537,
18609,
635,
521,
82,
2362,
273,
533,
18,
4939,
12,
1369,
16,
8314,
82,
6134,
364,
980,
316,
2362,
30,
980,
273,
4587,
758,
6889,
12,
1369,
13,
775,
30,
1633,
16,
1296,
16,
859,
273,
1109,
3576,
12,
1369,
13,
309,
6389,
67,
869,
67,
9009,
12164,
18,
5332,
67,
856,
12,
3076,
4672,
1296,
273,
6389,
67,
869,
67,
9009,
12164,
63,
3076,
65,
707,
273,
3869,
12,
2890,
16,
315,
481,
71,
10185,
87,
6,
738,
1296,
16,
599,
13,
309,
707,
353,
486,
599,
30,
707,
12,
3239,
16,
859,
13,
469,
30,
365,
18,
481,
71,
67,
8172,
12,
3239,
16,
1296,
16,
859,
13,
1335,
467,
11529,
6434,
1079,
30,
2230,
12,
2890,
18,
8759,
1079,
16,
261,
1369,
16,
13,
397,
2589,
18,
10075,
67,
1376,
10756,
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,
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134,
364,
980,
316,
2362,
30,
980,
273,
4587,
758,
6889,
12,
1369,
13,
775,
30,
1633,
16,
1296,
16,
859,
273,
1109,
3576,
12,
1369,
13,
309,
6389,
67,
869,
67,
9009,
12164,
18,
5332,
67,
856,
12,
3076,
4672,
1296,
273,
6389,
67,
869,
67,
9009,
12164,
63,
3076,
65,
707,
273,
3869,
12,
2890,
16,
315,
481,
71,
10185,
87,
6,
738,
1296,
16,
599,
13,
309,
707,
353,
486,
599,
30,
707,
12,
3239,
16,
2
] |
return 1
|
return Integer(1)
|
def _eval(self, n): if n == 0: return 2 elif n == 1: return 1 else: return sloane.A000045(n+1) + sloane.A000045(n-1)
|
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
374,
30,
327,
576,
1327,
290,
422,
404,
30,
327,
2144,
12,
21,
13,
469,
30,
327,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
15,
21,
13,
397,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
17,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
309,
290,
422,
374,
30,
327,
576,
1327,
290,
422,
404,
30,
327,
2144,
12,
21,
13,
469,
30,
327,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
15,
21,
13,
397,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
17,
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
] |
q = "select londiste.node_remove_table(%s, %s)"
|
q = "select * from londiste.node_remove_table(%s, %s)"
|
def cmd_remove(self, args = []): q = "select londiste.node_remove_table(%s, %s)" self.db_exec_many(q, [self.set_name], args)
|
3e7839157f34bfc1472c4a4ab0ff625c2b8c35cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14597/3e7839157f34bfc1472c4a4ab0ff625c2b8c35cf/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
4479,
12,
2890,
16,
833,
273,
5378,
4672,
1043,
273,
315,
4025,
380,
628,
328,
1434,
376,
73,
18,
2159,
67,
4479,
67,
2121,
9275,
87,
16,
738,
87,
2225,
365,
18,
1966,
67,
4177,
67,
9353,
12,
85,
16,
306,
2890,
18,
542,
67,
529,
6487,
833,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
4479,
12,
2890,
16,
833,
273,
5378,
4672,
1043,
273,
315,
4025,
380,
628,
328,
1434,
376,
73,
18,
2159,
67,
4479,
67,
2121,
9275,
87,
16,
738,
87,
2225,
365,
18,
1966,
67,
4177,
67,
9353,
12,
85,
16,
306,
2890,
18,
542,
67,
529,
6487,
833,
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
] |
self.patterson_p_value = twin_summary.patterson_p_value
|
def __init__ (self, params, xtriage_results, data_summary) : self.file_name = params.scaling.input.xray_data.file_name self.log_file = params.scaling.input.parameters.reporting.log self.file_labels = params.scaling.input.xray_data.obs_labels self.nresidues = params.scaling.input.asu_contents.n_residues self.nbases = params.scaling.input.asu_contents.n_bases self.data_summary = data_summary
|
0b2b712d21896cc716431b0766dd61a29d1c4f6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/0b2b712d21896cc716431b0766dd61a29d1c4f6b/xtriage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
859,
16,
619,
16857,
410,
67,
4717,
16,
501,
67,
7687,
13,
294,
365,
18,
768,
67,
529,
273,
859,
18,
24576,
18,
2630,
18,
92,
435,
67,
892,
18,
768,
67,
529,
365,
18,
1330,
67,
768,
273,
859,
18,
24576,
18,
2630,
18,
3977,
18,
20904,
18,
1330,
365,
18,
768,
67,
5336,
273,
859,
18,
24576,
18,
2630,
18,
92,
435,
67,
892,
18,
10992,
67,
5336,
365,
18,
82,
15567,
3610,
273,
859,
18,
24576,
18,
2630,
18,
345,
89,
67,
3980,
18,
82,
67,
15567,
3610,
365,
18,
6423,
3304,
273,
859,
18,
24576,
18,
2630,
18,
345,
89,
67,
3980,
18,
82,
67,
18602,
365,
18,
892,
67,
7687,
273,
501,
67,
7687,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
859,
16,
619,
16857,
410,
67,
4717,
16,
501,
67,
7687,
13,
294,
365,
18,
768,
67,
529,
273,
859,
18,
24576,
18,
2630,
18,
92,
435,
67,
892,
18,
768,
67,
529,
365,
18,
1330,
67,
768,
273,
859,
18,
24576,
18,
2630,
18,
3977,
18,
20904,
18,
1330,
365,
18,
768,
67,
5336,
273,
859,
18,
24576,
18,
2630,
18,
92,
435,
67,
892,
18,
10992,
67,
5336,
365,
18,
82,
15567,
3610,
273,
859,
18,
24576,
18,
2630,
18,
345,
89,
67,
3980,
18,
82,
67,
15567,
3610,
365,
18,
6423,
3304,
273,
859,
18,
24576,
18,
2630,
18,
345,
89,
67,
3980,
18,
82,
67,
18602,
365,
18,
2
] |
|
return dict(lpContext)
|
return lpContext.to_dict()
|
def GetThreadContext(hThread, ContextFlags = CONTEXT_ALL): lpContext = CONTEXT() lpContext.ContextFlags = ContextFlags success = ctypes.windll.kernel32.GetThreadContext(hThread, ctypes.byref(lpContext)) if success == FALSE: raise ctypes.WinError() return dict(lpContext)
|
4d6379e62a20ffbde8f748f5070b761e3ca679e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/4d6379e62a20ffbde8f748f5070b761e3ca679e3/kernel32.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3830,
1042,
12,
76,
3830,
16,
1772,
5094,
273,
13862,
67,
4685,
4672,
12423,
1042,
273,
13862,
1435,
12423,
1042,
18,
1042,
5094,
273,
1772,
5094,
2216,
273,
6983,
18,
10094,
2906,
18,
8111,
1578,
18,
967,
3830,
1042,
12,
76,
3830,
16,
6983,
18,
1637,
1734,
12,
9953,
1042,
3719,
309,
2216,
422,
4934,
30,
1002,
6983,
18,
18049,
668,
1435,
327,
2065,
12,
9953,
1042,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3830,
1042,
12,
76,
3830,
16,
1772,
5094,
273,
13862,
67,
4685,
4672,
12423,
1042,
273,
13862,
1435,
12423,
1042,
18,
1042,
5094,
273,
1772,
5094,
2216,
273,
6983,
18,
10094,
2906,
18,
8111,
1578,
18,
967,
3830,
1042,
12,
76,
3830,
16,
6983,
18,
1637,
1734,
12,
9953,
1042,
3719,
309,
2216,
422,
4934,
30,
1002,
6983,
18,
18049,
668,
1435,
327,
2065,
12,
9953,
1042,
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
] |
self.graphsLocation = "%s/data/accountingPlots" % rootPath
|
self.graphsLocation = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data', 'accountingPlots' )
|
def __init__( self ): self.graphsLocation = "%s/data/accountingPlots" % rootPath self.cachedGraphs = {} self.alive = True self.purgeThread = threading.Thread( target = self.purgeExpired ) self.purgeThread.start() self.__dataCache = DictCache() self.__graphCache = DictCache( deleteFunction = self.__deleteGraph ) self.__dataLifeTime = 600 self.__graphLifeTime = 3600
|
cec851889a000611d750a68e02832af93671535b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/cec851889a000611d750a68e02832af93671535b/DataCache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
262,
30,
365,
18,
30016,
2735,
273,
1140,
18,
803,
18,
5701,
12,
314,
809,
18,
24805,
12,
1173,
2042,
4956,
19,
1442,
743,
2187,
13959,
262,
16,
296,
892,
2187,
296,
4631,
310,
29311,
11,
262,
365,
18,
7097,
4137,
87,
273,
2618,
365,
18,
11462,
273,
1053,
365,
18,
26422,
3830,
273,
17254,
18,
3830,
12,
1018,
273,
365,
18,
26422,
10556,
262,
365,
18,
26422,
3830,
18,
1937,
1435,
365,
16186,
892,
1649,
273,
9696,
1649,
1435,
365,
16186,
4660,
1649,
273,
9696,
1649,
12,
1430,
2083,
273,
365,
16186,
3733,
4137,
262,
365,
16186,
892,
15315,
950,
273,
14707,
365,
16186,
4660,
15315,
950,
273,
12396,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
262,
30,
365,
18,
30016,
2735,
273,
1140,
18,
803,
18,
5701,
12,
314,
809,
18,
24805,
12,
1173,
2042,
4956,
19,
1442,
743,
2187,
13959,
262,
16,
296,
892,
2187,
296,
4631,
310,
29311,
11,
262,
365,
18,
7097,
4137,
87,
273,
2618,
365,
18,
11462,
273,
1053,
365,
18,
26422,
3830,
273,
17254,
18,
3830,
12,
1018,
273,
365,
18,
26422,
10556,
262,
365,
18,
26422,
3830,
18,
1937,
1435,
365,
16186,
892,
1649,
273,
9696,
1649,
1435,
365,
16186,
4660,
1649,
273,
9696,
1649,
12,
1430,
2083,
273,
365,
16186,
3733,
4137,
262,
365,
16186,
892,
15315,
950,
273,
14707,
365,
16186,
4660,
15315,
950,
273,
12396,
2,
-100,
-100,
-100
] |
self.ignores = ('inheritancegraph', 'param', 'listofallmembers',
|
self.ignores = ['inheritancegraph', 'param', 'listofallmembers',
|
def __init__(self, src): """Initialize the instance given a source object (file or filename).
|
d30baf081d85edb86e66350de0ee4cbd45f493f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13995/d30baf081d85edb86e66350de0ee4cbd45f493f0/doxy2swig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1705,
4672,
3536,
7520,
326,
791,
864,
279,
1084,
733,
261,
768,
578,
1544,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1705,
4672,
3536,
7520,
326,
791,
864,
279,
1084,
733,
261,
768,
578,
1544,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if __name__=="__main__":
|
if __name__ == "__main__":
|
def _test(): XMLReader() IncrementalParser() Locator() AttributesImpl()
|
980706f24e083353abd18ab5cf5d6a4bd6236c4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/980706f24e083353abd18ab5cf5d6a4bd6236c4b/xmlreader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
3167,
2514,
1435,
17883,
287,
2678,
1435,
2851,
639,
1435,
9055,
2828,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
3167,
2514,
1435,
17883,
287,
2678,
1435,
2851,
639,
1435,
9055,
2828,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def composition_series(self): """ Return the composition series of this group as a list of permutation groups. EXAMPLES: These computations use pseudo-random numbers, so we set the seed for reproducible testing. sage: set_random_seed(0) sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G.composition_series() [Permutation Group with generators [(1,2,3)(4,5), (3,4)], Permutation Group with generators [(1,5)(3,4), (1,5)(2,3), (1,5,4)], Permutation Group with generators [()]] """ current_randstate().set_seed_gap() ans = [] DS = self._gap_().CompositionSeries() n = DS.Length() for i in range(1,n+1): ans.append(PermutationGroup(DS[i].GeneratorsOfGroup())) return ans
|
def composition_series(self): """ Return the composition series of this group as a list of permutation groups.
|
1658b04d4cf7d534376d011a40bb52f192eac894 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1658b04d4cf7d534376d011a40bb52f192eac894/permgroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16919,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
16919,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16919,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
16919,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
dbl_click_call(t,t1,'OOO',event)
|
dbl_click_call(t,t1,'OOO',3,event)
|
def dbl_click_bmtext(event): t=bmtext.get('1.0',END) #Entire contents of text box t1=bmtext.get('1.0',CURRENT) #Contents from start to cursor dbl_click_call(t,t1,'OOO',event)
|
b42869f7f2ecdc35a209cbaa5bb9ab1641eb5814 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2394/b42869f7f2ecdc35a209cbaa5bb9ab1641eb5814/map65.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
80,
67,
7475,
67,
25709,
955,
12,
2575,
4672,
268,
33,
25709,
955,
18,
588,
2668,
21,
18,
20,
2187,
4415,
13,
6647,
468,
14199,
577,
2939,
434,
977,
3919,
268,
21,
33,
25709,
955,
18,
588,
2668,
21,
18,
20,
2187,
15487,
13,
1377,
468,
6323,
628,
787,
358,
3347,
1319,
80,
67,
7475,
67,
1991,
12,
88,
16,
88,
21,
11189,
25148,
51,
2187,
2575,
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,
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0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
80,
67,
7475,
67,
25709,
955,
12,
2575,
4672,
268,
33,
25709,
955,
18,
588,
2668,
21,
18,
20,
2187,
4415,
13,
6647,
468,
14199,
577,
2939,
434,
977,
3919,
268,
21,
33,
25709,
955,
18,
588,
2668,
21,
18,
20,
2187,
15487,
13,
1377,
468,
6323,
628,
787,
358,
3347,
1319,
80,
67,
7475,
67,
1991,
12,
88,
16,
88,
21,
11189,
25148,
51,
2187,
2575,
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
] |
wx.Frame.__init__(self, None, -1, "Annotations for " + group_name,style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER )
|
wx.Frame.__init__(self, None, -1, "Annotations for " + group_name,style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER | wx.SCR)
|
def __init__(self, group, model, group_name = 'default', annotations = None): wx.Frame.__init__(self, None, -1, "Annotations for " + group_name,style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER ) self.panel = wx.Panel(self, -1, size = self.GetSize() ) #self.textBox = wx.TextCtrl(self.panel, -1, txt, style= wx.TE_MULTILINE) self.okBtn = wx.Button(self.panel, id=wx.ID_OK) self.cancelBtn = wx.Button(self.panel, id=wx.ID_CANCEL) self.Bind(wx.EVT_BUTTON, self.OnOkay, self.okBtn) self.Bind(wx.EVT_BUTTON, self.OnCancel, self.cancelBtn) self.group = group self.model = model self.annotations = [] self.notebox = wx.FlexGridSizer(2,2, 0,0) self.notebox.Add(wx.StaticText(self.panel, -1, 'Name')) self.notebox.Add(wx.StaticText(self.panel, -1, 'Value')) self.notebox.AddGrowableCol(0,1) self.notebox.AddGrowableCol(1,1) if annotations is not None: for note in annotations: self.notebox.SetRows(self.notebox.GetRows()+1) name = wx.TextCtrl(self.panel, -1, note[0]) value = wx.TextCtrl(self.panel, -1, note[1]) self.notebox.Add(name) self.notebox.Add(value) self.annotations.append((name,value)) self.Bind(wx.EVT_TEXT, self.OnNotes, name) self.Bind(wx.EVT_TEXT, self.OnNotes, value) name = wx.TextCtrl(self.panel, -1, '') value = wx.TextCtrl(self.panel, -1, '') self.notebox.Add(name) self.notebox.Add(value) self.Bind(wx.EVT_TEXT, self.OnNotes, name) self.Bind(wx.EVT_TEXT, self.OnNotes, value) self.annotations.append((name,value)) #layout mainsizer = wx.BoxSizer(wx.VERTICAL) #mainsizer.Add(self.textBox,1,wx.EXPAND) mainsizer.Add(self.notebox) btnsizer = wx.BoxSizer(wx.HORIZONTAL) btnsizer.Add((10,10),1) btnsizer.Add(self.cancelBtn) btnsizer.Add((10,10)) btnsizer.Add(self.okBtn) btnsizer.Add((10,10)) mainsizer.Add(btnsizer, 0, wx.EXPAND) self.panel.SetSizer(mainsizer) mainsizer.Fit(self)
|
d268b929dc1c28ee3e2bcc995f6c844853952b7a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9486/d268b929dc1c28ee3e2bcc995f6c844853952b7a/AnnotateFrame.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1041,
16,
938,
16,
1041,
67,
529,
273,
296,
1886,
2187,
5617,
273,
599,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
300,
21,
16,
315,
5655,
364,
315,
397,
1041,
67,
529,
16,
4060,
273,
7075,
18,
5280,
67,
15072,
67,
15066,
571,
7075,
18,
862,
4574,
67,
38,
7954,
571,
7075,
18,
2312,
54,
13,
365,
18,
13916,
273,
7075,
18,
5537,
12,
2890,
16,
300,
21,
16,
963,
273,
365,
18,
967,
1225,
1435,
262,
468,
2890,
18,
955,
3514,
273,
7075,
18,
1528,
12418,
12,
2890,
18,
13916,
16,
300,
21,
16,
6463,
16,
2154,
33,
7075,
18,
1448,
67,
12845,
30690,
13,
365,
18,
601,
20541,
273,
7075,
18,
3616,
12,
2890,
18,
13916,
16,
612,
33,
27226,
18,
734,
67,
3141,
13,
365,
18,
10996,
20541,
273,
7075,
18,
3616,
12,
2890,
18,
13916,
16,
612,
33,
27226,
18,
734,
67,
25268,
13,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
20068,
16,
365,
18,
1398,
8809,
528,
16,
365,
18,
601,
20541,
13,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
20068,
16,
365,
18,
1398,
6691,
16,
365,
18,
10996,
20541,
13,
225,
365,
18,
1655,
273,
1041,
365,
18,
2284,
273,
938,
225,
365,
18,
14670,
273,
5378,
365,
18,
7652,
2147,
273,
7075,
18,
19667,
6313,
20512,
12,
22,
16,
22,
16,
374,
16,
20,
13,
365,
18,
7652,
2147,
18,
986,
12,
27226,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1041,
16,
938,
16,
1041,
67,
529,
273,
296,
1886,
2187,
5617,
273,
599,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
300,
21,
16,
315,
5655,
364,
315,
397,
1041,
67,
529,
16,
4060,
273,
7075,
18,
5280,
67,
15072,
67,
15066,
571,
7075,
18,
862,
4574,
67,
38,
7954,
571,
7075,
18,
2312,
54,
13,
365,
18,
13916,
273,
7075,
18,
5537,
12,
2890,
16,
300,
21,
16,
963,
273,
365,
18,
967,
1225,
1435,
262,
468,
2890,
18,
955,
3514,
273,
7075,
18,
1528,
12418,
12,
2890,
18,
13916,
16,
300,
21,
16,
6463,
16,
2154,
33,
7075,
18,
1448,
67,
12845,
30690,
13,
365,
2
] |
skinob = partob.__of__(skinob)
|
partob = aq_base(partob) if skinob is None: skinob = partob else: skinob = partob.__of__(skinob)
|
def getSkinByPath(self, path, raise_exc=0): """ Get a skin at the given path. """ baseself = aq_base(self) skinob = baseself parts = list( path.split(',') ) parts.reverse() for part_path in parts: partob = baseself for name in part_path.strip().split('/'): if name == '': continue if name[:1] == '_': # Not allowed. partob = None if raise_exc: raise SkinPathError('Underscores are not allowed') break # Allow acquisition tricks. partob = getattr(partob, name, None) if partob is None: # Not found. Cancel the search. if raise_exc: raise SkinPathError('Name not found: %s' % part_path) break if partob is not None: # Now partob has containment and context. # Build the final skinob by creating an object # that puts the former skinob in the context # of the new skinob. skinob = partob.__of__(skinob) return skinob
|
84ea19475e33bc04d81015a0e5041f443841fb8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/84ea19475e33bc04d81015a0e5041f443841fb8b/SkinsContainer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
15984,
16736,
12,
2890,
16,
589,
16,
1002,
67,
10075,
33,
20,
4672,
3536,
968,
279,
18705,
622,
326,
864,
589,
18,
3536,
8337,
19079,
273,
279,
85,
67,
1969,
12,
2890,
13,
18705,
947,
273,
8337,
19079,
2140,
273,
666,
12,
589,
18,
4939,
12,
2187,
6134,
262,
2140,
18,
9845,
1435,
364,
1087,
67,
803,
316,
2140,
30,
1087,
947,
273,
8337,
19079,
364,
508,
316,
1087,
67,
803,
18,
6406,
7675,
4939,
2668,
2473,
4672,
309,
508,
422,
875,
30,
1324,
309,
508,
10531,
21,
65,
422,
2070,
4278,
468,
2288,
2935,
18,
1087,
947,
273,
599,
309,
1002,
67,
10075,
30,
1002,
10362,
267,
743,
668,
2668,
984,
6794,
12906,
854,
486,
2935,
6134,
898,
468,
7852,
1721,
22094,
433,
20642,
18,
1087,
947,
273,
3869,
12,
2680,
947,
16,
508,
16,
599,
13,
309,
1087,
947,
353,
599,
30,
468,
2288,
1392,
18,
225,
10347,
326,
1623,
18,
309,
1002,
67,
10075,
30,
1002,
10362,
267,
743,
668,
2668,
461,
486,
1392,
30,
738,
87,
11,
738,
1087,
67,
803,
13,
898,
309,
1087,
947,
353,
486,
599,
30,
468,
4494,
1087,
947,
711,
912,
475,
471,
819,
18,
468,
3998,
326,
727,
18705,
947,
635,
4979,
392,
733,
468,
716,
8200,
326,
27313,
18705,
947,
316,
326,
819,
468,
434,
326,
394,
18705,
947,
18,
1087,
947,
273,
279,
85,
67,
1969,
12,
2680,
947,
13,
309,
18705,
947,
353,
599,
30,
18705,
947,
273,
1087,
947,
469,
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,
1322,
15984,
16736,
12,
2890,
16,
589,
16,
1002,
67,
10075,
33,
20,
4672,
3536,
968,
279,
18705,
622,
326,
864,
589,
18,
3536,
8337,
19079,
273,
279,
85,
67,
1969,
12,
2890,
13,
18705,
947,
273,
8337,
19079,
2140,
273,
666,
12,
589,
18,
4939,
12,
2187,
6134,
262,
2140,
18,
9845,
1435,
364,
1087,
67,
803,
316,
2140,
30,
1087,
947,
273,
8337,
19079,
364,
508,
316,
1087,
67,
803,
18,
6406,
7675,
4939,
2668,
2473,
4672,
309,
508,
422,
875,
30,
1324,
309,
508,
10531,
21,
65,
422,
2070,
4278,
468,
2288,
2935,
18,
1087,
947,
273,
599,
309,
1002,
67,
10075,
30,
1002,
10362,
267,
743,
668,
2668,
984,
6794,
12906,
854,
486,
2935,
2
] |
else: infoStr = "StorageElement.getFile: Failed to determine whether file exists." gLogger.error(infoStr,'%s for protocol %s' % (protocolPfn,protocolName)) if protocolSize: localPath = '%s/%s' % (os.getcwd(),fileName) fileTuple = (protocolPfn,localPath,protocolSize) res = storage.getFile(fileTuple) if res['OK']: if res['Value']['Successful'].has_key(protocolPfn): infoStr ="StorageElement.getFile: Got local copy of file. Checking size..." gLogger.info(infoStr)
|
if protocolSize: localPath = '%s/%s' % (os.getcwd(),fileName) fileTuple = (protocolPfn,localPath,protocolSize) res = storage.getFile(fileTuple) if res['OK']: if res['Value']['Successful'].has_key(protocolPfn): infoStr ="StorageElement.getFile: Got local copy of file. Checking size..." gLogger.info(infoStr) localSize = getSize(localPath) if localSize == protocolSize: infoStr ="StorageElement.getFile: Local file size correct." gLogger.info(infoStr,'%s with protocol %s' % (localPath,protocolName)) return S_OK(localPath)
|
def getFile(self,pfn,catalogueFileSize): """ This method will obtain a local copy of a file from the SE
|
7103ee9939a5a7ab45b51df34eb263621ec53a2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/7103ee9939a5a7ab45b51df34eb263621ec53a2c/StorageElement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
12,
2890,
16,
84,
4293,
16,
7199,
344,
15100,
4672,
3536,
1220,
707,
903,
7161,
279,
1191,
1610,
434,
279,
585,
628,
326,
3174,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
12,
2890,
16,
84,
4293,
16,
7199,
344,
15100,
4672,
3536,
1220,
707,
903,
7161,
279,
1191,
1610,
434,
279,
585,
628,
326,
3174,
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
] |
X -- input variables Y -- output variables degree -- integer > 0 (default: 2) groebner -- calculate a reduced Groebner basis of the spanning polynomials to obtain more polynomials (default: False) EXAMPLES:
|
- ``X`` - input variables - ``Y`` - output variables - ``degree`` - integer > 0 (default: ``2``) - ``groebner`` - calculate a reduced Groebner basis of the spanning polynomials to obtain more polynomials (default: ``False``) EXAMPLES::
|
def polynomials(self, X=None, Y=None, degree=2, groebner=False): r""" Return a list of polynomials satisfying this S-box.
|
16527da1ddc0ac750f609cd58858c5b45d932696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/16527da1ddc0ac750f609cd58858c5b45d932696/sbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
436,
8395,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
348,
17,
2147,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
436,
8395,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
348,
17,
2147,
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
] |
ofs.tpc_abort(transaction) print "\n%s: %s\n" % sys.exc_info()[:2]
|
ofs.tpc_abort(txn) print "error copying transaction:", err
|
def recover(inp, outp, verbose=0, partial=0, force=0, pack=0): print 'Recovering', inp, 'into', outp if os.path.exists(outp) and not force: die("%s exists" % outp) file = open(inp, "rb") if file.read(4) != ZODB.FileStorage.packed_version: die("input is not a file storage") file.seek(0,2) file_size = file.tell() ofs = ZODB.FileStorage.FileStorage(outp, create=1) _ts = None ok = 1 prog1 = 0 preindex = {} undone = 0 pos = 4 while pos: try: npos, transaction = read_transaction_header(file, pos, file_size) except EOFError: break except: print "\n%s: %s\n" % sys.exc_info()[:2] if not verbose: progress(prog1) pos = scan(file, pos) continue if transaction is None: undone = undone + npos - pos pos = npos continue else: pos = npos tid = transaction.tid if _ts is None: _ts = TimeStamp(tid) else: t = TimeStamp(tid) if t <= _ts: if ok: print ('Time stamps out of order %s, %s' % (_ts, t)) ok = 0 _ts = t.laterThan(_ts) tid = `_ts` else: _ts = t if not ok: print ('Time stamps back in order %s' % (t)) ok = 1 if verbose: print 'begin', if verbose > 1: print sys.stdout.flush() ofs.tpc_begin(transaction, tid, transaction.status) if verbose: print 'begin', pos, _ts, if verbose > 1: print sys.stdout.flush() nrec = 0 try: for r in transaction: oid = r.oid if verbose > 1: print u64(oid), r.version, len(r.data) pre = preindex.get(oid) s = ofs.store(oid, pre, r.data, r.version, transaction) preindex[oid] = s nrec += 1 except: if partial and nrec: ofs._status = 'p' ofs.tpc_vote(transaction) ofs.tpc_finish(transaction) if verbose: print 'partial' else: ofs.tpc_abort(transaction) print "\n%s: %s\n" % sys.exc_info()[:2] if not verbose: progress(prog1) pos = scan(file, pos) else: ofs.tpc_vote(transaction) ofs.tpc_finish(transaction) if verbose: print 'finish' sys.stdout.flush() if not verbose: prog = pos * 20l / file_size while prog > prog1: prog1 = prog1 + 1 iprogress(prog1) bad = file_size - undone - ofs._pos print "\n%s bytes removed during recovery" % bad if undone: print "%s bytes of undone transaction data were skipped" % undone if pack is not None: print "Packing ..." from ZODB.referencesf import referencesf ofs.pack(pack, referencesf) ofs.close()
|
9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814/fsrecover.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5910,
12,
31647,
16,
596,
84,
16,
3988,
33,
20,
16,
4702,
33,
20,
16,
2944,
33,
20,
16,
2298,
33,
20,
4672,
1172,
296,
27622,
310,
2187,
12789,
16,
296,
18591,
2187,
596,
84,
225,
309,
1140,
18,
803,
18,
1808,
12,
659,
84,
13,
471,
486,
2944,
30,
10387,
27188,
87,
1704,
6,
738,
596,
84,
13,
225,
585,
273,
1696,
12,
31647,
16,
315,
6731,
7923,
309,
585,
18,
896,
12,
24,
13,
480,
2285,
19786,
18,
812,
3245,
18,
2920,
329,
67,
1589,
30,
10387,
2932,
2630,
353,
486,
279,
585,
2502,
7923,
225,
585,
18,
16508,
12,
20,
16,
22,
13,
585,
67,
1467,
273,
585,
18,
88,
1165,
1435,
225,
26927,
273,
2285,
19786,
18,
812,
3245,
18,
812,
3245,
12,
659,
84,
16,
752,
33,
21,
13,
389,
3428,
273,
599,
1529,
273,
404,
11243,
21,
273,
374,
675,
1615,
273,
2618,
640,
8734,
273,
374,
225,
949,
273,
1059,
1323,
949,
30,
775,
30,
290,
917,
16,
2492,
273,
855,
67,
7958,
67,
3374,
12,
768,
16,
949,
16,
585,
67,
1467,
13,
1335,
6431,
668,
30,
898,
1335,
30,
1172,
1548,
82,
9,
87,
30,
738,
87,
64,
82,
6,
738,
2589,
18,
10075,
67,
1376,
1435,
10531,
22,
65,
309,
486,
3988,
30,
4007,
12,
14654,
21,
13,
949,
273,
4135,
12,
768,
16,
949,
13,
1324,
225,
309,
2492,
353,
599,
30,
640,
8734,
273,
640,
8734,
397,
290,
917,
300,
949,
949,
273,
290,
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,
5910,
12,
31647,
16,
596,
84,
16,
3988,
33,
20,
16,
4702,
33,
20,
16,
2944,
33,
20,
16,
2298,
33,
20,
4672,
1172,
296,
27622,
310,
2187,
12789,
16,
296,
18591,
2187,
596,
84,
225,
309,
1140,
18,
803,
18,
1808,
12,
659,
84,
13,
471,
486,
2944,
30,
10387,
27188,
87,
1704,
6,
738,
596,
84,
13,
225,
585,
273,
1696,
12,
31647,
16,
315,
6731,
7923,
309,
585,
18,
896,
12,
24,
13,
480,
2285,
19786,
18,
812,
3245,
18,
2920,
329,
67,
1589,
30,
10387,
2932,
2630,
353,
486,
279,
585,
2502,
7923,
225,
585,
18,
16508,
12,
20,
16,
22,
13,
585,
67,
1467,
273,
585,
18,
88,
1165,
1435,
225,
26927,
273,
2
] |
name = grb['name'] path_to_result = '%s/GRB%s/postprocessing/output/llsummary_GRB%s.pickle' %\ (grb['path'], name, name)
|
path_to_result = '%s/GRB%s/postprocessing/OPENBOX/llsummary_onoff_GRB%s.pickle' %\ (grb.analysis_dir, grb.name, grb.name)
|
def obtain_results(grb): """ Obtain the result, i.e the smallest p(c|0) @param grb: the grb stucture with all the infos in it """ name = grb['name'] path_to_result = '%s/GRB%s/postprocessing/output/llsummary_GRB%s.pickle' %\ (grb['path'], name, name) data = pickle.load(file(path_to_result)) min_prob = 2.0 for coinc in data: if 'prob' in coinc: p = coinc['prob'] if p<min_prob: min_prob = p return min_prob
|
f67b360b87008c18913a89b815227b5ee40432fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/f67b360b87008c18913a89b815227b5ee40432fa/pylal_exttrig_llutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7161,
67,
4717,
12,
3197,
70,
4672,
3536,
24850,
326,
563,
16,
277,
18,
73,
326,
13541,
293,
12,
71,
96,
20,
13,
632,
891,
3821,
70,
30,
326,
3821,
70,
384,
853,
594,
598,
777,
326,
10626,
316,
518,
3536,
225,
589,
67,
869,
67,
2088,
273,
1995,
87,
19,
6997,
38,
9,
87,
19,
2767,
10632,
19,
11437,
16876,
19,
2906,
7687,
67,
265,
3674,
67,
6997,
38,
9,
87,
18,
20847,
11,
738,
64,
261,
3197,
70,
18,
12746,
67,
1214,
16,
3821,
70,
18,
529,
16,
3821,
70,
18,
529,
13,
501,
273,
13379,
18,
945,
12,
768,
12,
803,
67,
869,
67,
2088,
3719,
225,
1131,
67,
7748,
273,
576,
18,
20,
364,
13170,
71,
316,
501,
30,
309,
296,
7748,
11,
316,
13170,
71,
30,
293,
273,
13170,
71,
3292,
7748,
3546,
309,
293,
32,
1154,
67,
7748,
30,
1131,
67,
7748,
273,
293,
225,
327,
1131,
67,
7748,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7161,
67,
4717,
12,
3197,
70,
4672,
3536,
24850,
326,
563,
16,
277,
18,
73,
326,
13541,
293,
12,
71,
96,
20,
13,
632,
891,
3821,
70,
30,
326,
3821,
70,
384,
853,
594,
598,
777,
326,
10626,
316,
518,
3536,
225,
589,
67,
869,
67,
2088,
273,
1995,
87,
19,
6997,
38,
9,
87,
19,
2767,
10632,
19,
11437,
16876,
19,
2906,
7687,
67,
265,
3674,
67,
6997,
38,
9,
87,
18,
20847,
11,
738,
64,
261,
3197,
70,
18,
12746,
67,
1214,
16,
3821,
70,
18,
529,
16,
3821,
70,
18,
529,
13,
501,
273,
13379,
18,
945,
12,
768,
12,
803,
67,
869,
67,
2088,
3719,
225,
1131,
67,
7748,
273,
576,
18,
20,
364,
2
] |
command, args = ('', '') else:
|
self.command = self.args = '' else:
|
def found_terminator(self): """Asynchat override.""" # Send the request to the server and read the reply. if self.request.strip().upper() == 'KILL': self.serverSocket.sendall('QUIT\r\n') self.send("+OK, dying.\r\n") self.shutdown(2) self.close() raise SystemExit self.serverSocket.sendall(self.request + '\r\n') if self.request.strip() == '': # Someone just hit the Enter key. command, args = ('', '') else: splitCommand = self.request.strip().split(None, 1) command = splitCommand[0].upper() args = splitCommand[1:] rawResponse, isClosing, timedOut = self.readResponse(command, args)
|
f52f2d890498484d13b002f537e7616e27a554aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/f52f2d890498484d13b002f537e7616e27a554aa/pop3proxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
468,
2479,
326,
590,
358,
326,
1438,
471,
855,
326,
4332,
18,
309,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
422,
296,
47,
15125,
4278,
365,
18,
3567,
4534,
18,
4661,
454,
2668,
3500,
1285,
64,
86,
64,
82,
6134,
365,
18,
4661,
2932,
15,
3141,
16,
7732,
310,
8403,
86,
64,
82,
7923,
365,
18,
15132,
12,
22,
13,
365,
18,
4412,
1435,
1002,
25454,
365,
18,
3567,
4534,
18,
4661,
454,
12,
2890,
18,
2293,
397,
2337,
86,
64,
82,
6134,
309,
365,
18,
2293,
18,
6406,
1435,
422,
875,
30,
468,
10548,
476,
2537,
6800,
326,
15439,
498,
18,
365,
18,
3076,
273,
365,
18,
1968,
273,
875,
469,
30,
225,
1416,
2189,
273,
365,
18,
2293,
18,
6406,
7675,
4939,
12,
7036,
16,
404,
13,
1296,
273,
1416,
2189,
63,
20,
8009,
5797,
1435,
833,
273,
1416,
2189,
63,
21,
26894,
27088,
16,
353,
15745,
16,
7491,
1182,
273,
365,
18,
896,
1064,
12,
3076,
16,
833,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
468,
2479,
326,
590,
358,
326,
1438,
471,
855,
326,
4332,
18,
309,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
422,
296,
47,
15125,
4278,
365,
18,
3567,
4534,
18,
4661,
454,
2668,
3500,
1285,
64,
86,
64,
82,
6134,
365,
18,
4661,
2932,
15,
3141,
16,
7732,
310,
8403,
86,
64,
82,
7923,
365,
18,
15132,
12,
22,
13,
365,
18,
4412,
1435,
1002,
25454,
365,
18,
3567,
4534,
18,
4661,
454,
12,
2890,
18,
2293,
397,
2337,
86,
64,
82,
6134,
309,
365,
18,
2293,
18,
6406,
1435,
422,
875,
30,
468,
10548,
476,
2537,
6800,
326,
15439,
498,
18,
365,
18,
2
] |
familyResolutionsTmp[(familyAddress, familyPort)] = fingerprint
|
if fingerprint: familyResolutionsTmp[(familyAddress, familyPort)] = fingerprint
|
def reset(self): """ Reloads connection results. """ if self.isDisabled: return # inaccessable during startup so might need to be refetched try: if not self.address: self.address = self.conn.get_info("address")["address"] except (socket.error, TorCtl.ErrorReply, TorCtl.TorCtlClosed): pass self.connectionsLock.acquire() self.clientConnectionLock.acquire() # temporary variables for connections and count connectionsTmp = [] connectionCountTmp = [0] * 5 familyResolutionsTmp = {} # used (with isBridge) to determine if inbound connections should be scrubbed isGuard = False try: myFingerprint = self.conn.get_info("fingerprint") nsCall = self.conn.get_network_status("id/%s" % myFingerprint) if nsCall: isGuard = "Guard" in nsCall[0].flags else: raise TorCtl.ErrorReply # network consensus couldn't be fetched except (socket.error, TorCtl.ErrorReply, TorCtl.TorCtlClosed): pass try: if self.clientConnectionCache == None: # client connection cache was invalidated self.clientConnectionCache = _getClientConnections(self.conn) connTimes = {} # mapping of ip/port to connection time for entry in (self.connections if not self.isPaused else self.connectionsBuffer): connTimes[(entry[CONN_F_IP], entry[CONN_F_PORT])] = entry[CONN_TIME] results = connections.getResolver("tor").getConnections() if results == self.lastConnResults: return # contents haven't changed for lIp, lPort, fIp, fPort in results: fingerprint = self.getFingerprint(fIp, fPort) isPrivate = False if lPort in (self.listenPort, self.dirPort): type = "inbound" connectionCountTmp[0] += 1 if SCRUB_PRIVATE_DATA and fIp not in self.fingerprintMappings.keys(): isPrivate = isGuard or self.isBridge elif lPort == self.controlPort: type = "control" connectionCountTmp[4] += 1 else: nickname = self.getNickname(fIp, fPort) isClient = False for clientName in self.clientConnectionCache: if nickname == clientName or (len(clientName) > 1 and clientName[0] == "$" and fingerprint == clientName[1:]): isClient = True break if isClient: type = "client" connectionCountTmp[2] += 1 elif (fIp, fPort) in DIR_SERVERS: type = "directory" connectionCountTmp[3] += 1 else: type = "outbound" connectionCountTmp[1] += 1 if SCRUB_PRIVATE_DATA and fIp not in self.fingerprintMappings.keys(): isPrivate = isExitAllowed(fIp, fPort, self.exitPolicy, self.exitRejectPrivate) # replace nat address with external version if available if self.address and type != "control": lIp = self.address try: countryCodeQuery = "ip-to-country/%s" % fIp countryCode = self.conn.get_info(countryCodeQuery)[countryCodeQuery] except (socket.error, TorCtl.ErrorReply, TorCtl.TorCtlClosed): countryCode = "??" if not self.providedGeoipWarning: log.log(log.WARN, "Tor geoip database is unavailable.") self.providedGeoipWarning = True if (fIp, fPort) in connTimes: connTime = connTimes[(fIp, fPort)] else: connTime = time.time() connectionsTmp.append((type, lIp, lPort, fIp, fPort, countryCode, connTime, isPrivate)) # appends localhost connection to allow user to look up their own consensus entry selfFingerprint = None try: selfFingerprint = self.conn.get_info("fingerprint")["fingerprint"] except (socket.error, TorCtl.ErrorReply, TorCtl.TorCtlClosed): pass if self.address and selfFingerprint: try: countryCodeQuery = "ip-to-country/%s" % self.address selfCountryCode = self.conn.get_info(countryCodeQuery)[countryCodeQuery] except (socket.error, TorCtl.ErrorReply, TorCtl.TorCtlClosed): selfCountryCode = "??" if (self.address, self.orPort) in connTimes: connTime = connTimes[(self.address, self.orPort)] else: connTime = time.time() self.localhostEntry = (("localhost", self.address, self.orPort, self.address, self.orPort, selfCountryCode, connTime, False), selfFingerprint) connectionsTmp.append(self.localhostEntry[0]) else: self.localhostEntry = None # appends family connections tmpCounter = 0 # used for unique port of unresolved family entries (funky hack) for fingerprint in self.family: try: nsCall = self.conn.get_network_status("id/%s" % fingerprint) if nsCall: familyAddress, familyPort = nsCall[0].ip, nsCall[0].orport else: raise TorCtl.ErrorReply # network consensus couldn't be fetched countryCodeQuery = "ip-to-country/%s" % familyAddress familyCountryCode = self.conn.get_info(countryCodeQuery)[countryCodeQuery] if (familyAddress, familyPort) in connTimes: connTime = connTimes[(familyAddress, familyPort)] else: connTime = time.time() familyResolutionsTmp[(familyAddress, familyPort)] = fingerprint connectionsTmp.append(("family", familyAddress, familyPort, familyAddress, familyPort, familyCountryCode, connTime, False)) except (socket.error, TorCtl.ErrorReply): # use dummy entry for sorting - the draw function notes that entries are unknown portIdentifier = str(65536 + tmpCounter) familyResolutionsTmp[("256.255.255.255", portIdentifier)] = fingerprint connectionsTmp.append(("family", "256.255.255.255", portIdentifier, "256.255.255.255", portIdentifier, "??", time.time(), False)) tmpCounter += 1 except TorCtl.TorCtlClosed: pass # connections aren't shown when control port is unavailable self.lastUpdate = time.time() # assigns results if self.isPaused: self.connectionsBuffer = connectionsTmp self.connectionCountBuffer = connectionCountTmp self.familyResolutionsBuffer = familyResolutionsTmp else: self.connections = connectionsTmp self.connectionCount = connectionCountTmp self.familyResolutions = familyResolutionsTmp # hostnames are sorted at draw - otherwise now's a good time if self.listingType != LIST_HOSTNAME: self.sortConnections() self.lastConnResults = results finally: self.connectionsLock.release() self.clientConnectionLock.release()
|
9515c30f0a13e9595bf0ac6dc78cae4e68c772c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13459/9515c30f0a13e9595bf0ac6dc78cae4e68c772c4/connPanel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
3536,
23086,
87,
1459,
1686,
18,
3536,
225,
309,
365,
18,
291,
8853,
30,
327,
225,
468,
316,
3860,
429,
4982,
11850,
1427,
4825,
1608,
358,
506,
1278,
1593,
329,
775,
30,
309,
486,
365,
18,
2867,
30,
365,
18,
2867,
273,
365,
18,
4646,
18,
588,
67,
1376,
2932,
2867,
7923,
9614,
2867,
11929,
1335,
261,
7814,
18,
1636,
16,
23763,
39,
6172,
18,
668,
7817,
16,
23763,
39,
6172,
18,
27266,
39,
6172,
7395,
4672,
1342,
225,
365,
18,
13313,
2531,
18,
1077,
1039,
1435,
365,
18,
2625,
1952,
2531,
18,
1077,
1039,
1435,
225,
468,
6269,
3152,
364,
5921,
471,
1056,
5921,
9161,
273,
5378,
1459,
1380,
9161,
273,
306,
20,
65,
380,
1381,
6755,
2903,
6170,
9161,
273,
2618,
225,
468,
1399,
261,
1918,
353,
13691,
13,
358,
4199,
309,
13357,
5921,
1410,
506,
11991,
373,
2992,
353,
16709,
273,
1083,
775,
30,
3399,
17678,
273,
365,
18,
4646,
18,
588,
67,
1376,
2932,
24716,
7923,
3153,
1477,
273,
365,
18,
4646,
18,
588,
67,
5185,
67,
2327,
2932,
350,
5258,
87,
6,
738,
3399,
17678,
13,
309,
3153,
1477,
30,
353,
16709,
273,
315,
16709,
6,
316,
3153,
1477,
63,
20,
8009,
7133,
469,
30,
1002,
23763,
39,
6172,
18,
668,
7817,
468,
2483,
18318,
17991,
1404,
506,
12807,
1335,
261,
7814,
18,
1636,
16,
23763,
39,
6172,
18,
668,
7817,
16,
23763,
39,
6172,
18,
27266,
39,
6172,
7395,
4672,
1342,
225,
775,
30,
309,
365,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
3536,
23086,
87,
1459,
1686,
18,
3536,
225,
309,
365,
18,
291,
8853,
30,
327,
225,
468,
316,
3860,
429,
4982,
11850,
1427,
4825,
1608,
358,
506,
1278,
1593,
329,
775,
30,
309,
486,
365,
18,
2867,
30,
365,
18,
2867,
273,
365,
18,
4646,
18,
588,
67,
1376,
2932,
2867,
7923,
9614,
2867,
11929,
1335,
261,
7814,
18,
1636,
16,
23763,
39,
6172,
18,
668,
7817,
16,
23763,
39,
6172,
18,
27266,
39,
6172,
7395,
4672,
1342,
225,
365,
18,
13313,
2531,
18,
1077,
1039,
1435,
365,
18,
2625,
1952,
2531,
18,
1077,
1039,
1435,
225,
468,
6269,
3152,
364,
5921,
471,
1056,
5921,
9161,
273,
5378,
1459,
1380,
9161,
273,
306,
20,
2
] |
from MySQLdb import version_info as ver
|
ver = MySQLdb.version_info
|
def _mysqldb_gt_or_eq(self, v): """This function checks whether the version of python-mysqldb is greater than or equal to the version that's passed to it. Note that the tuple only checks the major, minor, and sub versions; the sub-sub version is weird, so we only check for 'final' versions. """ from MySQLdb import version_info as ver if ver[0] < v[0] or ver[1] < v[1] or ver[2] < v[2]: return False if ver[3] != 'final': return False return True
|
7b14ba610ed3370bfe69a5613fb5c061c9dcaf11 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/7b14ba610ed3370bfe69a5613fb5c061c9dcaf11/mysql_backend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12527,
1966,
67,
4521,
67,
280,
67,
11253,
12,
2890,
16,
331,
4672,
3536,
2503,
445,
4271,
2856,
326,
1177,
434,
5790,
17,
12527,
1966,
353,
6802,
2353,
578,
3959,
358,
326,
1177,
716,
1807,
2275,
358,
518,
18,
3609,
716,
326,
3193,
1338,
4271,
326,
7888,
16,
8439,
16,
471,
720,
5244,
31,
326,
720,
17,
1717,
1177,
353,
20843,
16,
1427,
732,
1338,
866,
364,
296,
6385,
11,
5244,
18,
3536,
1924,
273,
13485,
1966,
18,
1589,
67,
1376,
309,
1924,
63,
20,
65,
411,
331,
63,
20,
65,
578,
1924,
63,
21,
65,
411,
331,
63,
21,
65,
578,
1924,
63,
22,
65,
411,
331,
63,
22,
14542,
327,
1083,
309,
1924,
63,
23,
65,
480,
296,
6385,
4278,
327,
1083,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12527,
1966,
67,
4521,
67,
280,
67,
11253,
12,
2890,
16,
331,
4672,
3536,
2503,
445,
4271,
2856,
326,
1177,
434,
5790,
17,
12527,
1966,
353,
6802,
2353,
578,
3959,
358,
326,
1177,
716,
1807,
2275,
358,
518,
18,
3609,
716,
326,
3193,
1338,
4271,
326,
7888,
16,
8439,
16,
471,
720,
5244,
31,
326,
720,
17,
1717,
1177,
353,
20843,
16,
1427,
732,
1338,
866,
364,
296,
6385,
11,
5244,
18,
3536,
1924,
273,
13485,
1966,
18,
1589,
67,
1376,
309,
1924,
63,
20,
65,
411,
331,
63,
20,
65,
578,
1924,
63,
21,
65,
411,
331,
63,
21,
65,
578,
1924,
63,
22,
65,
411,
331,
63,
22,
14542,
327,
1083,
309,
1924,
63,
23,
2
] |
def docclass(self, object):
|
def docclass(self, object, name=None):
|
def docclass(self, object): """Produce text documentation for a given class object.""" name = object.__name__ bases = object.__bases__
|
a8b37d1a3238fb85be760a30db03672525e8f591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a8b37d1a3238fb85be760a30db03672525e8f591/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1106,
12,
2890,
16,
733,
16,
508,
33,
7036,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
667,
733,
12123,
508,
273,
733,
16186,
529,
972,
8337,
273,
733,
16186,
18602,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1106,
12,
2890,
16,
733,
16,
508,
33,
7036,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
667,
733,
12123,
508,
273,
733,
16186,
529,
972,
8337,
273,
733,
16186,
18602,
972,
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
] |
:param start: Start :class:`datetime.datetime`. :param ends_in: The end delta as a :class:`datetime.timedelta`.
|
:param start: Start :class:`~datetime.datetime`. :param ends_in: The end delta as a :class:`~datetime.timedelta`.
|
def remaining(start, ends_in, now=None, relative=True): """Calculate the remaining time for a start date and a timedelta. E.g. "how many seconds left for 30 seconds after ``start``?" :param start: Start :class:`datetime.datetime`. :param ends_in: The end delta as a :class:`datetime.timedelta`. :keyword relative: If set to ``False``, the end time will be calculated using :func:`delta_resolution` (i.e. rounded to the resolution of ``ends_in``). :keyword now: The current time, defaults to :func:`datetime.now`. """ now = now or datetime.now() end_date = start + ends_in if not relative: end_date = delta_resolution(end_date, ends_in) return end_date - now
|
37c7d5aa33714a84474b2cce10a5bbc9454bfdd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/37c7d5aa33714a84474b2cce10a5bbc9454bfdd0/timeutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4463,
12,
1937,
16,
3930,
67,
267,
16,
2037,
33,
7036,
16,
3632,
33,
5510,
4672,
3536,
8695,
326,
4463,
813,
364,
279,
787,
1509,
471,
279,
10661,
18,
225,
512,
18,
75,
18,
315,
13606,
4906,
3974,
2002,
364,
5196,
3974,
1839,
12176,
1937,
10335,
7225,
225,
294,
891,
787,
30,
3603,
294,
1106,
28288,
98,
6585,
18,
6585,
8338,
294,
891,
3930,
67,
267,
30,
1021,
679,
3622,
487,
279,
294,
1106,
28288,
98,
6585,
18,
31295,
8338,
294,
11041,
3632,
30,
971,
444,
358,
12176,
8381,
68,
9191,
326,
679,
813,
903,
506,
8894,
1450,
294,
644,
28288,
9878,
67,
19182,
68,
261,
77,
18,
73,
18,
16729,
358,
326,
7861,
434,
12176,
5839,
67,
267,
10335,
2934,
294,
11041,
2037,
30,
1021,
783,
813,
16,
3467,
358,
294,
644,
28288,
6585,
18,
3338,
8338,
225,
3536,
2037,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4463,
12,
1937,
16,
3930,
67,
267,
16,
2037,
33,
7036,
16,
3632,
33,
5510,
4672,
3536,
8695,
326,
4463,
813,
364,
279,
787,
1509,
471,
279,
10661,
18,
225,
512,
18,
75,
18,
315,
13606,
4906,
3974,
2002,
364,
5196,
3974,
1839,
12176,
1937,
10335,
7225,
225,
294,
891,
787,
30,
3603,
294,
1106,
28288,
98,
6585,
18,
6585,
8338,
294,
891,
3930,
67,
267,
30,
1021,
679,
3622,
487,
279,
294,
1106,
28288,
98,
6585,
18,
31295,
8338,
294,
11041,
3632,
30,
971,
444,
358,
12176,
8381,
68,
9191,
326,
679,
813,
903,
506,
8894,
1450,
294,
644,
28288,
9878,
67,
19182,
68,
261,
77,
18,
73,
18,
16729,
358,
326,
7861,
434,
12176,
5839,
67,
2
] |
def __init__(self, lines=[], filename=None, begin=-1, endScope=None):
|
def __init__(self, lines=None, filename=None, begin=-1, endScope=None):
|
def __init__(self, lines=[], filename=None, begin=-1, endScope=None): "Initialize a new WmlIterator." if not lines and filename: ifp = open(filename) lines = ifp.readlines() ifp.close() self.lines = lines self.fname = filename self.reset() self.seek(begin)
|
b2f84bdbe93b802cc3661fc2d1c4e129d29d0bc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9355/b2f84bdbe93b802cc3661fc2d1c4e129d29d0bc7/wmliterator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2362,
33,
7036,
16,
1544,
33,
7036,
16,
2376,
29711,
21,
16,
679,
3876,
33,
7036,
4672,
315,
7520,
279,
394,
678,
781,
3198,
1199,
309,
486,
2362,
471,
1544,
30,
309,
84,
273,
1696,
12,
3459,
13,
2362,
273,
309,
84,
18,
896,
3548,
1435,
309,
84,
18,
4412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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,
1001,
2738,
972,
12,
2890,
16,
2362,
33,
7036,
16,
1544,
33,
7036,
16,
2376,
29711,
21,
16,
679,
3876,
33,
7036,
4672,
315,
7520,
279,
394,
678,
781,
3198,
1199,
309,
486,
2362,
471,
1544,
30,
309,
84,
273,
1696,
12,
3459,
13,
2362,
273,
309,
84,
18,
896,
3548,
1435,
309,
84,
18,
4412,
1435,
365,
18,
3548,
273,
2362,
365,
18,
12749,
273,
1544,
365,
18,
6208,
1435,
365,
18,
16508,
12,
10086,
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
] |
skeleton stays same but all data disappears...
|
Removes all data from table_name, except for the structure of the columns. EXAMPLE: sage: D = SQLDatabase() sage: D.create_table('simon',{'col1':{'sql':'INTEGER'}}) sage: D.add_row('simon',(9,)) sage: D.show('simon') col1 -------------------- 9 sage: D.drop_data_from_table('simon') sage: D.show('simon') col1 --------------------
|
def drop_data_from_table(self, table_name): """ skeleton stays same but all data disappears... """ if not self.__skeleton__.has_key(table_name): raise ValueError("Database has no table %s."%table_name) self.__connection__.execute('delete from ' + table_name)
|
5ddf79d83938a9c0191ec3af2f60e264a74ecef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5ddf79d83938a9c0191ec3af2f60e264a74ecef9/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
892,
67,
2080,
67,
2121,
12,
2890,
16,
1014,
67,
529,
4672,
3536,
20284,
777,
501,
628,
1014,
67,
529,
16,
1335,
364,
326,
3695,
434,
326,
2168,
18,
225,
5675,
21373,
30,
272,
410,
30,
463,
273,
3063,
4254,
1435,
272,
410,
30,
463,
18,
2640,
67,
2121,
2668,
9812,
265,
2187,
27828,
1293,
21,
4278,
27828,
4669,
11,
2497,
14217,
11,
97,
6792,
272,
410,
30,
463,
18,
1289,
67,
492,
2668,
9812,
265,
2187,
12,
29,
16,
3719,
272,
410,
30,
463,
18,
4500,
2668,
9812,
265,
6134,
645,
21,
12146,
6062,
2468,
272,
410,
30,
463,
18,
7285,
67,
892,
67,
2080,
67,
2121,
2668,
9812,
265,
6134,
272,
410,
30,
463,
18,
4500,
2668,
9812,
265,
6134,
645,
21,
12146,
6062,
225,
3536,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
12,
2121,
67,
529,
4672,
1002,
2068,
2932,
4254,
711,
1158,
1014,
738,
87,
1199,
9,
2121,
67,
529,
13,
365,
16186,
4071,
25648,
8837,
2668,
3733,
628,
296,
397,
1014,
67,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
892,
67,
2080,
67,
2121,
12,
2890,
16,
1014,
67,
529,
4672,
3536,
20284,
777,
501,
628,
1014,
67,
529,
16,
1335,
364,
326,
3695,
434,
326,
2168,
18,
225,
5675,
21373,
30,
272,
410,
30,
463,
273,
3063,
4254,
1435,
272,
410,
30,
463,
18,
2640,
67,
2121,
2668,
9812,
265,
2187,
27828,
1293,
21,
4278,
27828,
4669,
11,
2497,
14217,
11,
97,
6792,
272,
410,
30,
463,
18,
1289,
67,
492,
2668,
9812,
265,
2187,
12,
29,
16,
3719,
272,
410,
30,
463,
18,
4500,
2668,
9812,
265,
6134,
645,
21,
12146,
6062,
2468,
272,
410,
30,
463,
18,
7285,
67,
892,
67,
2080,
67,
2121,
2668,
9812,
265,
6134,
272,
410,
30,
463,
2
] |
f.write(get_time())
|
f.write(str(os.getpid()))
|
def set_lock(): """ Sets the lock file """ f = open(get_lockname(),'w') f.write(get_time()) f.close()
|
220a011764b979db0735a926a9c357f113032bd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/220a011764b979db0735a926a9c357f113032bd5/pylal_exttrig_llutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
739,
13332,
3536,
11511,
326,
2176,
585,
3536,
284,
273,
1696,
12,
588,
67,
739,
529,
9334,
11,
91,
6134,
284,
18,
2626,
12,
701,
12,
538,
18,
588,
6610,
1435,
3719,
284,
18,
4412,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nhs=0 if options.serial_handshake.get()=='XONXOFF': nhs=1 if options.serial_handshake.get()=='Hardware': nhs=2 w.acom1.nhandshake=nhs
|
w.acom1.chs=options.serial_handshake.get() + \ ' '[:40]
|
def put_params(param3=NONE): global param20
|
a89efc8912513f3ac02de8a6a6823b34e5fc7833 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2394/a89efc8912513f3ac02de8a6a6823b34e5fc7833/wspr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
2010,
12,
891,
23,
33,
9826,
4672,
2552,
579,
3462,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
2010,
12,
891,
23,
33,
9826,
4672,
2552,
579,
3462,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.data.pop(key, *args)
|
return self.data.pop(key.upper(), *args)
|
def pop(self, key, *args): unsetenv(key) return self.data.pop(key, *args)
|
e425e36103ce87de6e97c8315e8ec9ac961b44c1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e425e36103ce87de6e97c8315e8ec9ac961b44c1/os.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
12,
2890,
16,
498,
16,
380,
1968,
4672,
2646,
3074,
12,
856,
13,
327,
365,
18,
892,
18,
5120,
12,
856,
16,
380,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
12,
2890,
16,
498,
16,
380,
1968,
4672,
2646,
3074,
12,
856,
13,
327,
365,
18,
892,
18,
5120,
12,
856,
16,
380,
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,
-100,
-100
] |
"%s cannot be child of %s" % (repr(node), repr(self) )
|
"%s cannot be child of %s" % (repr(node), repr(self))
|
def appendChild(self, node): if node.nodeType not in self.childNodeTypes: raise HierarchyRequestErr, \ "%s cannot be child of %s" % (repr(node), repr(self) ) if node.parentNode is not None: node.parentNode.removeChild(node) if self.childNodes: last = self.lastChild node.previousSibling = last last.nextSibling = node else: node.previousSibling = None node.nextSibling = None self.childNodes.append(node) if self._makeParentNodes: node.parentNode = self return node
|
ec5905c95815205aa328f8b75324f1465ff85290 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ec5905c95815205aa328f8b75324f1465ff85290/minidom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5833,
12,
2890,
16,
756,
4672,
309,
756,
18,
2159,
559,
486,
316,
365,
18,
3624,
907,
2016,
30,
1002,
670,
6000,
691,
2524,
16,
521,
2213,
87,
2780,
506,
1151,
434,
738,
87,
6,
738,
261,
12715,
12,
2159,
3631,
8480,
12,
2890,
3719,
309,
756,
18,
2938,
907,
353,
486,
599,
30,
756,
18,
2938,
907,
18,
4479,
1763,
12,
2159,
13,
309,
365,
18,
3624,
3205,
30,
1142,
273,
365,
18,
2722,
1763,
756,
18,
11515,
10291,
273,
1142,
1142,
18,
4285,
10291,
273,
756,
469,
30,
756,
18,
11515,
10291,
273,
599,
756,
18,
4285,
10291,
273,
599,
365,
18,
3624,
3205,
18,
6923,
12,
2159,
13,
309,
365,
6315,
6540,
3054,
3205,
30,
756,
18,
2938,
907,
273,
365,
327,
756,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5833,
12,
2890,
16,
756,
4672,
309,
756,
18,
2159,
559,
486,
316,
365,
18,
3624,
907,
2016,
30,
1002,
670,
6000,
691,
2524,
16,
521,
2213,
87,
2780,
506,
1151,
434,
738,
87,
6,
738,
261,
12715,
12,
2159,
3631,
8480,
12,
2890,
3719,
309,
756,
18,
2938,
907,
353,
486,
599,
30,
756,
18,
2938,
907,
18,
4479,
1763,
12,
2159,
13,
309,
365,
18,
3624,
3205,
30,
1142,
273,
365,
18,
2722,
1763,
756,
18,
11515,
10291,
273,
1142,
1142,
18,
4285,
10291,
273,
756,
469,
30,
756,
18,
11515,
10291,
273,
599,
756,
18,
4285,
10291,
273,
599,
365,
18,
3624,
3205,
18,
6923,
12,
2159,
13,
309,
365,
6315,
6540,
3054,
3205,
30,
2
] |
(DCC, ['RESUME', fileName, port, resumePos])])
|
('DCC', ['SEND', 'RESUME', fileName, port, resumePos])])
|
def dccResume(self, user, fileName, port, resumePos): """Send a DCC RESUME request to another user.""" self.ctcpMakeQuery(user, [ (DCC, ['RESUME', fileName, port, resumePos])])
|
e962a8bb8dcad31eea345dc001bf1c2a593d3f2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e962a8bb8dcad31eea345dc001bf1c2a593d3f2c/irc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
952,
20911,
12,
2890,
16,
729,
16,
3968,
16,
1756,
16,
10774,
1616,
4672,
3536,
3826,
279,
463,
6743,
2438,
30590,
590,
358,
4042,
729,
12123,
365,
18,
299,
4057,
6464,
1138,
12,
1355,
16,
306,
261,
5528,
39,
16,
10228,
862,
30590,
2187,
3968,
16,
1756,
16,
10774,
1616,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
952,
20911,
12,
2890,
16,
729,
16,
3968,
16,
1756,
16,
10774,
1616,
4672,
3536,
3826,
279,
463,
6743,
2438,
30590,
590,
358,
4042,
729,
12123,
365,
18,
299,
4057,
6464,
1138,
12,
1355,
16,
306,
261,
5528,
39,
16,
10228,
862,
30590,
2187,
3968,
16,
1756,
16,
10774,
1616,
5717,
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
] |
expected = [ 'reportdir=', 'reportfile=', 'escape=', 'variable=',
|
expected = [ 'reportdir=', 'reportfile=', 'escape=', 'variable=',
|
def test_long_options(self): expected = [ 'reportdir=', 'reportfile=', 'escape=', 'variable=', 'name=', 'help', 'version' ] assert_equals(self.ap._long_opts, expected)
|
63d0a93318c6aa819fb3e9cf63812b9c784165a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/63d0a93318c6aa819fb3e9cf63812b9c784165a6/test_argumentparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5748,
67,
2116,
12,
2890,
4672,
2665,
273,
306,
296,
6006,
1214,
33,
2187,
296,
6006,
768,
33,
2187,
296,
6939,
33,
2187,
296,
6105,
33,
2187,
296,
529,
33,
2187,
296,
5201,
2187,
296,
1589,
11,
308,
1815,
67,
14963,
12,
2890,
18,
438,
6315,
5748,
67,
4952,
16,
2665,
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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,
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,
5748,
67,
2116,
12,
2890,
4672,
2665,
273,
306,
296,
6006,
1214,
33,
2187,
296,
6006,
768,
33,
2187,
296,
6939,
33,
2187,
296,
6105,
33,
2187,
296,
529,
33,
2187,
296,
5201,
2187,
296,
1589,
11,
308,
1815,
67,
14963,
12,
2890,
18,
438,
6315,
5748,
67,
4952,
16,
2665,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if len(name) <= 2: ids = self.search(cr, user, [('code', '=', name)] + args,
|
if len(name) == 2: ids = self.search(cr, user, [('code', '=', name.upper())] + args,
|
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80): if not args: args=[] if not context: context={} ids = False if len(name) <= 2: ids = self.search(cr, user, [('code', '=', name)] + args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('name', operator, name)] + args, limit=limit, context=context) return self.name_get(cr, user, ids, context)
|
895f6b99d20843219f994431f3bac69b2e787594 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/895f6b99d20843219f994431f3bac69b2e787594/country.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
309,
486,
819,
30,
819,
12938,
3258,
273,
1083,
309,
562,
12,
529,
13,
422,
576,
30,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
710,
2187,
15196,
2187,
508,
18,
5797,
10756,
65,
397,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
309,
486,
3258,
30,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
529,
2187,
3726,
16,
508,
25887,
397,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
327,
365,
18,
529,
67,
588,
12,
3353,
16,
729,
16,
3258,
16,
819,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
309,
486,
819,
30,
819,
12938,
3258,
273,
1083,
309,
562,
12,
529,
13,
422,
576,
30,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
710,
2187,
15196,
2187,
508,
18,
5797,
10756,
65,
397,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
309,
486,
3258,
30,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
529,
2187,
3726,
16,
508,
25887,
397,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
2
] |
def manage_delUsers(self, names):
|
def manage_delUsers(names):
|
def manage_editUser(self, name, password, roles, domains): """ API method for changing user object attributes. Note that not all user folder implementations support changing of user object attributes. Implementations that do not support changing of user object attributes will raise an error for this method.
|
0ae0fa28bf854450e68f238e212a10ad04c88b44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/0ae0fa28bf854450e68f238e212a10ad04c88b44/UserFolderAPI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4619,
1299,
12,
2890,
16,
508,
16,
2201,
16,
4900,
16,
10128,
4672,
3536,
1491,
707,
364,
12770,
729,
733,
1677,
18,
3609,
716,
486,
777,
729,
3009,
16164,
2865,
12770,
434,
729,
733,
1677,
18,
10886,
1012,
716,
741,
486,
2865,
12770,
434,
729,
733,
1677,
903,
1002,
392,
555,
364,
333,
707,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4619,
1299,
12,
2890,
16,
508,
16,
2201,
16,
4900,
16,
10128,
4672,
3536,
1491,
707,
364,
12770,
729,
733,
1677,
18,
3609,
716,
486,
777,
729,
3009,
16164,
2865,
12770,
434,
729,
733,
1677,
18,
10886,
1012,
716,
741,
486,
2865,
12770,
434,
729,
733,
1677,
903,
1002,
392,
555,
364,
333,
707,
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
] |
for f in args:
|
for f in relpath(repo, (file,) + files):
|
def getname(rev): try: return bcache[rev] except KeyError: cl = repo.changelog.read(repo.changelog.node(rev)) name = cl[1] f = name.find('@') if f >= 0: name = name[:f] bcache[rev] = name return name
|
696aae8cd8215f7812988063e6685fe6e912a5e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/696aae8cd8215f7812988063e6685fe6e912a5e0/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
529,
12,
9083,
4672,
775,
30,
327,
324,
2493,
63,
9083,
65,
1335,
4999,
30,
927,
273,
3538,
18,
24083,
12970,
18,
896,
12,
7422,
18,
24083,
12970,
18,
2159,
12,
9083,
3719,
508,
273,
927,
63,
21,
65,
284,
273,
508,
18,
4720,
2668,
36,
6134,
309,
284,
1545,
374,
30,
508,
273,
508,
10531,
74,
65,
324,
2493,
63,
9083,
65,
273,
508,
327,
508,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
529,
12,
9083,
4672,
775,
30,
327,
324,
2493,
63,
9083,
65,
1335,
4999,
30,
927,
273,
3538,
18,
24083,
12970,
18,
896,
12,
7422,
18,
24083,
12970,
18,
2159,
12,
9083,
3719,
508,
273,
927,
63,
21,
65,
284,
273,
508,
18,
4720,
2668,
36,
6134,
309,
284,
1545,
374,
30,
508,
273,
508,
10531,
74,
65,
324,
2493,
63,
9083,
65,
273,
508,
327,
508,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
display_playback = gtk.CheckButton(_("Enable _playback/volume buttons"))
|
display_playback = gtk.CheckButton(_("_Playback/volume buttons"))
|
def on_prefs_real(self, parent_window, popuptimes, scrobbler, trayicon_available, trayicon_in_use, reconnect, renotify, reinfofile, prefs_notif_toggled, prefs_stylized_toggled, prefs_art_toggled, prefs_playback_toggled, prefs_progress_toggled, prefs_statusbar_toggled, prefs_lyrics_toggled, prefs_trayicon_toggled, prefs_crossfade_toggled, prefs_crossfade_changed, prefs_window_response, prefs_last_tab): """Display the preferences dialog""" self.window = parent_window self.scrobbler = scrobbler self.reconnect = reconnect self.renotify = renotify self.reinfofile = reinfofile self.last_tab = prefs_last_tab
|
33c3bc0083522bfafaf552ff38d4ed3761f9fffe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/33c3bc0083522bfafaf552ff38d4ed3761f9fffe/preferences.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1484,
2556,
67,
7688,
12,
2890,
16,
982,
67,
5668,
16,
1843,
3648,
4485,
16,
888,
303,
9897,
749,
16,
268,
435,
3950,
67,
5699,
16,
268,
435,
3950,
67,
267,
67,
1202,
16,
11812,
16,
283,
12336,
16,
283,
1376,
768,
16,
15503,
67,
902,
430,
67,
88,
23972,
1259,
16,
15503,
67,
334,
93,
80,
1235,
67,
88,
23972,
1259,
16,
15503,
67,
485,
67,
88,
23972,
1259,
16,
15503,
67,
1601,
823,
67,
88,
23972,
1259,
16,
15503,
67,
8298,
67,
88,
23972,
1259,
16,
15503,
67,
2327,
3215,
67,
88,
23972,
1259,
16,
15503,
67,
715,
1512,
87,
67,
88,
23972,
1259,
16,
15503,
67,
313,
528,
3950,
67,
88,
23972,
1259,
16,
15503,
67,
14653,
507,
323,
67,
88,
23972,
1259,
16,
15503,
67,
14653,
507,
323,
67,
6703,
16,
15503,
67,
5668,
67,
2740,
16,
15503,
67,
2722,
67,
7032,
4672,
3536,
4236,
326,
12750,
6176,
8395,
365,
18,
5668,
273,
982,
67,
5668,
365,
18,
1017,
303,
9897,
749,
273,
888,
303,
9897,
749,
365,
18,
25913,
273,
11812,
365,
18,
266,
12336,
273,
283,
12336,
365,
18,
266,
1376,
768,
273,
283,
1376,
768,
365,
18,
2722,
67,
7032,
273,
15503,
67,
2722,
67,
7032,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1484,
2556,
67,
7688,
12,
2890,
16,
982,
67,
5668,
16,
1843,
3648,
4485,
16,
888,
303,
9897,
749,
16,
268,
435,
3950,
67,
5699,
16,
268,
435,
3950,
67,
267,
67,
1202,
16,
11812,
16,
283,
12336,
16,
283,
1376,
768,
16,
15503,
67,
902,
430,
67,
88,
23972,
1259,
16,
15503,
67,
334,
93,
80,
1235,
67,
88,
23972,
1259,
16,
15503,
67,
485,
67,
88,
23972,
1259,
16,
15503,
67,
1601,
823,
67,
88,
23972,
1259,
16,
15503,
67,
8298,
67,
88,
23972,
1259,
16,
15503,
67,
2327,
3215,
67,
88,
23972,
1259,
16,
15503,
67,
715,
1512,
87,
67,
88,
23972,
1259,
16,
15503,
67,
313,
528,
3950,
67,
88,
23972,
1259,
2
] |
self.restore_files()
|
self.restore_files()
|
def s_apply(self, func, args=(), kw=None):
|
b9c951d8cedeec531cce217b5117b5d471b1e468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b9c951d8cedeec531cce217b5117b5d471b1e468/rexec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
67,
9010,
12,
2890,
16,
1326,
16,
833,
33,
9334,
5323,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
67,
9010,
12,
2890,
16,
1326,
16,
833,
33,
9334,
5323,
33,
7036,
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
] |
return self.SAT_SUBJECTS
|
return SATPrepTeacherModuleInfo.SAT_SUBJECTS
|
def subjects(): return self.SAT_SUBJECTS
|
7e01587a343a49e80ba784440c917d2264267b92 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/7e01587a343a49e80ba784440c917d2264267b92/module_ext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16782,
13332,
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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,
16782,
13332,
327,
365,
18,
55,
789,
67,
8362,
5304,
55,
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
] |
cache=cache)
|
cache=cache, ignoretz=ignoretz, tzinfos=tzinfos)
|
def _parse_rfc(self, s, dtstart=None, cache=False, unfold=False, forceset=False, compatible=False, ignoretz=False): global parser if compatible: forceset = True s = s.upper() lines = s.splitlines() if not lines: raise ValueError, "empty string" if unfold: i = 0 while i < len(lines): line = lines[i].rstrip() if not line: del lines[i] elif i > 0 and line[0] == " ": lines[i-1] += line[1:] del lines[i] else: i += 1 else: i = 0 while i < len(lines): line = lines[i].strip() if not line: del lines[i] else: lines[i] = line i += 1 if (not forceset and len(lines) == 1 and (not s.find(':') or s.startswith('RRULE:'))): return self._parse_rfc_rrule(s, cache=cache) else: rrulevals = [] rdatevals = [] exrulevals = [] exdatevals = [] for line in lines: if not line: continue name, value = line.split(':', 1) parms = name.split(';') if not parms: raise ValueError, "empty property name" name = parms[0] parms = parms[1:] if name == "RRULE": for parm in parms: raise ValueError, "unsupported RRULE parm: "+parm rrulevals.append(value) elif name == "RDATE": for parm in parms: if parm != "VALUE=DATE-TIME": raise ValueError, "unsupported RDATE parm: "+parm rdatevals.append(value) elif name == "EXRULE": for parm in parms: raise ValueError, "unsupported EXRULE parm: "+parm exrulevals.append(value) elif name == "EXDATE": for parm in parms: if parm != "VALUE=DATE-TIME": raise ValueError, "unsupported RDATE parm: "+parm exdatevals.append(value) elif name == "DTSTART": for parm in parms: raise ValueError, "unsupported DTSTART parm: "+parm if not parser: from dateutil import parser dtstart = parser.parse(value, ignoretz=ignoretz) else: raise ValueError, "unsupported property: "+name if (forceset or len(rrulevals) > 1 or rdatevals or exrulevals or exdatevals): if not parser and (rdatevals or exdatevals): from dateutil import parser set = rruleset(cache=cache) for value in rrulevals: set.rrule(self._parse_rfc_rrule(value, dtstart=dtstart)) for value in rdatevals: for datestr in value.split(','): set.rdate(parser.parse(datestr, ignoretz=ignoretz)) for value in exrulevals: set.exrule(self._parse_rfc_rrule(value, dtstart=dtstart)) for value in exdatevals: for datestr in value.split(','): set.exdate(parser.parse(datestr, ignoretz=ignoretz)) if compatible and dtstart: set.rdate(dtstart) return set else: return self._parse_rfc_rrule(rrulevals[0], dtstart=dtstart, cache=cache)
|
d375f07e08a8fd61f1640e67f981e1abdac8d8d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/d375f07e08a8fd61f1640e67f981e1abdac8d8d1/rrule.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
16784,
12,
2890,
16,
272,
16,
3681,
1937,
33,
7036,
16,
1247,
33,
8381,
16,
640,
16007,
33,
8381,
16,
26376,
278,
33,
8381,
16,
7318,
33,
8381,
16,
2305,
12994,
33,
8381,
4672,
2552,
2082,
309,
7318,
30,
26376,
278,
273,
1053,
272,
273,
272,
18,
5797,
1435,
2362,
273,
272,
18,
4939,
3548,
1435,
309,
486,
2362,
30,
1002,
2068,
16,
315,
5531,
533,
6,
309,
640,
16007,
30,
277,
273,
374,
1323,
277,
411,
562,
12,
3548,
4672,
980,
273,
2362,
63,
77,
8009,
86,
6406,
1435,
309,
486,
980,
30,
1464,
2362,
63,
77,
65,
1327,
277,
405,
374,
471,
980,
63,
20,
65,
422,
315,
6398,
2362,
63,
77,
17,
21,
65,
1011,
980,
63,
21,
26894,
1464,
2362,
63,
77,
65,
469,
30,
277,
1011,
404,
469,
30,
277,
273,
374,
1323,
277,
411,
562,
12,
3548,
4672,
980,
273,
2362,
63,
77,
8009,
6406,
1435,
309,
486,
980,
30,
1464,
2362,
63,
77,
65,
469,
30,
2362,
63,
77,
65,
273,
980,
277,
1011,
404,
309,
261,
902,
26376,
278,
471,
562,
12,
3548,
13,
422,
404,
471,
261,
902,
272,
18,
4720,
2668,
2497,
13,
578,
272,
18,
17514,
1918,
2668,
54,
14920,
2497,
3719,
4672,
327,
365,
6315,
2670,
67,
16784,
67,
523,
725,
12,
87,
16,
1247,
33,
2493,
16,
2305,
12994,
33,
6185,
12994,
16,
6016,
18227,
33,
12994,
18227,
13,
469,
30,
436,
5345,
4524,
273,
5378,
436,
712,
4524,
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,
389,
2670,
67,
16784,
12,
2890,
16,
272,
16,
3681,
1937,
33,
7036,
16,
1247,
33,
8381,
16,
640,
16007,
33,
8381,
16,
26376,
278,
33,
8381,
16,
7318,
33,
8381,
16,
2305,
12994,
33,
8381,
4672,
2552,
2082,
309,
7318,
30,
26376,
278,
273,
1053,
272,
273,
272,
18,
5797,
1435,
2362,
273,
272,
18,
4939,
3548,
1435,
309,
486,
2362,
30,
1002,
2068,
16,
315,
5531,
533,
6,
309,
640,
16007,
30,
277,
273,
374,
1323,
277,
411,
562,
12,
3548,
4672,
980,
273,
2362,
63,
77,
8009,
86,
6406,
1435,
309,
486,
980,
30,
1464,
2362,
63,
77,
65,
1327,
277,
405,
374,
471,
980,
63,
20,
65,
422,
315,
6398,
2362,
63,
77,
17,
2
] |
msg = d['msg'] if not msg:
|
msgs = d['msg'] result = u"" close = d['page'].link_to(self.request, text=_('Clear message')) for msg, msg_class in msgs: try: result += u'<p>%s</p>' % msg.render() close = '' except AttributeError: if msg and msg_class: result += u'<p><div class="%s">%s</div></p>' % (msg_class, msg) elif msg: result += u'<p>%s</p>\n' % msg if result: html = result + close return u'<div id="message">\n%s\n</div>\n' % html else:
|
def msg(self, d): """ Assemble the msg display
|
3f19c7e23ea3763b2d9884022af871e71f3789cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/3f19c7e23ea3763b2d9884022af871e71f3789cf/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1234,
12,
2890,
16,
302,
4672,
3536,
2970,
10045,
326,
1234,
2562,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
22398,
316,
326,
981,
30,
1652,
1234,
12,
2890,
16,
302,
4672,
3536,
2970,
10045,
326,
1234,
2562,
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
] |
check_kernel_ver("2.6.16")
|
autotest_utils.check_kernel_ver("2.6.16")
|
def execute(self, dir = None, pages_requested = 20): check_kernel_ver("2.6.16")
|
885957f8484bf2881b2ea0bdc55b022f29cd0bfe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/885957f8484bf2881b2ea0bdc55b022f29cd0bfe/libhugetlbfs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1577,
273,
599,
16,
4689,
67,
19065,
273,
4200,
4672,
866,
67,
8111,
67,
502,
2932,
22,
18,
26,
18,
2313,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1577,
273,
599,
16,
4689,
67,
19065,
273,
4200,
4672,
866,
67,
8111,
67,
502,
2932,
22,
18,
26,
18,
2313,
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
] |
is_debug_mode, is_lint_mode)
|
is_debug_mode, is_lint_mode, tests_are_present=tests_are_present)
|
def __init__(self, tests, directory, platform, is_debug_mode, is_lint_mode): """Reads the test expectations files from the given directory.""" path = os.path.join(directory, self.TEST_LIST) self._expected_failures = TestExpectationsFile(path, tests, platform, is_debug_mode, is_lint_mode)
|
a6ee86af99098a57a481db725e55456d1bc46f5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/a6ee86af99098a57a481db725e55456d1bc46f5b/test_expectations.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7434,
16,
1867,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
4672,
3536,
7483,
326,
1842,
26305,
1390,
628,
326,
864,
1867,
12123,
589,
273,
1140,
18,
803,
18,
5701,
12,
5149,
16,
365,
18,
16961,
67,
7085,
13,
365,
6315,
3825,
67,
26268,
273,
7766,
11988,
1012,
812,
12,
803,
16,
7434,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7434,
16,
1867,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
4672,
3536,
7483,
326,
1842,
26305,
1390,
628,
326,
864,
1867,
12123,
589,
273,
1140,
18,
803,
18,
5701,
12,
5149,
16,
365,
18,
16961,
67,
7085,
13,
365,
6315,
3825,
67,
26268,
273,
7766,
11988,
1012,
812,
12,
803,
16,
7434,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
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
] |
if s == media.drive_status:
|
if s == self.drive_status:
|
def identify(self, media): """ magic! Try to find out as much as possible about the disc in the rom drive: title, image, play options, ... """ # Check drive status (tray pos, disc ready) try: CDSL_CURRENT = ( (int ) ( ~ 0 >> 1 ) ) fd = os.open(media.devicename, os.O_RDONLY | os.O_NONBLOCK) if os.uname()[0] == 'FreeBSD': try: data = array.array('c', '\000'*4096) (address, length) = data.buffer_info() buf = struct.pack('BBHP', CD_MSF_FORMAT, 0, length, address) # use unthreader ioctl here, it is fast s = util.ioctl.ioctl(fd, CDIOREADTOCENTRYS, buf) s = CDS_DISC_OK except: s = CDS_NO_DISC else: # use unthreader ioctl here, it is fast s = util.ioctl.ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT) except: # maybe we need to close the fd if ioctl fails, maybe # open fails and there is no fd try: os.close(fd) except: pass media.drive_status = None return
|
073a135df00509e35117ba8274a235acd11e762b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/073a135df00509e35117ba8274a235acd11e762b/rom_drives.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9786,
12,
2890,
16,
3539,
4672,
3536,
8146,
5,
6161,
358,
1104,
596,
487,
9816,
487,
3323,
2973,
326,
19169,
316,
326,
24137,
14316,
30,
2077,
16,
1316,
16,
6599,
702,
16,
1372,
3536,
468,
2073,
14316,
1267,
261,
313,
528,
949,
16,
19169,
5695,
13,
775,
30,
385,
29387,
67,
15487,
273,
261,
261,
474,
262,
261,
4871,
374,
1671,
404,
262,
262,
5194,
273,
1140,
18,
3190,
12,
5829,
18,
5206,
335,
1069,
16,
1140,
18,
51,
67,
20403,
10857,
571,
1140,
18,
51,
67,
3993,
11403,
13,
309,
1140,
18,
318,
339,
1435,
63,
20,
65,
422,
296,
9194,
30780,
4278,
775,
30,
501,
273,
526,
18,
1126,
2668,
71,
2187,
2337,
3784,
11,
14,
24,
5908,
26,
13,
261,
2867,
16,
769,
13,
273,
501,
18,
4106,
67,
1376,
1435,
1681,
273,
1958,
18,
2920,
2668,
9676,
2500,
2187,
21508,
67,
3537,
42,
67,
7254,
16,
374,
16,
769,
16,
1758,
13,
468,
999,
640,
5930,
264,
2527,
12930,
2674,
16,
518,
353,
4797,
272,
273,
1709,
18,
1594,
12930,
18,
1594,
12930,
12,
8313,
16,
385,
2565,
51,
6949,
4296,
39,
19083,
55,
16,
1681,
13,
272,
273,
385,
3948,
67,
2565,
2312,
67,
3141,
1335,
30,
272,
273,
385,
3948,
67,
3417,
67,
2565,
2312,
469,
30,
468,
999,
640,
5930,
264,
2527,
12930,
2674,
16,
518,
353,
4797,
272,
273,
1709,
18,
1594,
12930,
18,
1594,
12930,
12,
8313,
16,
21508,
3942,
67,
40,
2259,
3412,
67,
8608,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9786,
12,
2890,
16,
3539,
4672,
3536,
8146,
5,
6161,
358,
1104,
596,
487,
9816,
487,
3323,
2973,
326,
19169,
316,
326,
24137,
14316,
30,
2077,
16,
1316,
16,
6599,
702,
16,
1372,
3536,
468,
2073,
14316,
1267,
261,
313,
528,
949,
16,
19169,
5695,
13,
775,
30,
385,
29387,
67,
15487,
273,
261,
261,
474,
262,
261,
4871,
374,
1671,
404,
262,
262,
5194,
273,
1140,
18,
3190,
12,
5829,
18,
5206,
335,
1069,
16,
1140,
18,
51,
67,
20403,
10857,
571,
1140,
18,
51,
67,
3993,
11403,
13,
309,
1140,
18,
318,
339,
1435,
63,
20,
65,
422,
296,
9194,
30780,
4278,
775,
30,
501,
273,
526,
18,
1126,
2668,
71,
2187,
2337,
3784,
11,
14,
2
] |
except AttributeError: self.__rank = {}
|
def rank(self, use_database=False, verbose=False, only_use_mwrank=True, algorithm='mwrank_shell', proof=None): """ Return the rank of this elliptic curve, assuming no conjectures.
|
191c8e1d61e26b049ead6a7ffe9599d513e93fe4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/191c8e1d61e26b049ead6a7ffe9599d513e93fe4/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
16,
999,
67,
6231,
33,
8381,
16,
3988,
33,
8381,
16,
1338,
67,
1202,
67,
81,
91,
11500,
33,
5510,
16,
4886,
2218,
81,
91,
11500,
67,
10304,
2187,
14601,
33,
7036,
4672,
3536,
2000,
326,
6171,
434,
333,
415,
549,
21507,
8882,
16,
15144,
1158,
356,
937,
1823,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
16,
999,
67,
6231,
33,
8381,
16,
3988,
33,
8381,
16,
1338,
67,
1202,
67,
81,
91,
11500,
33,
5510,
16,
4886,
2218,
81,
91,
11500,
67,
10304,
2187,
14601,
33,
7036,
4672,
3536,
2000,
326,
6171,
434,
333,
415,
549,
21507,
8882,
16,
15144,
1158,
356,
937,
1823,
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
] |
|
L Curve Length in Pixels
|
def applyArbitraryThresholds(self,expressionString): """ This method takes in a string and uses it literally to construct a testing condition to impose on the kurve entries from a candidate file. It then returns the list of candidates meeting the express written in the string. Use caution with this function! This is parsed left to right! Valid variable labels: P Integrated Power L Curve Length in Pixels D Time Duration in Seconds F Frequency Bandwidth in Hertz Example: P>10 and L < 5 D >=2 or P>12 F<3 and D >= 8 (D > 10 and L = 3) and F < 4 """ #If the variable self.curves is empty just return nothing! if self.curves.__len__() < 1: print "Warning no information to threshold." return self #There is no error checking. We rely on eval to do this for us! testExp=expressionString #Convert everything to lower case testExp=testExp.lower() resultsList=[] #print "String to threshold with :",testExp for lineInfo in self.curves: curveID,l,p=lineInfo.getKurveHeader() d=lineInfo.getCandidateDuration() b=lineInfo.getCandidateBandwidth() t=float(lineInfo.printStartGPS()) s=float(lineInfo.printStopGPS()) f=float(lineInfo.printStartFreq()) g=float(lineInfo.printStopFreq()) #Additional eval stuff? tmpBrightnessInfo=lineInfo.getBrightPixelAndStats() v=float(tmpBrightnessInfo[0][3]) #Freq of Bright Pixel h=float(tmpBrightnessInfo[0][2].getAsFloat()) #float Time of Bright Pixel j=float(tmpBrightnessInfo[0][4]) #Power of Bright Pixel m=float(tmpBrightnessInfo[1]) #Curve mean pixel brightness c=float(tmpBrightnessInfo[2]) #Curve stddev of pixel brightness try: evalResult=eval(testExp) except : print "Error with expression string syntax." print "Received string: ",str(testExp).upper() os.abort() if evalResult: resultsList.append(lineInfo) #Return the a modified structure with self.curves #made only of passing candidates outputObject=copy.deepcopy(self) outputObject.curves=copy.deepcopy(resultsList) outputObject.totalCount=resultsList.__len__() return outputObject
|
f8356864ebd3e4f4c62944a76ace8501c23ac979 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/f8356864ebd3e4f4c62944a76ace8501c23ac979/tracksearchutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
686,
3682,
3345,
7614,
87,
12,
2890,
16,
8692,
780,
4672,
3536,
1220,
707,
5530,
316,
279,
533,
471,
4692,
518,
328,
2165,
1230,
358,
4872,
279,
7769,
2269,
358,
709,
4150,
603,
326,
417,
295,
537,
3222,
628,
279,
5500,
585,
18,
2597,
1508,
1135,
326,
666,
434,
7965,
18721,
310,
326,
16947,
5941,
316,
326,
533,
18,
225,
2672,
3474,
1421,
598,
333,
445,
5,
1220,
353,
2707,
2002,
358,
2145,
5,
2364,
2190,
3249,
30,
453,
377,
15285,
690,
23783,
463,
377,
2647,
4822,
316,
18301,
478,
377,
26598,
27601,
2819,
316,
670,
1051,
94,
5090,
30,
453,
34,
2163,
471,
511,
411,
1381,
463,
1545,
22,
578,
453,
34,
2138,
478,
32,
23,
471,
463,
1545,
1725,
261,
40,
405,
1728,
471,
511,
273,
890,
13,
471,
478,
411,
1059,
3536,
468,
2047,
326,
2190,
365,
18,
1397,
3324,
353,
1008,
2537,
327,
5083,
5,
309,
365,
18,
1397,
3324,
16186,
1897,
972,
1435,
411,
404,
30,
1172,
315,
6210,
1158,
1779,
358,
5573,
1199,
327,
365,
468,
9828,
353,
1158,
555,
6728,
18,
225,
1660,
21187,
603,
5302,
358,
741,
333,
364,
584,
5,
1842,
2966,
33,
8692,
780,
468,
2723,
7756,
358,
2612,
648,
1842,
2966,
33,
3813,
2966,
18,
8167,
1435,
1686,
682,
33,
8526,
468,
1188,
315,
780,
358,
5573,
598,
294,
3113,
3813,
2966,
364,
980,
966,
316,
365,
18,
1397,
3324,
30,
8882,
734,
16,
80,
16,
84,
33,
1369,
966,
18,
588,
47,
295,
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,
2230,
686,
3682,
3345,
7614,
87,
12,
2890,
16,
8692,
780,
4672,
3536,
1220,
707,
5530,
316,
279,
533,
471,
4692,
518,
328,
2165,
1230,
358,
4872,
279,
7769,
2269,
358,
709,
4150,
603,
326,
417,
295,
537,
3222,
628,
279,
5500,
585,
18,
2597,
1508,
1135,
326,
666,
434,
7965,
18721,
310,
326,
16947,
5941,
316,
326,
533,
18,
225,
2672,
3474,
1421,
598,
333,
445,
5,
1220,
353,
2707,
2002,
358,
2145,
5,
2364,
2190,
3249,
30,
453,
377,
15285,
690,
23783,
463,
377,
2647,
4822,
316,
18301,
478,
377,
26598,
27601,
2819,
316,
670,
1051,
94,
5090,
30,
453,
34,
2163,
471,
511,
411,
1381,
463,
1545,
22,
578,
453,
34,
2138,
478,
32,
23,
2
] |
|
def eval(self, x, strip=False, filename=None, debug=None,
|
def eval(self, x, globals, strip=False, filename=None, debug=None,
|
def eval(self, x, strip=False, filename=None, debug=None, density=None, locals={}): """ INPUT: x -- string to evaluate. strip -- ignored filename -- output filename (string with no spaces) debug -- whether to print verbose debugging output density -- how big output image is. locals -- extra local variables used when evaluating \sage{..} code in x.
|
e2ca857253925d93a6e76d0b5f0a90b423a36521 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e2ca857253925d93a6e76d0b5f0a90b423a36521/latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
12,
2890,
16,
619,
16,
10941,
16,
2569,
33,
8381,
16,
1544,
33,
7036,
16,
1198,
33,
7036,
16,
12142,
33,
7036,
16,
8985,
12938,
4672,
3536,
12943,
30,
619,
1493,
533,
358,
5956,
18,
2569,
1493,
5455,
1544,
1493,
876,
1544,
261,
1080,
598,
1158,
7292,
13,
1198,
1493,
2856,
358,
1172,
3988,
10450,
876,
12142,
1493,
3661,
5446,
876,
1316,
353,
18,
8985,
1493,
2870,
1191,
3152,
1399,
1347,
26704,
521,
87,
410,
95,
838,
97,
981,
316,
619,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5302,
12,
2890,
16,
619,
16,
10941,
16,
2569,
33,
8381,
16,
1544,
33,
7036,
16,
1198,
33,
7036,
16,
12142,
33,
7036,
16,
8985,
12938,
4672,
3536,
12943,
30,
619,
1493,
533,
358,
5956,
18,
2569,
1493,
5455,
1544,
1493,
876,
1544,
261,
1080,
598,
1158,
7292,
13,
1198,
1493,
2856,
358,
1172,
3988,
10450,
876,
12142,
1493,
3661,
5446,
876,
1316,
353,
18,
8985,
1493,
2870,
1191,
3152,
1399,
1347,
26704,
521,
87,
410,
95,
838,
97,
981,
316,
619,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.