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
test_capi1()
def test_capi1(): try: _testcapi.raise_exception(BadException, 1) except TypeError, err: exc, err, tb = sys.exc_info() co = tb.tb_frame.f_code assert co.co_name == "test_capi1" assert co.co_filename.endswith('test_exceptions.py') else: print "Expected exception"
949bb2a89009da1910938314b735083d5a0ebf30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/949bb2a89009da1910938314b735083d5a0ebf30/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 2425, 21, 13332, 775, 30, 389, 3813, 71, 2425, 18, 11628, 67, 4064, 12, 6434, 503, 16, 404, 13, 1335, 3580, 16, 393, 30, 3533, 16, 393, 16, 8739, 273, 2589, 18, 10075, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 2425, 21, 13332, 775, 30, 389, 3813, 71, 2425, 18, 11628, 67, 4064, 12, 6434, 503, 16, 404, 13, 1335, 3580, 16, 393, 30, 3533, 16, 393, 16, 8739, 273, 2589, 18, 10075, ...
assert type(params) == TupleType or isinstance(params, Fault),\
assert isinstance(params, TupleType) or isinstance(params, Fault),\
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert a tuple or a fault object to an XML-RPC request (or response, if the methodsresponse option is used). In addition to the data object, the following options can be given as keyword arguments: methodna...
cd906440fbd0694e165a09262268a608df82deeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cd906440fbd0694e165a09262268a608df82deeb/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 279, 3193, 578, 279, 12530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 279, 3193, 578, 279, 12530, ...
_fl_get_defaults = cfuncproto(so_libforms, "fl_get_defaults", None, [cty.POINTER(FL_IOPT)],
_fl_get_defaults = cfuncproto(so_libforms, "fl_get_defaults", None, [cty.POINTER(FL_IOPT)],
def fl_set_tabstop(s): """ fl_set_tabstop(s) """ _fl_set_tabstop(s)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 7032, 5681, 12, 87, 4672, 3536, 1183, 67, 542, 67, 7032, 5681, 12, 87, 13, 3536, 225, 389, 2242, 67, 542, 67, 7032, 5681, 12, 87, 13, 282, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 542, 67, 7032, 5681, 12, 87, 4672, 3536, 1183, 67, 542, 67, 7032, 5681, 12, 87, 13, 3536, 225, 389, 2242, 67, 542, 67, 7032, 5681, 12, 87, 13, 282, 2, -100, -100, -100, -...
req.write("<p>Words nearest to <strong>%s</strong> " % p)
req.write("<p>Words nearest to <em>%s</em> " % p)
def browse_in_bibwords(req, p, f): """Browse inside words indexes.""" req.write("<p>Words nearest to <strong>%s</strong> " % p) if f: req.write(" inside <strong>%s</strong> " % f) req.write(" are:<br>") url = string.replace(req.args, "search=Browse","search=SEARCH") req.write(create_nearest_words_links(url, p, f)) retu...
0f644a3e9a21fa49065fbfbec95493378ff259fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/0f644a3e9a21fa49065fbfbec95493378ff259fb/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 267, 67, 70, 495, 3753, 12, 3658, 16, 293, 16, 284, 4672, 3536, 27304, 4832, 4511, 5596, 12123, 1111, 18, 2626, 2932, 32, 84, 34, 7363, 11431, 358, 411, 351, 9822, 87, 1757,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 267, 67, 70, 495, 3753, 12, 3658, 16, 293, 16, 284, 4672, 3536, 27304, 4832, 4511, 5596, 12123, 1111, 18, 2626, 2932, 32, 84, 34, 7363, 11431, 358, 411, 351, 9822, 87, 1757,...
def find_library(name): lib = _findLib_ld(name) or _findLib_gcc(name) if not lib: return None return _get_soname(lib)
if (sys.platform.startswith("freebsd") or sys.platform.startswith("openbsd") or sys.platform.startswith("dragonfly")): def _num_version(libname): parts = libname.split(".") nums = [] try: while parts: nums.insert(0, int(parts.pop())) except ValueError: pass return nums or [ sys.maxint ] def find_library(name): ename...
def find_library(name): lib = _findLib_ld(name) or _findLib_gcc(name) if not lib: return None return _get_soname(lib)
d059e7b42301856ea006ec4a11b0953a65c2b6c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/d059e7b42301856ea006ec4a11b0953a65c2b6c8/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 12083, 12, 529, 4672, 2561, 273, 389, 4720, 5664, 67, 1236, 12, 529, 13, 578, 389, 4720, 5664, 67, 75, 952, 12, 529, 13, 309, 486, 2561, 30, 327, 599, 327, 389, 588, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 12083, 12, 529, 4672, 2561, 273, 389, 4720, 5664, 67, 1236, 12, 529, 13, 578, 389, 4720, 5664, 67, 75, 952, 12, 529, 13, 309, 486, 2561, 30, 327, 599, 327, 389, 588, 67, ...
spe.giveNamedItem(self.userid, "weapon_hegrenade")
given_weapon = spe.giveNamedItem(self.userid, "weapon_hegrenade")
def give_weapon(self): ''' Gives a player their current levels weapon. ''' error = None # Make sure player is on a team if es.getplayerteam(self.userid) < 2: error = ('Unable to give player weapon (%s):' % self.userid + ' is not on a team.')
ddaf6c383e3db1f2eab84592ffe4f6b39b5f2acd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/ddaf6c383e3db1f2eab84592ffe4f6b39b5f2acd/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8492, 67, 1814, 28629, 12, 2890, 4672, 9163, 611, 3606, 279, 7291, 3675, 783, 7575, 732, 28629, 18, 9163, 555, 273, 599, 468, 4344, 3071, 7291, 353, 603, 279, 5927, 309, 5001, 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, 8492, 67, 1814, 28629, 12, 2890, 4672, 9163, 611, 3606, 279, 7291, 3675, 783, 7575, 732, 28629, 18, 9163, 555, 273, 599, 468, 4344, 3071, 7291, 353, 603, 279, 5927, 309, 5001, 18, 588, ...
('clear', [Mpfr], None, clear_init),
('clear', [IMpfr], None, clear_init),
def error_on_failure(result, func, args): if result: raise ValueError("call failed") return result
b450c0023d8375a0580fdd1ed0db290a5d5cd85a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/b450c0023d8375a0580fdd1ed0db290a5d5cd85a/pympfr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 67, 265, 67, 12251, 12, 2088, 16, 1326, 16, 833, 4672, 309, 563, 30, 1002, 2068, 2932, 1991, 2535, 7923, 327, 563, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 67, 265, 67, 12251, 12, 2088, 16, 1326, 16, 833, 4672, 309, 563, 30, 1002, 2068, 2932, 1991, 2535, 7923, 327, 563, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
candidates.reverse()
def prepare(package_spec): """Work with a few globals variables, like repositories, ... """ try: package_version = VersionPredicate(package_spec) except ValueError: unretrievables.append((prepare_code.BadName, package_spec)) return prepare_code.NoAvailableCandidate # Repository listing repo_candidates = [] for repo i...
01ecd63c2d938d7beee4a4360db270ce1935736a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/01ecd63c2d938d7beee4a4360db270ce1935736a/isetup-install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 5610, 67, 2793, 4672, 3536, 2421, 598, 279, 11315, 10941, 3152, 16, 3007, 14531, 16, 1372, 3536, 775, 30, 2181, 67, 1589, 273, 4049, 8634, 12, 5610, 67, 2793, 13, 1335, 2068, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 5610, 67, 2793, 4672, 3536, 2421, 598, 279, 11315, 10941, 3152, 16, 3007, 14531, 16, 1372, 3536, 775, 30, 2181, 67, 1589, 273, 4049, 8634, 12, 5610, 67, 2793, 13, 1335, 2068, ...
self._renderer.RemoveAllProps()
self._renderer.RemoveAllViewProps()
def close(self): for i in range(len(self.getInputDescriptions())): self.setInput(i, None)
9d6c92908d8c489d05fcf40293011acf8ca86ba9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/9d6c92908d8c489d05fcf40293011acf8ca86ba9/histogramSegment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 588, 1210, 16844, 1435, 3719, 30, 365, 18, 542, 1210, 12, 77, 16, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 588, 1210, 16844, 1435, 3719, 30, 365, 18, 542, 1210, 12, 77, 16, 599, 13, 2, -100, -100, -100, -100, -100, -100, -...
MelOptStruct('XCLL','=3Bs3Bs3Bs2f2i2f','ambientRed','ambientGreen','ambientBlue',
MelCoordinates('XCLC','iiI',('posX',None),('posY',None),('forceHideLand',0L)), MelCellXcll('XCLL','=3Bs3Bs3Bs2f2i3f','ambientRed','ambientGreen','ambientBlue',
def dumpData(self,record,out): if not record.flags.isInterior: MelOptStruct.dumpData(self,record,out)
6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 751, 12, 2890, 16, 3366, 16, 659, 4672, 309, 486, 1409, 18, 7133, 18, 291, 2465, 9659, 30, 490, 292, 6179, 3823, 18, 8481, 751, 12, 2890, 16, 3366, 16, 659, 13, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 751, 12, 2890, 16, 3366, 16, 659, 4672, 309, 486, 1409, 18, 7133, 18, 291, 2465, 9659, 30, 490, 292, 6179, 3823, 18, 8481, 751, 12, 2890, 16, 3366, 16, 659, 13, 2, -100, -100, ...
not conn._db.closed or 1 / 0 conn.cursor().execute("select user();")
conn.ping() except MySQLdb.DatabaseError: return 0 else:
def SimpleQueryTest(conn): try: # poor man's assertion not conn._db.closed or 1 / 0 conn.cursor().execute("select user();") return 1 except: return 0
2d3f0b38c3a173192b41e748a9659481dea70fbc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/2d3f0b38c3a173192b41e748a9659481dea70fbc/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4477, 1138, 4709, 12, 4646, 4672, 775, 30, 468, 8275, 280, 3161, 1807, 11240, 4646, 18, 1382, 1435, 1335, 13485, 1966, 18, 4254, 668, 30, 327, 374, 469, 30, 327, 404, 1335, 30, 327, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4477, 1138, 4709, 12, 4646, 4672, 775, 30, 468, 8275, 280, 3161, 1807, 11240, 4646, 18, 1382, 1435, 1335, 13485, 1966, 18, 4254, 668, 30, 327, 374, 469, 30, 327, 404, 1335, 30, 327, 37...
raise ValueError, "Sextic twist not defined when j!=1728"
raise ValueError, "Sextic twist not defined when j!=0"
def sextic_twist(self, D): """ Return the sextic twist of this curve by D, which must be nonzero.
68e09358c02d864b25e44f8b39b493d0076e9393 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/68e09358c02d864b25e44f8b39b493d0076e9393/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 408, 335, 67, 11246, 376, 12, 2890, 16, 463, 4672, 3536, 2000, 326, 272, 408, 335, 2339, 376, 434, 333, 8882, 635, 463, 16, 1492, 1297, 506, 16966, 18, 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, 272, 408, 335, 67, 11246, 376, 12, 2890, 16, 463, 4672, 3536, 2000, 326, 272, 408, 335, 2339, 376, 434, 333, 8882, 635, 463, 16, 1492, 1297, 506, 16966, 18, 2, -100, -100, -100, -100, ...
if new_status != ticket['status']:
if new_status != self._old_status(ticket):
def render_ticket_action_control(self, req, ticket, action): """Returns the action control""" actions = ConfigurableTicketWorkflow(self.env).actions label = actions[action]['name'] new_status = self._new_status(ticket) if new_status != ticket['status']: hint = 'The status will change to %s' % new_status else: hint = ''...
4af49e8e94593ab3d61bd892c5138c5192b7cc7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6863/4af49e8e94593ab3d61bd892c5138c5192b7cc7a/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 3536, 1356, 326, 1301, 3325, 8395, 4209, 273, 29312, 13614, 8484, 12, 2890, 18, 3074, 2934, 4905, 1433,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 3536, 1356, 326, 1301, 3325, 8395, 4209, 273, 29312, 13614, 8484, 12, 2890, 18, 3074, 2934, 4905, 1433,...
if "--" in args: args = args[:args.index("--")] for opt in aliases: if opt in args: return args[args.index(opt) + 1] return None
"""Return list of values for a option (with aliases) in given order""" try: argcount = args.index("--") except ValueError: argcount = len(args) values = [] pos = 0 while pos < argcount: valuepos = argcount for opt in aliases: try: candidate = args.index(opt, pos, argcount) + 1 if candidate < valuepos: valuepos = cand...
def earlygetopt(aliases, args): if "--" in args: args = args[:args.index("--")] for opt in aliases: if opt in args: return args[args.index(opt) + 1] return None
720353f6466e86a75860f48994a1a78053dfd39e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/720353f6466e86a75860f48994a1a78053dfd39e/cmdutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11646, 588, 3838, 12, 13831, 16, 833, 4672, 3536, 990, 666, 434, 924, 364, 279, 1456, 261, 1918, 6900, 13, 316, 864, 1353, 8395, 775, 30, 1501, 1883, 273, 833, 18, 1615, 2932, 413, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11646, 588, 3838, 12, 13831, 16, 833, 4672, 3536, 990, 666, 434, 924, 364, 279, 1456, 261, 1918, 6900, 13, 316, 864, 1353, 8395, 775, 30, 1501, 1883, 273, 833, 18, 1615, 2932, 413, 792...
canonical_container = UNKNOWN
def canonical_name(self): if self.container is UNKNOWN: raise ValueError, `self` if (self.container is UNKNOWN or self.container.canonical_name is UNKNOWN): return UNKNOWN else: return self.container.canonical_name + self.name
9c8a03d00034cbc15bd30659e0adc8628832f614 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/9c8a03d00034cbc15bd30659e0adc8628832f614/apidoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 529, 12, 2890, 4672, 309, 365, 18, 3782, 353, 13598, 30, 1002, 2068, 16, 1375, 2890, 68, 309, 261, 2890, 18, 3782, 353, 13598, 578, 365, 18, 3782, 18, 18288, 67, 529, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 529, 12, 2890, 4672, 309, 365, 18, 3782, 353, 13598, 30, 1002, 2068, 16, 1375, 2890, 68, 309, 261, 2890, 18, 3782, 353, 13598, 578, 365, 18, 3782, 18, 18288, 67, 529, 353, ...
bran_points is the image with the branch points of the skeleton of that object
branch_points is the image with the branch points of the skeleton of that object Ported from ml_find_branch_points.m
def find_branch_points(img): """ branch_points = ml_find_branch_points( img) img is the image with the skeleton of one object bran_points is the image with the branch points of the skeleton of that object """ kernel = array([[0,1,0],[1,0,1],[0,1,0]]) branch_points = convolve(img,kernel)*img; return (branch_points < 3) ...
15dcb93d41cb9c0de9deddcdb3914d7e9a78295c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/15dcb93d41cb9c0de9deddcdb3914d7e9a78295c/imgskelfeats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 7500, 67, 4139, 12, 6081, 4672, 3536, 3803, 67, 4139, 273, 12931, 67, 4720, 67, 7500, 67, 4139, 12, 3774, 13, 3774, 353, 326, 1316, 598, 326, 17761, 434, 1245, 733, 3803, 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, 1104, 67, 7500, 67, 4139, 12, 6081, 4672, 3536, 3803, 67, 4139, 273, 12931, 67, 4720, 67, 7500, 67, 4139, 12, 3774, 13, 3774, 353, 326, 1316, 598, 326, 17761, 434, 1245, 733, 3803, 67,...
self.centralPanel.subWindowActivated.connect(self.setCurrentPlotWindow)
self.connect(self.centralPanel, QtCore.SIGNAL('subWindowActivated(QMdiSubWindow *)'), self.setCurrentPlotWindow)
def __init__(self, interpreter=None, parent=None):
7b7548b84fd1df14be49360f90e997914870085a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2961/7b7548b84fd1df14be49360f90e997914870085a/moosegui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16048, 33, 7036, 16, 982, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16048, 33, 7036, 16, 982, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return re.sub(r'[^a-zA-Z0-9]', escchar, i)
return re.sub(r'[\"\
def uri2word(i): return re.sub(r'[^a-zA-Z0-9]', escchar, i)
0e6ce2163d245c13ea4c5af082d1bc676b2643df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/0e6ce2163d245c13ea4c5af082d1bc676b2643df/KIFSink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2003, 22, 1095, 12, 77, 4672, 225, 327, 283, 18, 1717, 12, 86, 11, 63, 31670, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2003, 22, 1095, 12, 77, 4672, 225, 327, 283, 18, 1717, 12, 86, 11, 63, 31670, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.cursor.execute("UPDATE " + self.table_name + " "\ "SET \"" + column_name + "\" = NULL")
self.cursor.execute('UPDATE "' + self.table_name + '" '\ 'SET "' + column_name + '" = NULL')
def add_raw_column(self, column_name, column_type, default_fun=None, field_size=None, migrate = True): if column_name in self.table:
4da5cd211bd2177e823c79d4d55af658e6f50478 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/4da5cd211bd2177e823c79d4d55af658e6f50478/sql_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1899, 67, 2827, 12, 2890, 16, 1057, 67, 529, 16, 1057, 67, 723, 16, 805, 67, 12125, 33, 7036, 16, 652, 67, 1467, 33, 7036, 16, 13187, 273, 1053, 4672, 309, 1057, 67, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1899, 67, 2827, 12, 2890, 16, 1057, 67, 529, 16, 1057, 67, 723, 16, 805, 67, 12125, 33, 7036, 16, 652, 67, 1467, 33, 7036, 16, 13187, 273, 1053, 4672, 309, 1057, 67, 529, ...
if cover is not None: pass elif self.metadata.cover: id = str(self.metadata.cover[0]) cover = self.manifest.ids[id] elif MS_COVER_TYPE in self.guide:
if MS_COVER_TYPE in self.guide:
def _ensure_cover_image(self): cover = None hcover = self.spine[0] if 'cover' in self.guide: href = self.guide['cover'].href item = self.manifest.hrefs[href] media_type = item.media_type if media_type in OEB_RASTER_IMAGES: cover = item elif media_type in OEB_DOCS: hcover = item html = hcover.data if cover is not None: ...
c2aa71e851ed8225f77f9d52bdacee32ae6de06c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/c2aa71e851ed8225f77f9d52bdacee32ae6de06c/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15735, 67, 3165, 67, 2730, 12, 2890, 4672, 5590, 273, 599, 366, 3165, 273, 365, 18, 1752, 558, 63, 20, 65, 309, 296, 3165, 11, 316, 365, 18, 12118, 30, 3897, 273, 365, 18, 12118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15735, 67, 3165, 67, 2730, 12, 2890, 4672, 5590, 273, 599, 366, 3165, 273, 365, 18, 1752, 558, 63, 20, 65, 309, 296, 3165, 11, 316, 365, 18, 12118, 30, 3897, 273, 365, 18, 12118...
r""" The odd numbers a(n) = 2n + 1. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005408;a
def __init__(self): r"""
def _eval(self, n): return Integer(n**2 // 4)
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 82, 636, 22, 368, 1059, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 82, 636, 22, 368, 1059, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
''' startPoint [1] ''' startElement=ET.SubElement(simElement,'startPoint') ''' startPoint element has an optional start date and an option end date ''' ''' endPoint [1] ''' endElement=ET.SubElement(simElement,'endPoint') ''' endPoint element has an optional start date and an option end date '''
def add_simulation(self,simClass,rootElement):
2937a8963dfa97f0c5ac52221d0e5b3e2f073c4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7019/2937a8963dfa97f0c5ac52221d0e5b3e2f073c4f/Translator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9812, 6234, 12, 2890, 16, 9812, 797, 16, 3085, 1046, 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, 527, 67, 9812, 6234, 12, 2890, 16, 9812, 797, 16, 3085, 1046, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.add_target(targetmatch.group(namegroup), '', target)
self.add_target(targetmatch.group('name'), '', target)
def hyperlink_target(self, match): pattern = self.explicit.patterns.target namegroup = self.explicit.groups.target.name lineno = self.state_machine.abs_line_number() block, indent, offset, blank_finish = \ self.state_machine.get_first_known_indented( match.end(), until_blank=1, strip_indent=0) blocktext = match.string[...
9aa86b66cf632d24cd8412c352ecb461084727da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/9aa86b66cf632d24cd8412c352ecb461084727da/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9512, 1232, 67, 3299, 12, 2890, 16, 845, 4672, 1936, 273, 365, 18, 16511, 18, 13317, 18, 3299, 508, 1655, 273, 365, 18, 16511, 18, 4650, 18, 3299, 18, 529, 7586, 273, 365, 18, 2019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9512, 1232, 67, 3299, 12, 2890, 16, 845, 4672, 1936, 273, 365, 18, 16511, 18, 13317, 18, 3299, 508, 1655, 273, 365, 18, 16511, 18, 4650, 18, 3299, 18, 529, 7586, 273, 365, 18, 2019, ...
else: psrc = self.nraw
def __init__(self, data, idict, parent=None): self.data = data self.contents = {} if parent == None: self.predicate = lambda x:True else: predicate = parent.predicate if data.get('negate', 'false') == 'true': psrc = self.raw else: psrc = self.nraw if data.tag in psrc.keys(): self.predicate = eval(psrc[data.tag] % (data...
97b3be0782c108e47bc5ab1a4119029fcffe208d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/97b3be0782c108e47bc5ab1a4119029fcffe208d/Plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 16, 612, 933, 16, 982, 33, 7036, 4672, 365, 18, 892, 273, 501, 365, 18, 3980, 273, 2618, 309, 982, 422, 599, 30, 365, 18, 18344, 273, 3195, 619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 16, 612, 933, 16, 982, 33, 7036, 4672, 365, 18, 892, 273, 501, 365, 18, 3980, 273, 2618, 309, 982, 422, 599, 30, 365, 18, 18344, 273, 3195, 619, ...
event.Skip()
def txt_edit_evt_char(self, event): """Called when the user enter some text in the entry widget.""" key = event.GetKeyCode() if key == 13: # enter # Enter pressed value = self.txt_edit.GetValue() if not value: # ignore event if nothing typed event.Skip() return self.command_buffer.append(value) self.txt_edit.SetValue("...
27fbeb2ff1603a38af53d47f26e78175c77bddc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2718/27fbeb2ff1603a38af53d47f26e78175c77bddc4/window_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6463, 67, 4619, 67, 73, 11734, 67, 3001, 12, 2890, 16, 871, 4672, 3536, 8185, 1347, 326, 729, 6103, 2690, 977, 316, 326, 1241, 3604, 12123, 498, 273, 871, 18, 967, 653, 1085, 1435, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6463, 67, 4619, 67, 73, 11734, 67, 3001, 12, 2890, 16, 871, 4672, 3536, 8185, 1347, 326, 729, 6103, 2690, 977, 316, 326, 1241, 3604, 12123, 498, 273, 871, 18, 967, 653, 1085, 1435, 309...
if (self.path.find("/cache/private") != 0):
if not self._ShouldHandleRequest("/cache/private"):
def CachePrivateHandler(self): """This request handler yields a page with the title set to the current system time, and allows caching for 5 seconds."""
fd57e3fda1b173b113442291fc77ddf1659615e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/fd57e3fda1b173b113442291fc77ddf1659615e2/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4379, 6014, 1503, 12, 2890, 4672, 3536, 2503, 590, 1838, 16932, 279, 1363, 598, 326, 2077, 444, 358, 326, 783, 2619, 813, 16, 471, 5360, 11393, 364, 1381, 3974, 12123, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4379, 6014, 1503, 12, 2890, 4672, 3536, 2503, 590, 1838, 16932, 279, 1363, 598, 326, 2077, 444, 358, 326, 783, 2619, 813, 16, 471, 5360, 11393, 364, 1381, 3974, 12123, 2, -100, -100, -10...
n = Neighborhood.gql("WHERE name = :name", name = "Capital Hill")
n = Neighborhood.gql("WHERE name = :name", name = "Capital Hill").get()
def is_initialized(self): n = Neighborhood.gql("WHERE name = :name", name = "Capital Hill") if n: return True else: return False
88e5bfc1c4f0ddd365cf181275f020e2f83d5bd6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/88e5bfc1c4f0ddd365cf181275f020e2f83d5bd6/home.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 13227, 12, 2890, 4672, 290, 273, 30663, 280, 19619, 18, 75, 1217, 2932, 12299, 508, 273, 294, 529, 3113, 508, 273, 315, 4664, 7053, 670, 737, 20387, 588, 1435, 309, 290, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 13227, 12, 2890, 4672, 290, 273, 30663, 280, 19619, 18, 75, 1217, 2932, 12299, 508, 273, 294, 529, 3113, 508, 273, 315, 4664, 7053, 670, 737, 20387, 588, 1435, 309, 290, 30, 3...
def __init__(self, range=('w', 0, 1, 101, 0), func=identity, time=1000, parent=None):
def __init__(self, rangep=('w', 0, 1, 0, 10), func=identity, duration=1000, parent=None):
def __init__(self, range=('w', 0, 1, 101, 0), func=identity, time=1000, parent=None): QtGui.QWidget.__init__(self, parent) uic.loadUi(pjoin(modulosPath,"Gui","paramTemplate.ui"), self) self.name = range[0] self.func = func ## ============================ self.range = range[1:] self.vmin, self.vmax, self.npoints, self.v...
fedb455aa34eae075692653c238a01a50b40c7e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12801/fedb455aa34eae075692653c238a01a50b40c7e8/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1048, 84, 33, 2668, 91, 2187, 374, 16, 404, 16, 374, 16, 1728, 3631, 1326, 33, 10781, 16, 3734, 33, 18088, 16, 982, 33, 7036, 4672, 225, 23425, 18, 53,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1048, 84, 33, 2668, 91, 2187, 374, 16, 404, 16, 374, 16, 1728, 3631, 1326, 33, 10781, 16, 3734, 33, 18088, 16, 982, 33, 7036, 4672, 225, 23425, 18, 53,...
debug("MAL::_do_add_sms sms: %s indexes: %s" % (sms, indexes))
debug("MAL::_do_add_sms sms: %s indexes: %s" % (sms, indexes))
def _do_add_sms(self, sms, indexes=None): """ Adds ``sms`` to the cache using ``indexes`` if defined
8025c5a277afe71e867db2e6eebabd693f24d4b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/8025c5a277afe71e867db2e6eebabd693f24d4b4/mal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 1289, 67, 20984, 12, 2890, 16, 16188, 16, 5596, 33, 7036, 4672, 3536, 15605, 12176, 20984, 10335, 358, 326, 1247, 1450, 12176, 11265, 10335, 309, 2553, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 1289, 67, 20984, 12, 2890, 16, 16188, 16, 5596, 33, 7036, 4672, 3536, 15605, 12176, 20984, 10335, 358, 326, 1247, 1450, 12176, 11265, 10335, 309, 2553, 2, -100, -100, -100, ...
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context)
if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context)
def min(self, other, context=None): """Returns the smaller value.
671e5a8d0fad370b2658f33fee096f4d5b1401a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/671e5a8d0fad370b2658f33fee096f4d5b1401a1/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 10648, 460, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 10648, 460, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
maxNu = max(2.0 * min(n1, n2) / (n1 + n2) for n1, n2 in pairs(dist))
maxNu = min(2.0 * min(n1, n2) / (n1 + n2) for n1, n2 in pairs(dist))
def pairs(seq): for i, n1 in enumerate(seq): for n2 in seq[i+1:]: yield n1, n2
b22659477358125c40f72ea6400fce5ca9b69b19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/b22659477358125c40f72ea6400fce5ca9b69b19/orngSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5574, 12, 5436, 4672, 364, 277, 16, 290, 21, 316, 4241, 12, 5436, 4672, 364, 290, 22, 316, 3833, 63, 77, 15, 21, 30, 14542, 2824, 290, 21, 16, 290, 22, 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, 5574, 12, 5436, 4672, 364, 277, 16, 290, 21, 316, 4241, 12, 5436, 4672, 364, 290, 22, 316, 3833, 63, 77, 15, 21, 30, 14542, 2824, 290, 21, 16, 290, 22, 2, -100, -100, -100, -100, -...
def _escapeRegexChars(s): for c in r"\[^$.|?*+()": s = s.replace(c,"\\"+c) s = s.replace("\n",r"\n") s = s.replace("\t",r"\t") return _ustr(s)
def _escapeRegexChars(s): #~ escape these chars: [\^$.|?*+() for c in r"\[^$.|?*+()": s = s.replace(c,"\\"+c) s = s.replace("\n",r"\n") s = s.replace("\t",r"\t") return _ustr(s)
9a33bb57ceb368ac97295f985a97dd23a908c708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/9a33bb57ceb368ac97295f985a97dd23a908c708/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6939, 6628, 7803, 12, 87, 4672, 468, 98, 225, 4114, 4259, 5230, 30, 23781, 66, 8, 18, 96, 35, 14, 15, 1435, 364, 276, 316, 436, 12691, 5969, 8, 18, 96, 35, 14, 15, 1435, 6877,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6939, 6628, 7803, 12, 87, 4672, 468, 98, 225, 4114, 4259, 5230, 30, 23781, 66, 8, 18, 96, 35, 14, 15, 1435, 364, 276, 316, 436, 12691, 5969, 8, 18, 96, 35, 14, 15, 1435, 6877,...
def write(self, arg, move=0): x, y = start = self._position
def write(self, text, move=False): """ Write text at the current pen position. If move is true, the pen is moved to the bottom-right corner of the text. By default, move is False. Example: >>> turtle.write('The race is on!') >>> turtle.write('Home = (0, 0)', True) """ x, y = self._position
def write(self, arg, move=0): x, y = start = self._position x = x-1 # correction -- calibrated for Windows item = self._canvas.create_text(x, y, text=str(arg), anchor="sw", fill=self._color) self._items.append(item) if move: x0, y0, x1, y1 = self._canvas.bbox(item) self._goto(x1, y1) self._draw_turtle()
97324e132aa8e41ef597f91f42d2d171c39f616a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/97324e132aa8e41ef597f91f42d2d171c39f616a/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 977, 16, 3635, 33, 8381, 4672, 3536, 2598, 977, 622, 326, 783, 14264, 1754, 18, 225, 971, 3635, 353, 638, 16, 326, 14264, 353, 10456, 358, 326, 5469, 17, 4083, 1105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 977, 16, 3635, 33, 8381, 4672, 3536, 2598, 977, 622, 326, 783, 14264, 1754, 18, 225, 971, 3635, 353, 638, 16, 326, 14264, 353, 10456, 358, 326, 5469, 17, 4083, 1105...
special.append(make_parameter(argnames[-1], excess_keyword=True))
special.append(make_parameter(argnames[-1], excess_keyword=1))
def parse_parameter_list(self, node): parameters = [] special = [] argnames = list(node.argnames) if node.kwargs: special.append(make_parameter(argnames[-1], excess_keyword=True)) argnames.pop() if node.varargs: special.append(make_parameter(argnames[-1], excess_positional=True)) argnames.pop() defaults = list(node.def...
759bfa476c030229b24a99ab411b15968e18e899 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/759bfa476c030229b24a99ab411b15968e18e899/moduleparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 6775, 67, 1098, 12, 2890, 16, 756, 4672, 1472, 273, 5378, 4582, 273, 5378, 1501, 1973, 273, 666, 12, 2159, 18, 297, 1600, 753, 13, 309, 756, 18, 4333, 30, 4582, 18, 6923, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 6775, 67, 1098, 12, 2890, 16, 756, 4672, 1472, 273, 5378, 4582, 273, 5378, 1501, 1973, 273, 666, 12, 2159, 18, 297, 1600, 753, 13, 309, 756, 18, 4333, 30, 4582, 18, 6923, 1...
AUTHOR: This is a modified version of inspect.getargspec from the Python Standard Library, which was taken from IPython for use in SAGE.
EXAMPLES: sage: sage.misc.sageinspect.sage_getargspec(sage.rings.integer.Integer.factor) (['self', 'algorithm'], None, None, ('pari',)) sage: sage.misc.sageinspect.sage_getargspec(sage.misc.sageinspect.sage_getargspec) (['obj'], None, None, None) AUTHOR: -- William Stein: a modified version of inspect.getargspec from ...
def sage_getargspec(obj): r""" Return the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' ...
6349942662979579a385e99dd7cb1e1cc730f494 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/6349942662979579a385e99dd7cb1e1cc730f494/sageinspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 588, 23172, 12, 2603, 4672, 436, 8395, 2000, 326, 1257, 471, 805, 924, 434, 279, 445, 1807, 1775, 18, 225, 432, 3193, 434, 12792, 9198, 353, 2106, 30, 261, 1968, 16, 1973...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 588, 23172, 12, 2603, 4672, 436, 8395, 2000, 326, 1257, 471, 805, 924, 434, 279, 445, 1807, 1775, 18, 225, 432, 3193, 434, 12792, 9198, 353, 2106, 30, 261, 1968, 16, 1973...
Number Field in a1 with defining polynomial x^6 + 40*x^3 + 1372
Number Field in b1 with defining polynomial x^6 + 40*x^3 + 1372
def embeddings(self, K): """ Compute all field embeddings of self into the field K (which need not even be a number field, e.g., it could be the complex numbers). This will return an identical result when given K as input again.
14875f5f1a907d5619a36dc6b8d18809afed3a9d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/14875f5f1a907d5619a36dc6b8d18809afed3a9d/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4724, 24715, 12, 2890, 16, 1475, 4672, 3536, 8155, 777, 652, 4724, 24715, 434, 365, 1368, 326, 652, 1475, 261, 12784, 1608, 486, 5456, 506, 279, 1300, 652, 16, 425, 18, 75, 12990, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4724, 24715, 12, 2890, 16, 1475, 4672, 3536, 8155, 777, 652, 4724, 24715, 434, 365, 1368, 326, 652, 1475, 261, 12784, 1608, 486, 5456, 506, 279, 1300, 652, 16, 425, 18, 75, 12990, 518, ...
KNX.EIBClose()
def _sendloop(self): addr = 0 msg = [] KNX = EIBConnection.EIBConnection() try: KNX.EIBSocketURL(self.config['url']) while self.isrunning: try: (addr,msg) = self.sendQueue.get(timeout=1) KNX.EIBSendGroup(addr,msg) except Empty: pass except: self.WG.errorlog("Failed send %r %r" % (addr,msg)) finally: self._sendThread = ...
f8498a624ad2417040841430a7ffcba491fd9a0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5166/f8498a624ad2417040841430a7ffcba491fd9a0d/KNX_Connector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 6498, 12, 2890, 4672, 3091, 273, 374, 1234, 273, 5378, 22652, 273, 512, 13450, 1952, 18, 41, 13450, 1952, 1435, 775, 30, 22652, 18, 41, 13450, 4534, 1785, 12, 2890, 18, 1425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4661, 6498, 12, 2890, 4672, 3091, 273, 374, 1234, 273, 5378, 22652, 273, 512, 13450, 1952, 18, 41, 13450, 1952, 1435, 775, 30, 22652, 18, 41, 13450, 4534, 1785, 12, 2890, 18, 1425, ...
path = os.path.normpath(os.path.abspath(path))
path = os.path.abspath(path)
def process_file(path, options, logger=None): if re.match('http://|https://', path): raise ConversionError, 'You have to save the website %s as an html file first and then run html2lrf on it.'%(path,) if logger is None: level = logging.DEBUG if options.verbose else logging.INFO logger = logging.getLogger('html2lrf') se...
d2eba932cadff1972624ee4b3a3e03097c6aa553 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/d2eba932cadff1972624ee4b3a3e03097c6aa553/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 768, 12, 803, 16, 702, 16, 1194, 33, 7036, 4672, 309, 283, 18, 1916, 2668, 2505, 2207, 96, 4528, 2207, 2187, 589, 4672, 1002, 16401, 668, 16, 296, 6225, 1240, 358, 1923, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 768, 12, 803, 16, 702, 16, 1194, 33, 7036, 4672, 309, 283, 18, 1916, 2668, 2505, 2207, 96, 4528, 2207, 2187, 589, 4672, 1002, 16401, 668, 16, 296, 6225, 1240, 358, 1923, 326,...
os.path.join(base_path, dictionary[option]))
os.path.abspath(os.path.join(base_path, dictionary[option])))
def make_paths_absolute(dictionary, base_path=None): """ Interpret filesystem path settings relative to the `base_path` given. """ if base_path is None: base_path = os.getcwd() for option in relative_path_options: if dictionary.has_key(option) and dictionary[option]: dictionary[option] = os.path.normpath( os.path.join(...
ac624f9ab5b74b88aaa989dfdfb9d0e93a404db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/ac624f9ab5b74b88aaa989dfdfb9d0e93a404db4/frontend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4481, 67, 12547, 12, 15556, 16, 1026, 67, 803, 33, 7036, 4672, 3536, 5294, 15089, 6496, 589, 1947, 3632, 358, 326, 1375, 1969, 67, 803, 68, 864, 18, 3536, 309, 1026, 67, 803,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4481, 67, 12547, 12, 15556, 16, 1026, 67, 803, 33, 7036, 4672, 3536, 5294, 15089, 6496, 589, 1947, 3632, 358, 326, 1375, 1969, 67, 803, 68, 864, 18, 3536, 309, 1026, 67, 803,...
if t.orelse: self.write(" else ") self.dispatch(t.orelse)
self.write(" else ") self.dispatch(t.orelse) self.write(")")
def _IfExp(self, t): self.dispatch(t.body) self.write(" if ") self.dispatch(t.test) if t.orelse: self.write(" else ") self.dispatch(t.orelse)
370480032ecec8ec7718f276ca463670a69ead37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/370480032ecec8ec7718f276ca463670a69ead37/unparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2047, 2966, 12, 2890, 16, 268, 4672, 365, 18, 10739, 12, 88, 18, 3432, 13, 365, 18, 2626, 2932, 309, 9369, 365, 18, 10739, 12, 88, 18, 3813, 13, 309, 268, 18, 479, 80, 307, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2047, 2966, 12, 2890, 16, 268, 4672, 365, 18, 10739, 12, 88, 18, 3432, 13, 365, 18, 2626, 2932, 309, 9369, 365, 18, 10739, 12, 88, 18, 3813, 13, 309, 268, 18, 479, 80, 307, 30...
assert "invalid option tuple: %r" % (option,)
raise ValueError, "invalid option tuple: %r" % (option,)
def _grok_option_table (self): """Populate the various data structures that keep tabs on the option table. Called by 'getopt()' before it can do anything worthwhile. """ self.long_opts = [] self.short_opts = [] self.short2long.clear() self.repeat = {}
d2774ffbeba61500be9151664b7932368e4ba980 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d2774ffbeba61500be9151664b7932368e4ba980/fancy_getopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 75, 3250, 67, 3482, 67, 2121, 261, 2890, 4672, 3536, 19097, 326, 11191, 501, 12597, 716, 3455, 10920, 603, 326, 1456, 1014, 18, 225, 11782, 635, 296, 588, 3838, 11866, 1865, 518, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 75, 3250, 67, 3482, 67, 2121, 261, 2890, 4672, 3536, 19097, 326, 11191, 501, 12597, 716, 3455, 10920, 603, 326, 1456, 1014, 18, 225, 11782, 635, 296, 588, 3838, 11866, 1865, 518, 84...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 79) else quickfix.StringField.__init__(self, 79, 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 26517, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 26517, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972...
category = meta.get(meta.KEY_CATEGORY),
category = meta.get(meta.KEY_CATEGORY).lower(),
def __find_displays(self, path):
42b986b8a287fe697ec8af858a62b77687a3a68c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5768/42b986b8a287fe697ec8af858a62b77687a3a68c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4720, 67, 5417, 87, 12, 2890, 16, 589, 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...
[ 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, 1001, 4720, 67, 5417, 87, 12, 2890, 16, 589, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self.getWinInfo( year ).LocateEndDay( year )
return self.getWinInfo(year).LocateEndDay(year)
def GetDSTEndTime( self, year ): "Given a year, determines the time when daylight savings ends." return self.getWinInfo( year ).LocateEndDay( year )
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 40, 882, 25255, 12, 365, 16, 3286, 262, 30, 315, 6083, 279, 3286, 16, 12949, 326, 813, 1347, 2548, 5099, 4087, 899, 3930, 1199, 327, 365, 18, 588, 18049, 966, 12, 6874, 2934, 1333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 40, 882, 25255, 12, 365, 16, 3286, 262, 30, 315, 6083, 279, 3286, 16, 12949, 326, 813, 1347, 2548, 5099, 4087, 899, 3930, 1199, 327, 365, 18, 588, 18049, 966, 12, 6874, 2934, 1333...
def printEvent(self, type, text): if text: self.signalManager.addEvent(type + " from " + self.captionTitle[3:] + ": " + text) if not self.eventHandler: return if text == None: self.eventHandler("") else: self.eventHandler(type + " from " + self.captionTitle[3:] + ": " + text)
def printEvent(self, text, eventVerbosity = 1): self.signalManager.addEvent(self.captionTitle[3:] + ": " + text, eventVerbosity = eventVerbosity) if self.eventHandler: self.eventHandler(self.captionTitle[3:] + ": " + text, eventVerbosity)
def printEvent(self, type, text): if text: self.signalManager.addEvent(type + " from " + self.captionTitle[3:] + ": " + text) if not self.eventHandler: return if text == None: self.eventHandler("") else: self.eventHandler(type + " from " + self.captionTitle[3:] + ": " + text)
0e491378e71212a6a34471826031736d4a3a8cd6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e491378e71212a6a34471826031736d4a3a8cd6/OWBaseWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1133, 12, 2890, 16, 618, 16, 977, 4672, 309, 977, 30, 365, 18, 10420, 1318, 18, 1289, 1133, 12, 723, 397, 315, 628, 315, 397, 365, 18, 15386, 4247, 63, 23, 26894, 397, 6398, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1133, 12, 2890, 16, 618, 16, 977, 4672, 309, 977, 30, 365, 18, 10420, 1318, 18, 1289, 1133, 12, 723, 397, 315, 628, 315, 397, 365, 18, 15386, 4247, 63, 23, 26894, 397, 6398, 31...
P ( contents = [
P ( contents = [
def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '/images/pointer.png' ), A( _N['home'], href=makeURL( '', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '/images/englishlogo.png' ), A( 'English', href='%(BASE)s' )]), P ( contents = [ Img( src = '/images/g...
846194f3836b7e3473a516c54c1f17757297aebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/846194f3836b7e3473a516c54c1f17757297aebf/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
del self.contextName[contextName]
del self.contextNames[contextName]
def unregisterContextName(self, contextName): if self.contextNames.has_key(contextName): del self.contextName[contextName]
bca2e3223b0fd9dd0f2b2d6770c78fc3fa3d6051 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/bca2e3223b0fd9dd0f2b2d6770c78fc3fa3d6051/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10232, 1042, 461, 12, 2890, 16, 819, 461, 4672, 309, 365, 18, 2472, 1557, 18, 5332, 67, 856, 12, 2472, 461, 4672, 1464, 365, 18, 2472, 461, 63, 2472, 461, 65, 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, 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, 10232, 1042, 461, 12, 2890, 16, 819, 461, 4672, 309, 365, 18, 2472, 1557, 18, 5332, 67, 856, 12, 2472, 461, 4672, 1464, 365, 18, 2472, 461, 63, 2472, 461, 65, 2, -100, -100, -100, -1...
if self.first_sequence == self.last_sequence: yield len(self.bitfield) == 0 return yield self.last_sequence > self.first_sequence size = (self.last_sequence - self.first_sequence) + 1 bitfield_size = math.ceil(size/8.0) yield len(self.bitfield) == bitfield_size
def valid_conditions(self): yield self.first_sequence >= 0 yield self.last_sequence >= 0
8066d457afb63918b0619a55d2bd2c71022df18f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10501/8066d457afb63918b0619a55d2bd2c71022df18f/specs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 6381, 12, 2890, 4672, 2824, 365, 18, 3645, 67, 6178, 1545, 374, 2824, 365, 18, 2722, 67, 6178, 1545, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 6381, 12, 2890, 4672, 2824, 365, 18, 3645, 67, 6178, 1545, 374, 2824, 365, 18, 2722, 67, 6178, 1545, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for x in range(-2, 2): for y in range(-2, 2):
for x in range(-2, 3): for y in range(-2, 3):
def find( char, object = None ): # check for dynamic items items = wolfpack.items( char.pos.x, char.pos.y, char.pos.map, 2 ) for item in items: if item.id in object: return True # Check for static items for x in range(-2, 2): for y in range(-2, 2): statics = wolfpack.statics(char.pos.x + x, char.pos.y + y, char.pos.ma...
2ec6550f4b573049b9fd72b5e0d63524551124f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2ec6550f4b573049b9fd72b5e0d63524551124f0/cooking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 1149, 16, 733, 273, 599, 262, 30, 468, 866, 364, 5976, 1516, 1516, 273, 341, 355, 74, 2920, 18, 3319, 12, 1149, 18, 917, 18, 92, 16, 1149, 18, 917, 18, 93, 16, 1149, 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, 1104, 12, 1149, 16, 733, 273, 599, 262, 30, 468, 866, 364, 5976, 1516, 1516, 273, 341, 355, 74, 2920, 18, 3319, 12, 1149, 18, 917, 18, 92, 16, 1149, 18, 917, 18, 93, 16, 1149, 18, ...
req.add_header('Authorization', 'Digest %s' % auth)
req.add_header(self.header, 'Digest %s' % auth)
def retry_http_digest_auth(self, req, auth): token, challenge = auth.split(' ', 1) chal = parse_keqv_list(parse_http_list(challenge)) auth = self.get_authorization(req, chal) if auth: req.add_header('Authorization', 'Digest %s' % auth) resp = self.parent.open(req) self.__current_realm = None return resp
1b93b27c676477c6204c07ce1bc9433bef07bcff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1b93b27c676477c6204c07ce1bc9433bef07bcff/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 2505, 67, 10171, 67, 1944, 12, 2890, 16, 1111, 16, 1357, 4672, 1147, 16, 12948, 273, 1357, 18, 4939, 2668, 2265, 404, 13, 462, 287, 273, 1109, 67, 4491, 85, 90, 67, 1098, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 2505, 67, 10171, 67, 1944, 12, 2890, 16, 1111, 16, 1357, 4672, 1147, 16, 12948, 273, 1357, 18, 4939, 2668, 2265, 404, 13, 462, 287, 273, 1109, 67, 4491, 85, 90, 67, 1098, 1...
"""Handle mouse down"""
"""Handle mouse button down"""
def _doDown(self, evt): """Handle mouse down""" self.mousePos = [evt.x, evt.y] self.btnDown = True
c27501cab7a14477428cf8488de40d84a3a02be0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/c27501cab7a14477428cf8488de40d84a3a02be0/ResizableRect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 4164, 12, 2890, 16, 6324, 4672, 3536, 3259, 7644, 3568, 2588, 8395, 365, 18, 11697, 1616, 273, 306, 73, 11734, 18, 92, 16, 6324, 18, 93, 65, 365, 18, 11898, 4164, 273, 1053,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 4164, 12, 2890, 16, 6324, 4672, 3536, 3259, 7644, 3568, 2588, 8395, 365, 18, 11697, 1616, 273, 306, 73, 11734, 18, 92, 16, 6324, 18, 93, 65, 365, 18, 11898, 4164, 273, 1053,...
return (super(TransparencyConditionalBlock, self).shouldShow(item) and not event.anyTime and (event.allDay or bool(event.duration)))
if event.allDay: return True return (not event.anyTime) and bool(event.duration)
def shouldShow(self, item): # don't show for anyTime or @time events (but do show for allDay # events, which happen to be anyTime too) event = pim.EventStamp(item) return (super(TransparencyConditionalBlock, self).shouldShow(item) and not event.anyTime and (event.allDay or bool(event.duration)))
2661c7d78a81cbb36fd79a1e0a8e6d14069c8a72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/2661c7d78a81cbb36fd79a1e0a8e6d14069c8a72/detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 5706, 12, 2890, 16, 761, 4672, 468, 2727, 1404, 2405, 364, 1281, 950, 578, 632, 957, 2641, 261, 12885, 741, 2405, 364, 777, 4245, 468, 2641, 16, 1492, 5865, 358, 506, 1281, 950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 5706, 12, 2890, 16, 761, 4672, 468, 2727, 1404, 2405, 364, 1281, 950, 578, 632, 957, 2641, 261, 12885, 741, 2405, 364, 777, 4245, 468, 2641, 16, 1492, 5865, 358, 506, 1281, 950, ...
noMating(), rep=5)
cloneMating(), rep=5)
def testOutputExpr(self): 'Testing the usage of output expression' simu = simulator( population(), noMating(), rep=5) # each replicate simu.evolve([ pyOutput("a", outputExpr="'rep%d.txt'%rep"), ], gen=10) # although everyone have written to this file, # only the last one will be kept for i in range(5): self.assertFileC...
d2a64a33ec8b3752c1da1631cb187d71b2fdc1b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/d2a64a33ec8b3752c1da1631cb187d71b2fdc1b7/test_03_operator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1447, 4742, 12, 2890, 4672, 296, 22218, 326, 4084, 434, 876, 2652, 11, 3142, 89, 273, 3142, 11775, 12, 11209, 9334, 3236, 49, 1776, 9334, 2071, 33, 25, 13, 468, 1517, 28476, 3142, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1447, 4742, 12, 2890, 4672, 296, 22218, 326, 4084, 434, 876, 2652, 11, 3142, 89, 273, 3142, 11775, 12, 11209, 9334, 3236, 49, 1776, 9334, 2071, 33, 25, 13, 468, 1517, 28476, 3142, ...
raise ValidationError("'%s' is not a valid choice for this field" % d)
raise ValidationError(u"'%s' is not a valid choice for this field" % d)
def _validate(self, *args): choices = [c[0] for c in self.choices] for d in self.data: if d not in choices: raise ValidationError("'%s' is not a valid choice for this field" % d)
2628c7c9ec71ea98325b9042441d263d384c9902 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8614/2628c7c9ec71ea98325b9042441d263d384c9902/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 12, 2890, 16, 380, 1968, 4672, 7246, 273, 306, 71, 63, 20, 65, 364, 276, 316, 365, 18, 11937, 65, 364, 302, 316, 365, 18, 892, 30, 309, 302, 486, 316, 7246, 30, 1002, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 12, 2890, 16, 380, 1968, 4672, 7246, 273, 306, 71, 63, 20, 65, 364, 276, 316, 365, 18, 11937, 65, 364, 302, 316, 365, 18, 892, 30, 309, 302, 486, 316, 7246, 30, 1002, 13...
elif getattr(self, 'prior', None) == '/':
elif self.prior == '/':
def buildnextreg(self, path, clist): """Recursively build our regexp given a path, and a controller list. Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg """ if path: part = path[0] else: part = '' reg = '' # noreqs will remember whether the...
639ed01fd89a0beab6d134310dbeba55283ad796 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/639ed01fd89a0beab6d134310dbeba55283ad796/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4285, 1574, 12, 2890, 16, 589, 16, 927, 376, 4672, 3536, 12474, 1361, 3134, 7195, 864, 279, 589, 16, 471, 279, 2596, 666, 18, 225, 2860, 326, 6736, 2652, 533, 16, 471, 2795, 3105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4285, 1574, 12, 2890, 16, 589, 16, 927, 376, 4672, 3536, 12474, 1361, 3134, 7195, 864, 279, 589, 16, 471, 279, 2596, 666, 18, 225, 2860, 326, 6736, 2652, 533, 16, 471, 2795, 3105...
self.hboxlayout47.addWidget(self.textLabel2_4_3) self.gridlayout26.addLayout(self.hboxlayout47,5,2,1,1)
self.hboxlayout50.addWidget(self.textLabel2_4_3) self.gridlayout26.addLayout(self.hboxlayout50,5,2,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
self.buf.write(unicode(tag_name))
self.buf.write(unicode(tag_name).encode('utf-8'))
def binary_to_text(self, base=0, depth=0): space_enabled, saved_space_enabled = 1, 0 was_indented, is_goingdown = 0, 0 tag_name = current_map = None dynamic_tag = errors = in_censorship = 0 state = 'text' index = base flags = 0 while index < len(self.bin): c, index = read_utf8_char(self.bin, index) if state == 'text...
494c50dd961f2be3ce0d2cb1e04320a2bafdeb42 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/494c50dd961f2be3ce0d2cb1e04320a2bafdeb42/lit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3112, 67, 869, 67, 955, 12, 2890, 16, 1026, 33, 20, 16, 3598, 33, 20, 4672, 3476, 67, 5745, 16, 5198, 67, 2981, 67, 5745, 273, 404, 16, 374, 1703, 67, 9355, 329, 16, 353, 67, 8162,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3112, 67, 869, 67, 955, 12, 2890, 16, 1026, 33, 20, 16, 3598, 33, 20, 4672, 3476, 67, 5745, 16, 5198, 67, 2981, 67, 5745, 273, 404, 16, 374, 1703, 67, 9355, 329, 16, 353, 67, 8162,...
0.20787954
0.20787
def __pow__(self, right): """ EXAMPLES: sage: C, i = ComplexField(20).objgen() sage: a = i^2; a -1.0000000 sage: a.parent() Complex Field with 20 bits of precision sage: a = (1+i)^i; a 0.42882919 + 0.15487170*I sage: (1+i)^(1+i) 0.27395725 + 0.58370113*I sage: a.parent() Complex Field with 20 bits of precision sage: i^...
0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66,...
if parent is not None: if e_name not in self.parents: self.parents[e_name] = list() self.parents[e_name].append(parent.getName())
def processLeaf(self, element, parent): """ Process an element (a leaf). """ logging.debug("Processing leaf: (%s) --> (%s)" % (parent, element)) e = element e_name = e.getName() e_type = e.getType() if not e.isExplicitDefine() \ and (e_name not in EXPLICIT_DEFINE_OVERRIDE or not e.topLevel): logging.info("Element %s.%s...
bb59ff383ca776915b2d3d5ed83674ae8b90ec89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/bb59ff383ca776915b2d3d5ed83674ae8b90ec89/fu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9858, 12, 2890, 16, 930, 16, 982, 4672, 3536, 4389, 392, 930, 261, 69, 7839, 2934, 3536, 2907, 18, 4148, 2932, 7798, 7839, 30, 6142, 87, 13, 15431, 6142, 87, 2225, 738, 261, 2938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9858, 12, 2890, 16, 930, 16, 982, 4672, 3536, 4389, 392, 930, 261, 69, 7839, 2934, 3536, 2907, 18, 4148, 2932, 7798, 7839, 30, 6142, 87, 13, 15431, 6142, 87, 2225, 738, 261, 2938...
file.Write(" static_cast<ValueType*>(cmd)->Init(%s);\n" %
file.Write(" static_cast<ValueType*>(cmd)->Init(%s, _data_size);\n" %
def WriteImmediateCmdSet(self, func, file): """Overrriden from TypeHandler.""" last_arg = func.GetLastOriginalArg() file.Write(" void* Set(void* cmd%s) {\n" % func.MakeTypedOriginalArgString("_", True)) file.Write(" static_cast<ValueType*>(cmd)->Init(%s);\n" % func.MakeOriginalArgString("_")) file.Write(" const ...
8a837bb40249dfd9f0a2736abdab4f64592c99db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8a837bb40249dfd9f0a2736abdab4f64592c99db/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 5931, 694, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 1142, 67, 3175, 273, 1326, 18, 967, 3024, 8176, 4117, 1435, 585, 18, 3067, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 5931, 694, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 1142, 67, 3175, 273, 1326, 18, 967, 3024, 8176, 4117, 1435, 585, 18, 3067, 2932...
return S_OK((fids,lfns)) def __addDataFiles(self,lfns,connection=False): """ Add a file to the DataFiles table and retrieve the FileIDs """ res = self.__getFileIDsForLfns(lfns,connection=connection) if not res['OK']: return res fileIDs,lfnFileIDs = res['Value']
return S_OK( ( fids, lfns ) ) def __addDataFiles( self, lfns, connection = False ): """ Add a file to the DataFiles table and retrieve the FileIDs """ res = self.__getFileIDsForLfns( lfns, connection = connection ) if not res['OK']: return res fileIDs, lfnFileIDs = res['Value']
def __getLfnsForFileIDs(self,fileIDs,connection=False): """ Get lfns for the given list of fileIDs """ req = "SELECT LFN,FileID FROM DataFiles WHERE FileID in (%s);" % stringListToString(fileIDs) res = self._query(req,connection) if not res['OK']: return res fids = {} lfns = {} for lfn,fileID in res['Value']: fids[lfn]...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 48, 74, 2387, 1290, 812, 5103, 12, 2890, 16, 768, 5103, 16, 4071, 33, 8381, 4672, 3536, 968, 18594, 2387, 364, 326, 864, 666, 434, 585, 5103, 3536, 1111, 273, 315, 4803, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 48, 74, 2387, 1290, 812, 5103, 12, 2890, 16, 768, 5103, 16, 4071, 33, 8381, 4672, 3536, 968, 18594, 2387, 364, 326, 864, 666, 434, 585, 5103, 3536, 1111, 273, 315, 4803, 188...
del msg['Reply-To']
def msg_send(self, msg, emails, priority=None): if not len(emails): return False del msg['To'] msg['To'] = emails[0] if len(emails)>1: if 'Cc' in msg: del msg['Cc'] msg['Cc'] = ','.join(emails[1:]) del msg['Reply-To'] msg['Reply-To'] = self.email if priority: msg['X-Priority'] = priorities.get(priority, '3 (Normal)') s...
58e9a51264038e97e4ac99a3a64ac10d68e4c26a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/58e9a51264038e97e4ac99a3a64ac10d68e4c26a/openerp_mailgate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 4661, 12, 2890, 16, 1234, 16, 14255, 16, 4394, 33, 7036, 4672, 309, 486, 562, 12, 22762, 4672, 327, 1083, 1464, 1234, 3292, 774, 3546, 1234, 3292, 774, 3546, 273, 14255, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 4661, 12, 2890, 16, 1234, 16, 14255, 16, 4394, 33, 7036, 4672, 309, 486, 562, 12, 22762, 4672, 327, 1083, 1464, 1234, 3292, 774, 3546, 1234, 3292, 774, 3546, 273, 14255, 63, ...
help="specify profile to modify by its primary group (%s)." % styles.stylize(styles.ST_IMPORTANT, "required"))
help="specify profile to modify by its primary group (%s)." % styles.stylize(styles.ST_IMPORTANT, "one of --name or --group is required"))
def mod_profile_parse_arguments(app): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % styles.stylize(styles.ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--ad...
4559cb68c55d791cc4138a382ba8a46485ca1efd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/4559cb68c55d791cc4138a382ba8a46485ca1efd/argparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 67, 5040, 67, 2670, 67, 7099, 12, 2910, 4672, 225, 4084, 67, 955, 273, 1548, 82, 64, 88, 9, 87, 3042, 1493, 1655, 27127, 12306, 34, 306, 413, 529, 27127, 82, 1395, 537, 8377, 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, 681, 67, 5040, 67, 2670, 67, 7099, 12, 2910, 4672, 225, 4084, 67, 955, 273, 1548, 82, 64, 88, 9, 87, 3042, 1493, 1655, 27127, 12306, 34, 306, 413, 529, 27127, 82, 1395, 537, 8377, 67...
raise SkipTest("Locale support on MacOSX is minimal")
raise unittest.SkipTest("Locale support on MacOSX is minimal")
def get_enUS_locale(): global enUS_locale if sys.platform == 'darwin': import os tlocs = ("en_US.UTF-8", "en_US.ISO8859-1", "en_US") if int(os.uname()[2].split('.')[0]) < 10: # The locale test work fine on OSX 10.6, I (ronaldoussoren) # haven't had time yet to verify if tests work on OSX 10.5 # (10.4 is known to be bad...
6b76487467925fddb1aa6604a74ff14994aeaf63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/6b76487467925fddb1aa6604a74ff14994aeaf63/test_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 275, 3378, 67, 6339, 13332, 2552, 570, 3378, 67, 6339, 309, 2589, 18, 9898, 422, 296, 28076, 4278, 1930, 1140, 268, 24323, 273, 7566, 275, 67, 3378, 18, 5159, 17, 28, 3113, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 275, 3378, 67, 6339, 13332, 2552, 570, 3378, 67, 6339, 309, 2589, 18, 9898, 422, 296, 28076, 4278, 1930, 1140, 268, 24323, 273, 7566, 275, 67, 3378, 18, 5159, 17, 28, 3113, 31...
set_fieldset_required("ldap", False)
set_fieldset_required("auth_ldap", False)
def set_fieldset_required(fieldset_id, required): for fieldset in self.Meta.fieldsets: if 'id' in fieldset and fieldset['id'] == fieldset_id: for field in fieldset['fields']: self.fields[field].required = required
43aea6f5ebf8440280aa818aafc0bc27b953bc2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/43aea6f5ebf8440280aa818aafc0bc27b953bc2c/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 23397, 67, 4718, 12, 23397, 67, 350, 16, 1931, 4672, 364, 16885, 316, 365, 18, 2781, 18, 1518, 4424, 30, 309, 296, 350, 11, 316, 16885, 471, 16885, 3292, 350, 3546, 422, 16885...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23397, 67, 4718, 12, 23397, 67, 350, 16, 1931, 4672, 364, 16885, 316, 365, 18, 2781, 18, 1518, 4424, 30, 309, 296, 350, 11, 316, 16885, 471, 16885, 3292, 350, 3546, 422, 16885...
asyncore.loop(timeout=1, use_poll=hasattr(asyncore.select, 'poll'))
try: asyncore.loop(timeout=1, use_poll=hasattr(asyncore.select, 'poll')) except (KeyboardInterrupt, SystemExit, asyncore.ExitNow): log("Shutting down FTPd.") self.close_all()
def serve_forever(self): log("Serving FTP on %s:%s." %self.socket.getsockname()) # FIX #16 # by default we try to use poll(), if it is available, # else we'll use select() asyncore.loop(timeout=1, use_poll=hasattr(asyncore.select, 'poll'))
e617643487a0793e295c862d045ef8118370b4d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e617643487a0793e295c862d045ef8118370b4d9/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 12, 2890, 4672, 613, 2932, 25721, 19324, 603, 738, 87, 5319, 87, 1199, 738, 2890, 18, 7814, 18, 14665, 975, 529, 10756, 468, 8563, 468, 2313, 468, 635, 805, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 12, 2890, 4672, 613, 2932, 25721, 19324, 603, 738, 87, 5319, 87, 1199, 738, 2890, 18, 7814, 18, 14665, 975, 529, 10756, 468, 8563, 468, 2313, 468, 635, 805, 732, ...
for _,insn in self.body:
for _, insn in self.body:
def __str__(self): s = repr(self) for _,insn in self.body: s += "\n%s%s" % (" * " if insn.in_slice else " ", repr(insn)) return s
63b309d6f3838e4cb5c2921faf3bb1472f46245c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/63b309d6f3838e4cb5c2921faf3bb1472f46245c/newslice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 272, 273, 8480, 12, 2890, 13, 364, 389, 16, 29821, 316, 365, 18, 3432, 30, 272, 1011, 1548, 82, 9, 87, 9, 87, 6, 738, 7566, 380, 315, 309, 29821, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 272, 273, 8480, 12, 2890, 13, 364, 389, 16, 29821, 316, 365, 18, 3432, 30, 272, 1011, 1548, 82, 9, 87, 9, 87, 6, 738, 7566, 380, 315, 309, 29821, 18...
def printGapList(self, filename, time_tolerance = -1, samprate_tolerance = -1, min_gap = None, max_gap = None):
def printGapList(self, filename, time_tolerance= -1, samprate_tolerance= -1, min_gap=None, max_gap=None):
def getGapList(self, filename, time_tolerance = -1, samprate_tolerance = -1, min_gap = None, max_gap = None): """ Returns gaps, overlaps and trace header information of a given file. Each item has a starttime and a duration value to characterize the gap. The starttime is the last correct data sample. If no gaps are fo...
da81b4ce7064a28a168b56663efe435b307a52d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/da81b4ce7064a28a168b56663efe435b307a52d4/libmseed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7162, 438, 682, 12, 2890, 16, 1544, 16, 813, 67, 25456, 273, 300, 21, 16, 16260, 683, 340, 67, 25456, 273, 300, 21, 16, 1131, 67, 14048, 273, 599, 16, 943, 67, 14048, 273, 599, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7162, 438, 682, 12, 2890, 16, 1544, 16, 813, 67, 25456, 273, 300, 21, 16, 16260, 683, 340, 67, 25456, 273, 300, 21, 16, 1131, 67, 14048, 273, 599, 16, 943, 67, 14048, 273, 599, 4672,...
if not os.path.exists(DIRAC.gConfig.diracConfigFilePath): configDir = os.path.dirname(DIRAC.gConfig.diracConfigFilePath) if not os.path.exists(configDir): os.makedirs(configDir) csDisabledFlag = bool(Script.localCfg.csDisabled) Script.enableCS()
if not os.path.exists( DIRAC.gConfig.diracConfigFilePath ): configDir = os.path.dirname( DIRAC.gConfig.diracConfigFilePath ) if not os.path.exists( configDir ): os.makedirs( configDir ) if Script.localCfg.csDisabled and Script.localCfg.csDisabledServers: from DIRAC.ConfigurationSystem.Client.ConfigurationData import gC...
def usage(): Script.showHelp() DIRAC.exit( 2 )
c3496dcd0891746d04bc4c72309b10c3fd9f2de0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3496dcd0891746d04bc4c72309b10c3fd9f2de0/dirac-configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 7739, 18, 4500, 6696, 1435, 18544, 2226, 18, 8593, 12, 576, 262, 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, ...
[ 1, 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, 4084, 13332, 7739, 18, 4500, 6696, 1435, 18544, 2226, 18, 8593, 12, 576, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
secondlvl = self.model.index(0,0,topindex)
secondlvl = self.model.index(0, 0, topindex)
def rowCount(self): """ Tests self.model's implementation of QtCore.QAbstractItemModel::rowCount() and hasChildren()
ed4ea4fec39587cca2aeb18d36a0fa5f722ca150 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/ed4ea4fec39587cca2aeb18d36a0fa5f722ca150/modeltest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14888, 12, 2890, 4672, 3536, 7766, 87, 365, 18, 2284, 1807, 4471, 434, 20193, 18, 53, 7469, 1180, 1488, 2866, 492, 1380, 1435, 471, 27780, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 14888, 12, 2890, 4672, 3536, 7766, 87, 365, 18, 2284, 1807, 4471, 434, 20193, 18, 53, 7469, 1180, 1488, 2866, 492, 1380, 1435, 471, 27780, 1435, 2, -100, -100, -100, -100, -100, -100, -1...
head, tail = os.path.split(module.__filename__) path = [os.path.join(head, '')]
head, tail = os.path.split(module.__filename__) path = [os.path.join(head, '')]
def reload(self, module, path=None): if path is None and hasattr(module, '__filename__'): head, tail = os.path.split(module.__filename__) path = [os.path.join(head, '')] return ihooks.ModuleImporter.reload(self, module, path)
b9c951d8cedeec531cce217b5117b5d471b1e468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b9c951d8cedeec531cce217b5117b5d471b1e468/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 16, 1605, 16, 589, 33, 7036, 4672, 309, 589, 353, 599, 471, 3859, 12, 2978, 16, 4940, 3459, 7250, 4672, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 16, 1605, 16, 589, 33, 7036, 4672, 309, 589, 353, 599, 471, 3859, 12, 2978, 16, 4940, 3459, 7250, 4672, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, ...
decimalSeperatorNode = tree.find("numbers/symbols/decimal") if decimalSeperatorNode != None: data['number_decimal_seperator'] = decimalSeperatorNode.text groupSeperator = "," groupSeperatorNode = tree.find("numbers/symbols/group") if groupSeperatorNode != None: data['number_group_seperator'] = groupSeperatorNode.text
decimalSeparatorNode = tree.find("numbers/symbols/decimal") if decimalSeparatorNode != None: data['number_decimal_separator'] = decimalSeparatorNode.text groupSeparator = "," groupSeparatorNode = tree.find("numbers/symbols/group") if groupSeparatorNode != None: data['number_group_separator'] = groupSeparatorNode.text
def extractNumber(tree): data = {} decimalSeperatorNode = tree.find("numbers/symbols/decimal") if decimalSeperatorNode != None: data['number_decimal_seperator'] = decimalSeperatorNode.text groupSeperator = "," groupSeperatorNode = tree.find("numbers/symbols/group") if groupSeperatorNode != None: data['number_group_se...
c03d55c579461b57761b9b723901de8d98aabc61 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/c03d55c579461b57761b9b723901de8d98aabc61/cldr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 1854, 12, 3413, 4672, 501, 273, 2618, 225, 6970, 6581, 907, 273, 2151, 18, 4720, 2932, 13851, 19, 15536, 19, 12586, 7923, 309, 6970, 6581, 907, 480, 599, 30, 501, 3292, 2696, 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, 2608, 1854, 12, 3413, 4672, 501, 273, 2618, 225, 6970, 6581, 907, 273, 2151, 18, 4720, 2932, 13851, 19, 15536, 19, 12586, 7923, 309, 6970, 6581, 907, 480, 599, 30, 501, 3292, 2696, 67, ...
args.args.remove(out)
def importer(self, args):
547cf7de3744685ad0d45788a26fe0f9257604cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/547cf7de3744685ad0d45788a26fe0f9257604cc/import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15198, 12, 2890, 16, 833, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15198, 12, 2890, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self._oleobj_.Invoke(self._olerepr_.propMapPut[attr].dispid, 0, pythoncom.DISPATCH_PROPERTYPUT, 0, value)
entry = self._olerepr_.propMapPut[attr] invoke_type = _GetDescInvokeType(entry, pythoncom.INVOKE_PROPERTYPUT) self._oleobj_.Invoke(entry.dispid, 0, invoke_type, 0, value)
def __setattr__(self, attr, value): if self.__dict__.has_key(attr): # Fast-track - if already in our dict, just make the assignment. # XXX - should maybe check method map - if someone assigns to a method, # it could mean something special (not sure what, tho!) self.__dict__[attr] = value return # Allow property assignm...
9424547e34da6138ee7ccbc45dc4b61d432bca93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/9424547e34da6138ee7ccbc45dc4b61d432bca93/dynamic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 1604, 16, 460, 4672, 309, 365, 16186, 1576, 25648, 5332, 67, 856, 12, 1747, 4672, 468, 9545, 17, 4101, 300, 309, 1818, 316, 3134, 2065, 16, 2537, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 1604, 16, 460, 4672, 309, 365, 16186, 1576, 25648, 5332, 67, 856, 12, 1747, 4672, 468, 9545, 17, 4101, 300, 309, 1818, 316, 3134, 2065, 16, 2537, 12...
banner_layout = layout_banner(bannerheight)
banner_layout = layout_banner(bannerheight, session)
def completetemplatevars(templatevars, session, bannerheight=135): """fill out default values for template variables""" if not "instancetitle" in templatevars: templatevars["instancetitle"] = getattr(session.instance, "title", session.localize("Pootle Demo")) if not "session" in templatevars: templatevars["session"] = ...
c1523da475ec833f8504aff2fa751d2e66578051 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11388/c1523da475ec833f8504aff2fa751d2e66578051/pagelayout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2302, 278, 29761, 4699, 12, 3202, 4699, 16, 1339, 16, 14090, 4210, 33, 26612, 4672, 3536, 5935, 596, 805, 924, 364, 1542, 3152, 8395, 309, 486, 315, 267, 27866, 278, 1280, 6, 316, 1542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2302, 278, 29761, 4699, 12, 3202, 4699, 16, 1339, 16, 14090, 4210, 33, 26612, 4672, 3536, 5935, 596, 805, 924, 364, 1542, 3152, 8395, 309, 486, 315, 267, 27866, 278, 1280, 6, 316, 1542, ...
"""Determine whether a line is a legal end of RFC-822 headers. You may override this method if your application wants to bend the rules, e.g. to strip trailing whitespace, or to recognize MH template separators ('--------'). For convenience (e.g. for code reading from sockets) a line consisting of \r\n also matches.
"""Determine whether a line is a legal end of RFC 2822 headers. You may override this method if your application wants to bend the rules, e.g. to strip trailing whitespace, or to recognize MH template separators ('--------'). For convenience (e.g. for code reading from sockets) a line consisting of \r\n also matches....
def islast(self, line): """Determine whether a line is a legal end of RFC-822 headers.
52d51c96f28f628bf085945df0f7b389d6cbc349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52d51c96f28f628bf085945df0f7b389d6cbc349/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 2722, 12, 2890, 16, 980, 4672, 3536, 8519, 2856, 279, 980, 353, 279, 19286, 679, 434, 8372, 17, 24532, 1607, 18, 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, 353, 2722, 12, 2890, 16, 980, 4672, 3536, 8519, 2856, 279, 980, 353, 279, 19286, 679, 434, 8372, 17, 24532, 1607, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
start='length of database') read_and_call(uhandle, consumer.effective_hsp_length, start='effective HSP')
has_re=re.compile(r"[Ll]ength of \s*[Dd]atabase")) attempt_read_and_call(uhandle, consumer.noevent, start="Length adjustment") attempt_read_and_call(uhandle, consumer.effective_hsp_length, start='effective HSP')
def _scan_parameters(self, uhandle, consumer): # Matrix: BLOSUM62 # Gap Penalties: Existence: 11, Extension: 1 # Number of Hits to DB: 50604 # Number of Sequences: 1323 # Number of extensions: 1526 # Number of successful extensions: 6 # Number of sequences better than 10.0: 5 # Number of HSP's better than 10.0 without ...
9cf337202ffcb7031dc68664b847a12547d05c07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/9cf337202ffcb7031dc68664b847a12547d05c07/NCBIStandalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9871, 67, 3977, 12, 2890, 16, 582, 4110, 16, 4765, 4672, 468, 7298, 30, 605, 1502, 14020, 8898, 468, 611, 438, 453, 275, 2390, 606, 30, 22558, 802, 30, 4648, 16, 10021, 30, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9871, 67, 3977, 12, 2890, 16, 582, 4110, 16, 4765, 4672, 468, 7298, 30, 605, 1502, 14020, 8898, 468, 611, 438, 453, 275, 2390, 606, 30, 22558, 802, 30, 4648, 16, 10021, 30, 404, ...
yield RawBytes(self, "raw_end")
yield RawBytes(self, "raw_end", size)
def createFields(self): yield UInt32(self, "signature", "Shortcut signature (0x0000004C)") yield GUID(self, "guid")
417c28d20e5ae70578080d18cd4826ae3fc8b083 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/417c28d20e5ae70578080d18cd4826ae3fc8b083/lnk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 29810, 1578, 12, 2890, 16, 315, 8195, 3113, 315, 15576, 3372, 261, 20, 92, 9449, 24, 39, 2225, 13, 2824, 20322, 12, 2890, 16, 315, 14066, 7923, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 29810, 1578, 12, 2890, 16, 315, 8195, 3113, 315, 15576, 3372, 261, 20, 92, 9449, 24, 39, 2225, 13, 2824, 20322, 12, 2890, 16, 315, 14066, 7923, 2, -100...
(self.x0 + self.width - 200, self.y0 + 65, 200, 30))
(self.x0 + self.width - 200, self.y0 + 78, 200, 30))
def elapsed(self, timer): """ update osd """ if not self.bmovl: self.bmovl = OSDbmovl(self.width, self.height) if self.osd_visible: start = self.start end = self.start + int(self.item.info['length'])
3489fc1ad1f871f05615c51ddeca3e4a586b5982 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3489fc1ad1f871f05615c51ddeca3e4a586b5982/bmovl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9613, 12, 2890, 16, 5441, 4672, 3536, 1089, 1140, 72, 3536, 309, 486, 365, 18, 25709, 1527, 80, 30, 365, 18, 25709, 1527, 80, 273, 5932, 4331, 81, 1527, 80, 12, 2890, 18, 2819, 16, 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, 9613, 12, 2890, 16, 5441, 4672, 3536, 1089, 1140, 72, 3536, 309, 486, 365, 18, 25709, 1527, 80, 30, 365, 18, 25709, 1527, 80, 273, 5932, 4331, 81, 1527, 80, 12, 2890, 18, 2819, 16, 3...
assert result.stream.data[-1]=='E',`result.stream.data` result.stream.data[-1] = 'i' del result.errors[-1]
if l==1: assert result.stream.data[-1]=='E',`result.stream.data` result.stream.data[-1] = 'i' del result.errors[-1] else: assert result.stream.data[-1]=='ERROR\n',`result.stream.data` result.stream.data[-1] = 'ignoring\n' del result.errors[-1] elif errstr.startswith('HideException:'): if l==1: assert result.stream.data...
def __call__(self, result=None): if result is None: return unittest.TestCase.__call__(self, result)
47a598cc76731b33f96aaba91f1f7b94535c7bcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/47a598cc76731b33f96aaba91f1f7b94535c7bcc/testing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 563, 33, 7036, 4672, 309, 563, 353, 599, 30, 327, 2836, 3813, 18, 4709, 2449, 16186, 1991, 972, 12, 2890, 16, 563, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 563, 33, 7036, 4672, 309, 563, 353, 599, 30, 327, 2836, 3813, 18, 4709, 2449, 16186, 1991, 972, 12, 2890, 16, 563, 13, 2, -100, -100, -100, -100, -100, ...
seriesfound=self._searchforSeries(series_name)[int(season)]
seriesfound=self._searchforSeries(series_name)[int(season)]
def verifySeriesExists(self): """Verify that a: Series or Series and Season or Series and Season and Episode number or Series and Episode name passed by the user exists on thetvdb.com return False and display an appropriate error if the TV data was not found return an tvdb_api instance of the TV show/season/episode dat...
6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 6485, 4002, 12, 2890, 4672, 3536, 8097, 716, 279, 30, 9225, 578, 9225, 471, 3265, 2753, 578, 9225, 471, 3265, 2753, 471, 512, 84, 11802, 1300, 578, 9225, 471, 512, 84, 11802, 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, 3929, 6485, 4002, 12, 2890, 4672, 3536, 8097, 716, 279, 30, 9225, 578, 9225, 471, 3265, 2753, 578, 9225, 471, 3265, 2753, 471, 512, 84, 11802, 1300, 578, 9225, 471, 512, 84, 11802, 508, ...
txt_n.text = utils.xml2str(self._textual(n)) txt_n.tail = ''
if not n.tag == 'bullet': txt_n.text = utils.xml2str(self._textual(n)) txt_n.tail = n.tail and utils._process_text(self, n.tail.replace('\n','')) or ''
def _textual(self, node): rc1 = utils._process_text(self, node.text or '') for n in utils._child_get(node,self): txt_n = copy.deepcopy(n) for key in txt_n.attrib.keys(): if key in ('rml_except', 'rml_loop', 'rml_tag'): del txt_n.attrib[key] if True or not self._textual(n).isspace(): txt_n.text = utils.xml2str(self._tex...
d099d1ad44f0174e50aa32e053b3f608d792bfb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/d099d1ad44f0174e50aa32e053b3f608d792bfb3/trml2pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 955, 1462, 12, 2890, 16, 756, 4672, 4519, 21, 273, 2990, 6315, 2567, 67, 955, 12, 2890, 16, 756, 18, 955, 578, 28707, 364, 290, 316, 2990, 6315, 3624, 67, 588, 12, 2159, 16, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 955, 1462, 12, 2890, 16, 756, 4672, 4519, 21, 273, 2990, 6315, 2567, 67, 955, 12, 2890, 16, 756, 18, 955, 578, 28707, 364, 290, 316, 2990, 6315, 3624, 67, 588, 12, 2159, 16, 289...
Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a, b]
Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [a, b]
def subgroup(self, gensH, names="f"): """ Create a subgroup of this group. The "big" group must be defined using "named" generators.
b65442735772ceff5c9acdb22a37ed84013525ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/b65442735772ceff5c9acdb22a37ed84013525ec/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 1655, 12, 2890, 16, 314, 773, 44, 16, 1257, 1546, 74, 6, 4672, 3536, 1788, 279, 720, 1655, 434, 333, 1041, 18, 1021, 315, 14002, 6, 1041, 1297, 506, 2553, 1450, 315, 13188, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 1655, 12, 2890, 16, 314, 773, 44, 16, 1257, 1546, 74, 6, 4672, 3536, 1788, 279, 720, 1655, 434, 333, 1041, 18, 1021, 315, 14002, 6, 1041, 1297, 506, 2553, 1450, 315, 13188, 6, 1...
def isspmatrix_lnk( x ):
def isspmatrix_lnk(x):
def isspmatrix_lnk( x ): return isinstance(x, lnk_matrix)
cc9a850083c66543ac7901fd68022fbe73610704 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cc9a850083c66543ac7901fd68022fbe73610704/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1752, 5667, 67, 2370, 79, 12, 92, 4672, 327, 1549, 12, 92, 16, 7211, 79, 67, 5667, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1752, 5667, 67, 2370, 79, 12, 92, 4672, 327, 1549, 12, 92, 16, 7211, 79, 67, 5667, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tarinfo.prefix = buf[345:500]
prefix = buf[345:500].rstrip(NUL) if prefix and not tarinfo.issparse(): tarinfo.name = prefix + "/" + tarinfo.name
def frombuf(cls, buf): """Construct a TarInfo object from a 512 byte string buffer. """ if len(buf) != BLOCKSIZE: raise ValueError("truncated header") if buf.count(NUL) == BLOCKSIZE: raise ValueError("empty header")
81f02e34efadb27c8e3954e259e5638999815387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/81f02e34efadb27c8e3954e259e5638999815387/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 4385, 12, 6429, 16, 1681, 4672, 3536, 7249, 279, 20334, 966, 733, 628, 279, 13908, 1160, 533, 1613, 18, 3536, 309, 562, 12, 4385, 13, 480, 14073, 4574, 30, 1002, 2068, 2932, 23558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 4385, 12, 6429, 16, 1681, 4672, 3536, 7249, 279, 20334, 966, 733, 628, 279, 13908, 1160, 533, 1613, 18, 3536, 309, 562, 12, 4385, 13, 480, 14073, 4574, 30, 1002, 2068, 2932, 23558, ...
group_pattern = regex.compile("^(\([^)]+\))[ ]+")
group_pattern = re.compile("^(\([^)]+\))[ ]+")
def main(): import sys, getopt, time, string, regex, regsub try: opts, args = getopt.getopt(sys.argv[1:], "C:d:Hi:l:Mptr:v:", ["CVS_command", "date", "indent", "length", "Merge", "patches", #### not yet supported "text", "rlog_options", #### not yet supported "version" ]) except getopt.error, msg: sys.stdout = sys...
0efad460e369a3875f52aca56f3cc6b82da39a69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/0efad460e369a3875f52aca56f3cc6b82da39a69/cvs2hist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 3936, 16, 17518, 373, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 3936, 16, 17518, 373, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315,...
_marker = []
def reldate(self, pretty=1): ''' Render the interval between the date and now.
39562e82c602a80affcc760aad7f46bf1bb36cf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/39562e82c602a80affcc760aad7f46bf1bb36cf6/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1279, 712, 12, 2890, 16, 7517, 33, 21, 4672, 9163, 6987, 326, 3673, 3086, 326, 1509, 471, 2037, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1279, 712, 12, 2890, 16, 7517, 33, 21, 4672, 9163, 6987, 326, 3673, 3086, 326, 1509, 471, 2037, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
joinword = 'n'
joinword = 'ën'
def _100_to_text_nl(number): if number in units_nl: return units_nl[number] else: if number%10 > 0: if number>10 and number<20: return units_nl[number % 10]+tens_nl[number / 10] else: units = units_nl[number % 10] if units[-1] == 'e': joinword = 'n' else: joinword = 'en' return units+joinword+tens_nl[number / 10] else:...
f0b13583ecd1dcd8a1ddabd9e67540c5e308220f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f0b13583ecd1dcd8a1ddabd9e67540c5e308220f/amount_to_text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6625, 67, 869, 67, 955, 67, 14039, 12, 2696, 4672, 309, 1300, 316, 4971, 67, 14039, 30, 327, 4971, 67, 14039, 63, 2696, 65, 469, 30, 309, 1300, 9, 2163, 405, 374, 30, 309, 1300,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6625, 67, 869, 67, 955, 67, 14039, 12, 2696, 4672, 309, 1300, 316, 4971, 67, 14039, 30, 327, 4971, 67, 14039, 63, 2696, 65, 469, 30, 309, 1300, 9, 2163, 405, 374, 30, 309, 1300,...
pass
pass
def on_quit(self, e, cmd):
5406faf41f13c054905eaacabb68f503112dfeeb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5406faf41f13c054905eaacabb68f503112dfeeb/articlenos.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 27176, 12, 2890, 16, 425, 16, 1797, 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...
[ 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, 603, 67, 27176, 12, 2890, 16, 425, 16, 1797, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.root.title(title)
self.tkRoot.title(title)
def __init__(self, scriptPath, title=None, initialText=None, **keyArgs): """Construct and run a DropletRunner Inputs: - scriptPath: path to script to run when files are dropped on the application - title: title for log window; if None then generated from scriptPath - initialText: initial text to display in log window ...
acd5c92860479da55063662c65b453bbbfacf882 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/acd5c92860479da55063662c65b453bbbfacf882/DropletRunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2728, 743, 16, 2077, 33, 7036, 16, 2172, 1528, 33, 7036, 16, 2826, 856, 2615, 4672, 3536, 7249, 471, 1086, 279, 463, 303, 1469, 9709, 225, 24472, 30, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2728, 743, 16, 2077, 33, 7036, 16, 2172, 1528, 33, 7036, 16, 2826, 856, 2615, 4672, 3536, 7249, 471, 1086, 279, 463, 303, 1469, 9709, 225, 24472, 30, 300...
def getEventColorStyle(self, event):
def setupNextHue(self): c = self.contents.source.calendarColor.backgroundColor self.lastHue = CalendarData.getNextHue(self.lastHue) (c.red, c.green, c.blue) = rgb2color(*hsv_to_rgb(self.lastHue, 1.0, 1.0)) def getEventColors(self, event): """ Get the eventColors object which contains all the right color tints for the...
def getCalendarData(self): """ Lazily stamp the data """ caldata = self.contents.source if not isinstance(caldata, CalendarData): caldata.StampKind('add', CalendarData.getKind(view=caldata.itsView)) colorstyle = Styles.ColorStyle(view=self.itsView) # make copies, because initialValue ends up being shared, because # it...
25ddad0361cdcff8c6c9b1849cc3d6061261e934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/25ddad0361cdcff8c6c9b1849cc3d6061261e934/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28623, 751, 12, 2890, 4672, 3536, 511, 20811, 14429, 326, 501, 3536, 1443, 892, 273, 365, 18, 3980, 18, 3168, 309, 486, 1549, 12, 771, 892, 16, 5542, 751, 4672, 1443, 892, 18, 8860, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28623, 751, 12, 2890, 4672, 3536, 511, 20811, 14429, 326, 501, 3536, 1443, 892, 273, 365, 18, 3980, 18, 3168, 309, 486, 1549, 12, 771, 892, 16, 5542, 751, 4672, 1443, 892, 18, 8860, 56...
for className in ['Region', 'Pathway', 'Neuron', 'Muscle', 'Arborization', 'Innervation', 'GapJunction', 'Synapse', 'Stimulus']: elementModule = getattr(sys.modules['Network'], className)
for moduleName, className in [('region', 'Region'), ('pathway', 'Pathway'), ('neuron', 'Neuron'), ('muscle', 'Muscle'), ('arborization', 'Arborization'), ('innervation', 'Innervation'), ('gap_junction', 'GapJunction'), ('synapse', 'Synapse'), ('stimulus', 'Stimulus')]: elementModule = getattr(sys.modules['network'], mo...
def _fromXMLElement(cls, xmlElement): network = cls() network._loadingFromXML = True # Load the classes in such an order that any referenced objects are guaranteed to have already been created. for className in ['Region', 'Pathway', 'Neuron', 'Muscle', 'Arborization', 'Innervation', 'GapJunction', 'Synapse', 'Stimulu...
aa75b641620c915ab0c0e922b122a0b191cb2409 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/aa75b641620c915ab0c0e922b122a0b191cb2409/network.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 15223, 12, 6429, 16, 2025, 1046, 4672, 2483, 273, 2028, 1435, 225, 2483, 6315, 15174, 1265, 4201, 273, 1053, 225, 468, 4444, 326, 3318, 316, 4123, 392, 1353, 716, 1281, 8042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2080, 15223, 12, 6429, 16, 2025, 1046, 4672, 2483, 273, 2028, 1435, 225, 2483, 6315, 15174, 1265, 4201, 273, 1053, 225, 468, 4444, 326, 3318, 316, 4123, 392, 1353, 716, 1281, 8042, ...
print a
def fix_up_authors(w, akey, editions): seen_akey = False need_save = False print 'fix_up_authors' for a in w.get('authors', []): print a obj = withKey(a['author']['key']) if obj['type']['key'] == '/type/redirect': a['author']['key'] = obj['location'] a['author']['key'] = '/authors/' + re_author_key.match(a['author']['k...
9cac33b0ecb3f66990c0748a93fb12bd234a6086 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/9cac33b0ecb3f66990c0748a93fb12bd234a6086/find_works.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 416, 67, 19368, 12, 91, 16, 279, 856, 16, 1675, 5029, 4672, 5881, 67, 581, 402, 273, 1083, 1608, 67, 5688, 273, 1083, 1172, 296, 904, 67, 416, 67, 19368, 11, 364, 279, 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, 2917, 67, 416, 67, 19368, 12, 91, 16, 279, 856, 16, 1675, 5029, 4672, 5881, 67, 581, 402, 273, 1083, 1608, 67, 5688, 273, 1083, 1172, 296, 904, 67, 416, 67, 19368, 11, 364, 279, 316,...
all = "".join(L)
all = b"".join(L)
def readline(self): L = [self._buf] self._buf = '' while 1: i = L[-1].find("\n") if i >= 0: break s = self._read() if s == '': break L.append(s) if i == -1: # loop exited because there is no more data return "".join(L) else: all = "".join(L) # XXX could do enough bookkeeping not to do a 2nd search i = all.find("\n") + ...
cdabc9a69539bbd3fe8391dad741e821d10e8f87 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/cdabc9a69539bbd3fe8391dad741e821d10e8f87/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 511, 273, 306, 2890, 6315, 4385, 65, 365, 6315, 4385, 273, 875, 1323, 404, 30, 277, 273, 511, 18919, 21, 8009, 4720, 31458, 82, 7923, 309, 277, 1545, 374, 30, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 511, 273, 306, 2890, 6315, 4385, 65, 365, 6315, 4385, 273, 875, 1323, 404, 30, 277, 273, 511, 18919, 21, 8009, 4720, 31458, 82, 7923, 309, 277, 1545, 374, 30, 89...
The last step tells ssh that whenever an ssh connection is required to the host "remote_for_sage", it should tunnel it through "gate". Any attempt to scp-connect to "remote_for_sage" will use ssh and thus this configuration file, and properly channel those file transfers through the tunnel. A good test is to attempt an...
The last step tells ssh that whenever an ssh connection is required to the host "remote_for_sage", it should tunnel it through "gate". Any attempt to scp-connect to "remote_for_sage" will use ssh and thus this configuration file, and properly channel those file transfers through the tunnel. A good test is to attempt ...
def _install_hints_ssh_through_gate(self): r""" Hints for installing passwordless authentication through a gate """ # Written by Paul-Olivier Dehaye 2007/08/23 return """
fa04e3570530223bea873d9e4211a5b1314bcd37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/fa04e3570530223bea873d9e4211a5b1314bcd37/expect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 67, 24598, 67, 10975, 67, 10064, 67, 10115, 12, 2890, 4672, 436, 8395, 670, 28142, 364, 3799, 310, 2201, 2656, 5107, 3059, 279, 12611, 3536, 468, 10423, 2253, 635, 21800, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 5425, 67, 24598, 67, 10975, 67, 10064, 67, 10115, 12, 2890, 4672, 436, 8395, 670, 28142, 364, 3799, 310, 2201, 2656, 5107, 3059, 279, 12611, 3536, 468, 10423, 2253, 635, 21800, 332, ...
if self.pdfinfo:
if self.pdfinfo is not None:
def astext(self): if self.pdfinfo: if self.pdfauthor: self.pdfinfo.append('pdfauthor={%s}' % self.pdfauthor) pdfinfo = '\\hypersetup{\n' + ',\n'.join(self.pdfinfo) + '\n}\n' else: pdfinfo = '' title = '\\title{%s}\n' % self.title return ''.join(self.head_prefix + [title] + self.head + [pdfinfo] + self.body_prefix + se...
cba6d92ee1d36363550d77673731e62c67133543 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/cba6d92ee1d36363550d77673731e62c67133543/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3364, 408, 12, 2890, 4672, 309, 365, 18, 22353, 926, 617, 353, 486, 599, 30, 309, 365, 18, 22353, 507, 795, 280, 30, 365, 18, 22353, 926, 617, 18, 6923, 2668, 22353, 507, 795, 280, 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, 3364, 408, 12, 2890, 4672, 309, 365, 18, 22353, 926, 617, 353, 486, 599, 30, 309, 365, 18, 22353, 507, 795, 280, 30, 365, 18, 22353, 926, 617, 18, 6923, 2668, 22353, 507, 795, 280, 5...
output("WARNING: Section does not exist: %s" % self.linkname())
output(u"WARNING: Section does not exist: %s" % self.linkname())
def get(self, read_only = False, force = False, get_redirect=False, throttle = True): """The wiki-text of the page. This will retrieve the page if it has not been retrieved yet. This can raise the following exceptions that should be caught by the calling code:
61850a42ea16fb7eec9b804196791671e790ccf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/61850a42ea16fb7eec9b804196791671e790ccf7/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 855, 67, 3700, 273, 1083, 16, 2944, 273, 1083, 16, 336, 67, 7590, 33, 8381, 16, 18304, 273, 1053, 4672, 3536, 1986, 9050, 17, 955, 434, 326, 1363, 18, 1220, 903, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 855, 67, 3700, 273, 1083, 16, 2944, 273, 1083, 16, 336, 67, 7590, 33, 8381, 16, 18304, 273, 1053, 4672, 3536, 1986, 9050, 17, 955, 434, 326, 1363, 18, 1220, 903, 4...
test.failUnlessEqual(str(obj.effective_date), str(DateTime(time, 0)))
def compareMetadataOf(test, obj, data='default', mimetype='application/octet-stream', time=1000): l_data = (data,) test.failUnless(obj.Title() == data, 'Title') test.failUnless(obj.Subject() == l_data, 'Subject: %s, %s' % (obj.Subject(), l_data)) test.failUnless(obj.Description() == data, 'Description') test.failUnless...
605cf424d33e3898a3ef594743fb77f290da811b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/605cf424d33e3898a3ef594743fb77f290da811b/test_metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 2277, 951, 12, 3813, 16, 1081, 16, 501, 2218, 1886, 2187, 12595, 2218, 3685, 19, 17909, 17, 3256, 2187, 813, 33, 18088, 4672, 328, 67, 892, 273, 261, 892, 16, 13, 1842, 18, 6870,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 2277, 951, 12, 3813, 16, 1081, 16, 501, 2218, 1886, 2187, 12595, 2218, 3685, 19, 17909, 17, 3256, 2187, 813, 33, 18088, 4672, 328, 67, 892, 273, 261, 892, 16, 13, 1842, 18, 6870,...
_site_plugin_lists = {}
def _(text): return text
e802b0acefdebe2cd60fd37008dad9205345e356 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/e802b0acefdebe2cd60fd37008dad9205345e356/multiconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 955, 4672, 327, 977, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 955, 4672, 327, 977, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if next >= subtotal:
if next >= total:
def __init__(self, objects, sortby=None, sortorder='up', batchstart=0, batchsize=0, getter=None, name='table'): # Get the parameters context = get_context()
0ba7014bf6c10539676f903b3b06d3215c8a4a9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/0ba7014bf6c10539676f903b3b06d3215c8a4a9a/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2184, 16, 1524, 1637, 33, 7036, 16, 1524, 1019, 2218, 416, 2187, 2581, 1937, 33, 20, 16, 2581, 1467, 33, 20, 16, 7060, 33, 7036, 16, 508, 2218, 2121, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2184, 16, 1524, 1637, 33, 7036, 16, 1524, 1019, 2218, 416, 2187, 2581, 1937, 33, 20, 16, 2581, 1467, 33, 20, 16, 7060, 33, 7036, 16, 508, 2218, 2121, 1...