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
break
def test_fid(dataset, fd): query = [int(random.uniform(dataset[0], dataset[-1]) + 0.5) for i in xrange(1000)] query.sort() while 1: r1 = _fidtool.query_samples(fd, query) r2 = [reference_query(dataset, q) for q in query] if r1 == r2: print "Success" elif len(r1) != len(r2): print "Failure, len(r1)=%d, len(r2)=%d" % (len(r1), len(r2)) break else: for i, (j, k) in enumerate(zip(r1, r2)): if j != k: print "%d: %d != %d" % (query[i], j, k) else: print "%d: %d" % (query[i], j) break break random.shuffle(query)
abf38d6904a91701d32373e646f1cd9fefc06ffb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/abf38d6904a91701d32373e646f1cd9fefc06ffb/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 27268, 12, 8682, 16, 5194, 4672, 843, 273, 306, 474, 12, 9188, 18, 24120, 12, 8682, 63, 20, 6487, 3709, 18919, 21, 5717, 397, 374, 18, 25, 13, 364, 277, 316, 12314, 12, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27268, 12, 8682, 16, 5194, 4672, 843, 273, 306, 474, 12, 9188, 18, 24120, 12, 8682, 63, 20, 6487, 3709, 18919, 21, 5717, 397, 374, 18, 25, 13, 364, 277, 316, 12314, 12, 180...
track.flush()
def _mount(self): """mount proc and devpts into chroot""" mf = os.path.join(self.statedir, 'mounted-locations') track = open(mf, 'w+')
0da82906230f2f357462d9d3c9cd62ce6a934eec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7328/0da82906230f2f357462d9d3c9cd62ce6a934eec/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4778, 12, 2890, 4672, 3536, 4778, 5418, 471, 4461, 1092, 1368, 462, 3085, 8395, 14749, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 334, 690, 481, 16, 296, 4778, 329, 17, 12352, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4778, 12, 2890, 4672, 3536, 4778, 5418, 471, 4461, 1092, 1368, 462, 3085, 8395, 14749, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 334, 690, 481, 16, 296, 4778, 329, 17, 12352, 61...
NAME ====
def setDefaultGroup(self, groupName): """ NAME ====
748cbae21f60ac1c42057955f2dae32754c7f701 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/748cbae21f60ac1c42057955f2dae32754c7f701/grouprecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9277, 1114, 12, 2890, 16, 11619, 4672, 3536, 6048, 422, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9277, 1114, 12, 2890, 16, 11619, 4672, 3536, 6048, 422, 631, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0] for line in (p.stdout, p.stdin):
stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout:
def commit(self, db): self.file.close() try: os.unlink(self.name+".cab") except OSError: pass for k, v in [(r"Software\Microsoft\VisualStudio\7.1\Setup\VS", "VS7CommonBinDir"), (r"Software\Microsoft\Win32SDK\Directories", "Install Dir")]: try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, k) except WindowsError: continue cabarc = os.path.join(_winreg.QueryValueEx(key, v)[0], r"Bin", "cabarc.exe") _winreg.CloseKey(key) if not os.path.exists(cabarc):continue break else: print "WARNING: cabarc.exe not found in registry" cabarc = "cabarc.exe" cmd = r'"%s" -m lzx:21 n %s.cab @%s.txt' % (cabarc, self.name, self.name) p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0] for line in (p.stdout, p.stdin): if line.startswith(" -- adding "): sys.stdout.write(".") else: sys.stdout.write(line) sys.stdout.flush() if not os.path.exists(self.name+".cab"): raise IOError, "cabarc failed" add_data(db, "Media", [(1, self.index, None, "#"+self.name, None, None)]) add_stream(db, self.name, self.name+".cab") os.unlink(self.name+".txt") os.unlink(self.name+".cab") db.Commit()
5dc29ce8543975531042150cb5e883d43d2edef4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/5dc29ce8543975531042150cb5e883d43d2edef4/msilib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 1319, 4672, 365, 18, 768, 18, 4412, 1435, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 529, 9078, 18, 71, 378, 7923, 1335, 10002, 30, 1342, 364, 417, 16, 331, 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, 3294, 12, 2890, 16, 1319, 4672, 365, 18, 768, 18, 4412, 1435, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 529, 9078, 18, 71, 378, 7923, 1335, 10002, 30, 1342, 364, 417, 16, 331, 316,...
f = theano.function([c],p_y)
f = theano.function([c],p_y, mode=self.mode)
def test_basic(self): c = T.matrix() p_y = T.exp(c) / T.exp(c).sum(axis=1).dimshuffle(0,'x')
c9a3de79dcdc875b74479008f281f2f908339dd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/c9a3de79dcdc875b74479008f281f2f908339dd0/test_nnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 12, 2890, 4672, 276, 273, 399, 18, 5667, 1435, 293, 67, 93, 273, 399, 18, 2749, 12, 71, 13, 342, 399, 18, 2749, 12, 71, 2934, 1364, 12, 4890, 33, 21, 2934, 3509, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 12, 2890, 4672, 276, 273, 399, 18, 5667, 1435, 293, 67, 93, 273, 399, 18, 2749, 12, 71, 13, 342, 399, 18, 2749, 12, 71, 2934, 1364, 12, 4890, 33, 21, 2934, 3509, 3...
self.index = 0
def __init__(self, marker_elem=None): list.__init__(self) if isinstance(marker_elem, list): self.markers = marker_elem else: self.markers = [] self.index = 0 self.marker = None self.is_truncated = False self.next_token = None self.status = True
97eaa71c8249452bb0bb14f79d94d5be7d60e8d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/97eaa71c8249452bb0bb14f79d94d5be7d60e8d5/resultset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5373, 67, 10037, 33, 7036, 4672, 666, 16186, 2738, 972, 12, 2890, 13, 309, 1549, 12, 11145, 67, 10037, 16, 666, 4672, 365, 18, 22807, 273, 5373, 67, 1003...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5373, 67, 10037, 33, 7036, 4672, 666, 16186, 2738, 972, 12, 2890, 13, 309, 1549, 12, 11145, 67, 10037, 16, 666, 4672, 365, 18, 22807, 273, 5373, 67, 1003...
(linkerscript, PREFIX, sys.version[0:3]))
(linkerscript, PREFIX, get_python_version()))
def _init_posix(): """Initialize the module as appropriate for POSIX systems.""" g = {} # load the installed Makefile: try: filename = get_makefile_filename() parse_makefile(filename, g) except IOError, msg: my_msg = "invalid Python installation: unable to open %s" % filename if hasattr(msg, "strerror"): my_msg = my_msg + " (%s)" % msg.strerror raise DistutilsPlatformError(my_msg) # On MacOSX we need to check the setting of the environment variable # MACOSX_DEPLOYMENT_TARGET: configure bases some choices on it so # it needs to be compatible. # If it isn't set we set it to the configure-time value if sys.platform == 'darwin' and g.has_key('CONFIGURE_MACOSX_DEPLOYMENT_TARGET'): cfg_target = g['CONFIGURE_MACOSX_DEPLOYMENT_TARGET'] cur_target = os.getenv('MACOSX_DEPLOYMENT_TARGET', '') if cur_target == '': cur_target = cfg_target os.putenv('MACOSX_DEPLOYMENT_TARGET', cfg_target) if cfg_target != cur_target: my_msg = ('$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure' % (cur_target, cfg_target)) raise DistutilsPlatformError(my_msg) # On AIX, there are wrong paths to the linker scripts in the Makefile # -- these paths are relative to the Python source, but when installed # the scripts are in another directory. if python_build: g['LDSHARED'] = g['BLDSHARED'] elif sys.version < '2.1': # The following two branches are for 1.5.2 compatibility. if sys.platform == 'aix4': # what about AIX 3.x ? # Linker script is in the config directory, not in Modules as the # Makefile says. python_lib = get_python_lib(standard_lib=1) ld_so_aix = os.path.join(python_lib, 'config', 'ld_so_aix') python_exp = os.path.join(python_lib, 'config', 'python.exp') g['LDSHARED'] = "%s %s -bI:%s" % (ld_so_aix, g['CC'], python_exp) elif sys.platform == 'beos': # Linker script is in the config directory. In the Makefile it is # relative to the srcdir, which after installation no longer makes # sense. python_lib = get_python_lib(standard_lib=1) linkerscript_path = string.split(g['LDSHARED'])[0] linkerscript_name = os.path.basename(linkerscript_path) linkerscript = os.path.join(python_lib, 'config', linkerscript_name) # XXX this isn't the right place to do this: adding the Python # library to the link, if needed, should be in the "build_ext" # command. (It's also needed for non-MS compilers on Windows, and # it's taken care of for them by the 'build_ext.get_libraries()' # method.) g['LDSHARED'] = ("%s -L%s/lib -lpython%s" % (linkerscript, PREFIX, sys.version[0:3])) global _config_vars _config_vars = g
df37c8c1ad51b6f8527e2cd398788e49cd686654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/df37c8c1ad51b6f8527e2cd398788e49cd686654/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 24463, 13332, 3536, 7520, 326, 1605, 487, 5505, 364, 13803, 31773, 14908, 12123, 314, 273, 2618, 468, 1262, 326, 5876, 4344, 768, 30, 775, 30, 1544, 273, 336, 67, 6540, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 24463, 13332, 3536, 7520, 326, 1605, 487, 5505, 364, 13803, 31773, 14908, 12123, 314, 273, 2618, 468, 1262, 326, 5876, 4344, 768, 30, 775, 30, 1544, 273, 336, 67, 6540, 76...
propNameList.extend(["{hg:}status", "{hg:}branch", "{hg:}date", "{hg:}description", "{hg:}filerev", "{hg:}rev", "{hg:}user", ])
if self.fctx: propNameList.extend(["{hg:}status", "{hg:}branch", "{hg:}date", "{hg:}description", "{hg:}filerev", "{hg:}rev", "{hg:}user", ])
def getPropertyNames(self, isAllProp): """Return list of supported property names in Clark Notation. See DAVResource.getPropertyNames() """ # Let base class implementation add supported live and dead properties propNameList = super(HgResource, self).getPropertyNames(isAllProp) # Add custom live properties (report on 'allprop' and 'propnames') propNameList.extend(["{hg:}status", "{hg:}branch",
126f12fcf232c73d9cd657e7ec3dd9c38e417a63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8193/126f12fcf232c73d9cd657e7ec3dd9c38e417a63/hg_dav_provider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3911, 1557, 12, 2890, 16, 353, 1595, 4658, 4672, 3536, 990, 666, 434, 3260, 1272, 1257, 316, 3905, 1313, 2288, 367, 18, 225, 2164, 463, 5856, 1420, 18, 588, 29932, 1435, 3536, 468, 10559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3911, 1557, 12, 2890, 16, 353, 1595, 4658, 4672, 3536, 990, 666, 434, 3260, 1272, 1257, 316, 3905, 1313, 2288, 367, 18, 225, 2164, 463, 5856, 1420, 18, 588, 29932, 1435, 3536, 468, 10559...
_anchor_re = re.compile('[^\w\d]+')
_anchor_re = re.compile('[^\w\d\.-_:]+', re.UNICODE)
def format(self, text, out): if not text: return self.out = out self._open_tags = []
fe1cbe1699ebda30f1b9ed22e866ffb792f74054 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/fe1cbe1699ebda30f1b9ed22e866ffb792f74054/WikiFormatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 977, 16, 596, 4672, 309, 486, 977, 30, 327, 365, 18, 659, 273, 596, 365, 6315, 3190, 67, 4156, 273, 5378, 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, 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, 740, 12, 2890, 16, 977, 16, 596, 4672, 309, 486, 977, 30, 327, 365, 18, 659, 273, 596, 365, 6315, 3190, 67, 4156, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Returns a tuple of tuples, in the form: str hostname str path bool is_local int drive number int storage group ID int total space (in KB) int used space (in KB)
Returns a tuple of dictionaries, with the fields: str host - hostname str path - file system path bool islocal - is FS local to queried backend int dnr - drive number int sgid - storage group ID int bsize - block size (in bytes) int tspace - total space (in KB) int uspace - used space (in KB)
def getFreeSpace(self,all=False): """ Returns a tuple of tuples, in the form: str hostname str path bool is_local int drive number int storage group ID int total space (in KB) int used space (in KB) """ command = 'QUERY_FREE_SPACE' if all: command = 'QUERY_FREE_SPACE_LIST' res = self.backendCommand(command).split(BACKEND_SEP) dirs = [] for i in range(0,len(res)/9): line = [res[i*9]] line.append(res[i*9+1]) line.append(bool(int(res[i*9+2]))) line.append(int(res[i*9+3])) line.append(int(res[i*9+4])) line.append(self.joinInt(int(res[i*9+5]),int(res[i*9+6]))) line.append(self.joinInt(int(res[i*9+7]),int(res[i*9+8]))) dirs.append(tuple(line)) return tuple(dirs)
b277c9e60b8d642062814a71172390aa920ea53f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/b277c9e60b8d642062814a71172390aa920ea53f/MythTV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 992, 3819, 12, 2890, 16, 454, 33, 8381, 4672, 3536, 2860, 279, 3193, 434, 16176, 16, 598, 326, 1466, 30, 609, 282, 1479, 202, 202, 17, 5199, 609, 282, 589, 202, 202, 17, 585, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 992, 3819, 12, 2890, 16, 454, 33, 8381, 4672, 3536, 2860, 279, 3193, 434, 16176, 16, 598, 326, 1466, 30, 609, 282, 1479, 202, 202, 17, 5199, 609, 282, 589, 202, 202, 17, 585, 2...
return search_forest_iterator(self._roots, self._childs)
return search_forest_iterator(self._roots, self._children)
sage: def succ(l):
f267a0642a59e1808e00bcbe18399f8d154f25c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f267a0642a59e1808e00bcbe18399f8d154f25c0/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 21043, 12, 80, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 21043, 12, 80, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Left())
Left().CloseButton(True).MaximizeButton(True))
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN):
de824c0c9cec70a6369d011fb635c8ba12bdacea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de824c0c9cec70a6369d011fb635c8ba12bdacea/AUI_DockingWindowMgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 29711, 21, 16, 2077, 1546, 3113, 949, 33, 27226, 18, 1868, 2555, 16, 963, 33, 27226, 18, 1868, 1225, 16, 2154, 33, 27226, 18, 5280, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 29711, 21, 16, 2077, 1546, 3113, 949, 33, 27226, 18, 1868, 2555, 16, 963, 33, 27226, 18, 1868, 1225, 16, 2154, 33, 27226, 18, 5280, 67, 1...
self.globalNamespace = SlowGlobals(parent)
self.globalNamespace = parent.globalNamespace
def __init__(self, parent, newReference=DynamicIntReference): self.frame = jast.Identifier("frame")
0fe8b2af0188c27cde910b9b04c7852616aa5563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/0fe8b2af0188c27cde910b9b04c7852616aa5563/SimpleCompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 394, 2404, 33, 9791, 1702, 2404, 4672, 365, 18, 3789, 273, 525, 689, 18, 3004, 2932, 3789, 7923, 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, 982, 16, 394, 2404, 33, 9791, 1702, 2404, 4672, 365, 18, 3789, 273, 525, 689, 18, 3004, 2932, 3789, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -1...
return self.dataSplitter.getSplitInfo(jobNum)[DataSplitter.SEList] != []
return self.dataSplitter.getSplitInfo(jobNum).get(DataSplitter.SEList) != []
def canSubmit(self, jobNum): if self.checkSE and (self.dataSplitter != None): return self.dataSplitter.getSplitInfo(jobNum)[DataSplitter.SEList] != [] return True
93a456faf0c22bb4dbe3a0e8630cbf2d3bfef1af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8443/93a456faf0c22bb4dbe3a0e8630cbf2d3bfef1af/datamod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 11620, 12, 2890, 16, 1719, 2578, 4672, 309, 365, 18, 1893, 1090, 471, 261, 2890, 18, 892, 26738, 480, 599, 4672, 327, 365, 18, 892, 26738, 18, 588, 5521, 966, 12, 4688, 2578, 2934...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 11620, 12, 2890, 16, 1719, 2578, 4672, 309, 365, 18, 1893, 1090, 471, 261, 2890, 18, 892, 26738, 480, 599, 4672, 327, 365, 18, 892, 26738, 18, 588, 5521, 966, 12, 4688, 2578, 2934...
if self.dnaStyleBasesShape == 1: writesphere(color, a1pos, self.dnaStyleBasesScale) elif self.dnaStyleBasesShape == 2: aposn = a1pos + 0.50 * (a2pos - a1pos) bposn = a1pos + 0.66 * (a2pos - a1pos) cposn = a1pos + 0.75 * (a2pos - a1pos) writecylinder( a1pos, bposn, 0.20*self.dnaStyleBasesScale, color) if bname == 'G' \ or bname == 'A': writecylinder( aposn - 0.25 * self.dnaStyleBasesScale * normal, aposn + 0.25 * self.dnaStyleBasesScale * normal, 0.7*self.dnaStyleBasesScale, color) writecylinder( cposn - 0.25 * self.dnaStyleBasesScale * normal, cposn + 0.25 * self.dnaStyleBasesScale * normal, 0.9*self.dnaStyleBasesScale, color) else: writecylinder( bposn - 0.25 * self.dnaStyleBasesScale * normal, bposn + 0.25 * self.dnaStyleBasesScale * normal, 0.9*self.dnaStyleBasesScale, color)
if a1pos: if self.dnaStyleBasesShape == 1: writesphere(color, a1pos, self.dnaStyleBasesScale) elif self.dnaStyleBasesShape == 2: if a2pos: aposn = a1pos + 0.50 * (a2pos - a1pos) bposn = a1pos + 0.66 * (a2pos - a1pos) cposn = a1pos + 0.75 * (a2pos - a1pos) writecylinder( a1pos, bposn, 0.20*self.dnaStyleBasesScale, color) if bname == 'G' \ or bname == 'A': writecylinder( aposn - 0.25 * self.dnaStyleBasesScale * normal, aposn + 0.25 * self.dnaStyleBasesScale * normal, 0.7*self.dnaStyleBasesScale, color) writecylinder( cposn - 0.25 * self.dnaStyleBasesScale * normal, cposn + 0.25 * self.dnaStyleBasesScale * normal, 0.9*self.dnaStyleBasesScale, color) else: writecylinder( bposn - 0.25 * self.dnaStyleBasesScale * normal, bposn + 0.25 * self.dnaStyleBasesScale * normal, 0.9*self.dnaStyleBasesScale, color)
def writecone(color, pos1, pos2, rad1, rad2): file.write("cone {\n") file.write(" " + povpoint(chunk.base_to_abs(pos1))) file.write(", %g\n" % rad1) file.write(" " + povpoint(chunk.base_to_abs(pos2))) file.write(", %g\n" % rad2) file.write(" pigment {color <%g %g %g>}\n" % (color[0], color[1], color[2])) file.write("}\n")
b0ca865d3f0fc2d4922285fce3f6e711bcf4f3fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b0ca865d3f0fc2d4922285fce3f6e711bcf4f3fe/DnaCylinderChunks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 557, 476, 12, 3266, 16, 949, 21, 16, 949, 22, 16, 6719, 21, 16, 6719, 22, 4672, 585, 18, 2626, 2932, 71, 476, 18890, 82, 7923, 585, 18, 2626, 2932, 225, 315, 397, 293, 1527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 557, 476, 12, 3266, 16, 949, 21, 16, 949, 22, 16, 6719, 21, 16, 6719, 22, 4672, 585, 18, 2626, 2932, 71, 476, 18890, 82, 7923, 585, 18, 2626, 2932, 225, 315, 397, 293, 1527, ...
result = Server.select(AND(Server.q.enabled == 1, Server.q.baseurl != None, Server.q.country != '**'))
result = Server.select(AND(Server.q.enabled == 1, Server.q.country != '**'))
def main(): # # read config file # conffile = os.path.expanduser('~/.pingdrc') cp = ConfigParser.SafeConfigParser() cp.read(conffile) config = dict(cp.items('general')) LOGLEVEL = config.get('loglevel', 'INFO') LOGFILE = config.get('logfile', '/var/log/pingd') MAILTO = config.get('mailto', 'root@localhost') # # parse commandline # parser = OptionParser(usage="%prog [options] [<mirror identifier>+]", version="%prog 1.0") parser.add_option("-l", "--log", dest="logfile", default=LOGFILE, help="path to logfile", metavar="LOGFILE") parser.add_option("-L", "--loglevel", dest="loglevel", default=LOGLEVEL, help="Loglevel (DEBUG, INFO, WARNING, ERROR, CRITICAL)", metavar="LOGLEVEL") parser.add_option("-T", "--mailto", dest="mailto", default=MAILTO, help="email adress to mail warnings to", metavar="EMAIL") parser.add_option("-t", "--timeout", dest="timeout", default=60, help="Timeout in seconds", metavar="TIMEOUT") parser.add_option("-n", "--no-run", dest="no_run", default=False, action="store_true", help="don't update the database. Only look") parser.add_option("-e", "--enable-revived", dest="enable_revived", default=False, action="store_true", help="enable revived servers") (options, args) = parser.parse_args() socket.setdefaulttimeout(int(options.timeout)) # # set up logging # # to file logging.basicConfig(level=logging.getLevelName(options.loglevel), format=LOGFORMAT, datefmt=DATEFORMAT, filename=options.logfile, filemode='a') # to console console = logging.StreamHandler() console.setLevel(logging.getLevelName(options.loglevel)) formatter = logging.Formatter(LOGFORMAT, DATEFORMAT) console.setFormatter(formatter) logging.getLogger('').addHandler(console) # warnings will be mailed mail = logging.handlers.SMTPHandler('localhost', 'root@' + socket.gethostbyaddr(socket.gethostname())[0], options.mailto, 'pingd warning') mail.setLevel(logging.WARNING) mailformatter = logging.Formatter(LOGFORMAT, DATEFORMAT) mail.setFormatter(mailformatter) logging.getLogger('').addHandler(mail) # # setup database connection # uri_str = 'mysql://%s:%s@%s:%s/%s' if options.loglevel == 'DEBUG': uri_str += '?debug=1' uri = uri_str % (config['dbuser'], config['dbpass'], config['dbhost'], config['dbport'], config['dbname']) sqlhub.processConnection = connectionForURI(uri) class Server(SQLObject): class sqlmeta: fromDatabase = True # # get mirrors from database # mirrors = [] if args: # select all mirrors matching the given identifiers result = Server.select(Server.q.baseurl != '') for i in result: if i.identifier in args: mirrors.append(i) else: # select all enabled mirrors result = Server.select(AND(Server.q.enabled == 1, Server.q.baseurl != None, Server.q.country != '**')) for i in result: mirrors.append(i) if not mirrors: sys.exit('no mirrors found') # # start work # logging.info('----- %s mirrors to check' % len(mirrors)) for i, mirror in enumerate(mirrors): #mirror.status_baseurl_new = False #mirror.timed_out = True t = threading.Thread(target=ping_http, args=[mirrors[i]], name="pingThread-%s" % mirror.id) # thread will keep the program from terminating. t.setDaemon(0) t.start() while threading.activeCount() > 1: logging.debug('waiting for %s threads to exit' % (threading.activeCount() - 1)) time.sleep(1) for mirror in mirrors: # old failure if not mirror.statusBaseurl and not mirror.status_baseurl_new: if mirror.response_code and (mirror.response_code != 200): logging.warning("""%s: (%s): response code not 200: %s: %s
1b60ae32f5533732559f0bee947e200b61de52ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10990/1b60ae32f5533732559f0bee947e200b61de52ba/pingd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 468, 855, 642, 585, 468, 2195, 768, 273, 1140, 18, 803, 18, 12320, 1355, 2668, 98, 15865, 1382, 72, 1310, 6134, 3283, 273, 25076, 18, 9890, 809, 2678, 1435, 3283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 468, 468, 855, 642, 585, 468, 2195, 768, 273, 1140, 18, 803, 18, 12320, 1355, 2668, 98, 15865, 1382, 72, 1310, 6134, 3283, 273, 25076, 18, 9890, 809, 2678, 1435, 3283, ...
if resultNode(resp): return resp.getQueryPayload()[0].getTag('list',{'name':listname})
if resultNode(resp): return resp.getQueryPayload()[0]
def getPrivacyList(disp,listname): try: resp=disp.SendAndWaitForResponse(Iq('get',NS_PRIVACY,payload=[Node('list',{'name':listname})])) if resultNode(resp): return resp.getQueryPayload()[0].getTag('list',{'name':listname}) except: pass
d8ac2e919214806eb7127ce45cb0c52382f7e679 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/d8ac2e919214806eb7127ce45cb0c52382f7e679/features.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8248, 427, 3505, 682, 12, 25453, 16, 1098, 529, 4672, 775, 30, 1718, 33, 25453, 18, 3826, 1876, 29321, 1064, 12, 45, 85, 2668, 588, 2187, 3156, 67, 7698, 58, 2226, 61, 16, 7648, 22850,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8248, 427, 3505, 682, 12, 25453, 16, 1098, 529, 4672, 775, 30, 1718, 33, 25453, 18, 3826, 1876, 29321, 1064, 12, 45, 85, 2668, 588, 2187, 3156, 67, 7698, 58, 2226, 61, 16, 7648, 22850,...
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0] for line in (p.stdout, p.stdin):
stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout:
def commit(self, db): self.file.close() try: os.unlink(self.name+".cab") except OSError: pass for k, v in [(r"Software\Microsoft\VisualStudio\7.1\Setup\VS", "VS7CommonBinDir"), (r"Software\Microsoft\Win32SDK\Directories", "Install Dir")]: try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, k) except WindowsError: continue cabarc = os.path.join(_winreg.QueryValueEx(key, v)[0], r"Bin", "cabarc.exe") _winreg.CloseKey(key) if not os.path.exists(cabarc):continue break else: print "WARNING: cabarc.exe not found in registry" cabarc = "cabarc.exe" cmd = r'"%s" -m lzx:21 n %s.cab @%s.txt' % (cabarc, self.name, self.name) p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0] for line in (p.stdout, p.stdin): if line.startswith(" -- adding "): sys.stdout.write(".") else: sys.stdout.write(line) sys.stdout.flush() if not os.path.exists(self.name+".cab"): raise IOError, "cabarc failed" add_data(db, "Media", [(1, self.index, None, "#"+self.name, None, None)]) add_stream(db, self.name, self.name+".cab") os.unlink(self.name+".txt") os.unlink(self.name+".cab") db.Commit()
e89cd17dfa0f6a58a01aecdd050d1d61f492c53d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/e89cd17dfa0f6a58a01aecdd050d1d61f492c53d/msilib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 1319, 4672, 365, 18, 768, 18, 4412, 1435, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 529, 9078, 18, 71, 378, 7923, 1335, 10002, 30, 1342, 364, 417, 16, 331, 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, 3294, 12, 2890, 16, 1319, 4672, 365, 18, 768, 18, 4412, 1435, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 529, 9078, 18, 71, 378, 7923, 1335, 10002, 30, 1342, 364, 417, 16, 331, 316,...
logger.error("Failed to load plugin %s" % (plugin), exc_info=1)
logger.error("Failed to load plugin %s" % (plugin))
def init_plugins(self, plugin): try: mod = getattr(__import__("Bcfg2.Server.Plugins.%s" % (plugin)).Server.Plugins, plugin) except ImportError, e: try: mod = __import__(plugin) except: logger.error("Failed to load plugin %s" % (plugin), exc_info=1) return plug = getattr(mod, plugin) if plug.experimental: logger.info("Loading experimental plugin %s" % (plugin)) logger.info("NOTE: Interface subject to change") try: self.plugins[plugin] = plug(self, self.datastore) except PluginInitError: logger.error("Failed to instantiate plugin %s" % (plugin)) except: logger.error("Unexpected instantiation failure for plugin %s" % (plugin), exc_info=1)
f0fdd4a902717c7bfbdd5a636f771fb605cc5f4f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/f0fdd4a902717c7bfbdd5a636f771fb605cc5f4f/Core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 8057, 12, 2890, 16, 1909, 4672, 775, 30, 681, 273, 3869, 12, 972, 5666, 972, 2932, 38, 7066, 22, 18, 2081, 18, 9461, 7866, 87, 6, 738, 261, 4094, 13, 2934, 2081, 18, 9461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 8057, 12, 2890, 16, 1909, 4672, 775, 30, 681, 273, 3869, 12, 972, 5666, 972, 2932, 38, 7066, 22, 18, 2081, 18, 9461, 7866, 87, 6, 738, 261, 4094, 13, 2934, 2081, 18, 9461, ...
line2 = line[:line.find('(')]
line2 = line[:line.find('(') + 1]
out.append("#ifndef TINYPY_H")
79567b61549e89be44255c28058f8c3945dea63f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3895/79567b61549e89be44255c28058f8c3945dea63f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 596, 18, 6923, 2932, 7, 430, 82, 536, 399, 31853, 16235, 67, 44, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 596, 18, 6923, 2932, 7, 430, 82, 536, 399, 31853, 16235, 67, 44, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if self.listwrap == False:
if self.listwrap_mode == 0:
def set_go_navigation_sensitivities(self): if self.curr_img_in_list == 0: if self.listwrap == False: self.set_previous_image_sensitivities(False) else: self.set_previous_image_sensitivities(True) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(True) self.set_last_image_sensitivities(True) elif self.curr_img_in_list == len(self.image_list)-1: self.set_previous_image_sensitivities(True) self.set_first_image_sensitivities(True) if self.listwrap == False: self.set_next_image_sensitivities(False) else: self.set_next_image_sensitivities(True) self.set_last_image_sensitivities(False) else: self.set_previous_image_sensitivities(True) self.set_first_image_sensitivities(True) self.set_next_image_sensitivities(True) self.set_last_image_sensitivities(True)
5298dd3c59ec2b58930e739bd9a37bef9637074c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/5298dd3c59ec2b58930e739bd9a37bef9637074c/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3240, 67, 19537, 67, 87, 773, 305, 427, 1961, 12, 2890, 4672, 309, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 422, 374, 30, 309, 365, 18, 1098, 4113, 67, 3188, 422, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3240, 67, 19537, 67, 87, 773, 305, 427, 1961, 12, 2890, 4672, 309, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 422, 374, 30, 309, 365, 18, 1098, 4113, 67, 3188, 422, 374, ...
db = CountryByIP(db_file)
try: db = CountryByIP(db_file) except IOError, exc: import errno if exc.errno==errno.ENOENT: sys.exit('Database not found. Run update.py to create it.') else: sys.exit('Cannot open database: %s' % exc)
def __getitem__(self, ip): offset = 0 fp = self.fp for part in ip.split('.'): start = offset+int(part)*4 fp.seek(start) value = fp.read(4) assert len(value)==4 if value[:2]=='\xFF\xFF': if value[2:]=='\x00\x00': raise KeyError(ip) else: return value[2:] offset = struct.unpack('!I', value)[0] raise RuntimeError('ip2cc database is briken') # must never reach here
18140e6a4947032385dc45bb7a75517d092918b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8235/18140e6a4947032385dc45bb7a75517d092918b1/ip2cc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 2359, 4672, 1384, 273, 374, 4253, 273, 365, 18, 7944, 364, 1087, 316, 2359, 18, 4939, 2668, 1093, 4672, 787, 273, 1384, 15, 474, 12, 2680, 17653, 24, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 2359, 4672, 1384, 273, 374, 4253, 273, 365, 18, 7944, 364, 1087, 316, 2359, 18, 4939, 2668, 1093, 4672, 787, 273, 1384, 15, 474, 12, 2680, 17653, 24, 42...
elif os.name == 'os2':
elif os_name == 'os2':
def change_root (new_root, pathname): """Return 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to "os.path.join(new_root,pathname)". Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS. """ if os.name == 'posix' or os.name == 'java': if not os.path.isabs(pathname): return os.path.join(new_root, pathname) else: return os.path.join(new_root, pathname[1:]) elif os.name == 'nt': (drive, path) = os.path.splitdrive(pathname) if path[0] == '\\': path = path[1:] return os.path.join(new_root, path) elif os.name == 'os2': (drive, path) = os.path.splitdrive(pathname) if path[0] == os.sep: path = path[1:] return os.path.join(new_root, path) elif os.name == 'mac': if not os.path.isabs(pathname): return os.path.join(new_root, pathname) else: # Chop off volume name from start of path elements = string.split(pathname, ":", 1) pathname = ":" + elements[1] return os.path.join(new_root, pathname) else: raise DistutilsPlatformError, \ "nothing known about platform '%s'" % os.name
9e33cba3961e274d89624d142496163f10640ccb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6753/9e33cba3961e274d89624d142496163f10640ccb/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 3085, 261, 2704, 67, 3085, 16, 9806, 4672, 3536, 990, 296, 28336, 11, 598, 296, 2704, 67, 3085, 11, 26989, 18, 225, 971, 296, 28336, 11, 353, 3632, 16, 333, 353, 7680, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 3085, 261, 2704, 67, 3085, 16, 9806, 4672, 3536, 990, 296, 28336, 11, 598, 296, 2704, 67, 3085, 11, 26989, 18, 225, 971, 296, 28336, 11, 353, 3632, 16, 333, 353, 7680, 358, ...
print 'Phases for Hypo2000:'
msg = 'Phases for Hypo2000:' appendTextview(self.textviewStdOut, msg)
def doHyp2000(self): """ Writes input files for hyp2000 and starts the hyp2000 program via a system call. Information on the file formats can be found at: http://geopubs.wr.usgs.gov/open-file/of02-171/of02-171.pdf p.30
4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 44, 879, 17172, 12, 2890, 4672, 3536, 30053, 810, 1390, 364, 16117, 17172, 471, 2542, 326, 16117, 17172, 5402, 3970, 279, 2619, 745, 18, 15353, 603, 326, 585, 6449, 848, 506, 1392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 44, 879, 17172, 12, 2890, 4672, 3536, 30053, 810, 1390, 364, 16117, 17172, 471, 2542, 326, 16117, 17172, 5402, 3970, 279, 2619, 745, 18, 15353, 603, 326, 585, 6449, 848, 506, 1392, ...
temprp = TempFile.new_in_dir(Globals.rbdir) writer = metadata.MetadataFile(temprp, 'w', check_path = 0)
temprp = [TempFile.new_in_dir(Globals.rbdir)] def callback(rp): temprp[0] = rp writer = metadata.MetadataFile(temprp[0], 'w', check_path = 0, callback = callback)
def recreate_meta(meta_manager): """Make regress_time mirror_metadata snapshot by patching We write to a tempfile first. Otherwise, in case of a crash, it would seem we would have an intact snapshot and partial diff, not the reverse. """ temprp = TempFile.new_in_dir(Globals.rbdir) writer = metadata.MetadataFile(temprp, 'w', check_path = 0) for rorp in meta_manager.get_meta_at_time(regress_time, None): writer.write_object(rorp) writer.close() finalrp = Globals.rbdir.append("mirror_metadata.%s.snapshot.gz" % Time.timetostring(regress_time)) assert not finalrp.lstat(), finalrp rpath.rename(temprp, finalrp) if Globals.fsync_directories: Globals.rbdir.fsync()
6d2baeb3fdaa9646127554421913f348ccf35afd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8033/6d2baeb3fdaa9646127554421913f348ccf35afd/regress.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23052, 67, 3901, 12, 3901, 67, 4181, 4672, 3536, 6464, 960, 663, 67, 957, 15593, 67, 4165, 4439, 635, 4729, 310, 225, 1660, 1045, 358, 279, 13275, 1122, 18, 225, 5272, 16, 316, 648, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23052, 67, 3901, 12, 3901, 67, 4181, 4672, 3536, 6464, 960, 663, 67, 957, 15593, 67, 4165, 4439, 635, 4729, 310, 225, 1660, 1045, 358, 279, 13275, 1122, 18, 225, 5272, 16, 316, 648, 43...
counts = unpack('<qqq', extra[4:28])
counts = unpack('<QQQ', extra[4:28])
def _decodeExtra(self): # Try to decode the extra field. extra = self.extra unpack = struct.unpack while extra: tp, ln = unpack('<hh', extra[:4]) if tp == 1: if ln >= 24: counts = unpack('<qqq', extra[4:28]) elif ln == 16: counts = unpack('<qq', extra[4:20]) elif ln == 8: counts = unpack('<q', extra[4:12]) elif ln == 0: counts = () else: raise RuntimeError, "Corrupt extra field %s"%(ln,)
bf02e3bb21b2d75cba4ce409a14ae64dbc2dd6d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/bf02e3bb21b2d75cba4ce409a14ae64dbc2dd6d2/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 7800, 12, 2890, 4672, 468, 6161, 358, 2495, 326, 2870, 652, 18, 2870, 273, 365, 18, 7763, 6167, 273, 1958, 18, 17309, 1323, 2870, 30, 8071, 16, 7211, 273, 6167, 2668, 32, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 7800, 12, 2890, 4672, 468, 6161, 358, 2495, 326, 2870, 652, 18, 2870, 273, 365, 18, 7763, 6167, 273, 1958, 18, 17309, 1323, 2870, 30, 8071, 16, 7211, 273, 6167, 2668, 32, 21...
os.execle(*args)
DEBUG(EXTCGI, 'args is %s' % repr(args)) oldpwd = os.getcwd() try: os.chdir(os.path.split(env["PATH_TRANSLATED"])[0]) os.execle(*args) finally: os.chdir(oldpwd)
def _processRequest(conn, sessionDict): DEBUG(EXTCGI, 'extcgi Processing Request') #dict of environ, headers, stdin kid_stdin, parent_to_kid_stdin = os.pipe() parent_to_kid_stdout, kid_stdout = os.pipe() parent_to_kid_stderr, kid_stderr = os.pipe() pid = os.fork() try: if pid: #ok I'm the parent DEBUG(EXTCGI, 'child pid is %d' % pid) #close kid sides os.close(kid_stdin) os.close(kid_stdout) os.close(kid_stderr) stdin = conn._stdin return _doCGI(conn, pid, parent_to_kid_stdin, parent_to_kid_stdout, parent_to_kid_stderr, stdin) else: #I'm the kid #close parent side of pipes os.close(parent_to_kid_stdin) os.close(parent_to_kid_stdout) os.close(parent_to_kid_stderr) #dup kid sides to my stdin/out/err os.dup2(kid_stdin, 0) os.dup2(kid_stdout, 1) os.dup2(kid_stderr, 2) env = _fix(conn.env) if DEBUGIT(EXTCGI): DEBUG(EXTCGI, "environment is %s" % _dispenv(env)) prog = Configuration.CGIProgram args = ( (prog,) + (prog,) + Configuration.CGIProgramArgs +(env,)) #DEBUG(EXTCGI, 'args is %s' % repr(args)) os.execle(*args) except: if pid == 0: #I'm the kid logException() #give the parent some info as to why I died os.write(kid_stderr, "exception executing CGI : %s %s" % ( sys.exc_info()[0], sys.exc_info()[1])) DEBUG(EXTCGI, "I'm still here! killing self"); os.kill(os.getpid(), 9) else: #I'm the parent e, t, tb = sys.exc_info() try: os.kill(pid, 9) # we screwed up, kill kid except: #in event that it's already dead, that's ok too pass raise e, t, tb
084dad750a0fb515032b35c8991d1cf419f1dbf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/084dad750a0fb515032b35c8991d1cf419f1dbf8/extcgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 691, 12, 4646, 16, 1339, 5014, 4672, 6369, 12, 4142, 39, 13797, 16, 296, 408, 19062, 19652, 1567, 6134, 468, 1576, 434, 5473, 16, 1607, 16, 8801, 17395, 67, 21772, 16, 982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2567, 691, 12, 4646, 16, 1339, 5014, 4672, 6369, 12, 4142, 39, 13797, 16, 296, 408, 19062, 19652, 1567, 6134, 468, 1576, 434, 5473, 16, 1607, 16, 8801, 17395, 67, 21772, 16, 982, ...
print "major_idx",major_idx
minor = dates[year_start[(years % min_anndef == 0)]]
4112b0479c1d88be72e39db02bd49cdabdc15a77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/4112b0479c1d88be72e39db02bd49cdabdc15a77/mpl_timeseries_pgm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 8439, 273, 7811, 63, 6874, 67, 1937, 63, 12, 29391, 738, 1131, 67, 1072, 536, 422, 374, 13, 13563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 8439, 273, 7811, 63, 6874, 67, 1937, 63, 12, 29391, 738, 1131, 67, 1072, 536, 422, 374, 13, 13563, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print column_score
def information_content(self, start = 0, end = None, e_freq_table = None, log_base = 2, chars_to_ignore = []): """Calculate the information content for each residue along an alignment.
2b305e2ada1ece190ed5ce68295f8b7589ecb457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/2b305e2ada1ece190ed5ce68295f8b7589ecb457/AlignInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1779, 67, 1745, 12, 2890, 16, 787, 273, 374, 16, 679, 273, 599, 16, 425, 67, 10212, 67, 2121, 273, 599, 16, 613, 67, 1969, 273, 576, 16, 5230, 67, 869, 67, 6185, 273, 5378, 4672, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1779, 67, 1745, 12, 2890, 16, 787, 273, 374, 16, 679, 273, 599, 16, 425, 67, 10212, 67, 2121, 273, 599, 16, 613, 67, 1969, 273, 576, 16, 5230, 67, 869, 67, 6185, 273, 5378, 4672, 3...
if n == 0 and uri[i] == '
if n == 0 and i<len(uri) and uri[i] == '
def refTo(base, uri): """figure out a relative URI reference from base to uri >>> refTo('http://example/x/y/z', 'http://example/x/abc') '../abc' >>> refTo('file:/ex/x/y', 'file:/ex/x/q/r#s') 'q/r#s' >>> refTo(None, 'http://ex/x/y') 'http://ex/x/y' >>> refTo('http://ex/x/y', 'http://ex/x/y') '' Note the relationship between refTo and join: join(x, refTo(x, y)) == y which points out certain strings which cannot be URIs. e.g. >>> x='http://ex/x/y';y='http://ex/x/q:r';join(x, refTo(x, y)) == y 0 So 'http://ex/x/q:r' is not a URI. Use 'http://ex/x/q%3ar' instead: >>> x='http://ex/x/y';y='http://ex/x/q%3ar';join(x, refTo(x, y)) == y 1 This one checks that it uses a root-realtive one where that is all they share. Now uses root-relative where no path is shared. This is a matter of taste but tends to give more resilience IMHO -- and shorter paths Note that base may be None, meaning no base. In some situations, there just ain't a base. Slife. In these cases, relTo returns the absolute value. The axiom abs(,rel(b,x))=x still holds. This saves people having to set the base to "bogus:". >>> refTo('http://ex/x/y/z', 'http://ex/r') '/r' """
23f7c5ad8281ea95c4ad2358680ee9eed685a26b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/23f7c5ad8281ea95c4ad2358680ee9eed685a26b/uripath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1278, 774, 12, 1969, 16, 2003, 4672, 3536, 19675, 596, 279, 3632, 3699, 2114, 628, 1026, 358, 2003, 225, 4080, 1278, 774, 2668, 2505, 2207, 8236, 19, 92, 19, 93, 19, 94, 2187, 296, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1278, 774, 12, 1969, 16, 2003, 4672, 3536, 19675, 596, 279, 3632, 3699, 2114, 628, 1026, 358, 2003, 225, 4080, 1278, 774, 2668, 2505, 2207, 8236, 19, 92, 19, 93, 19, 94, 2187, 296, 250...
d += [Dependency(['openal', 'openal32', 'OpenAL32'], ['AL/al.h'])]
d += [Dependency(['openal', 'openal32', 'OpenAL32', 'soft_oal'], ['AL/al.h'])]
def CheckHeadersAndLibraries(env, conf): print "\nChecking headers and libraries" boost_common = Dependency([], ['boost/cstdint.hpp']) boost_thread = Dependency(['boost_thread'], ['boost/thread.hpp']) boost_regex = Dependency(['boost_regex'], ['boost/regex.hpp']) boost_serial = Dependency([], ['boost/serialization/split_member.hpp']) boost_po = Dependency(['boost_program_options'], ['boost/program_options.hpp']) boost_system = Dependency(['boost_system'], ['boost/system/error_code.hpp']) boost_signals = Dependency(['boost_signals'], ['boost/signal.hpp']) if env.Dictionary('CC').find('gcc') != -1: gcc = True else: gcc = False for boost in (boost_thread, boost_regex, boost_po, boost_system, boost_signals): l = boost.libraries[0] if gcc: boost.libraries = [l+'-gcc-mt', l+'-mt', l+'-gcc', l] else: boost.libraries = [l+'-mt', l] d = [boost_common, boost_regex, boost_serial, boost_thread, boost_po, boost_system, boost_signals] d += [Dependency(['GL', 'opengl32'], ['GL/gl.h'])] d += [Dependency(['GLU', 'glu32'], ['GL/glu.h'])] d += [Dependency(['GLEW', 'glew32'], ['GL/glew.h'])] d += [Dependency(['zlib', 'zlib1', 'z'], ['zlib.h'])] d += [Dependency(['freetype6', 'freetype'], ['ft2build.h'])] d += [Dependency(['IL', 'devil'], ['IL/il.h'])] d += [Dependency(['ILU', 'ilu'], ['IL/ilu.h'])] d += [Dependency(['openal', 'openal32', 'OpenAL32'], ['AL/al.h'])] if env['platform'] == 'windows': d += [Dependency(['imagehlp'], [])] d += [Dependency(['gdi32'], [])] d += [Dependency(['winmm'], [])] d += [Dependency(['wsock32'], [])] d += [Dependency(['ole32'], [])] d += [Dependency(['mingw32'], [])] d += [Dependency(['SDLmain'], [])] d += [Dependency(['ws2_32'], [])] else: d += [Dependency(['Xcursor'], ['X11/Xcursor/Xcursor.h'])] d += [Dependency(['X11'], ['X11/X.h'])] d += [Dependency(['vorbisfile'], ['vorbis/vorbisfile.h'])] d += [Dependency(['vorbis'], [])] d += [Dependency(['ogg'], ['ogg/ogg.h'])] d += [Dependency(['SDL', 'SDL-1.1'], ['SDL/SDL.h', 'SDL11/SDL.h'])] d += [Dependency([], ['jni.h'])] if env['use_tcmalloc']: d += [Dependency(['tcmalloc'], [])] all_succes = True for c in d: if not c.CheckHeaders(conf) or not c.CheckLibraries(conf): all_succes = False if not all_succes: print "Not all tests finished successfully. You are probably missing one of the" print "build dependencies. See config.log for details." env.Exit(1)
62b3bb98beb87ea8ef11b2a66124913a2e3c9657 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1030/62b3bb98beb87ea8ef11b2a66124913a2e3c9657/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 3121, 1876, 31909, 12, 3074, 16, 2195, 4672, 1172, 1548, 82, 14294, 1607, 471, 14732, 6, 225, 14994, 67, 6054, 273, 11993, 3816, 6487, 10228, 25018, 19, 71, 5084, 474, 18, 76, 1185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 3121, 1876, 31909, 12, 3074, 16, 2195, 4672, 1172, 1548, 82, 14294, 1607, 471, 14732, 6, 225, 14994, 67, 6054, 273, 11993, 3816, 6487, 10228, 25018, 19, 71, 5084, 474, 18, 76, 1185...
return fcntl.ioctl(self.sockfd.fileno(), request, args, True)
return fcntl.ioctl(self.sockfd.fileno(), request, args)
def _fcntl(self, request, args): return fcntl.ioctl(self.sockfd.fileno(), request, args, True)
a0c6778601c258c57dff98e4b8282d8e013659d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/a0c6778601c258c57dff98e4b8282d8e013659d3/iwlibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7142, 16681, 12, 2890, 16, 590, 16, 833, 4672, 327, 30894, 18, 1594, 12930, 12, 2890, 18, 15031, 8313, 18, 7540, 5764, 9334, 590, 16, 833, 16, 1053, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7142, 16681, 12, 2890, 16, 590, 16, 833, 4672, 327, 30894, 18, 1594, 12930, 12, 2890, 18, 15031, 8313, 18, 7540, 5764, 9334, 590, 16, 833, 16, 1053, 13, 2, -100, -100, -100, -100,...
strAbout = "You are using the tovid GUI, version 0.24,\n" \
strAbout = "You are using the tovid GUI, version 0.27,\n" \
def OnAbout(self, evt): """Display a dialog showing information about tovidgui.""" strAbout = "You are using the tovid GUI, version 0.24,\n" \ "part of the tovid video disc authoring suite.\n\n" \ "For more information and documentation, please\n" \ "visit the tovid web site:\n\n" \ "http://tovid.org/" dlgAbout = wx.MessageDialog(self, strAbout, "About tovid GUI", wx.OK) dlgAbout.ShowModal()
80d726959364d3e0d28631a55780d268a3a77098 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2305/80d726959364d3e0d28631a55780d268a3a77098/frames.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 24813, 12, 2890, 16, 6324, 4672, 3536, 4236, 279, 6176, 17253, 1779, 2973, 358, 1246, 20292, 12123, 609, 24813, 273, 315, 6225, 854, 1450, 326, 358, 1246, 10978, 16, 1177, 374, 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, 2755, 24813, 12, 2890, 16, 6324, 4672, 3536, 4236, 279, 6176, 17253, 1779, 2973, 358, 1246, 20292, 12123, 609, 24813, 273, 315, 6225, 854, 1450, 326, 358, 1246, 10978, 16, 1177, 374, 18, ...
if m[0] != '_' and m != 'config':
if m[0] != '_' and m != 'config' and m != 'configure':
def __init__(self, master=None, cnf={}, **kw): if kw: cnf = _cnfmerge((cnf, kw)) fcnf = {} for k in cnf.keys(): if type(k) == ClassType or k == 'name': fcnf[k] = cnf[k] del cnf[k] self.frame = apply(Frame, (master,), fcnf) self.vbar = Scrollbar(self.frame, name='vbar') self.vbar.pack(side=RIGHT, fill=Y) cnf['name'] = 'text' apply(Text.__init__, (self, self.frame), cnf) self.pack(side=LEFT, fill=BOTH, expand=1) self['yscrollcommand'] = self.vbar.set self.vbar['command'] = self.yview
e04bfaf2628e818f39ce2fb9497939c42a6d039d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e04bfaf2628e818f39ce2fb9497939c42a6d039d/ScrolledText.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 309, 5323, 30, 23118, 273, 389, 10305, 74, 2702, 12443, 10305, 74, 16, 5323, 3719, 8036, 82, 74, 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, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 309, 5323, 30, 23118, 273, 389, 10305, 74, 2702, 12443, 10305, 74, 16, 5323, 3719, 8036, 82, 74, 273, ...
return kw + "|" + builtin + "|" + comment + "|" + string + "|" + any("SYNC", [r"\n"])
return kw + "|" + builtin + "|" + comment + "|" + string +\ "|" + any("SYNC", [r"\n"])
def make_pat(): kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b" builtinlist = [str(name) for name in dir(__builtin__) if not name.startswith('_')] builtin = r"([^\\.]\b|^)" + any("BUILTIN", builtinlist) + r"\b" comment = any("COMMENT", [r"#[^\n]*"]) sqstring = r"(\b[rR])?'[^'\\\n]*(\\.[^'\\\n]*)*'?" dqstring = r'(\b[rR])?"[^"\\\n]*(\\.[^"\\\n]*)*"?' sq3string = r"(\b[rR])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?" dq3string = r'(\b[rR])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?' string = any("STRING", [sq3string, dq3string, sqstring, dqstring]) return kw + "|" + builtin + "|" + comment + "|" + string + "|" + any("SYNC", [r"\n"])
252b1b5cce18ce424fd13f1508a3e1d43aace433 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/252b1b5cce18ce424fd13f1508a3e1d43aace433/ColorDelegator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16330, 13332, 5323, 273, 436, 12691, 70, 6, 397, 1281, 2932, 28813, 3113, 4932, 18, 9987, 1098, 13, 397, 436, 12691, 70, 6, 15273, 1098, 273, 306, 701, 12, 529, 13, 364, 508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16330, 13332, 5323, 273, 436, 12691, 70, 6, 397, 1281, 2932, 28813, 3113, 4932, 18, 9987, 1098, 13, 397, 436, 12691, 70, 6, 15273, 1098, 273, 306, 701, 12, 529, 13, 364, 508,...
for entrypoints in pkg_resources.iter_entry_points():
for entrypoints in pkg_resources.iter_entry_points(entry_point):
def rev_py_annotator(use_dict, entry_point, verbose=False): """ update revert dict by python plugins 'verbose' argument is only for debug(will generate too mush messages). """ for entrypoints in pkg_resources.iter_entry_points(): tool = entrypoints.load() if verbose: print tool.title rev_merger(tool.keyword, use_dict)
2a50941be1a6c8368a3d1c517506ec114dd7579d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/2a50941be1a6c8368a3d1c517506ec114dd7579d/pyzh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 67, 2074, 67, 18338, 639, 12, 1202, 67, 1576, 16, 1241, 67, 1153, 16, 3988, 33, 8381, 4672, 3536, 1089, 15226, 2065, 635, 5790, 4799, 225, 296, 11369, 11, 1237, 353, 1338, 364, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 67, 2074, 67, 18338, 639, 12, 1202, 67, 1576, 16, 1241, 67, 1153, 16, 3988, 33, 8381, 4672, 3536, 1089, 15226, 2065, 635, 5790, 4799, 225, 296, 11369, 11, 1237, 353, 1338, 364, 1...
t.AddCellInfo(row, col, colspan=3)
t.AddCellInfo(row, col-1, align='right') t.AddRow([Bold('Message Headers:'), TextArea('headers-%d' % id, string.join(msg.headers, ''), rows=10, cols=80)]) row, col = t.GetCurrentRowIndex(), t.GetCurrentCellIndex() t.AddCellInfo(row, col-1, align='right')
def PrintPostRequest(mlist, id, info, total, count, form): # For backwards compatibility with pre 2.0beta3 if len(info) == 5: ptime, sender, subject, reason, filename = info else: ptime, sender, subject, reason, filename, msgdata = info form.AddItem('<hr>') msg = 'Posting Held for Approval' if total <> 1: msg = msg + ' (%d of %d)' % (count, total) form.AddItem(Center(Header(2, msg))) try: fp = open(os.path.join(mm_cfg.DATA_DIR, filename)) text = fp.read(mm_cfg.ADMINDB_PAGE_TEXT_LIMIT) fp.close() except IOError, (code, msg): if code == ENOENT: form.AddItem('<em>Message with id #%d was lost.' % id) form.AddItem('<p>') # TBD: kludge to remove id from requests.db. value==2 means # discard the message. try: mlist.HandleRequest(id, 2, None) except Errors.LostHeldMessage: pass return raise t = Table(cellspacing=0, cellpadding=0) t.AddRow([Bold('From:'), sender]) t.AddRow([Bold('Reason:'), reason]) t.AddRow([Bold('Subject:'), subject]) t.AddRow([ Bold('Action:'), RadioButtonArray(id, ("Approve", "Reject", "Discard (eg, spam)")) ]) t.AddRow([ Bold('If you reject this post, explain (optional):'), TextArea('comment-%d' % id, rows=4, cols=60, text=("Please do *not* post administrative requests" " to the mailing list! If you wish to subscribe," " visit %s or send a 'help' message to the" " the request address, %s , for instructions" % (mlist.GetAbsoluteScriptURL('listinfo'), mlist.GetRequestEmail()))) ]) row, col = t.GetCurrentRowIndex(), t.GetCurrentCellIndex() t.AddCellInfo(row, col, colspan=3) t.AddRow([Bold('Message Excerpt:'), TextArea('fulltext-%d' % id, text, rows=10, cols=60)]) row, col = t.GetCurrentRowIndex(), t.GetCurrentCellIndex() t.AddCellInfo(row, col, colspan=3) form.AddItem(t) form.AddItem('<p>')
0e0816f35de4f619d87b3444d07ec6d696c1b681 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0e0816f35de4f619d87b3444d07ec6d696c1b681/admindb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 3349, 691, 12, 781, 376, 16, 612, 16, 1123, 16, 2078, 16, 1056, 16, 646, 4672, 468, 2457, 12727, 8926, 598, 675, 576, 18, 20, 5758, 23, 309, 562, 12, 1376, 13, 422, 1381, 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, 3038, 3349, 691, 12, 781, 376, 16, 612, 16, 1123, 16, 2078, 16, 1056, 16, 646, 4672, 468, 2457, 12727, 8926, 598, 675, 576, 18, 20, 5758, 23, 309, 562, 12, 1376, 13, 422, 1381, 30, ...
description = _("Full CSV list import plugin") author = "Jessica Katharina Parth"
description = _("Full CSV list import plugin") author = "Jessica Katharina Parth"
def letters_only(s): import string, re _match = re.compile(r"\D+") try: s = reduce( unicode.join, _match.findall(s) ) except: s = unicode(s) return s
8dd23db0ad40a315c4c2431088bf2a98189408a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2687/8dd23db0ad40a315c4c2431088bf2a98189408a8/CSV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13768, 67, 3700, 12, 87, 4672, 1930, 533, 16, 283, 389, 1916, 273, 283, 18, 11100, 12, 86, 12691, 40, 15, 7923, 775, 30, 272, 273, 5459, 12, 5252, 18, 5701, 16, 389, 1916, 18, 4720, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13768, 67, 3700, 12, 87, 4672, 1930, 533, 16, 283, 389, 1916, 273, 283, 18, 11100, 12, 86, 12691, 40, 15, 7923, 775, 30, 272, 273, 5459, 12, 5252, 18, 5701, 16, 389, 1916, 18, 4720, ...
self.pulse()
if self.get_parent(): self.pulse()
def __progress_timeout(self): '''Internal function to update the pulse''' self.pulse() return self.__loop
dd9554769dbee30168136ffa693a5883b9562690 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/dd9554769dbee30168136ffa693a5883b9562690/progressbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8298, 67, 4538, 12, 2890, 4672, 9163, 3061, 445, 358, 1089, 326, 31963, 26418, 309, 365, 18, 588, 67, 2938, 13332, 365, 18, 84, 24667, 1435, 327, 365, 16186, 6498, 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, 1001, 8298, 67, 4538, 12, 2890, 4672, 9163, 3061, 445, 358, 1089, 326, 31963, 26418, 309, 365, 18, 588, 67, 2938, 13332, 365, 18, 84, 24667, 1435, 327, 365, 16186, 6498, 2, -100, -100, ...
def __init__(self, search_engine_info, search_term, section):
def __init__(self, search_engine_info, search_term, section=u"video"):
def __init__(self, search_engine_info, search_term, section): self.search_engine_info = search_engine_info self.search_term = search_term self.section = section
cdda4a81e88b30864212ab1232793face236882d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/cdda4a81e88b30864212ab1232793face236882d/messages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1623, 67, 8944, 67, 1376, 16, 1623, 67, 6408, 16, 2442, 33, 89, 6, 9115, 6, 4672, 365, 18, 3072, 67, 8944, 67, 1376, 273, 1623, 67, 8944, 67, 1376, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1623, 67, 8944, 67, 1376, 16, 1623, 67, 6408, 16, 2442, 33, 89, 6, 9115, 6, 4672, 365, 18, 3072, 67, 8944, 67, 1376, 273, 1623, 67, 8944, 67, 1376, 3...
file_id = re.search('<input name="file_id" type="hidden" value="(.*)" />', self.html[1]).group(1) captcha_image = tempfile.NamedTemporaryFile(suffix=".png").name self.req.download(captcha_url, captcha_image, cookies=True) captcha = self.ocr.get_captcha(captcha_image) os.remove(captcha_image) self.logger.debug("Captcha %s: %s" % (i, captcha)) sleep(5) self.html[2] = self.req.load("http://netload.in/index.php?id=10", post={"file_id": file_id, "captcha_check": captcha}, cookies=True)
self.html[1] = self.load(url_captcha_html, cookies=True) try: captcha_url = "http://netload.in/" + re.search('(share/includes/captcha.php\?t=\d*)', self.html[1]).group(1) except: url_captcha_html = "http://netload.in/" + re.search('(index.php\?id=10&amp;.*&amp;captcha=1)', self.html[1]).group(1).replace("amp;", "") self.html[1] = self.load(url_captcha_html, cookies=True) captcha_url = "http://netload.in/" + re.search('(share/includes/captcha.php\?t=\d*)', self.html[1]).group(1)
def download_html(self): self.html[0] = self.req.load(self.parent.url, cookies=True) url_captcha_html = "http://netload.in/" + re.search('(index.php\?id=10&amp;.*&amp;captcha=1)', self.html[0]).group(1).replace("amp;", "") for i in range(6): self.html[1] = self.req.load(url_captcha_html, cookies=True) try: captcha_url = "http://netload.in/" + re.search('(share/includes/captcha.php\?t=\d*)', self.html[1]).group(1) except: url_captcha_html = "http://netload.in/" + re.search('(index.php\?id=10&amp;.*&amp;captcha=1)', self.html[1]).group(1).replace("amp;", "") self.html[1] = self.req.load(url_captcha_html, cookies=True) captcha_url = "http://netload.in/" + re.search('(share/includes/captcha.php\?t=\d*)', self.html[1]).group(1)
0f1f260c5cd98839aafb3e47261e62b742fe3f8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/0f1f260c5cd98839aafb3e47261e62b742fe3f8a/NetloadIn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 2620, 12, 2890, 4672, 365, 18, 2620, 63, 20, 65, 273, 365, 18, 3658, 18, 945, 12, 2890, 18, 2938, 18, 718, 16, 7237, 33, 5510, 13, 880, 67, 27267, 67, 2620, 273, 315, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 2620, 12, 2890, 4672, 365, 18, 2620, 63, 20, 65, 273, 365, 18, 3658, 18, 945, 12, 2890, 18, 2938, 18, 718, 16, 7237, 33, 5510, 13, 880, 67, 27267, 67, 2620, 273, 315, 250...
self.matches['email'] = self._vte.match_add (lboundry +
self.matches['email'] = self.vte.match_add (lboundry +
def update_url_matches(self, posix = True): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" hostchars = "-A-Za-z0-9" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'\"" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars + "]+(:[" + passchars + "]+)?" urlpath = "/[" + pathchars + "]*[^]'.}>) \t\r\n,\\\"]"
9e4be9ef76f3370fe7ab026103622649755a4ef9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/9e4be9ef76f3370fe7ab026103622649755a4ef9/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 718, 67, 8436, 12, 2890, 16, 16366, 273, 1053, 4672, 3536, 1891, 326, 3936, 1121, 1399, 358, 845, 10414, 8395, 729, 7549, 273, 3701, 37, 17, 15948, 17, 94, 20, 17, 29, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 718, 67, 8436, 12, 2890, 16, 16366, 273, 1053, 4672, 3536, 1891, 326, 3936, 1121, 1399, 358, 845, 10414, 8395, 729, 7549, 273, 3701, 37, 17, 15948, 17, 94, 20, 17, 29, 6, 1...
def _cmp(a, b):
def _cmp(a, b, sh, st):
def _cmp(a, b): try: return not abs(cmp(a, b)) except os.error: return 2
71d59b99622edd331a7fdfc74375d1aa89275205 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71d59b99622edd331a7fdfc74375d1aa89275205/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 12, 69, 16, 324, 16, 699, 16, 384, 4672, 775, 30, 327, 486, 2417, 12, 9625, 12, 69, 16, 324, 3719, 1335, 1140, 18, 1636, 30, 327, 576, 282, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 12, 69, 16, 324, 16, 699, 16, 384, 4672, 775, 30, 327, 486, 2417, 12, 9625, 12, 69, 16, 324, 3719, 1335, 1140, 18, 1636, 30, 327, 576, 282, 2, -100, -100, -100, -100, -1...
def _find_class_for_collection(cls, name):
def _find_class_for_collection(cls, collection_name):
def _find_class_for_collection(cls, name): """Look in the parent modules for classes matching the element name.
fe8de262ee69ededeaeaaba6030cb3b550cbcc9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6884/fe8de262ee69ededeaeaaba6030cb3b550cbcc9d/activeresource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 1106, 67, 1884, 67, 5548, 12, 6429, 16, 1849, 67, 529, 4672, 3536, 9794, 316, 326, 982, 4381, 364, 3318, 3607, 326, 930, 508, 18, 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, 389, 4720, 67, 1106, 67, 1884, 67, 5548, 12, 6429, 16, 1849, 67, 529, 4672, 3536, 9794, 316, 326, 982, 4381, 364, 3318, 3607, 326, 930, 508, 18, 2, -100, -100, -100, -100, -100, -100, ...
self.members.append(tarinfo) self.membernames.append(tarinfo.name) self.chunks.append(self.offset)
self._record_member(tarinfo)
def next(self): """Return the next member of the archive as a TarInfo object, when TarFile is opened for reading. Return None if there is no more available. """ self._check("ra") if self.firstmember is not None: m = self.firstmember self.firstmember = None return m
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, 1024, 12, 2890, 4672, 3536, 990, 326, 1024, 3140, 434, 326, 5052, 487, 279, 20334, 966, 733, 16, 1347, 20334, 812, 353, 10191, 364, 6453, 18, 2000, 599, 309, 1915, 353, 1158, 1898, 2319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 3536, 990, 326, 1024, 3140, 434, 326, 5052, 487, 279, 20334, 966, 733, 16, 1347, 20334, 812, 353, 10191, 364, 6453, 18, 2000, 599, 309, 1915, 353, 1158, 1898, 2319,...
<<<<<<< Vrec.py
def main(): format = SV.RGB8_FRAMES qsize = 2 audio = 0 rate = 2 width = 0 norecord = 0 drop = 0 mono = 0 grey = 0 monotreshold = -1 opts, args = getopt.getopt(sys.argv[1:], 'aq:r:w:ndgmM:') for opt, arg in opts: if opt == '-a': audio = 1 elif opt == '-q': qsize = string.atoi(arg) elif opt == '-r': rate = string.atoi(arg) if rate < 2: sys.stderr.write('-r rate must be >= 2\n') sys.exit(2) elif opt == '-w': width = string.atoi(arg) elif opt == '-n': norecord = 1 elif opt == '-d': drop = 1 elif opt == '-g': grey = 1 elif opt == '-m': mono = 1 elif opt == '-M': mono = 1 monotreshold = string.atoi(arg) if args[2:]: sys.stderr.write('usage: Vrec [options] [file [audiofile]]\n') sys.exit(2) if args: filename = args[0] else: filename = 'film.video' if args[1:] and not audio: sys.stderr.write('-a turned on by appearance of 2nd file\n') audio = 1 if audio: if args[1:]: audiofilename = args[1] else: audiofilename = 'film.aiff' else: audiofilename = None if norecord: filename = audiofilename = '' v = sv.OpenVideo() # Determine maximum window size based on signal standard param = [SV.BROADCAST, 0] v.GetParam(param) if param[1] == SV.PAL: x = SV.PAL_XMAX y = SV.PAL_YMAX elif param[1] == SV.NTSC: x = SV.NTSC_XMAX y = SV.NTSC_YMAX else: print 'Unknown video standard', param[1] sys.exit(1) gl.foreground() gl.maxsize(x, y) gl.keepaspect(x, y) gl.stepunit(8, 6) if width: gl.prefsize(width, width*3/4) win = gl.winopen(filename) if width: gl.maxsize(x, y) gl.keepaspect(x, y) gl.stepunit(8, 6) gl.winconstraints() x, y = gl.getsize() print x, 'x', y v.SetSize(x, y)
9533ebe85737fdd61b9f9936472303c0d51d233b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9533ebe85737fdd61b9f9936472303c0d51d233b/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 740, 273, 29537, 18, 11343, 28, 67, 15072, 55, 1043, 1467, 273, 576, 7447, 273, 374, 4993, 273, 576, 1835, 273, 374, 290, 479, 901, 273, 374, 3640, 273, 374, 6921, 83, 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, 740, 273, 29537, 18, 11343, 28, 67, 15072, 55, 1043, 1467, 273, 576, 7447, 273, 374, 4993, 273, 576, 1835, 273, 374, 290, 479, 901, 273, 374, 3640, 273, 374, 6921, 83, 273...
else: self.raise_error('evaluation error for function %s' % fname)
elif fcn.type==symTypes.variable: val = fcn.value(*arr,**kws)
def eval(self,stack=None,expr=''): "evaluate expression stack, compiled with Parser.parse()"
d2b8307b26000a01707a35f363473bac04f88e12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11796/d2b8307b26000a01707a35f363473bac04f88e12/Expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 12, 2890, 16, 3772, 33, 7036, 16, 8638, 2218, 11, 4672, 315, 21024, 2652, 2110, 16, 7743, 598, 6783, 18, 2670, 10031, 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, 5302, 12, 2890, 16, 3772, 33, 7036, 16, 8638, 2218, 11, 4672, 315, 21024, 2652, 2110, 16, 7743, 598, 6783, 18, 2670, 10031, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
backSel = (75,75,75),
backSel = (75, 75, 75),
def Configure( self, choices=[], fore = (75,75,75), back = (180, 180, 180), fontInfo = None, prefix = 'OSM', monitor = 0, mode = 0, foreSel = (180, 180, 180), backSel = (75,75,75),
77c0859df3ec68b9dbca47a4fb4d9d3998be7f95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8076/77c0859df3ec68b9dbca47a4fb4d9d3998be7f95/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11758, 12, 365, 16, 7246, 22850, 6487, 895, 273, 261, 5877, 16, 5877, 16, 5877, 3631, 1473, 273, 261, 18278, 16, 9259, 16, 9259, 3631, 3512, 966, 273, 599, 16, 1633, 273, 296, 4618, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11758, 12, 365, 16, 7246, 22850, 6487, 895, 273, 261, 5877, 16, 5877, 16, 5877, 3631, 1473, 273, 261, 18278, 16, 9259, 16, 9259, 3631, 3512, 966, 273, 599, 16, 1633, 273, 296, 4618, 49...
def isEmpty(self): return self.__is_empty
def isEmpty(self): return self.__is_empty
f1edb303a29301376c0759a9c9458cd463e874cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/f1edb303a29301376c0759a9c9458cd463e874cc/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2709, 12, 2890, 4672, 327, 365, 16186, 291, 67, 5531, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2709, 12, 2890, 4672, 327, 365, 16186, 291, 67, 5531, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Testing bad charent includes:
Testing errors in included file:
def suite(): s = DocutilsTestSupport.ParserTestSuite() s.generateTests(totest) return s
813eb0004259d9dde4a3a7b45b090ac4b8a224bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/813eb0004259d9dde4a3a7b45b090ac4b8a224bf/test_include.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 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, 0, 0, 0, 0, 0, 0, 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, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def read_index(index, serial, f, fileindex): seek = f.seek read = f.read pos = 4 count = 0 while 1:
def read_index(self, serial, fileindex): index = self._index f = self._f[fileindex] seek = f.seek read = f.read pos = 4 count = 0 while 1: f.seek(pos) h = read(27) if len(h) != 27: if h: self.rilog("truncated header", pos, fileindex) break if h[8] in 'vni': tlen, vlen, dlen = unpack(">iHi", h[9:19]) else: tlen = -1 if tlen <= 0 or vlen < 0 or dlen < 0 or vlen + dlen > tlen: self.rilog("invalid header data", pos, fileindex) break oid = h[:8] if h[8] == 'v' and vlen: seek(dlen+vlen, 1) vdlen = read(4) if len(vdlen) != 4: self.rilog("truncated record", pos, fileindex) break vdlen = unpack(">i", vdlen)[0] if vlen+dlen+43+vdlen != tlen: self.rilog("inconsistent lengths", pos, fileindex) break seek(vdlen, 1) vs = read(8) if read(4) != h[9:13]: self.rilog("inconsistent tlen", pos, fileindex) break else: if h[8] in 'vn' and vlen == 0: if dlen+31 != tlen: self.rilog("inconsistent nv lengths", pos, fileindex) seek(dlen, 1) if read(4) != h[9:13]: self.rilog("inconsistent nv tlen", pos, fileindex) break vs = None if h[8] in 'vn': if fileindex: index[oid] = -pos else: index[oid] = pos serial[oid] = h[-8:], vs else: if serial.has_key(oid): del serial[oid] del index[oid] pos = pos + tlen count += 1
def read_index(index, serial, f, fileindex): seek = f.seek read = f.read pos = 4 count = 0 while 1: f.seek(pos) h = read(27) if len(h) != 27: # An empty read is expected, anything else is suspect if h: rilog("truncated header", pos, fileindex) break if h[8] in 'vni': tlen, vlen, dlen = unpack(">iHi", h[9:19]) else: tlen = -1 if tlen <= 0 or vlen < 0 or dlen < 0 or vlen + dlen > tlen: rilog("invalid header data", pos, fileindex) break oid = h[:8] if h[8] == 'v' and vlen: seek(dlen+vlen, 1) vdlen = read(4) if len(vdlen) != 4: rilog("truncated record", pos, fileindex) break vdlen = unpack(">i", vdlen)[0] if vlen+dlen+43+vdlen != tlen: rilog("inconsistent lengths", pos, fileindex) break seek(vdlen, 1) vs = read(8) if read(4) != h[9:13]: rilog("inconsistent tlen", pos, fileindex) break else: if h[8] in 'vn' and vlen == 0: if dlen+31 != tlen: rilog("inconsistent nv lengths", pos, fileindex) seek(dlen, 1) if read(4) != h[9:13]: rilog("inconsistent nv tlen", pos, fileindex) break vs = None if h[8] in 'vn': if fileindex: index[oid] = -pos else: index[oid] = pos serial[oid] = h[-8:], vs else: if serial.has_key(oid): # We have a record for this oid, but it was invalidated! del serial[oid] del index[oid] pos = pos + tlen count += 1 f.seek(pos) try: f.truncate() except: pass if count: log("read_index: cache file %d has %d records and %d bytes" % (fileindex, count, pos)) return pos
18c6f729fe9eb1dc56bff0cb3204d846147e59cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/18c6f729fe9eb1dc56bff0cb3204d846147e59cb/ClientCache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1615, 12, 2890, 16, 2734, 16, 585, 1615, 4672, 770, 273, 365, 6315, 1615, 284, 273, 365, 6315, 74, 63, 768, 1615, 65, 6520, 273, 284, 18, 16508, 855, 273, 284, 18, 896, 949,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1615, 12, 2890, 16, 2734, 16, 585, 1615, 4672, 770, 273, 365, 6315, 1615, 284, 273, 365, 6315, 74, 63, 768, 1615, 65, 6520, 273, 284, 18, 16508, 855, 273, 284, 18, 896, 949,...
return s
if isinstance(s, str) and hasattr(self, 'frame'): s = s.decode(self.frame.source_encoding, 'replace') return s.encode('latin1', 'htmlentityreplace')
def quote(self, s): return s
47e4cd295179d7ae75c1d2de1bad77f2a64b7c52 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12946/47e4cd295179d7ae75c1d2de1bad77f2a64b7c52/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 12, 2890, 16, 272, 4672, 327, 272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 12, 2890, 16, 272, 4672, 327, 272, 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, ...
if os.environ.has_key('DIRAC_VOMSES'): vomsesDir = os.environ["DIRAC_VOMSES"] vomses = os.path.join(vomsesDir,"%s-voms.cern.ch"%vo) if os.path.exists(vomses): cmdArgs.append( '-vomses "%s"' %vomsesDir)
if 'DIRAC_VOMSES' in os.environ: vomsesDir = os.environ[ 'DIRAC_VOMSES' ] vomsesPath = os.path.join( vomsesDir, "%s-voms.cern.ch" % vo ) if os.path.exists( vomsesPath ): cmdArgs.append( '-vomses "%s"' % vomsesPath )
def setVOMSAttributes( self, proxy, attribute, vo = False ): """ Sets voms attributes to a proxy """ if not vo: vo = gConfig.getValue( "/DIRAC/VirtualOrganization", "" ) if not vo: return S_ERROR( "No vo specified, and can't get default in the configuration" )
16e3008117f3e64dec401849d578d2e4942c8907 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/16e3008117f3e64dec401849d578d2e4942c8907/VOMS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 58, 1872, 55, 2498, 12, 365, 16, 2889, 16, 1566, 16, 19993, 273, 1083, 262, 30, 3536, 11511, 331, 25390, 1677, 358, 279, 2889, 3536, 309, 486, 19993, 30, 19993, 273, 314, 809, 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, 444, 58, 1872, 55, 2498, 12, 365, 16, 2889, 16, 1566, 16, 19993, 273, 1083, 262, 30, 3536, 11511, 331, 25390, 1677, 358, 279, 2889, 3536, 309, 486, 19993, 30, 19993, 273, 314, 809, 18,...
run('pip install -E %s -r requirements.txt -u' % virtenv)
run('pip install -E %s -r requirements.txt -U' % virtenv)
def updatedeps(): with cd(appdir): run('pip install -E %s -r requirements.txt -u' % virtenv)
d87adae4947ada18b2963edc7d60bb5f395b5739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12705/d87adae4947ada18b2963edc7d60bb5f395b5739/fabfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 14877, 13332, 598, 7976, 12, 2910, 1214, 4672, 1086, 2668, 16104, 3799, 300, 41, 738, 87, 300, 86, 8433, 18, 5830, 300, 57, 11, 738, 16831, 14835, 13, 225, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 14877, 13332, 598, 7976, 12, 2910, 1214, 4672, 1086, 2668, 16104, 3799, 300, 41, 738, 87, 300, 86, 8433, 18, 5830, 300, 57, 11, 738, 16831, 14835, 13, 225, 2, -100, -100, -100, -...
final_archive_name)
os.path.basename(final_archive_name))
def archive(mailbox_name): """Archives a mailbox. Arguments: mailbox_name -- the filename/dirname of the mailbox to be archived final_archive_name -- the filename of the 'mbox' mailbox to archive old messages to - appending if the archive already exists """ tempfile.tempdir = choose_temp_dir(mailbox_name) vprint("set tempfile directory to '%s'" % tempfile.tempdir) final_archive_name = mailbox_name + _options.archive_suffix if _options.output_dir: final_archive_name = os.path.join(_options.output_dir, final_archive_name) vprint("archiving '%s' to '%s' ..." % (mailbox_name, final_archive_name)) if os.path.islink(mailbox_name): unexpected_error("'%s' is a symbolic link -- I am nervous" % mailbox_name) elif os.path.isfile(mailbox_name): vprint("guessing mailbox is of type: mbox") _archive_mbox(mailbox_name, final_archive_name) elif os.path.isdir(mailbox_name): cur_path = os.path.join(mailbox_name, "cur") new_path = os.path.join(mailbox_name, "new") if os.path.isdir(cur_path) and os.path.isdir(new_path): vprint("guessing mailbox is of type: maildir") _archive_maildir(mailbox_name, final_archive_name) else: vprint("guessing mailbox is of type: MH") _archive_mh(mailbox_name, final_archive_name) else: user_error("'%s': no such file or directory" % mailbox_name)
3911a2f3818dd6bef3ec48d9d0de684ba84a2d8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1746/3911a2f3818dd6bef3ec48d9d0de684ba84a2d8a/archivemail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 12, 4408, 2147, 67, 529, 4672, 3536, 12269, 3606, 279, 14187, 18, 225, 13599, 30, 14187, 67, 529, 1493, 326, 1544, 19, 12287, 434, 326, 14187, 358, 506, 23276, 727, 67, 10686, 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, 5052, 12, 4408, 2147, 67, 529, 4672, 3536, 12269, 3606, 279, 14187, 18, 225, 13599, 30, 14187, 67, 529, 1493, 326, 1544, 19, 12287, 434, 326, 14187, 358, 506, 23276, 727, 67, 10686, 67, ...
self._names[(local, ns)] = python_id
if hasattr(self, '_names'): self._names[(local, ns)] = python_id
def xml_pyname(self, ns, local, parent=None, iselement=True): ''' generate a Python ID (as a *string*) from an XML universal name used to prepare an object for binding
04891f52143989e6aa9c894247293b4ebbd0b781 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14078/04891f52143989e6aa9c894247293b4ebbd0b781/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2025, 67, 2074, 529, 12, 2890, 16, 3153, 16, 1191, 16, 982, 33, 7036, 16, 353, 2956, 33, 5510, 4672, 9163, 2103, 279, 6600, 1599, 261, 345, 279, 380, 1080, 12437, 628, 392, 3167, 26182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2025, 67, 2074, 529, 12, 2890, 16, 3153, 16, 1191, 16, 982, 33, 7036, 16, 353, 2956, 33, 5510, 4672, 9163, 2103, 279, 6600, 1599, 261, 345, 279, 380, 1080, 12437, 628, 392, 3167, 26182...
logBuild=False, crossCompile=None):
logBuild=False, crossCompile=None, enforceManagedPolicy=False):
def _cookPackageObject(repos, cfg, recipeClass, sourceVersion, prep=True, macros={}, resume = None, ignoreDeps=False, logBuild=False, crossCompile=None): """Builds the package for cookPackageObject. Parameter meanings are described there. """ fullName = recipeClass.name lcache = lookaside.RepositoryCache(repos) srcdirs = [ os.path.dirname(recipeClass.filename), cfg.sourceSearchDir % {'pkgname': recipeClass.name} ] recipeObj = recipeClass(cfg, lcache, srcdirs, macros, crossCompile) recipeObj.populateLcache() recipeObj.isatty(sys.stdout.isatty() and sys.stdin.isatty()) recipeObj.sourceVersion = sourceVersion builddir = util.normpath(cfg.buildPath) + "/" + recipeObj.name use.track(True) if recipeObj._trackedFlags is not None: use.setUsed(recipeObj._trackedFlags) policyFiles = recipeObj.loadPolicy() db = database.Database(cfg.root, cfg.dbPath) policyTroves = set() unmanagedPolicyFiles = [] for policyPath in policyFiles: troveList = list(db.iterTrovesByPath(policyPath)) if troveList: for trove in troveList: policyTroves.add((trove.getName(), trove.getVersion(), trove.getFlavor())) else: if not macros['buildlabel'].startswith('local@local:'): unmanagedPolicyFiles.append(policyPath) ver = versions.VersionFromString('/local@local:LOCAL/0-0') ver.resetTimeStamps() policyTroves.add((policyPath, ver, deps.DependencySet())) del db if unmanagedPolicyFiles and cfg.enforceManagedPolicy: raise CookError, ('Cannot cook into repository with' ' unmanaged policy files: %s' %', '.join(unmanagedPolicyFiles)) _callSetup(cfg, recipeObj) recipeObj.checkBuildRequirements(cfg, sourceVersion, ignoreDeps=ignoreDeps) bldInfo = buildinfo.BuildInfo(builddir) recipeObj.buildinfo = bldInfo destdir = '' maindir = '' if not resume: destdir = '' if os.path.exists(builddir): shutil.rmtree(builddir) else: try: bldInfo.read() if 'destdir' in bldInfo: destdir = bldInfo.destdir if 'maindir' in bldInfo: maindir = bldInfo.maindir except: pass util.mkdirChain(builddir + '/' + recipeObj.mainDir()) if not destdir: destdir = builddir + '/_ROOT_' util.mkdirChain(destdir) if logBuild: # turn on logging of this trove. Log is packaged as part # of :debug component logPath = destdir + recipeObj.macros.buildlogpath # during the build, keep the log file in the same dir as buildinfo. # that will make it more accessible for debugging. At the end of # the build, copy to the correct location tmpLogPath = builddir + '/' + os.path.basename(logPath) # this file alone is not enough to make us build a package recipeObj._autoCreatedFileCount += 1 util.mkdirChain(os.path.dirname(logPath)) # touch the logPath file so that the build process expects # a file there for packaging open(logPath, 'w') try: logFile = logger.startLog(tmpLogPath) except OSError, err: if err.args[0] == 'out of pty devices': log.warning('*** No ptys found -- not logging build ***') logBuild = False # don't worry about cleaning up the touched log file -- # it's in the build dir and will be erased when the build # is finished else: raise logBuildEnvironment(logFile, sourceVersion, policyTroves, recipeObj.macros, cfg) try: bldInfo.begin() bldInfo.destdir = destdir if maindir: recipeObj.mainDir(maindir) if resume is True: resume = bldInfo.lastline recipeObj.unpackSources(builddir, destdir, resume) # if we're only extracting, continue to the next recipe class. if prep: return cwd = os.getcwd() try: os.chdir(builddir + '/' + recipeObj.mainDir()) recipeObj.doBuild(builddir, resume=resume) if resume and resume != "policy" and \ recipeObj.resumeList[-1][1] != False: log.info('Finished Building %s Lines %s, Not Running Policy', recipeClass.name, resume) return log.info('Processing %s', recipeClass.name) if not resume: # test suite policy does not work well with restart, and # is generally useful mainly when cooking into repo, where # restart is not allowed recipeObj.doProcess(policy.TESTSUITE) recipeObj.doProcess(policy.DESTDIR_PREPARATION) recipeObj.doProcess(policy.DESTDIR_MODIFICATION) # cannot restart after the beginning of policy.PACKAGE_CREATION bldInfo.stop() use.track(False) recipeObj.doProcess(policy.PACKAGE_CREATION) recipeObj.doProcess(policy.PACKAGE_MODIFICATION) recipeObj.doProcess(policy.ENFORCEMENT) recipeObj.doProcess(policy.ERROR_REPORTING) finally: os.chdir(cwd) grpName = recipeClass.name bldList = recipeObj.getPackages() if (not bldList or sum(len(x) for x in bldList) <= recipeObj._autoCreatedFileCount): # no components in packages, or no explicit files in components log.error('No files were found to add to package %s' %recipeClass.name) return except Exception, msg: if logBuild: logFile.write('%s\n' % msg) logFile.write(''.join(traceback.format_exception(*sys.exc_info()))) logFile.write('\n') logFile.close() if cfg.debugRecipeExceptions: traceback.print_exception(*sys.exc_info()) debugger.post_mortem(sys.exc_info()[2]) if isinstance(msg, CookError): raise else: raise CookError(str(msg)) if logBuild and recipeObj._autoCreatedFileCount: logFile.close() if os.path.exists(logPath): os.unlink(logPath) if not cfg.cleanAfterCook: # leave the easily accessible copy in place in # builddir shutil.copy2(tmpLogPath, logPath) else: os.rename(tmpLogPath, logPath) # update contents on the buildlog, since they changed buildlogpath = recipeObj.macros.buildlogpath recipeObj.autopkg.updateFileContents( recipeObj.macros.buildlogpath, logPath) recipeObj.autopkg.pathMap[buildlogpath].tags.set("buildlog") return bldList, recipeObj, builddir, destdir, policyTroves
243c8305ba5552c368b66bc6484fc10a2e987a1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/243c8305ba5552c368b66bc6484fc10a2e987a1f/cook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 29854, 2261, 921, 12, 15564, 16, 2776, 16, 16100, 797, 16, 1084, 1444, 16, 13237, 33, 5510, 16, 24302, 28793, 10774, 273, 599, 16, 2305, 14430, 33, 8381, 16, 613, 3116, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29854, 2261, 921, 12, 15564, 16, 2776, 16, 16100, 797, 16, 1084, 1444, 16, 13237, 33, 5510, 16, 24302, 28793, 10774, 273, 599, 16, 2305, 14430, 33, 8381, 16, 613, 3116, 33, 8381, ...
self.cache_dir = utils.ensure_dir(cache_dir)
self.cache_dir = cache_dir
def __init__(self, cache_dir="cache", default_writer='rl', report_from_mail=None, report_recipients=None): self.cache_dir = utils.ensure_dir(cache_dir) self.mwrender_cmd = "mw-render" self.mwrender_logfile = "render-logfile" self.mwzip_cmd = "mw-zip" self.mwzip_logfile = "zip-logfile" self.mwpost_cmd = "mw-post" self.mwpost_logfile = "post-logfile" self.default_writer = default_writer self.report_from_mail = report_from_mail self.report_recipients = report_recipients
0fa327ba87e15594cd8d48baeea7fb84fe28f0f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/0fa327ba87e15594cd8d48baeea7fb84fe28f0f8/nserve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1247, 67, 1214, 1546, 2493, 3113, 805, 67, 6299, 2218, 1321, 2187, 2605, 67, 2080, 67, 4408, 33, 7036, 16, 2605, 67, 27925, 33, 7036, 4672, 225, 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, 1001, 2738, 972, 12, 2890, 16, 1247, 67, 1214, 1546, 2493, 3113, 805, 67, 6299, 2218, 1321, 2187, 2605, 67, 2080, 67, 4408, 33, 7036, 16, 2605, 67, 27925, 33, 7036, 4672, 225, 365, 18,...
self.tk.call(self._w, 'dragsite', 'set', index)
self.tk.call(self._w, 'dragsite', 'set', index)
def dragsite_set(self, index):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5081, 1341, 1137, 67, 542, 12, 2890, 16, 770, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 5081, 1341, 1137, 67, 542, 12, 2890, 16, 770, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
compiz_call('scale/allscreens/initiate_key','activate','root', self.root_xid)
try: compiz_call('scale/allscreens/initiate_key','activate','root', self.root_xid) except: return
def compiz_scale_all(self, widget, event): compiz_call('scale/allscreens/initiate_key','activate','root', self.root_xid) # A new button enter signal is sent when compiz is called, # a delay is therefor needed. gobject.timeout_add(settings['popup_delay']+ 200, self.hide_list)
36703b1b4800fdeeaa6229ba131abda703f851d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/36703b1b4800fdeeaa6229ba131abda703f851d3/dockbarx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1161, 452, 67, 5864, 67, 454, 12, 2890, 16, 3604, 16, 871, 4672, 775, 30, 1161, 452, 67, 1991, 2668, 5864, 19, 454, 1017, 266, 773, 19, 2738, 3840, 67, 856, 17023, 10014, 17023, 3085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1161, 452, 67, 5864, 67, 454, 12, 2890, 16, 3604, 16, 871, 4672, 775, 30, 1161, 452, 67, 1991, 2668, 5864, 19, 454, 1017, 266, 773, 19, 2738, 3840, 67, 856, 17023, 10014, 17023, 3085, ...
log.log( "<logscanning>LOGSCAN.tokenparser(): ID '%s' file '%s' regex '%s'" % (self.ID, self.args.file, self.args.regex), 8 )
if self.regfile: log.log( "<logscanning>LOGSCAN.tokenparser(): ID '%s' file '%s' regfile '%s' reglist %d records" % (self.ID, self.args.file, self.args.regfile, len(self.reglist)), 7 ) else: log.log( "<logscanning>LOGSCAN.tokenparser(): ID '%s' file '%s' regex '%s'" % (self.ID, self.args.file, self.args.regex), 7 )
def tokenparser(self, toklist, toktypes, indent):
f2890a955747c53aaaeb3925f11ca406e6ae58ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/f2890a955747c53aaaeb3925f11ca406e6ae58ea/logscanning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1147, 4288, 12, 2890, 16, 946, 1098, 16, 946, 2352, 16, 3504, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1147, 4288, 12, 2890, 16, 946, 1098, 16, 946, 2352, 16, 3504, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
__QUEUE_EMPTY = object()
_QUEUE_EMPTY = object()
def _on_once(self): self.cancel() try: self.__func() except Exception: pass return False
3feb11ef2987dd825890936662701b18574a4973 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/3feb11ef2987dd825890936662701b18574a4973/go_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 67, 8243, 12, 2890, 4672, 365, 18, 10996, 1435, 775, 30, 365, 16186, 644, 1435, 1335, 1185, 30, 1342, 327, 1083, 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, 389, 265, 67, 8243, 12, 2890, 4672, 365, 18, 10996, 1435, 775, 30, 365, 16186, 644, 1435, 1335, 1185, 30, 1342, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tensor += ( mass*numpy.dot(delta, delta)*numpy.identity(3, float) -numpy.outerproduct(delta, delta)
tensor += mass*( numpy.dot(delta, delta)*numpy.identity(3, float) -numpy.outer(delta, delta)
def calculate_inertia_tensor(particles, center): tensor = numpy.zeros((3,3), float) for mass, coordinate in particles: delta = coordinate - center tensor += ( mass*numpy.dot(delta, delta)*numpy.identity(3, float) -numpy.outerproduct(delta, delta) ) return tensor
4906614873cea715468defe3517d5e712927b7ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11052/4906614873cea715468defe3517d5e712927b7ea/molecule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 67, 267, 31449, 67, 13720, 12, 2680, 8383, 16, 4617, 4672, 8171, 273, 3972, 18, 22008, 12443, 23, 16, 23, 3631, 1431, 13, 364, 8039, 16, 7799, 316, 28312, 30, 3622, 273, 7799, 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, 4604, 67, 267, 31449, 67, 13720, 12, 2680, 8383, 16, 4617, 4672, 8171, 273, 3972, 18, 22008, 12443, 23, 16, 23, 3631, 1431, 13, 364, 8039, 16, 7799, 316, 28312, 30, 3622, 273, 7799, 30...
fd = FileDialog(title, [], False, window, mode=QFileDialog.DirectoryOnly)
fd = FileDialog(title, [], False, window, name=name, mode=QFileDialog.DirectoryOnly)
def choose_dir(window, name, title): fd = FileDialog(title, [], False, window, mode=QFileDialog.DirectoryOnly) dir = fd.get_files() if dir: return dir[0]
0959c9714e4e72325f42ecb7a284c1d527026fd8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/0959c9714e4e72325f42ecb7a284c1d527026fd8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 1214, 12, 5668, 16, 508, 16, 2077, 4672, 5194, 273, 1387, 6353, 12, 2649, 16, 5378, 16, 1083, 16, 2742, 16, 508, 33, 529, 16, 1965, 33, 53, 812, 6353, 18, 2853, 3386, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 1214, 12, 5668, 16, 508, 16, 2077, 4672, 5194, 273, 1387, 6353, 12, 2649, 16, 5378, 16, 1083, 16, 2742, 16, 508, 33, 529, 16, 1965, 33, 53, 812, 6353, 18, 2853, 3386, 13, ...
sm = text if sm: sma = array.array('c', sm) (a,l) = sma.buffer_info() view.SendScintilla(SCI_CLEARALL) view.SendScintilla(SCI_ADDTEXT, l, a) sma = None
view.SendScintilla(SCI_CLEARALL) view.SendMessage(SCI_ADDTEXT, buffer(text))
def _SetLoadedText(self, text): view = self.GetFirstView() if view.IsWindow(): # Turn off undo collection while loading view.SendScintilla(SCI_SETUNDOCOLLECTION, 0, 0) # Make sure the control isnt read-only view.SetReadOnly(0)
a1e5864c109627aac5b667fd28bd17533069095a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/a1e5864c109627aac5b667fd28bd17533069095a/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 694, 8835, 1528, 12, 2890, 16, 977, 4672, 1476, 273, 365, 18, 967, 3759, 1767, 1435, 309, 1476, 18, 2520, 3829, 13332, 468, 22425, 3397, 15436, 1849, 1323, 7153, 1476, 18, 3826, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 694, 8835, 1528, 12, 2890, 16, 977, 4672, 1476, 273, 365, 18, 967, 3759, 1767, 1435, 309, 1476, 18, 2520, 3829, 13332, 468, 22425, 3397, 15436, 1849, 1323, 7153, 1476, 18, 3826, 154...
if len(self.op.disks) != 2: raise errors.OpPrereqError("Only two-disk configurations supported")
def CheckPrereq(self): """Check prerequisites.
8901997e4393d4020af3004513f0cea54ea6b79d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/8901997e4393d4020af3004513f0cea54ea6b79d/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
raise RevlogError(_("integrity check failed on %s:%d")
raise revlog.RevlogError(_("integrity check failed on %s:%d")
def revision(self, node): """return an uncompressed revision of a given""" if node == nullid: return ""
2892c57b57b520bb5fb2de417751a24292d371fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/2892c57b57b520bb5fb2de417751a24292d371fd/bundlerepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6350, 12, 2890, 16, 756, 4672, 3536, 2463, 392, 20560, 6350, 434, 279, 864, 8395, 309, 756, 422, 446, 350, 30, 327, 1408, 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, 6350, 12, 2890, 16, 756, 4672, 3536, 2463, 392, 20560, 6350, 434, 279, 864, 8395, 309, 756, 422, 446, 350, 30, 327, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
stdout.write("\nMeasuring shear1. Will write to '%s'\n" \
stdout.write("\nMeasuring shear1. Will write to \n'%s'\n" \
def run_split(self): try: files=self.stat['output_files']
5484630f57054956277cf06d557bd0dfd8869220 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6617/5484630f57054956277cf06d557bd0dfd8869220/wlpipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4939, 12, 2890, 4672, 775, 30, 1390, 33, 2890, 18, 5642, 3292, 2844, 67, 2354, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4939, 12, 2890, 4672, 775, 30, 1390, 33, 2890, 18, 5642, 3292, 2844, 67, 2354, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'getContentType', '__call__', '')),
'getContentType', '')),
def manage_addImage(self, id, file, title='', precondition='', content_type='', REQUEST=None): """ Add a new Image object. Creates a new Image object 'id' with the contents of 'file'. """ id=str(id) title=str(title) content_type=str(content_type) precondition=str(precondition) id, title = cookId(id, title, file) self=self.this() # First, we create the image without data: self._setObject(id, Image(id,title,'',content_type, precondition)) # Now we "upload" the data. By doing this in two steps, we # can use a database trick to make the upload more efficient. self._getOb(id).manage_upload(file) if REQUEST is not None: try: url=self.DestinationURL() except: url=REQUEST['URL1'] REQUEST.RESPONSE.redirect('%s/manage_main' % url) return id
c12e5349ffeb3dc11bd832082318fe404a5b4ff7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/c12e5349ffeb3dc11bd832082318fe404a5b4ff7/Image.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 1289, 2040, 12, 2890, 16, 612, 16, 585, 16, 2077, 2218, 2187, 24148, 2218, 2187, 913, 67, 723, 2218, 2187, 12492, 33, 7036, 4672, 3536, 1436, 279, 394, 3421, 733, 18, 225, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 1289, 2040, 12, 2890, 16, 612, 16, 585, 16, 2077, 2218, 2187, 24148, 2218, 2187, 913, 67, 723, 2218, 2187, 12492, 33, 7036, 4672, 3536, 1436, 279, 394, 3421, 733, 18, 225, 1...
rc = invoke_external("svn revert %s" % target)
rc = invoke_external("svn --recursive revert %s" % target)
def cleanup(target): # make sure we don't get conflicts rc = invoke_external("svn revert %s" % target) return rc
8c46f47ab8cef75913759a460276fe5215b26002 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/8c46f47ab8cef75913759a460276fe5215b26002/batbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 12, 3299, 4672, 468, 1221, 3071, 732, 2727, 1404, 336, 14450, 4519, 273, 4356, 67, 9375, 2932, 31505, 1493, 10543, 15226, 738, 87, 6, 738, 1018, 13, 327, 4519, 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, 6686, 12, 3299, 4672, 468, 1221, 3071, 732, 2727, 1404, 336, 14450, 4519, 273, 4356, 67, 9375, 2932, 31505, 1493, 10543, 15226, 738, 87, 6, 738, 1018, 13, 327, 4519, 225, 2, -100, -100, ...
conn, addr = self.accept()
try: conn, addr = self.accept() except TypeError: return except socket.error as err: if err.args[0] != errno.ECONNABORTED: raise return else: if addr == None: return
def handle_accept(self): conn, addr = self.accept() print >> DEBUGSTREAM, 'Incoming connection from %s' % repr(addr) channel = SMTPChannel(self, conn, addr)
993b159998dbb82cae04ecf95e9ea20347df1bf5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/993b159998dbb82cae04ecf95e9ea20347df1bf5/smtpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 9436, 12, 2890, 4672, 775, 30, 1487, 16, 3091, 273, 365, 18, 9436, 1435, 1335, 3580, 30, 225, 327, 1335, 2987, 18, 1636, 487, 393, 30, 225, 309, 393, 18, 1968, 63, 20, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 9436, 12, 2890, 4672, 775, 30, 1487, 16, 3091, 273, 365, 18, 9436, 1435, 1335, 3580, 30, 225, 327, 1335, 2987, 18, 1636, 487, 393, 30, 225, 309, 393, 18, 1968, 63, 20, 65, ...
result.sign = 1
result.sign = 0
def __add__(self, other, context=None): """Returns self + other.
2987962c266a487e19674e69ca08f8ac738322b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2987962c266a487e19674e69ca08f8ac738322b8/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
cmd += self.submit_option
def submit(self,jdlpath,ce=None): '''Submit a JDL file to LCG'''
b539a73c73d4945301e6c2635eafd6fab1a0dda4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/b539a73c73d4945301e6c2635eafd6fab1a0dda4/Grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2890, 16, 78, 5761, 803, 16, 311, 33, 7036, 4672, 9163, 11620, 279, 804, 8914, 585, 358, 511, 20585, 26418, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2890, 16, 78, 5761, 803, 16, 311, 33, 7036, 4672, 9163, 11620, 279, 804, 8914, 585, 358, 511, 20585, 26418, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
'release_dir':self.dojo_release_dir,
'release_dir':release_dir,
def handle(self, *args, **options): if len(args)==0: # with no param, we use the default profile, that is defined in the settings profile_name = settings.DOJO_BUILD_PROFILE else: profile_name = args[0] profile = self._get_profile(profile_name) used_src_version = profile['used_src_version'] % {'DOJO_BUILD_VERSION': settings.DOJO_BUILD_VERSION} # no dependencies to project's settings.py file! profile_file = os.path.basename(profile['profile_file'] % {'BASE_MEDIA_ROOT':settings.BASE_MEDIA_ROOT}) # used by minify_extreme! self.keep_files = profile.get("minify_extreme_keep_files", None) if not self.keep_files: self.keep_files = () self.dojo_base_dir = "%(dojo_root)s/%(version)s" % \ {'dojo_root':settings.BASE_DOJO_ROOT, 'version':used_src_version} # does the defined dojo-directory exist? util_base_dir = "%(dojo_base_dir)s/util" % {'dojo_base_dir':self.dojo_base_dir} if not os.path.exists(util_base_dir): raise CommandError('Put the the dojo source files (version \'%(version)s\') in the folder \'%(folder)s/%(version)s\'' % \ {'version':used_src_version, 'folder':settings.BASE_DOJO_ROOT}) # check, if java is installed stdin, stdout, stderr = os.popen3(settings.DOJO_BUILD_JAVA_EXEC) if stderr.read(): raise CommandError('Please install java. You need it for building dojo.') dest_profile_file = util_base_dir + "/buildscripts/profiles/%(profile_file)s" % \ {'profile_file':profile_file} # copy the profile to the shutil.copyfile(profile['profile_file'] % {'BASE_MEDIA_ROOT':settings.BASE_MEDIA_ROOT}, dest_profile_file) buildscript_dir = os.path.abspath('%s/buildscripts' % util_base_dir) if settings.DOJO_BUILD_USED_VERSION < '1.2.0': executable = '%(java_exec)s -jar ../shrinksafe/custom_rhino.jar build.js' % \ {'java_exec':settings.DOJO_BUILD_JAVA_EXEC} else: # use the new build command line call! if(os.path.sep == "\\"): executable = 'build.bat' else: executable = './build.sh' # use the passed version for building version = options.get('build_version', None) if not version: # if no option --build_version was passed, we use the default build version version = profile['build_version'] % {'DOJO_BUILD_VERSION': settings.DOJO_BUILD_VERSION} # no dependencies to project's settings.py file! # we add the version to our destination base path self.dojo_release_dir = '%(base_path)s' % { 'base_path':profile['base_root'] % {'BASE_MEDIA_ROOT':settings.BASE_MEDIA_ROOT},} # we don't want to have a dependancy to the project's settings file! # the build command handling is so different between the versions! # sometimes we need to add /, sometimes not :-( # if settings.DOJO_BUILD_USED_VERSION < '1.2.0': self.dojo_release_dir = self.dojo_release_dir + os.path.sep # setting up the build command build_addons = "" if settings.DOJO_BUILD_USED_VERSION >= '1.2.0': # since version 1.2.0 there is an additional commandline option that does the mini build (solved within js!) build_addons = "mini=true" exe_command = 'cd %(buildscript_dir)s && %(executable)s version=%(version)s releaseName="%(version)s" releaseDir=%(release_dir)s %(options)s %(build_addons)s' % \ {'buildscript_dir':buildscript_dir, 'executable':executable, 'version':version, 'release_dir':self.dojo_release_dir, 'options':profile['options'], 'build_addons':build_addons} # for the minifying process the release_dir is the folder with version included self.dojo_release_dir = self.dojo_release_dir + "/" + version # print exe_command minify = options['minify'] minify_extreme = options['minify_extreme'] if settings.DOJO_BUILD_USED_VERSION < '1.2.0' and (minify or minify_extreme): self._dojo_mini_before_build() # do the build os.system(exe_command) if settings.DOJO_BUILD_USED_VERSION < '1.2.0': if minify or minify_extreme: self._dojo_mini_after_build() if minify_extreme: self._dojo_mini_extreme() os.remove(dest_profile_file) # remove the copied profile file
34da2a61225978873897d5730193cd667112a35e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12008/34da2a61225978873897d5730193cd667112a35e/dojobuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 380, 1968, 16, 2826, 2116, 4672, 309, 562, 12, 1968, 13, 631, 20, 30, 468, 598, 1158, 579, 16, 732, 999, 326, 805, 3042, 16, 716, 353, 2553, 316, 326, 1947, 3042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 380, 1968, 16, 2826, 2116, 4672, 309, 562, 12, 1968, 13, 631, 20, 30, 468, 598, 1158, 579, 16, 732, 999, 326, 805, 3042, 16, 716, 353, 2553, 316, 326, 1947, 3042,...
return http.Response(stream='ok' if s else 'failed')
return HTMLResponse(stream='ok' if s else 'failed')
def render(self, ctx): # TODO -- this must not block long (!) s = self.worksheet.interrupt() return http.Response(stream='ok' if s else 'failed')
39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 468, 2660, 1493, 333, 1297, 486, 1203, 1525, 16051, 13, 272, 273, 365, 18, 1252, 8118, 18, 31847, 1435, 327, 1062, 18, 1064, 12, 3256, 2218, 601, 11, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 468, 2660, 1493, 333, 1297, 486, 1203, 1525, 16051, 13, 272, 273, 365, 18, 1252, 8118, 18, 31847, 1435, 327, 1062, 18, 1064, 12, 3256, 2218, 601, 11, 30...
self.B_spin = TSpinbox(frame, min = 0, max = 255, step = 1, vartype = 1, width = 7,
self.B_spin = TSpinbox(frame, min = 0, max = 255, step = 1, vartype = 0, width = 7,
def __init__(self, parent, callback, **kw): self.callback=callback TFrame.__init__(self, parent, style='FlatFrame', **kw) self.R_value=IntVar(0) self.G_value=IntVar(0) self.B_value=IntVar(0) self.HTML_value=StringVar('') html_frame = TFrame(self, borderwidth = 2, style='FlatFrame') html_frame.pack(side = BOTTOM)
962c4d6d83a02520b20c005a50fa63867e6f48bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/962c4d6d83a02520b20c005a50fa63867e6f48bf/colordigitizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1348, 16, 2826, 9987, 4672, 365, 18, 3394, 33, 3394, 399, 3219, 16186, 2738, 972, 12, 2890, 16, 982, 16, 2154, 2218, 16384, 3219, 2187, 2826, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 16, 1348, 16, 2826, 9987, 4672, 365, 18, 3394, 33, 3394, 399, 3219, 16186, 2738, 972, 12, 2890, 16, 982, 16, 2154, 2218, 16384, 3219, 2187, 2826, 99...
self.notify_listeners( ("caption_modified",) )
self.notify_listeners(("caption_modified", ))
def set_caption(self, newcaption): """ Define the node caption """ self.internal_data['caption'] = newcaption self.notify_listeners( ("caption_modified",) )
0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 15386, 12, 2890, 16, 394, 15386, 4672, 3536, 13184, 326, 756, 11006, 3536, 365, 18, 7236, 67, 892, 3292, 15386, 3546, 273, 394, 15386, 365, 18, 12336, 67, 16072, 12, 7566, 15386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 15386, 12, 2890, 16, 394, 15386, 4672, 3536, 13184, 326, 756, 11006, 3536, 365, 18, 7236, 67, 892, 3292, 15386, 3546, 273, 394, 15386, 365, 18, 12336, 67, 16072, 12, 7566, 15386...
if os.path.exists(os.path.join(root_dir, ".git")):
if (os.path.exists(os.path.join(root_dir, ".git")) or os.path.exists(os.path.join(root_dir, ".hg"))):
def RepositoryName(self): """FullName after removing the local path to the repository.
e8777217774ca1c50e978c3fbecd3a9aa3cbb882 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8431/e8777217774ca1c50e978c3fbecd3a9aa3cbb882/cpplint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6281, 461, 12, 2890, 4672, 3536, 19223, 1839, 9427, 326, 1191, 589, 358, 326, 3352, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6281, 461, 12, 2890, 4672, 3536, 19223, 1839, 9427, 326, 1191, 589, 358, 326, 3352, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
history.append(u'\\'.join([uri,title,icon]))
history.append(DV.history_split.join([uri,title,icon]))
def addTohistory(self, uri, title, icon=None): uri = DamnUnicode(uri) title = DamnUnicode(title) icon = DamnUnicode(icon) Damnlog('Adding video to history:', uri, 'with title', title, 'and icon', icon) history = DV.prefs.geta('damnvid-videohistory', 'videos') histsize = int(DV.prefs.get('videohistorysize')) if not histsize: Damnlog('Histsize is zero, not touching anything.') return for i in history: tempvideo = i.split(u'\\') if len(tempvideo) != 3: Damnlog('Invalid entry in history:', i) continue if tempvideo[0].strip().lower() == uri.strip().lower(): Damnlog('URI',uri,'is already in history, not adding it to history again.') return history.reverse() while len(history) >= histsize: history = history[1:] history.append(u'\\'.join([uri,title,icon])) history.reverse() DV.prefs.seta('damnvid-videohistory','videos',history) Damnlog('Video added successfully, rebuilding history menu.') self.updateHistory()
5b06820b4b76c465dfd13e830392a9df37fda3c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/5b06820b4b76c465dfd13e830392a9df37fda3c2/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9604, 8189, 12, 2890, 16, 2003, 16, 2077, 16, 4126, 33, 7036, 4672, 2003, 273, 463, 301, 82, 16532, 12, 1650, 13, 2077, 273, 463, 301, 82, 16532, 12, 2649, 13, 4126, 273, 463, 301, 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, 9604, 8189, 12, 2890, 16, 2003, 16, 2077, 16, 4126, 33, 7036, 4672, 2003, 273, 463, 301, 82, 16532, 12, 1650, 13, 2077, 273, 463, 301, 82, 16532, 12, 2649, 13, 4126, 273, 463, 301, 8...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 73) else quickfix.IntField.__init__(self, 73, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 26103, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 26103, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
self.cnv.tag_bind(regionID, "<Enter>", GenericCallback(self._doEnter, cursor)) self.cnv.tag_bind(regionID, "<Leave>", self._doLeave) self.cnv.tag_bind(regionID, "<B1-Motion>", GenericCallback(self.doResize, regionName))
self.cnv.tag_bind(regionID, "<Enter>", GenericCallback(self._setCursor, cursor)) self.cnv.tag_bind(regionID, "<Leave>", self._restoreDefaultCursor) self.cnv.tag_bind(regionID, "<B1-Motion>", GenericCallback(self._doResize, regionName))
def __init__(self, cnv, x0, y0, x1, y1, tags = None, grabSize = 3, minSize = None, width = 1, fill = "white",
cdb50cff8ca7fe5541eb7da5a979b50c16e49973 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/cdb50cff8ca7fe5541eb7da5a979b50c16e49973/ResizableRect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6227, 90, 16, 619, 20, 16, 677, 20, 16, 619, 21, 16, 677, 21, 16, 2342, 273, 599, 16, 11086, 1225, 273, 890, 16, 29343, 273, 599, 16, 1835, 273, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6227, 90, 16, 619, 20, 16, 677, 20, 16, 619, 21, 16, 677, 21, 16, 2342, 273, 599, 16, 11086, 1225, 273, 890, 16, 29343, 273, 599, 16, 1835, 273, 404,...
return 0
def backupShare(share, media, login): smbObj = smbConf(SambaConfig("samba").samba_conf_file) configParser = mmctools.getConfigParser("base") path = configParser.get("backup-tools", "path") destpath = configParser.get("backup-tools", "destpath") cmd = os.path.join(path, "backup.sh") if share == "homes": savedir = "/home/" # FIXME else: savedir = os.path.join(smbObj.sharespath, share) # FIXME: check for error mmctools.shlaunchBackground(cmd+" "+share+" "+savedir+" "+destpath+" "+login+" "+media+" "+path,"backup share "+share, mmctools.progressBackup) return 0
e525f612d26644e9e0afd1ea85c9904e424bf464 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/e525f612d26644e9e0afd1ea85c9904e424bf464/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 9535, 12, 14419, 16, 3539, 16, 3925, 4672, 272, 1627, 2675, 273, 272, 1627, 3976, 12, 55, 2536, 69, 809, 2932, 87, 2536, 69, 20387, 87, 2536, 69, 67, 3923, 67, 768, 13, 225, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 9535, 12, 14419, 16, 3539, 16, 3925, 4672, 272, 1627, 2675, 273, 272, 1627, 3976, 12, 55, 2536, 69, 809, 2932, 87, 2536, 69, 20387, 87, 2536, 69, 67, 3923, 67, 768, 13, 225, 64...
['include.txt', 'raw.txt',
[os.path.join('data', 'include.txt'), os.path.join('data', 'raw.txt'),
def test_dependencies(self): self.assertEqual(self.get_record(), ['include.txt', 'raw.txt']) self.assertEqual(self.get_record(writer_name='latex'), ['include.txt', 'raw.txt', 'some_image.png'])
24796514c06c6206215a972cc6acac30b51471de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/24796514c06c6206215a972cc6acac30b51471de/test_dependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11037, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 588, 67, 3366, 9334, 10228, 6702, 18, 5830, 2187, 296, 1899, 18, 5830, 19486, 365, 18, 11231, 5812, 12, 2890, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11037, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 588, 67, 3366, 9334, 10228, 6702, 18, 5830, 2187, 296, 1899, 18, 5830, 19486, 365, 18, 11231, 5812, 12, 2890, 18, 5...
debug.recv = SndRcvList([]) debug.sent = SndRcvList([])
debug.recv = PacketList([],"Unanswered") debug.sent = PacketList([],"Sent")
def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0,retry=0): if not isinstance(pkt, Gen): pkt = SetGen(pkt) if verbose is None: verbose = conf.verb debug.recv = SndRcvList([]) debug.sent = SndRcvList([]) debug.match = SndRcvAns([]) nbrecv=0 ans = [] # do it here to fix random fields, so that parent and child have the same tobesent = [p for p in pkt] notans = len(tobesent) hsent={} for i in tobesent: h = i.hashret() if h in hsent: hsent[h].append(i) else: hsent[h] = [i] if retry < 0: retry = -retry autostop=retry else: autostop=0 while retry >= 0: found=0 if timeout < 0: timeout = None rdpipe,wrpipe = os.pipe() rdpipe=os.fdopen(rdpipe) wrpipe=os.fdopen(wrpipe,"w") pid = os.fork() if pid == 0: sys.stdin.close() rdpipe.close() try: i = 0 if verbose: print "Begin emission:" for p in tobesent: pks.send(p) i += 1 time.sleep(inter) if verbose: print "Finished to send %i packets." % i except SystemExit: pass except KeyboardInterrupt: pass except: print "--- Error in child %i" % os.getpid() traceback.print_exc() print "--- End of error in child %i" % os.getpid() sys.exit() else: pickle.dump(arp_cache, wrpipe) wrpipe.close() sys.exit() elif pid < 0: print "fork error" else: wrpipe.close() finished = 0 remaintime = timeout inmask = [rdpipe,pks] try: while 1: start = time.time() inp, out, err = select(inmask,[],[], remaintime) if len(inp) == 0: break if rdpipe in inp: finished = 1 del(inmask[inmask.index(rdpipe)]) continue r = pks.recv(MTU) ok = 0 h = r.hashret() if h in hsent: hlst = hsent[h] for i in range(len(hlst)): if r.answers(hlst[i]): ans.append((hlst[i],r)) if verbose > 1: os.write(1, "*") ok = 1 notans -= 1 del(hlst[i]) break if notans == 0: break if not ok: if verbose > 1: os.write(1, ".") nbrecv += 1 if conf.debug_match: debug.recv.append(r) if finished and remaintime: end = time.time() remaintime -= end-start if remaintime < 0: break except KeyboardInterrupt: if chainCC: raise KeyboardInterrupt try: ac = pickle.load(rdpipe) except EOFError: warning("Child died unexpectedly. Packets may have not been sent") else: arp_cache.update(ac) os.waitpid(pid,0) remain = reduce(list.__add__, hsent.values()) if autostop and len(remain) > 0 and len(remain) != len(tobesent): retry = autostop tobesent = remain retry -= 1 if conf.debug_match: debug.sent=SndRcvList(remain[:]) debug.match=SndRcvAns(ans[:]) if verbose: print "\nReceived %i packets, got %i answers, remaining %i packets" % (nbrecv+len(ans), len(ans), notans) return SndRcvAns(ans),SndRcvList(remain),debug.recv
12faa4212faa4f7c7dca2943e6cf423389fc0a90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/12faa4212faa4f7c7dca2943e6cf423389fc0a90/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 16, 2687, 6743, 33, 20, 16, 9620, 33, 20, 4672, 309, 486, 1549, 12, 5465, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 16, 2687, 6743, 33, 20, 16, 9620, 33, 20, 4672, 309, 486, 1549, 12, 5465, 88, ...
content = ref.read() ref.close()
try: content = ref.read() except UnicodeDecodeError, e: rowCol = getRowCol(e.object, e.start) e.reason = e.reason + "\nFile %s Line %s Column %s" %(str(filePath), str(rowCol[0]), str(rowCol[1]) ) raise e finally: ref.close()
def read(filePath, encoding="utf_8"): try: ref = codecs.open(filePath, encoding=encoding, mode="r") content = ref.read() ref.close() return textutil.any2Unix(unicode(content)) except IOError, (errno, strerror): #print " * I/O error(%s): %s (%s)" % (errno, strerror, filePath) raise except ValueError: #print " * Invalid Encoding. Required encoding %s in %s" % (encoding, filePath) raise except: #print " * Unexpected error:", sys.exc_info()[0], " (%s)" % filePath raise
74f479c88dd107e91b187da62ce514676553e29a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/74f479c88dd107e91b187da62ce514676553e29a/filetool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 22787, 16, 2688, 1546, 3158, 67, 28, 6, 4672, 775, 30, 1278, 273, 17437, 18, 3190, 12, 22787, 16, 2688, 33, 5999, 16, 1965, 1546, 86, 7923, 775, 30, 913, 273, 1278, 18, 896,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 22787, 16, 2688, 1546, 3158, 67, 28, 6, 4672, 775, 30, 1278, 273, 17437, 18, 3190, 12, 22787, 16, 2688, 33, 5999, 16, 1965, 1546, 86, 7923, 775, 30, 913, 273, 1278, 18, 896,...
r""" Central binomial coefficients: $2n \choose n = \frac {(2n)!} {(n!)^2}$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000984;a Central binomial coefficients: C(2n,n) = (2n)!/(n!)^2 sage: a(0) 1 sage: a(2) 6 sage: a(8) 12870 sage: a.list(9) [1, 2, 6, 20, 70, 252, 924, 3432, 12870] AUTHOR: -- Jaap Spies (2007-01-26) """ def __init__(self):
def __init__(self): r""" Central binomial coefficients: $2n \choose n = \frac {(2n)!} {(n!)^2}$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000984;a Central binomial coefficients: C(2n,n) = (2n)!/(n!)^2 sage: a(0) 1 sage: a(2) 6 sage: a(8) 12870 sage: a.list(9) [1, 2, 6, 20, 70, 252, 924, 3432, 12870] AUTHOR: -- Jaap Spies (2007-01-26) """
def list(self, n): self._eval(n) # force computation return self._b[:n]
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 365, 6315, 8622, 12, 82, 13, 282, 468, 2944, 16039, 327, 365, 6315, 70, 10531, 82, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 12, 2890, 16, 290, 4672, 365, 6315, 8622, 12, 82, 13, 282, 468, 2944, 16039, 327, 365, 6315, 70, 10531, 82, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SERVER_PASSWORD = Option('Communication Password', cmd='-x',
SERVER_PASSWORD = Option('Communication Password', cmd='-x', odesc='<password>',
def parse(self, argv, do_getopt=True): '''Parse options''' ret = {} if do_getopt: try: opts, args = getopt.getopt(argv, self.buildGetopt(), []) except getopt.GetoptError, err: self.helpExit(err) if '-h' in argv: self.helpExit('', 0) self['args'] = args for key in self.keys(): if key == 'args': continue option = self[key] if do_getopt: option.parse(opts, []) else: option.parse([], argv) if hasattr(option, '_value'): val = option.value self[key] = val
72a95ce7d070d5e3d50cba235ead269cf1edc6b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/72a95ce7d070d5e3d50cba235ead269cf1edc6b4/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 5261, 16, 741, 67, 588, 3838, 33, 5510, 4672, 9163, 3201, 702, 26418, 325, 273, 2618, 309, 741, 67, 588, 3838, 30, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 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, 1109, 12, 2890, 16, 5261, 16, 741, 67, 588, 3838, 33, 5510, 4672, 9163, 3201, 702, 26418, 325, 273, 2618, 309, 741, 67, 588, 3838, 30, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588...
Plot 3d is not implemented.
Plotting in 3D is not implemented.
def plot3d(self): r""" Plot 3d is not implemented.
4c5e1937fe73c05a208a1c8fdb96fca58580fae9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/4c5e1937fe73c05a208a1c8fdb96fca58580fae9/ellipse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 4672, 436, 8395, 15211, 890, 72, 353, 486, 8249, 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, 3207, 23, 72, 12, 2890, 4672, 436, 8395, 15211, 890, 72, 353, 486, 8249, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def __init__(self, madcow=None): self.google = Google()
google_url = 'http://www.google.com/' google_search = urljoin(google_url, '/search')
def __init__(self, madcow=None): self.google = Google()
09b1b0f98abc71bf6971789809cfeeceaed0a13e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10942/09b1b0f98abc71bf6971789809cfeeceaed0a13e/spellcheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 312, 361, 71, 543, 33, 7036, 4672, 365, 18, 9536, 273, 6124, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 361, 71, 543, 33, 7036, 4672, 365, 18, 9536, 273, 6124, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sRnd, tRnd, w = self.getRandPointsInQuad(s,t,numPoints) level = int(self.calculateLevelQuad(s,t)) samples = self.levels[level].sample(sRnd, tRnd) return ( samples*w.reshape(w.shape+(1,)) ).sum(0) / w.sum() def filterEllipticGaussianAF(self, s0, t0, deltaX, deltaY, J, returnWeights=False):
level = int(self.calculateLevel(s,t)) return self.levels[level].filterQuadAF(s,t, self.numSamples) def filterEWA(self, sBox, tBox, deltaX=None, deltaY=None, J=None):
def filterQuadAF(self, s, t, numPoints=100): ''' Filter the texture by sampling inside the given quadriateral specified by the texture-space vertices [s[1], t[1]], ... , [s[4], t[4]], and taking an average. Sample points are chosen stochastically over the quadrilateral at the mipmap level returned by calculateLevelQuad. This is essentially Monte Carlo integration, with a reconstruction filter equal to bilinear interpolation. ''' sRnd, tRnd, w = self.getRandPointsInQuad(s,t,numPoints) level = int(self.calculateLevelQuad(s,t)) samples = self.levels[level].sample(sRnd, tRnd) return ( samples*w.reshape(w.shape+(1,)) ).sum(0) / w.sum()
93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11560/93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395/mipmap_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 24483, 6799, 12, 2890, 16, 272, 16, 268, 16, 818, 5636, 33, 6625, 4672, 9163, 4008, 326, 11428, 635, 11558, 4832, 326, 864, 9474, 566, 2045, 287, 1269, 635, 326, 11428, 17, 2981, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 24483, 6799, 12, 2890, 16, 272, 16, 268, 16, 818, 5636, 33, 6625, 4672, 9163, 4008, 326, 11428, 635, 11558, 4832, 326, 864, 9474, 566, 2045, 287, 1269, 635, 326, 11428, 17, 2981, ...
assert res == (a == 1)
assert_equal(res,(a == 1))
def check_unsigned_long(self,level=5): a = 1 res = inline_tools.inline('return_val = (a == (unsigned long)1);',['a']) assert res == (a == 1)
1a2e32f8d57897230b5265290279639d73dda37e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/1a2e32f8d57897230b5265290279639d73dda37e/test_scxx_object.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 22297, 67, 5748, 12, 2890, 16, 2815, 33, 25, 4672, 279, 273, 404, 400, 273, 6370, 67, 6642, 18, 10047, 2668, 2463, 67, 1125, 273, 261, 69, 422, 261, 22297, 1525, 13, 21, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 22297, 67, 5748, 12, 2890, 16, 2815, 33, 25, 4672, 279, 273, 404, 400, 273, 6370, 67, 6642, 18, 10047, 2668, 2463, 67, 1125, 273, 261, 69, 422, 261, 22297, 1525, 13, 21, 176...
product_tmpl_id = product_obj.browse(cr, uid, product_id, context).product_tmpl_id.id
product = product_obj.browse(cr, uid, product_id, context) product_tmpl_id = product.product_tmpl_id.id
def get_real_price(res_dict, product_id, pricelist): item_obj = self.pool.get('product.pricelist.item') price_type_obj = self.pool.get('product.price.type') product_obj = self.pool.get('product.product') template_obj = self.pool.get('product.template') field_name = 'list_price'
95124a4a3f5b4124e6d6fd7b365643e639e0c5f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/95124a4a3f5b4124e6d6fd7b365643e639e0c5f7/product_visible_discount.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7688, 67, 8694, 12, 455, 67, 1576, 16, 3017, 67, 350, 16, 846, 335, 5449, 4672, 761, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 683, 335, 5449, 18, 1726, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7688, 67, 8694, 12, 455, 67, 1576, 16, 3017, 67, 350, 16, 846, 335, 5449, 4672, 761, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 683, 335, 5449, 18, 1726, 6134, ...
tls_port=settings.sip.tls_port if 'tls' in settings.sip.transport_list else None,
tls_port=None,
def _initialize_subsystems(self): account_manager = AccountManager() dns_manager = DNSManager() engine = Engine() notification_center = NotificationCenter() session_manager = SessionManager() settings = SIPSimpleSettings()
4ac13f17cf30674ff0975cd17675d8a5a4f48910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/4ac13f17cf30674ff0975cd17675d8a5a4f48910/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11160, 67, 1717, 4299, 87, 12, 2890, 4672, 2236, 67, 4181, 273, 6590, 1318, 1435, 6605, 67, 4181, 273, 8858, 1318, 1435, 4073, 273, 10507, 1435, 3851, 67, 5693, 273, 8050, 8449, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11160, 67, 1717, 4299, 87, 12, 2890, 4672, 2236, 67, 4181, 273, 6590, 1318, 1435, 6605, 67, 4181, 273, 8858, 1318, 1435, 4073, 273, 10507, 1435, 3851, 67, 5693, 273, 8050, 8449, 143...
if not isinstance(portal, type): portal = portal.__class__ m = sys.modules[portal.__module__]
if isinstance(portal, types.ModuleType): m = portal else: if isinstance(portal, NySite_module.NySite): portal = portal.__class__ m = sys.modules[portal.__module__]
def get_portal_path(self, portal): """ return the portal path given the metatype """ if not isinstance(portal, type): portal = portal.__class__ m = sys.modules[portal.__module__] return os.path.dirname(m.__file__)
0d5e81b5f8ec16db13c09ef4e5ce25d1d80a8efe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/0d5e81b5f8ec16db13c09ef4e5ce25d1d80a8efe/NaayaUpdater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 24386, 67, 803, 12, 2890, 16, 11899, 4672, 3536, 327, 326, 11899, 589, 864, 326, 5100, 6361, 3536, 309, 1549, 12, 24386, 16, 1953, 18, 3120, 559, 4672, 312, 273, 11899, 469, 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, 336, 67, 24386, 67, 803, 12, 2890, 16, 11899, 4672, 3536, 327, 326, 11899, 589, 864, 326, 5100, 6361, 3536, 309, 1549, 12, 24386, 16, 1953, 18, 3120, 559, 4672, 312, 273, 11899, 469, 3...
w_dem = space.newlong(1)
w_den = space.newlong(1)
def float_as_integer_ratio__Float(space, w_float): value = w_float.floatval if isinf(value): w_msg = space.wrap("cannot pass infinity to as_integer_ratio()") raise OperationError(space.w_OverflowError, w_msg) elif isnan(value): w_msg = space.wrap("cannot pass nan to as_integer_ratio()") raise OperationError(space.w_ValueError, w_msg) float_part, exp = math.frexp(value) for i in range(300): if float_part == math.floor(float_part): break float_part *= 2.0 exp -= 1 w_num = W_LongObject.fromfloat(float_part) w_dem = space.newlong(1) w_exp = space.newlong(abs(exp)) w_exp = space.lshift(w_dem, w_exp) if exp > 0: w_num = space.mul(w_num, w_exp) else: w_dem = w_exp # Try to return int. return space.newtuple([space.int(w_num), space.int(w_dem)])
c47979bdb1d789a6ae07a4c922ebb6023895e41e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/c47979bdb1d789a6ae07a4c922ebb6023895e41e/floatobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1431, 67, 345, 67, 7745, 67, 9847, 972, 4723, 12, 2981, 16, 341, 67, 5659, 4672, 460, 273, 341, 67, 5659, 18, 5659, 1125, 309, 353, 10625, 12, 1132, 4672, 341, 67, 3576, 273, 3476, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1431, 67, 345, 67, 7745, 67, 9847, 972, 4723, 12, 2981, 16, 341, 67, 5659, 4672, 460, 273, 341, 67, 5659, 18, 5659, 1125, 309, 353, 10625, 12, 1132, 4672, 341, 67, 3576, 273, 3476, 1...
log.info("rc is %s" % (str(rc)))
def _fetchPhysical(self, physical, url): #urllib.urlretrieve(d[lf], phy) # urlretrieve dies on interrupt signals # Use curl: fail silently, silence output, write to file tries = 1 maxTries = 3 pid = None while pid is None: try: pid = os.spawnv(os.P_NOWAIT, '/usr/bin/curl', ['curl', "-f", "-s", "-o", physical, url]) except OSError, e: if not (e.errno == 513): raise pass #retry on ERESTARTNOINTR rc = None while rc is None: try: log.info("rc is %s" % (str(rc))) (p,rc) = os.waitpid(pid,0) rc = os.WEXITSTATUS(rc) log.info("fetch OK (code=%d)"%rc) except OSError, e: if not (e.errno == 4): raise log.info("Retry, got errno 4 (interrupted syscall)") continue if rc != 0: raise StandardError("error fetching %s (curl code=%d)" % (url, rc))
8eac62fba42c57a2e2bd315961da837c0339d598 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5203/8eac62fba42c57a2e2bd315961da837c0339d598/swamp_common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 18136, 12, 2890, 16, 11640, 16, 880, 4672, 468, 718, 2941, 18, 718, 17466, 12, 72, 63, 20850, 6487, 1844, 93, 13, 468, 880, 17466, 27890, 603, 13123, 11505, 468, 2672, 3363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5754, 18136, 12, 2890, 16, 11640, 16, 880, 4672, 468, 718, 2941, 18, 718, 17466, 12, 72, 63, 20850, 6487, 1844, 93, 13, 468, 880, 17466, 27890, 603, 13123, 11505, 468, 2672, 3363, ...
session.close() conn.close()
if __name__ == '__main__': unittest.main()
def onException(self, exc): print exc, ':', exc.message
1125a305f56da5053f267b76e57f4f1b351e8071 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4509/1125a305f56da5053f267b76e57f4f1b351e8071/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 503, 12, 2890, 16, 3533, 4672, 1172, 3533, 16, 4290, 2187, 3533, 18, 2150, 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, 603, 503, 12, 2890, 16, 3533, 4672, 1172, 3533, 16, 4290, 2187, 3533, 18, 2150, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
logging.info("--------------End of test output ------------")
logging.info("------------- End of test output ------------")
def extract(vm, remote_path, dest_dir="."): """ Extract a .tar.bz2 file on the guest.
65c26f4ec088b3ff7340931b1e23ba33dd084a57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/65c26f4ec088b3ff7340931b1e23ba33dd084a57/kvm_test_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 3489, 16, 2632, 67, 803, 16, 1570, 67, 1214, 1546, 1199, 4672, 3536, 8152, 279, 263, 11718, 18, 25292, 22, 585, 603, 326, 13051, 18, 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, 0, 0, 0, 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, 2608, 12, 3489, 16, 2632, 67, 803, 16, 1570, 67, 1214, 1546, 1199, 4672, 3536, 8152, 279, 263, 11718, 18, 25292, 22, 585, 603, 326, 13051, 18, 2, -100, -100, -100, -100, -100, -100, -1...
collist = [Column('user_id', INT, primary_key = True), Column('user_name', VARCHAR(20)), Column('user_datetime', DateTime(timezone=False)), Column('user_date', Date), Column('user_time', Time)]
collist = [Column('user_id', INT, primary_key = True), Column('user_name', VARCHAR(20)), Column('user_datetime', DateTime), Column('user_date', Date), Column('user_time', oracle.OracleTimestamp)] else: insert_data = [ [7, 'jack', datetime.datetime(2005, 11, 10, 0, 0), datetime.datetime(2005, 11, 10, 0, 0, 0)], [8, 'roy', datetime.datetime(2005, 11, 10, 11, 52, 35), datetime.datetime(2006, 5, 10, 15, 32, 47)], [9, 'foo', datetime.datetime(2005, 11, 10, 11, 52, 35), datetime.datetime(2004, 9, 18, 4, 0, 52)], [10, 'colber', None, None] ] fnames = ['user_id', 'user_name', 'user_datetime', 'user_date', 'user_time'] collist = [Column('user_id', INT, primary_key = True), Column('user_name', VARCHAR(20)), Column('user_datetime', DateTime), Column('user_date', DateTime)] elif db.engine.name == 'mysql' or db.engine.name == 'mssql' or db.engine.name == 'sqlite': insert_data = [ [7, 'jack', datetime.datetime(2005, 11, 10, 0, 0), datetime.datetime(2005, 11, 10, 0, 0, 0)], [8, 'roy', datetime.datetime(2005, 11, 10, 11, 52, 35), datetime.datetime(2006, 5, 10, 15, 32, 47)], [9, 'foo', datetime.datetime(2005, 11, 10, 11, 52, 35), datetime.datetime(2004, 9, 18, 4, 0, 52)], [10, 'colber', None, None] ] fnames = ['user_id', 'user_name', 'user_datetime', 'user_date', 'user_time'] collist = [Column('user_id', INT, primary_key = True), Column('user_name', VARCHAR(20)), Column('user_datetime', DateTime), Column('user_date', DateTime)]
def setUpAll(self): global users_with_date, insert_data
ec6d7b39003f244b4acc7352f5973c910053e17f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/ec6d7b39003f244b4acc7352f5973c910053e17f/testtypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 1595, 12, 2890, 4672, 2552, 3677, 67, 1918, 67, 712, 16, 2243, 67, 892, 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, 24292, 1595, 12, 2890, 4672, 2552, 3677, 67, 1918, 67, 712, 16, 2243, 67, 892, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
cPickle.dump(CxxIncludeCache, icache, 1)
cPickle.dump(CXXINCLUDECACHE, icache, 1)
def CompileBAM(preconv, bam, egg): FLT2EGG = PREFIX+"/bin/flt2egg" EGG2BAM = PREFIX+"/bin/egg2bam" if (sys.platform == "win32"): FLT2EGG=FLT2EGG.replace("/","\\")+".exe" EGG2BAM=EGG2BAM.replace("/","\\")+".exe" if (older([bam], egg)): if (egg[-4:]==".flt"): oscmd(FLT2EGG + " -pr " + preconv + " -o " + PREFIX + "/tmp/tmp.egg" + " " + egg) oscmd(EGG2BAM + " -o " + bam + " " + PREFIX + "/tmp/tmp.egg") else: oscmd(EGG2BAM + " -pr " + preconv + " -o " + bam + " " + egg)
bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 2192, 12, 1484, 4896, 16, 11400, 16, 25144, 4672, 478, 12050, 22, 41, 19491, 273, 17154, 9078, 19, 4757, 19, 31864, 22, 23171, 6, 512, 19491, 22, 38, 2192, 273, 17154, 9078, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 2192, 12, 1484, 4896, 16, 11400, 16, 25144, 4672, 478, 12050, 22, 41, 19491, 273, 17154, 9078, 19, 4757, 19, 31864, 22, 23171, 6, 512, 19491, 22, 38, 2192, 273, 17154, 9078, ...