rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
PID=os.spawnlp(os.P_NOWAIT, "mythtranscode", "mythtranscode", '-p', '27', '-c', chanid, '-s', starttime, '-f', folder) write("mythtranscode started PID = %s" % PID)
fatalError("no video source passed to encodeNuvToMPEG2.\n")
def encodeNuvToMPEG2(chanid, starttime, destvideofile, folder, profile, usecutlist): """Encodes a nuv video source file to MPEG2 video and AC3 audio, using mythtranscode & ffmpeg""" # make sure mythtranscode hasn't left some stale fifos hanging around if ((doesFileExist(os.path.join(folder, "audout")) or doesFileExist...
702337292e5ed9f2eeb8b97802195323ffbbb9b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/702337292e5ed9f2eeb8b97802195323ffbbb9b8/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 50, 16303, 774, 49, 16533, 22, 12, 7472, 350, 16, 23437, 16, 1570, 9115, 768, 16, 3009, 16, 3042, 16, 999, 5150, 1098, 4672, 3536, 19771, 279, 9244, 90, 6191, 1084, 585, 358, 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, 2017, 50, 16303, 774, 49, 16533, 22, 12, 7472, 350, 16, 23437, 16, 1570, 9115, 768, 16, 3009, 16, 3042, 16, 999, 5150, 1098, 4672, 3536, 19771, 279, 9244, 90, 6191, 1084, 585, 358, 490...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0040numeric(self): ''' Test Numeric. ''' numeric1_id = self.numeric.create({ 'numeric': Decimal('1.1'), }, CONTEXT) self.assert_(numeric1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 7132, 5246, 12, 2890, 4672, 9163, 7766, 16980, 18, 9163, 6389, 21, 67, 350, 273, 365, 18, 5246, 18, 2640, 12590, 296, 5246, 4278, 11322, 2668, 21, 18, 21, 19899, 19879, 13862,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 713, 7132, 5246, 12, 2890, 4672, 9163, 7766, 16980, 18, 9163, 6389, 21, 67, 350, 273, 365, 18, 5246, 18, 2640, 12590, 296, 5246, 4278, 11322, 2668, 21, 18, 21, 19899, 19879, 13862,...
self.local_serial = local_serial
self.local_serial = None
def __init__(self, zonename, local_serial=1):
fdaf0ada5a0e3725357e8c4b56fdd971cd6cd3dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/fdaf0ada5a0e3725357e8c4b56fdd971cd6cd3dc/route53d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 998, 265, 1069, 16, 1191, 67, 8818, 33, 21, 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, ...
[ 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 998, 265, 1069, 16, 1191, 67, 8818, 33, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
P = Paragraph(self.context.get_citation_string(), style)
P = Paragraph(escape(self.context.get_citation_string()), style)
def _genCoverSheet(self): file_handle, tmpfile = tempfile.mkstemp(prefix='cover', suffix='.pdf') self.canvas = cover = canvas.Canvas(tmpfile, pagesize=A4) pwidth,pheight = A4
1af9274136e21e261900c21e84722fefd5be7c1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10561/1af9274136e21e261900c21e84722fefd5be7c1b/pdfgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 8084, 8229, 12, 2890, 4672, 585, 67, 4110, 16, 25613, 273, 13275, 18, 24816, 19781, 84, 12, 3239, 2218, 3165, 2187, 3758, 2218, 18, 7699, 6134, 365, 18, 15424, 273, 5590, 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, 389, 4507, 8084, 8229, 12, 2890, 4672, 585, 67, 4110, 16, 25613, 273, 13275, 18, 24816, 19781, 84, 12, 3239, 2218, 3165, 2187, 3758, 2218, 18, 7699, 6134, 365, 18, 15424, 273, 5590, 273,...
>>> for i in range(100): ... print(i**2, end=' ') 0 1...4...9 16 ... 36 49 64 ... 9801
>>> if 1: ... for i in range(100): ... print(i**2, end=' ') ... print('!') 0 1...4...9 16 ... 36 49 64 ... 9801 !
>>> def f(x):
73c8186e8494dd5b842e4fc2fb1f881fd01892a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/73c8186e8494dd5b842e4fc2fb1f881fd01892a0/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
render_tiles(queue, bbox, mapfile, tile_dir, 1, 12 , "Muenchen")
render_tiles(bbox, mapfile, tile_dir, 1, 12 , "Muenchen")
def render_tiles(bbox, mapfile, tile_dir, minZoom=1,maxZoom=18, name="unknown", num_threads=NUM_THREADS): print "render_tiles(",bbox, mapfile, tile_dir, minZoom,maxZoom, name,")" # Launch rendering threads queue = Queue(32) printLock = threading.Lock() renderers = {} for i in range(num_threads): renderer = RenderThrea...
192bd23b594beaf8c9eadf75b93efa7f4da3e08f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9131/192bd23b594beaf8c9eadf75b93efa7f4da3e08f/generate_tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 28366, 12, 20737, 16, 852, 768, 16, 4769, 67, 1214, 16, 1131, 11497, 33, 21, 16, 1896, 11497, 33, 2643, 16, 508, 1546, 8172, 3113, 818, 67, 12495, 33, 6069, 67, 21730, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 67, 28366, 12, 20737, 16, 852, 768, 16, 4769, 67, 1214, 16, 1131, 11497, 33, 21, 16, 1896, 11497, 33, 2643, 16, 508, 1546, 8172, 3113, 818, 67, 12495, 33, 6069, 67, 21730, 55, ...
source, revision = state
source, revision, kind = state
def _get(self, state): source, revision = state try: self._repo.lookup(revision) except error.RepoError: self._repo._subsource = source self._repo.ui.status(_('pulling subrepo %s\n') % self._path) srcurl = _abssource(self._repo) other = hg.repository(self._repo.ui, srcurl) self._repo.pull(other)
b136b34ddc610556c5671a3a8e3e915b4491e2de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/b136b34ddc610556c5671a3a8e3e915b4491e2de/subrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 12, 2890, 16, 919, 4672, 1084, 16, 6350, 16, 3846, 273, 919, 775, 30, 365, 6315, 7422, 18, 8664, 12, 13057, 13, 1335, 555, 18, 8791, 668, 30, 365, 6315, 7422, 6315, 1717, 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, 389, 588, 12, 2890, 16, 919, 4672, 1084, 16, 6350, 16, 3846, 273, 919, 775, 30, 365, 6315, 7422, 18, 8664, 12, 13057, 13, 1335, 555, 18, 8791, 668, 30, 365, 6315, 7422, 6315, 1717, 3...
urlretrieve(BOOSTURL, boost_archive_path, progress)
urlretrieve(BOOST_URL, boost_archive_path, progress)
def progress(blocks, blocksize, total): ESC = chr(27); sys.stdout.write(ESC + '[2K' + ESC+'[G') text = " %i of %i bytes (%.0f percent) complete" % (blocks*blocksize, total, float(blocks*blocksize*100)/total) sys.stdout.write(text + '\x08'*len(text)) sys.stdout.flush()
93bb5493f0342865d94b9e426e7a5821015b4199 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5491/93bb5493f0342865d94b9e426e7a5821015b4199/getbuildtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 12, 7996, 16, 18440, 16, 2078, 4672, 512, 2312, 273, 4513, 12, 5324, 1769, 2589, 18, 10283, 18, 2626, 12, 41, 2312, 397, 5271, 22, 47, 11, 397, 512, 2312, 6797, 63, 43, 6134, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 12, 7996, 16, 18440, 16, 2078, 4672, 512, 2312, 273, 4513, 12, 5324, 1769, 2589, 18, 10283, 18, 2626, 12, 41, 2312, 397, 5271, 22, 47, 11, 397, 512, 2312, 6797, 63, 43, 6134, 9...
def postProcessParents(self): """ Examines the list of parents in the model that were recorded during recursive processing and populates those where non-explicit definitions describe the hierarchy. """ for (k, v) in self.parents.items(): o = self.getObjectByName(k) if o is not None: logging.debug("%s parent is %s" % (o...
def postProcessParents(self): """ Examines the list of parents in the model that were recorded during recursive processing and populates those where non-explicit definitions describe the hierarchy. """ for (k, v) in self.parents.items(): o = self.getObjectByName(k) if o is not None: logging.debug("%s parent is %s" % (o...
5520b88d02db619d83caf17acadd69b8002cff7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12127/5520b88d02db619d83caf17acadd69b8002cff7b/fu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2227, 13733, 12, 2890, 4672, 3536, 1312, 301, 1465, 326, 666, 434, 6298, 316, 326, 938, 716, 4591, 16421, 4982, 5904, 4929, 471, 22065, 5348, 1625, 1661, 17, 16511, 6377, 6401, 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, 1603, 2227, 13733, 12, 2890, 4672, 3536, 1312, 301, 1465, 326, 666, 434, 6298, 316, 326, 938, 716, 4591, 16421, 4982, 5904, 4929, 471, 22065, 5348, 1625, 1661, 17, 16511, 6377, 6401, 326, ...
self.mail_surface = osd.getsurface(25,25,225,50) self.MAILBOX='/var/mail/aubin'
self.mail_surface = osd.getsurface(25, 25, 225, 50) self.MAILBOX = '/var/mail/aubin'
def __init__(self): self.idlecount = 0 self.clock_surface = osd.getsurface(525, 25, 225, 50) self.mail_surface = osd.getsurface(25,25,225,50) self.MAILBOX='/var/mail/aubin' if not os.path.isfile(self.MAILBOX): # XXX Try the mail environment; this might not work if the user runs this # as root, if he starts with 'sudo'...
a7f5819728908b475ae0679a84f8b51820dd2789 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/a7f5819728908b475ae0679a84f8b51820dd2789/idle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 20390, 1883, 273, 374, 365, 18, 18517, 67, 18266, 273, 1140, 72, 18, 588, 18266, 12, 25, 2947, 16, 6969, 16, 28298, 16, 6437, 13, 365, 18, 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, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 20390, 1883, 273, 374, 365, 18, 18517, 67, 18266, 273, 1140, 72, 18, 588, 18266, 12, 25, 2947, 16, 6969, 16, 28298, 16, 6437, 13, 365, 18, 4...
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context)
if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context)
def min(self, other, context=None): """Returns the smaller value.
20496fab6e0a86537543bcf9c27e44cbca2dc2df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/20496fab6e0a86537543bcf9c27e44cbca2dc2df/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 10648, 460, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 1131, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 10648, 460, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
(not allDay) and
(not allDay and not anyTime) and
def getItemsByDate(self, date): """ Convenience method to look for the items in the block's contents that appear on the given date. @@@ We may push this work down into ItemCollections and/or Queries.
14ae564fe27db0386ad05a62910d68f552ac609b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/14ae564fe27db0386ad05a62910d68f552ac609b/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15515, 858, 1626, 12, 2890, 16, 1509, 4672, 3536, 735, 9080, 707, 358, 2324, 364, 326, 1516, 316, 326, 1203, 1807, 2939, 716, 9788, 603, 326, 864, 1509, 18, 22175, 36, 1660, 2026, 1817, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15515, 858, 1626, 12, 2890, 16, 1509, 4672, 3536, 735, 9080, 707, 358, 2324, 364, 326, 1516, 316, 326, 1203, 1807, 2939, 716, 9788, 603, 326, 864, 1509, 18, 22175, 36, 1660, 2026, 1817, ...
def enter(self, entry): self.clicked(self.up)
def remove(self, *args): self.parent.remove(self) self.win.focus()
dc48d82f65e7144c5c80ba3d6e855bd294ed3607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/dc48d82f65e7144c5c80ba3d6e855bd294ed3607/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 380, 1968, 4672, 365, 18, 2938, 18, 4479, 12, 2890, 13, 365, 18, 8082, 18, 13923, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 12, 2890, 16, 380, 1968, 4672, 365, 18, 2938, 18, 4479, 12, 2890, 13, 365, 18, 8082, 18, 13923, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return self.__populate_artists_dict()
return self.__populate_artists_dict(offset)
def __populate_artists_dict(self): """Populates self.artist.dict with all artists and artists id's""" values = {'action' : 'artists', 'auth' : self.auth, } data = urllib.urlencode(values) try: response = urllib2.urlopen(self.xml_rpc, data) dom = xml.dom.minidom.parseString(response.read()) except: # The data pulled f...
c35baeeea87ef15dd2d097e85482d2dfa79ead9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11350/c35baeeea87ef15dd2d097e85482d2dfa79ead9f/AmpacheSession.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 19936, 67, 485, 1486, 67, 1576, 12, 2890, 4672, 3536, 29193, 365, 18, 25737, 18, 1576, 598, 777, 3688, 1486, 471, 3688, 1486, 612, 1807, 8395, 924, 273, 13666, 1128, 11, 294, 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, 1001, 19936, 67, 485, 1486, 67, 1576, 12, 2890, 4672, 3536, 29193, 365, 18, 25737, 18, 1576, 598, 777, 3688, 1486, 471, 3688, 1486, 612, 1807, 8395, 924, 273, 13666, 1128, 11, 294, 296, ...
self.addGroup("audio", meta) if "video[0]" in flv: meta = Metadata(self) self.extractVideo(flv["video[0]"], meta) self.addGroup("video", meta)
self.addGroup("audio", meta, "Audio stream")
def extract(self, flv): if "audio[0]" in flv: meta = Metadata(self) self.extractAudio(flv["audio[0]"], meta) self.addGroup("audio", meta) if "video[0]" in flv: meta = Metadata(self) self.extractVideo(flv["video[0]"], meta) self.addGroup("video", meta) # TODO: Computer duration # One technic: use last video/audio chunk ...
562742c4e4bda775c3a8305e8220c7b6add9c1fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9327/562742c4e4bda775c3a8305e8220c7b6add9c1fd/video.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 1183, 90, 4672, 309, 315, 11509, 63, 20, 4279, 316, 1183, 90, 30, 2191, 273, 6912, 12, 2890, 13, 365, 18, 8004, 12719, 12, 2242, 90, 9614, 11509, 63, 20, 4279, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 1183, 90, 4672, 309, 315, 11509, 63, 20, 4279, 316, 1183, 90, 30, 2191, 273, 6912, 12, 2890, 13, 365, 18, 8004, 12719, 12, 2242, 90, 9614, 11509, 63, 20, 4279, 64...
return GetData( lang, params ) def GetDisambigTemplates(lang):
return GetData(site, params ) def GetDisambigTemplates(site):
def GetLinks( lang, titles, extraParams = None ): """ Get list of templates for the given titles """ params = {'titles':ListToParam(titles), 'what': 'redirects|links'} params = CombineParams( params, extraParams ) return GetData( lang, params )
3524e338086618d1dabcda0ee7578a46a28e59e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/3524e338086618d1dabcda0ee7578a46a28e59e3/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7100, 12, 3303, 16, 14693, 16, 2870, 1370, 273, 599, 262, 30, 3536, 968, 666, 434, 5539, 364, 326, 864, 14693, 3536, 859, 273, 13666, 17643, 4278, 682, 774, 786, 12, 17643, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7100, 12, 3303, 16, 14693, 16, 2870, 1370, 273, 599, 262, 30, 3536, 968, 666, 434, 5539, 364, 326, 864, 14693, 3536, 859, 273, 13666, 17643, 4278, 682, 774, 786, 12, 17643, 3631, ...
"""Generate an XML-RPC params chunk from a Python data structure"""
"""Generate an XML-RPC params chunk from a Python data structure. Create a marshaller instance for each set of parameters, and use "dumps" method to convert your data (represented as a tuple) to a XML-RPC params chunk. to write a fault response, pass a Fault instance instead. You may prefer to use the "dumps" conven...
def __init__(self, target): self.handle_xml = target.xml self.unknown_starttag = target.start self.handle_data = target.data self.unknown_endtag = target.end xmllib.XMLParser.__init__(self)
7291512ee87ee27cb63889b7c70e1ce1da1c7922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7291512ee87ee27cb63889b7c70e1ce1da1c7922/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1018, 4672, 365, 18, 4110, 67, 2902, 273, 1018, 18, 2902, 365, 18, 8172, 67, 1937, 2692, 273, 1018, 18, 1937, 365, 18, 4110, 67, 892, 273, 1018, 18, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1018, 4672, 365, 18, 4110, 67, 2902, 273, 1018, 18, 2902, 365, 18, 8172, 67, 1937, 2692, 273, 1018, 18, 1937, 365, 18, 4110, 67, 892, 273, 1018, 18, 89...
us = [ 0.00000000e+00, 1.00000000e+00, 0.00000000e+00, -1.86750972e+00,
us = [ -1.86750972e+00,
def test_plot_control_solutions(): """ Testing plot_control_solutions(...)""" m = _load_example_standard_model('VDP_pack_VDP_Opt') m.reset() grid = [(0, 0.1), (0.1, 0.2), (0.2, 0.3), (0.3, 0.4), (0.4, 0.5), (0.5, 0.6), (0.6, 0.7), (0.7, 0.8), (0.8, 0.9), (0.9, 1.0),] grid = N.array(grid) * (m.getFinalTime() - m.getStar...
253c99a01267d2d748be0972eda53f2b1195d8ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/253c99a01267d2d748be0972eda53f2b1195d8ce/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4032, 67, 7098, 67, 18281, 6170, 13332, 3536, 7766, 310, 3207, 67, 7098, 67, 18281, 6170, 6173, 3660, 312, 273, 389, 945, 67, 8236, 67, 10005, 67, 2284, 2668, 58, 8640, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4032, 67, 7098, 67, 18281, 6170, 13332, 3536, 7766, 310, 3207, 67, 7098, 67, 18281, 6170, 6173, 3660, 312, 273, 389, 945, 67, 8236, 67, 10005, 67, 2284, 2668, 58, 8640, 67, 2...
def sysbox(size):
def sysbox(size, out={}):
def sysbox(size): canvas = {} # The system box of the computer. height = int(round(3*size)) width = int(round(17*size)) depth = int(round(2*size)) highlight = int(round(1*size)) bothighlight = int(round(0.49*size)) floppystart = int(round(19*size)) # measured in half-pixels floppyend = int(round(29*size)) # measured...
dcad6105fd2144eeecd41b4d5c9d1d07998cb50a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13182/dcad6105fd2144eeecd41b4d5c9d1d07998cb50a/mkicon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2589, 2147, 12, 1467, 16, 596, 12938, 4672, 5953, 273, 2618, 225, 468, 1021, 2619, 3919, 434, 326, 26579, 18, 225, 2072, 273, 509, 12, 2260, 12, 23, 14, 1467, 3719, 1835, 273, 509, 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, 2589, 2147, 12, 1467, 16, 596, 12938, 4672, 5953, 273, 2618, 225, 468, 1021, 2619, 3919, 434, 326, 26579, 18, 225, 2072, 273, 509, 12, 2260, 12, 23, 14, 1467, 3719, 1835, 273, 509, 12,...
parameters = yaml.load_document(config)
parameters = yaml.load(config)
def __init__(self, config): parameters = yaml.load_document(config) self.replaces = parameters['replaces'] self.substitutions = {} for domain, items in [('Token', parameters['tokens']), ('Event', parameters['events'])]: for code in items: name = ''.join([part.capitalize() for part in code.split('-')]+[domain]) cls = ge...
93bb4703205166d49ced19c621bf120298018ddc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/93bb4703205166d49ced19c621bf120298018ddc/yaml_hl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 4672, 1472, 273, 6097, 18, 945, 12, 1425, 13, 365, 18, 266, 11350, 273, 1472, 3292, 266, 11350, 3546, 365, 18, 1717, 30892, 273, 2618, 364, 2461, 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, 642, 4672, 1472, 273, 6097, 18, 945, 12, 1425, 13, 365, 18, 266, 11350, 273, 1472, 3292, 266, 11350, 3546, 365, 18, 1717, 30892, 273, 2618, 364, 2461, 16...
file.Write(" GenGLObjects<GL%sHelper>(n, %s);\n" %
file.Write(" if (!GenGLObjects<GL%sHelper>(n, %s)) {\n" " return parse_error::kParseInvalidArguments;\n" " }\n" %
def WriteHandlerImplementation (self, func, file): """Overrriden from TypeHandler.""" file.Write(" GenGLObjects<GL%sHelper>(n, %s);\n" % (func.name, func.GetLastOriginalArg().name))
8a837bb40249dfd9f0a2736abdab4f64592c99db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8a837bb40249dfd9f0a2736abdab4f64592c99db/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1503, 13621, 261, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 309, 16051, 7642, 11261, 4710, 32, 11261, 9, 87, 2276, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2598, 1503, 13621, 261, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 309, 16051, 7642, 11261, 4710, 32, 11261, 9, 87, 2276, 34...
""" Handles one command line during command list definition. """
"""Handles one command line during command list definition."""
def handle_command_def(self,line): """ Handles one command line during command list definition. """ cmd, arg, line = self.parseline(line) if cmd == 'silent': self.commands_silent[self.commands_bnum] = True return # continue to handle other cmd def in the cmd list elif cmd == 'end': self.cmdqueue = [] return 1 # end of ...
47e763b3eea3c337309159854bf323b14b1bacda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/47e763b3eea3c337309159854bf323b14b1bacda/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3076, 67, 536, 12, 2890, 16, 1369, 4672, 3536, 8788, 1245, 1296, 980, 4982, 1296, 666, 2379, 12123, 1797, 16, 1501, 16, 980, 273, 365, 18, 1065, 1786, 558, 12, 1369, 13, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3076, 67, 536, 12, 2890, 16, 1369, 4672, 3536, 8788, 1245, 1296, 980, 4982, 1296, 666, 2379, 12123, 1797, 16, 1501, 16, 980, 273, 365, 18, 1065, 1786, 558, 12, 1369, 13, 309,...
return bessel_K(nu,z,p)
return bessel_K(nu,z,algorithm=s,prec=p)
def __call__(self,z): nu = self.order() t = self.type() s = self.system() p = self.prec() if t == "I": return bessel_I(nu,z,s,p) if t == "J": return bessel_J(nu,z,s,p) if t == "K": return bessel_K(nu,z,p) if t == "Y": return bessel_J(nu,z)
aae4eb29e05d770a5cff5dd41ca537c970622119 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/aae4eb29e05d770a5cff5dd41ca537c970622119/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 94, 4672, 9244, 273, 365, 18, 1019, 1435, 268, 273, 365, 18, 723, 1435, 272, 273, 365, 18, 4299, 1435, 293, 273, 365, 18, 4036, 1435, 309, 268, 422, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 94, 4672, 9244, 273, 365, 18, 1019, 1435, 268, 273, 365, 18, 723, 1435, 272, 273, 365, 18, 4299, 1435, 293, 273, 365, 18, 4036, 1435, 309, 268, 422, 31...
template=None, options=None, output='html', meta_data=None):
template=None, options={}, output='html', meta_data=None):
def generate(self, contents, columns, sortable=False, selected=(None,None), css_mapping={}, translations=[], template=None, options=None, output='html', meta_data=None): self.sortable = sortable self.selected = selected self.columns = self.process_columns(columns) self.contents = contents self.options = options # TODO:...
5e522b1e3d8bacb5237f7a7d13f52989d619d60e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12920/5e522b1e3d8bacb5237f7a7d13f52989d619d60e/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 2939, 16, 2168, 16, 18092, 33, 8381, 16, 3170, 28657, 7036, 16, 7036, 3631, 3747, 67, 6770, 28793, 7863, 22850, 6487, 1542, 33, 7036, 16, 702, 28793, 876, 2218, 2620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 2939, 16, 2168, 16, 18092, 33, 8381, 16, 3170, 28657, 7036, 16, 7036, 3631, 3747, 67, 6770, 28793, 7863, 22850, 6487, 1542, 33, 7036, 16, 702, 28793, 876, 2218, 2620,...
if time_value2 < (float(stop_time_data)*60):
if value2 < (float(stop_data)*float(X_Scale_Factor)):
def find_start_stop_index(data_dict,col_name,start_time_data,stop_time_data,start_time_comp,stop_time_comp): #This function is used to find index numbers for start and stop points in plotting and min-max values. rowcounter1 = 0 for time_value1 in data_dict[col_name]: if time_value1 >= (float(start_time_data)*60): #prin...
c2bd4f556a2ce61eab4e48660ca05fb2aaf49751 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/c2bd4f556a2ce61eab4e48660ca05fb2aaf49751/Validation_Data_Processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1937, 67, 5681, 67, 1615, 12, 892, 67, 1576, 16, 1293, 67, 529, 16, 1937, 67, 957, 67, 892, 16, 5681, 67, 957, 67, 892, 16, 1937, 67, 957, 67, 2919, 16, 5681, 67, 957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1937, 67, 5681, 67, 1615, 12, 892, 67, 1576, 16, 1293, 67, 529, 16, 1937, 67, 957, 67, 892, 16, 5681, 67, 957, 67, 892, 16, 1937, 67, 957, 67, 2919, 16, 5681, 67, 957, ...
event = ext.core.Event()
def _checkBarbedWire(self): """ Check for the Target (ie. "Machine Gun Nest"), the squareness is just an approximation. """ # Grab both pipes determine the relative angle of the whole barbed # wire set barbedWire, relativePos = self._findClosest(self._barbedWires) visible, x, y, azimuth, elevation, angle = \ self._forw...
746f46b5f38e7fdd76550d8e0449af7c79571cc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10608/746f46b5f38e7fdd76550d8e0449af7c79571cc1/vision.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 5190, 2992, 15249, 12, 2890, 4672, 3536, 2073, 364, 326, 5916, 261, 1385, 18, 315, 6981, 611, 318, 423, 395, 6, 3631, 326, 8576, 4496, 353, 2537, 392, 24769, 18, 3536, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 5190, 2992, 15249, 12, 2890, 4672, 3536, 2073, 364, 326, 5916, 261, 1385, 18, 315, 6981, 611, 318, 423, 395, 6, 3631, 326, 8576, 4496, 353, 2537, 392, 24769, 18, 3536, 468, ...
print to("%s = %s" % (key, item[key]))
log(to("%s = %s" % (key, item[key])))
def submit_song_helper(self): if self.__enabled: print "Plugin re-enabled - accepting new songs." if self.submission_tid != -1: gobject.source_remove(self.submission_tid); self.submission_tid = -1 else: print "Plugin disabled - not accepting any new songs." if len(self.queue) > 0: self.submission_tid = gobject.timeout_...
6813e514c46661f83b0631485a195a56144fb77d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/6813e514c46661f83b0631485a195a56144fb77d/qlscrobbler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 67, 816, 75, 67, 4759, 12, 2890, 4672, 309, 365, 16186, 5745, 30, 1172, 315, 3773, 283, 17, 5745, 300, 25806, 394, 272, 7260, 1199, 309, 365, 18, 12684, 67, 18081, 480, 300, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4879, 67, 816, 75, 67, 4759, 12, 2890, 4672, 309, 365, 16186, 5745, 30, 1172, 315, 3773, 283, 17, 5745, 300, 25806, 394, 272, 7260, 1199, 309, 365, 18, 12684, 67, 18081, 480, 300, 21, ...
so2=SOM.SO() so2.id=2 so2.axis[0].val.extend(range(0,7,2)) so2.y.extend(0.934,0.986,0.957) so2.var_y.extend(0.011,0.010,0.015)
so2 = SOM.SO() so2.id = 2 so2.axis[0].val.extend(range(0, 7, 2)) so2.y.extend(0.934, 0.986, 0.957) so2.var_y.extend(0.011, 0.010, 0.015)
def rebin_efficiency(obj1,obj2,**kwargs): """ This function takes two SOMs or two SOs and rebins the data for obj1 onto the axis provided by obj2. The units on the x-axes needs to be Angstroms, since this is what the efficiencies will be present as. Parameters: ---------- -> obj1 is a SOM or SO that will be rebinned -...
b71ce59d64b8722e53e1e93a78aa55e2f761ac0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/b71ce59d64b8722e53e1e93a78aa55e2f761ac0d/hlr_rebin_efficiency.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 4757, 67, 73, 22217, 12, 2603, 21, 16, 2603, 22, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 2795, 348, 1872, 87, 578, 2795, 7460, 87, 471, 283, 11862, 326, 501, 364, 1081, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 4757, 67, 73, 22217, 12, 2603, 21, 16, 2603, 22, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 2795, 348, 1872, 87, 578, 2795, 7460, 87, 471, 283, 11862, 326, 501, 364, 1081, 21, ...
glyphname=name(0, 0, i, shape, liquescentia)
glyphname=name(i, 0, 0, shape, liquescentia)
def write_pes_debilis(i, shape, liquescentia='nothing'): glyphname=name(0, 0, i, shape, liquescentia) begin_glyph(glyphname) # with a deminutus it is much more beautiful than with a idebilis paste_and_move("deminutus", glyphname, width_high_pes-line_width-width_debilis, 0) write_line(i, glyphname, width_high_pes-line_w...
3476babc235eee7e0f876eaf20ec2cdd45f09a8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7096/3476babc235eee7e0f876eaf20ec2cdd45f09a8b/squarize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 23033, 67, 31888, 330, 291, 12, 77, 16, 2179, 16, 4501, 372, 742, 319, 1155, 2218, 30874, 11, 4672, 9440, 529, 33, 529, 12, 77, 16, 374, 16, 374, 16, 2179, 16, 4501, 372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 23033, 67, 31888, 330, 291, 12, 77, 16, 2179, 16, 4501, 372, 742, 319, 1155, 2218, 30874, 11, 4672, 9440, 529, 33, 529, 12, 77, 16, 374, 16, 374, 16, 2179, 16, 4501, 372, ...
def cb_uncopy(self, args):
def cb_uncopy(self, *args):
def cb_uncopy(self, args): if not self.iocheck(): return if not self.vout.backup(): self.err('Output buffer exhausted') return self.oshow() if not self.vin.backup(): self.err('Input buffer exhausted') return self.ishow()
a8993cfe16a04c612da72f72181ac63c6f858224 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a8993cfe16a04c612da72f72181ac63c6f858224/Vedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 551, 1101, 12, 2890, 16, 380, 1968, 4672, 309, 486, 365, 18, 1594, 1893, 13332, 327, 309, 486, 365, 18, 90, 659, 18, 9572, 13332, 365, 18, 370, 2668, 1447, 1613, 24948, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2875, 67, 551, 1101, 12, 2890, 16, 380, 1968, 4672, 309, 486, 365, 18, 1594, 1893, 13332, 327, 309, 486, 365, 18, 90, 659, 18, 9572, 13332, 365, 18, 370, 2668, 1447, 1613, 24948, 6134,...
def _Authenticate(self):
def _Authenticate(self, *args):
def _Authenticate(self): """Save the cookie jar after authentication.""" super(HttpRpcServer, self)._Authenticate() if self.save_cookies: StatusUpdate("Saving authentication cookies to %s" % self.cookie_file) self.cookie_jar.save()
a82366fbb157439bd570040616040220dac3f94b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/a82366fbb157439bd570040616040220dac3f94b/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17618, 12, 2890, 16, 380, 1968, 4672, 3536, 4755, 326, 3878, 7334, 1839, 5107, 12123, 2240, 12, 2940, 11647, 2081, 16, 365, 2934, 67, 17618, 1435, 309, 365, 18, 5688, 67, 16240, 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, 389, 17618, 12, 2890, 16, 380, 1968, 4672, 3536, 4755, 326, 3878, 7334, 1839, 5107, 12123, 2240, 12, 2940, 11647, 2081, 16, 365, 2934, 67, 17618, 1435, 309, 365, 18, 5688, 67, 16240, 30,...
result[pl.id] = pl.name + ' ('+ pl.currency_id.name + ')'
name = str(pl.name) + ' ('+ str(pl.currency_id.name) + ')' result.append((pl.id,name))
def name_get(self, cr, uid, ids, context={}): result= {} for pl in self.browse(cr, uid, ids, context): result[pl.id] = pl.name + ' ('+ pl.currency_id.name + ')' return result
e82cf76be73d03cb0b3e1b4f2131ebc30f39f107 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/e82cf76be73d03cb0b3e1b4f2131ebc30f39f107/pricelist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 563, 33, 2618, 364, 886, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 508, 273, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 563, 33, 2618, 364, 886, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 508, 273, 609, ...
def get_extensions(self, master_plugin):
def __get__(self, master_plugin, typ):
def get_extensions(self, master_plugin): extensions = self._get_cached_extensions() for extension in extensions: extension.set_master_plugin(master_plugin) return extensions
729ea1384882193b36b53dedbe1e2753644eda91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2571/729ea1384882193b36b53dedbe1e2753644eda91/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 972, 12, 2890, 16, 4171, 67, 4094, 16, 3815, 4672, 4418, 273, 365, 6315, 588, 67, 7097, 67, 9489, 1435, 364, 2710, 316, 4418, 30, 2710, 18, 542, 67, 7525, 67, 4094, 12, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 972, 12, 2890, 16, 4171, 67, 4094, 16, 3815, 4672, 4418, 273, 365, 6315, 588, 67, 7097, 67, 9489, 1435, 364, 2710, 316, 4418, 30, 2710, 18, 542, 67, 7525, 67, 4094, 12, 75...
os.chmod(p, 0666) fixown.append(p) self.debug("_prep_install: files needing ownership fixup: %s" % " ".join(fixown))
os.chmod(p, 0664)
def _prep_install(self): """prep chroot for installation""" fixown = [] # make chroot dir # make /dev, mount /proc # for item in [self.basedir, self.rootdir, self.statedir, self.resultdir, os.path.join(self.rootdir, 'var/lib/rpm'), os.path.join(self.rootdir, 'var/log'), os.path.join(self.rootdir, 'var/lock/rpm'), os.pa...
2000fb4c611290f6feffbb50116d090269bbe1a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/2000fb4c611290f6feffbb50116d090269bbe1a1/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19109, 67, 5425, 12, 2890, 4672, 3536, 19109, 462, 3085, 364, 13193, 8395, 2917, 995, 273, 5378, 468, 1221, 462, 3085, 1577, 468, 1221, 342, 5206, 16, 5344, 342, 9381, 468, 364, 761...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19109, 67, 5425, 12, 2890, 4672, 3536, 19109, 462, 3085, 364, 13193, 8395, 2917, 995, 273, 5378, 468, 1221, 462, 3085, 1577, 468, 1221, 342, 5206, 16, 5344, 342, 9381, 468, 364, 761...
impl_decl = func.GetInfo('impl_decl') if (func.can_auto_generate and (impl_func == None or impl_func == True) and (impl_decl == None or impl_decl == True)):
if func.can_auto_generate and (impl_func == None or impl_func == True):
def WriteGLES2ImplementationHeader(self, func, file): """Writes the GLES2 Implemention.""" impl_func = func.GetInfo('impl_func') impl_decl = func.GetInfo('impl_decl') if (func.can_auto_generate and (impl_func == None or impl_func == True) and (impl_decl == None or impl_decl == True)): file.Write("%s %s(%s) {\n" % (func...
51fd18b10aa37d57d2c4a42581e98423629780d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/51fd18b10aa37d57d2c4a42581e98423629780d0/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 12123, 9380, 67, 644, 273, 1326, 18, 967, 966, 2668, 11299, 67, 644, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 12123, 9380, 67, 644, 273, 1326, 18, 967, 966, 2668, 11299, 67, 644, 6...
if type(url) == Types.StringType:
if type(url) == types.StringType:
def checkonly(package, url, version, verbose=0): if verbose >= VERBOSE_EACHFILE: print '%s:'%package if type(url) == Types.StringType: ok, newversion, fp = _check1version(package, url, version, verbose) else: for u in url: ok, newversion, fp = _check1version(package, u, version, verbose) if ok >= 0 and verbose < VERBOS...
866a23a2d41cd92f3c97ac27a619fffec833d8a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/866a23a2d41cd92f3c97ac27a619fffec833d8a8/pyversioncheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 3700, 12, 5610, 16, 880, 16, 1177, 16, 3988, 33, 20, 4672, 309, 3988, 1545, 27857, 67, 41, 18133, 3776, 30, 1172, 1995, 87, 2497, 9, 5610, 309, 618, 12, 718, 13, 422, 1953, 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, 866, 3700, 12, 5610, 16, 880, 16, 1177, 16, 3988, 33, 20, 4672, 309, 3988, 1545, 27857, 67, 41, 18133, 3776, 30, 1172, 1995, 87, 2497, 9, 5610, 309, 618, 12, 718, 13, 422, 1953, 18, ...
In this case only the format code is 'executed'. Naturaly, in it, it would have references to other templates in the document.
In this case only the format code is 'executed'. Naturally, in it, it would have references to other templates in the document.
def load_template(self, template_name): ''' Load a BFX template file. A template file can have one of two forms: - it is a file with a single template. Root tag is 'template'. In an API call the single template element is 'executed'. - it is a 'style' file which contains exactly one format and zero or more templates. R...
932a351453bac35d2c0cc1754d586e0f9f7026dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2763/932a351453bac35d2c0cc1754d586e0f9f7026dd/bibformat_bfx_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 3202, 12, 2890, 16, 1542, 67, 529, 4672, 9163, 4444, 279, 605, 25172, 1542, 585, 18, 432, 1542, 585, 848, 1240, 1245, 434, 2795, 10138, 30, 300, 518, 353, 279, 585, 598, 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, 1262, 67, 3202, 12, 2890, 16, 1542, 67, 529, 4672, 9163, 4444, 279, 605, 25172, 1542, 585, 18, 432, 1542, 585, 848, 1240, 1245, 434, 2795, 10138, 30, 300, 518, 353, 279, 585, 598, 279,...
expCmdStr = "%sExpose time=%s" % (self.instActor, expTime)
expCmdStr = "%sExpose object time=%s" % (self.instActor, expTime)
def waitExpose(self, expTime, window=None): """Take an exposure using 1x1 binning. Returns the file path of the exposure. Inputs: - expTime: exposure time (sec) - window: (xmin, ymin, xmax, ymax) of subframe corners (inclusive, pix). warning: ignored by default because the commands to take a sub-framed exposure are in...
933838f7f9b1e30a4fe1ad10bf735501604bcd57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/933838f7f9b1e30a4fe1ad10bf735501604bcd57/BaseFocusScript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 424, 4150, 12, 2890, 16, 1329, 950, 16, 2742, 33, 7036, 4672, 3536, 13391, 392, 14620, 1450, 404, 92, 21, 4158, 2093, 18, 2860, 326, 585, 589, 434, 326, 14620, 18, 225, 24472, 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, 2529, 424, 4150, 12, 2890, 16, 1329, 950, 16, 2742, 33, 7036, 4672, 3536, 13391, 392, 14620, 1450, 404, 92, 21, 4158, 2093, 18, 2860, 326, 585, 589, 434, 326, 14620, 18, 225, 24472, 30...
else: Output(" self.prefix, self.typename)
def generate(self): # XXX This should use long strings and %(varname)s substitution!
2b13aaa67e2609ef317deaf64ead8b776ce370ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2b13aaa67e2609ef317deaf64ead8b776ce370ee/bgenObjectDefinition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 468, 11329, 1220, 1410, 999, 1525, 2064, 471, 8975, 1401, 529, 13, 87, 12785, 5, 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, 2103, 12, 2890, 4672, 468, 11329, 1220, 1410, 999, 1525, 2064, 471, 8975, 1401, 529, 13, 87, 12785, 5, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def raiseattrerror(space, w_obj, name): w_type = space.type(w_obj) msg = "'%s' object has no attribute '%s'" %(w_type.name, name)
def raiseattrerror(space, w_obj, name, w_descr=None): w_type = space.type(w_obj) if w_descr is None: msg = "'%s' object has no attribute '%s'" %(w_type.name, name) else: msg = "'%s' object attribute '%s' is read-only" %(w_type.name, name)
def raiseattrerror(space, w_obj, name): w_type = space.type(w_obj) msg = "'%s' object has no attribute '%s'" %(w_type.name, name) raise OperationError(space.w_AttributeError, space.wrap(msg))
8db54195e05afc01db650e7379dbb4662e66d337 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/8db54195e05afc01db650e7379dbb4662e66d337/descroperation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1002, 1747, 1636, 12, 2981, 16, 341, 67, 2603, 16, 508, 16, 341, 67, 28313, 33, 7036, 4672, 341, 67, 723, 273, 3476, 18, 723, 12, 91, 67, 2603, 13, 309, 341, 67, 28313, 353, 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, 1002, 1747, 1636, 12, 2981, 16, 341, 67, 2603, 16, 508, 16, 341, 67, 28313, 33, 7036, 4672, 341, 67, 723, 273, 3476, 18, 723, 12, 91, 67, 2603, 13, 309, 341, 67, 28313, 353, 599, 3...
return self.__x_pix_offset__[offset]
try: return self.__x_pix_offset__[offset]
def get_x_pix_offset(self, id=None, **kwargs): """ This method returns the x pixel offset for a detector pixel in the instrument.
a347353b7252436da7ec577033b8713e5492e31b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/762/a347353b7252436da7ec577033b8713e5492e31b/instrument.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 67, 14861, 67, 3348, 12, 2890, 16, 612, 33, 7036, 16, 2826, 4333, 4672, 3536, 1220, 707, 1135, 326, 619, 4957, 1384, 364, 279, 13826, 4957, 316, 326, 10353, 18, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 92, 67, 14861, 67, 3348, 12, 2890, 16, 612, 33, 7036, 16, 2826, 4333, 4672, 3536, 1220, 707, 1135, 326, 619, 4957, 1384, 364, 279, 13826, 4957, 316, 326, 10353, 18, 2, -100, ...
for tmpFileName, tmpFile in md5Cache.iteritems(): if tmpFile.isExpired(): del md5Cache[tmpFileName] tmpFileInfo = tmpFile.toTuple() tmpNode = cacheXml.createElement("file") tmpNode.setAttribute("name",tmpFileName) tmpNode.setAttribute("md5",tmpFileInfo[2]) tmpNode.setAttribute("mtime",str(tmpFileInfo[4])) cacheXmlRoo...
try: for tmpFileName, tmpFile in md5Cache.iteritems(): if tmpFile.isExpired(): del md5Cache[tmpFileName] tmpFileInfo = tmpFile.toTuple() tmpNode = cacheXml.createElement("file") tmpNode.setAttribute("name",tmpFileName) tmpNode.setAttribute("md5",tmpFileInfo[2]) tmpNode.setAttribute("mtime",str(tmpFileInfo[4])) cacheX...
def run(self): log.log(2,"info",_("New XiboDownloadManager instance started.")) while (self.running): self.interval = 300
1ea8d2c021a8af4676709829293135ae08e52ee3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/1ea8d2c021a8af4676709829293135ae08e52ee3/XiboClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 613, 18, 1330, 12, 22, 10837, 1376, 3113, 67, 2932, 1908, 1139, 495, 83, 7109, 1318, 791, 5746, 1199, 3719, 1323, 261, 2890, 18, 8704, 4672, 365, 18, 6624, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 613, 18, 1330, 12, 22, 10837, 1376, 3113, 67, 2932, 1908, 1139, 495, 83, 7109, 1318, 791, 5746, 1199, 3719, 1323, 261, 2890, 18, 8704, 4672, 365, 18, 6624, 273, 1...
mailbox = yield inner.thread(imaplib.IMAP4_SSL, self.mail_server, self.mail_port)
mailbox = imaplib.IMAP4_SSL(self.mail_server, self.mail_port)
def feed(inner, self): self.log.info("Connecting to IMAP server %r port %d", self.mail_server, self.mail_port) mailbox = yield inner.thread(imaplib.IMAP4_SSL, self.mail_server, self.mail_port)
03f9267fe39b8fc29637e9fabadc16ea290e1fb0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/03f9267fe39b8fc29637e9fabadc16ea290e1fb0/imapbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4746, 12, 7872, 16, 365, 4672, 365, 18, 1330, 18, 1376, 2932, 30049, 358, 6246, 2203, 1438, 738, 86, 1756, 738, 72, 3113, 365, 18, 4408, 67, 3567, 16, 365, 18, 4408, 67, 655, 13, 141...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4746, 12, 7872, 16, 365, 4672, 365, 18, 1330, 18, 1376, 2932, 30049, 358, 6246, 2203, 1438, 738, 86, 1756, 738, 72, 3113, 365, 18, 4408, 67, 3567, 16, 365, 18, 4408, 67, 655, 13, 141...
def parse_ctype(self, ctype):
def parse_ctype(self, ctype, is_member=False):
def parse_ctype(self, ctype): # First look up the ctype including any pointers; # a few type names like 'char*' have their own aliases # and we need pointer information for those. firstpass = type_name_from_ctype(ctype)
2faca8352a05cbf144b3659bd98b6fc5e62d66d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2770/2faca8352a05cbf144b3659bd98b6fc5e62d66d4/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 12387, 12, 2890, 16, 11920, 16, 353, 67, 5990, 33, 8381, 4672, 468, 5783, 2324, 731, 326, 11920, 6508, 1281, 13857, 31, 468, 279, 11315, 618, 1257, 3007, 296, 3001, 4035, 1240,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 12387, 12, 2890, 16, 11920, 16, 353, 67, 5990, 33, 8381, 4672, 468, 5783, 2324, 731, 326, 11920, 6508, 1281, 13857, 31, 468, 279, 11315, 618, 1257, 3007, 296, 3001, 4035, 1240,...
logging.info('escape not found for ' + str(s)) pass elif CONQUE_SEQ_REGEX_CSI.match(s): logging.debug('csi match') if s[-1] in CONQUE_ESCAPE: csi = self.parse_csi(s[2:]) logging.debug(str(csi)) getattr(self, 'csi_' + CONQUE_ESCAPE[s[-1]])(csi) else: logging.info('escape not found for ' + str(s)) pass elif CONQUE_...
self.plain_text(s) if set_cursor: self.screen.set_cursor(self.l, self.c) self.cursor_set = False vim.command('redraw') logging.info('::: read took ' + str((time.time() - debug_profile_start) * 1000) + ' ms') except: logging.info('read error') logging.info(traceback.format_exc()) pass
def read(self, timeout=1, set_cursor=True, return_output=False, update_buffer=True): # {{{ # read from subprocess output = self.proc.read(timeout) # and strip null chars output = output.replace(chr(0), '')
dc15d148f24d54dc0818a6b9fc3e5f2b77c26ff9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4294/dc15d148f24d54dc0818a6b9fc3e5f2b77c26ff9/conque.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 2021, 33, 21, 16, 444, 67, 9216, 33, 5510, 16, 327, 67, 2844, 33, 8381, 16, 1089, 67, 4106, 33, 5510, 4672, 468, 10179, 95, 468, 855, 628, 6652, 876, 273, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 2021, 33, 21, 16, 444, 67, 9216, 33, 5510, 16, 327, 67, 2844, 33, 8381, 16, 1089, 67, 4106, 33, 5510, 4672, 468, 10179, 95, 468, 855, 628, 6652, 876, 273, 365, 1...
self.homeDirectory path to a folder in the user's home directory
def __setstate__(self, dict): """ Data often lives a long time, even longer than code and we may need to update it over time as it's structure changes. A convienent way to do this is to check for an old version in __setstate__, which is called each time the object is loaded, and update the data as necessary. Until the ...
2addadb1e4d5d6102e4fd9ca78cf765260453a3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2addadb1e4d5d6102e4fd9ca78cf765260453a3a/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 2065, 4672, 3536, 1910, 16337, 328, 3606, 279, 1525, 813, 16, 5456, 7144, 2353, 981, 471, 732, 2026, 1608, 358, 1089, 518, 1879, 813, 487, 518, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 2065, 4672, 3536, 1910, 16337, 328, 3606, 279, 1525, 813, 16, 5456, 7144, 2353, 981, 471, 732, 2026, 1608, 358, 1089, 518, 1879, 813, 487, 518, 1807, ...
gLogger.info("[%s] MigratingToMigrated: Found %d migrated files." % (se,len(migrated)))
gLogger.info( "[%s] MigratingToMigrated: Found %d migrated files." % ( se, len( migrated ) ) )
def MigratingToMigrated(self,se): """ Obtain the active files from the migration monitoring db and check their status """ # First get the migrating files from the database gLogger.info("[%s] MigratingToMigrated: Attempting to obtain 'Migrating' files." % se) res = self.__getFiles(se,'Migrating') if not res['OK']: gLogg...
9a22336d92a455ef5a2bab49d70e2e3a11f3d910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a22336d92a455ef5a2bab49d70e2e3a11f3d910/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 2757, 1776, 774, 25483, 690, 12, 2890, 16, 307, 4672, 3536, 24850, 326, 2695, 1390, 628, 326, 6333, 16309, 1319, 471, 866, 3675, 1267, 3536, 468, 5783, 336, 326, 4196, 1776, 1390, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 490, 2757, 1776, 774, 25483, 690, 12, 2890, 16, 307, 4672, 3536, 24850, 326, 2695, 1390, 628, 326, 6333, 16309, 1319, 471, 866, 3675, 1267, 3536, 468, 5783, 336, 326, 4196, 1776, 1390, 6...
recipe.sourcemap(self.sourcename)
recipe.sourceMap(self.sourcename)
def __init__(self, recipe, *args, **keywords):
6c360e22086bf1343c4927c1b34e4205a3e0edc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/6c360e22086bf1343c4927c1b34e4205a3e0edc5/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16100, 16, 380, 1968, 16, 2826, 11771, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16100, 16, 380, 1968, 16, 2826, 11771, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
_evaulate_subgroup = staticmethod(_evaluate_subgroup)
def _evaluate_subgroup(subgroup): import image_utilities if len(subgroup) > 1: union = image_utilities.union_images(subgroup) classification = self.guess_glyph_automatic(union) if (classification[0][1].startswith("split") or classification[0][1].startswith("skip")): return 0 else: return classification[0][0] return sub...
2578bac57e73f124ab90fbf6ec1353a4d57f64fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/2578bac57e73f124ab90fbf6ec1353a4d57f64fe/classify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 21024, 67, 1717, 1655, 12, 1717, 1655, 4672, 1930, 1316, 67, 1367, 1961, 309, 562, 12, 1717, 1655, 13, 405, 404, 30, 7812, 273, 1316, 67, 1367, 1961, 18, 18910, 67, 7369, 12, 1717...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21024, 67, 1717, 1655, 12, 1717, 1655, 4672, 1930, 1316, 67, 1367, 1961, 309, 562, 12, 1717, 1655, 13, 405, 404, 30, 7812, 273, 1316, 67, 1367, 1961, 18, 18910, 67, 7369, 12, 1717...
Given a list/matrix of elements in `GF(2^n)`, return a matching list/matrix of elements in `GF(2)`. INPUT:
The operation `\phi` from [MR02]_ Given a list/matrix of elements in `\mathbb{F}_{2^e}`, return a matching list/matrix of elements in `\mathbb{F}_2`. INPUT:
def phi(self, l, diffusion_matrix=False): r""" Given a list/matrix of elements in `GF(2^n)`, return a matching list/matrix of elements in `GF(2)`. INPUT: - ``l`` - element to perform phi on. - ``diffusion_matrix`` - if True the given matrix `l` is transformed to a matrix which performs the same operation over GF(...
d2531bfd55e8dc010cd9c1e87cc62d2c514562d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d2531bfd55e8dc010cd9c1e87cc62d2c514562d4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7706, 12, 2890, 16, 328, 16, 3122, 7063, 67, 5667, 33, 8381, 4672, 436, 8395, 1021, 1674, 1375, 64, 9973, 68, 628, 306, 23464, 3103, 65, 67, 225, 16803, 279, 666, 19, 5667, 434, 2186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7706, 12, 2890, 16, 328, 16, 3122, 7063, 67, 5667, 33, 8381, 4672, 436, 8395, 1021, 1674, 1375, 64, 9973, 68, 628, 306, 23464, 3103, 65, 67, 225, 16803, 279, 666, 19, 5667, 434, 2186, ...
def getHttp(self): """ Returns the _actual_ http dict. Holds HTTP/CGI data derived
getConfiguration = get_configuration def get_http(self): """Returns the *actual* http dict. Holds HTTP/CGI data derived
def getConfiguration(self): """ Returns the _actual_ configuration dict. The configuration dict holds values that the user sets in their config.py file.
2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10316, 12, 2890, 4672, 3536, 2860, 326, 389, 18672, 67, 1664, 2065, 18, 225, 1021, 1664, 2065, 14798, 924, 716, 326, 729, 1678, 316, 3675, 642, 18, 2074, 585, 18, 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, 0, 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, 10316, 12, 2890, 4672, 3536, 2860, 326, 389, 18672, 67, 1664, 2065, 18, 225, 1021, 1664, 2065, 14798, 924, 716, 326, 729, 1678, 316, 3675, 642, 18, 2074, 585, 18, 2, -100, -100, -100, ...
break
pass
def draw_directory(self): """Draw the contents of a directory""" from ranger.fsobject.directory import Directory import stat
f376e337c0fd4a0a855bc868de3cb94865ca77c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5729/f376e337c0fd4a0a855bc868de3cb94865ca77c4/filelist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 5149, 12, 2890, 4672, 3536, 6493, 326, 2939, 434, 279, 1867, 8395, 628, 436, 11455, 18, 2556, 1612, 18, 5149, 1930, 8930, 1930, 610, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 5149, 12, 2890, 4672, 3536, 6493, 326, 2939, 434, 279, 1867, 8395, 628, 436, 11455, 18, 2556, 1612, 18, 5149, 1930, 8930, 1930, 610, 2, -100, -100, -100, -100, -100, -100, -100...
listfuncs = true
listfuncs = True
def main(argv=None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:l", ["help", "version", "trace", "count", "report", "no-report", "file=", "missing", "ignore-module=", "ignore-dir=", "coverdir=", "listfuncs",]) except getopt.error, msg: sys.stderr.write("...
5a5b6abb6d4c811babb61db3411abaf2310d00d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5a5b6abb6d4c811babb61db3411abaf2310d00d1/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
return tuple (map (string.atoi ,m.groups ()))
return tuple (map (string.atoi, m.groups ()))
def read_gf_dims (name, c): str = popen ('gf2pbm -n %d -s %s' % (c, name)).read () m = re.search ('size: ([0-9]+)+x([0-9]+), offset: \(([0-9-]+),([0-9-]+)\)', str) return tuple (map (string.atoi ,m.groups ()))
d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 75, 74, 67, 8550, 261, 529, 16, 276, 4672, 609, 273, 30925, 7707, 75, 74, 22, 5733, 81, 300, 82, 738, 72, 300, 87, 738, 87, 11, 738, 261, 71, 16, 508, 13, 2934, 896, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 75, 74, 67, 8550, 261, 529, 16, 276, 4672, 609, 273, 30925, 7707, 75, 74, 22, 5733, 81, 300, 82, 738, 72, 300, 87, 738, 87, 11, 738, 261, 71, 16, 508, 13, 2934, 896, 183...
mount_sudo(self, child)
mount_sudo(self, child, sudo_passwd)
def mount_sudo(self, child): """packed into a function because we maybe need to call it again and again...""" res = child.expect([response.ENTER_SUDO_PASSWORD, response.SUDO_WRONG_PASSWORD, response.VOLUME_MOUNTED, pexpect.EOF, response.ALREADY_MAPPED], timeout=200) if res == 0: child.sendline(sudo_passwd) return self....
60b3b9a27c4ff72b2dcd101c13a745afaffb647f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3000/60b3b9a27c4ff72b2dcd101c13a745afaffb647f/truecrypt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5344, 67, 20566, 12, 2890, 16, 1151, 4672, 3536, 2920, 329, 1368, 279, 445, 2724, 732, 6944, 1608, 358, 745, 518, 3382, 471, 3382, 7070, 3660, 400, 273, 1151, 18, 12339, 3816, 2740, 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, 5344, 67, 20566, 12, 2890, 16, 1151, 4672, 3536, 2920, 329, 1368, 279, 445, 2724, 732, 6944, 1608, 358, 745, 518, 3382, 471, 3382, 7070, 3660, 400, 273, 1151, 18, 12339, 3816, 2740, 18, ...
GROUPLIST = NODELIST + ',' + arg
GROUPLIST = GROUPLIST + ',' + arg
def get_options(): global NODELIST, GROUPLIST, EXCLUDELIST, EXCLUDEGROUPS, REMOTE_CMD, OPT_DEBUG if len(sys.argv) <= 1: usage() sys.exit(1) try: opts, args = getopt.getopt(sys.argv[1:], "hc:dn:g:x:X:", ['help', 'conf=', 'debug', 'node', 'group', 'exclude', 'exclude-group']) except getopt.error, (reason): print '%s: %...
f0b0fc4bcec15f3ed34997f4364ad48f711265b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13401/f0b0fc4bcec15f3ed34997f4364ad48f711265b1/synctool_ssh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2116, 13332, 2552, 11922, 7085, 16, 13839, 7085, 16, 5675, 14829, 7085, 16, 5675, 14829, 28977, 16, 29530, 67, 19473, 16, 16456, 67, 9394, 225, 309, 562, 12, 9499, 18, 19485, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2116, 13332, 2552, 11922, 7085, 16, 13839, 7085, 16, 5675, 14829, 7085, 16, 5675, 14829, 28977, 16, 29530, 67, 19473, 16, 16456, 67, 9394, 225, 309, 562, 12, 9499, 18, 19485, 13...
self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseFrom']), sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, width=40, selectmode=tk.EXTENDED, \ exportselection=0, height=len( opt['chooseFrom'])) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%col...
self.labelWidgets[g].grid(column=colIndex*2, row=rowIndex%numRows+1, padx=5, rowspan = height, sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, selectmode=tk.EXTENDED, exportselection=0, height = height) self.entryWidgets[g].grid(column=colIndex*2+1, row=rowIndex%numRows+1, padx=5, rowspan = height) rowIndex +=...
def createDialog(self): self.app = tk.Tk() self.app.protocol('WM_DELETE_WINDOW', self.denyWindowManagerClose) self.app.title(self.title) self.app.iconname('Dialog') self.app.geometry("+300+200") # # the main window # self.entryWidgets = [None]*len(self.options) self.labelWidgets = [None]*len(self.options) self.app.bind...
b8dc92ef8ad792606f004235722b9585e2bbe014 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/b8dc92ef8ad792606f004235722b9585e2bbe014/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 13030, 18, 56, 79, 1435, 365, 18, 2910, 18, 8373, 2668, 25173, 67, 6460, 67, 23407, 2187, 365, 18, 13002, 93, 3829, 1318, 4605, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 13030, 18, 56, 79, 1435, 365, 18, 2910, 18, 8373, 2668, 25173, 67, 6460, 67, 23407, 2187, 365, 18, 13002, 93, 3829, 1318, 4605, 13, 365, ...
writer = csv.writer(f)
writer = csv.writer(f, dialect)
def write_log_entry(self, lineno, issue, text): f = open(self.log_file_name, 'ab') writer = csv.writer(f) writer.writerow([self.docname.encode('utf-8'), lineno, issue.encode('utf-8'), text.strip().encode('utf-8')]) del writer f.close()
265f533c108c6859634fe50d980e0d80c6b0ca63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/265f533c108c6859634fe50d980e0d80c6b0ca63/suspicious.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1330, 67, 4099, 12, 2890, 16, 7586, 16, 5672, 16, 977, 4672, 284, 273, 1696, 12, 2890, 18, 1330, 67, 768, 67, 529, 16, 296, 378, 6134, 2633, 273, 6101, 18, 6299, 12, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1330, 67, 4099, 12, 2890, 16, 7586, 16, 5672, 16, 977, 4672, 284, 273, 1696, 12, 2890, 18, 1330, 67, 768, 67, 529, 16, 296, 378, 6134, 2633, 273, 6101, 18, 6299, 12, 74, ...
client.check_events() client.activate() client.deactivate()
monitor_client.check_events() monitor_client.activate() monitor_client.deactivate()
def main() : metro = 'jack_metro -b 60' c1 = run_jack_client(metro) c2 = run_jack_client(metro) c3 = run_jack_client(metro) bus_connect(c1, 'system') bus_connect('system', 'system') bus_connect( outports('system')[:-1] , inports('system')[-2:] ) bus_connect( c2 , inports('system')[-3:] ) time.sleep(4) kill_jack_cli...
7966e22855b4c00c398506a8416f929e50d01492 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1456/7966e22855b4c00c398506a8416f929e50d01492/jack_bus_connect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 1435, 294, 225, 5100, 303, 273, 296, 78, 484, 67, 10578, 303, 300, 70, 4752, 11, 276, 21, 273, 1086, 67, 78, 484, 67, 2625, 12, 10578, 303, 13, 276, 22, 273, 1086, 67, 78, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 294, 225, 5100, 303, 273, 296, 78, 484, 67, 10578, 303, 300, 70, 4752, 11, 276, 21, 273, 1086, 67, 78, 484, 67, 2625, 12, 10578, 303, 13, 276, 22, 273, 1086, 67, 78, 48...
r'\|']
r'\|(?!\|)']
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
b4a748bc13d4a93850f2c50c2df26daabda62399 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/b4a748bc13d4a93850f2c50c2df26daabda62399/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
self.action_choose.triggered.connect(self.choose_library)
self.action_choose.triggered.connect(self.choose_library, type=Qt.QueuedConnection)
def genesis(self): self.count_changed(0) self.qaction.triggered.connect(self.choose_library)
0a7835a0007feba8b9957504c450784008dd1326 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/0a7835a0007feba8b9957504c450784008dd1326/choose_library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21906, 12, 2890, 4672, 365, 18, 1883, 67, 6703, 12, 20, 13, 365, 18, 85, 1128, 18, 10668, 329, 18, 3612, 12, 2890, 18, 25777, 67, 12083, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 21906, 12, 2890, 4672, 365, 18, 1883, 67, 6703, 12, 20, 13, 365, 18, 85, 1128, 18, 10668, 329, 18, 3612, 12, 2890, 18, 25777, 67, 12083, 13, 2, -100, -100, -100, -100, -100, -100, -1...
gp.resolvconfd = d
def read_resolv_conf(gp): d = {} gp.resolvconfd = d f = file(gp.resolv_conf) for l in f.xreadlines(): l = l.strip() if not d.has_key('nameserver'): r1 = gp.re_nameserver.match(l) if r1: d['nameserver'] = r1.group(1) return d
ab53040da3418280f617c278d0f4c20701e5e0b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6933/ab53040da3418280f617c278d0f4c20701e5e0b6/dnsproxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 7818, 90, 67, 3923, 12, 6403, 4672, 302, 273, 2618, 284, 273, 585, 12, 6403, 18, 7818, 90, 67, 3923, 13, 364, 328, 316, 284, 18, 92, 896, 3548, 13332, 328, 273, 328, 18, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7818, 90, 67, 3923, 12, 6403, 4672, 302, 273, 2618, 284, 273, 585, 12, 6403, 18, 7818, 90, 67, 3923, 13, 364, 328, 316, 284, 18, 92, 896, 3548, 13332, 328, 273, 328, 18, 6...
self.window.set_border_width(10) self.window.set_size_request(600, 400)
self.window.set_default_size(640, 480)
def __init__(self): # Game controller. self.controller = Hangman()
c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea/Hangman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 14121, 2596, 18, 365, 18, 5723, 273, 670, 539, 4728, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 14121, 2596, 18, 365, 18, 5723, 273, 670, 539, 4728, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
logging.warning("User home dir %s is missing, please repair this first." % styles.stylize(
logging.warning("User home dir %s is missing," " please repair this first." % styles.stylize(
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1355, 12, 1355, 16, 16745, 273, 16745, 16, 2581, 273, 2581, 16, 3656, 67, 13490, 273, 3656, 67, 13490, 4672, 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, 866, 67, 1355, 12, 1355, 16, 16745, 273, 16745, 16, 2581, 273, 2581, 16, 3656, 67, 13490, 273, 3656, 67, 13490, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
raise ValueError( "(%r, %r) should have a non-negative first value" % (begin, end))
raise ValueError("(%r, %r) should have a non-negative first value" % (begin, end))
def __str__(self): parts = [] for begin, end in self.ranges: if end is None: if begin >= 0: parts.append('%s-' % begin) else: parts.append(str(begin)) else: if begin < 0: raise ValueError( "(%r, %r) should have a non-negative first value" % (begin, end)) if end <= 0: raise ValueError( "(%r, %r) should have a positive s...
0ce404fed71cb51ab19f2aa8a8a788bb693b7f53 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12287/0ce404fed71cb51ab19f2aa8a8a788bb693b7f53/byterange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 2140, 273, 5378, 364, 2376, 16, 679, 316, 365, 18, 14530, 30, 309, 679, 353, 599, 30, 309, 2376, 1545, 374, 30, 2140, 18, 6923, 29909, 87, 6627, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 2140, 273, 5378, 364, 2376, 16, 679, 316, 365, 18, 14530, 30, 309, 679, 353, 599, 30, 309, 2376, 1545, 374, 30, 2140, 18, 6923, 29909, 87, 6627, 738, ...
choosen = random.randrange(0,nb_songs) return choosen
chosen_id = random.randrange(0,nb_songs) return chosen_file
def get_next_song_index(self): """Choose a song at random. Be sure it is not already in the playlist and it does not match the 'exclude' regexp. """
05a2689316661b4838403bc54160a8a4b5da8f7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6855/05a2689316661b4838403bc54160a8a4b5da8f7c/mpdrandomd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 816, 75, 67, 1615, 12, 2890, 4672, 3536, 24529, 279, 17180, 622, 2744, 18, 4823, 3071, 518, 353, 486, 1818, 316, 326, 16428, 471, 518, 1552, 486, 845, 326, 296, 1015...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 816, 75, 67, 1615, 12, 2890, 4672, 3536, 24529, 279, 17180, 622, 2744, 18, 4823, 3071, 518, 353, 486, 1818, 316, 326, 16428, 471, 518, 1552, 486, 845, 326, 296, 1015...
self.stylesheet = [self.stylesheet_link % stylesheet]
self.stylesheet = [self.stylesheet_link % self.encode(stylesheet)]
def __init__(self, document): nodes.NodeVisitor.__init__(self, document) self.settings = settings = document.settings lcode = settings.language_code self.language = languages.get_language(lcode) self.meta = [self.content_type % settings.output_encoding, self.generator % docutils.__version__] self.head_prefix = [ self.d...
222345c8b282a3f5be2b6ac3a593755cbd3e1e07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/222345c8b282a3f5be2b6ac3a593755cbd3e1e07/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 328, 710, 273, 1947, 18, 4923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 328, 710, 273, 1947, 18, 4923, ...
for line in lines: if line[0] == ':' or line[0] == ' continue src = regex.search(line) if src: cmd, para = tuple(src.groups()) cmd = cmd.upper() if cmd == 'BUG': para = [p for p in para.split(' ')] bugs.extend(para) elif cmd == 'TYPE': type_ = types[para.upper()] elif cmd == 'REQUEST': request = requests[para.upper()] ...
updates = [] for section in config.sections(): update = {} update['builds'] = section update['type_'] = config.get(section, 'type') update['request'] = config.get(section, 'request') update['bugs'] = config.get(section, 'bugs') update['close_bugs'] = config.getboolean(section, 'close_bugs') update['notes'] = config.get...
def parse_file(self, input_file): """ Parse an update template file.
731477891869307ca5f936771e9e0c584a233951 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/731477891869307ca5f936771e9e0c584a233951/bodhi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 768, 12, 2890, 16, 810, 67, 768, 4672, 3536, 2884, 392, 1089, 1542, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 1109, 67, 768, 12, 2890, 16, 810, 67, 768, 4672, 3536, 2884, 392, 1089, 1542, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except:
except OSError:
def readline(self): try: line = self._buffer[self._bufindex] except IndexError: pass else: self._bufindex += 1 self._lineno += 1 self._filelineno += 1 return line if not self._file: if not self._files: return "" self._filename = self._files[0] self._files = self._files[1:] self._filelineno = 0 self._file = None self._i...
f17bad0a67938d038bb7fd007932795862423656 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f17bad0a67938d038bb7fd007932795862423656/fileinput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 775, 30, 980, 273, 365, 6315, 4106, 63, 2890, 6315, 4385, 1615, 65, 1335, 10195, 30, 1342, 469, 30, 365, 6315, 4385, 1615, 1011, 404, 365, 6315, 17782, 1011, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12023, 12, 2890, 4672, 775, 30, 980, 273, 365, 6315, 4106, 63, 2890, 6315, 4385, 1615, 65, 1335, 10195, 30, 1342, 469, 30, 365, 6315, 4385, 1615, 1011, 404, 365, 6315, 17782, 1011, 404, ...
stepInstance.setValue("arguments",arguments) return S_OK() def setName(self,jobName):
stepInstance.setValue( "arguments", arguments ) return S_OK() def setName( self, jobName ):
def setExecutable(self,executable,arguments='',logFile=''): """Helper function.
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 17709, 12, 2890, 16, 17751, 16, 7099, 2218, 2187, 1330, 812, 2218, 11, 4672, 3536, 2276, 445, 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, 444, 17709, 12, 2890, 16, 17751, 16, 7099, 2218, 2187, 1330, 812, 2218, 11, 4672, 3536, 2276, 445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if name == '::DataSpace/NameList': self.read_section_names(entry) elif name == '/manifest': self.read_manifest(entry) elif name == '/meta': self.read_meta(entry)
def read_directory(self, piece): self.entries = {} if not piece.startswith('IFCM'): raise LitError('Header piece #1 is not main directory.') chunk_size, num_chunks = int32(piece[8:12]), int32(piece[24:28]) if (32 + chunk_size * num_chunks) != len(piece): raise LitError('IFCM HEADER has incorrect length') for chunk in r...
006182e5f46ea8f5da43607ab530dff752a12d94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/006182e5f46ea8f5da43607ab530dff752a12d94/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 5149, 12, 2890, 16, 11151, 4672, 365, 18, 8219, 273, 2618, 309, 486, 11151, 18, 17514, 1918, 2668, 45, 4488, 49, 11, 4672, 1002, 511, 305, 668, 2668, 1864, 11151, 468, 21, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5149, 12, 2890, 16, 11151, 4672, 365, 18, 8219, 273, 2618, 309, 486, 11151, 18, 17514, 1918, 2668, 45, 4488, 49, 11, 4672, 1002, 511, 305, 668, 2668, 1864, 11151, 468, 21, 353...
stream.write (" ft = FieldTable ();\n")
stream.write (" ft.clear();\n")
def genSchema (self, stream, event=False): stream.write (" ft = FieldTable ();\n") stream.write (" ft.setString (NAME, \"" + self.name + "\");\n") stream.write (" ft.setInt (TYPE, TYPE_" + self.type.type.base +");\n") if (not event): stream.write (" ft.setString (DIR, \"" + self.dir + "\");\n")...
c0f71cb68b2edafd1efe5ec611c389743c7e57a0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/198/c0f71cb68b2edafd1efe5ec611c389743c7e57a0/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 3078, 261, 2890, 16, 1407, 16, 871, 33, 8381, 4672, 1407, 18, 2626, 7566, 565, 11038, 18, 8507, 5621, 64, 82, 7923, 1407, 18, 2626, 7566, 565, 11038, 18, 542, 780, 261, 1985, 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, 3157, 3078, 261, 2890, 16, 1407, 16, 871, 33, 8381, 4672, 1407, 18, 2626, 7566, 565, 11038, 18, 8507, 5621, 64, 82, 7923, 1407, 18, 2626, 7566, 565, 11038, 18, 542, 780, 261, 1985, 16,...
log.debug('Source %s is already written, ignoring', source)
log.debug('Source %r is already written, ignoring', source)
def write_sources(sources): with open(sources_file, 'w') as f: written = list() for source in sources: if source not in written: f.write(source.encode('utf8')) f.write('\n') written.append(source) else: log.debug('Source %s is already written, ignoring', source) return written
22a29b6f7c3c5fd606ae0b2ee3b507e930fd98ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14305/22a29b6f7c3c5fd606ae0b2ee3b507e930fd98ef/qtui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10141, 12, 10141, 4672, 598, 1696, 12, 10141, 67, 768, 16, 296, 91, 6134, 487, 284, 30, 5941, 273, 666, 1435, 364, 1084, 316, 5550, 30, 309, 1084, 486, 316, 5941, 30, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10141, 12, 10141, 4672, 598, 1696, 12, 10141, 67, 768, 16, 296, 91, 6134, 487, 284, 30, 5941, 273, 666, 1435, 364, 1084, 316, 5550, 30, 309, 1084, 486, 316, 5941, 30, 284, ...
"_mergedTangents"] def __init__(self, map, *args):
"_mergedTangents", "_mergeLabels"] def __init__(self, map, tangents):
def calculateTangentListsGaussianReflective(map, sigma, diff=0.0): """calculateTangentListsGaussianReflective(map, sigma, diff=0.0) Add 'tangents' property to all edges, containing the result of running tangentListGaussianReflective on it with the given parameters. Note that all edges which are too small will have an ...
4ef96517287a1d5ca47341c77866d3cec450dc72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/4ef96517287a1d5ca47341c77866d3cec450dc72/statistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 56, 24255, 7432, 43, 12086, 24452, 688, 12, 1458, 16, 7299, 16, 3122, 33, 20, 18, 20, 4672, 3536, 11162, 56, 24255, 7432, 43, 12086, 24452, 688, 12, 1458, 16, 7299, 16, 3122, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 56, 24255, 7432, 43, 12086, 24452, 688, 12, 1458, 16, 7299, 16, 3122, 33, 20, 18, 20, 4672, 3536, 11162, 56, 24255, 7432, 43, 12086, 24452, 688, 12, 1458, 16, 7299, 16, 3122, 33,...
An xml string if the error is recoverable.
An HTTP response object if the error is recoverable.
def _handle_error(self, err): """Handle an HTTP error.
79e0eda55ae8119eb9e1c8f9ac20bc171384f964 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6884/79e0eda55ae8119eb9e1c8f9ac20bc171384f964/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 1636, 12, 2890, 16, 393, 4672, 3536, 3259, 392, 2239, 555, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 1636, 12, 2890, 16, 393, 4672, 3536, 3259, 392, 2239, 555, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
!define INSTNAME "SecondLife%(channel_oneword)s"
!define INSTNAME "Meerkat%(channel_oneword)s"
def package_finish(self): # a standard map of strings for replacing in the templates substitution_strings = { 'version' : '.'.join(self.args['version']), 'version_short' : '.'.join(self.args['version'][:-1]), 'version_dashes' : '-'.join(self.args['version']), 'final_exe' : self.final_exe(), 'grid':self.args['grid'], 'g...
8e2b1483f03fcfd99bfca5fd1de79eae89c3d33e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4269/8e2b1483f03fcfd99bfca5fd1de79eae89c3d33e/viewer_manifest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2181, 67, 13749, 12, 2890, 4672, 468, 279, 4529, 852, 434, 2064, 364, 13993, 316, 326, 5539, 12785, 67, 10219, 273, 288, 296, 1589, 11, 294, 2611, 18, 5701, 12, 2890, 18, 1968, 3292, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2181, 67, 13749, 12, 2890, 4672, 468, 279, 4529, 852, 434, 2064, 364, 13993, 316, 326, 5539, 12785, 67, 10219, 273, 288, 296, 1589, 11, 294, 2611, 18, 5701, 12, 2890, 18, 1968, 3292, 1...
symb_args = [ theano.tensor.TensorType('float32', (False,)*nb_dim)() for arg in xrange(0,num_args) ]
symb_args = [ theano.tensor.TensorType('float32', (False,)*nb_dim)() for arg in xrange(0,num_args) ]
def test_many_arg_elemwise(): """this test checks whether the + and * elemwise ops can handle extremely large numbers of arguments on gpu i.e., it is a test of the optimization theano/sandbox/cuda/opt.py:local_gpu_huge_add_or_mul """ rng = numpy.random.RandomState( [1,2,3]) for num_args in [25]: for op_to_test in [ th...
4bf3c385383329e1c9202462d966f3a8e957ece9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/4bf3c385383329e1c9202462d966f3a8e957ece9/test_basic_ops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9353, 67, 3175, 67, 10037, 2460, 13332, 3536, 2211, 1842, 4271, 2856, 326, 397, 471, 380, 3659, 2460, 6727, 848, 1640, 23755, 2357, 7876, 5600, 434, 1775, 603, 21810, 277, 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, 1842, 67, 9353, 67, 3175, 67, 10037, 2460, 13332, 3536, 2211, 1842, 4271, 2856, 326, 397, 471, 380, 3659, 2460, 6727, 848, 1640, 23755, 2357, 7876, 5600, 434, 1775, 603, 21810, 277, 18, ...
d = dict([(x,str_to_unit(x)) for x in vars_in_str(Z)]) from sage.misc.all import sage_eval Z = sage_eval(Z, d) unit_derivations[v] = Z
d = dict([(x,str_to_unit(x)) for x in vars_in_str(Z)]) from sage.misc.all import sage_eval Z = sage_eval(Z, d) unit_derivations[v] = Z
def unit_derivations_expr(v): """ Given derived units name, returns the corresponding units expression. For example, given 'acceleration' output the symbolic expression length/time^2. INPUT: - `v` -- string, name of a unit type such as 'area', 'volume', etc. OUTPUT: - symbolic expression EXAMPLES:: sage: sage.sy...
ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2836, 67, 20615, 1012, 67, 8638, 12, 90, 4672, 3536, 16803, 10379, 4971, 508, 16, 1135, 326, 4656, 4971, 2652, 18, 225, 2457, 3454, 16, 864, 296, 30737, 7067, 11, 876, 326, 16754, 2652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2836, 67, 20615, 1012, 67, 8638, 12, 90, 4672, 3536, 16803, 10379, 4971, 508, 16, 1135, 326, 4656, 4971, 2652, 18, 225, 2457, 3454, 16, 864, 296, 30737, 7067, 11, 876, 326, 16754, 2652, ...
self.addFormattingElement(token) def startTagButton(self, token): if self.tree.elementInScope("button"): self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "button", "endName": "button"}) self.processEndTag(impliedTagToken("button")) self.parser.phase.processStartTag(token) else:
self.addFormattingElement(token) def startTagFormatting(self, token):
def startTagNobr(self, token): self.tree.reconstructActiveFormattingElements() if self.tree.elementInScope("nobr"): self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "nobr", "endName": "nobr"}) self.processEndTag(impliedTagToken("nobr")) # XXX Need tests that trigger the following self.tree.r...
d34b631d2e45870e85a6b7e5f824aa96f5632111 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/d34b631d2e45870e85a6b7e5f824aa96f5632111/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 50, 947, 86, 12, 2890, 16, 1147, 4672, 365, 18, 3413, 18, 266, 10062, 3896, 23974, 3471, 1435, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 82, 947, 86, 6, 4672, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 50, 947, 86, 12, 2890, 16, 1147, 4672, 365, 18, 3413, 18, 266, 10062, 3896, 23974, 3471, 1435, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 82, 947, 86, 6, 4672, 365, 18...
import traceback traceback.print_exc()
def _NH_UIInputGotCommand(self, notification): handler = getattr(self, '_CH_%s' % notification.data.command, None) if handler is not None: try: handler(*notification.data.args) except TypeError: import traceback traceback.print_exc() send_notice('Illegal use of command /%s. Type /help for a list of available commands.'...
3d0aaef3445651697635a89264525eab8229b01d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/3d0aaef3445651697635a89264525eab8229b01d/sip_session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 5370, 1210, 15617, 2189, 12, 2890, 16, 3851, 4672, 1838, 273, 3869, 12, 2890, 16, 2070, 1792, 10185, 87, 11, 738, 3851, 18, 892, 18, 3076, 16, 599, 13, 309, 1838, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 5370, 1210, 15617, 2189, 12, 2890, 16, 3851, 4672, 1838, 273, 3869, 12, 2890, 16, 2070, 1792, 10185, 87, 11, 738, 3851, 18, 892, 18, 3076, 16, 599, 13, 309, 1838, 35...
done.release()
def check_parallel_module_init(self): if imp.lock_held(): # This triggers on, e.g., from test import autotest. raise unittest.SkipTest("can't run when import lock is held")
ddd0db41851548230c4c9b3960cf097c699fc4c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/ddd0db41851548230c4c9b3960cf097c699fc4c0/test_threaded_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 18054, 67, 2978, 67, 2738, 12, 2890, 4672, 309, 1646, 18, 739, 67, 76, 488, 13332, 468, 1220, 11752, 603, 16, 425, 18, 75, 12990, 628, 1842, 1930, 2059, 352, 395, 18, 1002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 18054, 67, 2978, 67, 2738, 12, 2890, 4672, 309, 1646, 18, 739, 67, 76, 488, 13332, 468, 1220, 11752, 603, 16, 425, 18, 75, 12990, 628, 1842, 1930, 2059, 352, 395, 18, 1002, ...
command = subprocess.Popen(['ps', '-o', 'pid=', '-C', 'rcssserver'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) return '
return '
def rcssserver() : command = subprocess.Popen(['ps', '-o', 'pid=', '-C', 'rcssserver'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) return ' #rcssserver %d' % (len(command.communicate()[0].split('\n')) - 1)
a0398bb556e40889bc7cc93ac08d4f433fd9c99c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/228/a0398bb556e40889bc7cc93ac08d4f433fd9c99c/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4519, 1049, 3567, 1435, 294, 327, 296, 468, 1310, 1049, 3567, 738, 72, 11, 738, 261, 1897, 12, 3076, 18, 5702, 318, 2659, 1435, 63, 20, 8009, 4939, 2668, 64, 82, 26112, 300, 404, 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, 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, 4519, 1049, 3567, 1435, 294, 327, 296, 468, 1310, 1049, 3567, 738, 72, 11, 738, 261, 1897, 12, 3076, 18, 5702, 318, 2659, 1435, 63, 20, 8009, 4939, 2668, 64, 82, 26112, 300, 404, 13, ...
ans = ans._fix(context=context)
ans = ans._fix(context)
def __mul__(self, other, context=None): """Return self * other.
b277e15abb88b70aabae5a4859ba6920ae8be40f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b277e15abb88b70aabae5a4859ba6920ae8be40f/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 380, 1308, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 380, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.tk.call(self._w, 'hide', 'entry', entry)
self.tk.call(self._w, 'hide', 'entry', entry)
def hide_entry(self, entry):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 67, 4099, 12, 2890, 16, 1241, 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, 6853, 67, 4099, 12, 2890, 16, 1241, 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 _tokens_are_same(self, token_list, index):
def _tokens_are_same_at_index(self, token_list, index):
def _tokens_are_same(self, token_list, index): first = token_list[0][index] for tokens in token_list[1:]: if first != tokens[index]: return False return len(token_list) > 1
a2cb4aeae174d9f91b538b4b78e89a6351a27a5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/a2cb4aeae174d9f91b538b4b78e89a6351a27a5e/risto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7860, 67, 834, 67, 14307, 67, 270, 67, 1615, 12, 2890, 16, 1147, 67, 1098, 16, 770, 4672, 1122, 273, 1147, 67, 1098, 63, 20, 6362, 1615, 65, 364, 2430, 316, 1147, 67, 1098, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7860, 67, 834, 67, 14307, 67, 270, 67, 1615, 12, 2890, 16, 1147, 67, 1098, 16, 770, 4672, 1122, 273, 1147, 67, 1098, 63, 20, 6362, 1615, 65, 364, 2430, 316, 1147, 67, 1098, 63, ...
heapq.heappush(self.heap, (expire_time, asn))
self.times.append((expire_time, asn))
def _main(inner, self, global_dedup): while True: if not self.heap: yield inner continue
5a8559a2402b986c17f00e6c18e5a90f05a7e7cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/5a8559a2402b986c17f00e6c18e5a90f05a7e7cc/dshield.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 12, 7872, 16, 365, 16, 2552, 67, 785, 416, 4672, 1323, 1053, 30, 309, 486, 365, 18, 25506, 30, 2824, 3443, 1324, 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, 389, 5254, 12, 7872, 16, 365, 16, 2552, 67, 785, 416, 4672, 1323, 1053, 30, 309, 486, 365, 18, 25506, 30, 2824, 3443, 1324, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"""Convert choosing randomly between choices"""
"""Convert choosing randomly between choices """
def convertRandom(self,choices): """Convert choosing randomly between choices""" ml = self.splitRandom(len(choices),compact=False) ml = [ m.convert(c) for m,c in zip(ml,choices) ] prop = self.prop if prop is not None: prop = concatenate([m.prop for m in ml]) elems = concatenate([m.elems for m in ml],axis=0) eltype = se...
3a7af5f1e12fc6b0922f498e16c32d58085fdceb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/3a7af5f1e12fc6b0922f498e16c32d58085fdceb/mesh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 8529, 12, 2890, 16, 11937, 4672, 3536, 2723, 24784, 310, 20153, 3086, 7246, 225, 3536, 12931, 273, 365, 18, 4939, 8529, 12, 1897, 12, 11937, 3631, 21038, 33, 8381, 13, 12931, 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, 1765, 8529, 12, 2890, 16, 11937, 4672, 3536, 2723, 24784, 310, 20153, 3086, 7246, 225, 3536, 12931, 273, 365, 18, 4939, 8529, 12, 1897, 12, 11937, 3631, 21038, 33, 8381, 13, 12931, 273, ...
_state = obj.getState() _obj_state = _state.getStates()
_state_inst = obj.getState() _obj_state = _state_inst.getStates()
def hasstate(self, window_name, object_name, state): ''' has state @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: s...
93e2a5d5bedc2d2efc547a12fe735701c82228f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/93e2a5d5bedc2d2efc547a12fe735701c82228f7/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 2019, 12, 2890, 16, 2742, 67, 529, 16, 733, 67, 529, 16, 919, 4672, 9163, 711, 919, 225, 632, 891, 2742, 67, 529, 30, 6076, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 711, 2019, 12, 2890, 16, 2742, 67, 529, 16, 733, 67, 529, 16, 919, 4672, 9163, 711, 919, 225, 632, 891, 2742, 67, 529, 30, 6076, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, ...
flags = select.POLLERR | select.POLLHUP | select.POLLNVAL
flags = 0
def poll2(timeout=0.0, map=None): # Use the poll() support added to the select module in Python 2.0 if map is None: map = socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) pollster = select.poll() if map: for fd, obj in map.items(): flags = select.POLLERR | select.POLLHUP | sel...
ac5dde0e16e1c251c36ab88e828574f613ff39be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ac5dde0e16e1c251c36ab88e828574f613ff39be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 12, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 468, 2672, 326, 7672, 1435, 2865, 3096, 358, 326, 2027, 1605, 316, 6600, 576, 18, 20, 309, 852, 353, 599, 30, 852, 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, 7672, 22, 12, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 468, 2672, 326, 7672, 1435, 2865, 3096, 358, 326, 2027, 1605, 316, 6600, 576, 18, 20, 309, 852, 353, 599, 30, 852, 273, ...
req_size = _ComputeDiskSize(self.op.disk_template, self.disks) if req_size is not None and not self.adopt_disks: _CheckNodesFreeDisk(self, nodenames, req_size) if self.adopt_disks:
if not self.adopt_disks: req_sizes = _ComputeDiskSizePerVG(self.op.disk_template, self.disks) _CheckNodesFreeDiskPerVG(self, nodenames, req_sizes) else:
def CheckPrereq(self): """Check prerequisites.
03941a2698dba62f1b1d2d2f9c6caba798aaa5c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/03941a2698dba62f1b1d2d2f9c6caba798aaa5c6/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if status == 'successful': success = 1 elif status == 'failed': success = 0 else: anyStatus = True from django.db import connection cur = connection.cursor() q = """ SELECT t.id FROM youpi_processing_task AS t, youpi_processing_kind AS k WHERE t.kind_id=k.id AND k.name = '%s' %s ORDER BY end_date DESC """
success = failure = True if status == 'successful': failure = False elif status == 'failed': success = False owner = owner[0] if owner == 'my': owner = request.user.username elif owner == 'all': owner = None tasks = find_tasks(tags, task_id=None, kind=kindid, user=owner, success=success, failure=failure) tasksIds =...
def task_filter(request): try: # May be a list of owners owner = request.POST.getlist('Owner') status = request.POST['Status'] kindid = request.POST['Kind'] # Max results per page maxPerPage = int(request.POST['Limit']) # page # to return targetPage = int(request.POST['Page']) tags = request.POST.getlist('Tag') except ...
bd361d6411562bbf7fee656e63fb22150ccd0d9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/bd361d6411562bbf7fee656e63fb22150ccd0d9c/condor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 2188, 12, 2293, 4672, 775, 30, 468, 16734, 506, 279, 666, 434, 25937, 3410, 273, 590, 18, 3798, 18, 588, 1098, 2668, 5541, 6134, 1267, 273, 590, 18, 3798, 3292, 1482, 3546, 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, 1562, 67, 2188, 12, 2293, 4672, 775, 30, 468, 16734, 506, 279, 666, 434, 25937, 3410, 273, 590, 18, 3798, 18, 588, 1098, 2668, 5541, 6134, 1267, 273, 590, 18, 3798, 3292, 1482, 3546, 3...
include_list=self.models,
include_list=self.get_app_content_types(),
def render(self, request):
03e99cdaeb15d1e80f6f1762d7ab1f3f427323c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3482/03e99cdaeb15d1e80f6f1762d7ab1f3f427323c2/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 590, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 590, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return False
result = False
def pythonVersionRequire(major, minor = 0, micro = 0, releaseLevel = "final", serial = 0): if not 'version_info' in dir(sys): if major < 2: # Unlikely return True else: return False releaseLevelsDir = { "alpha" : 0, "beta" : 1, "candidate" : 2, "final": 3 } if major > sys.version_info[0]: return False elif major < sys....
2abb6f512aead669f454a58e7b6bf70e0d0428a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/2abb6f512aead669f454a58e7b6bf70e0d0428a5/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5790, 1444, 8115, 12, 14019, 16, 8439, 273, 374, 16, 6481, 273, 374, 16, 3992, 2355, 273, 315, 6385, 3113, 2734, 273, 374, 4672, 309, 486, 296, 1589, 67, 1376, 11, 316, 1577, 12, 9499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5790, 1444, 8115, 12, 14019, 16, 8439, 273, 374, 16, 6481, 273, 374, 16, 3992, 2355, 273, 315, 6385, 3113, 2734, 273, 374, 4672, 309, 486, 296, 1589, 67, 1376, 11, 316, 1577, 12, 9499,...
self.setdebug()
self.isdebug = 1
def execute(self, line, previous_args): """ String/list handling as well as EOF and comment handling. Otherwise, parses the arguments as shlexed and runs the function returned by argparse. """
d6de95fab9f2c9d6e0799bde4113ce1e454a6dbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/d6de95fab9f2c9d6e0799bde4113ce1e454a6dbb/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 980, 16, 2416, 67, 1968, 4672, 3536, 514, 19, 1098, 5057, 487, 5492, 487, 6431, 471, 2879, 5057, 18, 5272, 16, 8940, 326, 1775, 487, 27180, 329, 471, 7597, 326, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 2890, 16, 980, 16, 2416, 67, 1968, 4672, 3536, 514, 19, 1098, 5057, 487, 5492, 487, 6431, 471, 2879, 5057, 18, 5272, 16, 8940, 326, 1775, 487, 27180, 329, 471, 7597, 326, 445...
rList.append('Good')
rList.append( 'Good' )
def getSiteSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of jobs in a given status on all the sites in the standard Web form """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 6550, 316, 279, 864, 1267, 603, 777, 326, 9180, 316, 326, 452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 6550, 316, 279, 864, 1267, 603, 777, 326, 9180, 316, 326, 452...
header = True
headscan = True
def parse(self, stream): """ parse unified diff """ self.source = [] self.target = [] self.hunks = [] self.hunkends = []
f546591a6b402ba31daf9a9b0af9f220102590b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4098/f546591a6b402ba31daf9a9b0af9f220102590b8/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1407, 4672, 3536, 1109, 27136, 3122, 3536, 365, 18, 3168, 273, 5378, 365, 18, 3299, 273, 5378, 365, 18, 76, 1683, 87, 273, 5378, 365, 18, 76, 1683, 5839, 273, 5378,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1407, 4672, 3536, 1109, 27136, 3122, 3536, 365, 18, 3168, 273, 5378, 365, 18, 3299, 273, 5378, 365, 18, 76, 1683, 87, 273, 5378, 365, 18, 76, 1683, 5839, 273, 5378,...
- extend (True) decides if base field extensions should be considered or not.
- ``extend`` -- boolean (default: True) decides if base field extensions should be considered or not.
def eigenvectors(self,extend=True): """ Computes the subspace of eigenvectors of a given eigenvalue.
008040e2ed037beda080180d1d6162300fff207d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/008040e2ed037beda080180d1d6162300fff207d/free_module_morphism.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11043, 29098, 12, 2890, 16, 14313, 33, 5510, 4672, 3536, 14169, 281, 326, 720, 2981, 434, 11043, 29098, 434, 279, 864, 16719, 1132, 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, 0, 0, 0, 0, 0, 0, 0, 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, 11043, 29098, 12, 2890, 16, 14313, 33, 5510, 4672, 3536, 14169, 281, 326, 720, 2981, 434, 11043, 29098, 434, 279, 864, 16719, 1132, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
t = time.localtime(currentTime)
if utc: t = time.gmtime(currentTime) else: t = time.localtime(currentTime)
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0): BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) self.when = string.upper(when) self.backupCount = backupCount # Calculate the real rollover interval, which is just the number of # seconds between rollovers. Al...
a12da73c468ca08a15671dc9a69bee3bb745cb4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/a12da73c468ca08a15671dc9a69bee3bb745cb4f/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 4672, 3360, 8570, 1776, 1503, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 4672, 3360, 8570, 1776, 1503, 16186, 2738, ...
if "Wikipedia category redirect" in cat_title:
if "category redirect" in cat_title: self.log_text.append("* Ignoring %s%s" % (self.catprefix, cat_title))
def run(self): """Run the bot""" self.site = wikipedia.getSite() self.catprefix = self.site.namespace(14)+":" self.result_queue = Queue.Queue() self.log_text = []
ca6eab2770b59d8de16a37e0a8778c56d5e52a34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ca6eab2770b59d8de16a37e0a8778c56d5e52a34/category_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1997, 326, 2512, 8395, 365, 18, 4256, 273, 21137, 18, 588, 4956, 1435, 365, 18, 2574, 3239, 273, 365, 18, 4256, 18, 4937, 12, 3461, 13, 9078, 2773, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1997, 326, 2512, 8395, 365, 18, 4256, 273, 21137, 18, 588, 4956, 1435, 365, 18, 2574, 3239, 273, 365, 18, 4256, 18, 4937, 12, 3461, 13, 9078, 2773, 365, 18,...
wikipedia.setAction(msg_redir[wikipedia.chooselang(wikipedia.mylang,msg_redir)]+': '+wrd)
wikipedia.setAction(msg_redir[wikipedia.chooselang(wikipedia.mylang,msg_redir)] + u': ' + wrd)
def makepath(path): """ creates missing directories for the given path and returns a normalized absolute version of the path. - if the given path already exists in the filesystem the filesystem is not modified. - otherwise makepath creates directories along the given path using the dirname() of the path. You may appe...
94bb190f0662df957f1b1e4e52b585fbb87075a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/94bb190f0662df957f1b1e4e52b585fbb87075a6/solve_disambiguation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 803, 12, 803, 4672, 3536, 3414, 3315, 6402, 364, 326, 864, 589, 471, 1135, 279, 5640, 4967, 1177, 434, 326, 589, 18, 225, 300, 309, 326, 864, 589, 1818, 1704, 316, 326, 6496, 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, 1221, 803, 12, 803, 4672, 3536, 3414, 3315, 6402, 364, 326, 864, 589, 471, 1135, 279, 5640, 4967, 1177, 434, 326, 589, 18, 225, 300, 309, 326, 864, 589, 1818, 1704, 316, 326, 6496, 326...