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
path[0] = pb2
info[0] = pb2
def library_get_toplevel_cache(self, genreview=False, artistview=False, albumview=False): if genreview and self.lib_view_genre_cache is not None: bd = self.lib_view_genre_cache elif artistview and self.lib_view_artist_cache is not None: bd = self.lib_view_artist_cache elif albumview and self.lib_view_album_cache is not...
6ee905a6c5062915be7f923b2dbcb3e626876af5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/6ee905a6c5062915be7f923b2dbcb3e626876af5/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5313, 67, 588, 67, 3669, 2815, 67, 2493, 12, 2890, 16, 3157, 16041, 33, 8381, 16, 15469, 1945, 33, 8381, 16, 14844, 1945, 33, 8381, 4672, 309, 3157, 16041, 471, 365, 18, 2941, 67, 1945...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5313, 67, 588, 67, 3669, 2815, 67, 2493, 12, 2890, 16, 3157, 16041, 33, 8381, 16, 15469, 1945, 33, 8381, 16, 14844, 1945, 33, 8381, 4672, 309, 3157, 16041, 471, 365, 18, 2941, 67, 1945...
elif i-1 < len(s) and s[i+1] == '$':
elif i+1 < len(s) and s[i+1] == '$':
def math_parse(s): r""" Do the following: \begin{verbatim} * Replace all $ text $'s by <span class='math'> text </span> * Replace all $$ text $$'s by <div class='math'> text </div> * Replace all \$'s by $'.s Note that in the above two cases nothing is done if the $ is preceeded by a backslash. \end{verbatim} """ t = '...
c344243434fb30b6250f73a365f5dff08a6e0008 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/c344243434fb30b6250f73a365f5dff08a6e0008/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4233, 67, 2670, 12, 87, 4672, 436, 8395, 2256, 326, 3751, 30, 521, 10086, 95, 16629, 22204, 97, 380, 6910, 777, 271, 977, 271, 11, 87, 635, 411, 3969, 667, 2218, 15949, 29256, 977, 776...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4233, 67, 2670, 12, 87, 4672, 436, 8395, 2256, 326, 3751, 30, 521, 10086, 95, 16629, 22204, 97, 380, 6910, 777, 271, 977, 271, 11, 87, 635, 411, 3969, 667, 2218, 15949, 29256, 977, 776...
cobblestone_block = terrain.crop(get_cropbox(0,1))
cobblestone = terrain.crop(get_cropbox(0,1))
def get_cropbox(x, y): return (x*16, y*16, x*16 + 16, y*16 + 16)
085d2e65d6c70e23a4d1c9d5c5373fe9db845f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13883/085d2e65d6c70e23a4d1c9d5c5373fe9db845f1a/read_chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13758, 2147, 12, 92, 16, 677, 4672, 327, 261, 92, 14, 2313, 16, 677, 14, 2313, 16, 619, 14, 2313, 397, 2872, 16, 677, 14, 2313, 397, 2872, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13758, 2147, 12, 92, 16, 677, 4672, 327, 261, 92, 14, 2313, 16, 677, 14, 2313, 16, 619, 14, 2313, 397, 2872, 16, 677, 14, 2313, 397, 2872, 13, 2, -100, -100, -100, -100, -...
self.assertEqual(sprite.spritecollide(s1, ag2, dokill = False, collided = sprite.collide_circle_ratio(20.0)),[s2,s3])
self.assertTrue ( unordered_equality ( sprite.spritecollide(s1, ag2, dokill = False, collided = sprite.collide_circle_ratio(20.0)), [s2,s3] ))
def test_spritecollide(self):
db8df1b888c4afedef92c66bbb60a73971be1b37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/db8df1b888c4afedef92c66bbb60a73971be1b37/sprite_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1752, 583, 18997, 8130, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 67, 1752, 583, 18997, 8130, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self._must_close = True
def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering=False): if buffering: # The caller won't be using any sock.recv() calls, so buffering # is fine and recommended for performance. self.fp = sock.makefile('rb') # As our sock.makefile() object may receive data into its buffer # beyond that needed to ...
ccb0c6f38692dcba649e8bf40ff928da7f74ba9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ccb0c6f38692dcba649e8bf40ff928da7f74ba9f/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 1198, 2815, 33, 20, 16, 5490, 33, 20, 16, 707, 33, 7036, 16, 25056, 33, 8381, 4672, 309, 25056, 30, 468, 1021, 4894, 8462, 1404, 506, 1450, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7313, 16, 1198, 2815, 33, 20, 16, 5490, 33, 20, 16, 707, 33, 7036, 16, 25056, 33, 8381, 4672, 309, 25056, 30, 468, 1021, 4894, 8462, 1404, 506, 1450, 1...
if vararg: self._vararg_param = Param(vararg) else: self._vararg_param = None if kwarg: self._kwarg_param = Param(kwarg) else: self._kwarg_param = None
if vararg: self._vararg_param = Param(vararg) else: self._vararg_param = None if kwarg: self._kwarg_param = Param(kwarg) else: self._kwarg_param = None
def _init_signature(self, func): # Get the function's signature (args, vararg, kwarg, defaults) = inspect.getargspec(func)
1bdc6e1cd033a9c44438228cd8b6521d911aa459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1bdc6e1cd033a9c44438228cd8b6521d911aa459/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 8195, 12, 2890, 16, 1326, 4672, 468, 968, 326, 445, 1807, 3372, 261, 1968, 16, 569, 3175, 16, 19554, 16, 3467, 13, 273, 5334, 18, 588, 23172, 12, 644, 13, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 8195, 12, 2890, 16, 1326, 4672, 468, 968, 326, 445, 1807, 3372, 261, 1968, 16, 569, 3175, 16, 19554, 16, 3467, 13, 273, 5334, 18, 588, 23172, 12, 644, 13, 2, -100, -10...
calling call_cls
calling classcall
... def __init__(self):
083d2581f9172647da2a6e6f7338e869e5aef113 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/083d2581f9172647da2a6e6f7338e869e5aef113/classcall_metaclass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 4202, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 4202, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
z = rbigint([0] * newsize, a.sign)
z = rbigint([0] * newsize, self.sign)
def rshift(w_bigint1, w_bigint2): if w_bigint2.sign < 0: raise ValueError("negative shift count") elif w_bigint2.sign == 0: return w_bigint1 if w_bigint1.sign == -1: w_a1 = w_bigint1.invert() w_a2 = w_a1.rshift(w_bigint2) return w_a2.invert() shiftby = w_bigint2.toint()
87da397eba037ce53e8c5847c7c4b29acfda97b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/87da397eba037ce53e8c5847c7c4b29acfda97b2/rbigint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 4012, 12, 91, 67, 14002, 474, 21, 16, 341, 67, 14002, 474, 22, 4672, 309, 341, 67, 14002, 474, 22, 18, 2977, 411, 374, 30, 1002, 2068, 2932, 13258, 4654, 1056, 7923, 1327, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 4012, 12, 91, 67, 14002, 474, 21, 16, 341, 67, 14002, 474, 22, 4672, 309, 341, 67, 14002, 474, 22, 18, 2977, 411, 374, 30, 1002, 2068, 2932, 13258, 4654, 1056, 7923, 1327, 341, ...
else:
elif progress is not None:
def __init__(self, function, interval, progress=None): InProgress.__init__(self) self._coroutine = function self._timer = Timer(self._step) self._interval = interval self._async = None self._valid = True
7adcf260c2d12f8e18e83b9029a7c2560ca25d5e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11722/7adcf260c2d12f8e18e83b9029a7c2560ca25d5e/coroutine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 445, 16, 3673, 16, 4007, 33, 7036, 4672, 657, 5491, 16186, 2738, 972, 12, 2890, 13, 365, 6315, 3850, 8983, 273, 445, 365, 6315, 12542, 273, 12290, 12, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 445, 16, 3673, 16, 4007, 33, 7036, 4672, 657, 5491, 16186, 2738, 972, 12, 2890, 13, 365, 6315, 3850, 8983, 273, 445, 365, 6315, 12542, 273, 12290, 12, 28...
0.21762156185440268136513424360523807352075436916785404091068124239250 - 0.86801414289592494863584920891627388827343874994609327121115071646235*I 0.21762156185440268136513424360523807352075436916785404091068124239250 - 0.86801414289592494863584920891627388827343874994609327121115071646235*I
0.21762156185440268136513424360523807352075436916785404091068124239 - 0.86801414289592494863584920891627388827343874994609327121115071646*I 0.21762156185440268136513424360523807352075436916785404091068124239235 - 0.86801414289592494863584920891627388827343874994609327121115071646235*I
def cotan(self): """ EXAMPLES: sage: (1+I).cotan() 0.21762156185440268 - 0.86801414289592493*I sage: i = ComplexField(200).0 sage: (1+i).cotan() 0.21762156185440268136513424360523807352075436916785404091068128 - 0.86801414289592494863584920891627388827343874994609327121115055*I # 32-bit 0.2176215618544026813651342436...
293427b47ee2bb564117092226099ed44acd171f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/293427b47ee2bb564117092226099ed44acd171f/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 352, 304, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 71, 352, 304, 1435, 374, 18, 22, 4033, 8898, 28946, 30489, 6334, 3103, 9470, 300, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 352, 304, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 71, 352, 304, 1435, 374, 18, 22, 4033, 8898, 28946, 30489, 6334, 3103, 9470, 300, 374, ...
return self.val
return self.val
def __str__(self): if self.val: if hasattr(self,'name') and self.name: datetime = mx.DateTime.strptime(self.name,DHM_FORMAT) return datetime.strftime(self.lang_obj.date_format+ " " + self.lang_obj.time_format) return self.val
580ab8c750be375663f614385e959361e071f30a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/580ab8c750be375663f614385e959361e071f30a/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 309, 365, 18, 1125, 30, 309, 3859, 12, 2890, 11189, 529, 6134, 471, 365, 18, 529, 30, 3314, 273, 7938, 18, 5096, 18, 701, 10650, 12, 2890, 18, 529, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 309, 365, 18, 1125, 30, 309, 3859, 12, 2890, 11189, 529, 6134, 471, 365, 18, 529, 30, 3314, 273, 7938, 18, 5096, 18, 701, 10650, 12, 2890, 18, 529, 16...
if req.versions[0] not in [v_a, '%s-%s' % (v_a, b_a)]: print("%s is installed cannot remove version %s." % (pkg, req.versions[0]))
if req.version != v_a or (req.build and req.build != int(b_a)): print("Version mismatch: %s is installed cannot remove %s." % (pkg, req))
def remove_req(req, opts): for pkg in egginst.get_active(): if req.name != cname_eggname(pkg): continue if req.versions: v_a, b_a = pkg.split('-')[1:3] if req.versions[0] not in [v_a, '%s-%s' % (v_a, b_a)]: print("%s is installed cannot remove version %s." % (pkg, req.versions[0])) return break else: print "Package %r ...
9de6afca59fe3412c83c27cb27b0f33a2cb11c93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7707/9de6afca59fe3412c83c27cb27b0f33a2cb11c93/enpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3658, 12, 3658, 16, 1500, 4672, 364, 3475, 316, 9130, 1912, 334, 18, 588, 67, 3535, 13332, 309, 1111, 18, 529, 480, 18290, 67, 23171, 529, 12, 10657, 4672, 1324, 309, 1111, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3658, 12, 3658, 16, 1500, 4672, 364, 3475, 316, 9130, 1912, 334, 18, 588, 67, 3535, 13332, 309, 1111, 18, 529, 480, 18290, 67, 23171, 529, 12, 10657, 4672, 1324, 309, 1111, 1...
p = combine_paths (d,['djbfft.a'])
p = self.combine_paths (d,['djbfft.a'])
def calc_info(self): lib_dirs = self.get_lib_dirs() incl_dirs = self.get_include_dirs() info = None for d in lib_dirs: p = combine_paths (d,['djbfft.a']) if p: info = {'extra_objects':p} break if info is None: return for d in incl_dirs: if len(combine_paths(d,['fftc8.h','fftfreq.h']))==2: dict_append(info,include_dirs=...
11cffa55fceeda7a779a5a596b22fb98270f22b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/11cffa55fceeda7a779a5a596b22fb98270f22b8/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 4672, 2561, 67, 8291, 273, 365, 18, 588, 67, 2941, 67, 8291, 1435, 2823, 67, 8291, 273, 365, 18, 588, 67, 6702, 67, 8291, 1435, 1123, 273, 599, 364, 302, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 4672, 2561, 67, 8291, 273, 365, 18, 588, 67, 2941, 67, 8291, 1435, 2823, 67, 8291, 273, 365, 18, 588, 67, 6702, 67, 8291, 1435, 1123, 273, 599, 364, 302, 31...
import time os.system("%s &" % self.name) time.sleep(PROCESS_CREATION_DELAY) rc = os.system(cmd)
rc = os.system("%s %s" % (self.name, url))
def _remote(self, action, autoraise): raise_opt = ("-noraise", "-raise")[autoraise] cmd = "%s %s -remote '%s' >/dev/null 2>&1" % (self.name, raise_opt, action) rc = os.system(cmd) if rc: import time os.system("%s &" % self.name) time.sleep(PROCESS_CREATION_DELAY) rc = os.system(cmd) return not rc
336cf8e9a006f0abbd7712771acc892711f93ebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/336cf8e9a006f0abbd7712771acc892711f93ebd/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7222, 12, 2890, 16, 1301, 16, 2059, 10610, 784, 4672, 1002, 67, 3838, 273, 7566, 17, 82, 10610, 784, 3113, 3701, 11628, 7923, 63, 69, 3408, 69, 784, 65, 1797, 273, 2213, 87, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7222, 12, 2890, 16, 1301, 16, 2059, 10610, 784, 4672, 1002, 67, 3838, 273, 7566, 17, 82, 10610, 784, 3113, 3701, 11628, 7923, 63, 69, 3408, 69, 784, 65, 1797, 273, 2213, 87, 738, ...
v1 = self._applyfixUpAxis(blockData[bMFace.v[0].index].co) v2 = self._applyfixUpAxis(blockData[bMFace.v[1].index].co) v3 = self._applyfixUpAxis(blockData[bMFace.v[2].index].co)
v1 = self._applyfixUpAxis(blockData[bMFace.v[0].index]) v2 = self._applyfixUpAxis(blockData[bMFace.v[1].index]) v3 = self._applyfixUpAxis(blockData[bMFace.v[2].index])
def __init__(self, bMesh, bMFace, bIndex, index, fixUpAxis, armatureExporter=None): """Represents an Ogre vertex. @param bIndex Index in the vertex list of the NMFace. @param index Vertexbuffer position. @param fixUpAxis Additional transformation to apply to the vertex. """ self.bMesh = bMesh # imples position # verte...
c4dbfdadadf05ac71e39e4a8184c48c795d3f200 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11621/c4dbfdadadf05ac71e39e4a8184c48c795d3f200/meshexport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 324, 16748, 16, 324, 49, 11824, 16, 324, 1016, 16, 770, 16, 2917, 1211, 6558, 16, 23563, 1231, 22305, 33, 7036, 4672, 3536, 23869, 87, 392, 531, 11556, 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, 1001, 2738, 972, 12, 2890, 16, 324, 16748, 16, 324, 49, 11824, 16, 324, 1016, 16, 770, 16, 2917, 1211, 6558, 16, 23563, 1231, 22305, 33, 7036, 4672, 3536, 23869, 87, 392, 531, 11556, 5...
def Wait(self, *args, **kwargs): """Wait for the window to be in any of the following states: 'exists' 'visible' 'enabled' 'ready' e.g. self.Dlg.Wait("exists", "enabled", "visible", "ready") 'exists' means that the window is a valid handle 'visible' means that the window is not hidden 'enabled' means that the window...
def Wait(self, wait_for, timeout = window_find_timeout, wait_interval = window_retry_interval): """Wait for the window to be in a particular state :wait_for: The state to wait for the window to be in. It can be any of the following states * 'exists' means that the window is a valid handle * 'visible' means that the ...
def Wait(self, *args, **kwargs): """Wait for the window to be in any of the following states:
3041c3cbb3a9cba089ef284c77ea17fa506bba68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/3041c3cbb3a9cba089ef284c77ea17fa506bba68/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5838, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 5480, 364, 326, 2742, 358, 506, 316, 1281, 434, 326, 3751, 5493, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5838, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 5480, 364, 326, 2742, 358, 506, 316, 1281, 434, 326, 3751, 5493, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return _unicode_replace(space, w_self, space.buffer_w(w_old).as_str(), space.buffer_w(w_new).as_str(), w_maxsplit)
old = unicode(space.buffer_w(w_old).as_str()) new = unicode(space.buffer_w(w_new).as_str()) return _unicode_replace(space, w_self, old, new, w_maxsplit)
def unicode_replace__Unicode_ANY_ANY_ANY(space, w_self, w_old, w_new, w_maxsplit): return _unicode_replace(space, w_self, space.buffer_w(w_old).as_str(), space.buffer_w(w_new).as_str(), w_maxsplit)
90604b9648df011341cb2343828790b69eb80691 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/90604b9648df011341cb2343828790b69eb80691/unicodeobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5252, 67, 2079, 972, 16532, 67, 15409, 67, 15409, 67, 15409, 12, 2981, 16, 341, 67, 2890, 16, 341, 67, 1673, 16, 341, 67, 2704, 16, 341, 67, 1896, 4939, 4672, 1592, 273, 5252, 12, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5252, 67, 2079, 972, 16532, 67, 15409, 67, 15409, 67, 15409, 12, 2981, 16, 341, 67, 2890, 16, 341, 67, 1673, 16, 341, 67, 2704, 16, 341, 67, 1896, 4939, 4672, 1592, 273, 5252, 12, 29...
return (_center(a, colwidth) + ' ' * spacing + _center(b, colwidth) + ' ' * spacing + _center(c, colwidth))
return (a.center(colwidth) + ' ' * spacing + b.center(colwidth) + ' ' * spacing + c.center(colwidth))
def format3cstring(a, b, c, colwidth=_colwidth, spacing=_spacing): """Returns a string formatted from 3 strings, centered within 3 columns.""" return (_center(a, colwidth) + ' ' * spacing + _center(b, colwidth) + ' ' * spacing + _center(c, colwidth))
9ecf9ce161bf3c1eafebe3c7f6d06b4f2458ff4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9ecf9ce161bf3c1eafebe3c7f6d06b4f2458ff4e/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 23, 71, 1080, 12, 69, 16, 324, 16, 276, 16, 645, 2819, 33, 67, 1293, 2819, 16, 13259, 33, 67, 14080, 4672, 3536, 1356, 279, 533, 4955, 628, 890, 2064, 16, 25340, 3470, 890, 2168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 23, 71, 1080, 12, 69, 16, 324, 16, 276, 16, 645, 2819, 33, 67, 1293, 2819, 16, 13259, 33, 67, 14080, 4672, 3536, 1356, 279, 533, 4955, 628, 890, 2064, 16, 25340, 3470, 890, 2168...
self.current_tweaks.setPlainText(curt) self.default_tweaks.setPlainText(deft)
self.current_tweaks.setPlainText(curt.decode('utf-8')) self.default_tweaks.setPlainText(deft.decode('utf-8'))
def __init__(self, parent, library_view, server=None, initial_category='general'): ResizableDialog.__init__(self, parent) self._category_model = CategoryModel()
6eade64d807b9af1f254585eccd560eb10f68a5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/6eade64d807b9af1f254585eccd560eb10f68a5d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 5313, 67, 1945, 16, 1438, 33, 7036, 16, 2172, 67, 4743, 2218, 12259, 11, 4672, 1124, 6934, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 5313, 67, 1945, 16, 1438, 33, 7036, 16, 2172, 67, 4743, 2218, 12259, 11, 4672, 1124, 6934, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 13, 365, ...
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Detected explicit click. Title: '+str(self.ClickTitle)+' Status: '+str(self.ClickStatus))
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Detected explicit click. Status: '+str(self.ClickStatus))
def handle(self): """Get called by cProxyCore for each request"""
23253492fe3039400366e6440ee883de3e44addb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/23253492fe3039400366e6440ee883de3e44addb/cProxyHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 967, 2566, 635, 276, 3886, 4670, 364, 1517, 590, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 967, 2566, 635, 276, 3886, 4670, 364, 1517, 590, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
import fpformat
def __repr__(self): taskNameWidth = 32 dtWidth = 10 priorityWidth = 10 totalDt = 0 totalAvgDt = 0 str = "The taskMgr is handling:\n" str += ('taskList'.ljust(taskNameWidth) + 'dt(ms)'.rjust(dtWidth) + 'avg'.rjust(dtWidth) + 'max'.rjust(dtWidth) + 'priority'.rjust(priorityWidth) + '\n') str += '-------------------------...
d300812b0d426bcde501f23e5e4f8a87f04857f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/d300812b0d426bcde501f23e5e4f8a87f04857f0/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 20172, 2384, 273, 3847, 3681, 2384, 273, 1728, 4394, 2384, 273, 1728, 2078, 19739, 273, 374, 2078, 22823, 19739, 273, 374, 609, 273, 315, 1986, 1562, 9455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 20172, 2384, 273, 3847, 3681, 2384, 273, 1728, 4394, 2384, 273, 1728, 2078, 19739, 273, 374, 2078, 22823, 19739, 273, 374, 609, 273, 315, 1986, 1562, 9455...
for server in self.serverList: server.sendCommandString(commandString)
else: for server in self.serverList: server.sendCommandString(commandString)
def __call__(self, commandString, fLocally = 1, serverNum = None): # Execute remotely if serverNum is not None: self.serverList[serverNum].sendCommandString(commandString) for server in self.serverList: server.sendCommandString(commandString) if fLocally: # Execute locally exec( commandString, __builtins__ )
f37df36261c8d4e3fa4429c1c80ab929ccac466d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/f37df36261c8d4e3fa4429c1c80ab929ccac466d/ClusterClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1296, 780, 16, 284, 1333, 1230, 273, 404, 16, 1438, 2578, 273, 599, 4672, 468, 7903, 26693, 2357, 309, 1438, 2578, 353, 486, 599, 30, 365, 18, 3567, 682,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1296, 780, 16, 284, 1333, 1230, 273, 404, 16, 1438, 2578, 273, 599, 4672, 468, 7903, 26693, 2357, 309, 1438, 2578, 353, 486, 599, 30, 365, 18, 3567, 682,...
def get_content_types(*actions): types = Change.objects.filter(action__in=actions)\
def get_content_types(app_models, *actions): lookup_args = dict(action__in=actions) if app_models is not None: ct_list = [ContentType.objects.get_for_model(model) for model in app_models] lookup_args.update(dict(content_type__in=ct_list)) types = Change.objects.filter(models.Q(**lookup_args))\
def get_content_types(*actions): types = Change.objects.filter(action__in=actions)\ .values_list('content_type', flat=True)\ .distinct() return ContentType.objects.filter(pk__in=types)
37d63969ac742928cd0a05ebf798f66bfa0d226e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4645/37d63969ac742928cd0a05ebf798f66bfa0d226e/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1745, 67, 2352, 12, 2910, 67, 7665, 16, 380, 4905, 4672, 3689, 67, 1968, 273, 2065, 12, 1128, 972, 267, 33, 4905, 13, 309, 595, 67, 7665, 353, 486, 599, 30, 5691, 67, 1098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1745, 67, 2352, 12, 2910, 67, 7665, 16, 380, 4905, 4672, 3689, 67, 1968, 273, 2065, 12, 1128, 972, 267, 33, 4905, 13, 309, 595, 67, 7665, 353, 486, 599, 30, 5691, 67, 1098, ...
gl.mapcolor(index, r, g, b)
map.append(index, r, g, b)
def _initcmap(self): if self.format in ('mono', 'grey4') and self.mustunpack: convcolor = conv_grey else: convcolor = choose_conversion(self.format) maxbits = gl.getgdesc(GL.GD_BITS_NORM_SNG_CMODE) if maxbits > 11: maxbits = 11 c0bits = self.c0bits c1bits = self.c1bits c2bits = self.c2bits if c0bits+c1bits+c2bits > max...
2939a4cf1a86f3e9f0e09b8f34d2ee221f414e1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2939a4cf1a86f3e9f0e09b8f34d2ee221f414e1f/VFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 22738, 12, 2890, 4672, 309, 365, 18, 2139, 316, 7707, 2586, 83, 2187, 296, 11556, 93, 24, 6134, 471, 365, 18, 11926, 17309, 30, 6292, 3266, 273, 6292, 67, 11556, 93, 469, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 22738, 12, 2890, 4672, 309, 365, 18, 2139, 316, 7707, 2586, 83, 2187, 296, 11556, 93, 24, 6134, 471, 365, 18, 11926, 17309, 30, 6292, 3266, 273, 6292, 67, 11556, 93, 469, 30...
if doTrain: processAndTrain(vtrainspam, vspam, bayes, True) processAndTrain(vtrainham, vham, bayes, False)
def run(bdbname, useDBM, ldbname, rdbname, foldname, doTrain, doClassify): if useDBM: bayes = storage.DBDictClassifier(bdbname) else: bayes = storage.PickledClassifier(bdbname) sess = win32com.client.Dispatch("Lotus.NotesSession") sess.initialize() db = sess.GetDatabase("",ldbname) vinbox = db.getView('($Inbox)') vs...
d157df0b94ba030675a5557e78bbe08945d099e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/d157df0b94ba030675a5557e78bbe08945d099e0/notesfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 70, 20979, 16, 999, 2290, 49, 16, 328, 20979, 16, 436, 20979, 16, 11590, 529, 16, 741, 23419, 16, 741, 797, 1164, 4672, 225, 309, 999, 2290, 49, 30, 324, 528, 281, 273, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 70, 20979, 16, 999, 2290, 49, 16, 328, 20979, 16, 436, 20979, 16, 11590, 529, 16, 741, 23419, 16, 741, 797, 1164, 4672, 225, 309, 999, 2290, 49, 30, 324, 528, 281, 273, 250...
self.lastratinglabel = -1
def toleranceHBoxSetter (widget, visible): assert type(visible) is bool if visible: self.widgets["toleranceHBox"].show() else: self.widgets["toleranceHBox"].hide()
722dcd889fab912f15e7688b07f1ddcedb21e013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/722dcd889fab912f15e7688b07f1ddcedb21e013/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10673, 44, 3514, 8465, 261, 6587, 16, 6021, 4672, 1815, 618, 12, 8613, 13, 353, 1426, 309, 6021, 30, 365, 18, 18148, 9614, 25456, 44, 3514, 6, 8009, 4500, 1435, 469, 30, 365, 18, 18148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10673, 44, 3514, 8465, 261, 6587, 16, 6021, 4672, 1815, 618, 12, 8613, 13, 353, 1426, 309, 6021, 30, 365, 18, 18148, 9614, 25456, 44, 3514, 6, 8009, 4500, 1435, 469, 30, 365, 18, 18148...
if not ticket['resolution'] and ticket['status'] == 'closed':
if not ticket['resolution'] and ticket['status'] == "closed":
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "B...
d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
self.status = _(u"You subscribed successfully.") elif form.status: self.status = form.status
editform.status = form.status
def contents(self): z2.switch_on(self)
69578eb98a8fae581e2332e3c8acd458f0064594 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9843/69578eb98a8fae581e2332e3c8acd458f0064594/subscribe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2939, 12, 2890, 4672, 998, 22, 18, 9610, 67, 265, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2939, 12, 2890, 4672, 998, 22, 18, 9610, 67, 265, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
action = wikiutil.escape(action, 1)
def renderInText(self): """ Render macro in text context
878fa797f0311dd2d0f240414a0e3c7cbfc7b8c0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/878fa797f0311dd2d0f240414a0e3c7cbfc7b8c0/Action.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 382, 1528, 12, 2890, 4672, 3536, 6987, 11522, 316, 977, 819, 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, 1743, 382, 1528, 12, 2890, 4672, 3536, 6987, 11522, 316, 977, 819, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
reactor.connectSSL(host, port, factory, ssl.ClientContextFactory(useM2=1))
reactor.connectSSL(host, port, self.factory, ssl.ClientContextFactory(useM2=1))
def __getMail(self):
cd0d773c52b7eb7870b5e37e0d7c668e7d25477c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cd0d773c52b7eb7870b5e37e0d7c668e7d25477c/imap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 6759, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 6759, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.picked = 0
def __init__(self, at1, at2): """create a bond from atom at1 to atom at2. the key created will be the same whichever order the atoms are given, and is used to compare bonds. """ self.atom1 = at1 self.atom2 = at2 self.picked = 0 self.key = 65536*min(at1.key,at2.key)+max(at1.key,at2.key)
06438827b0e8c767698eab722a3560397d34cddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/06438827b0e8c767698eab722a3560397d34cddb/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 622, 21, 16, 622, 22, 4672, 3536, 2640, 279, 8427, 628, 3179, 622, 21, 358, 3179, 622, 22, 18, 326, 498, 2522, 903, 506, 326, 1967, 600, 335, 580, 502,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 622, 21, 16, 622, 22, 4672, 3536, 2640, 279, 8427, 628, 3179, 622, 21, 358, 3179, 622, 22, 18, 326, 498, 2522, 903, 506, 326, 1967, 600, 335, 580, 502,...
file_root = path.join(avatars_root, str(self.size)) file_name, defaulting = self.get_filename(profile)
file_root, file_name, defaulting = self.get_file(profile)
def render(self, context): try: # If size is not an int, then it's a Variable, so try to resolve it. if not isinstance(self.size, int): self.size = int(self.size.resolve(context)) self.user = self.get_user(context) except Exception, e: print e return '' # just die... if self.size > _settings.DEFAULT_AVATAR_WIDTH: retur...
fb471fc66a6fd102cc4193eb8a9f22fae8639041 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12976/fb471fc66a6fd102cc4193eb8a9f22fae8639041/avatars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 4672, 775, 30, 468, 971, 963, 353, 486, 392, 509, 16, 1508, 518, 1807, 279, 7110, 16, 1427, 775, 358, 2245, 518, 18, 309, 486, 1549, 12, 2890, 18, 1467, 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, 1743, 12, 2890, 16, 819, 4672, 775, 30, 468, 971, 963, 353, 486, 392, 509, 16, 1508, 518, 1807, 279, 7110, 16, 1427, 775, 358, 2245, 518, 18, 309, 486, 1549, 12, 2890, 18, 1467, 16, ...
mesh.elements, mesh.elemFamily = self._getElems(fileRoot)
mesh.elements, mesh.elemFamilies = self._getElems(fileRoot)
def generate(self, fileRoot): """Get a finite element mesh."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 585, 2375, 4672, 3536, 967, 279, 25922, 930, 6986, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 585, 2375, 4672, 3536, 967, 279, 25922, 930, 6986, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
raise Error, "Incorrect resource-datasize, diff="+`self.rlen`
raise Error, "Incorrect resource-datasize, diff="+`self.rlen`
def close(self):
f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
oldctx = dict(self.localcontext)
def _child_get(node, self=None, tagname=None): for n in node: if self and self.localcontext and n.get('rml_loop'): oldctx = dict(self.localcontext) for ctx in eval(n.get('rml_loop'),{}, self.localcontext): self.localcontext.update(ctx) if (tagname is None) or (n.tag==tagname): if n.get('rml_except', False): try: eval(...
9f74749726b709621092bee198e71b720bcf15d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9f74749726b709621092bee198e71b720bcf15d2/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3624, 67, 588, 12, 2159, 16, 365, 33, 7036, 16, 25586, 33, 7036, 4672, 364, 290, 316, 756, 30, 309, 365, 471, 365, 18, 3729, 2472, 471, 290, 18, 588, 2668, 86, 781, 67, 6498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3624, 67, 588, 12, 2159, 16, 365, 33, 7036, 16, 25586, 33, 7036, 4672, 364, 290, 316, 756, 30, 309, 365, 471, 365, 18, 3729, 2472, 471, 290, 18, 588, 2668, 86, 781, 67, 6498, ...
product_context.update(uom=line.product_uom.id)
product_context.update(uom=line.product_uom.id,date=inv.date)
def action_confirm(self, cr, uid, ids, context=None): """ Confirm the inventory and writes its finished date @return: True """ if context is None: context = {} # to perform the correct inventory corrections we need analyze stock location by # location, never recursively, so we use a special context product_context = di...
16f6a1eebc8fbc9a60923408704bdf6fe22f8217 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/16f6a1eebc8fbc9a60923408704bdf6fe22f8217/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3536, 17580, 326, 13086, 471, 7262, 2097, 6708, 1509, 632, 2463, 30, 1053, 3536, 309, 819, 353, 599, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3536, 17580, 326, 13086, 471, 7262, 2097, 6708, 1509, 632, 2463, 30, 1053, 3536, 309, 819, 353, 599, 3...
def _arg_arg_op_with_imm(self, gv_x, gv_y, opcode, opcodei,
def _arg_uimm_op(self, gv_x, gv_imm, opcode): assert gv_imm.fits_in_uimm() gv_result = Var() self.insns.append( insn.Insn_GPR__GPR_IMM(opcode, gv_result, [gv_x, gv_imm])) return gv_result def _arg_arg_op_with_simm(self, gv_x, gv_y, opcode, opcodei,
def _arg_arg_op_with_imm(self, gv_x, gv_y, opcode, opcodei, commutative=False): if gv_y.fits_in_immediate(): return self._arg_imm_op(gv_x, gv_y, opcodei) elif gv_x.fits_in_immediate() and commutative: return self._arg_imm_op(gv_y, gv_x, opcodei) else: return self._arg_arg_op(gv_x, gv_y, opcode)
1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3175, 67, 89, 381, 81, 67, 556, 12, 2890, 16, 11404, 67, 92, 16, 11404, 67, 381, 81, 16, 11396, 4672, 1815, 11404, 67, 381, 81, 18, 18352, 67, 267, 67, 89, 381, 81, 1435, 1140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3175, 67, 89, 381, 81, 67, 556, 12, 2890, 16, 11404, 67, 92, 16, 11404, 67, 381, 81, 16, 11396, 4672, 1815, 11404, 67, 381, 81, 18, 18352, 67, 267, 67, 89, 381, 81, 1435, 1140...
result = result + self.classlink(c, modname, classes)
result = result + self.classlink(c, modname)
def formattree(self, tree, modname, classes={}, parent=None): """Produce HTML for a class tree as given by inspect.getclasstree().""" result = '' for entry in tree: if type(entry) is type(()): c, bases = entry result = result + '<dt><font face="helvetica, arial"><small>' result = result + self.classlink(c, modname, cla...
b7a48300cd653964c82ae34eae9fab9bebef3578 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b7a48300cd653964c82ae34eae9fab9bebef3578/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 3413, 12, 2890, 16, 2151, 16, 16037, 16, 3318, 28793, 982, 33, 7036, 4672, 3536, 25884, 3982, 364, 279, 667, 2151, 487, 864, 635, 5334, 18, 588, 830, 345, 334, 992, 1435, 12123, 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, 740, 3413, 12, 2890, 16, 2151, 16, 16037, 16, 3318, 28793, 982, 33, 7036, 4672, 3536, 25884, 3982, 364, 279, 667, 2151, 487, 864, 635, 5334, 18, 588, 830, 345, 334, 992, 1435, 12123, 5...
troveFlavors,
troveFlavors,
def nextVersions(repos, db, sourceBinaryList, alwaysBumpCount=False): # search for all the packages that are being created by this cook - # we take the max of all of these versions as our latest. query = {} if repos: for sourceVersion, troveNames, troveFlavors in sourceBinaryList: if sourceVersion.isOnLocalHost(): cont...
2cc6dee88328f8de3a806a1ab97e2315001b8307 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/2cc6dee88328f8de3a806a1ab97e2315001b8307/nextversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 5940, 12, 15564, 16, 1319, 16, 1084, 5905, 682, 16, 3712, 38, 2801, 1380, 33, 8381, 4672, 468, 1623, 364, 777, 326, 5907, 716, 854, 3832, 2522, 635, 333, 15860, 300, 468, 732, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 5940, 12, 15564, 16, 1319, 16, 1084, 5905, 682, 16, 3712, 38, 2801, 1380, 33, 8381, 4672, 468, 1623, 364, 777, 326, 5907, 716, 854, 3832, 2522, 635, 333, 15860, 300, 468, 732, 48...
open_tag_re = re.compile(r'<(\w+)\s.*?[^/]?>')
open_tag_re = re.compile(r'<(\w+)(\s.*)?[^/]?>')
def _html_splitlines(lines): """Tracks open and close tags in lines of HTML text and yields lines that have no tags spanning more than one line.""" open_tag_re = re.compile(r'<(\w+)\s.*?[^/]?>') close_tag_re = re.compile(r'</(\w+)>') open_tags = [] for line in lines: # Reopen tags still open from the previous line for ...
56ce9867ecf56d0e520d7c913f7eafa28bffa44e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/56ce9867ecf56d0e520d7c913f7eafa28bffa44e/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2620, 67, 4939, 3548, 12, 3548, 4672, 3536, 22138, 1696, 471, 1746, 2342, 316, 2362, 434, 3982, 977, 471, 16932, 2362, 716, 1240, 1158, 2342, 1694, 10903, 1898, 2353, 1245, 980, 12123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2620, 67, 4939, 3548, 12, 3548, 4672, 3536, 22138, 1696, 471, 1746, 2342, 316, 2362, 434, 3982, 977, 471, 16932, 2362, 716, 1240, 1158, 2342, 1694, 10903, 1898, 2353, 1245, 980, 12123...
n = 0 for zz in range(chg.shape[2]): for yy in range(chg.shape[1]): for xx in range(chg.shape[0]): if format.lower() == 'chg': fobj.write(' % n += 1 else: fobj.write(' %17.10E' % (chg[xx, yy, zz] * volume)) n += 2 if n % 10 == 0: fobj.write('\n')
chgtmp=chg.T.ravel() chgtmp=chgtmp*volume chgtmp=tuple(chgtmp) if format.lower() == 'chg': for ii in range((len(chgtmp)-1)/10): fobj.write(' % % ) if len(chgtmp)%10==0: fobj.write(' % % else: for ii in range(len(chgtmp)%10): fobj.write((' % else: for ii in range((len(chgtmp)-1)/5): fobj.write(' %17.10E %17.10E...
def _write_chg(self, fobj, chg, volume, format='chg'): """Write charge density
efccf425cd5b219de0c47a831bea0635af694e37 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/efccf425cd5b219de0c47a831bea0635af694e37/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 343, 75, 12, 2890, 16, 24705, 16, 462, 75, 16, 3940, 16, 740, 2218, 343, 75, 11, 4672, 3536, 3067, 13765, 12142, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 343, 75, 12, 2890, 16, 24705, 16, 462, 75, 16, 3940, 16, 740, 2218, 343, 75, 11, 4672, 3536, 3067, 13765, 12142, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
assert (false)
assert (False)
def ConvertDrawableObjectToDataObject (self, x, y): """ You must implement this routine to create data object for drag and drop """ assert (false)
c0cecfcb7704c0cc4c05de4b417e49f03bc3a0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c0cecfcb7704c0cc4c05de4b417e49f03bc3a0f8/SimpleCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4037, 16149, 921, 774, 21881, 261, 2890, 16, 619, 16, 677, 4672, 3536, 4554, 1297, 2348, 333, 12245, 358, 752, 501, 733, 364, 8823, 471, 3640, 3536, 1815, 261, 5743, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4037, 16149, 921, 774, 21881, 261, 2890, 16, 619, 16, 677, 4672, 3536, 4554, 1297, 2348, 333, 12245, 358, 752, 501, 733, 364, 8823, 471, 3640, 3536, 1815, 261, 5743, 13, 2, -100, -100, ...
raise ValueError("__package__ not set to a string") base = package.rsplit('.', level)[0]
raise ValueError("'package' not set to a string") try: dot_rindex = package.rindex('.', level)[0] base = package[:dot_rindex] except ValueError: base = package
def _resolve_name(name, package, level): """Return the absolute name of the module to be imported.""" level -= 1 try: if package.count('.') < level: raise ValueError("attempted relative import beyond top-level " "package") except AttributeError: raise ValueError("__package__ not set to a string") base = package.rsplit(...
2af50c847ff337e97ca0e0085fe50bc750d063c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/2af50c847ff337e97ca0e0085fe50bc750d063c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 529, 12, 529, 16, 2181, 16, 1801, 4672, 3536, 990, 326, 4967, 508, 434, 326, 1605, 358, 506, 9101, 12123, 1801, 3947, 404, 775, 30, 309, 2181, 18, 1883, 2668, 1093, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 529, 12, 529, 16, 2181, 16, 1801, 4672, 3536, 990, 326, 4967, 508, 434, 326, 1605, 358, 506, 9101, 12123, 1801, 3947, 404, 775, 30, 309, 2181, 18, 1883, 2668, 1093, 13,...
self.state_vec[(ver,val)] = self.cursor.fetchone()[0]
self.state_vec[ifo][(ver,val)] = self.cursor.fetchone()[0]
def publish_state(self, ifo, start_time, start_time_ns, end_time, end_time_ns, ver, val ): """ Publish a state segment for a state vector in the database """
f244b54b9d47667fad81e311fc9edc9f74c51291 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/f244b54b9d47667fad81e311fc9edc9f74c51291/statedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 67, 2019, 12, 2890, 16, 21479, 16, 787, 67, 957, 16, 787, 67, 957, 67, 2387, 16, 679, 67, 957, 16, 679, 67, 957, 67, 2387, 16, 1924, 16, 1244, 262, 30, 3536, 9761, 279, 919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3808, 67, 2019, 12, 2890, 16, 21479, 16, 787, 67, 957, 16, 787, 67, 957, 67, 2387, 16, 679, 67, 957, 16, 679, 67, 957, 67, 2387, 16, 1924, 16, 1244, 262, 30, 3536, 9761, 279, 919, ...
P = V3fVectorData() P.append( V3f( -1, 0, -1 ) ) P.append( V3f( -1, 0, 1 ) ) P.append( V3f( 1, 0, 1 ) ) P.append( V3f( -0.9, 0, -0.9 ) )
P = V3dVectorData() P.append( V3d( -1, 0, -1 ) ) P.append( V3d( -1, 0, 1 ) ) P.append( V3d( 1, 0, 1 ) ) P.append( V3d( -0.9, 0, -0.9 ) )
def testConcave( self ) : """ Test TriangulateOp with a concave polygon""" verticesPerFace = IntVectorData() verticesPerFace.append( 4 ) vertexIds = IntVectorData() vertexIds.append( 0 ) vertexIds.append( 1 ) vertexIds.append( 2 ) vertexIds.append( 3 ) P = V3fVectorData() P.append( V3f( -1, 0, -1 ) ) P.append( V3f( ...
c85c506c1f8c222aa0f06b7bd7067fb9a7dd4070 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/c85c506c1f8c222aa0f06b7bd7067fb9a7dd4070/TriangulateOp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 442, 71, 836, 12, 365, 262, 294, 3536, 7766, 10000, 539, 6243, 3817, 598, 279, 20570, 836, 7154, 8395, 225, 6928, 2173, 11824, 273, 3094, 5018, 751, 1435, 6928, 2173, 11824, 18, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 442, 71, 836, 12, 365, 262, 294, 3536, 7766, 10000, 539, 6243, 3817, 598, 279, 20570, 836, 7154, 8395, 225, 6928, 2173, 11824, 273, 3094, 5018, 751, 1435, 6928, 2173, 11824, 18, 69...
self.penaltyRules.append(Rule('false declaration of mah jongg by two players', r'.*\bm||Aabsolute payers=2 payees=2', points = -150)) self.penaltyRules.append(Rule('false declaration of mah jongg by three players', r'.*\bm||Aabsolute payers=3', points = -100))
self.penaltyRules.append(Rule('false declaration of mah jongg by two players', r'.*\bm||Aabsolute payers=2 payees=2', points = -300)) self.penaltyRules.append(Rule('false declaration of mah jongg by three players', r'.*\bm||Aabsolute payers=3', points = -300))
def addPenaltyRules(self): self.penaltyRules.append(Rule('false naming of discard, claimed for chi', r'.*', points = -50)) self.penaltyRules.append(Rule('false naming of discard, claimed for pung/kong', r'.*', points = -100)) self.penaltyRules.append(Rule('false naming of discard, claimed for mah jongg', r'.*\bm||Aabso...
303d87e51d8bec8833d26ac23efe77a21a95b8a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/303d87e51d8bec8833d26ac23efe77a21a95b8a3/rulesets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 24251, 15006, 4478, 12, 2890, 4672, 365, 18, 1907, 15006, 4478, 18, 6923, 12, 2175, 2668, 5743, 14634, 434, 10388, 16, 7516, 329, 364, 17198, 2187, 436, 11, 4509, 2187, 3143, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 24251, 15006, 4478, 12, 2890, 4672, 365, 18, 1907, 15006, 4478, 18, 6923, 12, 2175, 2668, 5743, 14634, 434, 10388, 16, 7516, 329, 364, 17198, 2187, 436, 11, 4509, 2187, 3143, 273, 3...
<< DataProperty("MJD", mjd)
<< DataProperty("MJD", mjd) \ << LogRec.endr
def process(self): """ Execute the needed processing code for this Stage
f015d097d46a39a35abed2040495371af8cb0bb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6518/f015d097d46a39a35abed2040495371af8cb0bb9/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 3536, 7903, 326, 3577, 4929, 981, 364, 333, 16531, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 3536, 7903, 326, 3577, 4929, 981, 364, 333, 16531, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
base = url + "/" logging.info("Guessed base = %s", base) return base if required: ErrorExit("Can't find URL in output from svn info") return None
content = RunShell("svn cat", [filename]) keywords = RunShell("svn -rBASE propget svn:keywords", [filename], silent_ok=True) if keywords: content = self._CollapseKeywords(content, keywords) else: StatusUpdate("svn status returned unexpected output: %s" % status) sys.exit(False) return content
def GuessBase(required): """Returns the SVN base URL. Args: required: If true, exits if the url can't be guessed, otherwise None is returned. """ info = RunShell("svn info") for line in info.splitlines(): words = line.split() if len(words) == 2 and words[0] == "URL:": url = words[1] scheme, netloc, path, params, query...
372b635f16b9051bf467c481e9fdbfc5f451cc3a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/372b635f16b9051bf467c481e9fdbfc5f451cc3a/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30282, 2171, 12, 4718, 4672, 3536, 1356, 326, 29537, 50, 1026, 1976, 18, 225, 6634, 30, 1931, 30, 971, 638, 16, 19526, 309, 326, 880, 848, 1404, 506, 3058, 281, 730, 16, 3541, 599, 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, 30282, 2171, 12, 4718, 4672, 3536, 1356, 326, 29537, 50, 1026, 1976, 18, 225, 6634, 30, 1931, 30, 971, 638, 16, 19526, 309, 326, 880, 848, 1404, 506, 3058, 281, 730, 16, 3541, 599, 353...
s = _('1 week')
_weeks = int(self.day / 7) s = self.ngettext("%(number)s week", "%(number)s weeks", _weeks) % {'number': _weeks}
def pretty(self): ''' print up the date date using one of these nice formats.. ''' if self.year: if self.year == 1: s = _('1 year') else: s = _('%(number)s years')%{'number': self.year} elif self.month or self.day > 13: days = (self.month * 30) + self.day if days > 28: if int(days/30) > 1: s = _('%(number)s months')%{'...
57c5533dd07b22f90fb954d2494eab65061eef34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/57c5533dd07b22f90fb954d2494eab65061eef34/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 12, 2890, 4672, 9163, 1172, 731, 326, 1509, 1509, 1450, 1245, 434, 4259, 13752, 6449, 838, 9163, 309, 365, 18, 6874, 30, 309, 365, 18, 6874, 422, 404, 30, 272, 273, 389, 2668, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 12, 2890, 4672, 9163, 1172, 731, 326, 1509, 1509, 1450, 1245, 434, 4259, 13752, 6449, 838, 9163, 309, 365, 18, 6874, 30, 309, 365, 18, 6874, 422, 404, 30, 272, 273, 389, 2668, 21...
print (1)
def keyDown_ (self, event): if (not self.reqHandler): print (1) return if (self.sx != None and self.sy != None): mods = event.modifierFlags () if (mods == 256): # remember that the image is flipped vertically imageID = self.mapping[self.frameNo] height = self.frameBuffers[imageID].height key = event.characters ()[0] ...
52c2a4ca79f0690dbaca69ecc01d542f6f0eb6ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2360/52c2a4ca79f0690dbaca69ecc01d542f6f0eb6ea/PyOpenGLView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 4164, 67, 261, 2890, 16, 871, 4672, 309, 261, 902, 365, 18, 3658, 1503, 4672, 327, 225, 309, 261, 2890, 18, 30319, 480, 599, 471, 365, 18, 9009, 480, 599, 4672, 15546, 273, 871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 4164, 67, 261, 2890, 16, 871, 4672, 309, 261, 902, 365, 18, 3658, 1503, 4672, 327, 225, 309, 261, 2890, 18, 30319, 480, 599, 471, 365, 18, 9009, 480, 599, 4672, 15546, 273, 871, ...
return Expression.__call__(self, pars)
return Expression.__call__(self, *pars)
def __call__(self, pars): for par in pars: if isinstance(par, Expression): return Expression.__call__(self, pars) return self.Value(*pars)
0aea67b6248de24bf5c20988f84fdf8ba68e066d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12571/0aea67b6248de24bf5c20988f84fdf8ba68e066d/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 13249, 4672, 364, 779, 316, 13249, 30, 309, 1549, 12, 1065, 16, 5371, 4672, 327, 5371, 16186, 1991, 972, 12, 2890, 16, 380, 8954, 13, 327, 365, 18, 620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 13249, 4672, 364, 779, 316, 13249, 30, 309, 1549, 12, 1065, 16, 5371, 4672, 327, 5371, 16186, 1991, 972, 12, 2890, 16, 380, 8954, 13, 327, 365, 18, 620, ...
self.thread=MyThread(self) self.lock=thread.allocate_lock() self.terminateThread=False
self.searching=False
def __init__(self, parent=None, signalManager=None, name="SVM"): OWWidget.__init__(self, parent, signalManager, name) self.inputs=[("Example Table", ExampleTable, self.setData)] self.outputs=[("Learner", orange.Learner),("Classifier", orange.Classifier),("Support Vectors", ExampleTable)]
a017a62eeb64cb8f18353a5ad8eaccb9881945cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/a017a62eeb64cb8f18353a5ad8eaccb9881945cf/OWSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 55, 7397, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 55, 7397, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, 1...
if q.lower().strip() != 'y':
if q.lower().strip() != _('y'):
def do_remove_custom_column(db, label, force): if not force: q = raw_input(_('You will lose all data in the column: %r.' ' Are you sure (y/n)? ')%label) if q.lower().strip() != 'y': return db.delete_custom_column(label=label) prints('Column %r removed.'%label)
6f07ecab4a5b3c2cdb3c04a3cd39d6f82119ea10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/6f07ecab4a5b3c2cdb3c04a3cd39d6f82119ea10/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4479, 67, 3662, 67, 2827, 12, 1966, 16, 1433, 16, 2944, 4672, 309, 486, 2944, 30, 1043, 273, 1831, 67, 2630, 24899, 2668, 6225, 903, 29612, 777, 501, 316, 326, 1057, 30, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4479, 67, 3662, 67, 2827, 12, 1966, 16, 1433, 16, 2944, 4672, 309, 486, 2944, 30, 1043, 273, 1831, 67, 2630, 24899, 2668, 6225, 903, 29612, 777, 501, 316, 326, 1057, 30, 738, ...
maxWidths[0] = maxWidths[0] - (bulletRight - style.firstLineIndent)
maxWidths[0] = maxWidths[0] - (bulletRight - indent)
def _handleBulletWidth(bulletText,style,maxWidths): '''work out bullet width and adjust maxWidths[0] if neccessary ''' if bulletText <> None: if type(bulletText) is StringType: bulletWidth = stringWidth( bulletText, style.bulletFontName, style.bulletFontSize) else: #it's a list of fragments bulletWidth = 0 for f in bul...
b2cf1e4f93a7f349035e282e7cc45fb5c48720b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b2cf1e4f93a7f349035e282e7cc45fb5c48720b0/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 38, 19994, 2384, 12, 70, 19994, 1528, 16, 4060, 16, 1896, 22407, 4672, 9163, 1252, 596, 31650, 1835, 471, 5765, 17681, 87, 63, 20, 65, 309, 290, 557, 614, 814, 9163, 309, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 38, 19994, 2384, 12, 70, 19994, 1528, 16, 4060, 16, 1896, 22407, 4672, 9163, 1252, 596, 31650, 1835, 471, 5765, 17681, 87, 63, 20, 65, 309, 290, 557, 614, 814, 9163, 309, 31...
if _arguments.has_key('errn'):
if _arguments.get('errn', 0):
def run(self, _no_object=None, _attributes={}, **_arguments): """run: Run the Terminal application Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'core' _subcode = 'oapp'
d883fe0f8edb19c1db13af7f62ca177c49791de6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d883fe0f8edb19c1db13af7f62ca177c49791de6/Terminal_Suite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 389, 2135, 67, 1612, 33, 7036, 16, 389, 4350, 28793, 2826, 67, 7099, 4672, 3536, 2681, 30, 1939, 326, 18778, 2521, 18317, 1237, 389, 4350, 30, 1716, 1802, 1133, 1566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 389, 2135, 67, 1612, 33, 7036, 16, 389, 4350, 28793, 2826, 67, 7099, 4672, 3536, 2681, 30, 1939, 326, 18778, 2521, 18317, 1237, 389, 4350, 30, 1716, 1802, 1133, 1566,...
'psf': psf
'psf': psf, 'apCorr': apCorr
def sfmPipe(calexp, psf): clip = { 'scienceExposure': calexp, 'psf': psf } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) clip = runStage(me...
499935c71000a91e541c2d2da2db2ce4f70d9f11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6538/499935c71000a91e541c2d2da2db2ce4f70d9f11/SFM_ImSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9033, 81, 11546, 12, 771, 2749, 16, 28687, 4672, 6807, 273, 288, 296, 1017, 6254, 424, 11291, 4278, 1443, 2749, 16, 296, 1121, 74, 4278, 28687, 16, 296, 438, 6217, 86, 4278, 513, 6217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9033, 81, 11546, 12, 771, 2749, 16, 28687, 4672, 6807, 273, 288, 296, 1017, 6254, 424, 11291, 4278, 1443, 2749, 16, 296, 1121, 74, 4278, 28687, 16, 296, 438, 6217, 86, 4278, 513, 6217, ...
opts, args = getopt.getopt(argv[1:], "hm:p:", ["help","month=","probe=","output=","with-panda"])
opts, args = getopt.getopt(argv[1:], "hm:p:", ["help","month=","probe=","output=","with-panda","groupby="])
def UseArgs(argv): global gProbename,gOutput,gWithPanda if argv is None: argv = sys.argv try: try: opts, args = getopt.getopt(argv[1:], "hm:p:", ["help","month=","probe=","output=","with-panda"]) except getopt.error, msg: raise Usage(msg) # more code, unchanged except Usage, err: print >>sys.stderr, err.msg print >>sy...
55368fa17dc9f81d3651509634f0008b9277083b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/55368fa17dc9f81d3651509634f0008b9277083b/PSACCTReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2672, 2615, 12, 19485, 4672, 2552, 314, 9152, 1069, 16, 75, 1447, 16, 75, 1190, 52, 464, 69, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 775, 30, 1500, 16, 833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2672, 2615, 12, 19485, 4672, 2552, 314, 9152, 1069, 16, 75, 1447, 16, 75, 1190, 52, 464, 69, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 775, 30, 1500, 16, 833...
namesec = name lines = split(strip(getdoc(object)), '\n') if len(lines) == 1: if lines[0]: namesec = namesec + ' - ' + lines[0] lines = [] elif len(lines) >= 2 and not rstrip(lines[1]): if lines[0]: namesec = namesec + ' - ' + lines[0] lines = lines[2:] result = self.section('NAME', namesec)
synop, desc = splitdoc(getdoc(object)) result = self.section('NAME', name + (synop and ' - ' + synop))
def docmodule(self, object, name=None): """Produce text documentation for a given module object.""" name = object.__name__ # ignore the passed-in name namesec = name lines = split(strip(getdoc(object)), '\n') if len(lines) == 1: if lines[0]: namesec = namesec + ' - ' + lines[0] lines = [] elif len(lines) >= 2 and not r...
4483cbd7eb6854684bc5af9c43d558ab8a2bcacf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4483cbd7eb6854684bc5af9c43d558ab8a2bcacf/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 468, 2305, 326, 2275, 17, 267, 508, 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, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 468, 2305, 326, 2275, 17, 267, 508, 1257...
keys = targets.keys()
keys = list(targets.keys())
def testSingleComplexTarget(self): targets = {1: [0, 1, 2]} with mock_contextmanager_generator() as targets[1][0]: self.assertEqual(targets.keys(), [1]) self.assertEqual(targets[1][0].__class__, MockResource) with mock_contextmanager_generator() as targets.values()[0][1]: self.assertEqual(targets.keys(), [1]) self.asse...
ddc0591fc1e00011e1f13156dfecc93370652395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/ddc0591fc1e00011e1f13156dfecc93370652395/test_with.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5281, 12795, 2326, 12, 2890, 4672, 5774, 273, 288, 21, 30, 306, 20, 16, 404, 16, 576, 18322, 598, 5416, 67, 2472, 4181, 67, 8812, 1435, 487, 5774, 63, 21, 6362, 20, 14542, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5281, 12795, 2326, 12, 2890, 4672, 5774, 273, 288, 21, 30, 306, 20, 16, 404, 16, 576, 18322, 598, 5416, 67, 2472, 4181, 67, 8812, 1435, 487, 5774, 63, 21, 6362, 20, 14542, 365, ...
def table(self, uid="", rows_per_page=5, filters={}):
def table(self, rows_per_page=5, filters=None):
def table(self, uid="", rows_per_page=5, filters={}): if isinstance(rows_per_page, basestring): rows_per_page = int(rows_per_page)
c1eb61cc928200975be31277441c211605ab5dcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/c1eb61cc928200975be31277441c211605ab5dcc/memberships.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1014, 12, 2890, 16, 2595, 67, 457, 67, 2433, 33, 25, 16, 3415, 33, 7036, 4672, 309, 1549, 12, 3870, 67, 457, 67, 2433, 16, 10699, 4672, 2595, 67, 457, 67, 2433, 273, 509, 12, 3870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1014, 12, 2890, 16, 2595, 67, 457, 67, 2433, 33, 25, 16, 3415, 33, 7036, 4672, 309, 1549, 12, 3870, 67, 457, 67, 2433, 16, 10699, 4672, 2595, 67, 457, 67, 2433, 273, 509, 12, 3870, ...
resonly = 0
resonly = False
def _test(): if len(sys.argv) < 3 or sys.argv[1] == '-r' and len(sys.argv) != 4: print 'Usage: applesingle.py [-r] applesinglefile decodedfile' sys.exit(1) if sys.argv[1] == '-r': resonly = 1 del sys.argv[1] else: resonly = 0 decode(sys.argv[1], sys.argv[2], resonly=resonly)
fa1c2ccc6635269e46076f8c940dd11ffad44229 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fa1c2ccc6635269e46076f8c940dd11ffad44229/applesingle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 13332, 309, 562, 12, 9499, 18, 19485, 13, 411, 890, 578, 2589, 18, 19485, 63, 21, 65, 422, 2400, 86, 11, 471, 562, 12, 9499, 18, 19485, 13, 480, 1059, 30, 1172, 296, 5357,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 13332, 309, 562, 12, 9499, 18, 19485, 13, 411, 890, 578, 2589, 18, 19485, 63, 21, 65, 422, 2400, 86, 11, 471, 562, 12, 9499, 18, 19485, 13, 480, 1059, 30, 1172, 296, 5357,...
try: 1/0
try: 1./0
def f(p): try: 1/0 except: pass
bb86314d227aa1b695b7c968a2cdf42146cacf29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/bb86314d227aa1b695b7c968a2cdf42146cacf29/test_profilehooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 84, 4672, 775, 30, 404, 18, 19, 20, 1335, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 84, 4672, 775, 30, 404, 18, 19, 20, 1335, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
length = models.PositiveSmallIntegerField()
def __unicode__(self): return "%s is playing %s" % (self.user, self.track)
18af5d7529fe5c780b1689e97ab637f952b6b5ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6447/18af5d7529fe5c780b1689e97ab637f952b6b5ec/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 2213, 87, 353, 23982, 738, 87, 6, 738, 261, 2890, 18, 1355, 16, 365, 18, 4101, 13, 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, 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, 9124, 972, 12, 2890, 4672, 327, 2213, 87, 353, 23982, 738, 87, 6, 738, 261, 2890, 18, 1355, 16, 365, 18, 4101, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.PLAYLIST_LISTING[metadata.id] = (metadata.parent_id, metadata.title)
self.PLAYLIST_LISTING[self.object_next_id] = (int(metadata.parent_id), metadata.title, [])
def create_playlist(self, metadata): self.object_next_id+=1 metadata.id = str(self.object_next_id) self.PLAYLIST_LISTING[metadata.id] = (metadata.parent_id, metadata.title) print "DUMMY: play list created: %s" % metadata.to_string() return metadata
ebcb8fec20eb11116ea210cec22e9709e9a913a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2271/ebcb8fec20eb11116ea210cec22e9709e9a913a6/dummyDevice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1601, 1098, 12, 2890, 16, 1982, 4672, 365, 18, 1612, 67, 4285, 67, 350, 15, 33, 21, 1982, 18, 350, 273, 609, 12, 2890, 18, 1612, 67, 4285, 67, 350, 13, 365, 18, 52, 7868, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1601, 1098, 12, 2890, 16, 1982, 4672, 365, 18, 1612, 67, 4285, 67, 350, 15, 33, 21, 1982, 18, 350, 273, 609, 12, 2890, 18, 1612, 67, 4285, 67, 350, 13, 365, 18, 52, 7868, ...
parser.add_option("--arch", action ="store", dest="arch",
parser.add_option("--target", "--arch", action ="store", dest="arch",
def command_parse(config_opts): """return options and args from parsing the command line""" parser = OptionParser(usage=__doc__, version=__VERSION__) # modes (basic commands) parser.add_option("--rebuild", action="store_const", const="rebuild", dest="mode", default='rebuild', help="rebuild the specified SRPM(s)") pars...
c9d02fffbedc34d38823ed635bc4ff21b0a21e63 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/c9d02fffbedc34d38823ed635bc4ff21b0a21e63/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 2670, 12, 1425, 67, 4952, 4672, 3536, 2463, 702, 471, 833, 628, 5811, 326, 1296, 980, 8395, 2082, 273, 18862, 12, 9167, 33, 972, 2434, 972, 16, 1177, 33, 972, 5757, 972, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 2670, 12, 1425, 67, 4952, 4672, 3536, 2463, 702, 471, 833, 628, 5811, 326, 1296, 980, 8395, 2082, 273, 18862, 12, 9167, 33, 972, 2434, 972, 16, 1177, 33, 972, 5757, 972, 13, ...
versions.append(('msvc '+version, targets))
versions.append(('msvc '+version+vcvar, targets))
def gather_msvc_versions(conf, versions): # checks SmartPhones SDKs try: ce_sdk = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\\Wow6432node\\Microsoft\\Windows CE Tools\\SDKs') except WindowsError: try: ce_sdk = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows CE Tools\\SDKs') except W...
05495af483649bfc6f90e3fef7d4b6f6cdb27e4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7302/05495af483649bfc6f90e3fef7d4b6f6cdb27e4d/msvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11090, 67, 959, 4227, 67, 10169, 12, 3923, 16, 5244, 4672, 468, 4271, 19656, 3731, 5322, 3881, 87, 775, 30, 5898, 67, 20907, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 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, 11090, 67, 959, 4227, 67, 10169, 12, 3923, 16, 5244, 4672, 468, 4271, 19656, 3731, 5322, 3881, 87, 775, 30, 5898, 67, 20907, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, ...
test2 = gtk.gdk.pixbuf_new_from_file(file) return True except: return False else: return True def image_flip(self, old_pix, vertical): width = old_pix.get_width() height = old_pix.get_height() d = None if vertical == True: d, w, h, rws = imgfuncs.vert(old_pix.get_pixels(), width, height, old_pix.get_rowstride(), old_p...
test2 = gtk.gdk.pixbuf_new_from_file(file) return True except: return False else: return True def image_flip(self, old_pix, vertical): width = old_pix.get_width() height = old_pix.get_height() d = None if vertical == True: d, w, h, rws = imgfuncs.vert(old_pix.get_pixels(), width, height, old_pix.get_rowstride(), old_p...
def valid_image(self, file): test = gtk.gdk.pixbuf_get_file_info(file) if test == None: return False elif test[0]['name'] == "wbmp": # some regular files are thought to be wbmp for whatever reason,
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 2730, 12, 2890, 16, 585, 4672, 1842, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 67, 588, 67, 768, 67, 1376, 12, 768, 13, 309, 1842, 422, 599, 30, 327, 1083, 1327, 1842, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 2730, 12, 2890, 16, 585, 4672, 1842, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 67, 588, 67, 768, 67, 1376, 12, 768, 13, 309, 1842, 422, 599, 30, 327, 1083, 1327, 1842, 63, ...
self.toolsStartOverAction.setIconSet(QIconSet(self.image66))
self.toolsStartOverAction.setIconSet(QIconSet(self.image62))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
tx = s[2][0]
try: tx = s[2][0] except IndexError: tx = ['']
def interpret(self,s,text=''): "interpret parsed code from compile" tok = s[0] # print 'INTERPRET ', s if text != '': self.Expression.text=text if tok == self.EOF: return None try: tok=tok.lower() except AttributeError: pass if tok in self.__interrupts: self.interrupt = self.__interrupts.index(tok) if tok == 'return':...
d0335fdee64e7efe121c90260271a4efee99ab7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11796/d0335fdee64e7efe121c90260271a4efee99ab7e/Eval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10634, 12, 2890, 16, 87, 16, 955, 2218, 11, 4672, 315, 24713, 2707, 981, 628, 4074, 6, 946, 273, 272, 63, 20, 65, 468, 1172, 296, 9125, 3670, 56, 2265, 272, 309, 977, 480, 875, 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, 10634, 12, 2890, 16, 87, 16, 955, 2218, 11, 4672, 315, 24713, 2707, 981, 628, 4074, 6, 946, 273, 272, 63, 20, 65, 468, 1172, 296, 9125, 3670, 56, 2265, 272, 309, 977, 480, 875, 30, ...
self.sliderCutLow = OWGUI.qwtHSlider(box, self, 'CutLow', label='Low:', labelWidth=33, minValue=-100, maxValue=0, step=0.1, precision=1, ticks=0, maxWidth=80, callback=self.drawDistanceMap) self.sliderCutHigh = OWGUI.qwtHSlider(box, self, 'CutHigh', label='High:', labelWidth=33, minValue=0, maxValue=100, step=0.1, prec...
self.sliderCutLow = OWGUI.qwtHSlider(box, self, 'CutLow', label='Low:', labelWidth=33, minValue=-100, maxValue=0, step=0.1, precision=1, ticks=0, maxWidth=80, callback=self.drawDistanceMap) self.sliderCutHigh = OWGUI.qwtHSlider(box, self, 'CutHigh', label='High:', labelWidth=33, minValue=0, maxValue=100, step=0.1, prec...
def __init__(self, parent=None, signalManager = None): self.callbackDeposit = [] # deposit for OWGUI callback function OWWidget.__init__(self, parent, signalManager, 'Distance Map')
9dec2648a439fbcedb4a6e19f89488c157b33964 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9dec2648a439fbcedb4a6e19f89488c157b33964/OWDistanceMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 365, 18, 3394, 758, 1724, 273, 5378, 468, 443, 1724, 364, 18233, 43, 5370, 1348, 445, 18233, 4609, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 365, 18, 3394, 758, 1724, 273, 5378, 468, 443, 1724, 364, 18233, 43, 5370, 1348, 445, 18233, 4609, 16186, ...
simple.GL_TEXTURE_MIN_FILTER: (1,),
simple.GL_TEXTURE_MIN_FILTER: (1,),
def GL_GET_PIXEL_MAP_SIZE( pname ): """Given a pname, lookup the size using a glGet query...""" constant = PIXEL_MAP_SIZE_CONSTANT_MAP[ pname ] return glGetIntegerv( constant )
779beb78d8242dd156d555119ccab07062fb4bf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1545/779beb78d8242dd156d555119ccab07062fb4bf3/glget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10252, 67, 3264, 67, 27381, 2247, 67, 8352, 67, 4574, 12, 19952, 262, 30, 3536, 6083, 279, 19952, 16, 3689, 326, 963, 1450, 279, 5118, 967, 843, 7070, 3660, 5381, 273, 7024, 60, 2247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10252, 67, 3264, 67, 27381, 2247, 67, 8352, 67, 4574, 12, 19952, 262, 30, 3536, 6083, 279, 19952, 16, 3689, 326, 963, 1450, 279, 5118, 967, 843, 7070, 3660, 5381, 273, 7024, 60, 2247, ...
customHeader = EmailMessage(self.mail_header(self, REQUEST, getValueFor=self.getValueFor, title=self.getValueFor('title'), mail=headers, body=msg.body, file_ids=file_ids, post_id=post_id).strip())
mail_header = self.mail_header(self, REQUEST, getValueFor=self.getValueFor, title=self.getValueFor('title'), mail=headers, body=msg.body, file_ids=file_ids, post_id=post_id) mail_header = mail_header.encode('utf-8', 'ignore').strip() customHeader = EmailMessage(mail_header)
def listMail(self, REQUEST): # Shifted from MailBoxer till reintegration project # Send a mail to all members of the list. mailString = getMailFromRequest(REQUEST) msg = EmailMessage(mailString, list_title=self.getProperty('title', ''), group_id=self.getId(), site_id=self.getProperty('siteId', ''), sender_id_cb=self....
9e9bc1cf28d7cce305bbf98dc16d65ba16f21ef5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/9e9bc1cf28d7cce305bbf98dc16d65ba16f21ef5/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6759, 12, 2890, 16, 12492, 4672, 468, 21444, 329, 628, 11542, 3514, 264, 21364, 283, 27667, 1984, 225, 468, 2479, 279, 4791, 358, 777, 4833, 434, 326, 666, 18, 4791, 780, 273, 31991...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6759, 12, 2890, 16, 12492, 4672, 468, 21444, 329, 628, 11542, 3514, 264, 21364, 283, 27667, 1984, 225, 468, 2479, 279, 4791, 358, 777, 4833, 434, 326, 666, 18, 4791, 780, 273, 31991...
else:
else:
def __checkJobs(self): """Retrieves waiting jobs and loops over the selection. """ self.log.debug('Preparing list of waiting jobs') workload = self.__getWaitingJobs() if not workload['OK']: return workload jobs = workload['Value']
e4e152162784e68280a5aedde1e5bad201fa5992 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e4e152162784e68280a5aedde1e5bad201fa5992/AgentDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 7276, 12, 2890, 4672, 3536, 6960, 7336, 6550, 471, 14075, 1879, 326, 4421, 18, 3536, 365, 18, 1330, 18, 4148, 2668, 1386, 12583, 666, 434, 7336, 6550, 6134, 1440, 945, 273, 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, 1001, 1893, 7276, 12, 2890, 4672, 3536, 6960, 7336, 6550, 471, 14075, 1879, 326, 4421, 18, 3536, 365, 18, 1330, 18, 4148, 2668, 1386, 12583, 666, 434, 7336, 6550, 6134, 1440, 945, 273, 3...
def test_compare_bytes_to_bytearray(self): self.assertEqual(b"abc" == bytes(b"abc"), True) self.assertEqual(b"ab" != bytes(b"abc"), True) self.assertEqual(b"ab" <= bytes(b"abc"), True) self.assertEqual(b"ab" < bytes(b"abc"), True) self.assertEqual(b"abc" >= bytes(b"ab"), True) self.assertEqual(b"abc" > bytes(b"ab"), Tr...
def test_compare_bytes_to_bytearray(self): self.assertEqual(b"abc" == bytes(b"abc"), True) self.assertEqual(b"ab" != bytes(b"abc"), True) self.assertEqual(b"ab" <= bytes(b"abc"), True) self.assertEqual(b"ab" < bytes(b"abc"), True) self.assertEqual(b"abc" >= bytes(b"ab"), True) self.assertEqual(b"abc" > bytes(b"ab"), Tr...
510711d598f1432afb021a01c2457b14334c6157 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/510711d598f1432afb021a01c2457b14334c6157/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9877, 67, 3890, 67, 869, 67, 7229, 1126, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 70, 6, 18947, 6, 422, 1731, 12, 70, 6, 18947, 6, 3631, 1053, 13, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9877, 67, 3890, 67, 869, 67, 7229, 1126, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 70, 6, 18947, 6, 422, 1731, 12, 70, 6, 18947, 6, 3631, 1053, 13, 365, 18, 11231, 5812, ...
- ``length`` - length of state space. (default: ``None``)
- ``length`` - length of state space (default: ``None``)
def lin_matrix(self, length=None): """ Return the ``Lin`` matrix. If no ``length`` is provided the standard state space size is used. The key schedule calls this method with an explicit length argument because only ``self.r`` S-Box applications are performed in the key schedule. INPUT: - ``length`` - length of stat...
8851127220b91c29eb0dc162b4b9ae01cfac9a9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8851127220b91c29eb0dc162b4b9ae01cfac9a9f/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4739, 67, 5667, 12, 2890, 16, 769, 33, 7036, 4672, 3536, 2000, 326, 12176, 48, 267, 10335, 3148, 18, 225, 971, 1158, 12176, 2469, 10335, 353, 2112, 326, 4529, 919, 3476, 963, 353, 1399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4739, 67, 5667, 12, 2890, 16, 769, 33, 7036, 4672, 3536, 2000, 326, 12176, 48, 267, 10335, 3148, 18, 225, 971, 1158, 12176, 2469, 10335, 353, 2112, 326, 4529, 919, 3476, 963, 353, 1399, ...
if mins == "1": mins_text = _('minute') else: mins_text = _('minutes')
mins_text = gettext.ngettext('minute', 'minutes', int(mins))
def update_statusbar(self): if self.conn and self.status and self.show_statusbar: hours = None mins = None total_time = convert_time(self.total_time) try: mins = total_time.split(":")[-2] hours = total_time.split(":")[-3] except: pass if mins: if mins.startswith('0') and len(mins) > 1: mins = mins[1:] if mins == "1": m...
f2a930d518c53af8d132699dccd579a48fa7f7f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/f2a930d518c53af8d132699dccd579a48fa7f7f9/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 3215, 12, 2890, 4672, 309, 365, 18, 4646, 471, 365, 18, 2327, 471, 365, 18, 4500, 67, 2327, 3215, 30, 7507, 273, 599, 26381, 273, 599, 2078, 67, 957, 273, 1765, 67, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 3215, 12, 2890, 4672, 309, 365, 18, 4646, 471, 365, 18, 2327, 471, 365, 18, 4500, 67, 2327, 3215, 30, 7507, 273, 599, 26381, 273, 599, 2078, 67, 957, 273, 1765, 67, 9...
def __init__(self, cache, tiles_queue):
def __init__(self, cache, tiles_queue, dry_run=False):
def __init__(self, cache, tiles_queue): multiprocessing.Process.__init__(self) self.cache = cache self.tiles_queue = tiles_queue
8a76fbe818b1f2029a43f9e5ddf0b7a242144c6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/8a76fbe818b1f2029a43f9e5ddf0b7a242144c6b/seed_ng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1247, 16, 12568, 67, 4000, 16, 10299, 67, 2681, 33, 8381, 4672, 21828, 18, 2227, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2493, 273, 1247, 365, 18, 28366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1247, 16, 12568, 67, 4000, 16, 10299, 67, 2681, 33, 8381, 4672, 21828, 18, 2227, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2493, 273, 1247, 365, 18, 28366...
if executive.run_command([self.script_path("build-dumprendertree")],
build_drt_command = [self.script_path("build-dumprendertree")] if self._options.target == "Debug": build_drt_command.append('--debug') if executive.run_command(build_drt_command,
def check_build(self, needs_http): if executive.run_command([self.script_path("build-dumprendertree")], return_exit_code=True): return False
62e49e14f2b216c68d63e0d29be2cdc37cf2b72b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/62e49e14f2b216c68d63e0d29be2cdc37cf2b72b/mac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3510, 12, 2890, 16, 4260, 67, 2505, 4672, 1361, 67, 3069, 88, 67, 3076, 273, 306, 2890, 18, 4263, 67, 803, 2932, 3510, 17, 8481, 5902, 3413, 7923, 65, 309, 365, 6315, 2116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3510, 12, 2890, 16, 4260, 67, 2505, 4672, 1361, 67, 3069, 88, 67, 3076, 273, 306, 2890, 18, 4263, 67, 803, 2932, 3510, 17, 8481, 5902, 3413, 7923, 65, 309, 365, 6315, 2116, ...
if _SOCK and _SOCK.hostname != host and _SOCK.port != port:
if _SOCK and (_SOCK.hostname != host or _SOCK.port != port):
def db_exec(host, port, method, *args): global _SOCK _SEMAPHORE.acquire() try: try: if _SOCK and _SOCK.hostname != host and _SOCK.port != port: _SOCK.disconnect() _SOCK = None if _SOCK is None: _SOCK= pysocket.PySocket() _SOCK.connect(host, port) _SOCK.send(('db', method) + args) res = _SOCK.receive() finally: _SEMAPHO...
aec78c6f634f28aa1c6c03a025be4703fd6d3436 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/aec78c6f634f28aa1c6c03a025be4703fd6d3436/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 4177, 12, 2564, 16, 1756, 16, 707, 16, 380, 1968, 4672, 2552, 389, 3584, 3507, 389, 1090, 8352, 7995, 862, 18, 1077, 1039, 1435, 775, 30, 775, 30, 309, 389, 3584, 3507, 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, 1319, 67, 4177, 12, 2564, 16, 1756, 16, 707, 16, 380, 1968, 4672, 2552, 389, 3584, 3507, 389, 1090, 8352, 7995, 862, 18, 1077, 1039, 1435, 775, 30, 775, 30, 309, 389, 3584, 3507, 471, ...
t.type
t.type_id
def init(self, cr): tools.sql.drop_view_if_exists(cr, 'report_project_task_user') cr.execute(""" CREATE view report_project_task_user as SELECT (select 1 ) AS nbr, t.id as id, to_char(date_start, 'YYYY') as year, to_char(date_start, 'MM') as month, to_char(date_start, 'YYYY-MM-DD') as day, date_trunc('day',t.date_start...
233223b2a5102d950d6803b118283109f97dbb94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/233223b2a5102d950d6803b118283109f97dbb94/project_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 4406, 67, 4146, 67, 1355, 6134, 4422, 18, 8837, 2932, 3660, 13278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 4406, 67, 4146, 67, 1355, 6134, 4422, 18, 8837, 2932, 3660, 13278, ...
if type(retcolsBlacklist) == str: cKey = res[-1] if not cacheCaseSensitive and type(cKey) == str:
if len(self.param) == 1: cKey = res[0] if not self.cacheCaseSensitive and type(cKey) == str:
def __cacheAllRefresh(self): """This method has to be called from synchronized block.""" if self.allDataCacheRefresh > time.time(): return
2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2493, 1595, 8323, 12, 2890, 4672, 3536, 2503, 707, 711, 358, 506, 2566, 628, 3852, 1203, 12123, 309, 365, 18, 454, 751, 1649, 8323, 405, 813, 18, 957, 13332, 327, 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, 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, 2493, 1595, 8323, 12, 2890, 4672, 3536, 2503, 707, 711, 358, 506, 2566, 628, 3852, 1203, 12123, 309, 365, 18, 454, 751, 1649, 8323, 405, 813, 18, 957, 13332, 327, 2, -100, -100, ...
print "addCreature", self, ':', creatureName
def addCreature(self, creatureName): print "addCreature", self, ':', creatureName if (self.getHeight() >= 7 and self.child1 is None): raise RuntimeError, "Tried adding to 7-high legion" ci = CreatureInfo(creatureName, True, False) self.creatures.append(ci)
d3360650260167e99d819d46c099993d6e0f1f9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3755/d3360650260167e99d819d46c099993d6e0f1f9e/predictsplits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1996, 1231, 12, 2890, 16, 1519, 1231, 461, 4672, 309, 261, 2890, 18, 588, 2686, 1435, 1545, 2371, 471, 365, 18, 3624, 21, 353, 599, 4672, 1002, 7265, 16, 315, 29847, 6534, 358, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1996, 1231, 12, 2890, 16, 1519, 1231, 461, 4672, 309, 261, 2890, 18, 588, 2686, 1435, 1545, 2371, 471, 365, 18, 3624, 21, 353, 599, 4672, 1002, 7265, 16, 315, 29847, 6534, 358, 23...
madeup.predict(newdata1, stderr=False)
madeup.predict(newdata1, stderror=False)
def test_2d_pred_nostderr(self): "2D prediction - no stderr" (x, y, results, newdata1, newdata2, madeup) = self.d madeup.model.span = 0.5 madeup.model.normalize = True madeup.predict(newdata1, stderr=False) assert_almost_equal(madeup.predicted.values, results[4], 5) # madeup_pred = madeup.predict(newdata1, stderr=False...
919c250ab7301620f56106270779ae6e4e5f4c6c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11143/919c250ab7301620f56106270779ae6e4e5f4c6c/pyloess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22, 72, 67, 6510, 67, 8265, 72, 370, 12, 2890, 4672, 315, 22, 40, 8239, 300, 1158, 4514, 6, 261, 92, 16, 677, 16, 1686, 16, 394, 892, 21, 16, 394, 892, 22, 16, 7165, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22, 72, 67, 6510, 67, 8265, 72, 370, 12, 2890, 4672, 315, 22, 40, 8239, 300, 1158, 4514, 6, 261, 92, 16, 677, 16, 1686, 16, 394, 892, 21, 16, 394, 892, 22, 16, 7165, 41...
headerB.update('CRPIX1', headerB['CRPIX1'] - 1024)
headerB.update('CRPIX1', headerB['CRPIX1'] - 1023)
def splitCcd(header, data, infile, ccd, rootdir='/lsst/images/repository/input/', isMask=False): basename = re.sub('.fits', '', os.path.basename(infile)) basename = re.sub('o', '', basename) basedir = os.path.join(rootdir, basename) expdir = os.path.join(basedir, '0') if not os.path.isdir(basedir): os.mkdir(basedir...
d88ef2e5a6a84bd11f63e685b9d22e0f5c53a76b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6548/d88ef2e5a6a84bd11f63e685b9d22e0f5c53a76b/stageCfhtForDc3a.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 39, 4315, 12, 3374, 16, 501, 16, 14568, 16, 276, 4315, 16, 1365, 1214, 2218, 19, 3251, 334, 19, 7369, 19, 9071, 19, 2630, 19, 2187, 353, 5796, 33, 8381, 4672, 4882, 273, 283, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 39, 4315, 12, 3374, 16, 501, 16, 14568, 16, 276, 4315, 16, 1365, 1214, 2218, 19, 3251, 334, 19, 7369, 19, 9071, 19, 2630, 19, 2187, 353, 5796, 33, 8381, 4672, 4882, 273, 283, 1...
n = integer_ring.ZZ(n)-1
n = integer_ring.ZZ(n)+1
def next_prime(n, proof=True): """ The next prime greater than the integer n. If n is prime, then this function does not return n, but the next prime after n. If the optional argument proof is False (the default), this function only returns a pseudo-prime, as defined by the PARI nextprime function. INPUT: n -- integ...
3b21be66ad22b9104e635e6f4fa84e7144db66c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3b21be66ad22b9104e635e6f4fa84e7144db66c3/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 16382, 12, 82, 16, 14601, 33, 5510, 4672, 3536, 1021, 1024, 17014, 6802, 2353, 326, 3571, 290, 18, 225, 971, 290, 353, 17014, 16, 1508, 333, 445, 1552, 486, 327, 290, 16, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 16382, 12, 82, 16, 14601, 33, 5510, 4672, 3536, 1021, 1024, 17014, 6802, 2353, 326, 3571, 290, 18, 225, 971, 290, 353, 17014, 16, 1508, 333, 445, 1552, 486, 327, 290, 16, 149...
if self.escChar: ret = re.sub(self.escCharReplacePattern,"\g<1>",ret) if self.escQuote: ret.replace(self.escQuote, self.quoteChar) return loc,ret
if isinstance(ret,basestring): if self.escChar: ret = re.sub(self.escCharReplacePattern,"\g<1>",ret) if self.escQuote: ret = ret.replace(self.escQuote, self.quoteChar) return loc, ret
def parseImpl( self, instring, loc, doActions=True ): result = instring[loc] == self.firstQuoteChar and self.re.match(instring,loc) or None if not result: exc = self.myException exc.loc = loc exc.pstr = instring raise exc loc = result.end() ret = ParseResults(result.group()) if self.unquoteResults: # strip off quote...
fc374eb717c1a588cb73ceb556379c52474f65a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/fc374eb717c1a588cb73ceb556379c52474f65a4/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 563, 273, 316, 1080, 63, 1829, 65, 422, 365, 18, 3645, 10257, 2156, 471, 365, 18, 266, 18, 1916, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 563, 273, 316, 1080, 63, 1829, 65, 422, 365, 18, 3645, 10257, 2156, 471, 365, 18, 266, 18, 1916, 12, ...
def executeRequest(self):
def executeRequest( self ):
def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('removal') if not res['OK']: gLogger.info("RemovalAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']:...
639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 365, 262, 30, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 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, 1836, 691, 12, 365, 262, 30, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18,...
img.thumbnail((self.tnX,self.tnY))
img.thumbnail((int(self.tnX),int(self.tnY)))
def handle(self, body): "Get news from text and attachment if present"
13900bbc21e9ff63b342d7b3d397939b0f32ae79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3144/13900bbc21e9ff63b342d7b3d397939b0f32ae79/NewsHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1417, 4672, 315, 967, 14783, 628, 977, 471, 6042, 309, 3430, 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, 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, 1640, 12, 2890, 16, 1417, 4672, 315, 967, 14783, 628, 977, 471, 6042, 309, 3430, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.__username = "ChuckNoris" self.__server_address = "http://10.200.132.22/bscw" self.__columns = ["user_id", "name", "longname", "email", "used_memory", "last_login", "locked"] self.__col_dialog_geometry = QtCore.QRect(100,100,100,100) self.__main_window_geometry = QtCore.QRect(100,100,800,800) self.__user_details_...
def __init__(self, p_parent = None): # initialisiere Objekt QtCore.QObject.__init__(self, p_parent)
824a511487ba06871f904b5354e4fbc422d5d389 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4919/824a511487ba06871f904b5354e4fbc422d5d389/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 293, 67, 2938, 273, 599, 4672, 468, 2172, 291, 77, 822, 18760, 3839, 88, 20193, 18, 53, 921, 16186, 2738, 972, 12, 2890, 16, 293, 67, 2938, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 293, 67, 2938, 273, 599, 4672, 468, 2172, 291, 77, 822, 18760, 3839, 88, 20193, 18, 53, 921, 16186, 2738, 972, 12, 2890, 16, 293, 67, 2938, 13, 2, -100...
def setLineinVolume(self, volume): self._setVolume(self.SOUND_MIXER_WRITE_LINE, volume) def setMicVolume(self, volume): self._setVolume(self.SOUND_MIXER_WRITE_MIC, volume)
def incIgainVolume( self ): self.igainVolume += 5 if self.igainVolume > 100: self.igainVolume = 100 os.popen( 'aumix -i+5' ) def setOgainVolume( self, volume ): """For Ogain on SB Live Cards""" if volume > 100: volume = 100 elif volume < 0: volume = 0 self.ogainVolume = volume os.popen( 'aumix -o' + str(volume) )
def setLineinVolume(self, volume): self._setVolume(self.SOUND_MIXER_WRITE_LINE, volume)
d45a1691780cfade4256053e94dd8d0ad73ddff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d45a1691780cfade4256053e94dd8d0ad73ddff2/mixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26482, 267, 4545, 12, 2890, 16, 3940, 4672, 365, 6315, 542, 4545, 12, 2890, 18, 3584, 5240, 67, 7492, 60, 654, 67, 11677, 67, 5997, 16, 3940, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26482, 267, 4545, 12, 2890, 16, 3940, 4672, 365, 6315, 542, 4545, 12, 2890, 18, 3584, 5240, 67, 7492, 60, 654, 67, 11677, 67, 5997, 16, 3940, 13, 225, 2, -100, -100, -100, -100, -100, ...
result = pdb.Pdb.trace_dispatch(self, *args) sys.stdout = save_stdout return result
try: return pdb.Pdb.trace_dispatch(self, *args) finally: sys.stdout = save_stdout
def trace_dispatch(self, *args): # Redirect stdout to the given stream. save_stdout = sys.stdout sys.stdout = self.__out # Call Pdb's trace dispatch method. result = pdb.Pdb.trace_dispatch(self, *args) # Restore stdout. sys.stdout = save_stdout return result
bfedf0427d37679213b16f09b0989f999df6b421 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bfedf0427d37679213b16f09b0989f999df6b421/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 10739, 12, 2890, 16, 380, 1968, 4672, 468, 9942, 3909, 358, 326, 864, 1407, 18, 1923, 67, 10283, 273, 2589, 18, 10283, 2589, 18, 10283, 273, 365, 16186, 659, 468, 3049, 453, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 10739, 12, 2890, 16, 380, 1968, 4672, 468, 9942, 3909, 358, 326, 864, 1407, 18, 1923, 67, 10283, 273, 2589, 18, 10283, 2589, 18, 10283, 273, 365, 16186, 659, 468, 3049, 453, ...
size = '0'
pass
def get_contentlength(self, cursor, user, uri, context=None, cache=None): attachment_obj = self.pool.get('ir.attachment')
993ff2d321de105954db9e2ba9648c6707becb87 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/993ff2d321de105954db9e2ba9648c6707becb87/webdav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1745, 2469, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 6042, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 11461, 6134, 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, 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, 1745, 2469, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 6042, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 11461, 6134, 2, ...
for i in xrange(self.p.l): ret = self.p.index[i]
for i, ret in enumerate(self.p.index):
def __iter__(self): yield nullid for i in xrange(self.p.l): ret = self.p.index[i] if not ret: self.p.loadindex(i) ret = self.p.index[i] if isinstance(ret, str): ret = _unpack(indexformatng, ret) yield ret[7]
ce1028352c273f7d249afe32d60f1ba9f1629b58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/ce1028352c273f7d249afe32d60f1ba9f1629b58/revlog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 2824, 446, 350, 364, 277, 16, 325, 316, 4241, 12, 2890, 18, 84, 18, 1615, 4672, 309, 486, 325, 30, 365, 18, 84, 18, 945, 1615, 12, 77, 13, 325, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 2824, 446, 350, 364, 277, 16, 325, 316, 4241, 12, 2890, 18, 84, 18, 1615, 4672, 309, 486, 325, 30, 365, 18, 84, 18, 945, 1615, 12, 77, 13, 325, 273...
skip = len(code); emit(0)
skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
3f8fdffe72485d69e9e31bdeb4796c1cca750eba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f8fdffe72485d69e9e31bdeb4796c1cca750eba/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
print "Grouping module %s" % mod
if self.debug_output >= moduleloader.DEBUG_ALL: print "Grouping module %s" % mod
def run(self): while self.parent.valid_running > 0 or self.parent.group_status < self.parent.total_loaded_mod: self.parent.group_pool_lock.acquire() if self.parent.group_status < self.parent.total_loaded_mod: mod = self.parent.valid_modules[self.parent.group_status] self.parent.group_status = self.parent.group_status ...
b7c19c0a52682adab242efd9d664209d1185033f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/b7c19c0a52682adab242efd9d664209d1185033f/logmoduleloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 365, 18, 2938, 18, 877, 67, 8704, 405, 374, 578, 365, 18, 2938, 18, 1655, 67, 2327, 411, 365, 18, 2938, 18, 4963, 67, 4230, 67, 1711, 30, 365, 18, 2938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 365, 18, 2938, 18, 877, 67, 8704, 405, 374, 578, 365, 18, 2938, 18, 1655, 67, 2327, 411, 365, 18, 2938, 18, 4963, 67, 4230, 67, 1711, 30, 365, 18, 2938, ...
Id: 9
Id: 10
def exercise_modifiers(verbose=0): if (verbose): out = sys.stdout mtz_object = mtz.object() mtz_object.set_title(title="012345678") assert mtz_object.title() == "012345678" mtz_object.set_title(title="012345678", append=True) assert mtz_object.title() == "012345678 012345678" mtz_object.set_title(title="0123456789"*10+...
c3cf0722281a181a283d00bb69ac8271125a2ef3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/c3cf0722281a181a283d00bb69ac8271125a2ef3/tst_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 15432, 12, 11369, 33, 20, 4672, 309, 261, 11369, 4672, 596, 273, 2589, 18, 10283, 5874, 94, 67, 1612, 273, 5874, 94, 18, 1612, 1435, 5874, 94, 67, 1612, 18, 542, 67, 2649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 15432, 12, 11369, 33, 20, 4672, 309, 261, 11369, 4672, 596, 273, 2589, 18, 10283, 5874, 94, 67, 1612, 273, 5874, 94, 18, 1612, 1435, 5874, 94, 67, 1612, 18, 542, 67, 2649, ...
entlist = []
opt_entlist = [] req_entlist = []
def save_settings(self, nettype, networkid, networkentry): """ Verifies and saves the settings for the network entry. """ entry = networkentry.advanced_dialog entlist = [] # First make sure all the Addresses entered are valid. if entry.chkbox_static_ip.get_active(): req_entlist = [entry.txt_ip, enty.txt_netmask] opt_e...
2f8250064c9239dabfc800ee80c7a46f64ff94fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/2f8250064c9239dabfc800ee80c7a46f64ff94fa/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 4272, 12, 2890, 16, 2901, 723, 16, 2483, 350, 16, 2483, 4099, 4672, 3536, 6160, 5032, 471, 14649, 326, 1947, 364, 326, 2483, 1241, 18, 3536, 1241, 273, 2483, 4099, 18, 27080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 4272, 12, 2890, 16, 2901, 723, 16, 2483, 350, 16, 2483, 4099, 4672, 3536, 6160, 5032, 471, 14649, 326, 1947, 364, 326, 2483, 1241, 18, 3536, 1241, 273, 2483, 4099, 18, 27080, ...
X = rings.PolynomialRing(Fp2).gen()
X = rings.PolynomialRing(Fp2, 'x').gen()
def supersingular_points(self): try: return (self._ss_points_dic, self._ss_points) except: pass Fp2 = self.__finite_field level = self.__level prime = Fp2.characteristic() X = rings.PolynomialRing(Fp2).gen() jinv = supersingular_j(Fp2)
ccbd9ae70ebd4617998efe053a50aa9acfdbc634 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/ccbd9ae70ebd4617998efe053a50aa9acfdbc634/ssmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 4139, 12, 2890, 4672, 775, 30, 327, 261, 2890, 6315, 1049, 67, 4139, 67, 15859, 16, 365, 6315, 1049, 67, 4139, 13, 1335, 30, 1342, 478, 84, 22, 273, 365, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 4139, 12, 2890, 4672, 775, 30, 327, 261, 2890, 6315, 1049, 67, 4139, 67, 15859, 16, 365, 6315, 1049, 67, 4139, 13, 1335, 30, 1342, 478, 84, 22, 273, 365, 16186, ...
- An iterator through a list of invertible residues modulo self, i.e. a list of elements in the ring of integers `R`represnting the elements of (R/self)^*. METHOD: Use pari's \emph{idealstar} to find the group structure and generators of the multiplicative group modulo the ideal. AUTHOR: John Cremona
- An iterator through a list of invertible residues modulo this ideal `I`, i.e. a list of elements in the ring of integers `R` representing the elements of `(R/I)^*`. METHOD: Use pari's ``idealstar`` to find the group structure and generators of the multiplicative group modulo the ideal.
def invertible_residues(self, reduce=True): """ Returns a iterator through a list of invertible residues modulo this integral ideal.
e462b4d226d7b8f741f48ed1e071494aa5463b8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e462b4d226d7b8f741f48ed1e071494aa5463b8a/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9848, 1523, 67, 15567, 3610, 12, 2890, 16, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, 23349, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 9848, 1523, 67, 15567, 3610, 12, 2890, 16, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, 23349, 18, 2, -100, -100, -100, -100, -...
verbose_write(str(self) + " start listening")
def setUp(self): verbose_write(self) self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) verbose_write(str(self) + " socket created") global PORT PORT = test_support.bind_port(self.serv, HOST, PORT) verbose_write(str(self) + " start listening") s...
94c52b456919e43021e0d219db4595f8bac9df47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/94c52b456919e43021e0d219db4595f8bac9df47/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 3988, 67, 2626, 12, 2890, 13, 365, 18, 23039, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 23039, 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, 24292, 12, 2890, 4672, 3988, 67, 2626, 12, 2890, 13, 365, 18, 23039, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 23039, 18, ...