rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
value['destinations'].append( purl.getRelativeContentURL(instance) )
value['destinations'].append(getRelativeContentURL(instance))
def lookupDestinationsFor(typeinfo, tool, purl): """ search where the user can add a typeid instance """ # first, discover who can contain the type searchFor = [] for regType in tool.listTypeInfo(): if typeinfo.globalAllow(): searchFor.append(regType.getId()) elif regType.filter_content_types and \ typeinfo.getId() in ...
b8218e6ab5b17cabfbb6f2f9b33b853fcd8112d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b8218e6ab5b17cabfbb6f2f9b33b853fcd8112d4/Widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 27992, 1290, 12, 723, 1376, 16, 5226, 16, 293, 718, 4672, 3536, 1623, 1625, 326, 729, 848, 527, 279, 618, 350, 791, 3536, 468, 1122, 16, 10372, 10354, 848, 912, 326, 618, 1623, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3689, 27992, 1290, 12, 723, 1376, 16, 5226, 16, 293, 718, 4672, 3536, 1623, 1625, 326, 729, 848, 527, 279, 618, 350, 791, 3536, 468, 1122, 16, 10372, 10354, 848, 912, 326, 618, 1623, 1...
return record
return record, new_field_number
def add_field(recid, uid, record, tag, ind1, ind2, subcode, value_subfield): """Adds a new field to the record.""" tag = tag[:3] new_field_number = record_add_field(record, tag, ind1, ind2) record = add_subfield(recid, uid, tag, record, new_field_number, subcode, value_subfield) save_temp_record(record, uid, "%s.tm...
e34c1dabb23768395d9bfd6ba815c8aa129ca772 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e34c1dabb23768395d9bfd6ba815c8aa129ca772/bibedit_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1518, 12, 3927, 350, 16, 4555, 16, 1409, 16, 1047, 16, 1547, 21, 16, 1547, 22, 16, 720, 710, 16, 460, 67, 1717, 1518, 4672, 3536, 3655, 279, 394, 652, 358, 326, 1409, 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, 527, 67, 1518, 12, 3927, 350, 16, 4555, 16, 1409, 16, 1047, 16, 1547, 21, 16, 1547, 22, 16, 720, 710, 16, 460, 67, 1717, 1518, 4672, 3536, 3655, 279, 394, 652, 358, 326, 1409, 12123,...
print '\t< %s' % line[:-2]
print '\t< %s' % line
def _get_line(self):
46698bd1f4f6c68089d09c6be3b8ee342ba00bb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/46698bd1f4f6c68089d09c6be3b8ee342ba00bb9/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1369, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1369, 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,...
if not edit: if cmd: sys.argv = ["-c"] + args else: sys.argv = args or [""]
def main(): cmd = None edit = 0 debug = 0 startup = 0 try: opts, args = getopt.getopt(sys.argv[1:], "c:deist:") except getopt.error, msg: sys.stderr.write("Error: %s\n" % str(msg)) sys.stderr.write(usage_msg) sys.exit(2) for o, a in opts: if o == '-c': cmd = a if o == '-d': debug = 1 if o == '-e': edit = 1 if o == '-...
826dc87f8c3a4f8d0ef6ea0a31f8fec6da7c73bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/826dc87f8c3a4f8d0ef6ea0a31f8fec6da7c73bf/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1797, 273, 599, 3874, 273, 374, 1198, 273, 374, 11850, 273, 374, 225, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 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, 2774, 13332, 1797, 273, 599, 3874, 273, 374, 1198, 273, 374, 11850, 273, 374, 225, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, ...
Globals.debug("Code: %s, Domain: %s" % (error.code, error.domain))
Globals.debug("Domain: %s, Code: %s" % (error.domain, error.code))
def __PipelineBusErrorCb(self, bus, message): """ Handles GStreamer error messages. Parameters: bus -- reserved for GStreamer callbacks, don't use it explicitly. message -- reserved for GStreamer callbacks, don't use it explicitly. """ error, debug = message.parse_error() Globals.debug("Gstreamer bus error:", str(err...
6026f7c20e7db25e100bbf198efed4c8d8f26538 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/6026f7c20e7db25e100bbf198efed4c8d8f26538/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8798, 7086, 668, 15237, 12, 2890, 16, 5766, 16, 883, 4672, 3536, 27020, 611, 1228, 264, 555, 2743, 18, 225, 7012, 30, 5766, 1493, 8735, 364, 611, 1228, 264, 6689, 16, 2727, 1404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8798, 7086, 668, 15237, 12, 2890, 16, 5766, 16, 883, 4672, 3536, 27020, 611, 1228, 264, 555, 2743, 18, 225, 7012, 30, 5766, 1493, 8735, 364, 611, 1228, 264, 6689, 16, 2727, 1404, ...
self.lock.acquire() try: if isinstance(reason, Message): self.reason = reason if self.closed: return self.closed = True self.reason = reason self.incoming.close() self.responses.close() finally: self.lock.release()
if self.closed: return self.closed = True self.reason = reason self.incoming.close() self.responses.close()
def close(self, reason): self.lock.acquire() try: if isinstance(reason, Message): self.reason = reason if self.closed: return self.closed = True self.reason = reason self.incoming.close() self.responses.close() finally: self.lock.release()
a3416211a731a5ad905ad3e4119ba2052d224e3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/197/a3416211a731a5ad905ad3e4119ba2052d224e3e/peer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 16, 3971, 4672, 365, 18, 739, 18, 1077, 1039, 1435, 775, 30, 309, 1549, 12, 10579, 16, 2350, 4672, 365, 18, 10579, 273, 3971, 309, 365, 18, 12204, 30, 327, 365, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 16, 3971, 4672, 365, 18, 739, 18, 1077, 1039, 1435, 775, 30, 309, 1549, 12, 10579, 16, 2350, 4672, 365, 18, 10579, 273, 3971, 309, 365, 18, 12204, 30, 327, 365, 18, 1...
return (False, "Can't change to primary mode: %s" % str(err))
_Fail("Can't change to primary mode: %s", err)
def DrbdAttachNet(nodes_ip, disks, instance_name, multimaster): """Attaches the network on a list of drbd devices. """ status, bdevs = _FindDisks(nodes_ip, disks) if not status: return status, bdevs if multimaster: for idx, rd in enumerate(bdevs): try: _SymlinkBlockDev(instance_name, rd.dev_path, idx) except Environm...
2cc6781aac8b53426d83d4cb8a42dc7c58efb8d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/2cc6781aac8b53426d83d4cb8a42dc7c58efb8d6/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 6731, 72, 4761, 7308, 12, 4690, 67, 625, 16, 17164, 16, 791, 67, 529, 16, 1778, 381, 2440, 4672, 3536, 4761, 281, 326, 2483, 603, 279, 666, 434, 5081, 16410, 7166, 18, 225, 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, 463, 6731, 72, 4761, 7308, 12, 4690, 67, 625, 16, 17164, 16, 791, 67, 529, 16, 1778, 381, 2440, 4672, 3536, 4761, 281, 326, 2483, 603, 279, 666, 434, 5081, 16410, 7166, 18, 225, 3536, ...
utils.copy_without(src_dir, dst_dir, without, object_exactly = True)
utils.copy_without(src_dir, dst_dir, without, object_exactly=True, preserve=True)
def do_copy(self, args): if (len(args) < 2): raise utils.Failure("Bad syntax for copywithout command") src_dir = args[0] dst_dir = args[1] without = args[2:]
ae77d982fe9075a29bb8dbc336cb218c5129f5fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/ae77d982fe9075a29bb8dbc336cb218c5129f5fd/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3530, 12, 2890, 16, 833, 4672, 309, 261, 1897, 12, 1968, 13, 411, 576, 4672, 1002, 2990, 18, 5247, 2932, 6434, 6279, 364, 1610, 13299, 1296, 7923, 225, 1705, 67, 1214, 273, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3530, 12, 2890, 16, 833, 4672, 309, 261, 1897, 12, 1968, 13, 411, 576, 4672, 1002, 2990, 18, 5247, 2932, 6434, 6279, 364, 1610, 13299, 1296, 7923, 225, 1705, 67, 1214, 273, 83...
strm.detached_circuits.append(circ)
for r in strm.circuit.routers: r.detached_streams.append(strm) tc_session.add(r)
def stream_status_event(self, s): if s.reason: lreason = s.reason else: lreason = "NONE" if s.remote_reason: rreason = s.remote_reason else: rreason = "NONE" reason = s.event_name+":"+s.status+":"+lreason+":"+rreason+":"+self.streams[s.strm_id].kind
c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce/SQLSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1407, 67, 2327, 67, 2575, 12, 2890, 16, 272, 4672, 309, 272, 18, 10579, 30, 328, 10579, 273, 272, 18, 10579, 469, 30, 328, 10579, 273, 315, 9826, 6, 309, 272, 18, 7222, 67, 10579, 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, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1407, 67, 2327, 67, 2575, 12, 2890, 16, 272, 4672, 309, 272, 18, 10579, 30, 328, 10579, 273, 272, 18, 10579, 469, 30, 328, 10579, 273, 315, 9826, 6, 309, 272, 18, 7222, 67, 10579, 30...
elif '
elif '
def substitute_file(name): subst = '' f = open(name) for l in f: if '#define LIBTORRENT_VERSION_MAJOR' in l and filename.endiswith('.hpp'): l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0] elif '#define LIBTORRENT_VERSION_MINOR' in l and filename.endiswith('.hpp'): l = '#define LIBTORRENT_VERSION_MINOR %d\n' % ...
ade9727b186357c72ab7a1eff51f29f4426775f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6320/ade9727b186357c72ab7a1eff51f29f4426775f8/set_version.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14811, 67, 768, 12, 529, 4672, 27750, 273, 875, 284, 273, 1696, 12, 529, 13, 364, 328, 316, 284, 30, 309, 2946, 11255, 23983, 56, 916, 7480, 67, 5757, 67, 26976, 916, 11, 316, 328, 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, 14811, 67, 768, 12, 529, 4672, 27750, 273, 875, 284, 273, 1696, 12, 529, 13, 364, 328, 316, 284, 30, 309, 2946, 11255, 23983, 56, 916, 7480, 67, 5757, 67, 26976, 916, 11, 316, 328, 4...
getLog().info("Ran setarch '%s'" % per)
getLog().debug("Ran setarch '%s'" % per)
def condPersonality(per=None): if per is None: return if personality_defs.get(per, None) is None: getLog().warning("Unable to find predefined setarch personality constant for '%s' arch." " You may have to manually run setarch."% per) return res = _libc.personality(personality_defs[per]) if res == -1: raise OSError(_err...
006ebd8eb222bd332df40a08a9a6f934a4b9bc9e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/006ebd8eb222bd332df40a08a9a6f934a4b9bc9e/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6941, 8346, 7919, 12, 457, 33, 7036, 4672, 309, 1534, 353, 599, 30, 327, 309, 6175, 7919, 67, 12537, 18, 588, 12, 457, 16, 599, 13, 353, 599, 30, 9189, 7675, 8551, 2932, 3370, 358, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6941, 8346, 7919, 12, 457, 33, 7036, 4672, 309, 1534, 353, 599, 30, 327, 309, 6175, 7919, 67, 12537, 18, 588, 12, 457, 16, 599, 13, 353, 599, 30, 9189, 7675, 8551, 2932, 3370, 358, 1...
constants_template = """import os
constants_template ="""import os
def get_constants(): confdir_full = rootdir + "/" + confdir datadir_full = rootdir + "/" + datadir imagedir_full = rootdir + "/" + imagedir localedir_full = rootdir + "/" + localedir gladedir_full = rootdir + "/" + gladedir constants_template = """import os if os.environ.get('UPSTREAM_CONF_DIR'): conf_dir = os.enviro...
7ebdb11b84a058675ed00c860fbee72cdb86e487 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/7ebdb11b84a058675ed00c860fbee72cdb86e487/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13358, 13332, 2195, 1214, 67, 2854, 273, 1365, 1214, 397, 4016, 397, 2195, 1214, 22034, 481, 67, 2854, 273, 1365, 1214, 397, 4016, 397, 22034, 481, 8902, 23210, 67, 2854, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13358, 13332, 2195, 1214, 67, 2854, 273, 1365, 1214, 397, 4016, 397, 2195, 1214, 22034, 481, 67, 2854, 273, 1365, 1214, 397, 4016, 397, 22034, 481, 8902, 23210, 67, 2854, 273, 1...
.. warning:: Calculations are done to double precision, and the output is a complex double element, no matter how big the precision of the input is.
def Ei(z): """ Return the value of the complex exponential integral Ei(z) at a complex number z. .. warning:: Calculations are done to double precision, and the output is a complex double element, no matter how big the precision of the input is. EXAMPLES:: sage: Ei(10) 2492.22897624 sage: Ei(I) 0.337403922901 + 2.5...
bf0023bd20cc399afa45474b0ce1f89d2d98e135 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/bf0023bd20cc399afa45474b0ce1f89d2d98e135/transcendental.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 512, 77, 12, 94, 4672, 3536, 2000, 326, 460, 434, 326, 7233, 21774, 21423, 512, 77, 12, 94, 13, 622, 279, 7233, 1300, 998, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 512, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 77, 12, 94, 4672, 3536, 2000, 326, 460, 434, 326, 7233, 21774, 21423, 512, 77, 12, 94, 13, 622, 279, 7233, 1300, 998, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 512, 7...
@testing.unsupported('mysql', 'FIXME: verify not fails_on')
@testing.fails_on('mysql')
def test_expiry(self): mapper(User, users)
b2504db4f72e64981f27b796fcfd50c3c07fd606 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/b2504db4f72e64981f27b796fcfd50c3c07fd606/naturalpks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22409, 12, 2890, 4672, 5815, 12, 1299, 16, 3677, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1842, 67, 22409, 12, 2890, 4672, 5815, 12, 1299, 16, 3677, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Parses the text in the quick item entry widget in the toolbar. Creates the items depending on the command and adds it to the appropriate collection. Also parses the date/time info and sets the start/end time or the reminder time.
Parses the text in the quick item entry widget in the toolbar. Creates the items depending on the command and adds it to the appropriate collection. Also parses the date/time info and sets the start/end time or the reminder time.
def processQuickEntry(self, command): """ Parses the text in the quick item entry widget in the toolbar. Creates the items depending on the command and adds it to the appropriate collection. Also parses the date/time info and sets the start/end time or the reminder time. """ msgFlag = False eventFlag = False taskFlag ...
dd8513d99cebdf236d099ff8609b40c935a1fb19 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/dd8513d99cebdf236d099ff8609b40c935a1fb19/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 13663, 1622, 12, 2890, 16, 1296, 4672, 3536, 2280, 2420, 326, 977, 316, 326, 9549, 761, 1241, 3604, 316, 326, 12748, 18, 10210, 326, 1516, 8353, 603, 326, 1296, 471, 4831, 518, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 13663, 1622, 12, 2890, 16, 1296, 4672, 3536, 2280, 2420, 326, 977, 316, 326, 9549, 761, 1241, 3604, 316, 326, 12748, 18, 10210, 326, 1516, 8353, 603, 326, 1296, 471, 4831, 518, 358...
try: story = open(filename).readlines() except IOError: raise IOError
story = open(filename).readlines()
def blosxom_entry_parser(filename, request): """ Open up a *.txt file and read its contents. The first line becomes the title of the entry. The other lines are the body of the entry. @param filename: A filename to extract data and metadata from @type filename: string @param request: A standard request object @type ...
a6adbe3b8f0f8676059bd800577f1434cf8e824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/a6adbe3b8f0f8676059bd800577f1434cf8e824d/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 383, 30319, 362, 67, 4099, 67, 4288, 12, 3459, 16, 590, 4672, 3536, 3502, 731, 279, 380, 18, 5830, 585, 471, 855, 2097, 2939, 18, 225, 1021, 1122, 980, 12724, 326, 2077, 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, 324, 383, 30319, 362, 67, 4099, 67, 4288, 12, 3459, 16, 590, 4672, 3536, 3502, 731, 279, 380, 18, 5830, 585, 471, 855, 2097, 2939, 18, 225, 1021, 1122, 980, 12724, 326, 2077, 434, 326,...
import userpackages
try: import userpackages except ImportError: pass
def installPackages(self): """ installPackages() -> None Scheme through packages directory and initialize them all """ if self.configuration.packageDirectory: sys.path.append(self.configuration.packageDirectory) import packages
bb6eb7b6b1cda67adf270acdf7ca654eec540238 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/bb6eb7b6b1cda67adf270acdf7ca654eec540238/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 11425, 12, 2890, 4672, 3536, 3799, 11425, 1435, 317, 599, 10714, 3059, 5907, 1867, 471, 4046, 2182, 777, 3536, 309, 365, 18, 7025, 18, 5610, 2853, 30, 2589, 18, 803, 18, 6923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 11425, 12, 2890, 4672, 3536, 3799, 11425, 1435, 317, 599, 10714, 3059, 5907, 1867, 471, 4046, 2182, 777, 3536, 309, 365, 18, 7025, 18, 5610, 2853, 30, 2589, 18, 803, 18, 6923, 12, ...
Return '' if no cooked data available otherwise. Don't block.
Return b'' if no cooked data available otherwise. Don't block.
def read_very_lazy(self): """Return any data available in the cooked queue (very lazy).
4ff2306a48ad184f76d4bd456b4caf600359b831 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/4ff2306a48ad184f76d4bd456b4caf600359b831/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3242, 67, 15998, 12, 2890, 4672, 3536, 990, 1281, 501, 2319, 316, 326, 15860, 329, 2389, 261, 3242, 7962, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3242, 67, 15998, 12, 2890, 4672, 3536, 990, 1281, 501, 2319, 316, 326, 15860, 329, 2389, 261, 3242, 7962, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for args in exceptionList: expected = args[-1] try: exc = args[0] if len(args) == 2: raise exc else: raise exc(*args[1])
for exc, args, expected in exceptionList: try: raise exc(*args)
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
d6d9d619b7a4c6e74547b9119fea0df07783ba71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d6d9d619b7a4c6e74547b9119fea0df07783ba71/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
self._stdout = _File() self._stderr = _File()
self._stdout = _file() self._stderr = _file()
def __init__(self, args=()): self.args = args self._process = None self._stdout = _File() self._stderr = _File()
5703bad51d5788feb63b7d9cb69026f1bb9e37ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12327/5703bad51d5788feb63b7d9cb69026f1bb9e37ab/pymplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 833, 33, 1435, 4672, 365, 18, 1968, 273, 833, 365, 6315, 2567, 273, 599, 365, 6315, 10283, 273, 389, 812, 1435, 365, 6315, 11241, 273, 389, 812, 1435, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 33, 1435, 4672, 365, 18, 1968, 273, 833, 365, 6315, 2567, 273, 599, 365, 6315, 10283, 273, 389, 812, 1435, 365, 6315, 11241, 273, 389, 812, 1435, 2,...
if len(media_obj_list) == 1:
if len(media_list) == 1:
def update_rss(self, media_obj_list, rss_file): i =0 rss_item_list = [] if not os.path.exists(self.rss_dir): os.makedirs(self.rss_dir) if len(media_obj_list) == 1: sub_title = '(currently playing)' else: sub_title = '(playlist)' for media_obj in media_obj_list: media_size = media_obj.size media_link = self.channel.ur...
787fef0709b19aa8df299b667ccf69a2ca01c4b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/787fef0709b19aa8df299b667ccf69a2ca01c4b6/deefuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 25151, 12, 2890, 16, 3539, 67, 2603, 67, 1098, 16, 18817, 67, 768, 4672, 277, 273, 20, 18817, 67, 1726, 67, 1098, 273, 5378, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 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, 1089, 67, 25151, 12, 2890, 16, 3539, 67, 2603, 67, 1098, 16, 18817, 67, 768, 4672, 277, 273, 20, 18817, 67, 1726, 67, 1098, 273, 5378, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18...
nx = int(R * self.pixelsX) ny = int(R * self.pixelsY)
nx = int(round(R * self.pixelsX)) ny = int(round(R * self.pixelsY))
def show(self, Xsize=600, Ysize=600): """return a pixbuf to shows the image in a Gtk window""" scaled_buf = None if Xsize > config.ImageWidth : config.ImageWidth = Xsize if Ysize > config.ImageHeight: config.ImageHeight = Ysize self.taille() R = min(float(Xsize) / self.pixelsX, float(Ysize) / self.pixelsY) if R < 1: nx...
a00cb5733f2792d415d71ab962e652861d4abd01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12328/a00cb5733f2792d415d71ab962e652861d4abd01/imagizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 1139, 1467, 33, 28133, 16, 1624, 1467, 33, 28133, 4672, 3536, 2463, 279, 11871, 4385, 358, 17975, 326, 1316, 316, 279, 22132, 2742, 8395, 12304, 67, 4385, 273, 599, 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, 2405, 12, 2890, 16, 1139, 1467, 33, 28133, 16, 1624, 1467, 33, 28133, 4672, 3536, 2463, 279, 11871, 4385, 358, 17975, 326, 1316, 316, 279, 22132, 2742, 8395, 12304, 67, 4385, 273, 599, 3...
print 'subtotal despues: ',subtot print 'total despues: ',tot print 'avg despues: ',prom print 'qda despues:',q_des
def compute_nc_compra(self, cr, uid, ids, scl_obj, q_mov,tot,prom,q_des): subtot = 0.0 print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom if scl_obj.parent_id and scl_obj.parent_id.invoice_price_unit: cost_pad = scl_obj.parent_id.invoice_pr...
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 14202, 67, 2919, 354, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3671, 67, 14202, 67, 2919, 354, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374,...
def update_ids(xmldoc, connection, verbose = False):
def update_ids(connection, verbose = False):
def update_ids(xmldoc, connection, verbose = False): """ For internal use only. """ table_elems = xmldoc.getElementsByTagName(ligolw.Table.tagName) for i, tbl in enumerate(table_elems): if verbose: print >>sys.stderr, "updating IDs: %d%%\r" % (100 * i / len(table_elems)), tbl.applyKeyMapping() if verbose: print >>sys.s...
203e7af377f630621d055164eb0ff35d39290061 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/203e7af377f630621d055164eb0ff35d39290061/ligolw_sqlite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1089, 67, 2232, 12, 4071, 16, 3988, 273, 1083, 4672, 3536, 2457, 2713, 999, 1338, 18, 3536, 1014, 67, 292, 7424, 273, 2025, 2434, 18, 588, 3471, 10401, 12, 80, 360, 355, 91, 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, 225, 1652, 1089, 67, 2232, 12, 4071, 16, 3988, 273, 1083, 4672, 3536, 2457, 2713, 999, 1338, 18, 3536, 1014, 67, 292, 7424, 273, 2025, 2434, 18, 588, 3471, 10401, 12, 80, 360, 355, 91, 18, ...
debug(" domain %s is in user block-list", domain)
_debug(" domain %s is in user block-list", domain)
def domain_return_ok(self, domain, request): # Liberal check of. This is here as an optimization to avoid # having to load lots of MSIE cookie files unless necessary. req_host, erhn = eff_request_host(request) if not req_host.startswith("."): req_host = "."+req_host if not erhn.startswith("."): erhn = "."+erhn if not ...
e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 2463, 67, 601, 12, 2890, 16, 2461, 16, 590, 4672, 468, 10560, 11612, 866, 434, 18, 225, 1220, 353, 2674, 487, 392, 14850, 358, 4543, 468, 7999, 358, 1262, 328, 6968, 434, 490...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2461, 67, 2463, 67, 601, 12, 2890, 16, 2461, 16, 590, 4672, 468, 10560, 11612, 866, 434, 18, 225, 1220, 353, 2674, 487, 392, 14850, 358, 4543, 468, 7999, 358, 1262, 328, 6968, 434, 490...
if xlib_props and ( _xlib_atom('_NET_WM_STATE_FULLSCREEN') in xlib_props.value or ( _xlib_atom('_NET_WM_STATE_MAXIMIZED_HORZ') in xlib_props.value and _xlib_atom('_NET_WM_STATE_MAXIMIZED_VERT') in xlib_props.value ) ):
if xlib_props and ( _xlib_atom('_NET_WM_STATE_FULLSCREEN') in xlib_props.value or ( state & gtk.gdk.WINDOW_STATE_MAXIMIZED and not state & gtk.gdk.WINDOW_STATE_FULLSCREEN and (_xlib_atom('_NET_WM_STATE_MAXIMIZED_HORZ') in xlib_props.value and _xlib_atom('_NET_WM_STATE_MAXIMIZED_VERT') in xlib_props.value) ) ):
def bounds_chk(self, jitter=None, state=None): if state is not None and self.get_state() & state: return True xlib_props = self._xlib_win.get_property( _xlib_atom('_NET_WM_STATE'), X.AnyPropertyType, 0, 100 ) if xlib_props and ( _xlib_atom('_NET_WM_STATE_FULLSCREEN') in xlib_props.value or ( _xlib_atom('_NET_WM_STATE_M...
4481a3fd5a9f5e8f825d7e8509813a3ff1531ca7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11594/4481a3fd5a9f5e8f825d7e8509813a3ff1531ca7/wm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4972, 67, 27038, 12, 2890, 16, 24519, 33, 7036, 16, 919, 33, 7036, 4672, 309, 919, 353, 486, 599, 471, 365, 18, 588, 67, 2019, 1435, 473, 919, 30, 327, 1053, 619, 2941, 67, 9693, 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, 4972, 67, 27038, 12, 2890, 16, 24519, 33, 7036, 16, 919, 33, 7036, 4672, 309, 919, 353, 486, 599, 471, 365, 18, 588, 67, 2019, 1435, 473, 919, 30, 327, 1053, 619, 2941, 67, 9693, 273...
This chapter presents a treament of the ideas behind our charting
This chapter presents a treatment of the ideas behind our charting
def checkMood(moodName): return (moodName in ('happy','sad','ok'))
480ddc7ee60644c7eb01e84635ac95a989b25e42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/480ddc7ee60644c7eb01e84635ac95a989b25e42/ch2_graphics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 49, 4773, 12, 81, 4773, 461, 4672, 327, 261, 81, 4773, 461, 316, 7707, 76, 438, 2074, 17023, 87, 361, 17023, 601, 26112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 49, 4773, 12, 81, 4773, 461, 4672, 327, 261, 81, 4773, 461, 316, 7707, 76, 438, 2074, 17023, 87, 361, 17023, 601, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if level > 3: output('<TD COLSPAN="%s"></TD>' % level) elif level > 1: output('<TD></TD>' * level)
if level > 2: output('<TD COLSPAN="%s"></TD>' % level) elif level > 0: output('<TD></TD>' * level)
def tpRenderTABLE(self, root_url, url, state, substate, data, colspan, section, md, treeData, level=0, args=None): have_arg=args.has_key try: items=self.tpValues() except: items=None if not items and have_arg('leaves'): items=1 tpUrl=self.tpURL() url = (url and ('%s/%s' % (url, tpUrl))) or tpUrl treeData['tree-ite...
3ccf0135f7d39206314b0f01e08ce87179009a79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/3ccf0135f7d39206314b0f01e08ce87179009a79/TreeTag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8071, 3420, 7775, 12, 2890, 16, 1365, 67, 718, 16, 880, 16, 919, 16, 720, 2019, 16, 501, 16, 20856, 16, 2442, 16, 3481, 16, 2151, 751, 16, 1801, 33, 20, 16, 833, 33, 7036, 4672, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8071, 3420, 7775, 12, 2890, 16, 1365, 67, 718, 16, 880, 16, 919, 16, 720, 2019, 16, 501, 16, 20856, 16, 2442, 16, 3481, 16, 2151, 751, 16, 1801, 33, 20, 16, 833, 33, 7036, 4672, 22...
finally: fp.close()
def main(): usage = "profile.py [-o output_file_path] [-s sort] scriptfile [arg] ..." parser = OptionParser(usage=usage) parser.allow_interspersed_args = False parser.add_option('-o', '--outfile', dest="outfile", help="Save stats to <outfile>", default=None) parser.add_option('-s', '--sort', dest="sort", help="Sort ord...
9b14fce4a995e27520dbe92e462e584970061724 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/9b14fce4a995e27520dbe92e462e584970061724/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 315, 5040, 18, 2074, 23059, 83, 876, 67, 768, 67, 803, 65, 23059, 87, 1524, 65, 2728, 768, 306, 3175, 65, 18483, 2082, 273, 18862, 12, 9167, 33, 9167, 13, 2082,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 315, 5040, 18, 2074, 23059, 83, 876, 67, 768, 67, 803, 65, 23059, 87, 1524, 65, 2728, 768, 306, 3175, 65, 18483, 2082, 273, 18862, 12, 9167, 33, 9167, 13, 2082,...
cachefile = open(self.WEATHERCACHE,'r') newlist = map(string.rstrip, cachefile.readlines()) temperature,icon = newlist cachefile.close()
try: cachefile = open(self.WEATHERCACHE,'r') newlist = map(string.rstrip, cachefile.readlines()) temperature,icon = newlist cachefile.close() except IOError: print 'WEATHER: error reading cache. Using fake weather.' return '0', 'sun.png'
def checkweather(self): # We don't want to do this every 30 seconds, so we need # to cache the date somewhere. # # First check the age of the cache. # if (os.path.isfile(self.WEATHERCACHE) == 0 or \ (abs(time.time() - os.path.getmtime(self.WEATHERCACHE)) > 3600)): weather = pymetar.MetarReport() try: weather.fetchMetar...
9a73920f2cfc6eb9d6c0f6fa42e0ead3b7d1a1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/9a73920f2cfc6eb9d6c0f6fa42e0ead3b7d1a1e8/idlebar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1814, 4806, 12, 2890, 4672, 468, 1660, 2727, 1404, 2545, 358, 741, 333, 3614, 5196, 3974, 16, 1427, 732, 1608, 468, 358, 1247, 326, 1509, 22234, 18, 468, 468, 5783, 866, 326, 9388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1814, 4806, 12, 2890, 4672, 468, 1660, 2727, 1404, 2545, 358, 741, 333, 3614, 5196, 3974, 16, 1427, 732, 1608, 468, 358, 1247, 326, 1509, 22234, 18, 468, 468, 5783, 866, 326, 9388, ...
pass
seek["time"] = _("Untimed")
def __writeSavedSeeks (self, seekNumber): """ Writes saved seek strings for both the Seek Panel and the Challenge Panel """ min, gain, variant, ratingRange, color, rated, manual = self.__getSeekEditorDialogValues() isUntimedGame = True if min is 0 else False radioText = self.__getNameOfTimeControl(min, gain) self.saved...
d29f291e2b68981e77b9413248abc5f4e586b518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/d29f291e2b68981e77b9413248abc5f4e586b518/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2626, 16776, 16134, 87, 261, 2890, 16, 6520, 1854, 4672, 3536, 30053, 5198, 6520, 2064, 364, 3937, 326, 15363, 23641, 471, 326, 1680, 8525, 23641, 3536, 1131, 16, 17527, 16, 5437, 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, 1001, 2626, 16776, 16134, 87, 261, 2890, 16, 6520, 1854, 4672, 3536, 30053, 5198, 6520, 2064, 364, 3937, 326, 15363, 23641, 471, 326, 1680, 8525, 23641, 3536, 1131, 16, 17527, 16, 5437, 16...
fontSize = 12.
fontSize = 12 defns="ttfn t1fn ttf t1f testCp1252 enc senc ts utext fontSize ttf.face ttf.face.charWidths ttf.face.defaultWidth t1f.widths t1f.encName t1f.substitutionFonts _fonts" rcv = getrc(defns)
def test_instanceStringWidth(self): from reportlab.pdfbase.pdfmetrics import registerFont, _py_getFont from reportlab.pdfbase.ttfonts import TTFont ttfn = 'Luxi-Serif' t1fn = 'Times-Roman' registerFont(TTFont(ttfn, "luxiserif.ttf")) ttf = _py_getFont(ttfn) t1f = _py_getFont(t1fn) testCp1252 = 'copyright %s trademark %s...
ff2e54029ea3fa1ebe70a04b934bf428696c1312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/ff2e54029ea3fa1ebe70a04b934bf428696c1312/test_rl_accel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1336, 780, 2384, 12, 2890, 4672, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 1744, 5711, 16, 389, 2074, 67, 588, 5711, 628, 2605, 7411, 18, 7699, 1969, 18, 748, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1336, 780, 2384, 12, 2890, 4672, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 1744, 5711, 16, 389, 2074, 67, 588, 5711, 628, 2605, 7411, 18, 7699, 1969, 18, 748, 22...
tmp=open(tmpname,'wb')
tmp=DamnOpenFile(tmpname,'wb')
def run(self): for module in self.modules: if not module['about'].has_key('url'): self.postEvent(module,'cannot') elif module['about']['url'] not in self.downloaded: self.downloaded.append(module['about']['url']) http=urllib2.urlopen(module['about']['url']) checkingfor=[module] for module2 in self.modules: if module2['...
eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 364, 1605, 316, 365, 18, 6400, 30, 309, 486, 1605, 3292, 21071, 29489, 5332, 67, 856, 2668, 718, 11, 4672, 365, 18, 2767, 1133, 12, 2978, 11189, 12892, 6134, 1327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 364, 1605, 316, 365, 18, 6400, 30, 309, 486, 1605, 3292, 21071, 29489, 5332, 67, 856, 2668, 718, 11, 4672, 365, 18, 2767, 1133, 12, 2978, 11189, 12892, 6134, 1327, ...
if not run_tpl:
if not run_tpl and not '_run.py' in tpl_name:
def create_workflow(self): """ !!! Note: 1 level parent=master assumed !!! """ rdict = dict(request.params) for x in ['RequestID','Template','Subrequests']: if not x in rdict: return S_ERROR('Required parameter %s is not specified' % x) try: id = long(rdict['RequestID']) tpl_name = str(request.params['Template'])...
a13b743e378a696dcffe076cd201c2c77a323148 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12767/a13b743e378a696dcffe076cd201c2c77a323148/ProductionRequest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 13815, 12, 2890, 4672, 3536, 401, 8548, 3609, 30, 404, 1801, 982, 33, 7525, 12034, 401, 8548, 3536, 436, 1576, 273, 2065, 12, 2293, 18, 2010, 13, 364, 619, 316, 10228, 691, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 13815, 12, 2890, 4672, 3536, 401, 8548, 3609, 30, 404, 1801, 982, 33, 7525, 12034, 401, 8548, 3536, 436, 1576, 273, 2065, 12, 2293, 18, 2010, 13, 364, 619, 316, 10228, 691, 73...
if self.SamplesperPixel > 1: if self.BitsAllocated == 8: arr = arr.reshape(self.SamplesperPixel, self.Rows, self.Columns) else: raise NotImplementedError, "This code only handles SamplesPerPixel > 1 if Bits Allocated = 8" else: arr = arr.reshape(self.Rows, self.Columns)
arr = arr.reshape(self.Rows, self.Columns)
def _PixelDataNumpy(self): """Return a NumPy array of the pixel data.
91796b5ef5488a17cb13a70c62aace0a6daa4ab3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5900/91796b5ef5488a17cb13a70c62aace0a6daa4ab3/dataset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9037, 751, 2578, 2074, 12, 2890, 4672, 3536, 990, 279, 6805, 9413, 526, 434, 326, 4957, 501, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9037, 751, 2578, 2074, 12, 2890, 4672, 3536, 990, 279, 6805, 9413, 526, 434, 326, 4957, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
allDayCanvas.widget.OnSelectItem(canvasItem)
allDayCanvas.widget.OnSelectItem(canvasItem.GetItem())
def SelectItem(self): """ Select the item in chandler (summary view or calendar view selection) """ #if not in the Calendar view (select in the summary view) #check the button state button = App_ns.ApplicationBarEventButton buttonState = button.widget.IsToggled() if not buttonState: App_ns.summary.select(self.item) #if...
2b893744bbbe69399ade75cf67fc82d5bda2d9a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2b893744bbbe69399ade75cf67fc82d5bda2d9a8/QAUITestAppLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6766, 1180, 12, 2890, 4672, 3536, 6766, 326, 761, 316, 462, 464, 749, 261, 7687, 1476, 578, 5686, 1476, 4421, 13, 3536, 468, 430, 486, 316, 326, 5542, 1476, 261, 4025, 316, 326, 4916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6766, 1180, 12, 2890, 4672, 3536, 6766, 326, 761, 316, 462, 464, 749, 261, 7687, 1476, 578, 5686, 1476, 4421, 13, 3536, 468, 430, 486, 316, 326, 5542, 1476, 261, 4025, 316, 326, 4916, ...
str(item[i+21].contents[0]).strip(), year,
str(item[i+21].contents[0]).strip().replace(',', '.'), year.replace('--', '-'),
def grades_update(output): from BeautifulSoup import BeautifulSoup try: soup = BeautifulSoup(output) grades = [] i = 0 item = soup.findAll('table')[13].findAll('td') length_all_td = len(item) semesters = soup.findAll('table')[13].findAll('td', 'groupHeader') lessons = soup.findAll('table')[13].findAll('td', 'topBorder...
cbe1c80fa5cf7f026b4dc17b3d9680f2014a71b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11011/cbe1c80fa5cf7f026b4dc17b3d9680f2014a71b9/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24396, 67, 2725, 12, 2844, 4672, 628, 28132, 1930, 28132, 225, 775, 30, 15418, 273, 28132, 12, 2844, 13, 24396, 273, 5378, 277, 273, 374, 761, 273, 15418, 18, 4720, 1595, 2668, 2121, 613...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24396, 67, 2725, 12, 2844, 4672, 628, 28132, 1930, 28132, 225, 775, 30, 15418, 273, 28132, 12, 2844, 13, 24396, 273, 5378, 277, 273, 374, 761, 273, 15418, 18, 4720, 1595, 2668, 2121, 613...
signal_handler = signal.signal(signal.SIGINT, signal.SIG_IGN) kernel32 = ctypes.windll.kernel32 kernel32.GenerateConsoleCtrlEvent(0, 0) signal.signal(signal.SIGINT, signal_handler)
self._set_handler_to_ignore_one_sigint() ctypes.windll.kernel32.GenerateConsoleCtrlEvent(0, 0) def _set_handler_to_ignore_one_sigint(self): orig_handler = signal.getsignal(signal.SIGINT) signal.signal(signal.SIGINT, lambda signum, frame: signal.signal(signal.SIGINT, orig_handler))
def send_terminate(self, signal_name): if os.name != 'nt': signal_to_send = getattr(signal, signal_name) pid = self._process.pid os.kill(pid, signal_to_send) else: signal_handler = signal.signal(signal.SIGINT, signal.SIG_IGN) kernel32 = ctypes.windll.kernel32 kernel32.GenerateConsoleCtrlEvent(0, 0) signal.signal(signal...
061ac3811e5949c7d26964da4c3c63aa3eccfb59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/061ac3811e5949c7d26964da4c3c63aa3eccfb59/ProcessManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 30017, 12, 2890, 16, 4277, 67, 529, 4672, 309, 1140, 18, 529, 480, 296, 496, 4278, 4277, 67, 869, 67, 4661, 273, 3869, 12, 10420, 16, 4277, 67, 529, 13, 4231, 273, 365, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 67, 30017, 12, 2890, 16, 4277, 67, 529, 4672, 309, 1140, 18, 529, 480, 296, 496, 4278, 4277, 67, 869, 67, 4661, 273, 3869, 12, 10420, 16, 4277, 67, 529, 13, 4231, 273, 365, 631...
params['TransactionAmount.Value'] = str(transactionAmount)
params['TransactionAmount.Amount'] = str(transactionAmount)
def pay(self, transactionAmount, senderTokenId, chargeFeeTo="Recipient", callerReference=None, senderReference=None, recipientReference=None, senderDescription=None, recipientDescription=None, callerDescription=None, metadata=None, transactionDate=None, reserve=False): """ Make a payment transaction. You must specify t...
7449e3919d9838d9939fdcd107f3c93b047e7389 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/7449e3919d9838d9939fdcd107f3c93b047e7389/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8843, 12, 2890, 16, 2492, 6275, 16, 5793, 1345, 548, 16, 13765, 14667, 774, 1546, 18241, 3113, 4894, 2404, 33, 7036, 16, 5793, 2404, 33, 7036, 16, 8027, 2404, 33, 7036, 16, 5793, 3291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8843, 12, 2890, 16, 2492, 6275, 16, 5793, 1345, 548, 16, 13765, 14667, 774, 1546, 18241, 3113, 4894, 2404, 33, 7036, 16, 5793, 2404, 33, 7036, 16, 8027, 2404, 33, 7036, 16, 5793, 3291, ...
current_hunk = binhunk(changed[bfile[2:]][1])
current_hunk = binhunk(changed[bfile[2:]])
def scangitpatch(fp, firstline): '''git patches can modify a file, then copy that file to a new file, but expect the source to be the unmodified form. So we scan the patch looking for that case so we can do the copies ahead of time.'''
545f4d8d558fec3c96fc1546200fe77944791dac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/545f4d8d558fec3c96fc1546200fe77944791dac/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 539, 305, 2272, 12, 7944, 16, 1122, 1369, 4672, 9163, 6845, 16482, 848, 5612, 279, 585, 16, 1508, 1610, 716, 585, 358, 279, 394, 585, 16, 1496, 4489, 326, 1084, 358, 506, 326, 304...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 539, 305, 2272, 12, 7944, 16, 1122, 1369, 4672, 9163, 6845, 16482, 848, 5612, 279, 585, 16, 1508, 1610, 716, 585, 358, 279, 394, 585, 16, 1496, 4489, 326, 1084, 358, 506, 326, 304...
def __reorder(self,nid,path,neworder):
def __reorder(self, sender, nid,path,neworder):
def __reorder(self,nid,path,neworder): actual_nid = self.tree.get_node_for_path(path) if nid == actual_nid: if path: rowref = self.get_iter(path) else: rowref = None self.rows_reordered(path,rowref,neworder) else: raise Exception('path/node mismatch in reorder')
5769cda57bd6dd56cde8eef409018822db4ccf9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/5769cda57bd6dd56cde8eef409018822db4ccf9d/treemodel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 266, 1019, 12, 2890, 16, 5793, 16, 19416, 16, 803, 16, 2704, 1019, 4672, 3214, 67, 31030, 273, 365, 18, 3413, 18, 588, 67, 2159, 67, 1884, 67, 803, 12, 803, 13, 309, 19416, 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, 266, 1019, 12, 2890, 16, 5793, 16, 19416, 16, 803, 16, 2704, 1019, 4672, 3214, 67, 31030, 273, 365, 18, 3413, 18, 588, 67, 2159, 67, 1884, 67, 803, 12, 803, 13, 309, 19416, 422...
if address.state: query += ' ' + address.state.name
if address.subdivision: query += ' ' + address.subdivision.name
def get_google_maps_url(self, cursor, user, ids, name, arg, context=None): if context is None: context = {} res = {} lang = context.get('language', 'en_US')[:2] for address in self.browse(cursor, user, ids, context=context): query = '' if address.street: query += ' ' + address.street if address.streetbis: query += ' ' ...
56abc587b480b6ede20512053d901153728b433e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9271/56abc587b480b6ede20512053d901153728b433e/address.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9536, 67, 10711, 67, 718, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 400, 273, 2618, 3303, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9536, 67, 10711, 67, 718, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 400, 273, 2618, 3303, ...
for line in file.readlines():
for line in file.xreadlines():
def findnames(file, prefix=""): names = {} for line in file.readlines(): if line[0] == '!': continue fields = line.split() name, tag = fields[0], fields[-1] if tag == 'd' and name.endswith('_H'): continue if name.startswith(prefix): names[name] = tag return names
3765bd23f1517b1a04fc6472a2ca1e8ea61a227f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3765bd23f1517b1a04fc6472a2ca1e8ea61a227f/undoc_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1973, 12, 768, 16, 1633, 1546, 6, 4672, 1257, 273, 2618, 364, 980, 316, 585, 18, 92, 896, 3548, 13332, 309, 980, 63, 20, 65, 422, 11817, 4278, 1324, 1466, 273, 980, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1973, 12, 768, 16, 1633, 1546, 6, 4672, 1257, 273, 2618, 364, 980, 316, 585, 18, 92, 896, 3548, 13332, 309, 980, 63, 20, 65, 422, 11817, 4278, 1324, 1466, 273, 980, 18, 4939, 1...
print '%s %s %s' % ('DIRAC SE'.ljust(20),('Size (%s)' % unit).ljust(20),'Files'.ljust(20)) print '-'*50 for se in sortList(totalUsage.keys()):
print '%s %s %s' % ( 'DIRAC SE'.ljust( 20 ), ( 'Size (%s)' % unit ).ljust( 20 ), 'Files'.ljust( 20 ) ) print '-' * 50 for se in sortList( totalUsage.keys() ):
def usage(): print 'Usage: %s [<options>] <Directory>' % (Script.scriptName) print ' Get a summary of the storage usage <for an optionally supplied directory>.' print ' The usage can be given in any of the following units: (MB,GB,TB,PB)' print ' The sites options should be a space or comma separated list e.g. --Sites="...
d2db378c63ced0c70abdfd0e1e47c60e42f24767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d2db378c63ced0c70abdfd0e1e47c60e42f24767/dirac-dms-storage-usage-summary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 306, 32, 2116, 34, 65, 411, 2853, 1870, 738, 261, 3651, 18, 4263, 461, 13, 1172, 296, 968, 279, 4916, 434, 326, 2502, 4084, 411, 1884, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 306, 32, 2116, 34, 65, 411, 2853, 1870, 738, 261, 3651, 18, 4263, 461, 13, 1172, 296, 968, 279, 4916, 434, 326, 2502, 4084, 411, 1884, 392, ...
err_log= err_log + '\n\nNumber of statements : '+ str(len([bkst_list])) err_log= err_log + '\nNumber of error :'+ str(nb_err) +'\n'
err_log += '\n\nNumber of statements : '+ str(len([bkst_list])) err_log += '\nNumber of error :'+ str(nb_err) +'\n'
def _coda_parsing(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) codafile = data['form']['coda'] jur_id = data['form']['journal_id'] def_pay_acc = data['form']['def_payable'] def_rec_acc = data['form']['def_receivable'] str_log = "" err_log = "Errors:\n------\n" nb_err=0 std_log='' str_log1 = "Coda F...
2b8aba5dfb833d1f9a101218c2280e6361bd57e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/2b8aba5dfb833d1f9a101218c2280e6361bd57e2/coda_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1559, 69, 67, 24979, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 11012, 69, 768, 273, 501, 3292, 687,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1559, 69, 67, 24979, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 11012, 69, 768, 273, 501, 3292, 687,...
def process_translations(self, doctree, translation): """ Replace translatable nodes with their translated doctree. """ if not translation: return settings, source = doctree.settings, doctree['source'] parser = RSTParser() for node, msg in extract_messages(doctree): ctx = node.parent patch = new_document(source, setti...
def filter_messages(self, doctree): """ Filter system messages from a doctree. """ filterlevel = self.config.keep_warnings and 2 or 5 for node in doctree.traverse(nodes.system_message): if node['level'] < filterlevel: node.parent.remove(node)
38e1e7770f98f3e041d14f7b949f5f69909f60a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/38e1e7770f98f3e041d14f7b949f5f69909f60a4/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 6833, 12, 2890, 16, 31263, 992, 4672, 3536, 4008, 2619, 2743, 628, 279, 31263, 992, 18, 3536, 1034, 2815, 273, 365, 18, 1425, 18, 10102, 67, 12103, 471, 576, 578, 1381, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1034, 67, 6833, 12, 2890, 16, 31263, 992, 4672, 3536, 4008, 2619, 2743, 628, 279, 31263, 992, 18, 3536, 1034, 2815, 273, 365, 18, 1425, 18, 10102, 67, 12103, 471, 576, 578, 1381, 364, ...
rate(60) pass
rate(60) if scene.kb.keys: s = scene.kb.getkey() if s == "s": ser.write(chr(0)) elif s=="r": ser.write(chr(130)) elif s=="o": use_outer_line = not use_outer_line elif s=="l": use_lines = not use_lines elif s=="p": use_points = not use_points elif s=="i": use_intensity = not use_intensity zero_intensity_ring.visible ...
def read_in(): global in_frame, init_level, angle, index, speed_rpm nb_errors = 0 while True: try: time.sleep(0.00001) # do not hog the processor power if init_level == 0 : # start byte b = ord(ser.read(1)) if b == 0xFA : init_level = 1 else: init_level = 0 elif init_level == 1: # position index b = ord(ser.read(1)) ...
7e79bd8b6a9f13952a2c0437da2cc4de3f87703c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13852/7e79bd8b6a9f13952a2c0437da2cc4de3f87703c/XV-11_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 267, 13332, 2552, 316, 67, 3789, 16, 1208, 67, 2815, 16, 5291, 16, 770, 16, 8632, 67, 86, 7755, 225, 4264, 67, 4324, 273, 374, 1323, 1053, 30, 775, 30, 813, 18, 19607, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 267, 13332, 2552, 316, 67, 3789, 16, 1208, 67, 2815, 16, 5291, 16, 770, 16, 8632, 67, 86, 7755, 225, 4264, 67, 4324, 273, 374, 1323, 1053, 30, 775, 30, 813, 18, 19607, 12, ...
self.assertEqual(m, t.__dict__[meth])
self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth])
def binop_test(self, a, b, res, expr="a+b", meth="__add__"): d = {'a': a, 'b': b}
e95ce49aa005020c50b0d820a37ca320fb92be85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/e95ce49aa005020c50b0d820a37ca320fb92be85/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 556, 67, 3813, 12, 2890, 16, 279, 16, 324, 16, 400, 16, 3065, 1546, 69, 15, 70, 3113, 7917, 1546, 972, 1289, 14437, 4672, 302, 273, 13666, 69, 4278, 279, 16, 296, 70, 4278, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 556, 67, 3813, 12, 2890, 16, 279, 16, 324, 16, 400, 16, 3065, 1546, 69, 15, 70, 3113, 7917, 1546, 972, 1289, 14437, 4672, 302, 273, 13666, 69, 4278, 279, 16, 296, 70, 4278, 324...
len1 = l1.length
len1 = l1.ll_length()
def ll_extend(l1, l2): len1 = l1.length len2 = l2.ll_length() newlength = len1 + len2 _ll_list_resize_ge(l1, newlength) items = l1.items source = l2.ll_items() i = 0 j = len1 while i < len2: items[j] = source[i] i += 1 j += 1
afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 14313, 12, 80, 21, 16, 328, 22, 4672, 562, 21, 273, 328, 21, 18, 2906, 67, 2469, 1435, 562, 22, 273, 328, 22, 18, 2906, 67, 2469, 1435, 394, 2469, 273, 562, 21, 397, 562,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6579, 67, 14313, 12, 80, 21, 16, 328, 22, 4672, 562, 21, 273, 328, 21, 18, 2906, 67, 2469, 1435, 562, 22, 273, 328, 22, 18, 2906, 67, 2469, 1435, 394, 2469, 273, 562, 21, 397, 562,...
self.assert_(set(self._box.get_labels()) == set(['foo', 'bar']))
self.assertEqual(set(self._box.get_labels()), set(['foo', 'bar']))
def test_labels(self): # Get labels from the mailbox self.assertEqual(self._box.get_labels(), []) msg0 = mailbox.BabylMessage(self._template % 0) msg0.add_label('foo') key0 = self._box.add(msg0) self.assertEqual(self._box.get_labels(), ['foo']) msg1 = mailbox.BabylMessage(self._template % 1) msg1.set_labels(['bar', 'an...
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5336, 12, 2890, 4672, 468, 968, 3249, 628, 326, 14187, 365, 18, 11231, 5812, 12, 2890, 6315, 2147, 18, 588, 67, 5336, 9334, 5378, 13, 1234, 20, 273, 14187, 18, 38, 24383, 80,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5336, 12, 2890, 4672, 468, 968, 3249, 628, 326, 14187, 365, 18, 11231, 5812, 12, 2890, 6315, 2147, 18, 588, 67, 5336, 9334, 5378, 13, 1234, 20, 273, 14187, 18, 38, 24383, 80,...
this = apply(_quickfix.new_UnderlyingStrikePrice, args)
this = _quickfix.new_UnderlyingStrikePrice(*args)
def __init__(self, *args): this = apply(_quickfix.new_UnderlyingStrikePrice, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 14655, 6291, 1585, 2547, 5147, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 14655, 6291, 1585, 2547, 5147, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13,...
if self.mass_bins: self.add_var_opt("mass-bins", mass_bins)
if mass_bins: self.add_var_opt("mass-bins", mass_bins)
def __init__(self, job, dag, veto_segments_name, database, id, p_node=[],instruments = "H1,H2,L1", mass_bins="0,50,85,inf", live_time_program="thinca"): pipeline.CondorDAGNode.__init__(self,job) #FIXME make temp space? #self.add_var_opt("tmp-space","/tmp") if self.mass_bins: self.add_var_opt("mass-bins", mass_bins) sel...
c431ade39e244bb868bb31a9e8b17867db2021ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/c431ade39e244bb868bb31a9e8b17867db2021ce/highmass_post_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1719, 16, 22940, 16, 331, 11453, 67, 12838, 67, 529, 16, 2063, 16, 612, 16, 293, 67, 2159, 22850, 6487, 22818, 87, 273, 315, 44, 21, 16, 44, 22, 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, 1001, 2738, 972, 12, 2890, 16, 1719, 16, 22940, 16, 331, 11453, 67, 12838, 67, 529, 16, 2063, 16, 612, 16, 293, 67, 2159, 22850, 6487, 22818, 87, 273, 315, 44, 21, 16, 44, 22, 16, ...
print '<tr>'
print '<tr bgcolor="
def GET(self): # yes, this is a bit of a mess web.header('Content-Type','text/html; charset=utf-8', unique=True) web.header('Refresh','60', unique=True) print "<html>\n<head><title>Import status</title>" print "<style>th { vertical-align: bottom; text-align: left }</style>" print "</head><body>" print "<h1>Import statu...
621b214377096c533b1e70ab16cd3be9336e5eff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/621b214377096c533b1e70ab16cd3be9336e5eff/status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 4672, 468, 12465, 16, 333, 353, 279, 2831, 434, 279, 12755, 3311, 18, 3374, 2668, 1350, 17, 559, 17023, 955, 19, 2620, 31, 4856, 33, 3158, 17, 28, 2187, 3089, 33, 5510,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4978, 12, 2890, 4672, 468, 12465, 16, 333, 353, 279, 2831, 434, 279, 12755, 3311, 18, 3374, 2668, 1350, 17, 559, 17023, 955, 19, 2620, 31, 4856, 33, 3158, 17, 28, 2187, 3089, 33, 5510,...
text = sum.findtext("", None).strip()
text = sum.text.strip()
def IsRietveldSubmitted(ui, clname, hex): feed = XMLGet(ui, "/rss/issue/" + clname) if feed is None: return False for sum in feed.findall("{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}summary"): text = sum.findtext("", None).strip() m = re.match('\*\*\* Submitted as [^*]*?([0-9a-f]+) \*\*\*', text) i...
0e816f5972b2bebe62960e6066cb87c75bb009dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6483/0e816f5972b2bebe62960e6066cb87c75bb009dd/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 54, 6213, 90, 488, 28882, 12, 4881, 16, 927, 529, 16, 3827, 4672, 4746, 273, 3167, 967, 12, 4881, 16, 2206, 25151, 19, 13882, 4898, 397, 927, 529, 13, 309, 4746, 353, 599, 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, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 54, 6213, 90, 488, 28882, 12, 4881, 16, 927, 529, 16, 3827, 4672, 4746, 273, 3167, 967, 12, 4881, 16, 2206, 25151, 19, 13882, 4898, 397, 927, 529, 13, 309, 4746, 353, 599, 30, ...
[(1, 19, 16, 13, 10, 7, 4), (2, 17, 11, 5, 20, 14, 8), (3, 12, 21, 9, 18, 6, 15)]
[(1, 4, 10, 16, 7, 19, 13), (2, 8, 5, 20, 11, 14, 17), (3, 12, 9, 15, 6, 18, 21)]
def tau123(T1, T2): """ Compute the tau_i representation for a bitrade (T1, T2). See the functions tau1, tau2, and tau3 for the mathematical definitions. RETURNS: (cells_map, t1, t2, t3) where cells_map is a map to/from the filled cells of T1, and t1, t2, t3 are the tau1, tau2, tau3 permutations. EXAMPLES: sage: fro...
494f2bd1cd82ea9dcc25f8e258b7375812aed1c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/494f2bd1cd82ea9dcc25f8e258b7375812aed1c9/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12284, 12936, 12, 56, 21, 16, 399, 22, 4672, 3536, 8155, 326, 12284, 67, 77, 4335, 364, 279, 2831, 354, 323, 261, 56, 21, 16, 399, 22, 2934, 2164, 326, 4186, 12284, 21, 16, 12284, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12284, 12936, 12, 56, 21, 16, 399, 22, 4672, 3536, 8155, 326, 12284, 67, 77, 4335, 364, 279, 2831, 354, 323, 261, 56, 21, 16, 399, 22, 2934, 2164, 326, 4186, 12284, 21, 16, 12284, 22...
\url{http://www.math.unicaen.fr/~simon/}.
http://www.math.unicaen.fr/~simon/.
def rank(self,verbose=0, lim1=5, lim3=50, limtriv=10, maxprob=20, limbigprime=30): r""" Return the rank of this elliptic curve, if it can be determined.
16c5d6f4b590776892987400ecee6a836886ccbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/16c5d6f4b590776892987400ecee6a836886ccbb/ell_number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6171, 12, 2890, 16, 11369, 33, 20, 16, 20167, 21, 33, 25, 16, 20167, 23, 33, 3361, 16, 20167, 313, 427, 33, 2163, 16, 943, 7748, 33, 3462, 16, 20167, 14002, 16382, 33, 5082, 4672, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11369, 33, 20, 16, 20167, 21, 33, 25, 16, 20167, 23, 33, 3361, 16, 20167, 313, 427, 33, 2163, 16, 943, 7748, 33, 3462, 16, 20167, 14002, 16382, 33, 5082, 4672, 43...
certList = crypto.load_certificate_chain( crypto.FILETYPE_PEM, pemData )
certList = GSI.crypto.load_certificate_chain( GSI.crypto.FILETYPE_PEM, pemData )
def generateChainFromResponse( self, pemData ): """ Generate a X509 Chain from the pkey and the pem data passed as the argument Return : S_OK( X509Chain ) / S_ERROR """ if not self.__valid: return S_ERROR( "No request loaded" ) try: certList = crypto.load_certificate_chain( crypto.FILETYPE_PEM, pemData ) except Excepti...
2f18b097d946a737cb6f9da80779a6520e4d7a69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2f18b097d946a737cb6f9da80779a6520e4d7a69/X509Request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 3893, 1265, 1064, 12, 365, 16, 12141, 751, 262, 30, 3536, 6654, 279, 1139, 5995, 7824, 628, 326, 19291, 471, 326, 12141, 501, 2275, 487, 326, 1237, 2000, 294, 348, 67, 3141, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 3893, 1265, 1064, 12, 365, 16, 12141, 751, 262, 30, 3536, 6654, 279, 1139, 5995, 7824, 628, 326, 19291, 471, 326, 12141, 501, 2275, 487, 326, 1237, 2000, 294, 348, 67, 3141, 12, ...
component = Component(self.__env, name)
component = Component(self.env_open(), name)
def _do_component_remove(self, name): component = Component(self.__env, name) component.delete()
132f03448459e7c8907500129479bb5f6c5bc47a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/132f03448459e7c8907500129479bb5f6c5bc47a/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 4652, 67, 4479, 12, 2890, 16, 508, 4672, 1794, 273, 5435, 12, 2890, 18, 3074, 67, 3190, 9334, 508, 13, 1794, 18, 3733, 1435, 2, 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, 389, 2896, 67, 4652, 67, 4479, 12, 2890, 16, 508, 4672, 1794, 273, 5435, 12, 2890, 18, 3074, 67, 3190, 9334, 508, 13, 1794, 18, 3733, 1435, 2, -100, -100, -100, -100, -100, -100, -100,...
return (objects, output_dir)
raise TypeError, \ "'libraries' (if supplied) must be a list of strings" if library_dirs is None: library_dirs = self.library_dirs elif type (library_dirs) in (ListType, TupleType): library_dirs = list (library_dirs) + (self.library_dirs or []) else: raise TypeError, \ "'library_dirs' (if supplied) must be a list of s...
def _fix_link_args (self, objects, output_dir, takes_libs=0, libraries=None, library_dirs=None): """Typecheck and fix up some of the arguments supplied to the 'link_*' methods and return the fixed values. Specifically: ensure that 'objects' is a list; if output_dir is None, use self.output_dir; ensure that 'libraries'...
f5ea4ac3c8b9b33f9d4584b2e24479be1f355257 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f5ea4ac3c8b9b33f9d4584b2e24479be1f355257/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 67, 1232, 67, 1968, 261, 2890, 16, 2184, 16, 876, 67, 1214, 16, 5530, 67, 21571, 33, 20, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 4672, 3536, 559, 1893, 471, 2917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 904, 67, 1232, 67, 1968, 261, 2890, 16, 2184, 16, 876, 67, 1214, 16, 5530, 67, 21571, 33, 20, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 4672, 3536, 559, 1893, 471, 2917...
elif k.startswith("em|"): keys = list(toHex(i) for i in bridgedb.Bridges.chopString(v, bridgedb.Bridges.ID_LEN)) cur.executemany("INSERT INTO EmailedBridges ( email, id ) " "SELECT ?, id FROM Bridges WHERE hex_key = ?", [(k[3:],i) for i in keys]) elif k.startswith("sp|"):
elif k.startswith("sp|") or k.startswith("em|"):
def openOrConvertDatabase(sqlite_file, db_file): """Open a sqlite database, converting it from a db file if needed.""" if os.path.exists(sqlite_file): return openDatabase(sqlite_file) conn = sqlite3.Connection(sqlite_file) cur = conn.cursor() cur.executescript(SCHEMA1_SCRIPT) conn.commit() import anydbm try: db = an...
5c9c3469c9a0be7c31fadcb4939c7ebf56dd9594 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5458/5c9c3469c9a0be7c31fadcb4939c7ebf56dd9594/Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1162, 2723, 4254, 12, 19460, 67, 768, 16, 1319, 67, 768, 4672, 3536, 3678, 279, 16184, 2063, 16, 14540, 518, 628, 279, 1319, 585, 309, 3577, 12123, 309, 1140, 18, 803, 18, 1808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 1162, 2723, 4254, 12, 19460, 67, 768, 16, 1319, 67, 768, 4672, 3536, 3678, 279, 16184, 2063, 16, 14540, 518, 628, 279, 1319, 585, 309, 3577, 12123, 309, 1140, 18, 803, 18, 1808, ...
if not self.default: default_adapter = component.queryAdapter(instance, IFieldDefaultProvider, name=self.__name__) if default_adapter is not None: return default_adapter() return self.default
else: return self.default
def getDefault(self, instance): """Return the default value to be used for initializing this field""" dm = self.default_method if dm: if isinstance(dm, basestring) and shasattr(instance, dm): method = getattr(instance, dm) return method() elif callable(dm): return dm() else: raise ValueError('%s.default_method is neith...
7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 12, 2890, 16, 791, 4672, 3536, 990, 326, 805, 460, 358, 506, 1399, 364, 22584, 333, 652, 8395, 9113, 273, 365, 18, 1886, 67, 2039, 309, 9113, 30, 309, 1549, 12, 10956, 16, 10699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4829, 12, 2890, 16, 791, 4672, 3536, 990, 326, 805, 460, 358, 506, 1399, 364, 22584, 333, 652, 8395, 9113, 273, 365, 18, 1886, 67, 2039, 309, 9113, 30, 309, 1549, 12, 10956, 16, 10699,...
result += str(value)
if isinstance(value, Lob): value = value.getInputStream().read() result += "<![CDATA[" + str(value) + "]]>"
def exportProcess(self, item, depth=0):
e0c9b52eed2ed5c199c480d1a30037243a0c5b15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e0c9b52eed2ed5c199c480d1a30037243a0c5b15/Sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 2227, 12, 2890, 16, 761, 16, 3598, 33, 20, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3359, 2227, 12, 2890, 16, 761, 16, 3598, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.stopcomm = False
self.stopSocketReader = False
def waitforconn(self, function): """ <Purpose> Waits for a connection to a port. Calls function with a socket-like object if it succeeds.
802ffb0e90c264395b89f378837f0cc01b983c79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/802ffb0e90c264395b89f378837f0cc01b983c79/NATLayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 4646, 12, 2890, 16, 445, 4672, 3536, 411, 10262, 4150, 34, 678, 12351, 364, 279, 1459, 358, 279, 1756, 18, 23665, 445, 598, 279, 2987, 17, 5625, 733, 309, 518, 21933, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2529, 1884, 4646, 12, 2890, 16, 445, 4672, 3536, 411, 10262, 4150, 34, 678, 12351, 364, 279, 1459, 358, 279, 1756, 18, 23665, 445, 598, 279, 2987, 17, 5625, 733, 309, 518, 21933, 18, 2...
handlerId = self.widgets["editSeekDialog"].connect("response", onResponse) title = _("Edit Seek: ") + self.widgets[radioname % seeknumber].get_label()[:-1]
title = _("Edit Seek: ") + self.widgets["seek%dRadio" % seeknumber].get_label()[:-1]
def onResponse (dialog, response): self.widgets["editSeekDialog"].hide() self.widgets["editSeekDialog"].disconnect(handlerId) for i in range(1,4): self.widgets[buttonname % i].set_sensitive(True) self.widgets[opbuttonname % i].set_sensitive(True) if configbutton in self.connections: self.widgets[configbutton].disconnec...
d29f291e2b68981e77b9413248abc5f4e586b518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/d29f291e2b68981e77b9413248abc5f4e586b518/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1064, 261, 12730, 16, 766, 4672, 365, 18, 18148, 9614, 4619, 16134, 6353, 6, 8009, 11248, 1435, 365, 18, 18148, 9614, 4619, 16134, 6353, 6, 8009, 20177, 12, 4176, 548, 13, 364, 277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1064, 261, 12730, 16, 766, 4672, 365, 18, 18148, 9614, 4619, 16134, 6353, 6, 8009, 11248, 1435, 365, 18, 18148, 9614, 4619, 16134, 6353, 6, 8009, 20177, 12, 4176, 548, 13, 364, 277,...
code.append('EI') if returnInMemory: return code cachedname = os.path.splitext(filename)[0] + '.a85' f = open(cachedname,'wb') f.write(join(code, LINEEND)+LINEEND) f.close() if rl_config._verbose: print 'cached image as %s' % cachedname
while dataline <> "": code.append(dataline) dataline = outstream.read(60) code.append('EI') if returnInMemory: return code f = open(cachedname,'wb') f.write(join(code, LINEEND)+LINEEND) f.close() if rl_config._verbose: print 'cached image as %s' % cachedname
def cacheImageFile(filename, returnInMemory=0): "Processes image as if for encoding, saves to a file with .a85 extension." from reportlab.lib.utils import PIL_Image import zlib img1 = PIL_Image.open(filename) img = img1.convert('RGB') imgwidth, imgheight = img.size code = [] code.append('BI') # begin image # this ...
2933359555b63580a00dd827dd7e6f0d0418138f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2933359555b63580a00dd827dd7e6f0d0418138f/pdfutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1247, 2040, 812, 12, 3459, 16, 327, 382, 6031, 33, 20, 4672, 315, 10599, 1316, 487, 309, 364, 2688, 16, 14649, 358, 279, 585, 598, 263, 69, 7140, 2710, 1199, 225, 628, 2605, 7411, 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, 1247, 2040, 812, 12, 3459, 16, 327, 382, 6031, 33, 20, 4672, 315, 10599, 1316, 487, 309, 364, 2688, 16, 14649, 358, 279, 585, 598, 263, 69, 7140, 2710, 1199, 225, 628, 2605, 7411, 18, ...
'int* _D%(name)s = %(name)s->nd;\n' \ '%(type)s* %(name)s_data = %(name)s->data;\n'
'int _D%(name)s = %(name)s->nd;\n' \ '%(type)s* %(name)s_data = (%(type)s*) %(name)s->data;\n'
def standard_decl_code(self): type = numeric_to_blitz_type_mapping[self.numeric_type] name = self.name templ = '// %(name)s array declaration\n' \ 'PyArrayObject* %(name)s = py_to_numpy(py_%(name)s,"%(name)s");\n' \ 'int* _N%(name)s = %(name)s->dimensions;\n' \ 'int* _S%(name)s = %(name)s->strides;\n' \ 'int* _D%(name)...
fbeedee8e7a99b9628832898379f8da9e132c43d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/fbeedee8e7a99b9628832898379f8da9e132c43d/standard_array_spec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 67, 8840, 67, 710, 12, 2890, 4672, 618, 273, 6389, 67, 869, 67, 3083, 305, 94, 67, 723, 67, 6770, 63, 2890, 18, 5246, 67, 723, 65, 508, 273, 365, 18, 529, 13988, 273, 12084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4529, 67, 8840, 67, 710, 12, 2890, 4672, 618, 273, 6389, 67, 869, 67, 3083, 305, 94, 67, 723, 67, 6770, 63, 2890, 18, 5246, 67, 723, 65, 508, 273, 365, 18, 529, 13988, 273, 12084, ...
return string.atoi(v)
if v: return string.atoi(v) raise ValueError, 'Empty entry when integer expected'
def field2int(v): try: v=v.read() except: v=str(v) return string.atoi(v)
e4d209501bbb231c07d5e6c2f30b761bb8a056fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e4d209501bbb231c07d5e6c2f30b761bb8a056fc/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 22, 474, 12, 90, 4672, 775, 30, 331, 33, 90, 18, 896, 1435, 1335, 30, 331, 33, 701, 12, 90, 13, 225, 309, 331, 30, 327, 533, 18, 270, 11359, 12, 90, 13, 1002, 2068, 16, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 22, 474, 12, 90, 4672, 775, 30, 331, 33, 90, 18, 896, 1435, 1335, 30, 331, 33, 701, 12, 90, 13, 225, 309, 331, 30, 327, 533, 18, 270, 11359, 12, 90, 13, 1002, 2068, 16, 296,...
return self.file.read(size)
chunks = [] read = 0 while read < size: data = self.file.read(min(size-read, 4096)) if not data: break read += len(data) chunks.append(data) return b''.join(chunks)
def read(self, size): """Read 'size' bytes from remote.""" return self.file.read(size)
94448afc2448648679db2638ebbc3bbbee6f391a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/94448afc2448648679db2638ebbc3bbbee6f391a/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 4672, 3536, 1994, 296, 1467, 11, 1731, 628, 2632, 12123, 327, 365, 18, 768, 18, 896, 12, 1467, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 4672, 3536, 1994, 296, 1467, 11, 1731, 628, 2632, 12123, 327, 365, 18, 768, 18, 896, 12, 1467, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ax = pylab.axes([0.1, 0.1, 0.9, 0.9], frameon=False) ax.set_xticks([]) ax.set_yticks([]) ax.legend(patch_ls, legend_ls, loc='upper right', handlelen=0.02) pd.left_1st_ax.set_xlim([pd.min_x-0.2, pd.max_x+0.2]) pd.right_1st_ax.set_xlim([pd.min_x-0.2, pd.max_x+0.2])
ax1.legend(patch_ls, legend_ls, loc='upper left', handlelen=0.02) xlim_cushion = (pd.max_x-pd.min_x)/20 xlim_ls = [pd.min_x-xlim_cushion, pd.max_x+xlim_cushion] if pd.left_1st_ax and pd.right_1st_ax: pd.left_1st_ax.set_xlim(xlim_ls) pd.right_1st_ax.set_xlim(xlim_ls) if preset_xlim: xlim_ls = preset_xlim ax1.set_xli...
def plotCurve(cls, rdata, no_of_top_snps_info, min_distance_info, output_fname=None, need_svg=False): """ 2008-10-29 draw candidate ratio, non-candidate ratio, pvalues etc against score cutoff at different distances. """ sys.stderr.write("Plotting curves ... ") pylab.clf() #fig = Figure() fig = pylab.gcf() #canvas = ...
a419170eae9b455921b4003eb7af109dabd831e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/a419170eae9b455921b4003eb7af109dabd831e2/DrawTopSNPTest2DMapForOneRM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 9423, 12, 6429, 16, 24291, 16, 1158, 67, 792, 67, 3669, 67, 8134, 1121, 67, 1376, 16, 1131, 67, 8969, 67, 1376, 16, 876, 67, 12749, 33, 7036, 16, 1608, 67, 11451, 33, 8381, 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, 3207, 9423, 12, 6429, 16, 24291, 16, 1158, 67, 792, 67, 3669, 67, 8134, 1121, 67, 1376, 16, 1131, 67, 8969, 67, 1376, 16, 876, 67, 12749, 33, 7036, 16, 1608, 67, 11451, 33, 8381, 467...
self.stats.reverse_order()
if self.stats: self.stats.reverse_order() else: print("No statistics object is loaded.", file=self.stream)
def do_reverse(self, line): self.stats.reverse_order() return 0
3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e/pstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 9845, 12, 2890, 16, 980, 4672, 309, 365, 18, 5296, 30, 365, 18, 5296, 18, 9845, 67, 1019, 1435, 469, 30, 1172, 2932, 2279, 7691, 733, 353, 4203, 1199, 16, 585, 33, 2890, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 9845, 12, 2890, 16, 980, 4672, 309, 365, 18, 5296, 30, 365, 18, 5296, 18, 9845, 67, 1019, 1435, 469, 30, 1172, 2932, 2279, 7691, 733, 353, 4203, 1199, 16, 585, 33, 2890, 18,...
self.zone_refresh.stop_timer()
self.zone_refresh.shutdown()
def test_run_timer(self): """This case will run timer in daemon thread. The zone's next_refresh_time is less than now, so zonemgr will do zone refresh immediately. The zone's state will become "refreshing". Then closing the socket ,the timer will stop, and throw a ZonemgrException.""" time1 = time.time() self.zone_refr...
c5a9ab2da56fc81874bd9c434ab7907afa578f9a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/c5a9ab2da56fc81874bd9c434ab7907afa578f9a/zonemgr_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2681, 67, 12542, 12, 2890, 4672, 3536, 2503, 648, 903, 1086, 5441, 316, 8131, 2650, 18, 1021, 4157, 1807, 1024, 67, 9144, 67, 957, 353, 5242, 2353, 2037, 16, 1427, 998, 265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 67, 12542, 12, 2890, 4672, 3536, 2503, 648, 903, 1086, 5441, 316, 8131, 2650, 18, 1021, 4157, 1807, 1024, 67, 9144, 67, 957, 353, 5242, 2353, 2037, 16, 1427, 998, 265, ...
where ``child(x)`` returns the childs of the node ``x`` of the forest.
where ``children(x)`` returns the children of the node ``x`` of the forest.
def search_forest_iterator(roots, childs): """ INPUT: - ``roots``: a list (or iterable) - ``childs``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``child(x)`` returns the childs of the node ``x`` of the forest. EXAMPLES:: sage: from sag...
0c5cb94bdc0dba9150cb164c00100196aa13fa7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0c5cb94bdc0dba9150cb164c00100196aa13fa7e/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 21619, 4672, 3536, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 3624, 87, 10335, 30, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 21619, 4672, 3536, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 3624, 87, 10335, 30, 279, ...
result = Project.dirty_test_paths(self) if self.store.want_debian(): result.append(self.installed_debian_source_path()) return result
return Project.dirty_test_paths(self) + \ DebianMixin.dirty_test_paths(self)
def dirty_test_paths(self): result = Project.dirty_test_paths(self) if self.store.want_debian(): result.append(self.installed_debian_source_path()) return result
e78ffdbf735f50b9f1f463d9c8eb95ba3dc48cde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14832/e78ffdbf735f50b9f1f463d9c8eb95ba3dc48cde/pb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9603, 67, 3813, 67, 4481, 12, 2890, 4672, 563, 273, 5420, 18, 18013, 67, 3813, 67, 4481, 12, 2890, 13, 309, 365, 18, 2233, 18, 17369, 67, 31888, 2779, 13332, 563, 18, 6923, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9603, 67, 3813, 67, 4481, 12, 2890, 4672, 563, 273, 5420, 18, 18013, 67, 3813, 67, 4481, 12, 2890, 13, 309, 365, 18, 2233, 18, 17369, 67, 31888, 2779, 13332, 563, 18, 6923, 12, 2890, ...
Return '' if no cooked data available otherwise. Don't block
Return b'' if no cooked data available otherwise. Don't block
def read_lazy(self): """Process and return data that's already in the queues (lazy).
326ef86b41f6cb43653ace4abaf10445c8f1501c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/326ef86b41f6cb43653ace4abaf10445c8f1501c/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 15998, 12, 2890, 4672, 3536, 2227, 471, 327, 501, 716, 1807, 1818, 316, 326, 11897, 261, 15998, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 15998, 12, 2890, 4672, 3536, 2227, 471, 327, 501, 716, 1807, 1818, 316, 326, 11897, 261, 15998, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if platform.system() == "FreeBSD": cron_line_entry = '@reboot if [ -e "' + SEATTLE_FILES_DIR + os.sep \ + get_starter_file_name() + '" ]; then "' + SEATTLE_FILES_DIR + os.sep \ + get_starter_file_name() + '" >> "' + SEATTLE_FILES_DIR + os.sep \ + service_vessel + '/cronlog.txt" 2>&1; else ' \ + 'tempcrontab=`mktemp -...
cron_line_entry = '@reboot if [ -e "' + SEATTLE_FILES_DIR + os.sep \ + get_starter_file_name() + '" ]; then "' + SEATTLE_FILES_DIR + os.sep \ + get_starter_file_name() + '" >> "' + SEATTLE_FILES_DIR + os.sep \ + service_vessel + '/cronlog.txt" 2>&1; else ' \ + 'modifiedCrontab=`mktemp -t tempcrontab.XXXX...
def add_seattle_to_crontab(): """ <Purpose> Adds an entry to the crontab to run seattle automatically at boot. <Arguments> None. <Exceptions> OSError if cron is not installed on this system. <Side Effects> Adds an entry to the crontab. <Returns> True if an entry for seattle was successfully added to the crontab, Fa...
40356acb04edaf1e6bc2f3b93efb1140a08e7d75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/40356acb04edaf1e6bc2f3b93efb1140a08e7d75/seattleinstaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 307, 4558, 298, 67, 869, 67, 3353, 30335, 13332, 3536, 411, 10262, 4150, 34, 15605, 392, 1241, 358, 326, 4422, 30335, 358, 1086, 695, 4558, 298, 6635, 622, 4835, 18, 225, 411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 307, 4558, 298, 67, 869, 67, 3353, 30335, 13332, 3536, 411, 10262, 4150, 34, 15605, 392, 1241, 358, 326, 4422, 30335, 358, 1086, 695, 4558, 298, 6635, 622, 4835, 18, 225, 411, ...
buf.append(i[:(w-y-len(buf)-1)/factor])
buf_len = len(buf) rest = w-y-buf_len buf.append(i[:rest/factor])
def _wrap(text, width, indent, firstindent): if not text: return '' text = text.strip() s = [] pos = 0 for i in rx.finditer(text): if i.start() > pos: s.extend(text[pos:i.start()].split()) s.append(i.group()) pos = i.end() if pos < len(text): s.extend(text[pos:].split()) ss = [s[0]] #get first element character is asi...
8bf42d52cd9dbef73540588b7c0c57ae17cd8821 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/686/8bf42d52cd9dbef73540588b7c0c57ae17cd8821/wraptext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 12, 955, 16, 1835, 16, 3504, 16, 1122, 9355, 4672, 309, 486, 977, 30, 327, 875, 977, 273, 977, 18, 6406, 1435, 272, 273, 5378, 949, 273, 374, 364, 277, 316, 8581, 18, 4720...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4113, 12, 955, 16, 1835, 16, 3504, 16, 1122, 9355, 4672, 309, 486, 977, 30, 327, 875, 977, 273, 977, 18, 6406, 1435, 272, 273, 5378, 949, 273, 374, 364, 277, 316, 8581, 18, 4720...
csv_reader = csv.DictReader(input_csv_file, delimiter=',')
def ImportMsOutlookCsv(self, input_csv_file, output_csv_file, dry_run=False): """Imports an MS Outlook contacts/profiles CSV file into the contact list.
21e1db21cdf94a770441b581bec9057b04405739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11/21e1db21cdf94a770441b581bec9057b04405739/shared_contacts_profiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6164, 6947, 1182, 7330, 16759, 12, 2890, 16, 810, 67, 6715, 67, 768, 16, 876, 67, 6715, 67, 768, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 13347, 392, 9238, 2976, 7330, 14841, 19, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6164, 6947, 1182, 7330, 16759, 12, 2890, 16, 810, 67, 6715, 67, 768, 16, 876, 67, 6715, 67, 768, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 13347, 392, 9238, 2976, 7330, 14841, 19, 183...
if in_subset:
if in_subset:
def _do_element(self, node, initial_other_attrs = []): '''_do_element(self, node, initial_other_attrs = []) -> None Process an element (and its children).'''
eac45ef0ae4c46468fce1a5d88da06c712dbb153 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/eac45ef0ae4c46468fce1a5d88da06c712dbb153/c14n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 4672, 9163, 67, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 13, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 4672, 9163, 67, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 13, 317, ...
output = capture_output(stats.print_stats, self.limit) output_callers = capture_output( stats.print_callers, self.limit) body += '<pre style="%s">%s\n%s</pre>' % ( self.style, cgi.escape(output), cgi.escape(output_callers))
stats.print_stats(self.limit) stats.print_callers(self.limit) output = output.getvalue() body += '<pre style="%s">%s</pre>' % ( self.style, cgi.escape(output))
def run_app(): body.extend(self.app(environ, replace_start_response))
496fca63a1e4e37e3b0b141ae2c99615873968a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/496fca63a1e4e37e3b0b141ae2c99615873968a0/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2910, 13332, 1417, 18, 14313, 12, 2890, 18, 2910, 12, 28684, 16, 1453, 67, 1937, 67, 2740, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2910, 13332, 1417, 18, 14313, 12, 2890, 18, 2910, 12, 28684, 16, 1453, 67, 1937, 67, 2740, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
test_svn()
test_svn(use_tee=1) test_cl(use_tee=1)
def test_svn(): s,o = exec_command(['svn','status']) assert s,(s,o)
f061375e2cd34559bb1d08fe7e7d82dc700a1792 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f061375e2cd34559bb1d08fe7e7d82dc700a1792/exec_command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 31505, 13332, 272, 16, 83, 273, 1196, 67, 3076, 12, 3292, 31505, 17023, 2327, 19486, 1815, 272, 16, 12, 87, 16, 83, 13, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 31505, 13332, 272, 16, 83, 273, 1196, 67, 3076, 12, 3292, 31505, 17023, 2327, 19486, 1815, 272, 16, 12, 87, 16, 83, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100...
print fss.delItem("ROOT")
def listItems(self, key): if key == "": key = "." path = self._keyToPath(key) return [self._stripPrefix(fn) for fn in glob.glob(path+"/*")]
a7a1944d24a0c3e0bb622941475acb2c7d37e769 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4231/a7a1944d24a0c3e0bb622941475acb2c7d37e769/FSStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 3126, 12, 2890, 16, 498, 4672, 309, 498, 422, 1408, 30, 498, 273, 4585, 589, 273, 365, 6315, 856, 774, 743, 12, 856, 13, 327, 306, 2890, 6315, 6406, 2244, 12, 4293, 13, 364, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 3126, 12, 2890, 16, 498, 4672, 309, 498, 422, 1408, 30, 498, 273, 4585, 589, 273, 365, 6315, 856, 774, 743, 12, 856, 13, 327, 306, 2890, 6315, 6406, 2244, 12, 4293, 13, 364, 229...
data = []
data = AllAccesses()
def read_data(filename): fd = open(filename) fds = {} try: data = [] just_seeked = None for line in fd: line = line.strip() if line[0] == 'o': fdnum, filename = line[1:].split(',', 1) fds[int(fdnum)] = filename continue if line[0] == 'r': fdnum, offset, len = map(int, line[1:].split(',', 2)) filename = fds.get(fdnum, ...
41c7d61ab9bb6e87bf2693e344905ff5346ece77 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/569/41c7d61ab9bb6e87bf2693e344905ff5346ece77/draw_positions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 892, 12, 3459, 4672, 5194, 273, 1696, 12, 3459, 13, 284, 2377, 273, 2618, 775, 30, 501, 273, 4826, 1862, 281, 1435, 2537, 67, 16508, 329, 273, 599, 364, 980, 316, 5194, 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, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 892, 12, 3459, 4672, 5194, 273, 1696, 12, 3459, 13, 284, 2377, 273, 2618, 775, 30, 501, 273, 4826, 1862, 281, 1435, 2537, 67, 16508, 329, 273, 599, 364, 980, 316, 5194, 30, ...
def manage_beforeDelete(self,object,container): self.uninstall()
def manage_beforeDelete(self,object,container): self.uninstall()
b2d9a612ab73c1170668345a070045e3e24e14b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/b2d9a612ab73c1170668345a070045e3e24e14b2/InstalledProduct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 5771, 2613, 12, 2890, 16, 1612, 16, 3782, 4672, 365, 18, 28872, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 5771, 2613, 12, 2890, 16, 1612, 16, 3782, 4672, 365, 18, 28872, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
AABFeGl0UHJvY2VzcwAAAFJlZ0Nsb3NlS2V5AAAAUHJvcGVydHlTaGVldEEAAFRleHRPdXRBAABm cmVlAABFbmRQYWludAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AABFeGl0UHJvY2VzcwAAAFJlZ0Nsb3NlS2V5AAAAUHJvcGVydHlTaGVldEEAAFRleHRPdXRBAABl eGl0AABFbmRQYWludAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
def get_exe_bytes (self): import base64 return base64.decodestring (EXEDATA)
bde4b3adef4075407ed2396d5d01b9da498c96ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bde4b3adef4075407ed2396d5d01b9da498c96ec/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 1026, 1105, 327, 1026, 1105, 18, 4924, 1145, 371, 261, 2294, 2056, 3706, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 1026, 1105, 327, 1026, 1105, 18, 4924, 1145, 371, 261, 2294, 2056, 3706, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
session.queue_declare(queue='q1')
def test_exchange_acl(self): """ Test various modes for exchange acl """ aclf = ACLFile() aclf.write('acl deny bob@QPID create exchange name=testEx durable=true passive=true\n') aclf.write('acl deny bob@QPID create exchange name=ex1 type=direct\n') aclf.write('acl deny bob@QPID access exchange name=myEx\n') aclf.write(...
45a65deb5c6f5ed4b18891b623102d9061fa1213 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/198/45a65deb5c6f5ed4b18891b623102d9061fa1213/acl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16641, 67, 10150, 12, 2890, 4672, 3536, 7766, 11191, 12382, 364, 7829, 7895, 3536, 7895, 74, 273, 10098, 812, 1435, 7895, 74, 18, 2626, 2668, 10150, 17096, 800, 70, 36, 53, 165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16641, 67, 10150, 12, 2890, 4672, 3536, 7766, 11191, 12382, 364, 7829, 7895, 3536, 7895, 74, 273, 10098, 812, 1435, 7895, 74, 18, 2626, 2668, 10150, 17096, 800, 70, 36, 53, 165...
Subwidget Class --------- ----- label Label message Message"""
Subwidget Class --------- ----- label Label message Message"""
def __getitem__(self,key):
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 856, 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, ...
[ 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, 31571, 972, 12, 2890, 16, 856, 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...
"""
"""
def restoreWindowSizes(self): """ Created: 15.08.2005, KP Description: Restores the window sizes that may be changed by setRenderWIndowSize """ self.visWin.SetDefaultSize(self.visWin.origSize) self.sidebarWin.SetDefaultSize(self.sidebarWin.origSize) self.sliderWin.SetDefaultSize(self.sliderWin.origSize) self.toolWin.Se...
228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 3829, 11923, 12, 2890, 4672, 3536, 12953, 30, 4711, 18, 6840, 18, 6976, 25, 16, 1475, 52, 6507, 30, 6320, 3485, 326, 2742, 8453, 716, 2026, 506, 3550, 635, 444, 3420, 59, 3866, 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, 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, 3829, 11923, 12, 2890, 4672, 3536, 12953, 30, 4711, 18, 6840, 18, 6976, 25, 16, 1475, 52, 6507, 30, 6320, 3485, 326, 2742, 8453, 716, 2026, 506, 3550, 635, 444, 3420, 59, 3866, 5...
time0 = index0 * dt - 500 time1 = min(DateTime().secs, time0 + max_ingest_time)
time0 = max(DateTime().secs - opt.max_lookback_time, index0 * dt - 500) time1 = DateTime().secs
def update_stats(colname, interval, msid=None): max_ingest_time = 3e9 dt = {'5min': 328, 'daily': 86400}[interval] ft['msid'] = colname ft['interval'] = interval stats_file = msid_files['stats'].abs logger.info('Updating stats file %s', stats_file) if not os.path.exists(msid_files['statsdir'].abs): os.makedirs(msid_f...
4a7b2c8afe195a29877f3cb52e4014c20bbb09f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12512/4a7b2c8afe195a29877f3cb52e4014c20bbb09f8/update_archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 5296, 12, 1293, 529, 16, 3673, 16, 4086, 350, 33, 7036, 4672, 943, 67, 310, 395, 67, 957, 273, 890, 73, 29, 3681, 273, 13666, 25, 1154, 4278, 3847, 28, 16, 296, 26790, 4278...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 5296, 12, 1293, 529, 16, 3673, 16, 4086, 350, 33, 7036, 4672, 943, 67, 310, 395, 67, 957, 273, 890, 73, 29, 3681, 273, 13666, 25, 1154, 4278, 3847, 28, 16, 296, 26790, 4278...
raise osv.except_osv("Warning", "Cannot set supplier in this form. Please create a new relation.")
raise osv.except_osv(_("Warning"), _("Cannot set supplier in this form. Please create a new relation."))
def write(self, cr, user, ids, vals, context={}): res = {} update = "update product_supplierinfo set sequence = %s where name = %d" relations = self.browse(cr, user, ids) for rel, idn in zip(relations, ids): # cannot change supplier here. Must create a new relation: original_supplier_id = rel.supplier_id.id if not or...
38b7e0364c8ad95f17846bc9d6aeb4f228d29a75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/38b7e0364c8ad95f17846bc9d6aeb4f228d29a75/library_editor_supplier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 5773, 16, 819, 12938, 4672, 400, 273, 2618, 1089, 273, 315, 2725, 3017, 67, 2859, 5742, 1376, 444, 3102, 273, 738, 87, 1625, 508, 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, 1045, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 5773, 16, 819, 12938, 4672, 400, 273, 2618, 1089, 273, 315, 2725, 3017, 67, 2859, 5742, 1376, 444, 3102, 273, 738, 87, 1625, 508, 273, ...
if sys.platform == 'win32' and sys.version_info[0] <= 2 and sys.version_info[1] <= 5: ref = '(1e+010+0j)' else: ref = '(1e+10+0j)' assert_equal(str(tp(1e10)), ref,
assert_equal(str(tp(1e10)), _REF[tp(1e10)],
def check_complex_type(tp): for x in [0, 1,-1, 1e20] : assert_equal(str(tp(x)), str(complex(x)), err_msg='Failed str formatting for type %s' % tp) assert_equal(str(tp(x*1j)), str(complex(x*1j)), err_msg='Failed str formatting for type %s' % tp) assert_equal(str(tp(x + x*1j)), str(complex(x + x*1j)), err_msg='Failed str...
733feabcdba9aae2dbc1d71ec17c9b7483e68a1f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/733feabcdba9aae2dbc1d71ec17c9b7483e68a1f/test_print.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 14259, 67, 723, 12, 6834, 4672, 364, 619, 316, 306, 20, 16, 404, 16, 17, 21, 16, 404, 73, 3462, 65, 294, 1815, 67, 9729, 12, 701, 12, 6834, 12, 92, 13, 3631, 609, 12, 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, 866, 67, 14259, 67, 723, 12, 6834, 4672, 364, 619, 316, 306, 20, 16, 404, 16, 17, 21, 16, 404, 73, 3462, 65, 294, 1815, 67, 9729, 12, 701, 12, 6834, 12, 92, 13, 3631, 609, 12, 14...
if self.editCommand and self.editCommand.struct:
if self.editCommand is not None and self.editCommand.hasValidStructure():
def _currentSelectionParams(self): """ NOT CALLED YET. This needs commandSequencer to treat various edit controllers as commands. Until then, the 'model_changed' method (and thus this method) will never be called. Returns a tuple containing current selection parameters. These parameters are then used to decide whethe...
3fbac43f0a3fcb545b2eb64da2fd9f24ee8a1079 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/3fbac43f0a3fcb545b2eb64da2fd9f24ee8a1079/BuildDna_PropertyManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2972, 6233, 1370, 12, 2890, 4672, 3536, 4269, 385, 27751, 1624, 1584, 18, 1220, 4260, 1296, 1761, 372, 23568, 358, 10116, 11191, 3874, 12403, 487, 4364, 18, 30608, 1508, 16, 326, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2972, 6233, 1370, 12, 2890, 4672, 3536, 4269, 385, 27751, 1624, 1584, 18, 1220, 4260, 1296, 1761, 372, 23568, 358, 10116, 11191, 3874, 12403, 487, 4364, 18, 30608, 1508, 16, 326, 296,...
gr2 = m.group(2)
rest = m.group(1) while rest.startswith('/PLACEHOLD'): rest = rest[10:]
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 1612, 67, 710, 12, 803, 4672, 8071, 273, 336, 67, 1612, 67, 723, 12, 803, 13, 309, 8071, 353, 599, 30, 327, 225, 284, 273, 1696, 12, 803, 16, 296, 86, 15, 70, 6134, 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, 2917, 67, 1612, 67, 710, 12, 803, 4672, 8071, 273, 336, 67, 1612, 67, 723, 12, 803, 13, 309, 8071, 353, 599, 30, 327, 225, 284, 273, 1696, 12, 803, 16, 296, 86, 15, 70, 6134, 501, ...
if myCoords.pixelValue == "Null":
if myCoords.pixelValue == "NULL":
def find_coords(params): if params.extraTargetCode == '': print """found no extra target code, will only search for target code of obsID \n""" params.extraTargetCode = 'ouk;ohuoenuiuc' #dummy extra target code print "searching..." # get subData in obsID in case i need it later params.sciencePhase, params.orbit, params...
c17ad1877a4f6767404a00a820efd2be2c0715b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3185/c17ad1877a4f6767404a00a820efd2be2c0715b3/find_isis_coordinates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 9076, 12, 2010, 4672, 309, 859, 18, 7763, 2326, 1085, 422, 875, 30, 1172, 3536, 7015, 1158, 2870, 1018, 981, 16, 903, 1338, 1623, 364, 1018, 981, 434, 7160, 734, 521, 82, 839...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 67, 9076, 12, 2010, 4672, 309, 859, 18, 7763, 2326, 1085, 422, 875, 30, 1172, 3536, 7015, 1158, 2870, 1018, 981, 16, 903, 1338, 1623, 364, 1018, 981, 434, 7160, 734, 521, 82, 839...
self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p))
self.check_sizeof(longdict, size(h + '3P3P') + (8+16)*size('P2P'))
def test_specialtypes(self): i = self.i l = self.l p = self.p h = self.headersize # dict self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p)) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p)) # list self.check_sizeof([], h + l + p + l) self.check_s...
300a10ceb1febf233333c4843a55c526b4019feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/300a10ceb1febf233333c4843a55c526b4019feb/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 2352, 12, 2890, 4672, 277, 273, 365, 18, 77, 328, 273, 365, 18, 80, 293, 273, 365, 18, 84, 366, 273, 365, 18, 2485, 554, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9371, 2352, 12, 2890, 4672, 277, 273, 365, 18, 77, 328, 273, 365, 18, 80, 293, 273, 365, 18, 84, 366, 273, 365, 18, 2485, 554, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23...
for i,label in enumerate(images.keys()): if indexes[label] != 1:
for i,label in enumerate(indexes.keys()): if len(indexes[label]) < 1:
def insertQscanTable(self,images=None,thumbs=None,indexes=None): """ Inserts a table constructured of thumbnails linked to larger Qscan plots. It accounts for the ifo present in the coinc via qCoinc. The method expects a lists of URLs """ if images.keys() != indexes.keys(): sys.write.stderr("Error: insertQscanTable i...
b70b4fcde32aaece5660335ff3ea1009958cd810 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/b70b4fcde32aaece5660335ff3ea1009958cd810/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 53, 9871, 1388, 12, 2890, 16, 7369, 33, 7036, 16, 451, 10099, 33, 7036, 16, 11265, 33, 7036, 4672, 3536, 8040, 87, 279, 1014, 4872, 2862, 434, 30526, 8459, 358, 10974, 2238, 9871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 53, 9871, 1388, 12, 2890, 16, 7369, 33, 7036, 16, 451, 10099, 33, 7036, 16, 11265, 33, 7036, 4672, 3536, 8040, 87, 279, 1014, 4872, 2862, 434, 30526, 8459, 358, 10974, 2238, 9871, ...
self._duration = None
def reset(self): self.stop() self.play_from_time = None self.started_playing = STOPPED self._duration = None
3869050e26533a7a494127258a8efea28f121986 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/3869050e26533a7a494127258a8efea28f121986/vlc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 5681, 1435, 365, 18, 1601, 67, 2080, 67, 957, 273, 599, 365, 18, 14561, 67, 1601, 310, 273, 17815, 12120, 365, 6315, 8760, 273, 599, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2715, 12, 2890, 4672, 365, 18, 5681, 1435, 365, 18, 1601, 67, 2080, 67, 957, 273, 599, 365, 18, 14561, 67, 1601, 310, 273, 17815, 12120, 365, 6315, 8760, 273, 599, 2, -100, -100, -100,...
yn.x = 50 yn.y = 0 yn.testValue = 1
yn.x = 15 yn.y = 25 yn.size = 70 yn.testValue = 0
def demo(self): D = shapes.Drawing(200, 100) yn = YesNo0() yn.x = 50 yn.y = 0 yn.testValue = 1 yn.draw() D.add(yn) labelFontSize = 10 D.add(shapes.String(yn.x+(yn.size/2),(yn.y-(1.2*labelFontSize)), self.__class__.__name__, fillColor=colors.black, textAnchor='middle', fontSize=labelFontSize)) return D
9e1ac96d5b69772a6c97fc0c1be0dbddf9cdc82c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9e1ac96d5b69772a6c97fc0c1be0dbddf9cdc82c/signsandsymbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 12, 2890, 4672, 463, 273, 14736, 18, 26885, 12, 6976, 16, 2130, 13, 677, 82, 273, 19925, 2279, 20, 1435, 677, 82, 18, 92, 273, 4711, 677, 82, 18, 93, 273, 6969, 677, 82, 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, 21477, 12, 2890, 4672, 463, 273, 14736, 18, 26885, 12, 6976, 16, 2130, 13, 677, 82, 273, 19925, 2279, 20, 1435, 677, 82, 18, 92, 273, 4711, 677, 82, 18, 93, 273, 6969, 677, 82, 18, ...
tech_xml = getTechXMLFromRaw(md) for pn in parameternames: try: print "finding parameter " + pn.name + " in metadata" dfile = Dataset_File.objects.get(pk=current_df_id) if pn.is_numeric: value = getParameterFromTechXML(tech_xml, pn.name) if value != None:
tech_xml = getTechXMLFromRaw(md) for pn in parameternames: try: print "finding parameter " + pn.name + " in metadata" dfile = Dataset_File.objects.get(pk=current_df_id) if pn.is_numeric: value = getParameterFromTechXML(tech_xml, pn.name) if value != None: dp = DatafileParameter(dataset_file=dfile, name=pn, \ string_va...
def process_simple(self, filename, created_by, expid=None):
31b2cedfb33b0065d7fdcc5c8ce916439347646c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11933/31b2cedfb33b0065d7fdcc5c8ce916439347646c/ProcessExperiment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9647, 12, 2890, 16, 1544, 16, 2522, 67, 1637, 16, 1329, 350, 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...
[ 1, 1, 1, 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, 1207, 67, 9647, 12, 2890, 16, 1544, 16, 2522, 67, 1637, 16, 1329, 350, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise ValueError, "n must be >= -2" if len(self.__qn) < n+3: self.pn(n)
raise ValueError, "n must be at least -2" if n > len(self._x): raise ValueError, "n must be at most %s"%len(self._x) try: return self.__qn[n+2] except (AttributeError, IndexError): pass self.pn(n)
def qn(self, n): """ Return the denominator of the n-th partial convergent, computed using the recurrence.
72d76d4dfd77ae16eb0814a69f210ece3e32711b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/72d76d4dfd77ae16eb0814a69f210ece3e32711b/contfrac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31054, 12, 2890, 16, 290, 4672, 3536, 2000, 326, 15030, 434, 326, 290, 17, 451, 4702, 14581, 75, 319, 16, 8470, 1450, 326, 25939, 18, 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, 31054, 12, 2890, 16, 290, 4672, 3536, 2000, 326, 15030, 434, 326, 290, 17, 451, 4702, 14581, 75, 319, 16, 8470, 1450, 326, 25939, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.pid = os.fork()
gc_was_enabled = gc.isenabled() gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)"""
8138692153ef07c83ede437a1f8894804271bf2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/8138692153ef07c83ede437a1f8894804271bf2a/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...