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, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 467...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 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,...
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, 92, 18, 674, 9163, 1603, 5425, 67, 4263, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 296, 715, 92, 18, 674, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 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, 41...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 14...
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, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, 39...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3...
'''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/1529a2b14e10f76cb017262bcf3aee397a2818f2/dvr-recover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2441, 67, 3733, 67, 350, 12, 2890, 16, 2441, 67, 350, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -10...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 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...
[ 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, ...
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, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3...
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, ...
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, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, 5...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 160...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2019, 12, 2890, 16, 733, 4672, 7764, 33, 1612, 6315, 84, 67, 839, 2, -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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 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...
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, 881...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, 881...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24...
'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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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,...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, 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, 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, 2...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, -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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 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,...
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, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 47...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, -10...
_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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, -...
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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
""" 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/b6c575ff66dcd6a6087afa755cdfa553552086b9/proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 1937, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 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, -10...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, 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, 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, 2...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, ...
[ 1, 1, 1, 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...
[ 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, -...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 9...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 4...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, -10...
: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, 1360...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1360...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, 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, 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, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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...
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, ...
[ 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, 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, -1...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -10...
"%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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
(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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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...
[ 1, 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...
[ 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,...
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, 327, 365, 18, 55, 789, 67, 8362, 5304, 55, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, ...
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, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 83...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 467...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...