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
SELECT name, DECODE(line, 1, '/'||chr(10)||'CREATE OR REPLACE ', '')||text
SELECT name, text, DECODE(line, 1, '/'||chr(10)||'CREATE OR REPLACE ', '') AS prefix
def customQuery(cursor, state, builder): cursor.execute(""" SELECT name, DECODE(line, 1, '/'||chr(10)||'CREATE OR REPLACE ', '')||text FROM user_source WHERE type IN ('%s') ORDER BY name, type, line""" % "', '".join(builder.DbType))
fcf18539bec7fa46fe4d3ec35d3304dc75d654cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/760/fcf18539bec7fa46fe4d3ec35d3304dc75d654cf/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1679, 1138, 12, 9216, 16, 919, 16, 2089, 4672, 3347, 18, 8837, 2932, 3660, 9111, 508, 16, 977, 16, 2030, 5572, 12, 1369, 16, 404, 16, 2023, 20081, 15182, 12, 2163, 14047, 16637, 9344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1679, 1138, 12, 9216, 16, 919, 16, 2089, 4672, 3347, 18, 8837, 2932, 3660, 9111, 508, 16, 977, 16, 2030, 5572, 12, 1369, 16, 404, 16, 2023, 20081, 15182, 12, 2163, 14047, 16637, 9344, ...
cmd = "lcg-cr --vo atlas "
cmd = cmd + " --vo atlas "
def save_file(count, griddir, dest, gridlfn, output_lfn, filename, poolguid, siteID, tokenname=''): # Calc timeout timeout = int(300 * 2**count) if timeout<300: timeout = 300 # Create LFC directory cmd = "lfc-mkdir -p %s" %(griddir) rc, out = commands.getstatusoutput(cmd) if rc != 0: print 'ERROR during execution of ...
1985a21450e9841b4b0766bc46f07ea50091d496 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/1985a21450e9841b4b0766bc46f07ea50091d496/ganga-stage-in-out-dq2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 768, 12, 1883, 16, 3068, 1214, 16, 1570, 16, 3068, 80, 4293, 16, 876, 67, 80, 4293, 16, 1544, 16, 2845, 14066, 16, 2834, 734, 16, 1147, 529, 2218, 11, 4672, 225, 468, 29128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 67, 768, 12, 1883, 16, 3068, 1214, 16, 1570, 16, 3068, 80, 4293, 16, 876, 67, 80, 4293, 16, 1544, 16, 2845, 14066, 16, 2834, 734, 16, 1147, 529, 2218, 11, 4672, 225, 468, 29128...
pdb.run('sliceview(randn(6,6))')
pdb.run('sliceview(fmap.data)', globals=globals(), locals=locals())
def push_items(self, pxbuf, avbuf): self.av_stat.push(self.av_context, avbuf) self.px_stat.push(self.px_context, pxbuf)
12103a63872d82631066300b2fbb6fbbaf4d63ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/12103a63872d82631066300b2fbb6fbbaf4d63ee/new_sliceview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 3319, 12, 2890, 16, 10318, 4385, 16, 1712, 4385, 4672, 365, 18, 842, 67, 5642, 18, 6206, 12, 2890, 18, 842, 67, 2472, 16, 1712, 4385, 13, 365, 18, 4430, 67, 5642, 18, 6206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 3319, 12, 2890, 16, 10318, 4385, 16, 1712, 4385, 4672, 365, 18, 842, 67, 5642, 18, 6206, 12, 2890, 18, 842, 67, 2472, 16, 1712, 4385, 13, 365, 18, 4430, 67, 5642, 18, 6206,...
'id' : SimpleItem(defvalue=None,protected=1,copyable=0,doc='Panda job id'), 'status' : SimpleItem(defvalue=None,protected=1,copyable=0,doc='Panda job status'), 'actualCE' : SimpleItem(defvalue=None,protected=1,copyable=0,doc='Actual CE where the job is run'),
'id' : SimpleItem(defvalue=None,typelist=['type(None)','int'],protected=1,copyable=0,doc='Panda job id'), 'status' : SimpleItem(defvalue=None,typelist=['type(None)','str'],protected=1,copyable=0,doc='Panda job status'), 'actualCE' : SimpleItem(defvalue=None,typelist=['type(None)','str'],protected...
def __init__(self): super(PandaBuildJob,self).__init__()
7c3b094259ad8ef2e910f39d24f8f474608de44a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/7c3b094259ad8ef2e910f39d24f8f474608de44a/Panda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 52, 464, 69, 3116, 2278, 16, 2890, 2934, 972, 2738, 972, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2240, 12, 52, 464, 69, 3116, 2278, 16, 2890, 2934, 972, 2738, 972, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
MAYAVERSIONS=[("MAYA5", "SOFTWARE\\Alias|Wavefront\\Maya\\5.0\\Setup\\InstallPath"), ("MAYA6", "SOFTWARE\\Alias|Wavefront\\Maya\\6.0\\Setup\\InstallPath"), ("MAYA65", "SOFTWARE\\Alias|Wavefront\\Maya\\6.5\\Setup\\InstallPath")
MAYAVERSIONINFO=[("MAYA6", "SOFTWARE\\Alias|Wavefront\\Maya\\6.0\\Setup\\InstallPath"), ("MAYA65", "SOFTWARE\\Alias|Wavefront\\Maya\\6.5\\Setup\\InstallPath"), ("MAYA7", "SOFTWARE\\Alias|Wavefront\\Maya\\7.0\\Setup\\InstallPath")
def parseopts(args): global COMPILER,OPTIMIZE,OMIT,INSTALLER,GENMAN,SLAVEBUILD global VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE,SLAVEFILE,THREADCOUNT longopts = [ "help","package-info","compiler=","directx-sdk=","slavebuild=", "optimize=","everything","nothing","installer","quiet","verbose", "version=","lzma","no-python","...
d00f745e1ceedb7d59a09beac4f23f2f45af36fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/d00f745e1ceedb7d59a09beac4f23f2f45af36fe/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 5423, 1102, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 28865, 654, 16, 16652, 9560, 16, 55, 2534, 3412, 20215, 2552, 8456, 16, 4208, 22526, 916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4952, 12, 1968, 4672, 2552, 5423, 1102, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 28865, 654, 16, 16652, 9560, 16, 55, 2534, 3412, 20215, 2552, 8456, 16, 4208, 22526, 916, ...
convert(args[0], start_pass=start_pass, verbose=verbose)
util.run_app(convert, args[0], start_pass=start_pass, verbose=verbose)
def main(): opts, args = getopt.getopt(sys.argv[1:], 'p:v') if len(args) != 1: usage() verbose = 0 start_pass = 1 for opt, value in opts: if opt == '-p': start_pass = int(value) if start_pass < 1 or start_pass > len(_passes): print 'ERROR: illegal value (%d) for starting pass. ' \ 'must be 1 through %d.' % (start_pass,...
1ea553ef1f59c2ab034594d92c29d3b4b3e1eca7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6036/1ea553ef1f59c2ab034594d92c29d3b4b3e1eca7/cvs2svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 84, 30, 90, 6134, 309, 562, 12, 1968, 13, 480, 404, 30, 4084, 1435, 3988, 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, 2774, 13332, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 84, 30, 90, 6134, 309, 562, 12, 1968, 13, 480, 404, 30, 4084, 1435, 3988, 273, ...
for i in xrange(self.numthreads): self._workerThreads.append(WorkerThread(self)) for worker in self._workerThreads: worker.setName("CP WSGIServer " + worker.getName()) worker.start() for worker in self._workerThreads: while not worker.ready: time.sleep(.1)
self.requests.start()
def start(self): """Run the server forever.""" # We don't have to trap KeyboardInterrupt or SystemExit here, # because cherrpy.server already does so, calling self.stop() for us. # If you're using this server with another framework, you should # trap those exceptions in whatever code block calls start(). self._interrup...
2d230d71855f0afe3a9190e286cfb7edb5fabb4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/2d230d71855f0afe3a9190e286cfb7edb5fabb4a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 3536, 1997, 326, 1438, 21238, 12123, 468, 1660, 2727, 1404, 1240, 358, 23034, 19424, 578, 25454, 2674, 16, 468, 2724, 462, 370, 2074, 18, 3567, 1818, 1552, 1427, 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, 787, 12, 2890, 4672, 3536, 1997, 326, 1438, 21238, 12123, 468, 1660, 2727, 1404, 1240, 358, 23034, 19424, 578, 25454, 2674, 16, 468, 2724, 462, 370, 2074, 18, 3567, 1818, 1552, 1427, 16, ...
maintainer_email="kjetilja@gmail.com, markus@oberhumer.com",
maintainer_email="kjetilja at gmail.com, markus at oberhumer.com",
def get_data_files(): # a list of tuples with (path to install to, a list of local files) data_files = [] if sys.platform == "win32": datadir = os.path.join("doc", PACKAGE) else: datadir = os.path.join("share", "doc", PACKAGE) # files = ["ChangeLog", "COPYING", "INSTALL", "README", "TODO",] if files: data_files.append(...
df0d1f784a6b6cd778fd083a6a65514a3c4f5cbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10805/df0d1f784a6b6cd778fd083a6a65514a3c4f5cbf/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 892, 67, 2354, 13332, 468, 279, 666, 434, 10384, 598, 261, 803, 358, 3799, 358, 16, 279, 666, 434, 1191, 1390, 13, 501, 67, 2354, 273, 5378, 309, 2589, 18, 9898, 422, 315, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 892, 67, 2354, 13332, 468, 279, 666, 434, 10384, 598, 261, 803, 358, 3799, 358, 16, 279, 666, 434, 1191, 1390, 13, 501, 67, 2354, 273, 5378, 309, 2589, 18, 9898, 422, 315, 8...
try: os.mkdir(homeDir) except os.error: pass
try: os.mkdir(homeDir) except os.error: import glob files = glob.glob(os.path.join(self.homeDir, '*')) for file in files: os.remove(file)
def setUp(self): self.filename = self.__class__.__name__ + '.db' homeDir = os.path.join(os.path.dirname(sys.argv[0]), 'db_home') self.homeDir = homeDir try: os.mkdir(homeDir) except os.error: pass self.env = db.DBEnv() self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK | db.DB_THREAD | self.envFla...
c5cf731a4deb710892c9083a468a6d173d791456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c5cf731a4deb710892c9083a468a6d173d791456/test_associate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 3459, 273, 365, 16186, 1106, 972, 16186, 529, 972, 397, 2418, 1966, 11, 6382, 1621, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 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, 24292, 12, 2890, 4672, 365, 18, 3459, 273, 365, 16186, 1106, 972, 16186, 529, 972, 397, 2418, 1966, 11, 6382, 1621, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 9499,...
return S_OK(siteDict)
return S_OK( siteDict )
def getSiteSummary(self): """ Get the summary of jobs in a given status on all the sites """
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, 12, 2890, 4672, 3536, 968, 326, 4916, 434, 6550, 316, 279, 864, 1267, 603, 777, 326, 9180, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 4733, 12, 2890, 4672, 3536, 968, 326, 4916, 434, 6550, 316, 279, 864, 1267, 603, 777, 326, 9180, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
f('\x0a\xef\x0b\x01\x05\x06\x10\x01\xff\xff\x99\x97\x00\x55\x01\x70')
f(b'\x0a\xef\x0b\x01\x05\x06\x10\x01\xff\xff\x99\x97\x00\x55\x01\x70')
def testStringToIPv6(self): if not hasattr(socket, 'inet_ntop'): return # No inet_ntop() on this platform try: from socket import inet_ntop, AF_INET6, has_ipv6 if not has_ipv6: return except ImportError: return f = lambda a: inet_ntop(AF_INET6, a)
6718062538e642d62c626fd033f2c3a2356c5505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/6718062538e642d62c626fd033f2c3a2356c5505/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 23282, 12775, 26, 12, 2890, 4672, 309, 486, 3859, 12, 7814, 16, 296, 23864, 67, 496, 556, 11, 4672, 327, 468, 2631, 17661, 67, 496, 556, 1435, 603, 333, 4072, 775, 30, 628, 2987,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23282, 12775, 26, 12, 2890, 4672, 309, 486, 3859, 12, 7814, 16, 296, 23864, 67, 496, 556, 11, 4672, 327, 468, 2631, 17661, 67, 496, 556, 1435, 603, 333, 4072, 775, 30, 628, 2987,...
return self.conn.request(method, url, body, headers)
return self.conn.request(method, url, body, myheaders)
def request(self, method, url, body="", headers={}): ''' raise socket.error e.g. "Operation timed out" ''' headers.update(self.headers)
7c5559704a08cf33830fb1e794a2390e5d401eda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/7c5559704a08cf33830fb1e794a2390e5d401eda/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 1546, 3113, 1607, 12938, 4672, 9163, 1002, 2987, 18, 1636, 425, 18, 75, 18, 315, 2988, 7491, 596, 6, 9163, 1607, 18, 2725, 12, 2890, 18, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 1546, 3113, 1607, 12938, 4672, 9163, 1002, 2987, 18, 1636, 425, 18, 75, 18, 315, 2988, 7491, 596, 6, 9163, 1607, 18, 2725, 12, 2890, 18, 24...
print "running configure"
def configure(self, policyFile, runId): self.logger.log(Log.DEBUG, "ProductionRunManager:configure")
8d5591e539bc25d823de9fa6d097aefdddba4be7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6549/8d5591e539bc25d823de9fa6d097aefdddba4be7/ProductionRunManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 16, 3329, 812, 16, 1086, 548, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 31590, 1997, 1318, 30, 14895, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 16, 3329, 812, 16, 1086, 548, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 31590, 1997, 1318, 30, 14895, 7923, 2, -100, -100, -100, -100, -100, -100, -10...
error("package version has more than one letter at then end")
bb.error("package version has more than one letter at then end")
def ververify(myorigval,silent=1): """Returns 1 if given a valid version string, els 0. Valid versions are in the format <v1>.<v2>...<vx>[a-z,_{_package_weights_}[vy]] >>> ververify('2.4.20') 1 >>> ververify('2.4..20') # two dots 0 >>> ververify('2.x.20') # 'x' is not numeric 0 >>> ververify('2.4.20...
8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1924, 8705, 12, 4811, 4949, 1125, 16, 21862, 33, 21, 4672, 3536, 1356, 404, 309, 864, 279, 923, 1177, 533, 16, 7842, 374, 18, 2364, 5244, 854, 316, 326, 740, 225, 411, 90, 21, 18652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1924, 8705, 12, 4811, 4949, 1125, 16, 21862, 33, 21, 4672, 3536, 1356, 404, 309, 864, 279, 923, 1177, 533, 16, 7842, 374, 18, 2364, 5244, 854, 316, 326, 740, 225, 411, 90, 21, 18652, ...
pass try: return directives.directive(name, None, None)[0] except AttributeError:
def get_directive(name): from docutils.parsers.rst import directives try: # docutils 0.4 return directives._directives[name] except (AttributeError, KeyError): pass try: return directives.directive(name, None, None)[0] except AttributeError: raise RuntimeError("No directive named '%s' found" % name)
d8be0c2ce965d6e34b307cc4295b40fe3aa07859 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/d8be0c2ce965d6e34b307cc4295b40fe3aa07859/numpydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22347, 12, 529, 4672, 628, 997, 5471, 18, 11104, 18, 16114, 1930, 13877, 775, 30, 468, 997, 5471, 374, 18, 24, 327, 13877, 6315, 30850, 63, 529, 65, 1335, 261, 1499, 668, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22347, 12, 529, 4672, 628, 997, 5471, 18, 11104, 18, 16114, 1930, 13877, 775, 30, 468, 997, 5471, 374, 18, 24, 327, 13877, 6315, 30850, 63, 529, 65, 1335, 261, 1499, 668, 16, ...
def postincoming(ui, repo, modheads, optupdate, wasempty):
def postincoming(ui, repo, modheads, optupdate):
def postincoming(ui, repo, modheads, optupdate, wasempty): if modheads == 0: return if optupdate: if wasempty: return hg.update(repo, repo.lookup('default')) elif modheads == 1: return hg.update(repo, repo.changelog.tip()) # update else: ui.status(_("not updating, since new heads added\n")) if modheads > 1: ui.status(_...
30c5744a87e768b1e275ea6e6bbaf632d52cff60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/30c5744a87e768b1e275ea6e6bbaf632d52cff60/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 31033, 12, 4881, 16, 3538, 16, 681, 20263, 16, 2153, 2725, 4672, 309, 681, 20263, 422, 374, 30, 327, 309, 2153, 2725, 30, 309, 341, 448, 81, 825, 30, 327, 22576, 18, 2725, 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, 1603, 31033, 12, 4881, 16, 3538, 16, 681, 20263, 16, 2153, 2725, 4672, 309, 681, 20263, 422, 374, 30, 327, 309, 2153, 2725, 30, 309, 341, 448, 81, 825, 30, 327, 22576, 18, 2725, 12, ...
print dst_geom.ExportToWkt()
print(dst_geom.ExportToWkt())
def ogr_factory_2(): src_wkt = 'MULTIPOLYGON (((0 0,100 0,100 100,0 0)))' exp_wkt = 'POLYGON((0 0,100 0,100 100,0 0))' src_geom = ogr.CreateGeometryFromWkt( src_wkt ) dst_geom = ogr.ForceToPolygon( src_geom ) if ogrtest.check_feature_geometry( dst_geom, exp_wkt ): print dst_geom.ExportToWkt() return 'fail' return '...
aa75b013fbb8ec9e8cd52db626b33309de2decf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/aa75b013fbb8ec9e8cd52db626b33309de2decf7/ogr_factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 6848, 67, 22, 13332, 225, 1705, 67, 91, 8629, 273, 296, 24683, 1741, 30317, 673, 261, 12443, 20, 374, 16, 6625, 374, 16, 6625, 2130, 16, 20, 374, 3719, 2506, 1329, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 6848, 67, 22, 13332, 225, 1705, 67, 91, 8629, 273, 296, 24683, 1741, 30317, 673, 261, 12443, 20, 374, 16, 6625, 374, 16, 6625, 2130, 16, 20, 374, 3719, 2506, 1329, 67, ...
if asbool(request.environ['paste.config']['app_conf'].get('debug', 'false')): warnings.warn("edit: form validation failed: %s" % errors)
warnings.warn("edit: form validation failed: %s" % errors)
def edit(self, id): """Allow editing of an object.
711082833b4f61e1d10d47c126973d37c4e93b47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/711082833b4f61e1d10d47c126973d37c4e93b47/crud.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 612, 4672, 3536, 7009, 15755, 434, 392, 733, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 3874, 12, 2890, 16, 612, 4672, 3536, 7009, 15755, 434, 392, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
subentrylinks[i] = self.fix_fragment(m)
subentrylinks[i] = \ self.fix_fragment(m.group(1), m.group(2))
def fix_genindex(self, tree): """Fix href attributes for genindex pages. """ # XXX: modifies tree inline # Logic modeled from themes/basic/genindex.html for key, columns in tree: for entryname, (links, subitems) in columns: for (i, link) in enumerate(links): m = _refuri_re.match(link) if m: links[i] = self.fix_fragment...
753a266fffc3382cd7d5d4d9be435d203452b776 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/753a266fffc3382cd7d5d4d9be435d203452b776/epub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 4507, 1615, 12, 2890, 16, 2151, 4672, 3536, 8585, 3897, 1677, 364, 3157, 1615, 4689, 18, 3536, 468, 11329, 30, 23934, 2151, 6370, 468, 10287, 938, 329, 628, 15455, 19, 13240, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 4507, 1615, 12, 2890, 16, 2151, 4672, 3536, 8585, 3897, 1677, 364, 3157, 1615, 4689, 18, 3536, 468, 11329, 30, 23934, 2151, 6370, 468, 10287, 938, 329, 628, 15455, 19, 13240, 1...
replicas[lfn].pop(requestedSE)
replicas[lfn].pop( requestedSE )
def prepareNewReplicas(self): """ This is the first logical task to be executed and manages the New->Waiting transition of the Replicas """ res = self.__getNewReplicas() if not res['OK']: gLogger.fatal("RequestPreparation.prepareNewReplicas: Failed to get replicas from StagerDB.",res['Message']) return res if not res['...
d68cb60fd991fa9f206177d2794f8d04f940cd00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d68cb60fd991fa9f206177d2794f8d04f940cd00/RequestPreparationAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1908, 17248, 12, 2890, 4672, 3536, 1220, 353, 326, 1122, 6374, 1562, 358, 506, 7120, 471, 20754, 281, 326, 1166, 2122, 15946, 6007, 434, 326, 31222, 3536, 400, 273, 365, 16186, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 1908, 17248, 12, 2890, 4672, 3536, 1220, 353, 326, 1122, 6374, 1562, 358, 506, 7120, 471, 20754, 281, 326, 1166, 2122, 15946, 6007, 434, 326, 31222, 3536, 400, 273, 365, 16186, 588, ...
_debug(ui, 'reading tag cache from %s\n' % cachefile.name)
def _readtagcache(ui, repo): '''Read the tag cache and return a tuple (heads, fnodes, cachetags, shouldwrite). If the cache is completely up-to-date, cachetags is a dict of the form returned by _readtags(); otherwise, it is None and heads and fnodes are set. In that case, heads is the list of all heads currently in t...
b2451d75e661d2c1bb8833ce32d5b7db4222606b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/b2451d75e661d2c1bb8833ce32d5b7db4222606b/tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 2692, 2493, 12, 4881, 16, 3538, 4672, 9163, 1994, 326, 1047, 1247, 471, 327, 279, 3193, 261, 20263, 16, 2295, 1145, 16, 7122, 278, 1341, 16, 1410, 2626, 2934, 225, 971, 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, 389, 896, 2692, 2493, 12, 4881, 16, 3538, 4672, 9163, 1994, 326, 1047, 1247, 471, 327, 279, 3193, 261, 20263, 16, 2295, 1145, 16, 7122, 278, 1341, 16, 1410, 2626, 2934, 225, 971, 326, ...
'code1' : fields.function(_campaign_code,string='Code',type="char",size="64",method=True,readonly=True),
'code1' : fields.function(_campaign_code,string='Code',type="char",size=64,method=True,readonly=True),
def _quantity_usable_total(self, cr, uid, ids, name, args, context={}): result={} campaigns = self.browse(cr,uid,ids) for campaign in campaigns: quantity=0 numeric=True for propo in campaign.proposition_ids: if propo.quantity_usable.isdigit(): quantity += int(propo.quantity_usable) else: result[campaign.id]='Check Segm...
fd579264445d426cb1816460cf19cfb07cb147aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/fd579264445d426cb1816460cf19cfb07cb147aa/campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 16665, 67, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 12938, 8965, 87, 273, 365, 18, 25731, 12, 3353, 16, 1911, 16, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 16665, 67, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 12938, 8965, 87, 273, 365, 18, 25731, 12, 3353, 16, 1911, 16, 22...
r = check_type(self._inherit_fields[f[i]][2]._type) data[fpos] = r
r = check_type(self._inherit_fields[f[i]][2]._type) data[fpos] = r
def check_type(field_type): if field_type == 'float': return 0.0 elif field_type == 'integer': return 0 elif field_type == 'boolean': return False return ''
9f8394a3119b661e0f978387e8467c7103893025 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/9f8394a3119b661e0f978387e8467c7103893025/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 723, 12, 1518, 67, 723, 4672, 309, 652, 67, 723, 422, 296, 5659, 4278, 327, 374, 18, 20, 1327, 652, 67, 723, 422, 296, 7745, 4278, 327, 374, 1327, 652, 67, 723, 422, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 723, 12, 1518, 67, 723, 4672, 309, 652, 67, 723, 422, 296, 5659, 4278, 327, 374, 18, 20, 1327, 652, 67, 723, 422, 296, 7745, 4278, 327, 374, 1327, 652, 67, 723, 422, 296, ...
return self.check1(spf, self.d, 0)
rc = self.check1(spf, self.d, 0) if self.perm_error: self.perm_error.ext = rc raise self.perm_error return rc
def check(self, spf=None): """
8ad4b16156cfbaa11f22f77430b55af7820cc3e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/139/8ad4b16156cfbaa11f22f77430b55af7820cc3e8/spf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 1694, 74, 33, 7036, 4672, 3536, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 1694, 74, 33, 7036, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
_machine_map = ("arm", "armv4l", "armv4tl", "armv5l", "armv5tl", "armv5tel", "armv5tejl", "armv6l", "armv7l", "armeb", "armv5teb")
_machine_map = ("arm", "armv4l", "armv4tl", "armv5tl", "armv5tel", "armv5tejl", "armv6l", "armv7l", "armeb", "armv5teb")
def __init__(self,myspec): generic_armeb.__init__(self,myspec) self.settings["CFLAGS"]+=" -mcpu=xscale" self.settings["CHOST"]="armv5teb-softfloat-linux-gnueabi"
423613d4d63f3a603ff416edd814c78b4f729c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/423613d4d63f3a603ff416edd814c78b4f729c55/arm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 297, 3501, 70, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 8955, 6552, 55, 6, 3737, 1546, 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, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 297, 3501, 70, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 8955, 6552, 55, 6, 3737, 1546, 30...
if __debug__: class StackTrace: def __init__(self, label="", start=0, limit=None): """ label is a string (or anything that be be a string) that is printed as part of the trace back. This is just to make it easier to tell what the stack trace is referring to. start is an integer number of stack frames back from the most...
class StackTrace: def __init__(self, label="", start=0, limit=None): """ label is a string (or anything that be be a string) that is printed as part of the trace back. This is just to make it easier to tell what the stack trace is referring to. start is an integer number of stack frames back from the most recent. (Th...
def writeFsmTree(instance, indent = 0): if hasattr(instance, 'parentFSM'): writeFsmTree(instance.parentFSM, indent-2) elif hasattr(instance, 'fsm'): name = '' if hasattr(instance.fsm, 'state'): name = instance.fsm.state.name print "%s: %s"%(instance.fsm.name, name)
e8acdc34b45ce0c4a1c399e09d1da486b0f9d21d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/e8acdc34b45ce0c4a1c399e09d1da486b0f9d21d/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 42, 4808, 2471, 12, 1336, 16, 3504, 273, 374, 4672, 309, 3859, 12, 1336, 16, 296, 2938, 4931, 49, 11, 4672, 1045, 42, 4808, 2471, 12, 1336, 18, 2938, 4931, 49, 16, 3504, 17, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 42, 4808, 2471, 12, 1336, 16, 3504, 273, 374, 4672, 309, 3859, 12, 1336, 16, 296, 2938, 4931, 49, 11, 4672, 1045, 42, 4808, 2471, 12, 1336, 18, 2938, 4931, 49, 16, 3504, 17, 22...
InterfaceVersion = "0.6";
InterfaceVersion = "1.0.0";
def get_providers(env): %(classname_l)s_prov = %(classname)sProvider(env) return {'%(classname)s': %(classname_l)s_prov}
f389461a29b3c609e95678846bdcf4512539afa8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10648/f389461a29b3c609e95678846bdcf4512539afa8/cim_provider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17520, 12, 3074, 4672, 8975, 18340, 67, 80, 13, 87, 67, 25529, 273, 8975, 18340, 13, 87, 2249, 12, 3074, 13, 327, 13666, 17105, 18340, 13, 87, 4278, 8975, 18340, 67, 80, 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, 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, 17520, 12, 3074, 4672, 8975, 18340, 67, 80, 13, 87, 67, 25529, 273, 8975, 18340, 13, 87, 2249, 12, 3074, 13, 327, 13666, 17105, 18340, 13, 87, 4278, 8975, 18340, 67, 80, 13, ...
INPUT:: - ``roots``: a list (or iterable) - ``children``: a function returning a list (or iterable)
Returns the set of nodes of the forest having the given roots, and where ``children(x)`` returns the children of the node ``x`` of the forest. See also :class:`~sage.combinat.backtrack.GenericBacktracker`, :class:`~sage.combinat.backtrack.TransitiveIdeal`, and :class:`~sage.combinat.backtrack.TransitiveIdealGraded`. ...
def search_forest_iterator(roots, children): r""" INPUT: - ``roots``: a list (or iterable) - ``children``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``children(x)`` returns the children of the node ``x`` of the forest. Note that every ...
dfb9be121c9dfbff085ea45e1c82478560ea238b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dfb9be121c9dfbff085ea45e1c82478560ea238b/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 2325, 4672, 436, 8395, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 5906, 10335, 30, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 2325, 4672, 436, 8395, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 5906, 10335, 30, 279, ...
if not any([k.startswith(i) for i in ignore])])
if not any([prefix_match(k, i) for i in ignore])])
def diff_states(start, end, ignore=None): """ Differences two "filesystem states" as represented by dictionaries of FoundFile and FoundDir objects. Returns a dictionary with following keys: ``deleted`` Dictionary of files/directories found only in the start state. ``created`` Dictionary of files/directories found on...
0c2309c3c8a7218725f2de5294240b23764a9c86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12982/0c2309c3c8a7218725f2de5294240b23764a9c86/test_pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 67, 7992, 12, 1937, 16, 679, 16, 2305, 33, 7036, 4672, 3536, 21104, 2980, 2795, 315, 17846, 5493, 6, 487, 10584, 635, 16176, 434, 10750, 812, 471, 10750, 1621, 2184, 18, 225, 2860,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3122, 67, 7992, 12, 1937, 16, 679, 16, 2305, 33, 7036, 4672, 3536, 21104, 2980, 2795, 315, 17846, 5493, 6, 487, 10584, 635, 16176, 434, 10750, 812, 471, 10750, 1621, 2184, 18, 225, 2860,...
Index '0' means the first position, '1' the second, and so on. Similarly '-1' is the last position, '-2' the second last, and so on. Using an index that does not exist on the list causes an error. The index can be either an integer or a string that can be converted to an integer.
Index '0' means the first position, '1' the second, and so on. Similarly, '-1' is the last position, '-2' the second last, and so on. Using an index that does not exist on the list causes an error. The index can be either an integer or a string that can be converted to an integer.
def get_from_list(self, L, index): """Returns the value specified with an index from L. The given list is never altered by this keyword. Index '0' means the first position, '1' the second, and so on. Similarly '-1' is the last position, '-2' the second last, and so on. Using an index that does not exist on the list c...
2f5075140c0afeaf5bda26b5924aceb3478d1a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/2f5075140c0afeaf5bda26b5924aceb3478d1a14/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2080, 67, 1098, 12, 2890, 16, 511, 16, 770, 4672, 3536, 1356, 326, 460, 1269, 598, 392, 770, 628, 511, 18, 225, 1021, 864, 666, 353, 5903, 22349, 635, 333, 4932, 18, 225, 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, 336, 67, 2080, 67, 1098, 12, 2890, 16, 511, 16, 770, 4672, 3536, 1356, 326, 460, 1269, 598, 392, 770, 628, 511, 18, 225, 1021, 864, 666, 353, 5903, 22349, 635, 333, 4932, 18, 225, 33...
command = '%s -cache 100' % command
extra_opts += ' -cache 100' command = '%s -vo null -ao %s %s %s' % (mpl, config.MPLAYER_AO_DEV, demux, extra_opts) command = command.replace('\n', '').split(' ') command.append(filename)
def play(self, item, playerGUI): """ play a audioitem with mplayer """ if item.url: filename = item.url else: filename = item.filename
a602e24b8ae8d0d4c0f37da8cf10a19d9edec20d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/a602e24b8ae8d0d4c0f37da8cf10a19d9edec20d/mplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 16, 761, 16, 7291, 43, 5370, 4672, 3536, 6599, 279, 7447, 1726, 598, 312, 14872, 3536, 309, 761, 18, 718, 30, 1544, 273, 761, 18, 718, 469, 30, 1544, 273, 761, 18, 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, 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, 6599, 12, 2890, 16, 761, 16, 7291, 43, 5370, 4672, 3536, 6599, 279, 7447, 1726, 598, 312, 14872, 3536, 309, 761, 18, 718, 30, 1544, 273, 761, 18, 718, 469, 30, 1544, 273, 761, 18, 34...
return self.__fileSystem.open()
return parted.FileSystem(PedFileSystem=self.__fileSystem.open())
def open(self): return self.__fileSystem.open()
86fc7a9999e732f7ae4a96161f0924959a05e294 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/86fc7a9999e732f7ae4a96161f0924959a05e294/filesystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 4672, 327, 365, 16186, 768, 3163, 18, 3190, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 4672, 327, 365, 16186, 768, 3163, 18, 3190, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.data += line line = nmlfile.readline() iline += 1 nmlfile.close()
while match!=None: ch = match.group(0) if ch=='\'' or ch=='"': ipos = match.end(0) inextquote = line.find(ch,ipos) if inextquote==-1: raise NamelistParser.NamelistParseException('Line %i: opening quote %s was not matched by end quote.' % (iline,ch),path) ipos = inextquote+1 else: line = line[:match.start(0)] break mat...
def __init__(self,path,requireordered,subs=[]): # Attempt to open namelist file and read all data try: nmlfile = open(path,'rU') except Exception,e: raise NamelistParser.NamelistParseException('Cannot open namelist file. Error: %s' % (str(e),),path) self.data = '' line = nmlfile.readline() iline = 1 while line!='':
402bc8158dd9f1f7a1fa7ee4048cc635886b3815 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/381/402bc8158dd9f1f7a1fa7ee4048cc635886b3815/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 803, 16, 6528, 9885, 16, 22284, 33, 8526, 4672, 468, 12864, 358, 1696, 15135, 5449, 585, 471, 855, 777, 501, 775, 30, 290, 781, 768, 273, 1696, 12, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 803, 16, 6528, 9885, 16, 22284, 33, 8526, 4672, 468, 12864, 358, 1696, 15135, 5449, 585, 471, 855, 777, 501, 775, 30, 290, 781, 768, 273, 1696, 12, 803, ...
self.exif_date = None
self.reliable_date = None
def __init__(self, path, album): MediaFile.__init__(self, path, album)
9579e648e4ad1b612154d0158eb22191dd83872c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/9579e648e4ad1b612154d0158eb22191dd83872c/sourcetree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 16, 14844, 4672, 6128, 812, 16186, 2738, 972, 12, 2890, 16, 589, 16, 14844, 13, 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, 1001, 2738, 972, 12, 2890, 16, 589, 16, 14844, 4672, 6128, 812, 16186, 2738, 972, 12, 2890, 16, 589, 16, 14844, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"hideTabs", "autoRotate", "showCords", "figuresInNotation", "tipOfTheDay",
"hideTabs", "autoRotate", "showCords", "figuresInNotation",
def __init__ (self, widgets): conf.set("firstName", conf.get("firstName", username)) conf.set("secondName", conf.get("secondName", _("Guest"))) # Give to uistuff.keeper for key in ("firstName", "secondName", "hideTabs", "autoRotate", "showCords", "figuresInNotation", "tipOfTheDay", "fullAnimation", "moveAnimation", ...
a4c95723e1daa26210eac324cfc1785479e9e983 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/a4c95723e1daa26210eac324cfc1785479e9e983/preferencesDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 10965, 4672, 225, 2195, 18, 542, 2932, 3645, 461, 3113, 2195, 18, 588, 2932, 3645, 461, 3113, 2718, 3719, 2195, 18, 542, 2932, 8538, 461, 3113, 2195, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 10965, 4672, 225, 2195, 18, 542, 2932, 3645, 461, 3113, 2195, 18, 588, 2932, 3645, 461, 3113, 2718, 3719, 2195, 18, 542, 2932, 8538, 461, 3113, 2195, 18, ...
preOps = [
postOps = [
def mutator(pop, param): 'Parameter has a length of region and a mutation rate at each basepair' region, rate = param # there are certainly more efficient algorithm, but this # example just mutate each basepair one by one.... for i in range(region): if random.random() < rate: try: idx = pop.addLoci(chrom=0, pos=i)[0] e...
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29156, 12, 5120, 16, 579, 4672, 296, 1662, 711, 279, 769, 434, 3020, 471, 279, 11934, 4993, 622, 1517, 1026, 6017, 11, 3020, 16, 4993, 273, 579, 468, 1915, 854, 8626, 715, 1898, 14382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29156, 12, 5120, 16, 579, 4672, 296, 1662, 711, 279, 769, 434, 3020, 471, 279, 11934, 4993, 622, 1517, 1026, 6017, 11, 3020, 16, 4993, 273, 579, 468, 1915, 854, 8626, 715, 1898, 14382, ...
s -- int; order of the latin square will be 2^s.
s -- int; order of the latin square will be 2\^s.
def abelian_2group(s): """ Returns the latin square based on the Cayley table for the abelian 2-group of order 2^s. INPUT: s -- int; order of the latin square will be 2^s. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: print abelian_2group(3) [0 1 2 3 4 5 6 7] [1 0 3 2 5 4 7 6] [2 3 0 1 6 7 4 5] ...
b912fcc3f6e81017bcafed666fd88a387d1cf679 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b912fcc3f6e81017bcafed666fd88a387d1cf679/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1223, 292, 2779, 67, 22, 1655, 12, 87, 4672, 3536, 2860, 326, 30486, 8576, 2511, 603, 326, 385, 528, 30678, 1014, 364, 326, 1223, 292, 2779, 576, 17, 1655, 434, 1353, 576, 66, 87, 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, 1223, 292, 2779, 67, 22, 1655, 12, 87, 4672, 3536, 2860, 326, 30486, 8576, 2511, 603, 326, 385, 528, 30678, 1014, 364, 326, 1223, 292, 2779, 576, 17, 1655, 434, 1353, 576, 66, 87, 18, ...
'extended_property', [ExtendedProperty]) _children['{%s}visibility' % gdata.GDATA_NAMESPACE] = ('visibility',
'extended_property', [ExtendedProperty]) _children['{%s}visibility' % gdata.GDATA_NAMESPACE] = ('visibility',
def __init__(self, value='false', *args, **kwargs): atom.AtomBase.__init__(self, *args, **kwargs) self.value = value
6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 2218, 5743, 2187, 380, 1968, 16, 2826, 4333, 4672, 3179, 18, 3641, 2171, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 2218, 5743, 2187, 380, 1968, 16, 2826, 4333, 4672, 3179, 18, 3641, 2171, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 113...
packt=self._packt
packt = self._packt
def undoLog(self, first=0, last=-20, filter=None): if last < 0: last=first-last+1 self._lock_acquire() try: packt=self._packt if packt is None: raise UndoError( 'Undo is currently disabled for database maintenance.<p>') pos=self._pos if pos < 39: return [] file=self._file seek=file.seek read=file.read unpack=struct.unp...
606639c4e5cffab1a4e8d25df6976c1eb540036e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/606639c4e5cffab1a4e8d25df6976c1eb540036e/FileStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15436, 1343, 12, 2890, 16, 1122, 33, 20, 16, 1142, 29711, 3462, 16, 1034, 33, 7036, 4672, 309, 1142, 411, 374, 30, 1142, 33, 3645, 17, 2722, 15, 21, 365, 6315, 739, 67, 1077, 1039, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15436, 1343, 12, 2890, 16, 1122, 33, 20, 16, 1142, 29711, 3462, 16, 1034, 33, 7036, 4672, 309, 1142, 411, 374, 30, 1142, 33, 3645, 17, 2722, 15, 21, 365, 6315, 739, 67, 1077, 1039, 1...
cxx.ExprSelect(ahvar, '.', 'm'+ self.myside +'Id'), objid)))
cxx.ExprSelect(ahvar, '.', 'mId'), objid)))
def injectDtorResponseHandler(block, actorObjVar, actorId): block.addstmt(cxx.StmtExpr( cxx.ExprCall(cxx.ExprVar('Unregister'), [ actorId ]))) block.addstmt(cxx.StmtExpr( cxx.ExprAssn(actorId, cxx.ExprLiteral.Int(-1)))) block.addstmt(cxx.StmtExpr( cxx.ExprAssn( cxx.ExprSelect(actorObjVar, '->', 'mManager'), cxx.ExprLit...
a864017a0319c1647f5f43fdebf3ac181d70f464 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/a864017a0319c1647f5f43fdebf3ac181d70f464/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4590, 40, 13039, 1064, 1503, 12, 2629, 16, 8327, 2675, 1537, 16, 8327, 548, 4672, 1203, 18, 1289, 10589, 12, 71, 5279, 18, 8952, 4742, 12, 276, 5279, 18, 4742, 1477, 12, 71, 5279, 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, 4590, 40, 13039, 1064, 1503, 12, 2629, 16, 8327, 2675, 1537, 16, 8327, 548, 4672, 1203, 18, 1289, 10589, 12, 71, 5279, 18, 8952, 4742, 12, 276, 5279, 18, 4742, 1477, 12, 71, 5279, 18, ...
print "FATAL: Cannot access %s, a required directory for OMERO" % path
print "FATAL: Cannot access %s, a required file/directory for OMERO" % path
def can_access(self, path, mask=os.R_OK|os.W_OK): """ Check that the given path belongs to or is accessible by the current user on Linux systems. """ if "Windows" == platform.system(): return
fbbf8a3d00479bd8578b88c3bb4a1f9d3edc4af7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/fbbf8a3d00479bd8578b88c3bb4a1f9d3edc4af7/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 3860, 12, 2890, 16, 589, 16, 3066, 33, 538, 18, 54, 67, 3141, 96, 538, 18, 59, 67, 3141, 4672, 3536, 2073, 716, 326, 864, 589, 11081, 358, 578, 353, 12718, 635, 326, 783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 3860, 12, 2890, 16, 589, 16, 3066, 33, 538, 18, 54, 67, 3141, 96, 538, 18, 59, 67, 3141, 4672, 3536, 2073, 716, 326, 864, 589, 11081, 358, 578, 353, 12718, 635, 326, 783, ...
If specified, `host' is the name of the remote host to which to connect. If specified, `port' specifies the port to which to connect. By default, smtplib.SMTP_PORT is used.
If specified, `host' is the name of the remote host to which to connect. If specified, `port' specifies the port to which to connect. By default, smtplib.SMTP_PORT is used.
def __init__(self, host = '', port = 0): """Initialize a new instance.
58a0b3fcac35fd85d6794fbcb62a4f4925cb00da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/58a0b3fcac35fd85d6794fbcb62a4f4925cb00da/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 374, 4672, 3536, 7520, 279, 394, 791, 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, 1001, 2738, 972, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 374, 4672, 3536, 7520, 279, 394, 791, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
""" Find files who do NOT have a particular pattern in their file name -> list
""" Finds files who do NOT have 'forbidpattern' in their file name starting from 'basedir' -> list
def find_nomasked_files(self, forbidpattern, basedir='.'): """ Find files who do NOT have a particular pattern in their file name -> list """
f9b5bccd6b4fd4355a72b9b495908af2da52cae3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/f9b5bccd6b4fd4355a72b9b495908af2da52cae3/pyfind_revdep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 12306, 835, 329, 67, 2354, 12, 2890, 16, 364, 19773, 4951, 16, 15573, 2218, 1093, 4672, 3536, 4163, 87, 1390, 10354, 741, 4269, 1240, 296, 1884, 19773, 4951, 11, 316, 3675, 585...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 12306, 835, 329, 67, 2354, 12, 2890, 16, 364, 19773, 4951, 16, 15573, 2218, 1093, 4672, 3536, 4163, 87, 1390, 10354, 741, 4269, 1240, 296, 1884, 19773, 4951, 11, 316, 3675, 585...
if i != j: (-1)**p1 * self._term(i) + (-1)**p2 * self._term(j) else: return (-1)**p1 * self._term(i) def simple_roots(self): return [ self.root(i, i+1,0,1) for i in range(self.n-1) ] + [self.root(self.n, self.n, 0, 0)] def positive_roots(self): return [ self.root(i,j,0,p) for i in range(j-1) for j in range(n) for p i...
return (-1)**p1 * self._term(i) + (-1)**p2 * self._term(j) def simple_roots(self): """ EXAMPLES: sage: RootSystem(['C',3]).ambient_lattice().simple_roots() [(1, -1, 0), (0, 1, -1), (0, 0, 2)] """ return [ self.root(i, i+1,0,1) for i in range(self.n-1) ] + [self.root(self.n-1, self.n-1, 0, 0)] def positive_roots(self...
def root(self, i, j, p1, p2): if i != j: (-1)**p1 * self._term(i) + (-1)**p2 * self._term(j) else: return (-1)**p1 * self._term(i)
3a4dfd531db8dac31e06cd098aad418663c01af4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3a4dfd531db8dac31e06cd098aad418663c01af4/root_system.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1365, 12, 2890, 16, 277, 16, 525, 16, 293, 21, 16, 293, 22, 4672, 309, 277, 480, 525, 30, 24927, 21, 13, 636, 84, 21, 380, 365, 6315, 6408, 12, 77, 13, 397, 24927, 21, 13, 636, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1365, 12, 2890, 16, 277, 16, 525, 16, 293, 21, 16, 293, 22, 4672, 309, 277, 480, 525, 30, 24927, 21, 13, 636, 84, 21, 380, 365, 6315, 6408, 12, 77, 13, 397, 24927, 21, 13, 636, 8...
self._repr = "VectorElement(%r, %r, %d, %d)" % \ (self._family, self._cell, self._degree, len(self._sub_elements))
self._repr = "VectorElement(%r, %r, %s, %d)" % \ (self._family, self._cell, str(self._degree), len(self._sub_elements))
def __init__(self, family, cell, degree, dim=None): "Create vector element (repeated mixed element)"
104710cfc4335ecba9fb39af0d1f69788c14ad1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/104710cfc4335ecba9fb39af0d1f69788c14ad1e/finiteelement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6755, 16, 2484, 16, 10782, 16, 2464, 33, 7036, 4672, 315, 1684, 3806, 930, 261, 266, 9061, 7826, 930, 2225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6755, 16, 2484, 16, 10782, 16, 2464, 33, 7036, 4672, 315, 1684, 3806, 930, 261, 266, 9061, 7826, 930, 2225, 2, -100, -100, -100, -100, -100, -100, -100, ...
if fn.endswith('/'):
if fn.endswith('/') or fn.endswith('\\'):
def unzip_file(self, filename, location, flatten=True): """Unzip the file (zip file located at filename) to the destination location""" if not os.path.exists(location): os.makedirs(location) zipfp = open(filename, 'rb') try: zip = zipfile.ZipFile(zipfp) leading = has_leading_dir(zip.namelist()) and flatten for name in ...
5e08433978e72f5c1f94bcc8596d289079d9ece7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/5e08433978e72f5c1f94bcc8596d289079d9ece7/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20259, 67, 768, 12, 2890, 16, 1544, 16, 2117, 16, 5341, 33, 5510, 4672, 3536, 984, 4450, 326, 585, 261, 4450, 585, 13801, 622, 1544, 13, 358, 326, 2929, 2117, 8395, 309, 486, 1140, 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, 20259, 67, 768, 12, 2890, 16, 1544, 16, 2117, 16, 5341, 33, 5510, 4672, 3536, 984, 4450, 326, 585, 261, 4450, 585, 13801, 622, 1544, 13, 358, 326, 2929, 2117, 8395, 309, 486, 1140, 18,...
self.rootitem = goocanvas.Group(parent = self.gcomprisBoard.canvas.get_root_item())
self.rootitem = goocanvas.Group(parent = self.gcomprisBoard.canvas.get_root_item())
def start(self): progname='tuxpaint' tuxpaint_dir = None flags = gobject.SPAWN_DO_NOT_REAP_CHILD | gobject.SPAWN_SEARCH_PATH
646588d1df89f2ab93dd27ec51769450fdc785b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11306/646588d1df89f2ab93dd27ec51769450fdc785b6/tuxpaint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 11243, 529, 2218, 88, 2616, 84, 1598, 11, 268, 2616, 84, 1598, 67, 1214, 273, 599, 2943, 273, 314, 1612, 18, 3118, 37, 5665, 67, 3191, 67, 4400, 67, 862, 2203, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 11243, 529, 2218, 88, 2616, 84, 1598, 11, 268, 2616, 84, 1598, 67, 1214, 273, 599, 2943, 273, 314, 1612, 18, 3118, 37, 5665, 67, 3191, 67, 4400, 67, 862, 2203, 6...
if line.category_id.contribute and line.category_id.include_in_salary and line.category_id.amount_type == 'per':
if line.category_id.contribute and line.category_id.amount_type == 'per':
def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids...
9cefb7520803ded7f648633ccca30e623a0dd192 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9cefb7520803ded7f648633ccca30e623a0dd192/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 801, 84, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 272, 3169, 67, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 801, 84, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 272, 3169, 67, 60...
3
3
def chromatic_number(G): r""" Returns the minimal number of colors needed to color the vertices of the graph `G`. EXAMPLES:: sage: from sage.graphs.graph_coloring import chromatic_number sage: G = Graph({0:[1,2,3],1:[2]}) sage: chromatic_number(G) 3 sage: G = graphs.PetersenGraph() sage: G.chromatic_number() 3 """ ...
0d7c50e7966c0248757876bb79ed98d62c5f0550 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0d7c50e7966c0248757876bb79ed98d62c5f0550/graph_coloring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8123, 2126, 67, 2696, 12, 43, 4672, 436, 8395, 2860, 326, 16745, 1300, 434, 5740, 3577, 358, 2036, 326, 6928, 434, 326, 2667, 1375, 43, 8338, 225, 5675, 8900, 11386, 2866, 225, 272, 410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8123, 2126, 67, 2696, 12, 43, 4672, 436, 8395, 2860, 326, 16745, 1300, 434, 5740, 3577, 358, 2036, 326, 6928, 434, 326, 2667, 1375, 43, 8338, 225, 5675, 8900, 11386, 2866, 225, 272, 410,...
def encode(s): if isinstance(s, unicode): return s.encode('utf8') return s view = self.fields_view_get(cr, uid, False, 'form', context=context) root = etree.fromstring(encode(view['arch'])) res = etree.XML("""<search string="%s"></search>""" % root.get("string", "")) node = etree.Element("group") res.append(node) f...
form_view = self.fields_view_get(cr, uid, False, 'form', context=context) tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context) fields_to_search = set() fields = self.fields_get(cr, uid, context=context)
def __get_default_search_view(self, cr, uid, context=None):
e1663d72f86244644955f2074d50c8680c4e987f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/e1663d72f86244644955f2074d50c8680c4e987f/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 1886, 67, 3072, 67, 1945, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 1001, 588, 67, 1886, 67, 3072, 67, 1945, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
start = time.time() x = fmin_cg(rosen, x0, fprime=rosen_der, maxiter=80) print x times.append(time.time() - start) algor.append('Nonlinear CG\t')
def _scalarfunc(*params): params = squeeze(asarray(params)) return func(params,*args)
d00f433519cbe9ce0d4306fb9512ac79d655e1fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/d00f433519cbe9ce0d4306fb9512ac79d655e1fc/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8748, 644, 30857, 2010, 4672, 859, 273, 17173, 12, 345, 1126, 12, 2010, 3719, 327, 1326, 12, 2010, 16, 14, 1968, 13, 225, 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, 8748, 644, 30857, 2010, 4672, 859, 273, 17173, 12, 345, 1126, 12, 2010, 3719, 327, 1326, 12, 2010, 16, 14, 1968, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.logger.debug('Connection shutting down (%s:%d)', self._addr[0], self._addr[1])
if len(self._addr) == 2: self.logger.debug('Connection shutting down (%s:%d)', self._addr[0], self._addr[1])
def run(self): self.logger.debug('Connection starting up (%s:%d)', self._addr[0], self._addr[1])
b8be54f18c2a37e9184784f912f37b0ae6972706 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7624/b8be54f18c2a37e9184784f912f37b0ae6972706/scgi_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 4901, 18, 4148, 2668, 1952, 5023, 731, 6142, 87, 5319, 72, 13, 2187, 365, 6315, 4793, 63, 20, 6487, 365, 6315, 4793, 63, 21, 5717, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 4901, 18, 4148, 2668, 1952, 5023, 731, 6142, 87, 5319, 72, 13, 2187, 365, 6315, 4793, 63, 20, 6487, 365, 6315, 4793, 63, 21, 5717, 2, -100, -100, -100, ...
if v == None: r[key] = False if key in self._columns.keys(): type = self._columns[key]._type elif key in self._inherit_fields.keys(): type = self._inherit_fields[key][2]._type
if key in self._columns: column = self._columns[key] elif key in self._inherit_fields: column = self._inherit_fields[key][2]
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ Read records with given ids with the given fields
5b146e80623363f66d775fb7088daa02a541a9d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5b146e80623363f66d775fb7088daa02a541a9d7/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 1466, 33, 7036, 16, 819, 33, 7036, 16, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 3536, 2720, 3853, 598, 864, 3258, 598, 326, 864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 1466, 33, 7036, 16, 819, 33, 7036, 16, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 3536, 2720, 3853, 598, 864, 3258, 598, 326, 864, ...
result = {} picture = self.guess_directory_picture(subdir) if picture is not None: result['album_picture'] = picture
if not result.has_key('album_picture'): picture = self.guess_directory_picture(subdir) if picture is not None: result['album_picture'] = picture if result.has_key('album_picture'): result['album_picture'] = result['album_picture'].replace('.', '_thumb.')
def get_directory_metadata(self, subdir = None): ''' Returns directory meta data. First tries to parse known formats and then fall backs to built in defaults. ''' try: result = self.get_matew_directory_metadata(subdir) return result except NoMetadata: pass
0072aa3fcb21238a79a805652e0dd4ec982a2bd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4663/0072aa3fcb21238a79a805652e0dd4ec982a2bd5/lazygal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5149, 67, 4165, 12, 2890, 16, 16921, 273, 599, 4672, 9163, 2860, 1867, 2191, 501, 18, 5783, 9327, 358, 1109, 4846, 6449, 471, 1508, 4159, 1473, 87, 358, 6650, 316, 3467, 18, 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, 336, 67, 5149, 67, 4165, 12, 2890, 16, 16921, 273, 599, 4672, 9163, 2860, 1867, 2191, 501, 18, 5783, 9327, 358, 1109, 4846, 6449, 471, 1508, 4159, 1473, 87, 358, 6650, 316, 3467, 18, 9...
def updateVersions(version, workingDir): client = get_svn_conn() client.checkout(svnBase + "/tags/" + version, localTagsDir + '/' + version)
def updateVersions(version, workingDir, trunkDir, test = False): if test: shutil.copytree(trunkDir, workingDir) else: client = get_svn_conn() client.checkout(svnBase + "/tags/" + version, workingDir)
def updateVersions(version, workingDir): client = get_svn_conn() client.checkout(svnBase + "/tags/" + version, localTagsDir + '/' + version) pomsToPatch = get_poms_to_patch(workingDir) for pom in pomsToPatch: patch(pom, version) ## Now look for Version.java version_bytes = '{' for ch in version: if not ch == ".": ver...
9fc43e2136f3e38733f93df7b17599075f1fadbd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14175/9fc43e2136f3e38733f93df7b17599075f1fadbd/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 5940, 12, 1589, 16, 5960, 1621, 16, 25917, 1621, 16, 1842, 273, 1083, 4672, 309, 1842, 30, 11060, 18, 3530, 3413, 12, 26133, 1621, 16, 5960, 1621, 13, 469, 30, 1004, 273, 336, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 5940, 12, 1589, 16, 5960, 1621, 16, 25917, 1621, 16, 1842, 273, 1083, 4672, 309, 1842, 30, 11060, 18, 3530, 3413, 12, 26133, 1621, 16, 5960, 1621, 13, 469, 30, 1004, 273, 336, 67...
class DLLHandleCache( object ): def __init__( self ):
class DLLHandleCache(object): def __init__(self):
def GetTZCapabilities(): """Run a few known tests to determine the capabilities of the time zone database on this machine. Note Dynamic Time Zone support is not available on any platform at this time; this is a limitation of this library, not the platform.""" tzi = TimeZoneInfo( 'Mountain Standard Time' ) MissingTZPatc...
59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 21647, 14012, 13332, 3536, 1997, 279, 11315, 4846, 7434, 358, 4199, 326, 12359, 434, 326, 813, 4157, 2063, 603, 333, 5228, 18, 3609, 12208, 2647, 10912, 2865, 353, 486, 2319, 603, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21647, 14012, 13332, 3536, 1997, 279, 11315, 4846, 7434, 358, 4199, 326, 12359, 434, 326, 813, 4157, 2063, 603, 333, 5228, 18, 3609, 12208, 2647, 10912, 2865, 353, 486, 2319, 603, 128...
self._check() if not self._loaded: self._load() return self.membernames
return [tarinfo.name for tarinfo in self.getmembers()]
def getnames(self): """Return the members of the archive as a list of their names. It has the same order as the list returned by getmembers(). """ self._check() if not self._loaded: self._load() return self.membernames
c23c3ef50067bbfc7538d3ea9d8f68f85cf0f577 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c23c3ef50067bbfc7538d3ea9d8f68f85cf0f577/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1973, 12, 2890, 4672, 3536, 990, 326, 4833, 434, 326, 5052, 487, 279, 666, 434, 3675, 1257, 18, 2597, 711, 326, 1967, 1353, 487, 326, 666, 2106, 635, 336, 7640, 7675, 3536, 365, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1973, 12, 2890, 4672, 3536, 990, 326, 4833, 434, 326, 5052, 487, 279, 666, 434, 3675, 1257, 18, 2597, 711, 326, 1967, 1353, 487, 326, 666, 2106, 635, 336, 7640, 7675, 3536, 365, 6...
s_input = [scalar.Scalar(x.dtype).make_variable() for x in i.owner.inputs]
def local_elemwise_fusion(node): """ As part of specialisation, we fusion two consecutif elemwise op of the same shape. For mixed dtype, we let the Compise op do the cast. It let the C compile do the cast. The number of dimension is validated at call time by theano itself. TODO:The broadcast flag? """
11fdf48345d5eeb4344ddd0f53ef1ba583192f0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/11fdf48345d5eeb4344ddd0f53ef1ba583192f0e/opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 10037, 2460, 67, 74, 7063, 12, 2159, 4672, 3536, 2970, 1087, 434, 4582, 10742, 16, 732, 25944, 2795, 356, 15166, 430, 3659, 2460, 1061, 434, 326, 1967, 2179, 18, 225, 2457, 782...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1191, 67, 10037, 2460, 67, 74, 7063, 12, 2159, 4672, 3536, 2970, 1087, 434, 4582, 10742, 16, 732, 25944, 2795, 356, 15166, 430, 3659, 2460, 1061, 434, 326, 1967, 2179, 18, 225, 2457, 782...
help="If true, upload incremental json results to server."),
help="If true, upload full json results to server."),
def parse_args(args=None): """Provides a default set of command line args. Returns a tuple of options, args from optparse""" # FIXME: All of these options should be stored closer to the code which # FIXME: actually uses them. configuration_options should move # FIXME: to WebKitPort and be shared across all scripts. c...
e6afcf5a4b45e7e9c43171afdc0e8781dfbbdcdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e6afcf5a4b45e7e9c43171afdc0e8781dfbbdcdf/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1968, 12, 1968, 33, 7036, 4672, 3536, 17727, 279, 805, 444, 434, 1296, 980, 833, 18, 225, 2860, 279, 3193, 434, 702, 16, 833, 628, 2153, 2670, 8395, 225, 468, 9852, 30, 4826,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1968, 12, 1968, 33, 7036, 4672, 3536, 17727, 279, 805, 444, 434, 1296, 980, 833, 18, 225, 2860, 279, 3193, 434, 702, 16, 833, 628, 2153, 2670, 8395, 225, 468, 9852, 30, 4826,...
DEBUG: Expectations only apply when running the debug build.
DEBUG: Expectations apply only to the debug build. RELEASE: Expectations apply only to release build.
def StripComments(line): """Strips comments from a line and return None if the line is empty or else the contents of line with leading and trailing spaces removed and all other whitespace collapsed""" commentIndex = line.find('//') if commentIndex is -1: commentIndex = len(line) line = re.sub(r'\s+', ' ', line[:comme...
26af87d20e2ea76d93214918d8f93f9fd8304056 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/26af87d20e2ea76d93214918d8f93f9fd8304056/test_expectations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15589, 9051, 12, 1369, 4672, 3536, 1585, 7146, 5678, 628, 279, 980, 471, 327, 599, 309, 326, 980, 353, 1008, 578, 469, 326, 2939, 434, 980, 598, 7676, 471, 7341, 7292, 3723, 471, 777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15589, 9051, 12, 1369, 4672, 3536, 1585, 7146, 5678, 628, 279, 980, 471, 327, 599, 309, 326, 980, 353, 1008, 578, 469, 326, 2939, 434, 980, 598, 7676, 471, 7341, 7292, 3723, 471, 777, ...
Returns an iterator for Dyck words with ``k1`` opening and ``k2`` closing parentheses.
Returns an iterator for Dyck words with ``k1`` opening and ``k2`` closing parentheses.
def __iter__(self): r""" Returns an iterator for Dyck words with ``k1`` opening and ``k2`` closing parentheses. EXAMPLES:: sage: [ w for w in DyckWords(0) ] [[]] sage: [ w for w in DyckWords(1) ] [[1, 0]] sage: [ w for w in DyckWords(2) ] [[1, 0, 1, 0], [1, 1, 0, 0]] sage: len([ 'x' for _ in DyckWords(5) ]) 42 """ if...
58987736f0b32e9cfa39285a2b0af054cbaf4453 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/58987736f0b32e9cfa39285a2b0af054cbaf4453/dyck_word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 436, 8395, 2860, 392, 2775, 364, 463, 93, 363, 4511, 598, 12176, 79, 21, 10335, 10890, 471, 12176, 79, 22, 10335, 7647, 27888, 18, 225, 5675, 8900, 11386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 436, 8395, 2860, 392, 2775, 364, 463, 93, 363, 4511, 598, 12176, 79, 21, 10335, 10890, 471, 12176, 79, 22, 10335, 7647, 27888, 18, 225, 5675, 8900, 11386...
print "Debug M: "+ str(text.encode('utf-8'))
print "Debug M: "+ text
def debug(text, level=DEBUG_LOW): "Prints a text in the terminal if the debug level is higher than the requested" try: if level <= debug_level: if level == DEBUG_LOW: print "Debug L: "+ str(text.encode('utf-8')) if level == DEBUG_MEDIUM: print "Debug M: "+ str(text.encode('utf-8')) if level == DEBUG_HIGH: print "Debug ...
990f55bf193b984bc987e2c88e849aae26422f8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6139/990f55bf193b984bc987e2c88e849aae26422f8b/TFglobals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 955, 16, 1801, 33, 9394, 67, 4130, 4672, 315, 15402, 279, 977, 316, 326, 8651, 309, 326, 1198, 1801, 353, 10478, 2353, 326, 3764, 6, 775, 30, 309, 1801, 1648, 1198, 67, 2815,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 12, 955, 16, 1801, 33, 9394, 67, 4130, 4672, 315, 15402, 279, 977, 316, 326, 8651, 309, 326, 1198, 1801, 353, 10478, 2353, 326, 3764, 6, 775, 30, 309, 1801, 1648, 1198, 67, 2815,...
super(set, self).__init__()
super(NGram, self).__init__()
def __init__(self, items=[], threshold=0.0, warp=1.0, iconv=None, N=3, pad_len=None, pad_char='$', qconv=None): super(set, self).__init__() if not (0 <= threshold <= 1): raise ValueError("Threshold %s outside 0.0 to 1.0 range" % threshold) if not(1.0 <= warp <= 3.0): raise ValueError("Warp %s outside 1.0 to 3.0 range" ...
511eb150195b7a874376841e707f0d58e0cac66d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12095/511eb150195b7a874376841e707f0d58e0cac66d/ngram.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1516, 22850, 6487, 5573, 33, 20, 18, 20, 16, 341, 11441, 33, 21, 18, 20, 16, 21567, 33, 7036, 16, 423, 33, 23, 16, 4627, 67, 1897, 33, 7036, 16, 4627...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1516, 22850, 6487, 5573, 33, 20, 18, 20, 16, 341, 11441, 33, 21, 18, 20, 16, 21567, 33, 7036, 16, 423, 33, 23, 16, 4627, 67, 1897, 33, 7036, 16, 4627...
"Door template", "Automatic door template", "Scaling zone", "Light zone", \
"Door template", \
def create_project(self, templ, name, folder): proj = CProject() wx.GetApp().artub_frame.project = proj proj.name = name proj.project_path = folder proj.normname = name
160af4999f26c82116d4f06bd713b71fd74d4648 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8143/160af4999f26c82116d4f06bd713b71fd74d4648/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4406, 12, 2890, 16, 13988, 16, 508, 16, 3009, 4672, 10296, 273, 385, 4109, 1435, 7075, 18, 967, 3371, 7675, 485, 373, 67, 3789, 18, 4406, 273, 10296, 10296, 18, 529, 273, 508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4406, 12, 2890, 16, 13988, 16, 508, 16, 3009, 4672, 10296, 273, 385, 4109, 1435, 7075, 18, 967, 3371, 7675, 485, 373, 67, 3789, 18, 4406, 273, 10296, 10296, 18, 529, 273, 508,...
raise ParseError()
raise ParseError("Bad class definition line")
def process_classdef(line, parent_docs, prev_line_doc, lineno, comments, decorators): """ The line handler for class declaration lines, such as: >>> class Foo(Bar, Baz): This handler creates and initializes a new C{VariableDoc} containing a C{ClassDoc}, adds the C{VariableDoc} to the containing namespace, and returns...
76aa87c4f3f84f87b6c947e3387d535503259a2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/76aa87c4f3f84f87b6c947e3387d535503259a2a/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1106, 536, 12, 1369, 16, 982, 67, 8532, 16, 2807, 67, 1369, 67, 2434, 16, 7586, 16, 5678, 16, 19423, 4672, 3536, 1021, 980, 1838, 364, 667, 8266, 2362, 16, 4123, 487, 30, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1106, 536, 12, 1369, 16, 982, 67, 8532, 16, 2807, 67, 1369, 67, 2434, 16, 7586, 16, 5678, 16, 19423, 4672, 3536, 1021, 980, 1838, 364, 667, 8266, 2362, 16, 4123, 487, 30, 2...
sage: sr = mq.SR(1,1,1,4, allow_zero_inversions=True)
sage: sr = mq.SR(1, 1, 1, 4, allow_zero_inversions=True)
def sub_byte(self, b): """ Perform SubByte on a single byte/halfbyte b.
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 67, 7229, 12, 2890, 16, 324, 4672, 3536, 11217, 2592, 3216, 603, 279, 2202, 1160, 19, 20222, 7229, 324, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 67, 7229, 12, 2890, 16, 324, 4672, 3536, 11217, 2592, 3216, 603, 279, 2202, 1160, 19, 20222, 7229, 324, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
different instances. This is useful when you want to load a model once several times before parenting each instance somewhere, or when you want to load a model and immediately set a transform on it. But also consider loadModelCopy(). """ Loader.notify.debug("Loading model once: %s under %s" % (modelPath, nodeName))
different instances. underNode may be either a node name, or a NodePath or a Node to an already-existing node. This is useful when you want to load a model once several times before parenting each instance somewhere, or when you want to load a model and immediately set a transform on it. But also consider loadModelCo...
def loadModelOnceUnder(self, modelPath, nodeName): """loadModelOnceUnder(self, string, string) Behaves like loadModelOnce, but also implicitly creates a new node to attach the model under, which helps to differentiate different instances. This is useful when you want to load a model once several times before parenting...
4f4939dd81bf21b05e784b73681dfd55bf721fb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4f4939dd81bf21b05e784b73681dfd55bf721fb6/Loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1488, 12212, 14655, 12, 2890, 16, 938, 743, 16, 7553, 4672, 3536, 945, 1488, 12212, 14655, 12, 2890, 16, 533, 16, 533, 13, 4823, 76, 6606, 3007, 1262, 1488, 12212, 16, 1496, 2546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1488, 12212, 14655, 12, 2890, 16, 938, 743, 16, 7553, 4672, 3536, 945, 1488, 12212, 14655, 12, 2890, 16, 533, 16, 533, 13, 4823, 76, 6606, 3007, 1262, 1488, 12212, 16, 1496, 2546, ...
snps_within_this_region = self.findSNPsInRegion(snp_info, this_snp.chromosome, this_snp.position, this_snp.stop) snps_within_this_region_snpData = self.findSNPsInRegion(snpData, this_snp.chromosome, this_snp.position, this_snp.stop)
snps_within_this_region = cls.findSNPsInRegion(snp_info, this_snp.chromosome, this_snp.position, this_snp.stop) snps_within_this_region_snpData = cls.findSNPsInRegion(snpData, this_snp.chromosome, this_snp.position, this_snp.stop)
def drawRegionAroundThisSNP(self, phenotype_method_id, this_snp, candidate_gene_set, gene_annotation, snp_info, analysis_method_id2gwr, \ LD_info, output_dir, which_LD_statistic, snp_region=None, min_distance=40000, list_type_id=None, label_gene=0, draw_LD_relative_to_center_SNP=0, commit=0, snpData=None, phenData=None...
bdc3752350001c791e90fb2760fcc0578318b113 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/bdc3752350001c791e90fb2760fcc0578318b113/DrawSNPRegion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 5165, 30022, 2503, 13653, 52, 12, 2890, 16, 28825, 67, 2039, 67, 350, 16, 333, 67, 87, 6782, 16, 5500, 67, 11857, 67, 542, 16, 7529, 67, 11495, 16, 28648, 67, 1376, 16, 6285, 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, 3724, 5165, 30022, 2503, 13653, 52, 12, 2890, 16, 28825, 67, 2039, 67, 350, 16, 333, 67, 87, 6782, 16, 5500, 67, 11857, 67, 542, 16, 7529, 67, 11495, 16, 28648, 67, 1376, 16, 6285, 6...
parts.append(value + (fieldsize - l) * NUL)
parts.append(value[:fieldsize] + (fieldsize - l) * NUL)
def tobuf(self): """Return a tar header block as a 512 byte string. """ name = self.name
aca89a4803ebbb1cc3da984004fb2fd67edba066 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/aca89a4803ebbb1cc3da984004fb2fd67edba066/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 4672, 3536, 990, 279, 8232, 1446, 1203, 487, 279, 13908, 1160, 533, 18, 3536, 508, 273, 365, 18, 529, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 4672, 3536, 990, 279, 8232, 1446, 1203, 487, 279, 13908, 1160, 533, 18, 3536, 508, 273, 365, 18, 529, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.mode_shuffle == 1: media = self.get_next_media_rand() else: media = self.get_next_media_lin()
media = self.get_next_media()
def run(self): q = self.q
95ceaf3edd8eef9223ea99bca356ceec4d029d9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/95ceaf3edd8eef9223ea99bca356ceec4d029d9f/deefuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1043, 273, 365, 18, 85, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1043, 273, 365, 18, 85, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if "meta_command" in command and command["meta_command"].value == 3: return command["text"].value
if "meta_command" in command \ and command["meta_command"].value in (Command.META_COMMAND_TEXT, Command.META_COMMAND_NAME) \ and "text" in command: return command["text"].value.strip("\r\n")
def createDescription(self): command = self["command[0]"] if "meta_command" in command and command["meta_command"].value == 3: return command["text"].value else: return ""
58ed6c09d12e8a4cc672d4dae5d8e7a8cd7f3a6a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/58ed6c09d12e8a4cc672d4dae5d8e7a8cd7f3a6a/midi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3291, 12, 2890, 4672, 1296, 273, 365, 9614, 3076, 63, 20, 4279, 65, 309, 315, 3901, 67, 3076, 6, 316, 1296, 521, 471, 1296, 9614, 3901, 67, 3076, 6, 8009, 1132, 316, 261, 2189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3291, 12, 2890, 4672, 1296, 273, 365, 9614, 3076, 63, 20, 4279, 65, 309, 315, 3901, 67, 3076, 6, 316, 1296, 521, 471, 1296, 9614, 3901, 67, 3076, 6, 8009, 1132, 316, 261, 2189, ...
'amount': fields.function(_compute_total, method=True, type='float', digits=(14,2), string='Total', store=True), 'tax_amount':fields.float('Tax Amount', digits=(14,2), readonly=True, states={'draft':[('readonly',False)]}),
'amount': fields.float('Total', digits=(16, 2), readonly=True, states={'draft':[('readonly',False)]}), 'tax_amount':fields.float('Tax Amount', digits=(14,4), readonly=True, states={'draft':[('readonly',False)]}),
def _compute_total(self, cr, uid, ids, name, args, context=None): position_pool = self.pool.get('account.fiscal.position') voucher_pool = self.pool.get('account.voucher') voucher_line_pool = self.pool.get('account.voucher.line') partner_pool = self.pool.get('res.partner') tax_pool = self.pool.get('account.tax') res = ...
c1a9af0020b8b799fa4ca9940cdd72d451126c08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c1a9af0020b8b799fa4ca9940cdd72d451126c08/voucher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 1754, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 74, 291, 771, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9200, 67, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 1754, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 74, 291, 771, 1...
if self.exists():
try: self.get() except NoPage: output(u'%s has been deleted before getting the Hash. Skipping...' % self.title()) return None except IsRedirectPage: output("Skipping %s because it's a redirect." % self.title()) return None else:
def getHash(self): """ Function that return the Hash of an image in oder to understand if two Images are the same or not. """ if self.exists(): params = { 'action' :'query', 'titles' :self.title(), 'prop' :'imageinfo', 'iiprop' :'sha1', } # First of all we need the Hash that identify an image data = query...
b4e6dbf405f65d45e84baeb5508d02d04da189c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/b4e6dbf405f65d45e84baeb5508d02d04da189c0/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16075, 12, 2890, 4672, 3536, 4284, 716, 327, 326, 2474, 434, 392, 1316, 316, 320, 765, 358, 22413, 309, 2795, 23022, 854, 326, 1967, 578, 486, 18, 3536, 775, 30, 365, 18, 588, 1435, 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, 16075, 12, 2890, 4672, 3536, 4284, 716, 327, 326, 2474, 434, 392, 1316, 316, 320, 765, 358, 22413, 309, 2795, 23022, 854, 326, 1967, 578, 486, 18, 3536, 775, 30, 365, 18, 588, 1435, 13...
mb = associated_task.add_subtask(self.modify_bootini)
mb = associated_task.add_subtask(self.modify_configsys)
def modify_bootloader(self, associated_task): for drive in self.info.drives: if drive.type not in ('removable', 'hd'): continue mb = None if self.info.bootloader == 'xp': mb = associated_task.add_subtask(self.modify_bootini) elif self.info.bootloader == '98': mb = associated_task.add_subtask(self.modify_bootini) elif s...
3baf62aad80770d0d33ad3344cd3142240cd3c2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/702/3baf62aad80770d0d33ad3344cd3142240cd3c2c/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 67, 7137, 6714, 12, 2890, 16, 3627, 67, 4146, 4672, 364, 14316, 316, 365, 18, 1376, 18, 3069, 3606, 30, 309, 14316, 18, 723, 486, 316, 7707, 2764, 1527, 429, 2187, 296, 22057, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5612, 67, 7137, 6714, 12, 2890, 16, 3627, 67, 4146, 4672, 364, 14316, 316, 365, 18, 1376, 18, 3069, 3606, 30, 309, 14316, 18, 723, 486, 316, 7707, 2764, 1527, 429, 2187, 296, 22057, 11...
self._debug('Close all connections to %r', dsn)
self.__logger.info('%r: Close all connections to %r', self, dsn)
def close_all(self, dsn): self._debug('Close all connections to %r', dsn) for i, (cnx, used) in tools.reverse_enumerate(self._connections): if dsn_are_equals(cnx.dsn, dsn): cnx.close() self._connections.pop(i)
6a457064353f36e0a90e79d5ff7e1fc66e4eb568 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6a457064353f36e0a90e79d5ff7e1fc66e4eb568/sql_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 67, 454, 12, 2890, 16, 11676, 4672, 365, 16186, 4901, 18, 1376, 29909, 86, 30, 3527, 777, 5921, 358, 738, 86, 2187, 365, 16, 11676, 13, 364, 277, 16, 261, 10305, 92, 16, 1399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 67, 454, 12, 2890, 16, 11676, 4672, 365, 16186, 4901, 18, 1376, 29909, 86, 30, 3527, 777, 5921, 358, 738, 86, 2187, 365, 16, 11676, 13, 364, 277, 16, 261, 10305, 92, 16, 1399, ...
debug("importing env %s=%s"%(var, os.environ[var]))
debug("importing %s=%s"%(var, os.environ[var]))
def import_env(self): whitelist = BB_ENV_WHITELIST if "BB_ENV_EXTRAWHITE" in os.environ: whitelist += os.environ["BB_ENV_EXTRAWHITE"].split() if "BB_ENV_EXTRAWHITE" in self.config: whitelist += self.config["BB_ENV_EXTRAWHITE"].split() for var in whitelist: if not var in self.config and var in os.environ: self.config[va...
bc7109b48adee86f6afaf482fde3d8cc38772b69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5897/bc7109b48adee86f6afaf482fde3d8cc38772b69/baker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3074, 12, 2890, 4672, 10734, 273, 21752, 67, 11986, 67, 16861, 7085, 309, 315, 9676, 67, 11986, 67, 4142, 10821, 44, 5398, 6, 316, 1140, 18, 28684, 30, 10734, 1011, 1140, 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, 1930, 67, 3074, 12, 2890, 4672, 10734, 273, 21752, 67, 11986, 67, 16861, 7085, 309, 315, 9676, 67, 11986, 67, 4142, 10821, 44, 5398, 6, 316, 1140, 18, 28684, 30, 10734, 1011, 1140, 18, ...
testStringWidthAlgorithms()
testStringWidthAlgorithms()
def test(): helv = TypeFace('Helvetica') registerTypeFace(helv) print helv.glyphNames[0:30] wombat = TypeFace('Wombat') print wombat.glyphNames registerTypeFace(wombat) dumpFontData()
2c48c7eda8db39df88d7f32d57fbcfb0fec2b8fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2c48c7eda8db39df88d7f32d57fbcfb0fec2b8fe/pdfmetrics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 13150, 90, 273, 1412, 11824, 2668, 44, 292, 90, 7943, 69, 6134, 1744, 559, 11824, 12, 76, 292, 90, 13, 1172, 13150, 90, 18, 19426, 1557, 63, 20, 30, 5082, 65, 225, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 13150, 90, 273, 1412, 11824, 2668, 44, 292, 90, 7943, 69, 6134, 1744, 559, 11824, 12, 76, 292, 90, 13, 1172, 13150, 90, 18, 19426, 1557, 63, 20, 30, 5082, 65, 225, 341, ...
return self._executeSingleFileCatalogFunction(lfn,'addFile',catalogs=catalogs) else: return self._executeFileCatalogFunction(lfn,'addFile',catalogs=catalogs) def removeCatalogFile(self,lfn,singleFile=False,catalogs=[]):
return self._executeSingleFileCatalogFunction( lfn, 'addFile', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'addFile', catalogs=catalogs ) def removeCatalogFile( self, lfn, singleFile=False, catalogs=[] ):
def addCatalogFile(self,lfn,singleFile=False,catalogs=[]): """ Add a new file to the FileCatalog 'lfn' is the dictionary containing the file properties """ if singleFile: return self._executeSingleFileCatalogFunction(lfn,'addFile',catalogs=catalogs) else: return self._executeFileCatalogFunction(lfn,'addFile',catalogs=...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 9769, 812, 12, 2890, 16, 80, 4293, 16, 7526, 812, 33, 8381, 16, 2574, 287, 14072, 33, 8526, 4672, 3536, 1436, 279, 394, 585, 358, 326, 1387, 9769, 225, 296, 80, 4293, 11, 353, 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, 527, 9769, 812, 12, 2890, 16, 80, 4293, 16, 7526, 812, 33, 8381, 16, 2574, 287, 14072, 33, 8526, 4672, 3536, 1436, 279, 394, 585, 358, 326, 1387, 9769, 225, 296, 80, 4293, 11, 353, 3...
resp['username']=self.username resp['realm']=chal['realm'] resp['nonce']=chal['nonce'] cnonce='OA6MHXh6VqTrRk'
resp['username']=self.username resp['realm']=chal['realm'] resp['nonce']=chal['nonce'] cnonce='' for i in range(7): cnonce+=hex(int(random.random()*65536*4096))[2:]
def SASLHandler(self,conn,challenge): if challenge.getNamespace()<>NS_SASL: return if challenge.getName()=='failure': self.startsasl='failure' try: reason=challenge.getChildren()[0] except: reason=challenge self._owner.DEBUG(DBG_SASL,'Failed SASL authentification: %s'%reason,'error') return elif challenge.getName()=='s...
ed9bbc187c416413336b1cec5d7c6ab176ee8864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/ed9bbc187c416413336b1cec5d7c6ab176ee8864/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24380, 48, 1503, 12, 2890, 16, 4646, 16, 25092, 4672, 309, 12948, 18, 588, 3402, 1435, 29667, 3156, 67, 55, 3033, 48, 30, 327, 309, 12948, 18, 17994, 1435, 18920, 12251, 4278, 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, 24380, 48, 1503, 12, 2890, 16, 4646, 16, 25092, 4672, 309, 12948, 18, 588, 3402, 1435, 29667, 3156, 67, 55, 3033, 48, 30, 327, 309, 12948, 18, 17994, 1435, 18920, 12251, 4278, 365, 18, ...
sendmess(mycontext["server_ip"], mycontext["udp_port"], get_mess(512))
sendmess(mycontext["server_ip"], mycontext["udp_port"], "0" * 512, ip, mycontext["upd_port"])
def get_mess(bytes): mess = "" for i in range(bytes): mess += "0" return mess
db230f22e4c679967a823e6a82d26e34a62ab76e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/db230f22e4c679967a823e6a82d26e34a62ab76e/BandwidthClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 81, 403, 12, 3890, 4672, 12755, 273, 1408, 364, 277, 316, 1048, 12, 3890, 4672, 12755, 1011, 315, 20, 6, 327, 12755, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 81, 403, 12, 3890, 4672, 12755, 273, 1408, 364, 277, 316, 1048, 12, 3890, 4672, 12755, 1011, 315, 20, 6, 327, 12755, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if ext in set(['.cc', '.cpp', '.cxx', '.c', '.C', '.s', '.S', '.bin', '.grit']): result.addFile(sources.cppsource(file, platforms, archs, doprocess, self.usepch))
if ext in set(['.cc', '.cpp', '.cxx', '.c', '.C', '.s', '.S', '.bin', '.grit', '.m', '.mm']): result.addFile(sources.cppsource(file, fileplatforms, filearchs, doprocess, self.usepch))
def scandir(self, path, local, process, platforms, archs, sourcelist = []): result = sources.directory()
c04f24b6cfc091cb371499211c80f4a4f0f88990 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/c04f24b6cfc091cb371499211c80f4a4f0f88990/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24865, 12, 2890, 16, 589, 16, 1191, 16, 1207, 16, 17422, 16, 6637, 87, 16, 272, 477, 2183, 376, 273, 5378, 4672, 563, 273, 5550, 18, 5149, 1435, 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, 24865, 12, 2890, 16, 589, 16, 1191, 16, 1207, 16, 17422, 16, 6637, 87, 16, 272, 477, 2183, 376, 273, 5378, 4672, 563, 273, 5550, 18, 5149, 1435, 2, -100, -100, -100, -100, -100, -100, ...
class DummyMain: def _registerCommand(*P, **K): pass
def getPluginManager(): cfg = buildcfg.BuildConfiguration(True, ignoreErrors=True) if not getattr(cfg, 'usePlugins', True): return plugins.PluginManager([]) disabledPlugins = [ x[0] for x in cfg.usePlugin.items() if not x[1] ] disabledPlugins.append('monitor') p = plugins.PluginManager(cfg.pluginDirs, disabledPlugins) ...
9ccac7b5e48aa634cb7db5f7bee3f782668fd8bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7644/9ccac7b5e48aa634cb7db5f7bee3f782668fd8bc/cook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16319, 1318, 13332, 2776, 273, 1361, 7066, 18, 3116, 1750, 12, 5510, 16, 2305, 4229, 33, 5510, 13, 309, 486, 3869, 12, 7066, 16, 296, 1202, 9461, 2187, 1053, 4672, 327, 4799, 18, 3773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16319, 1318, 13332, 2776, 273, 1361, 7066, 18, 3116, 1750, 12, 5510, 16, 2305, 4229, 33, 5510, 13, 309, 486, 3869, 12, 7066, 16, 296, 1202, 9461, 2187, 1053, 4672, 327, 4799, 18, 3773, ...
def BigFileRuns(rcsf): while 1: rand = random.Random() f1 = open(TMPDIR + "/big.1", "w") f2 = open(TMPDIR + "/big.2", "w") f1sz = 0 f2sz = 0 for file in rcsf.rcsfiles: if file.versions < 2: continue r1 = 0 r2 = 0 while r1 == r2: r1 = rand.randint(0, len(file.versions) - 1) r2 = rand.randint(0, len(file.versions) - 1) ...
def MakeBigFiles(rcsf): rand = random.Random() f1 = open(TMPDIR + "/big.1", "w") f2 = open(TMPDIR + "/big.2", "w") f1sz = 0 f2sz = 0 for file in rcsf.rcsfiles: if file.versions < 2: continue r1 = 0 r2 = 0 while r1 == r2: r1 = rand.randint(0, len(file.versions) - 1) r2 = rand.randint(0, len(file.versions) - 1) f1sz += f...
def BigFileRuns(rcsf): while 1: rand = random.Random() f1 = open(TMPDIR + "/big.1", "w") f2 = open(TMPDIR + "/big.2", "w") f1sz = 0 f2sz = 0 for file in rcsf.rcsfiles: if file.versions < 2: continue r1 = 0 r2 = 0 while r1 == r2: r1 = rand.randint(0, len(file.versions) - 1) r2 = rand.randint(0, len(file.versions) - 1) ...
6904a1f350fb8e16cfe391f76f3f707ad3703889 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9009/6904a1f350fb8e16cfe391f76f3f707ad3703889/xdelta3-regtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4454, 812, 9361, 12, 1310, 21668, 4672, 1323, 404, 30, 225, 5605, 273, 2744, 18, 8529, 1435, 284, 21, 273, 1696, 12, 28259, 4537, 397, 2206, 14002, 18, 21, 3113, 315, 91, 7923, 284, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4454, 812, 9361, 12, 1310, 21668, 4672, 1323, 404, 30, 225, 5605, 273, 2744, 18, 8529, 1435, 284, 21, 273, 1696, 12, 28259, 4537, 397, 2206, 14002, 18, 21, 3113, 315, 91, 7923, 284, 22...
query += self._substitution.transform(ref)
query += self._substitution.substituteOnly(ref)
def _makeChunkQuery(self, chunkId, table): # Prefix with empty subchunk spec. query = self._headerFunc() +"\n" ref = self._pConfig.chunkMapping.getMapReference(chunkId,0) query += self._createTableTmpl % table query += self._substitution.transform(ref) print query return query
54bb547ef5ce6fd3f5e025d6b1b003634b2d56b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6510/54bb547ef5ce6fd3f5e025d6b1b003634b2d56b0/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 5579, 1138, 12, 2890, 16, 2441, 548, 16, 1014, 4672, 468, 10139, 598, 1008, 720, 6551, 857, 18, 843, 273, 365, 6315, 3374, 2622, 1435, 397, 12691, 82, 6, 1278, 273, 365, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 5579, 1138, 12, 2890, 16, 2441, 548, 16, 1014, 4672, 468, 10139, 598, 1008, 720, 6551, 857, 18, 843, 273, 365, 6315, 3374, 2622, 1435, 397, 12691, 82, 6, 1278, 273, 365, 631...
result = trim(result)
def _do_query_directory(directory, category): sql = 'SELECT host.id, host.country, host_category_url.url, site.private, host.private ' sql += 'FROM host_category_dir, host_category, host_category_url, host, site ' sql += 'WHERE host_category_dir.host_category_id = host_category.id ' # join criteria sql += 'AND host_...
e15a52dbde749000bdad35402b0bc452c40a3f3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13031/e15a52dbde749000bdad35402b0bc452c40a3f3f/mirrorlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2271, 67, 5149, 12, 5149, 16, 3150, 4672, 1847, 225, 273, 296, 4803, 1479, 18, 350, 16, 1479, 18, 9082, 16, 1479, 67, 4743, 67, 718, 18, 718, 16, 2834, 18, 1152, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2271, 67, 5149, 12, 5149, 16, 3150, 4672, 1847, 225, 273, 296, 4803, 1479, 18, 350, 16, 1479, 18, 9082, 16, 1479, 67, 4743, 67, 718, 18, 718, 16, 2834, 18, 1152, 16, ...
req = Mock(Request, path_info='/build', args={}, hdf=HDFWrapper(), perm=PermissionCache(self.env, 'joe'))
req = Mock(Request, cgi_location='', path_info='/build', args={}, hdf=HDFWrapper(), perm=PermissionCache(self.env, 'joe'))
def test_overview_admin(self): PermissionSystem(self.env).grant_permission('joe', 'BUILD_ADMIN') req = Mock(Request, path_info='/build', args={}, hdf=HDFWrapper(), perm=PermissionCache(self.env, 'joe')) req.hdf['htdocs_location'] = '/htdocs'
31d623021a4051055a44ec529f842c01a8d178ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/31d623021a4051055a44ec529f842c01a8d178ba/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 26081, 67, 3666, 12, 2890, 4672, 8509, 3163, 12, 2890, 18, 3074, 2934, 16243, 67, 9827, 2668, 78, 15548, 2187, 296, 20215, 67, 15468, 6134, 1111, 273, 7867, 12, 691, 16, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26081, 67, 3666, 12, 2890, 4672, 8509, 3163, 12, 2890, 18, 3074, 2934, 16243, 67, 9827, 2668, 78, 15548, 2187, 296, 20215, 67, 15468, 6134, 1111, 273, 7867, 12, 691, 16, 276, ...
ld t1, ds, [scale, index, base], disp
ld t1, ds, [0, t0, t7], disp
def macroop AND_P_R
0e6be2a9b16660903306b2762e69a2678a54a6ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/0e6be2a9b16660903306b2762e69a2678a54a6ba/logical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 4116, 67, 52, 67, 54, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 4116, 67, 52, 67, 54, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if isinstance(p, bstyleoption):
if isinstance(p[opt], bstyleoption):
def invoke(self, tex): res = Base.Command.invoke(self, tex) try: s = self.styles[self.attributes['style']] except KeyError: # log.warning('Could not find bibstyle: "%s"', # self.attributes['style']) return res p = bibpunct.punctuation for i, opt in enumerate(['post','open','close','sep','style','date...
261e24412beff5697c6665d51635a2e3056f255b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/261e24412beff5697c6665d51635a2e3056f255b/natbib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 16, 16573, 4672, 400, 273, 3360, 18, 2189, 18, 14407, 12, 2890, 16, 16573, 13, 775, 30, 272, 273, 365, 18, 10218, 63, 2890, 18, 4350, 3292, 4060, 3546, 65, 1335, 4999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4356, 12, 2890, 16, 16573, 4672, 400, 273, 3360, 18, 2189, 18, 14407, 12, 2890, 16, 16573, 13, 775, 30, 272, 273, 365, 18, 10218, 63, 2890, 18, 4350, 3292, 4060, 3546, 65, 1335, 4999, ...
if document.stat.m_time != mtime:
docmtime = document.stat.st_mtime if docmtime != mtime:
def get_result(self, document): try: result, mtime = self._cache[document.unique_id] except KeyError: result = mtime = None if document.stat.m_time != mtime: result = self._get_result(document) mtime = document.stat.m_time self._cache[document.unique_id] = (result, mtime) return result
2ebcfaabc90a25bb5c97016d621acdd91403a27b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/2ebcfaabc90a25bb5c97016d621acdd91403a27b/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2088, 12, 2890, 16, 1668, 4672, 775, 30, 563, 16, 13158, 273, 365, 6315, 2493, 63, 5457, 18, 6270, 67, 350, 65, 1335, 4999, 30, 563, 273, 13158, 273, 599, 997, 10838, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2088, 12, 2890, 16, 1668, 4672, 775, 30, 563, 16, 13158, 273, 365, 6315, 2493, 63, 5457, 18, 6270, 67, 350, 65, 1335, 4999, 30, 563, 273, 13158, 273, 599, 997, 10838, 273, 1...
2 functions: 1. detect deletions. make sure the deletion is covered by the sequencing.
Two functions: 1. deletion_only=True. make sure the deletion is covered by the sequencing.
def discoverLerDeletionDuplication(cls, db_250k, ler_blast_result_fname, output_fname, deletion_only=True, min_no_of_matches=25): """ 2009-12-7 ler_blast_result_fname is the output of blasting all CNV probes against Ler contigs http://www.arabidopsis.org/browse/Cereon/index.jsp. 2 functions: 1. detect deletions. make s...
1440ce5092ec2e1bfdd9b1e187e40f109bf0000b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/1440ce5092ec2e1bfdd9b1e187e40f109bf0000b/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10372, 48, 264, 13064, 40, 89, 1254, 12, 6429, 16, 1319, 67, 26520, 79, 16, 328, 264, 67, 30901, 67, 2088, 67, 12749, 16, 876, 67, 12749, 16, 10899, 67, 3700, 33, 5510, 16, 1131, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10372, 48, 264, 13064, 40, 89, 1254, 12, 6429, 16, 1319, 67, 26520, 79, 16, 328, 264, 67, 30901, 67, 2088, 67, 12749, 16, 876, 67, 12749, 16, 10899, 67, 3700, 33, 5510, 16, 1131, 67,...
outFile.write("\n// @pymethod %s|%s|%s|%s\n" % (fields[0],thisModName,fields[1], fields[2]))
outFile.write("// @pymethod %s|%s|%s|%s\n" % (fields[0],thisModName,fields[1], fields[2]))
def make_doc_summary(inFile, outFile): methods = [] nativeMethods = [] modDoc = "" modName = "" lines = inFile.readlines() curMethod = None constants = [] extra_tags = [] lineNo = 0 bInRawBlock = 0 while lineNo < len(lines): line = lines[lineNo] if bInRawBlock and len(line)>2 and line[:2]=="%}": bInRawBlock = 0 if not ...
de6d785f6e32e155061010dd66103baf7ea116fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/de6d785f6e32e155061010dd66103baf7ea116fe/makedfromi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2434, 67, 7687, 12, 267, 812, 16, 21651, 4672, 2590, 273, 5378, 6448, 4712, 273, 5378, 681, 1759, 273, 1408, 681, 461, 273, 1408, 2362, 273, 316, 812, 18, 896, 3548, 1435, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2434, 67, 7687, 12, 267, 812, 16, 21651, 4672, 2590, 273, 5378, 6448, 4712, 273, 5378, 681, 1759, 273, 1408, 681, 461, 273, 1408, 2362, 273, 316, 812, 18, 896, 3548, 1435, 66...
['response', ['mesg_num octets', ...]].
['response', ['mesg_num octets', ...], octets].
def list(self, which=None): """Request listing, return result.
fc9f052e19f8490896d51accc3a4fd4cad2c7944 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fc9f052e19f8490896d51accc3a4fd4cad2c7944/poplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 1492, 33, 7036, 4672, 3536, 691, 11591, 16, 327, 563, 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, 666, 12, 2890, 16, 1492, 33, 7036, 4672, 3536, 691, 11591, 16, 327, 563, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.body.append (self.end_frametag())
self.out.append (self.end_frametag())
def depart_section (self, node): # Remove counter for potential subsections: LaTeXTranslator.depart_section (self, node) if (self.section_level == self.frame_level):#0 self.body.append (self.end_frametag())
7fa34d63a11663a7daeb27efb01eb826b364662a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/7fa34d63a11663a7daeb27efb01eb826b364662a/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 3464, 261, 2890, 16, 756, 4672, 468, 3581, 3895, 364, 8555, 720, 11657, 30, 21072, 21575, 60, 12233, 18, 323, 2680, 67, 3464, 261, 2890, 16, 756, 13, 309, 261, 2890, 18, 346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26000, 67, 3464, 261, 2890, 16, 756, 4672, 468, 3581, 3895, 364, 8555, 720, 11657, 30, 21072, 21575, 60, 12233, 18, 323, 2680, 67, 3464, 261, 2890, 16, 756, 13, 309, 261, 2890, 18, 346...
_verify_attributes('START SUITE', attrs, START_ATTRIBUTES+['longname'])
_verify_attributes('START SUITE', attrs, START_ATTRIBUTES+['longname', 'metadata'])
def start_suite(name, attrs): _verify_attributes('START SUITE', attrs, START_ATTRIBUTES+['longname'])
5656b9141c15cb69990f6904f643ad7af168a769 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/5656b9141c15cb69990f6904f643ad7af168a769/attributeverifyinglistener.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 30676, 12, 529, 16, 3422, 4672, 389, 8705, 67, 4350, 2668, 7570, 11726, 5398, 2187, 3422, 16, 10485, 67, 22308, 15, 3292, 5748, 529, 2187, 296, 4165, 19486, 225, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 30676, 12, 529, 16, 3422, 4672, 389, 8705, 67, 4350, 2668, 7570, 11726, 5398, 2187, 3422, 16, 10485, 67, 22308, 15, 3292, 5748, 529, 2187, 296, 4165, 19486, 225, 2, -100, -100, ...
"[private] save our current view into self.part [if not None] and forget about self.part"
""" [private] save our current view into self.part [if not None] and forget about self.part """
def _close_part(self): "[private] save our current view into self.part [if not None] and forget about self.part" if self.part: self._saveLastViewIntoPart( self.part) self.part = None
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4412, 67, 2680, 12, 2890, 4672, 3536, 306, 1152, 65, 1923, 3134, 783, 1476, 1368, 365, 18, 2680, 306, 430, 486, 599, 65, 471, 13776, 2973, 365, 18, 2680, 3536, 309, 365, 18, 2680,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4412, 67, 2680, 12, 2890, 4672, 3536, 306, 1152, 65, 1923, 3134, 783, 1476, 1368, 365, 18, 2680, 306, 430, 486, 599, 65, 471, 13776, 2973, 365, 18, 2680, 3536, 309, 365, 18, 2680,...
txt = None
def defrag(plist): """defrag(plist) -> ([not fragmented], [defragmented], [ [bad fragments], [bad fragments], ... ])""" frags = {} nofrag = PacketList() for p in plist: ip = p[IP] if IP not in p: nofrag.append(p) continue if ip.frag == 0 and ip.flags & 1 == 0: nofrag.append(p) continue uniq = (ip.id,ip.src,ip.dst,ip.pr...
7e8bdd8210586069d64921ecdcaff510dbd1286b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/7e8bdd8210586069d64921ecdcaff510dbd1286b/inet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1652, 2458, 12, 17842, 4672, 3536, 536, 2458, 12, 17842, 13, 317, 23265, 902, 5481, 329, 6487, 306, 536, 3520, 329, 6487, 306, 306, 8759, 14656, 6487, 306, 8759, 14656, 6487, 1372, 308, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1652, 2458, 12, 17842, 4672, 3536, 536, 2458, 12, 17842, 13, 317, 23265, 902, 5481, 329, 6487, 306, 536, 3520, 329, 6487, 306, 306, 8759, 14656, 6487, 306, 8759, 14656, 6487, 1372, 308, ...
pathname = pathname_match.group(1)
pathname = os.path.dirname(pathname_match.group(1))
def get_package_info(package_name, pkginfo, pkgchk): try: return package_info[package_name] except KeyError: version = None pathname = None try: sadm_contents = open('/var/sadm/install/contents', 'r').read() except EnvironmentError: pass else: sadm_re = re.compile('^(\S*/bin/CC)[= ].* %s$' % package_name, re.M) sadm_ma...
fcdfe52e8e4306230db7a4aa6f63caf302bb1402 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/fcdfe52e8e4306230db7a4aa6f63caf302bb1402/sunc++.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5610, 67, 1376, 12, 5610, 67, 529, 16, 3475, 1376, 16, 3475, 27038, 4672, 775, 30, 327, 2181, 67, 1376, 63, 5610, 67, 529, 65, 1335, 4999, 30, 1177, 273, 599, 9806, 273, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5610, 67, 1376, 12, 5610, 67, 529, 16, 3475, 1376, 16, 3475, 27038, 4672, 775, 30, 327, 2181, 67, 1376, 63, 5610, 67, 529, 65, 1335, 4999, 30, 1177, 273, 599, 9806, 273, 599...
print prog_path time.sleep(2)
def install(prog_path): """ <Purpose> Goes through all the steps necessary to install seattle on the current system, printing status messages if not in silent mode. <Arguments> prog_path: Path to the directory in which seattle is being installed. <Exceptions> UnsupportedPythonError if the Python version is unsupporte...
2fb22fab19b0909e3adbe521cbe0ba20e7837f8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/2fb22fab19b0909e3adbe521cbe0ba20e7837f8c/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 14654, 67, 803, 4672, 3536, 411, 10262, 4150, 34, 4220, 281, 3059, 777, 326, 6075, 4573, 358, 3799, 695, 4558, 298, 603, 326, 783, 2619, 16, 19171, 1267, 2743, 309, 486, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 14654, 67, 803, 4672, 3536, 411, 10262, 4150, 34, 4220, 281, 3059, 777, 326, 6075, 4573, 358, 3799, 695, 4558, 298, 603, 326, 783, 2619, 16, 19171, 1267, 2743, 309, 486, 316, ...
if not (typ in (DictType, ListType, TupleType) and object):
if not (typ in (DictType, ListType, TupleType, StringType) and object):
def _safe_repr(object, context, maxlevels=None, level=0): level += 1 typ = type(object) if not (typ in (DictType, ListType, TupleType) and object): rep = `object` return rep, (rep and (rep[0] != '<')), 0 if context.has_key(id(object)): return `_Recursion(object)`, 0, 1 objid = id(object) context[objid] = 1 readable =...
a0d993b2886056d71790b67f0f5714fc6bdd62ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a0d993b2886056d71790b67f0f5714fc6bdd62ef/pprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4626, 67, 12715, 12, 1612, 16, 819, 16, 943, 12095, 33, 7036, 16, 1801, 33, 20, 4672, 1801, 1011, 404, 3815, 273, 618, 12, 1612, 13, 309, 486, 261, 12846, 316, 261, 5014, 559, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4626, 67, 12715, 12, 1612, 16, 819, 16, 943, 12095, 33, 7036, 16, 1801, 33, 20, 4672, 1801, 1011, 404, 3815, 273, 618, 12, 1612, 13, 309, 486, 261, 12846, 316, 261, 5014, 559, 1...
ev = linalg.eigvals(a)
if a.dtype.type in (single, double): ad = a.astype(double) else: ad = a.astype(cdouble) ev = linalg.eigvals(ad)
def do(self, a, b): d = linalg.det(a) ev = linalg.eigvals(a) assert_almost_equal(d, multiply.reduce(ev))
cf0dd874261547add03a56baf14b4d5102f64f1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/cf0dd874261547add03a56baf14b4d5102f64f1e/test_linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 16, 279, 16, 324, 4672, 302, 273, 11818, 18, 8238, 12, 69, 13, 309, 279, 18, 8972, 18, 723, 316, 261, 7526, 16, 1645, 4672, 1261, 273, 279, 18, 689, 388, 12, 9056, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 16, 279, 16, 324, 4672, 302, 273, 11818, 18, 8238, 12, 69, 13, 309, 279, 18, 8972, 18, 723, 316, 261, 7526, 16, 1645, 4672, 1261, 273, 279, 18, 689, 388, 12, 9056, 1...