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
result = apply(func, args)
result = func(*args)
def _call_chain(self, chain, kind, meth_name, *args): # XXX raise an exception if no one else should try to handle # this url. return None if you can't but someone else could. handlers = chain.get(kind, ()) for handler in handlers: func = getattr(handler, meth_name) result = apply(func, args) if result is not None: re...
20d2d6cef719decd4459c5a2261f9bcbd1407e2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/20d2d6cef719decd4459c5a2261f9bcbd1407e2e/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1991, 67, 5639, 12, 2890, 16, 2687, 16, 3846, 16, 7917, 67, 529, 16, 380, 1968, 4672, 468, 11329, 1002, 392, 1520, 309, 1158, 1245, 469, 1410, 775, 358, 1640, 468, 333, 880, 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, 389, 1991, 67, 5639, 12, 2890, 16, 2687, 16, 3846, 16, 7917, 67, 529, 16, 380, 1968, 4672, 468, 11329, 1002, 392, 1520, 309, 1158, 1245, 469, 1410, 775, 358, 1640, 468, 333, 880, 18, ...
onScreenDebug.append("localToon pos = %s\n"%(toonbase.localToon.getPos().pPrintValues(),)) onScreenDebug.append("localToon hpr = %s\n"%(toonbase.localToon.getHpr().pPrintValues(),))
if self.wantAvatarPhysicsIndicator: onScreenDebug.append("localToon pos = %s\n"%(toonbase.localToon.getPos().pPrintValues(),)) onScreenDebug.append("localToon hpr = %s\n"%(toonbase.localToon.getHpr().pPrintValues(),))
def handleAvatarControls(self, task): """ Check on the arrow keys and update the avatar. """ onScreenDebug.append("localToon pos = %s\n"%(toonbase.localToon.getPos().pPrintValues(),)) onScreenDebug.append("localToon hpr = %s\n"%(toonbase.localToon.getHpr().pPrintValues(),)) #assert(self.debugPrint("handleAvatarControls...
96ec4d6ac15db93f5416e4c77afac13489765c4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/96ec4d6ac15db93f5416e4c77afac13489765c4a/PhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 16910, 18, 3536, 309, 365, 18, 17369, 23999, 3731, 1900, 2102, 13140, 30, 603, 7956, 2829, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 16910, 18, 3536, 309, 365, 18, 17369, 23999, 3731, 1900, 2102, 13140, 30, 603, 7956, 2829, ...
"""return the default from the type info"""
"""Return the default value of a field """
def getDefault(self, field): """return the default from the type info""" field = self.getField(field) return field.default
d87c794915f7c65980b6f8184190537ecd38b613 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/d87c794915f7c65980b6f8184190537ecd38b613/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 12, 2890, 16, 652, 4672, 3536, 990, 326, 805, 460, 434, 279, 652, 3536, 652, 273, 365, 18, 588, 974, 12, 1518, 13, 327, 652, 18, 1886, 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, 4829, 12, 2890, 16, 652, 4672, 3536, 990, 326, 805, 460, 434, 279, 652, 3536, 652, 273, 365, 18, 588, 974, 12, 1518, 13, 327, 652, 18, 1886, 2, -100, -100, -100, -100, -100, -100, -1...
return rmlocale(path) if is_locale_independent(rmed): return rmlocale(path)
return stripped_path if is_locale_independent(stripped_path): return stripped_path
def chlocale(path, locale): """ Changes the path's locale prefix if the path is not locale-independent. Otherwise removes locale prefix. """ if not localeurl.PREFIX_DEFAULT_LOCALE and \ get_language(locale) == get_language(settings.LANGUAGE_CODE): return rmlocale(path) if is_locale_independent(rmed): return rmlocale(pa...
427b6290a17d616f63db0da6c50006a707a5be43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11458/427b6290a17d616f63db0da6c50006a707a5be43/localeurl_tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 462, 6339, 12, 803, 16, 2573, 4672, 3536, 17776, 326, 589, 1807, 2573, 1633, 309, 326, 589, 353, 486, 2573, 17, 267, 10891, 18, 5272, 7157, 2573, 1633, 18, 3536, 309, 486, 2573, 718, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 462, 6339, 12, 803, 16, 2573, 4672, 3536, 17776, 326, 589, 1807, 2573, 1633, 309, 326, 589, 353, 486, 2573, 17, 267, 10891, 18, 5272, 7157, 2573, 1633, 18, 3536, 309, 486, 2573, 718, 1...
c = secDB.cursor(txn)
self.cur = secDB.cursor(txn)
def finish_test(self, secDB, txn=None): # 'Blues' should not be in the secondary database vals = secDB.pget('Blues', txn=txn) assert vals == None, vals
c5cf731a4deb710892c9083a468a6d173d791456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c5cf731a4deb710892c9083a468a6d173d791456/test_associate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 67, 3813, 12, 2890, 16, 1428, 2290, 16, 7827, 33, 7036, 4672, 468, 296, 4802, 3610, 11, 1410, 486, 506, 316, 326, 9946, 2063, 5773, 273, 1428, 2290, 18, 84, 588, 2668, 4802, 3610...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 67, 3813, 12, 2890, 16, 1428, 2290, 16, 7827, 33, 7036, 4672, 468, 296, 4802, 3610, 11, 1410, 486, 506, 316, 326, 9946, 2063, 5773, 273, 1428, 2290, 18, 84, 588, 2668, 4802, 3610...
def __init__(self):
def __init__(self, loc): self.loc = loc
def __init__(self): self.interpolator = None self.duration = None self.properties = [ ] self.expressions = [ ]
94506ad601e8639d16184a6d5789d5fc03754d55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/94506ad601e8639d16184a6d5789d5fc03754d55/atl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1515, 4672, 225, 365, 18, 1829, 273, 1515, 225, 365, 18, 18676, 639, 273, 599, 365, 18, 8760, 273, 599, 365, 18, 4738, 273, 306, 308, 365, 18, 21480, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1515, 4672, 225, 365, 18, 1829, 273, 1515, 225, 365, 18, 18676, 639, 273, 599, 365, 18, 8760, 273, 599, 365, 18, 4738, 273, 306, 308, 365, 18, 21480, 2...
self.disconnect("Connection reset by peer.")
self.disconnect("Connection reset by peer")
def send_raw(self, string): """Send raw string to the server.
30d79e85854b7dc034c00c4ae9de3eb9fcf959b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/30d79e85854b7dc034c00c4ae9de3eb9fcf959b0/irclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 1899, 12, 2890, 16, 533, 4672, 3536, 3826, 1831, 533, 358, 326, 1438, 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, 1366, 67, 1899, 12, 2890, 16, 533, 4672, 3536, 3826, 1831, 533, 358, 326, 1438, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return relpath(fullname, path)
return keepnote.notebook.relpath(fullname, path)
def new_filename(self, node, new_filename, ext=u"", sep=u" ", number=2, return_number=False, use_number=False, ensure_valid=True, path=None): if path is None: path = self.get_node_path(node) if ext is None: new_filename, ext = os.path.splitext(new_filename)
2e6e75408cf984a789fb198ffd247af9947af06c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/2e6e75408cf984a789fb198ffd247af9947af06c/connection_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 3459, 12, 2890, 16, 756, 16, 394, 67, 3459, 16, 1110, 33, 89, 6, 3113, 5478, 33, 89, 6, 3104, 1300, 33, 22, 16, 327, 67, 2696, 33, 8381, 16, 999, 67, 2696, 33, 8381, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 3459, 12, 2890, 16, 756, 16, 394, 67, 3459, 16, 1110, 33, 89, 6, 3113, 5478, 33, 89, 6, 3104, 1300, 33, 22, 16, 327, 67, 2696, 33, 8381, 16, 999, 67, 2696, 33, 8381, 16,...
pop = Population([100]*10, infoFields='a')
pop = Population([100]*2, infoFields='a')
def testSubPopsOfDuringMatingOperator(self): 'Testing subPops parameter of during mating operators' pop = Population([100]*10, infoFields='a') pop.evolve( matingScheme=RandomSelection(ops= [CloneGenoTransmitter()] + [InfoExec('a=%d' % i, subPops=i) for i in range(10)]), gen=1 ) print(pop.indInfo('a'))
cce5d124e1db3b5d07ad36209f4f883f29071a2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/cce5d124e1db3b5d07ad36209f4f883f29071a2d/test_03_operator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1676, 52, 4473, 951, 26424, 49, 1776, 5592, 12, 2890, 4672, 296, 22218, 720, 52, 4473, 1569, 434, 4982, 312, 1776, 12213, 11, 1843, 273, 10264, 6234, 3816, 6625, 5772, 22, 16, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1676, 52, 4473, 951, 26424, 49, 1776, 5592, 12, 2890, 4672, 296, 22218, 720, 52, 4473, 1569, 434, 4982, 312, 1776, 12213, 11, 1843, 273, 10264, 6234, 3816, 6625, 5772, 22, 16, 1123...
data = f.ReadAsArray(x+240,y,400,300)
data = f.ReadAsArray(x+240,y,dx,dy)
def get_ctx_fname(obsid): """create full path for ctx file from obsid and ccd. ccd in this case is the mode of ctx operation. i call it ccd here because it is at the same place in the file name """ if obsid.startswith('P'): phase = 'PSP' else: phase = 'ESP' ccd = mydict[obsid]['CCDColour'] dname = ht.DEST_BASE + phase...
8ae3f32c8e70ab0c03deab714263afd3a488e199 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3185/8ae3f32c8e70ab0c03deab714263afd3a488e199/do_ctx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5900, 67, 12749, 12, 947, 7453, 4672, 3536, 2640, 1983, 589, 364, 1103, 585, 628, 7160, 350, 471, 276, 4315, 18, 225, 276, 4315, 316, 333, 648, 353, 326, 1965, 434, 1103, 1674...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5900, 67, 12749, 12, 947, 7453, 4672, 3536, 2640, 1983, 589, 364, 1103, 585, 628, 7160, 350, 471, 276, 4315, 18, 225, 276, 4315, 316, 333, 648, 353, 326, 1965, 434, 1103, 1674...
See also invertible_residues() for a simpler version without the units.
See also invertible_residues() for a simpler version without the subgroup.
def invertible_residues_mod_units(self, units=[], reduce=True): """ Returns a iterator through a list of invertible residues modulo this integral ideal and modulo the group generated by the given units.
0eb4070e28a5423ec6b12fc4236fdfa03b4e3060 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0eb4070e28a5423ec6b12fc4236fdfa03b4e3060/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9848, 1523, 67, 15567, 3610, 67, 1711, 67, 7705, 12, 2890, 16, 4971, 22850, 6487, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9848, 1523, 67, 15567, 3610, 67, 1711, 67, 7705, 12, 2890, 16, 4971, 22850, 6487, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, ...
self.optimize_strunicode_loop(ops, expected)
self.optimize_strunicode_loop(ops, expected, expected)
def test_bound_strlen(self): ops = """ [p0] i0 = strlen(p0) i1 = int_ge(i0, 0) guard_true(i1) [] jump(p0) """ # The dead strlen will be eliminated be the backend. expected = """ [p0] i0 = strlen(p0) jump(p0) """ self.optimize_strunicode_loop(ops, expected)
c439d7b313b21da109535c963f43436f88c56f3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/c439d7b313b21da109535c963f43436f88c56f3d/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3653, 67, 10835, 12, 2890, 4672, 6727, 273, 3536, 306, 84, 20, 65, 277, 20, 273, 3203, 12, 84, 20, 13, 277, 21, 273, 509, 67, 908, 12, 77, 20, 16, 374, 13, 11026, 67, 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, 1842, 67, 3653, 67, 10835, 12, 2890, 4672, 6727, 273, 3536, 306, 84, 20, 65, 277, 20, 273, 3203, 12, 84, 20, 13, 277, 21, 273, 509, 67, 908, 12, 77, 20, 16, 374, 13, 11026, 67, 3...
return self.format.length
return self.format.adjusted_length
def max_length(self): return self.format.length
3a97864bcdadcbf35f3acdd872d50fb28002c980 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10170/3a97864bcdadcbf35f3acdd872d50fb28002c980/clip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 67, 2469, 12, 2890, 4672, 327, 365, 18, 2139, 18, 2469, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 67, 2469, 12, 2890, 4672, 327, 365, 18, 2139, 18, 2469, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
topsrc = options.t topsrc = os.path.normpath(os.path.abspath(topsrc))
def main(): jm = JarMaker() p = jm.getCommandLineParser() (options, args) = p.parse_args() jm.processIncludes(options.I) jm.outputFormat = options.f if options.e: jm.useChromeManifest = True jm.useJarfileManifest = False if options.bothManifests: jm.useChromeManifest = True jm.useJarfileManifest = True noise = logging....
3d1fc7d7f53e30dc1c3b583a491db3f80cd11767 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/3d1fc7d7f53e30dc1c3b583a491db3f80cd11767/JarMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 28296, 273, 15644, 12373, 1435, 293, 273, 28296, 18, 588, 21391, 2678, 1435, 261, 2116, 16, 833, 13, 273, 293, 18, 2670, 67, 1968, 1435, 28296, 18, 2567, 16815, 12, 2116, 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, 2774, 13332, 28296, 273, 15644, 12373, 1435, 293, 273, 28296, 18, 588, 21391, 2678, 1435, 261, 2116, 16, 833, 13, 273, 293, 18, 2670, 67, 1968, 1435, 28296, 18, 2567, 16815, 12, 2116, 18...
return _fileobject(self, mode, bufsize)
return _fileobject(self, mode, bufsize, close=True)
def makefile(self, mode='r', bufsize=-1): """Make and return a file-like object that works with the SSL connection. Just use the code from the socket module.""" self._makefile_refs += 1 return _fileobject(self, mode, bufsize)
4cb3131209d2ced316b7425ce6662c0f36a4ef88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/4cb3131209d2ced316b7425ce6662c0f36a4ef88/ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 768, 12, 2890, 16, 1965, 2218, 86, 2187, 1681, 1467, 29711, 21, 4672, 3536, 6464, 471, 327, 279, 585, 17, 5625, 733, 716, 6330, 598, 326, 7419, 1459, 18, 225, 12526, 999, 326, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 12, 2890, 16, 1965, 2218, 86, 2187, 1681, 1467, 29711, 21, 4672, 3536, 6464, 471, 327, 279, 585, 17, 5625, 733, 716, 6330, 598, 326, 7419, 1459, 18, 225, 12526, 999, 326, 98...
ranking_average += _("Average review score: %(x_nb_score)s based on %(x_nb_reviews)s reviews") %\
ranking_average += _("Average review score: %(x_nb_score)s based on %(x_nb_reviews)s reviews") % \
def tmpl_get_comments(self, recID, ln, nb_per_page, page, nb_pages, display_order, display_since, CFG_WEBCOMMENT_ALLOW_REVIEWS, comments, total_nb_comments, avg_score, warnings, border=0, reviews=0, total_nb_reviews=0, nickname='', uid=-1, note='',score=5): """ Get table of all comments @param recID: record id @param l...
a90afa5b64dc4d8589ebe712a0e89c57ca7c3b48 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/a90afa5b64dc4d8589ebe712a0e89c57ca7c3b48/webcomment_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 588, 67, 9231, 12, 2890, 16, 1950, 734, 16, 7211, 16, 4264, 67, 457, 67, 2433, 16, 1363, 16, 4264, 67, 7267, 16, 2562, 67, 1019, 16, 2562, 67, 9256, 16, 7577, 67, 14778, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 588, 67, 9231, 12, 2890, 16, 1950, 734, 16, 7211, 16, 4264, 67, 457, 67, 2433, 16, 1363, 16, 4264, 67, 7267, 16, 2562, 67, 1019, 16, 2562, 67, 9256, 16, 7577, 67, 14778, ...
floor = list2func( map(lambda i: max(min_part, i), self.constraints['outer']), default=min_part )
floor = list2func( map(lambda i: max(min_part, i), self.constraints['inner']), default=min_part )
def _parameters(self): """ Returns a tuple (min_length, max_length, floor, ceiling, min_slope, max_slope) for the parameters of self.
da3d1a8890c93bb224c511ae7aede6b29f4e5801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/da3d1a8890c93bb224c511ae7aede6b29f4e5801/integer_vector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3977, 12, 2890, 4672, 3536, 2860, 279, 3193, 261, 1154, 67, 2469, 16, 943, 67, 2469, 16, 6346, 16, 5898, 4973, 16, 1131, 67, 30320, 16, 943, 67, 30320, 13, 364, 326, 1472, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3977, 12, 2890, 4672, 3536, 2860, 279, 3193, 261, 1154, 67, 2469, 16, 943, 67, 2469, 16, 6346, 16, 5898, 4973, 16, 1131, 67, 30320, 16, 943, 67, 30320, 13, 364, 326, 1472, 434, ...
return sources, targets, num_connections
if len(sources) > 0: source = _client_from_port(sources[0]) if len(targets) > 0: target = _client_from_port(targets[0]) return source, sources, target, targets, num_connections
def _get_ports_as_list(source, target): sources = source if type(source) == type([]) else outports(source) targets = target if type(target) == type([]) else inports(target) num_connections = min(len(sources), len(targets)) return sources, targets, num_connections
7228255e4d0b4a803adebe59d76399ca65631bbf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1456/7228255e4d0b4a803adebe59d76399ca65631bbf/jack_bus_connect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4363, 67, 345, 67, 1098, 12, 3168, 16, 1018, 4672, 5550, 273, 1084, 309, 618, 12, 3168, 13, 422, 618, 3816, 5717, 469, 596, 4363, 12, 3168, 13, 5774, 273, 1018, 309, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4363, 67, 345, 67, 1098, 12, 3168, 16, 1018, 4672, 5550, 273, 1084, 309, 618, 12, 3168, 13, 422, 618, 3816, 5717, 469, 596, 4363, 12, 3168, 13, 5774, 273, 1018, 309, 61...
print "passing"
def TriggerEvent(self, function, args): """Triggers an event for the plugins. Since events and notifications are precisely the same except for how n+ responds to them, both can be triggered by this function.""" #print "%s by handler. %s plugins active" % (function, str(len(self.plugins))) hotpotato = args for (module, ...
d1f8e689e0b2f08d4bea62b2815699fcca2ccfa6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/d1f8e689e0b2f08d4bea62b2815699fcca2ccfa6/pluginsystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11321, 1133, 12, 2890, 16, 445, 16, 833, 4672, 3536, 15114, 392, 871, 364, 326, 4799, 18, 7897, 2641, 471, 9208, 854, 13382, 291, 2357, 326, 1967, 1335, 364, 3661, 290, 15, 26617, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11321, 1133, 12, 2890, 16, 445, 16, 833, 4672, 3536, 15114, 392, 871, 364, 326, 4799, 18, 7897, 2641, 471, 9208, 854, 13382, 291, 2357, 326, 1967, 1335, 364, 3661, 290, 15, 26617, 358, ...
for i in xdict: if i!=None: for j in ydict: if j!=None: dist += float(i-j)**2*xdict[i]/NElementsX*ydict[j]/NElementsY distList.append(dist) return sum(distList)/self.getNumberofLoci()
if NElementsX!=0 and NElementsY!=0: for i in xdict: if i!=None: for j in ydict: if j!=None: dist += float(i-j)**2*xdict[i]/NElementsX*ydict[j]/NElementsY distList.append(dist) return sum(distList)/len(distList)
def getGroupwiseDistance_Goldstein(self,x,y): """ Returns the goldstein distance between two populations
5244ace1423a15196077bc303a64ddc5c175cc43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/768/5244ace1423a15196077bc303a64ddc5c175cc43/eden.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11751, 2460, 7200, 67, 43, 1673, 334, 13685, 12, 2890, 16, 92, 16, 93, 4672, 3536, 2860, 326, 20465, 334, 13685, 3888, 3086, 2795, 3650, 1012, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11751, 2460, 7200, 67, 43, 1673, 334, 13685, 12, 2890, 16, 92, 16, 93, 4672, 3536, 2860, 326, 20465, 334, 13685, 3888, 3086, 2795, 3650, 1012, 2, -100, -100, -100, -100, -100, -100, -100...
import sys
def open_storage(data_source_name, useDB=True, mode=None): """Return a storage object appropriate to the given parameters. By centralizing this code here, all the applications will behave the same given the same options. If useDB is false, a pickle will be used, otherwise if the data source name includes "::", whatev...
2718eeacc159674c9ec0fea85531b0768e4aa713 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/2718eeacc159674c9ec0fea85531b0768e4aa713/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 5697, 12, 892, 67, 3168, 67, 529, 16, 999, 2290, 33, 5510, 16, 1965, 33, 7036, 4672, 3536, 990, 279, 2502, 733, 5505, 358, 326, 864, 1472, 18, 225, 2525, 18291, 6894, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 5697, 12, 892, 67, 3168, 67, 529, 16, 999, 2290, 33, 5510, 16, 1965, 33, 7036, 4672, 3536, 990, 279, 2502, 733, 5505, 358, 326, 864, 1472, 18, 225, 2525, 18291, 6894, 333, ...
me.SayTo(activator, "\nWelcome back {0}. It's good to see you again.\nIf you want to enter the guild, say ^enter^. If you want to leave the guild, say ^leave^.".format(activator.name))
me.SayTo(activator, "\nWelcome back {0}. It's good to see you again.\nIf you want to enter the guild, say ^enter^. If you no longer wish to be a member of this guild, say ~leave~.".format(activator.name))
def main(): # Greeting section. if text[0] == "hi" or text[0] == "hey" or text[0] == "hello": ## Get the member of the guild. member = guild.member(activator.name) if member == None: if not guild.is_closed(): me.SayTo(activator, "\nWelcome to the {0}, {1}!\nDo you want to ^join^ the guild by requesting a guild members...
aa7985a591acca621920ac199df73bf18f8e3f3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8118/aa7985a591acca621920ac199df73bf18f8e3f3d/guild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 611, 9015, 310, 2442, 18, 309, 977, 63, 20, 65, 422, 315, 12266, 6, 578, 977, 63, 20, 65, 422, 315, 76, 402, 6, 578, 977, 63, 20, 65, 422, 315, 23711, 6877, 7541,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 611, 9015, 310, 2442, 18, 309, 977, 63, 20, 65, 422, 315, 12266, 6, 578, 977, 63, 20, 65, 422, 315, 76, 402, 6, 578, 977, 63, 20, 65, 422, 315, 23711, 6877, 7541,...
colon_optional_spaces=re.compile(":")
colon=re.compile(":")
def parse_spec(mylines): myspec={} pos=0 colon_optional_spaces=re.compile(":") trailing_comment=re.compile("#.*\n") newline=re.compile("\n") leading_white_space=re.compile("\s+") while pos<len(mylines): # Force the line to be clean # Remove Comments ( anything following # ) mylines[pos]=trailing_comment.sub("",mylines[...
d9659b0e5ac644d2cb0da8b1656ceaf461248cab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/d9659b0e5ac644d2cb0da8b1656ceaf461248cab/catalyst_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2793, 12, 4811, 3548, 4672, 312, 1900, 705, 12938, 949, 33, 20, 13336, 33, 266, 18, 11100, 2932, 2773, 13, 7341, 67, 3469, 33, 266, 18, 11100, 2932, 7, 4509, 64, 82, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2793, 12, 4811, 3548, 4672, 312, 1900, 705, 12938, 949, 33, 20, 13336, 33, 266, 18, 11100, 2932, 2773, 13, 7341, 67, 3469, 33, 266, 18, 11100, 2932, 7, 4509, 64, 82, 7923, ...
cast = "" self.emit("value = ast2obj_list(%s, %sast2obj_%s);" % (value, cast, field.type), depth)
self.emit("value = ast2obj_list(%s, ast2obj_%s);" % (value, field.type), depth)
def set(self, field, value, depth): if field.seq: if field.type.value == "cmpop": # XXX check that this cast is safe, i.e. works independent on whether # sizeof(cmpop_ty) != sizeof(void*) cast = "(PyObject*(*)(void*))" else: cast = "" self.emit("value = ast2obj_list(%s, %sast2obj_%s);" % (value, cast, field.type), dept...
b035542e28f36e3b738f1392a5eba918970810b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b035542e28f36e3b738f1392a5eba918970810b0/asdl_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 652, 16, 460, 16, 3598, 4672, 309, 652, 18, 5436, 30, 309, 652, 18, 723, 18, 1132, 422, 315, 9625, 556, 6877, 468, 11329, 866, 716, 333, 4812, 353, 4183, 16, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 652, 16, 460, 16, 3598, 4672, 309, 652, 18, 5436, 30, 309, 652, 18, 723, 18, 1132, 422, 315, 9625, 556, 6877, 468, 11329, 866, 716, 333, 4812, 353, 4183, 16, 277, ...
increasing up, such that a map: /d\ /h\
increasing up, such that a map:: /d\ /h\
def __init__(self, i, j, width, height, properties, tile): Rect.__init__(self, i*width, j*height, width, height) Cell.__init__(self, i, j, width, height, properties, tile)
c2d886e7d004ded2f838e6cf4bfab5a6548874bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7473/c2d886e7d004ded2f838e6cf4bfab5a6548874bb/tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 277, 16, 525, 16, 1835, 16, 2072, 16, 1790, 16, 4769, 4672, 9315, 16186, 2738, 972, 12, 2890, 16, 277, 14, 2819, 16, 525, 14, 4210, 16, 1835, 16, 2072,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 277, 16, 525, 16, 1835, 16, 2072, 16, 1790, 16, 4769, 4672, 9315, 16186, 2738, 972, 12, 2890, 16, 277, 14, 2819, 16, 525, 14, 4210, 16, 1835, 16, 2072,...
if value.find("%(") >= 0:
if value.find("%(") != -1:
def get(self, section, option, raw=0, vars=None): """Get an option value for a given section.
05e74c488d7085fb533b40a9d6860ee732e784e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/05e74c488d7085fb533b40a9d6860ee732e784e4/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 2442, 16, 1456, 16, 1831, 33, 20, 16, 4153, 33, 7036, 4672, 3536, 967, 392, 1456, 460, 364, 279, 864, 2442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 12, 2890, 16, 2442, 16, 1456, 16, 1831, 33, 20, 16, 4153, 33, 7036, 4672, 3536, 967, 392, 1456, 460, 364, 279, 864, 2442, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
xplt.plot(x0,y0,type,x1,y1,type,hold=1)
plot(x0,y0,type,x1,y1,type,hold=1)
def axes(type='b|'): vals = gist.limits() x0 = [vals[0],vals[1]] y0 = [0,0] x1 = [0,0] y1 = [vals[2], vals[3]] xplt.plot(x0,y0,type,x1,y1,type,hold=1)
650923c5febe6d0f55f399a87a250ba0edb3dd6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/650923c5febe6d0f55f399a87a250ba0edb3dd6e/Mplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6515, 12, 723, 2218, 70, 16637, 4672, 5773, 273, 29503, 18, 14270, 1435, 619, 20, 273, 306, 4524, 63, 20, 6487, 4524, 63, 21, 13563, 677, 20, 273, 306, 20, 16, 20, 65, 619, 21, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6515, 12, 723, 2218, 70, 16637, 4672, 5773, 273, 29503, 18, 14270, 1435, 619, 20, 273, 306, 4524, 63, 20, 6487, 4524, 63, 21, 13563, 677, 20, 273, 306, 20, 16, 20, 65, 619, 21, 273, ...
return((name, version, description, state, installedpng, divpng))
return((name, version, _(description), state, installedpng, divpng))
def buildEntryComponent(self, name, version, description, state): divpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/div-h.png")) if state == 'installed': installedpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager/installed.png")...
8600c86a6928e70d8468a55970d6933bbb9f71c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/8600c86a6928e70d8468a55970d6933bbb9f71c3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1622, 1841, 12, 2890, 16, 508, 16, 1177, 16, 2477, 16, 919, 4672, 3739, 6446, 273, 4444, 21816, 1458, 12, 7097, 33, 5510, 16, 589, 33, 10828, 5359, 12, 19444, 67, 15487, 67, 1112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1622, 1841, 12, 2890, 16, 508, 16, 1177, 16, 2477, 16, 919, 4672, 3739, 6446, 273, 4444, 21816, 1458, 12, 7097, 33, 5510, 16, 589, 33, 10828, 5359, 12, 19444, 67, 15487, 67, 1112...
for value in self.iteritems():
for value in self.itervalues():
def intersects_segment(self, seg): """ Returns True if any segmentlist in self intersects the segment, otherwise returns False. """ for value in self.iteritems(): if value.intersects(seg): return True return False
6a5426063b780528b1eb8d6cdc963e3345d3c1f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/6a5426063b780528b1eb8d6cdc963e3345d3c1f5/segments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19791, 67, 9273, 12, 2890, 16, 2291, 4672, 3536, 2860, 1053, 309, 1281, 3267, 1098, 316, 365, 19791, 326, 3267, 16, 3541, 1135, 1083, 18, 3536, 364, 460, 316, 365, 18, 2165, 2372, 13332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19791, 67, 9273, 12, 2890, 16, 2291, 4672, 3536, 2860, 1053, 309, 1281, 3267, 1098, 316, 365, 19791, 326, 3267, 16, 3541, 1135, 1083, 18, 3536, 364, 460, 316, 365, 18, 2165, 2372, 13332,...
deps.add(os.path.normpath(path))
base_dependency_name = groups[2] path = os.path.normpath(path) if os.path.exists(path): deps.add(path) else: found_include = False for idir in CYTHON_INCLUDE_DIRS: new_path = os.path.normpath(idir + base_dependency_name) if os.path.exists(new_path): deps.add(new_path) found_include = True break if not found_inclu...
def parse_deps(self, filename, verify=True): """ Open a Cython file and extract all of its dependencies. INPUT: filename -- the file to parse verify -- only return existing files (default True) OUTPUT: list of dependency files """ # only parse cython files if filename[-4:] not in ('.pyx', '.pxd', '.pxi'): return []...
19c80326e088ff320f774c78afac329aed69f3ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/19c80326e088ff320f774c78afac329aed69f3ab/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 14877, 12, 2890, 16, 1544, 16, 3929, 33, 5510, 4672, 3536, 3502, 279, 385, 18490, 585, 471, 2608, 777, 434, 2097, 5030, 18, 225, 12943, 30, 1544, 1493, 326, 585, 358, 1109, 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, 1109, 67, 14877, 12, 2890, 16, 1544, 16, 3929, 33, 5510, 4672, 3536, 3502, 279, 385, 18490, 585, 471, 2608, 777, 434, 2097, 5030, 18, 225, 12943, 30, 1544, 1493, 326, 585, 358, 1109, 3...
class BuildNode: """I hold information about one Build node, including state and date of last report""" def __init__(self, hostname="", status="", date=0): self.hostname = hostname self.status = status self.date = date
def nodeForHostname(self, nameString): """returnt the node for a nameString""" for node in self.nodes: if nameString in node['hostname']: return node return None
def __eq__(self, other): if len(self.nodes) != len(other.nodes): return False for i in range(len(self.nodes)): if self.nodes[i].hostname != other.nodes[i].hostname \ or self.nodes[i].status != other.nodes[i].status \ or self.nodes[i].date != other.nodes[i].date: return False
3431613a58fcc2f2a4363847cc084921453783e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/3431613a58fcc2f2a4363847cc084921453783e7/tinderboxpoller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 309, 562, 12, 2890, 18, 4690, 13, 480, 562, 12, 3011, 18, 4690, 4672, 327, 1083, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 4690, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11253, 972, 12, 2890, 16, 1308, 4672, 309, 562, 12, 2890, 18, 4690, 13, 480, 562, 12, 3011, 18, 4690, 4672, 327, 1083, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 4690, 3719, ...
'primary': primary,
def syncPhotoSet(self, photoset_id, order=None): """ Synchronize a single flickr photo set based on the set id.
8598952d251d11a810ac752c5c512b95b09e73b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14401/8598952d251d11a810ac752c5c512b95b09e73b4/flickr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 19934, 694, 12, 2890, 16, 18185, 278, 67, 350, 16, 1353, 33, 7036, 4672, 3536, 26535, 554, 279, 2202, 1183, 16254, 10701, 444, 2511, 603, 326, 444, 612, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 19934, 694, 12, 2890, 16, 18185, 278, 67, 350, 16, 1353, 33, 7036, 4672, 3536, 26535, 554, 279, 2202, 1183, 16254, 10701, 444, 2511, 603, 326, 444, 612, 18, 2, -100, -100, -100, ...
info.get('description', ''), p_id, state, info.get('certificate')))
info.get('description', ''), p_id, state, info.get('certificate') or None))
def init_db(cr): import addons f = addons.get_module_resource('base', 'base.sql') for line in file_open(f).read().split(';'): if (len(line)>0) and (not line.isspace()): cr.execute(line) cr.commit() for i in addons.get_modules(): mod_path = addons.get_module_path(i) if not mod_path: continue info = addons.load_informa...
d943997892b0fa69ed41474069ae8b099cc83a13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d943997892b0fa69ed41474069ae8b099cc83a13/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1966, 12, 3353, 4672, 1930, 31439, 284, 273, 31439, 18, 588, 67, 2978, 67, 3146, 2668, 1969, 2187, 296, 1969, 18, 4669, 6134, 364, 980, 316, 585, 67, 3190, 12, 74, 2934, 896,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1966, 12, 3353, 4672, 1930, 31439, 284, 273, 31439, 18, 588, 67, 2978, 67, 3146, 2668, 1969, 2187, 296, 1969, 18, 4669, 6134, 364, 980, 316, 585, 67, 3190, 12, 74, 2934, 896,...
return _PackInt1(100) + _PackInt2(len(atomText)) + atomText
return _PackInt1(MAGIC_ATOM) + _PackInt2(len(atomText)) + atomText
def _PackAtom(term): atomText = term.atomText return _PackInt1(100) + _PackInt2(len(atomText)) + atomText
f5a33431908f2d30884e237b626d15ed55b2f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/f5a33431908f2d30884e237b626d15ed55b2f169/erl_term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4420, 3641, 12, 6408, 4672, 3179, 1528, 273, 2481, 18, 7466, 1528, 327, 389, 4420, 1702, 21, 12, 49, 22247, 67, 28146, 13, 397, 389, 4420, 1702, 22, 12, 1897, 12, 7466, 1528, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4420, 3641, 12, 6408, 4672, 3179, 1528, 273, 2481, 18, 7466, 1528, 327, 389, 4420, 1702, 21, 12, 49, 22247, 67, 28146, 13, 397, 389, 4420, 1702, 22, 12, 1897, 12, 7466, 1528, 3719...
for f in self.tempFiles: self.removeFiles(self.resultFiles, failOnError=False)
self.removeFiles(self.tempFiles, failOnError=False)
def run(self, argv): # FIXME: Things to support from environment: GCC_EXEC_PREFIX, # COMPILER_PATH, LIBRARY_PATH, LPATH, CC_PRINT_OPTIONS, # QA_OVERRIDE_GCC3_OPTIONS, ...?
8218cd0598a637e1e4636aa314fdbceb600ecd3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11986/8218cd0598a637e1e4636aa314fdbceb600ecd3b/Driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 5261, 4672, 468, 9852, 30, 935, 899, 358, 2865, 628, 3330, 30, 611, 6743, 67, 15271, 67, 6307, 16, 468, 5423, 1102, 14668, 67, 4211, 16, 8961, 28254, 67, 4211, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 5261, 4672, 468, 9852, 30, 935, 899, 358, 2865, 628, 3330, 30, 611, 6743, 67, 15271, 67, 6307, 16, 468, 5423, 1102, 14668, 67, 4211, 16, 8961, 28254, 67, 4211, 16, ...
tal_fn = 'benchmark/tal%.2d.html' dtml_fn = 'benchmark/dtml%.2d.html'
try: fname = __file__ except NameError: fname = sys.argv[0] taldir = os.path.dirname(os.path.dirname(os.path.abspath(fname))) benchdir = os.path.join(taldir, 'benchmark') tal_fn = os.path.join(benchdir, 'tal%.2d.html') dtml_fn = os.path.join(benchdir, 'dtml%.2d.html')
def profile_tal(fn, count, profiler): p = HTMLTALParser() p.parseFile(fn) program, macros = p.getCode() engine = DummyEngine(macros) engine.globals = data tal = TALInterpreter(program, macros, engine, StringIO(), wrap=0, tal=1, strictinsert=0) for i in range(4): tal() r = [None] * count for i in r: profiler.runcall(tal...
4f400e9d2cce6fc9aad503e1f6e6c0fa438cf2bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9834/4f400e9d2cce6fc9aad503e1f6e6c0fa438cf2bc/markbench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3042, 67, 88, 287, 12, 4293, 16, 1056, 16, 16583, 4672, 293, 273, 3982, 20849, 2678, 1435, 293, 18, 2670, 812, 12, 4293, 13, 5402, 16, 24302, 273, 293, 18, 588, 1085, 1435, 4073, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3042, 67, 88, 287, 12, 4293, 16, 1056, 16, 16583, 4672, 293, 273, 3982, 20849, 2678, 1435, 293, 18, 2670, 812, 12, 4293, 13, 5402, 16, 24302, 273, 293, 18, 588, 1085, 1435, 4073, 273, ...
A gdata.calendar.WebContentLink or none if none of the links had rel
A gdata.calendar.WebContentLink or none if none of the links had rel
def GetWebContentLink(self): """Finds the first link with rel set to WEB_CONTENT_REL
6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4079, 1350, 2098, 12, 2890, 4672, 3536, 8947, 326, 1122, 1692, 598, 1279, 444, 358, 19877, 67, 9689, 67, 15868, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 968, 4079, 1350, 2098, 12, 2890, 4672, 3536, 8947, 326, 1122, 1692, 598, 1279, 444, 358, 19877, 67, 9689, 67, 15868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return os.path.join(data.getVar("DL_DIR", d, 1),data.expand('%s_%s_%s_%s.tar.gz' % ( module.replace('/', '.'), host, revision, date), d))
return os.path.join(data.getVar("DL_DIR", d, 1),data.expand('%s_%s_%s_%s_%s.tar.gz' % ( module.replace('/', '.'), host, path.replace('/','.'), revision, date), d))
def localpath(url, d): (type, host, path, user, pswd, parm) = bb.decodeurl(data.expand(url, d)) if "localpath" in parm:
e752d6f3aa7b0a93cc3af880bee7f88d778d1f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/e752d6f3aa7b0a93cc3af880bee7f88d778d1f67/fetch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 803, 12, 718, 16, 302, 4672, 261, 723, 16, 1479, 16, 589, 16, 729, 16, 4250, 3623, 16, 19924, 13, 273, 7129, 18, 3922, 718, 12, 892, 18, 12320, 12, 718, 16, 302, 3719, 309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 803, 12, 718, 16, 302, 4672, 261, 723, 16, 1479, 16, 589, 16, 729, 16, 4250, 3623, 16, 19924, 13, 273, 7129, 18, 3922, 718, 12, 892, 18, 12320, 12, 718, 16, 302, 3719, 309, 3...
content.append(todo_info['todo'])
content.append(todo_entry)
def process_todo_nodes(app, doctree, fromdocname): if not app.config['todo_include_todos']: for node in doctree.traverse(todo_node): node.parent.remove(node) # Replace all todolist nodes with a list of the collected todos. # Augment each todo with a backlink to the original location. env = app.builder.env if not hasa...
2fd38a984d7335858caed22ed123e2486e9f20ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/2fd38a984d7335858caed22ed123e2486e9f20ef/todo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9012, 67, 4690, 12, 2910, 16, 31263, 992, 16, 628, 2434, 529, 4672, 309, 486, 595, 18, 1425, 3292, 9012, 67, 6702, 67, 88, 369, 538, 3546, 30, 364, 756, 316, 31263, 992, 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, 1207, 67, 9012, 67, 4690, 12, 2910, 16, 31263, 992, 16, 628, 2434, 529, 4672, 309, 486, 595, 18, 1425, 3292, 9012, 67, 6702, 67, 88, 369, 538, 3546, 30, 364, 756, 316, 31263, 992, 18...
- server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (note : multiline responses converted to a single, multiline string)
- server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (multiline responses are converted to a single, multiline string).
def getreply(self): """Get a reply from the server. Returns a tuple consisting of: - server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (note : multiline responses converted to a single, multiline string)...
33277df4d8ce335176270f2501de2933739ddd3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33277df4d8ce335176270f2501de2933739ddd3c/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 10629, 12, 2890, 4672, 3536, 967, 279, 4332, 628, 326, 1438, 18, 225, 2860, 279, 3193, 23570, 434, 30, 225, 300, 1438, 766, 981, 261, 73, 18, 75, 18, 296, 26520, 2187, 578, 4123, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10629, 12, 2890, 4672, 3536, 967, 279, 4332, 628, 326, 1438, 18, 225, 2860, 279, 3193, 23570, 434, 30, 225, 300, 1438, 766, 981, 261, 73, 18, 75, 18, 296, 26520, 2187, 578, 4123, ...
s = 'cd "%s" && hg %s'%(self.__dir, cmd) print s return os.system(s)
if cmd == None: self.status() else: s = 'cd "%s" && hg %s'%(self.__dir, cmd) print "Now executing: " + s + "\n" return os.system(s)
def __call__(self, cmd, check_initialized=True): """ Run 'hg cmd' where cmd is an arbitrary string in the hg repository. """ self._warning() s = 'cd "%s" && hg %s'%(self.__dir, cmd) print s return os.system(s)
7e59e54c59ecfca68edfa49a3c4f048417bdb227 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/7e59e54c59ecfca68edfa49a3c4f048417bdb227/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1797, 16, 866, 67, 13227, 33, 5510, 4672, 3536, 1939, 296, 26981, 1797, 11, 1625, 1797, 353, 392, 11078, 533, 316, 326, 22576, 3352, 18, 3536, 365, 6315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1797, 16, 866, 67, 13227, 33, 5510, 4672, 3536, 1939, 296, 26981, 1797, 11, 1625, 1797, 353, 392, 11078, 533, 316, 326, 22576, 3352, 18, 3536, 365, 6315, ...
po = self.getPackageObject(updating)
po = self.getPackageObject(updating, allow_missing=True) if po is None: continue
def update(self, po=None, requiringPo=None, **kwargs): """try to mark for update the item(s) specified. po is a package object - if that is there, mark it for update, if possible else use **kwargs to match the package needing update if nothing is specified at all then attempt to update everything returns the list of t...
17068d8e299ab477d8c6a5bc566e5f62d7b34759 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/17068d8e299ab477d8c6a5bc566e5f62d7b34759/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 8275, 33, 7036, 16, 29468, 29198, 33, 7036, 16, 2826, 4333, 4672, 3536, 698, 358, 2267, 364, 1089, 326, 761, 12, 87, 13, 1269, 18, 8275, 353, 279, 2181, 733, 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, 1089, 12, 2890, 16, 8275, 33, 7036, 16, 29468, 29198, 33, 7036, 16, 2826, 4333, 4672, 3536, 698, 358, 2267, 364, 1089, 326, 761, 12, 87, 13, 1269, 18, 8275, 353, 279, 2181, 733, 300, ...
id_allocator_.MarkAsUsed(%(id)s);
%(lc_type)s_id_allocator_.MarkAsUsed(%(id)s);
def WriteGLES2ImplementationHeader(self, func, file): """Writes the GLES2 Implemention.""" impl_func = func.GetInfo('impl_func') impl_decl = func.GetInfo('impl_decl') if (func.can_auto_generate and (impl_func == None or impl_func == True) and (impl_decl == None or impl_decl == True)): file.Write("%s %s(%s) {\n" % (func...
9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 12123, 9380, 67, 644, 273, 1326, 18, 967, 966, 2668, 11299, 67, 644, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 12123, 9380, 67, 644, 273, 1326, 18, 967, 966, 2668, 11299, 67, 644, 6...
gobject.timeout_add (350, self.populate_list_from_results, treeview_name, thread)
gobject.timeout_add (350, self.populate_list_from_results, self.search_token[treeview_name], treeview_name, thread)
def get_results (self, url, treeview_name, clear = True): if clear: self.liststore[treeview_name].clear ()
d216d8a9b466ef64ff0c84deaaf05c81d82ee5b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/d216d8a9b466ef64ff0c84deaaf05c81d82ee5b2/youtube.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4717, 261, 2890, 16, 880, 16, 2151, 1945, 67, 529, 16, 2424, 273, 1053, 4672, 309, 2424, 30, 365, 18, 1098, 2233, 63, 3413, 1945, 67, 529, 8009, 8507, 1832, 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, 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, 336, 67, 4717, 261, 2890, 16, 880, 16, 2151, 1945, 67, 529, 16, 2424, 273, 1053, 4672, 309, 2424, 30, 365, 18, 1098, 2233, 63, 3413, 1945, 67, 529, 8009, 8507, 1832, 2, -100, -100, -...
self.assertEqual(self.execute('QUIT', 1),
self.assertEqual(self.execute('QUIT', 1).rstrip(),
def testQUIT(self): self.assertEqual(self.execute('QUIT', 0), status_messages['GOODBYE']) self.assertEqual(self.execute('QUIT', 1), status_messages['GOODBYE'])
90d04321f031c84ce099735d79abab9afd55bb34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9635/90d04321f031c84ce099735d79abab9afd55bb34/test_ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3500, 1285, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 3500, 1285, 2187, 374, 3631, 1267, 67, 6833, 3292, 16387, 1212, 6486, 41, 19486, 365, 18, 11231, 5812, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3500, 1285, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 3500, 1285, 2187, 374, 3631, 1267, 67, 6833, 3292, 16387, 1212, 6486, 41, 19486, 365, 18, 11231, 5812, 1...
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): if context is None: context = {} if 'section' in context and context['section']=='Bug Tracking': cr.execute('select c.id from crm_case c left join project_project p on p.id=c.project_id where c.section_id=p.section_bug_id') re...
2adf2a9777e63a6e4607fd01ba98c12072e53bbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/2adf2a9777e63a6e4607fd01ba98c12072e53bbe/portal_project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 4422, 16, 4555, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 4672, 309, 819, 353, 599, 30, 819, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 4422, 16, 4555, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 4672, 309, 819, 353, 599, 30, 819, 273...
if groupfile.endswith('.gz'):
if groupfile is not None and groupfile.endswith('.gz'):
def _getGroups(self): """create the groups object that will store the comps metadata finds the repos with groups, gets their comps data and merge it into the group object""" if self._comps: return self._comps self.verbose_logger.debug(_('Getting group metadata')) reposWithGroups = [] self.repos.doSetup() for repo in ...
f871b9f05cfc6611617a3c363230049e624c3be8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/f871b9f05cfc6611617a3c363230049e624c3be8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3621, 12, 2890, 4672, 3536, 2640, 326, 3252, 733, 716, 903, 1707, 326, 13979, 1982, 13094, 326, 13686, 598, 3252, 16, 5571, 3675, 13979, 501, 471, 2691, 518, 1368, 326, 1041, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3621, 12, 2890, 4672, 3536, 2640, 326, 3252, 733, 716, 903, 1707, 326, 13979, 1982, 13094, 326, 13686, 598, 3252, 16, 5571, 3675, 13979, 501, 471, 2691, 518, 1368, 326, 1041, 7...
if userobj and userobj.valid:
if cookie_lifetime and not kill_session: if userobj.valid:
def update_session(key, val): """ put key/val into session, avoid writing if it is unchanged """ try: current_val = session[key] except KeyError: session[key] = val else: if val != current_val: session[key] = val
32dd277b6685805649c9b16b73f7499d553270b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/32dd277b6685805649c9b16b73f7499d553270b8/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3184, 12, 856, 16, 1244, 4672, 3536, 1378, 498, 19, 1125, 1368, 1339, 16, 4543, 7410, 309, 518, 353, 14827, 3536, 775, 30, 783, 67, 1125, 273, 1339, 63, 856, 65, 1335, 4999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3184, 12, 856, 16, 1244, 4672, 3536, 1378, 498, 19, 1125, 1368, 1339, 16, 4543, 7410, 309, 518, 353, 14827, 3536, 775, 30, 783, 67, 1125, 273, 1339, 63, 856, 65, 1335, 4999, ...
self.assertTrue(hunk.type in self.PORT_DIFF_HUNK_TYPES)
self.assertTrue(isinstance(hunk, self.PORT_DIFF_HUNK_TYPES))
def test_port_state_change(self): a = Host() b = Host() spec = (10, "tcp") a.add_port(spec, "open") b.add_port(spec, "closed") diff = host_diff(a, b) self.assertTrue(len(diff) > 0) for hunk in diff: self.assertTrue(hunk.type in self.PORT_DIFF_HUNK_TYPES)
e100fe985a91dc50454e1b16bae62fa0d722a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6331/e100fe985a91dc50454e1b16bae62fa0d722a5a7/ndifftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 655, 67, 2019, 67, 3427, 12, 2890, 4672, 279, 273, 4893, 1435, 324, 273, 4893, 1435, 857, 273, 261, 2163, 16, 315, 14832, 7923, 279, 18, 1289, 67, 655, 12, 2793, 16, 315, 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, 1842, 67, 655, 67, 2019, 67, 3427, 12, 2890, 4672, 279, 273, 4893, 1435, 324, 273, 4893, 1435, 857, 273, 261, 2163, 16, 315, 14832, 7923, 279, 18, 1289, 67, 655, 12, 2793, 16, 315, 3...
sage: R = k['x'] sage: k(R(3)) 3 Nonconstant polynomials do not coerce:
sage: k(x^2) a + 3 sage: R.<x> = GF(5)[] sage: k(x^3-2*x+1) 2*a + 4
def __call__(self, x): r""" Coerce x into the finite field. INPUT: x -- object
4a1317b501a283875cc488b3967e26ec19975029 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4a1317b501a283875cc488b3967e26ec19975029/finite_field_ext_pari.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 436, 8395, 7695, 2765, 619, 1368, 326, 25922, 652, 18, 225, 12943, 30, 619, 1493, 733, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 436, 8395, 7695, 2765, 619, 1368, 326, 25922, 652, 18, 225, 12943, 30, 619, 1493, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._handle_exception(ex)
_handle_exception(ex)
def generate_code(self,fclass): """ Generates code for a model.
8354b50cdd2c2f920ba24733ae9876092613763e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/8354b50cdd2c2f920ba24733ae9876092613763e/compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 710, 12, 2890, 16, 74, 1106, 4672, 225, 3536, 31902, 981, 364, 279, 938, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 710, 12, 2890, 16, 74, 1106, 4672, 225, 3536, 31902, 981, 364, 279, 938, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If the default value is needed and not supplied, it comes from the type.
If the default value is needed and not supplied, it comes from the type.
def Option( type_expr, dflt_expr = _E_DFLT_FROM_TYPE_, **moreopts): """To declare a named optional argument in an expr class, use an assignment like this, directly in the class namespace, and (by convention only?) after all the Arg macros: attr = Option( type, optional default value) Order probably doesn't matter. The ...
d0ffa4ebc7f1e32fb807fce132593cfedae374b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/d0ffa4ebc7f1e32fb807fce132593cfedae374b0/attr_decl_macros.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2698, 12, 618, 67, 8638, 16, 302, 31864, 67, 8638, 273, 389, 41, 67, 4577, 12050, 67, 11249, 67, 2399, 67, 16, 2826, 10161, 4952, 4672, 3536, 774, 14196, 279, 4141, 3129, 1237, 316, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2698, 12, 618, 67, 8638, 16, 302, 31864, 67, 8638, 273, 389, 41, 67, 4577, 12050, 67, 11249, 67, 2399, 67, 16, 2826, 10161, 4952, 4672, 3536, 774, 14196, 279, 4141, 3129, 1237, 316, 39...
ConfigurationManager().start()
try: ConfigurationManager().start(FileBackend(os.path.expanduser('~/.sipclient/config'))) except ConfigurationError, e: raise RuntimeError("failed to load sipclient's configuration: %s\nIf an old configuration file is in place, delete it or move it and recreate the configuration using the sip_settings script." % str(e...
def do_xcap_directory(account_name): global xcap_client ConfigurationManager().start() account_manager = AccountManager() account_manager.start() if account_name is None: account = account_manager.default_account else: possible_accounts = [account for account in account_manager.iter_accounts() if account_name in accou...
04462d9855e5ecf4c3702bd19beea2f39385c17d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/04462d9855e5ecf4c3702bd19beea2f39385c17d/xcap_directory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 92, 5909, 67, 5149, 12, 4631, 67, 529, 4672, 2552, 619, 5909, 67, 2625, 225, 775, 30, 4659, 1318, 7675, 1937, 12, 812, 7172, 12, 538, 18, 803, 18, 12320, 1355, 2668, 98, 158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 92, 5909, 67, 5149, 12, 4631, 67, 529, 4672, 2552, 619, 5909, 67, 2625, 225, 775, 30, 4659, 1318, 7675, 1937, 12, 812, 7172, 12, 538, 18, 803, 18, 12320, 1355, 2668, 98, 158...
self.assertEqual(sorted(actual), sorted(expected))
with test_support.check_warnings(): self.assertEqual(sorted(actual), sorted(expected))
def test_inline_methods(self): s = set('november') for data in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5), 'december'): for meth in (s.union, s.intersection, s.difference, s.symmetric_difference, s.isdisjoint): for g in (G, I, Ig, L, R): expected = meth(data) actual = meth(G(data)) if isinstance(expected...
fe678440a049849367bf98c9f9e3d6530d82b32a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/fe678440a049849367bf98c9f9e3d6530d82b32a/test_set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10047, 67, 5163, 12, 2890, 4672, 272, 273, 444, 2668, 82, 1527, 2558, 6134, 364, 501, 316, 7566, 12936, 3113, 23453, 1048, 12, 18088, 3631, 7707, 2896, 2187, 404, 18, 22, 3631,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10047, 67, 5163, 12, 2890, 4672, 272, 273, 444, 2668, 82, 1527, 2558, 6134, 364, 501, 316, 7566, 12936, 3113, 23453, 1048, 12, 18088, 3631, 7707, 2896, 2187, 404, 18, 22, 3631,...
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_mag(self, other, context=None): """Compares the values numerically with their sign ignored.""" other = _convert_other(other, raiseit=True)
eec8ef1bec70199b0e5c365258934b8e785e17ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eec8ef1bec70199b0e5c365258934b8e785e17ef/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 4527, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 19199, 326, 924, 6389, 1230, 598, 3675, 1573, 5455, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 16, 1002, 305, 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, 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, 67, 4527, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 19199, 326, 924, 6389, 1230, 598, 3675, 1573, 5455, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 16, 1002, 305, 3...
'''Lists actions available through the tool.'''
""" List actions available through the tool. """
def listActions(self, info=None): '''Lists actions available through the tool.''' return self._actions
8232ef475ca9d52eac5bad772f694aadfeefca9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/8232ef475ca9d52eac5bad772f694aadfeefca9f/MembershipTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6100, 12, 2890, 16, 1123, 33, 7036, 4672, 225, 3536, 987, 4209, 2319, 3059, 326, 5226, 18, 3536, 327, 365, 6315, 4905, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6100, 12, 2890, 16, 1123, 33, 7036, 4672, 225, 3536, 987, 4209, 2319, 3059, 326, 5226, 18, 3536, 327, 365, 6315, 4905, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
elif self.pre_buffer[-1] == RUNCHAR:
elif self.pre_buffer[-1:] == RUNCHAR:
def _fill(self, wtd): self.pre_buffer = self.pre_buffer + self.ifp.read(wtd + 4) if self.ifp.eof: self.post_buffer = self.post_buffer + \ binascii.rledecode_hqx(self.pre_buffer) self.pre_buffer = b'' return
54923951ad1bdd33028f94ed337e1a0473366605 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/54923951ad1bdd33028f94ed337e1a0473366605/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5935, 12, 2890, 16, 341, 4465, 4672, 365, 18, 1484, 67, 4106, 273, 365, 18, 1484, 67, 4106, 397, 365, 18, 430, 84, 18, 896, 12, 91, 4465, 397, 1059, 13, 309, 365, 18, 430, 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, 5935, 12, 2890, 16, 341, 4465, 4672, 365, 18, 1484, 67, 4106, 273, 365, 18, 1484, 67, 4106, 397, 365, 18, 430, 84, 18, 896, 12, 91, 4465, 397, 1059, 13, 309, 365, 18, 430, 84,...
if len(usedSite) == 1:
if len( usedSite ) == 1:
def getTasksForSubmission(self,transName,numTasks=1,site='',statusList=['Created'],older=None,newer=None,connection=False): """ Select tasks with the given status (and site) for submission """ res = self._getConnectionTransID(connection,transName) if not res['OK']: return res connection = res['Value']['Connection'] tra...
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, 336, 6685, 1290, 17865, 12, 2890, 16, 2338, 461, 16, 2107, 6685, 33, 21, 16, 4256, 2218, 2187, 2327, 682, 33, 3292, 6119, 17337, 1498, 33, 7036, 16, 2704, 264, 33, 7036, 16, 4071, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6685, 1290, 17865, 12, 2890, 16, 2338, 461, 16, 2107, 6685, 33, 21, 16, 4256, 2218, 2187, 2327, 682, 33, 3292, 6119, 17337, 1498, 33, 7036, 16, 2704, 264, 33, 7036, 16, 4071, 33, ...
for(i=0; i < num_fields; i++) {
for(i = 0; i < num_fields; i++) {
def visitModule(self, mod): self.emit("""
ee33a34d4f6d7e33d3b6da7df3701570d9fff33a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ee33a34d4f6d7e33d3b6da7df3701570d9fff33a/asdl_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
txt = None
def defragment(plist): """defrag(plist) -> plist defragmented as much as possible """ frags = {} final = [] pos = 0 for p in plist: p._defrag_pos = pos pos += 1 if IP in p: ip = p[IP] if ip.frag != 0 or ip.flags & 1: ip = p[IP] uniq = (ip.id,ip.src,ip.dst,ip.proto) if uniq in frags: frags[uniq].append(p) else: frags[u...
7e8bdd8210586069d64921ecdcaff510dbd1286b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/7e8bdd8210586069d64921ecdcaff510dbd1286b/inet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1652, 3520, 12, 17842, 4672, 3536, 536, 2458, 12, 17842, 13, 317, 21074, 1652, 3520, 329, 487, 9816, 487, 3323, 3536, 3812, 1341, 273, 2618, 727, 273, 5378, 225, 949, 273, 374, 364, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1652, 3520, 12, 17842, 4672, 3536, 536, 2458, 12, 17842, 13, 317, 21074, 1652, 3520, 329, 487, 9816, 487, 3323, 3536, 3812, 1341, 273, 2618, 727, 273, 5378, 225, 949, 273, 374, 364, 293,...
self.tooltips.set_tip(update_start, _("If enabled, Sonata will automatically update your MPD library when it starts up."))
update_start.set_tooltip_text(_("If enabled, Sonata will automatically update your MPD library when it starts up."))
def on_prefs(self, widget): prefswindow = ui.dialog(title=_("Preferences"), parent=self.window, flags=gtk.DIALOG_DESTROY_WITH_PARENT, role='preferences', resizable=False, separator=False) hbox = gtk.HBox() prefsnotebook = gtk.Notebook() # MPD tab mpdlabel = ui.label(markup='<b>' + _('MPD Connection') + '</b>', y=1) con...
5178d7eb73657d7ee78706340fbf0fc5d779c7ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/5178d7eb73657d7ee78706340fbf0fc5d779c7ee/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1484, 2556, 12, 2890, 16, 3604, 4672, 15503, 5668, 273, 5915, 18, 12730, 12, 2649, 33, 67, 2932, 12377, 6, 3631, 982, 33, 2890, 18, 5668, 16, 2943, 33, 4521, 79, 18, 2565, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1484, 2556, 12, 2890, 16, 3604, 4672, 15503, 5668, 273, 5915, 18, 12730, 12, 2649, 33, 67, 2932, 12377, 6, 3631, 982, 33, 2890, 18, 5668, 16, 2943, 33, 4521, 79, 18, 2565, 1...
edge_labels -- whether to print edge labels. By default, False, but if True, the result of str(l) is printed on the edge for each label l. Labels equal to None are not printed.
edge_labels -- whether to print edge labels. By default, False, but if True, the result of str(l) is printed on the edge for each label l. Labels equal to None are not printed (to set edge labels, see set_edge_label).
def plot(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, partition=None, edge_colors=None, scaling_term=0.05, iterations=50, loop_size=.1, talk=False, color_by_label=False, heights=None, edge_style=None, save_pos=False): """ Returns a graphics...
f60bc598c35862c2957ab0653af802754cecfe4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f60bc598c35862c2957ab0653af802754cecfe4b/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 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, 3207, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
yield self.node.net[self.node.index,index]
yield self.node.net[self.node.name,index]
def __iter__(self): for index in self.node: yield self.node.net[self.node.index,index]
bde023c9c54d9399d4eb9885789842bbc1eabd5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/768/bde023c9c54d9399d4eb9885789842bbc1eabd5b/netext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 364, 770, 316, 365, 18, 2159, 30, 2824, 365, 18, 2159, 18, 2758, 63, 2890, 18, 2159, 18, 1615, 16, 1615, 65, 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, 1001, 2165, 972, 12, 2890, 4672, 364, 770, 316, 365, 18, 2159, 30, 2824, 365, 18, 2159, 18, 2758, 63, 2890, 18, 2159, 18, 1615, 16, 1615, 65, 2, -100, -100, -100, -100, -100, -100, -...
if journal.type in journal_type and not journal.invoice_sequence_id: res_ids = date_pool.search(cr, uid, [('model','=','ir.sequence'), ('name','=',journal_seq.get(journal.type, 'sale'))]) inv_seq_id = date_pool.browse(cr, uid, res_ids[0]).res_id inv_seq_id res.update({ 'invoice_sequence_id':inv_seq_id })
def create_sequence(self, cr, uid, ids, context={}): """ Create new entry sequence for every new Joural @param cr: cursor to database @param user: id of current user @param ids: list of record ids to be process @param context: context arguments, like lang, time zone @return: return a result """
684a10886e660577d2faa16ef1d6be7544bc0335 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/684a10886e660577d2faa16ef1d6be7544bc0335/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6178, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 1788, 394, 1241, 3102, 364, 3614, 394, 804, 477, 287, 632, 891, 4422, 30, 3347, 358, 2063, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6178, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 1788, 394, 1241, 3102, 364, 3614, 394, 804, 477, 287, 632, 891, 4422, 30, 3347, 358, 2063, 632, 891, ...
q = question + " (%s)? " % yn
q = question + " (%s)?" % yn
def ask(question, default=True): """Ask the question in y/n form and return True/False. If you don't want a default 'yes', set default to None (or to False if you want a default 'no'). """ while True: yn = 'y/n' if default is True: yn = 'Y/n' if default is False: yn = 'y/N' q = question + " (%s)? " % yn input = get_i...
13e455b31e4de446d0f1f54274919b0b9fb49598 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12067/13e455b31e4de446d0f1f54274919b0b9fb49598/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 12, 4173, 16, 805, 33, 5510, 4672, 3536, 23663, 326, 5073, 316, 677, 19, 82, 646, 471, 327, 1053, 19, 8381, 18, 225, 971, 1846, 2727, 1404, 2545, 279, 805, 296, 9707, 2187, 444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 12, 4173, 16, 805, 33, 5510, 4672, 3536, 23663, 326, 5073, 316, 677, 19, 82, 646, 471, 327, 1053, 19, 8381, 18, 225, 971, 1846, 2727, 1404, 2545, 279, 805, 296, 9707, 2187, 444, ...
print "barrier: all present and accounted for"
print "barrier: 127.0.0.1 ": all present and accounted for"
def rendevous(self, *hosts): self.members = list(hosts) self.members.sort()
bb655f3af134dd0fb185950c28aa4391201eb99d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/bb655f3af134dd0fb185950c28aa4391201eb99d/barrier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1654, 5206, 1481, 12, 2890, 16, 380, 11588, 4672, 365, 18, 7640, 273, 666, 12, 11588, 13, 365, 18, 7640, 18, 3804, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1654, 5206, 1481, 12, 2890, 16, 380, 11588, 4672, 365, 18, 7640, 273, 666, 12, 11588, 13, 365, 18, 7640, 18, 3804, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not str_utf8:
if not arg[2]:
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent)
f4f3b128eb7f90b9d524f78a47573a9bbdfa12a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/f4f3b128eb7f90b9d524f78a47573a9bbdfa12a8/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, ...
if sys.platform == 'darwin': cmd = 'libtool -static -o ' + lib else: cmd = 'ar cru ' + lib
cmd = 'ar cru ' + lib
def CompileLib(lib, obj, opts): if (COMPILER=="MSVC"): cmd = 'link /lib /nologo /OUT:' + lib for x in obj: cmd = cmd + ' ' + x oscmd(cmd) if (COMPILER=="LINUX"): if sys.platform == 'darwin': cmd = 'libtool -static -o ' + lib else: cmd = 'ar cru ' + lib for x in obj: cmd=cmd + ' ' + x oscmd(cmd)
3d9c0e012fd5ecb5a8156a6ef677b6fbb4876afc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/3d9c0e012fd5ecb5a8156a6ef677b6fbb4876afc/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 5664, 12, 2941, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 296, 1232, 342, 2941, 342, 82, 3966, 83, 342, 5069, 2497, 397, 2561, 364,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 5664, 12, 2941, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 296, 1232, 342, 2941, 342, 82, 3966, 83, 342, 5069, 2497, 397, 2561, 364,...
include_graphics_options, attrs['uri'] ) )
options, attrs['uri'] ) )
def visit_image(self, node): attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) pre = [] # in reverse order post = [] include_graphics_options = "" inline = isinstance(node.parent, nodes.T...
ece1557a2fb2fc1da833fa008854bab69ecf3b42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/ece1557a2fb2fc1da833fa008854bab69ecf3b42/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, 666, 16, 15144, 716, 518, 1807, 468, 1278, 20245, 358, 279, 1191, 585, 18, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, 666, 16, 15144, 716, 518, 1807, 468, 1278, 20245, 358, 279, 1191, 585, 18, 365, 18,...
Returns a list of all probable prime factors of n, using gmp-ecm.
Returns a list of integers whose product is n, computed using gmp-ecm, and PARI for small factors. ** WARNING: There is no guarantee that the factors returned are prime. **
def factor(self, n, factor_digits=None, B1=2000, **kwds): """ Returns a list of all probable prime factors of n, using gmp-ecm. INPUT: n -- a positive integer factor_digits -- optional guess at how many digits are in the smallest factor. B1 -- initial lower bound, defaults to 2000 (15 digit factors) kwds -- arguments ...
0d3bb568164fbc244c62876c80cf8a348d8f7fd8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0d3bb568164fbc244c62876c80cf8a348d8f7fd8/ecm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 16, 290, 16, 5578, 67, 16649, 33, 7036, 16, 605, 21, 33, 17172, 16, 2826, 25577, 4672, 3536, 2860, 279, 666, 434, 12321, 8272, 3017, 353, 290, 16, 8470, 1450, 26811, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 16, 290, 16, 5578, 67, 16649, 33, 7036, 16, 605, 21, 33, 17172, 16, 2826, 25577, 4672, 3536, 2860, 279, 666, 434, 12321, 8272, 3017, 353, 290, 16, 8470, 1450, 26811, 17...
for dp, dn, names in os.walk(join('bin', 'addons')):
for root, _, names in os.walk(join('bin', 'addons')):
def find_addons(): for dp, dn, names in os.walk(join('bin', 'addons')): if '__terp__.py' in names: yield basename(dp), dp #look for extra modules try: empath = os.getenv('EXTRA_MODULES_PATH','../addons/') for mname in open(join(empath,'server_modules.list')): mname = mname.strip() if not mname: continue if os.path.exis...
f1462cfaf659ab592f8f1230cf9a2bef55e5dca5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/f1462cfaf659ab592f8f1230cf9a2bef55e5dca5/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1289, 7008, 13332, 364, 1365, 16, 389, 16, 1257, 316, 1140, 18, 11348, 12, 5701, 2668, 4757, 2187, 296, 1289, 7008, 26112, 30, 309, 4940, 387, 84, 25648, 2074, 11, 316, 1257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 7008, 13332, 364, 1365, 16, 389, 16, 1257, 316, 1140, 18, 11348, 12, 5701, 2668, 4757, 2187, 296, 1289, 7008, 26112, 30, 309, 4940, 387, 84, 25648, 2074, 11, 316, 1257, ...
return ' '.join('-l%s'%l for l in numpy.distutils.__config__.blas_opt_info['libraries']+ '-L%s'%l for l in numpy.distutils.__config__.blas_opt_info['library_dirs']) except:
return ' '.join( ['-l%s'%l for l in numpy.distutils.__config__.blas_opt_info['libraries']]) except KeyError:
def default_blas_ldflags(): try: return ' '.join('-l%s'%l for l in numpy.distutils.__config__.blas_opt_info['libraries']+ '-L%s'%l for l in numpy.distutils.__config__.blas_opt_info['library_dirs']) except: return "-lblas"
50e92183337dfce8c80a6ad0e75c40910fb61140 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/50e92183337dfce8c80a6ad0e75c40910fb61140/blas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 3083, 345, 67, 1236, 7133, 13332, 775, 30, 327, 296, 2418, 5701, 12, 565, 10228, 17, 80, 9, 87, 11, 9, 80, 364, 328, 316, 3972, 18, 4413, 5471, 16186, 1425, 25648, 3083, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 805, 67, 3083, 345, 67, 1236, 7133, 13332, 775, 30, 327, 296, 2418, 5701, 12, 565, 10228, 17, 80, 9, 87, 11, 9, 80, 364, 328, 316, 3972, 18, 4413, 5471, 16186, 1425, 25648, 3083, 345...
self.assertEqual(w.total_bytes, 4096+10+10) self.assertEqual(w.total_deleted, 3)
self.assertEqual(worker.total_bytes, 4096+10+10) self.assertEqual(worker.total_deleted, 3)
def test_TestActionProvider(self): """Test Worker using Action.TestActionProvider""" ui = CLI.CliCallback() (fd, filename) = tempfile.mkstemp('bleachbit-test') os.write(fd, '123') os.close(fd) self.assert_(os.path.exists(filename)) astr = '<action command="test" path="%s"/>' % filename cleaner = TestCleaner.action_to_c...
b8320463fd914a7037e300abf46df0a699148b3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/b8320463fd914a7037e300abf46df0a699148b3f/TestWorker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4709, 1803, 2249, 12, 2890, 4672, 3536, 4709, 11016, 1450, 4382, 18, 4709, 1803, 2249, 8395, 5915, 273, 8276, 18, 12265, 2428, 1435, 261, 8313, 16, 1544, 13, 273, 13275, 18, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4709, 1803, 2249, 12, 2890, 4672, 3536, 4709, 11016, 1450, 4382, 18, 4709, 1803, 2249, 8395, 5915, 273, 8276, 18, 12265, 2428, 1435, 261, 8313, 16, 1544, 13, 273, 13275, 18, 24...
type = ""
typestr = ""
def parse_metalink(src, headers = {}, nocheck = False, ver=3): src = complete_url(src) is_metalink = nocheck # not all servers support HEAD where GET is also supported # also a WindowsError is thrown if a local file does not exist if src.endswith(".metalink") or src.endswith(".meta4"): is_metalink = True try: # add he...
cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228/metalinkc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10578, 16194, 12, 4816, 16, 1607, 273, 10615, 1158, 1893, 273, 1083, 16, 1924, 33, 23, 4672, 1705, 273, 3912, 67, 718, 12, 4816, 13, 353, 67, 10578, 16194, 273, 1158, 1893, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10578, 16194, 12, 4816, 16, 1607, 273, 10615, 1158, 1893, 273, 1083, 16, 1924, 33, 23, 4672, 1705, 273, 3912, 67, 718, 12, 4816, 13, 353, 67, 10578, 16194, 273, 1158, 1893, 2...
for child in tds[1].childNodes[2:]: if hasattr(child, 'data'):
for child in tds[1].childNodes: if hasattr(child, 'data') and child.data != u'\xa0':
def parse_table(self, div): d = self.table[self.tables[div.getAttribute('id')]] fields = self.fields[self.tables[div.getAttribute('id')]] table = div.getElementsByTagName('table')[1]
10c9aa088f4c1fd48dacaba32e4c87d6833f465c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/10c9aa088f4c1fd48dacaba32e4c87d6833f465c/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2121, 12, 2890, 16, 3739, 4672, 302, 273, 365, 18, 2121, 63, 2890, 18, 9373, 63, 2892, 18, 588, 1499, 2668, 350, 6134, 13563, 1466, 273, 365, 18, 2821, 63, 2890, 18, 9373, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2121, 12, 2890, 16, 3739, 4672, 302, 273, 365, 18, 2121, 63, 2890, 18, 9373, 63, 2892, 18, 588, 1499, 2668, 350, 6134, 13563, 1466, 273, 365, 18, 2821, 63, 2890, 18, 9373, ...
next = []
if not parsers: next = refined else: next = []
def __call__(self, tokens, refined, **kwargs): parsers = list(self.parsers) refine = [tokens] while parsers: p = parsers.pop() #print "doing", p, "on:", refine
eff23edccc62634e018d8cf77a4cf6c2d1807e19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/eff23edccc62634e018d8cf77a4cf6c2d1807e19/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 2430, 16, 25994, 329, 16, 2826, 4333, 4672, 14212, 273, 666, 12, 2890, 18, 11104, 13, 30446, 273, 306, 7860, 65, 225, 1323, 14212, 30, 293, 273, 14212, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 2430, 16, 25994, 329, 16, 2826, 4333, 4672, 14212, 273, 666, 12, 2890, 18, 11104, 13, 30446, 273, 306, 7860, 65, 225, 1323, 14212, 30, 293, 273, 14212, 1...
if (PkgSkip("PYTHON")==0): LibName("PYTHON", "-l" + SDK["PYTHONVERSION"])
def parseopts(args): global OPTIMIZE,INSTALLER,GENMAN global VERSION,COMPRESSOR,VERBOSE,THREADCOUNT longopts = [ "help", "optimize=","everything","nothing","installer", "version=","lzma","no-python","threads=","outputdir="] anything = 0 for pkg in PkgListGet(): longopts.append("no-"+pkg.lower()) for pkg in PkgListGet()...
57778fbc0a8322de1fb17dfffe2a36e012d79fd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/57778fbc0a8322de1fb17dfffe2a36e012d79fd2/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 16456, 3445, 15641, 16, 28865, 654, 16, 16652, 9560, 2552, 8456, 16, 4208, 22526, 916, 16, 21900, 16, 21730, 7240, 1525, 4952, 273, 306, 315, 5201, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 16456, 3445, 15641, 16, 28865, 654, 16, 16652, 9560, 2552, 8456, 16, 4208, 22526, 916, 16, 21900, 16, 21730, 7240, 1525, 4952, 273, 306, 315, 5201, 3113, ...
pl = wikipedia.PageLink(wikipedia.mylang, listpage)
try: pl = wikipedia.PageLink(wikipedia.mylang, listpage) except NoPage: print 'The page ' + listpage + ' could not be loaded from the server.' sys.exit()
def add_category(): print "This bot has two modes: you can add a category link to all" print "pages mentioned in a List that is now in another wikipedia page" print "or you can add a category link to all pages that link to a" print "specific page. If you want the second, please give an empty" print "answer to the first...
6d3888c213e7c8eabfe6517fe60a5054062b40bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/6d3888c213e7c8eabfe6517fe60a5054062b40bd/category.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4743, 13332, 1172, 315, 2503, 2512, 711, 2795, 12382, 30, 1846, 848, 527, 279, 3150, 1692, 358, 777, 6, 1172, 315, 7267, 27635, 316, 279, 987, 716, 353, 2037, 316, 4042, 21137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4743, 13332, 1172, 315, 2503, 2512, 711, 2795, 12382, 30, 1846, 848, 527, 279, 3150, 1692, 358, 777, 6, 1172, 315, 7267, 27635, 316, 279, 987, 716, 353, 2037, 316, 4042, 21137, ...
def docclass(self, object, name=None, mod=None):
def docclass(self, object, name=None, mod=None, *ignored):
def docclass(self, object, name=None, mod=None): """Produce text documentation for a given class object.""" realname = object.__name__ name = name or realname bases = object.__bases__
9bd45f995fa7e79edaf6e79f947de70c22e00168 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/9bd45f995fa7e79edaf6e79f947de70c22e00168/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1106, 12, 2890, 16, 733, 16, 508, 33, 7036, 16, 681, 33, 7036, 16, 380, 24055, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 667, 733, 12123, 2863, 529, 273, 733, 16186, 529, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1106, 12, 2890, 16, 733, 16, 508, 33, 7036, 16, 681, 33, 7036, 16, 380, 24055, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 667, 733, 12123, 2863, 529, 273, 733, 16186, 529, 972, ...
console.info("Scanning %s" %self.dir)
def scanRepository(self): console.indent() console.info("Scanning %s" %self.dir) demoDir = "%sdemo%s" %(os.sep,os.sep) manifestPaths = [] for root, dirs, files in os.walk(self.dir, topdown=True): for name in files[:]: #if "Bugs" in root: # dirs = [] # files = [] if name == "Manifest.json" and root != self.dir: consol...
7955c436f4b75c153e4cc97ef9824e3fb4b3b16e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/7955c436f4b75c153e4cc97ef9824e3fb4b3b16e/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 3305, 12, 2890, 4672, 2983, 18, 9355, 1435, 21477, 1621, 273, 2213, 87, 27928, 9, 87, 6, 8975, 538, 18, 10814, 16, 538, 18, 10814, 13, 5643, 4466, 273, 5378, 364, 1365, 16, 7717,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 3305, 12, 2890, 4672, 2983, 18, 9355, 1435, 21477, 1621, 273, 2213, 87, 27928, 9, 87, 6, 8975, 538, 18, 10814, 16, 538, 18, 10814, 13, 5643, 4466, 273, 5378, 364, 1365, 16, 7717,...
if len(val) != self.natoms:
if len(val) != len(self.symbol_count):
def write_incar(self, atoms, **kwargs): """Writes the INCAR file.""" p = self.incar_parameters incar = open('INCAR', 'w') incar.write('INCAR created by Atomic Simulation Environment\n') for key, val in p.items(): if val is not None: incar.write(' '+key.upper()+' = ') # special cases: if key in ('dipol', 'eint'): [incar...
3f6573d59a6a06e07a56ebb8cf2b4a43a2725223 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/3f6573d59a6a06e07a56ebb8cf2b4a43a2725223/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 9523, 297, 12, 2890, 16, 9006, 16, 2826, 4333, 4672, 3536, 8368, 326, 2120, 39, 985, 585, 12123, 293, 273, 365, 18, 9523, 297, 67, 3977, 7290, 297, 273, 1696, 2668, 23213, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 9523, 297, 12, 2890, 16, 9006, 16, 2826, 4333, 4672, 3536, 8368, 326, 2120, 39, 985, 585, 12123, 293, 273, 365, 18, 9523, 297, 67, 3977, 7290, 297, 273, 1696, 2668, 23213, 98...
connection.ping(True)
connection.ping( True )
def __getConnection( self, conn = False, trial = 0 ): """ Return a new connection to the DB, if conn is provided then just return it. then try the Queue, if it is empty add a newConnection to the Queue and retry it will retry maxConnectRetry to open a new connection and will return an error if it fails. """ self.logger...
0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1952, 12, 365, 16, 1487, 273, 1083, 16, 12950, 273, 374, 262, 30, 3536, 2000, 279, 394, 1459, 358, 326, 2383, 16, 309, 1487, 353, 2112, 1508, 2537, 327, 518, 18, 1508, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1952, 12, 365, 16, 1487, 273, 1083, 16, 12950, 273, 374, 262, 30, 3536, 2000, 279, 394, 1459, 358, 326, 2383, 16, 309, 1487, 353, 2112, 1508, 2537, 327, 518, 18, 1508, 775, ...
STRING 'r"abc"' (1, 4) (1, 11) OP '+' (1, 12) (1, 13) STRING 'r"ABC"' (1, 14) (1, 21) OP '+' (1, 22) (1, 23) STRING 'R"ABC"' (1, 24) (1, 31) OP '+' (1, 32) (1, 33) STRING 'R"ABC"' (1, 34) (1, 41)
STRING 'r"abc"' (1, 4) (1, 10) OP '+' (1, 11) (1, 12) STRING 'r"ABC"' (1, 13) (1, 19) OP '+' (1, 20) (1, 21) STRING 'R"ABC"' (1, 22) (1, 28) OP '+' (1, 29) (1, 30) STRING 'R"ABC"' (1, 31) (1, 37)
... " def y(m): # A whitespace after the colon\\n"
0c1f7c0c8adacac5f2960357b1c35f23352b4e70 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/0c1f7c0c8adacac5f2960357b1c35f23352b4e70/test_tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 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, ...
[ 1, 1, 1, 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, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
r = ioctl(f,CDROMEJECT, 0) os.close(f) f = os.open(dvddrivepath, os.O_RDONLY | os.O_NONBLOCK) r = ioctl(f,CDROMCLOSETRAY, 0) os.close(f) result = os.system(command) if result != 0: write("-"*60) write("ERROR: Failed while running growisofs") write("Result %d, Command was: %s" % (result, command)) write("Please check th...
drivestatus = ioctl(f,CDROM.CDROM_DRIVE_STATUS, 0) os.close(f); if drivestatus == CDROM.CDS_DISC_OK or drivestatus == CDROM.CDS_NO_INFO: if mediatype == DVD_RW and erasedvdrw == True: command = path_growisofs[0] + " -dvd-compat -use-the-force-luke -Z " + dvddrivepath + \ " -dvd-video -V 'MythTV DVD' " + os.path.join(g...
def BurnDVDISO(): write( "Burning ISO image to %s" % dvddrivepath) checkCancelFlag() if mediatype == DVD_RW and erasedvdrw == True: command = path_growisofs[0] + " -dvd-compat -use-the-force-luke -Z " + dvddrivepath + \ " -dvd-video -V 'MythTV DVD' " + os.path.join(getTempPath(),'dvd') else: command = path_growisofs[0...
41c40485cd40c875ce1f8181cbc7de397bacb9ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/41c40485cd40c875ce1f8181cbc7de397bacb9ae/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 321, 30199, 2565, 3584, 13332, 1045, 12, 315, 38, 321, 310, 9351, 1316, 358, 738, 87, 6, 738, 12494, 449, 86, 688, 803, 13, 866, 6691, 4678, 1435, 225, 309, 25381, 422, 463, 21544...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 321, 30199, 2565, 3584, 13332, 1045, 12, 315, 38, 321, 310, 9351, 1316, 358, 738, 87, 6, 738, 12494, 449, 86, 688, 803, 13, 866, 6691, 4678, 1435, 225, 309, 25381, 422, 463, 21544...
tmp = os.path.normpath(tempfile.mktemp())
tmp = os.path.normpath(tempfile.mktemp('.lnk'))
def __call__(self, target, source, env, for_signature): cmd = env.subst_list(self.cmd, 0, target, source)[0] if for_signature or \ (reduce(lambda x, y: x + len(y), cmd, 0) + len(cmd)) <= 2048: return self.cmd else: # In Cygwin, we want to use rm to delete the temporary file, # because del does not exist in the sh shell...
0c7825cfc8dfcd6b84fe282c193af8f57453ceaa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/0c7825cfc8dfcd6b84fe282c193af8f57453ceaa/win32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1018, 16, 1084, 16, 1550, 16, 364, 67, 8195, 4672, 1797, 273, 1550, 18, 1717, 334, 67, 1098, 12, 2890, 18, 4172, 16, 374, 16, 1018, 16, 1084, 25146, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1018, 16, 1084, 16, 1550, 16, 364, 67, 8195, 4672, 1797, 273, 1550, 18, 1717, 334, 67, 1098, 12, 2890, 18, 4172, 16, 374, 16, 1018, 16, 1084, 25146, 20...
class repository:
class localrepository:
def o(path, mode="r"): if p[:7] == "http://": f = os.path.join(p, urllib.quote(path)) return httprangereader(f)
eb43bc39e29877343a30c9f57cdb3624905974b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/eb43bc39e29877343a30c9f57cdb3624905974b8/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 12, 803, 16, 1965, 1546, 86, 6, 4672, 309, 293, 10531, 27, 65, 422, 315, 2505, 2207, 6877, 284, 273, 1140, 18, 803, 18, 5701, 12, 84, 16, 11527, 18, 6889, 12, 803, 3719, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 320, 12, 803, 16, 1965, 1546, 86, 6, 4672, 309, 293, 10531, 27, 65, 422, 315, 2505, 2207, 6877, 284, 273, 1140, 18, 803, 18, 5701, 12, 84, 16, 11527, 18, 6889, 12, 803, 3719, 327, ...
return result
return result.values()
def searchPrco(self, name, prcotype): result = [] table = self.dep_table[prcotype] mi = self.ts.dbMatch() mi.pattern(table[0], rpm.RPMMIRE_STRCMP, name) for hdr in mi: pkg = self.hdr2class(hdr, True) names = hdr[table[0]] vers = hdr[table[1]] flags = hdr[table[2]]
6338d267fadfccd78571b9002e8acbde531cd749 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/6338d267fadfccd78571b9002e8acbde531cd749/rpmsack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 28763, 83, 12, 2890, 16, 508, 16, 846, 71, 10570, 4672, 563, 273, 5378, 1014, 273, 365, 18, 15037, 67, 2121, 63, 683, 71, 10570, 65, 12837, 273, 365, 18, 3428, 18, 1966, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 28763, 83, 12, 2890, 16, 508, 16, 846, 71, 10570, 4672, 563, 273, 5378, 1014, 273, 365, 18, 15037, 67, 2121, 63, 683, 71, 10570, 65, 12837, 273, 365, 18, 3428, 18, 1966, 2060, ...
op.redo_callback_add(self._edit_grp.part.restack_above) op.undo_callback_add(self._edit_grp.part.restack_below)
op.redo_callback_add(self._restack_above, self._edit_grp.part.name) op.undo_callback_add(self._restack_above, self._edit_grp.part.name)
def _up_cb(self, obj, emission, source): r = self._edit_grp.part.restack_above() if not r: return
3cdd7fa1ad4be14ff909532b228fdeed23e9a479 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/3cdd7fa1ad4be14ff909532b228fdeed23e9a479/parts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 416, 67, 7358, 12, 2890, 16, 1081, 16, 801, 19710, 16, 1084, 4672, 436, 273, 365, 6315, 4619, 67, 17532, 18, 2680, 18, 266, 3772, 67, 25998, 1435, 309, 486, 436, 30, 327, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 416, 67, 7358, 12, 2890, 16, 1081, 16, 801, 19710, 16, 1084, 4672, 436, 273, 365, 6315, 4619, 67, 17532, 18, 2680, 18, 266, 3772, 67, 25998, 1435, 309, 486, 436, 30, 327, 2, -10...
bins = property(__get_bins, doc="Feature bins; a list of `Bin` objects")
bins = property(__get_bins, doc="Feature bins; a list of :class:`Bin` objects")
def __get_modpt(self): return _mdt.mod_mdt_feature_get(self._mdt._basept, self._indx)
7e53272f8af5c3ccd2544c8ad469ff1135289f85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1904/7e53272f8af5c3ccd2544c8ad469ff1135289f85/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 1711, 337, 12, 2890, 4672, 327, 389, 1264, 88, 18, 1711, 67, 1264, 88, 67, 7238, 67, 588, 12, 2890, 6315, 1264, 88, 6315, 1969, 337, 16, 365, 6315, 728, 92, 13, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 1711, 337, 12, 2890, 4672, 327, 389, 1264, 88, 18, 1711, 67, 1264, 88, 67, 7238, 67, 588, 12, 2890, 6315, 1264, 88, 6315, 1969, 337, 16, 365, 6315, 728, 92, 13, 2, -...
if self[i:i+l] == sub: return i
if self[i:i+L] == sub: return i
def rfind(self, sub, start=0, end=None): r""" Returns the index of the last occurrence of sub in self, such that sub is contained within self[start:end]. Returns -1 on failure.
e980978296e16c6e63b477ce4f93e8427871483a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/e980978296e16c6e63b477ce4f93e8427871483a/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31257, 12, 2890, 16, 720, 16, 787, 33, 20, 16, 679, 33, 7036, 4672, 436, 8395, 2860, 326, 770, 434, 326, 1142, 13083, 434, 720, 316, 365, 16, 4123, 716, 720, 353, 7542, 3470, 365, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31257, 12, 2890, 16, 720, 16, 787, 33, 20, 16, 679, 33, 7036, 4672, 436, 8395, 2860, 326, 770, 434, 326, 1142, 13083, 434, 720, 316, 365, 16, 4123, 716, 720, 353, 7542, 3470, 365, 63...
find the users actuall session object. """ cookie = request.headers.getHeader('cookie') if cookie: cookie = cookie[0].value session = self.sessionManager.getSession(cookie)
find the users actual session object. """ cookie = get_our_cookie(request) session = self.sessionManager.getSession(sid_cookie)
def getSession(self, request): """Get a user's session defined by the requests cookie.
a6efc47b0d651b2b24196e12682c411a3bf5d87a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a6efc47b0d651b2b24196e12682c411a3bf5d87a/guard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7183, 12, 2890, 16, 590, 4672, 3536, 967, 279, 729, 1807, 1339, 2553, 635, 326, 3285, 3878, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7183, 12, 2890, 16, 590, 4672, 3536, 967, 279, 729, 1807, 1339, 2553, 635, 326, 3285, 3878, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if self.options.input_encoding.lower() == 'unicode':
if self.settings.input_encoding \ and self.settings.input_encoding.lower() == 'unicode':
def read(self, reader): """Decode and return the source string.""" if self.options.input_encoding.lower() == 'unicode': return self.source else: return self.decode(self.source)
3f9490a061df406cd80f543206a76f29cb5b8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/3f9490a061df406cd80f543206a76f29cb5b8e57/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 2949, 4672, 3536, 6615, 471, 327, 326, 1084, 533, 12123, 309, 365, 18, 4272, 18, 2630, 67, 5999, 521, 471, 365, 18, 4272, 18, 2630, 67, 5999, 18, 8167, 1435, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 2949, 4672, 3536, 6615, 471, 327, 326, 1084, 533, 12123, 309, 365, 18, 4272, 18, 2630, 67, 5999, 521, 471, 365, 18, 4272, 18, 2630, 67, 5999, 18, 8167, 1435, 422, ...
psfPolicy: @ImgChar-sourceDetect-psf.paf backgroundPolicy: @ImgChar-sourceDetect-background.paf
psfPolicy: @PT1Pipe/ImgChar-sourceDetect-psf.paf backgroundPolicy: @PT1Pipe/ImgChar-sourceDetect-background.paf
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
794695332025b0321e85c5771ec0bb572bc37b41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6538/794695332025b0321e85c5771ec0bb572bc37b41/createImSimPipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 2156, 2227, 12, 74, 4672, 1172, 1671, 74, 16, 3536, 595, 8755, 30, 288, 508, 30, 13579, 1830, 12081, 7230, 797, 30, 7180, 334, 18, 21992, 18, 14511, 18, 1830, 10214, 8755, 13056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 2156, 2227, 12, 74, 4672, 1172, 1671, 74, 16, 3536, 595, 8755, 30, 288, 508, 30, 13579, 1830, 12081, 7230, 797, 30, 7180, 334, 18, 21992, 18, 14511, 18, 1830, 10214, 8755, 13056, ...
except (NameError, AttributeError, AssertionError), e:
except (NameError, AttributeError, AssertionError, KeyError), e:
def retry_failed_fields(self): "Tries to re-evaluate the _failed_fields for each model." for modelkey, model in self.models.items(): app, modelname = modelkey.split(".", 1) if hasattr(model, "_failed_fields"): for fname, code in model._failed_fields.items(): try: field = self.eval_in_context(code, app) except (NameErro...
511db1fba037fc916194dec9b6fa2ac3392f14ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/511db1fba037fc916194dec9b6fa2ac3392f14ed/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 7307, 67, 2821, 12, 2890, 4672, 315, 13652, 358, 283, 17, 21024, 326, 389, 7307, 67, 2821, 364, 1517, 938, 1199, 364, 938, 856, 16, 938, 316, 365, 18, 7665, 18, 3319, 13332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7307, 67, 2821, 12, 2890, 4672, 315, 13652, 358, 283, 17, 21024, 326, 389, 7307, 67, 2821, 364, 1517, 938, 1199, 364, 938, 856, 16, 938, 316, 365, 18, 7665, 18, 3319, 13332, ...
part_object.mountPoint = line[0] opts, args = getopt.getopt(line[1:], "d:h", ["fstype=", "size=", "onpart", "grow", "maxsize", "noformat", "onpart",
opts, args = getopt.getopt(line[1:], "d:h", ["recommended", "fstype=", "size=", "onpart", "grow", "maxsize", "noformat",
def parseLine(self, part_object, line): part_object.mountPoint = line[0] opts, args = getopt.getopt(line[1:], "d:h", ["fstype=", "size=", "onpart", "grow", "maxsize", "noformat", "onpart", "usepart", "ondisk=", "ondrive", "asprimary" "bytes-per-inode", "start", "end", "badblocks"])
19143870b31bee6bc209eee2a84b970a6c7fd385 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5376/19143870b31bee6bc209eee2a84b970a6c7fd385/partWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1670, 12, 2890, 16, 1087, 67, 1612, 16, 980, 4672, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 1369, 63, 21, 30, 6487, 315, 72, 30, 76, 3113, 8247, 26687, 3934, 3113, 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, 1109, 1670, 12, 2890, 16, 1087, 67, 1612, 16, 980, 4672, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 1369, 63, 21, 30, 6487, 315, 72, 30, 76, 3113, 8247, 26687, 3934, 3113, 315...
DELETE_TEXT = _("Delete")
def __init__(self): self.state = 'paused' self.rate = 0 self.downloaded_size = 0
b93b094ec45bb4a0ec64181eb64a720c55062c66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/b93b094ec45bb4a0ec64181eb64a720c55062c66/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 2019, 273, 296, 8774, 3668, 11, 365, 18, 5141, 273, 374, 365, 18, 2378, 4230, 67, 1467, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 2019, 273, 296, 8774, 3668, 11, 365, 18, 5141, 273, 374, 365, 18, 2378, 4230, 67, 1467, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100,...
if not hostname: print "You must sepcify a hostname with the -h switch" sys.exit(1) if not lab_server: print "You must sepcify a lab_server with the -S switch" sys.exit(1)
def main(): global lab_server, hostname lab_server = '' hostname = '' debug = 0 if ('LAB_SERVER' in os.environ.keys()): lab_server = "http://%s/cgi-bin/rhts/xmlrpc.cgi" % os.environ['LAB_SERVER'] if ('HOSTNAME' in os.environ.keys()): hostname = os.environ['HOSTNAME'] args = sys.argv[1:] try: opts, args = getopt.geto...
ed097c008e583fdf19b8896e7acccc9d061fc8c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/ed097c008e583fdf19b8896e7acccc9d061fc8c0/push-inventory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 11814, 67, 3567, 16, 5199, 225, 11814, 67, 3567, 273, 875, 5199, 273, 875, 1198, 273, 374, 225, 309, 7707, 48, 2090, 67, 4370, 11, 316, 1140, 18, 28684, 18, 2452, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 11814, 67, 3567, 16, 5199, 225, 11814, 67, 3567, 273, 875, 5199, 273, 875, 1198, 273, 374, 225, 309, 7707, 48, 2090, 67, 4370, 11, 316, 1140, 18, 28684, 18, 2452, 14...
if mode in ('w', 'w+', 'r+'): self._need_index = True else: self._need_index = False
if mode.endswith('b'): mode = mode[:-1] self.mode = mode
def __init__(self, parent, path, mode): nodes.node_descriptor.__init__(self, parent) self.__file = open(path, mode) if mode in ('w', 'w+', 'r+'): self._need_index = True else: self._need_index = False for attr in ('closed', 'read', 'write', 'seek', 'tell'): setattr(self,attr, getattr(self.__file, attr))
31d45716ca29df2809d98d6aed3e9a5eb64d20d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/31d45716ca29df2809d98d6aed3e9a5eb64d20d9/document_storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 589, 16, 1965, 4672, 2199, 18, 2159, 67, 12628, 16186, 2738, 972, 12, 2890, 16, 982, 13, 365, 16186, 768, 273, 1696, 12, 803, 16, 1965, 13, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 589, 16, 1965, 4672, 2199, 18, 2159, 67, 12628, 16186, 2738, 972, 12, 2890, 16, 982, 13, 365, 16186, 768, 273, 1696, 12, 803, 16, 1965, 13, 30...
debug("duplicate atom "+str(atm_id)) return
old_name = name i = 2 while self.atom_cache.has_key(atm_id): name = "%s%d" % (old_name, i) atm_id = (name, alt_loc, fragment_id, chain_id) i += 1
def load_atom(self, atm_map): """Called repeatedly by the implementation of read_atoms to load all the data for a single atom. The data is contained in the atm_map argument, and is not well documented at this point. Look at this function and you'll figure it out. """ ## XXX -- I presently do not support more than one...
5a1d5bac5e97c5e026ff1ec048c5d79e784e7f23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/5a1d5bac5e97c5e026ff1ec048c5d79e784e7f23/StructureBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7466, 12, 2890, 16, 622, 81, 67, 1458, 4672, 3536, 8185, 30412, 635, 326, 4471, 434, 855, 67, 14937, 358, 1262, 777, 326, 501, 364, 279, 2202, 3179, 18, 225, 1021, 501, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7466, 12, 2890, 16, 622, 81, 67, 1458, 4672, 3536, 8185, 30412, 635, 326, 4471, 434, 855, 67, 14937, 358, 1262, 777, 326, 501, 364, 279, 2202, 3179, 18, 225, 1021, 501, 353, ...
{min_task_id : (min_proc, min_prio)}
return {}, {min_task_id : (min_proc, min_prio)}
def get_tasks_to_sleep_and_stop(self, proc, task_set): """Among the task_set, return the dict of task to stop and the dict of task to sleep. """ min_prio = None min_task_id = None min_proc = None to_stop = {} for this_task_id, (this_proc, this_priority) in task_set.iteritems(): if self.tasks_safe_p(proc, this_proc): if...
9b0bfca022ee4094d91c0d258adaf3e5a7109f7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9b0bfca022ee4094d91c0d258adaf3e5a7109f7b/bibsched.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9416, 67, 869, 67, 19607, 67, 464, 67, 5681, 12, 2890, 16, 5418, 16, 1562, 67, 542, 4672, 3536, 9864, 932, 326, 1562, 67, 542, 16, 327, 326, 2065, 434, 1562, 358, 2132, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9416, 67, 869, 67, 19607, 67, 464, 67, 5681, 12, 2890, 16, 5418, 16, 1562, 67, 542, 4672, 3536, 9864, 932, 326, 1562, 67, 542, 16, 327, 326, 2065, 434, 1562, 358, 2132, 471,...