rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
return [field.replace(pattern,"@")]
return [field.replace(pattern,"@")]
def __check_spam_obscuring(self,field):
d5f145980806e8bd95f913eea415c37ccb566eaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10886/d5f145980806e8bd95f913eea415c37ccb566eaf/analyzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 1752, 301, 67, 947, 1017, 4017, 12, 2890, 16, 1518, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 1752, 301, 67, 947, 1017, 4017, 12, 2890, 16, 1518, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return from_cycles(sum([len(c) for c in cycle_list]), cycle_list)
return from_cycles(max([max(c) for c in cycle_list]), cycle_list)
def Permutation(l): """ Convert l to a Permutation, where l is a list of integers, tuple of integers, tuple of tuples of integers, list of tuples of integers, or a string in cycle notation. Tuples are interpreted as cycles; lists of integers as one-line permutation notation. Returns a member of the Permutation class. ...
f7ff09cb80aaacac399b769941c2b75316c669d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/f7ff09cb80aaacac399b769941c2b75316c669d6/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13813, 9245, 12, 80, 4672, 3536, 4037, 328, 358, 279, 13813, 9245, 16, 1625, 328, 353, 279, 666, 434, 12321, 16, 3193, 434, 12321, 16, 3193, 434, 10384, 434, 12321, 16, 666, 434, 10384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13813, 9245, 12, 80, 4672, 3536, 4037, 328, 358, 279, 13813, 9245, 16, 1625, 328, 353, 279, 666, 434, 12321, 16, 3193, 434, 12321, 16, 3193, 434, 10384, 434, 12321, 16, 666, 434, 10384, ...
MS = self.matrix_space()
def list(self): """ Return list of all elements of this group. Always returns a new list, so it is safe to change the returned list. EXAMPLES:: sage: F = GF(3) sage: gens = [matrix(F,2, [1,0, -1,1]), matrix(F, 2, [1,1,0,1])] sage: G = MatrixGroup(gens) sage: G.order() 24 sage: v = G.list() sage: len(v) 24 sage: v[:2...
e5a7a6044ba949de0c4e94429ab485ceb421f3d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e5a7a6044ba949de0c4e94429ab485ceb421f3d8/matrix_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 4672, 3536, 2000, 666, 434, 777, 2186, 434, 333, 1041, 18, 225, 14178, 1135, 279, 394, 666, 16, 1427, 518, 353, 4183, 358, 2549, 326, 2106, 666, 18, 225, 5675, 8900, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 3536, 2000, 666, 434, 777, 2186, 434, 333, 1041, 18, 225, 14178, 1135, 279, 394, 666, 16, 1427, 518, 353, 4183, 358, 2549, 326, 2106, 666, 18, 225, 5675, 8900, 113...
"""Revokes the permission from a principal"""
"""Revoke permission from principal."""
def remove(self, (principal, permission)): """Revokes the permission from a principal""" if not permission in (ViewPermission, ModifyPermission, AddPermission): raise ValueError("Bad permission: %r" % (permission,)) if principal == Everybody: del self._everybody[permission] else: del self._data[(principal, permission)]
79fc1976e5a10bfbc75d3bf3b043c026c54a0c85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/79fc1976e5a10bfbc75d3bf3b043c026c54a0c85/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 261, 26138, 16, 4132, 3719, 30, 3536, 29196, 4132, 628, 8897, 12123, 309, 486, 4132, 316, 261, 1767, 5041, 16, 9518, 5041, 16, 1436, 5041, 4672, 1002, 2068, 2932, 643...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 261, 26138, 16, 4132, 3719, 30, 3536, 29196, 4132, 628, 8897, 12123, 309, 486, 4132, 316, 261, 1767, 5041, 16, 9518, 5041, 16, 1436, 5041, 4672, 1002, 2068, 2932, 643...
w.connect(self.address)
w.connect(address)
def __init__(self): a = socket.socket(socket.AF_INET, socket.SOCK_STREAM) w = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
4ff0c9ad8086c2bdec7550cb4c139175ca92a708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/4ff0c9ad8086c2bdec7550cb4c139175ca92a708/trigger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 279, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 341, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 279, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 341, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 1...
return os.WTERMSIG(err)
err = os.WTERMSIG(err)
def runCommandWithOutput(command): """ _runCommand_ Run the command without deadlocking stdou and stderr, echo all output to sys.stdout and sys.stderr Returns the exitCode """ child = popen2.Popen3(command, 1) # capture stdout and stderr from command child.tochild.close() # don't need to talk to child ou...
dd9af02ff8f8961c18d0a02d081a3750ddab9205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/dd9af02ff8f8961c18d0a02d081a3750ddab9205/Execute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31933, 1190, 1447, 12, 3076, 4672, 3536, 389, 2681, 2189, 67, 225, 1939, 326, 1296, 2887, 8363, 739, 310, 2044, 1395, 471, 4514, 16, 3376, 777, 876, 358, 2589, 18, 10283, 471, 2589, 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, 31933, 1190, 1447, 12, 3076, 4672, 3536, 389, 2681, 2189, 67, 225, 1939, 326, 1296, 2887, 8363, 739, 310, 2044, 1395, 471, 4514, 16, 3376, 777, 876, 358, 2589, 18, 10283, 471, 2589, 18, ...
cairo_size = self.p2c_width( tk_font.config()['size'])
cairo_size = self.p2c_width(abs(tk_font.config()['size']))
def _compute_cairo_font_size( self, tk_font, text=""): if text: test_string = text else: test_string = string.ascii_letters + string.punctuation tk_length = self.p2c_width( tk_font.measure( test_string)) cairo_size = self.p2c_width( tk_font.config()['size']) self.context.set_font_size( cairo_size) for i in range(2): # ...
e1930081351b5e0a1d0697810fdb456853f3f984 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4298/e1930081351b5e0a1d0697810fdb456853f3f984/tk2cairo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 5353, 11373, 67, 5776, 67, 1467, 12, 365, 16, 13030, 67, 5776, 16, 977, 1546, 6, 4672, 309, 977, 30, 1842, 67, 1080, 273, 977, 469, 30, 1842, 67, 1080, 273, 533, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 5353, 11373, 67, 5776, 67, 1467, 12, 365, 16, 13030, 67, 5776, 16, 977, 1546, 6, 4672, 309, 977, 30, 1842, 67, 1080, 273, 977, 469, 30, 1842, 67, 1080, 273, 533, 18, ...
If we ask for a dictionary for the solutions, we get it::
If we ask for dictionaries containing the solutions, we get them::
def solve(f, *args, **kwds): r""" Algebraically solve an equation or system of equations (over the complex numbers) for given variables. Inequalities and systems of inequalities are also supported. INPUT: - ``f`` - equation or system of equations (given by a list or tuple) - ``*args`` - variables to solve for. - ...
ad6d02b0399b4002f52131089b1e11e892c25a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ad6d02b0399b4002f52131089b1e11e892c25a2c/relation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 74, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2262, 29087, 6478, 12439, 392, 15778, 578, 2619, 434, 30369, 261, 1643, 326, 7233, 5600, 13, 364, 864, 3152, 18, 657, 9729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 74, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2262, 29087, 6478, 12439, 392, 15778, 578, 2619, 434, 30369, 261, 1643, 326, 7233, 5600, 13, 364, 864, 3152, 18, 657, 9729...
macGpl = Package(pkgutil.PLATFORM_MAC, pkgutil.ARCH_UNIVERSAL, pkgutil.LICENSE_GPL) macGpl.setMacBinary() macGpl.buildServer = "lyta.troll.no" packages.append(macGpl) if options.buildEval: macEval = Package(pkgutil.PLATFORM_MAC, pkgutil.ARCH_UNIVERSAL, pkgutil.LICENSE_EVAL) macEval.setMacBinary() macEval.buildServer = ...
if options.buildWindows: winSrcGpl = Package(pkgutil.PLATFORM_WINDOWS, None, pkgutil.LICENSE_GPL) winSrcGpl.setSource() packages.append(winSrcGpl) if options.buildLinux: linuxSrcGpl = Package(pkgutil.PLATFORM_LINUX, None, pkgutil.LICENSE_GPL) linuxSrcGpl.setSource() packages.append(linuxSrcGpl) if options.buildCommerci...
def setupPackages(): if options.buildWindows: if options.build64: if options.buildCommercial: win64 = Package(pkgutil.PLATFORM_WINDOWS, pkgutil.ARCH_64, pkgutil.LICENSE_COMMERCIAL) win64.setWinBinary() win64.buildServer = "aeryn.troll.no" packages.append(win64) if options.buildMac: if options.buildCommercial: macMone...
9ac47f9ecf789734865da2c0706a0c3dc2eb6813 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4229/9ac47f9ecf789734865da2c0706a0c3dc2eb6813/package_builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 11425, 13332, 225, 309, 702, 18, 3510, 10399, 30, 309, 702, 18, 3510, 1105, 30, 309, 702, 18, 3510, 799, 6592, 71, 649, 30, 5657, 1105, 273, 7508, 12, 10657, 1367, 18, 6253, 789,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 11425, 13332, 225, 309, 702, 18, 3510, 10399, 30, 309, 702, 18, 3510, 1105, 30, 309, 702, 18, 3510, 799, 6592, 71, 649, 30, 5657, 1105, 273, 7508, 12, 10657, 1367, 18, 6253, 789,...
def redirect_request(self, req, fp, code, msg, headers):
def redirect_request(self, req, fp, code, msg, headers, newurl):
def redirect_request(self, req, fp, code, msg, headers): """Return a Request or None in response to a redirect.
e85215013c62eb74fbf153b6946da84004d1120b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e85215013c62eb74fbf153b6946da84004d1120b/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 2293, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 16, 394, 718, 4672, 3536, 990, 279, 1567, 578, 599, 316, 766, 358, 279, 3136, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3136, 67, 2293, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 16, 394, 718, 4672, 3536, 990, 279, 1567, 578, 599, 316, 766, 358, 279, 3136, 18, 2, -100, -100, -100, -100...
return http.Response(stream=s)
return HTMLResponse(stream=s)
def render(self, ctx): s = notebook.html_doc(username = self.username) return http.Response(stream=s)
5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 272, 273, 14718, 18, 2620, 67, 2434, 12, 5053, 273, 365, 18, 5053, 13, 327, 1062, 18, 1064, 12, 3256, 33, 87, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 1103, 4672, 272, 273, 14718, 18, 2620, 67, 2434, 12, 5053, 273, 365, 18, 5053, 13, 327, 1062, 18, 1064, 12, 3256, 33, 87, 13, 2, -100, -100, -100, -100, -100, -10...
weights = np.eye(nmoms)
weights = np.eye(self.nmoms)
def fitgmm(self, momcond, args, start, weights=None): '''estimate parameters using GMM
57bf5367613eaf4da49a887959abddd5dcf3fd13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/57bf5367613eaf4da49a887959abddd5dcf3fd13/gmm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 75, 7020, 12, 2890, 16, 312, 362, 10013, 16, 833, 16, 787, 16, 5376, 33, 7036, 4672, 9163, 23562, 1472, 1450, 611, 8206, 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, 4845, 75, 7020, 12, 2890, 16, 312, 362, 10013, 16, 833, 16, 787, 16, 5376, 33, 7036, 4672, 9163, 23562, 1472, 1450, 611, 8206, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
to = ThreadedOptimizer( optimizerName, self.am_getModuleParam( 'fullName' ),
to = ThreadedOptimizer( optimizerName, self.am_getModuleParam( 'fullName' ),
def __sendJobToOptimizer( self, jobId, jobAttrs, jobDef ): optimizerName = self.__getNextOptimizerName( jobAttrs ) if not optimizerName: return S_OK( False ) if optimizerName not in self.am_getOption( "ValidOptimizers", self.__defaultValidOptimizers ): return S_OK( False ) if optimizerName not in self._threadedOptimize...
76604cb547c24d2712e0393bdd8c3d7348989097 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/76604cb547c24d2712e0393bdd8c3d7348989097/ThreadedMightyOptimizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4661, 2278, 774, 29789, 12, 365, 16, 13845, 16, 1719, 8262, 16, 1719, 3262, 262, 30, 13066, 461, 273, 365, 16186, 588, 2134, 29789, 461, 12, 1719, 8262, 262, 309, 486, 13066, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4661, 2278, 774, 29789, 12, 365, 16, 13845, 16, 1719, 8262, 16, 1719, 3262, 262, 30, 13066, 461, 273, 365, 16186, 588, 2134, 29789, 461, 12, 1719, 8262, 262, 309, 486, 13066, 461, ...
if not article.isTalkPage and article.namespace != 2:
if not article.isTalkPage() and article.namespace() != 2:
def change_category(self, article, oldCat, newCat, comment=None, sortKey=None): """Given an article in category oldCat, moves it to category newCat. Moves subcategories of oldCat as well. oldCat and newCat should be Category objects. If newCat is None, the category will be removed.
ca6eab2770b59d8de16a37e0a8778c56d5e52a34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ca6eab2770b59d8de16a37e0a8778c56d5e52a34/category_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 4743, 12, 2890, 16, 7559, 16, 1592, 11554, 16, 394, 11554, 16, 2879, 33, 7036, 16, 1524, 653, 33, 7036, 4672, 3536, 6083, 392, 7559, 316, 3150, 1592, 11554, 16, 13934, 518, 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, 2549, 67, 4743, 12, 2890, 16, 7559, 16, 1592, 11554, 16, 394, 11554, 16, 2879, 33, 7036, 16, 1524, 653, 33, 7036, 4672, 3536, 6083, 392, 7559, 316, 3150, 1592, 11554, 16, 13934, 518, 3...
for comp in IntegerVectors(sum(self.p), sum(self.p)):
for comp in IntegerVectors(sum(self.p), self.max_entry):
def cardinality(self): """ EXAMPLES:: sage: SemistandardTableaux([2,1]).cardinality() 8 sage: SemistandardTableaux([2,2,1]).cardinality() 75 sage: s = SFASchur(QQ) sage: s([2,2,1]).expand(5)(1,1,1,1,1) 75 sage: SemistandardTableaux([5]).cardinality() 126 sage: SemistandardTableaux([3,2,1]).cardinality() 896 """ c = 0 ...
6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14379, 12, 2890, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 15661, 376, 2958, 1388, 18196, 3816, 22, 16, 21, 65, 2934, 3327, 9232, 1435, 1725, 272, 410, 30, 15661, 376, 2958...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14379, 12, 2890, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 15661, 376, 2958, 1388, 18196, 3816, 22, 16, 21, 65, 2934, 3327, 9232, 1435, 1725, 272, 410, 30, 15661, 376, 2958...
resDict = {'Successful':{},'Failed':failed}
resDict = {'Successful':{},'Failed':failed}
def __setHasReplicaFlag(self,lfns):
03c61d9ac7613190531928096cbc37b089f8be29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/03c61d9ac7613190531928096cbc37b089f8be29/BookkeepingDBClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 5582, 14222, 4678, 12, 2890, 16, 20850, 2387, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 5582, 14222, 4678, 12, 2890, 16, 20850, 2387, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
.order_by('maptitle') .filter(status=2) .filter(maptitle__icontains=form.cleaned_data['query']))
.order_by('maptitle') .filter(status=2) .filter(maptitle__icontains=form.cleaned_data['query']))
def all_maps(request): """Displays all maps, sorted alphabetically, eventually matching the search terms, when provided.""" map_list = None if request.method == 'POST': form = forms.MapSearchForm(request.POST) if form.is_valid(): map_list = (models.MapRenderingJob.objects .order_by('maptitle') .filter(status=2) .filt...
659c5e5f7cea4ed971b1515f95eb6c9e91cb9249 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14904/659c5e5f7cea4ed971b1515f95eb6c9e91cb9249/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 10711, 12, 2293, 4672, 3536, 16900, 777, 7565, 16, 3115, 10877, 6478, 16, 18011, 3607, 326, 1623, 6548, 16, 1347, 2112, 12123, 225, 852, 67, 1098, 273, 599, 225, 309, 590, 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, 777, 67, 10711, 12, 2293, 4672, 3536, 16900, 777, 7565, 16, 3115, 10877, 6478, 16, 18011, 3607, 326, 1623, 6548, 16, 1347, 2112, 12123, 225, 852, 67, 1098, 273, 599, 225, 309, 590, 18, ...
if errors: sys.stderr.write(error_explanation) sys.stderr.write("%s database records skipped\n" % skipped)
def __iter__(self): errors = {} skipped = 0 for record in self._txn: record.tid = record.serial # transform the data record format # (including persistent references) sio = StringIO(record.data) up = Unpickler(sio) up.persistent_load = PersistentIdentifier try: classmeta = up.load() state = up.load() except ImportError...
9acb99e8bfe8a01f01b96120c22a640a24bda927 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/9acb99e8bfe8a01f01b96120c22a640a24bda927/conversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 1334, 273, 2618, 9700, 273, 374, 364, 1409, 316, 365, 6315, 24790, 30, 1409, 18, 18081, 273, 1409, 18, 8818, 468, 2510, 326, 501, 1409, 740, 468, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1334, 273, 2618, 9700, 273, 374, 364, 1409, 316, 365, 6315, 24790, 30, 1409, 18, 18081, 273, 1409, 18, 8818, 468, 2510, 326, 501, 1409, 740, 468, 261, ...
cf_clist,
s_clist,
def Play(self, mode, tuner_channel=None, channel_change=0):
d1a3b23ba3f0716b6c3098e7625d8846fa8a07e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d1a3b23ba3f0716b6c3098e7625d8846fa8a07e0/tvtime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19592, 12, 2890, 16, 1965, 16, 268, 29640, 67, 4327, 33, 7036, 16, 1904, 67, 3427, 33, 20, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19592, 12, 2890, 16, 1965, 16, 268, 29640, 67, 4327, 33, 7036, 16, 1904, 67, 3427, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pylab.pcolor(X,Y, vol_error)
pylab.pcolor(X,Y, vol_error, vmin=0, vmax=2)
def integrate_posterior(mu, post, conf): cumpost = post.cumsum()/post.sum() #if you can do it, maybe you can't cause the volume is zero try: val = [idx for idx in range(len(cumpost)) if cumpost[idx] >= conf][0] except: val = 0 return mu[val]
f4a1617c60d5c40fd3e5462767e1471867e050b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/f4a1617c60d5c40fd3e5462767e1471867e050b3/imr_volume_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23367, 67, 2767, 17818, 12, 13297, 16, 1603, 16, 2195, 4672, 14471, 2767, 273, 1603, 18, 28538, 1364, 1435, 19, 2767, 18, 1364, 1435, 468, 430, 1846, 848, 741, 518, 16, 6944, 1846, 848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23367, 67, 2767, 17818, 12, 13297, 16, 1603, 16, 2195, 4672, 14471, 2767, 273, 1603, 18, 28538, 1364, 1435, 19, 2767, 18, 1364, 1435, 468, 430, 1846, 848, 741, 518, 16, 6944, 1846, 848, ...
res = self.move_journal_id_payment_get(cr, uid, ids)
res = self.ret_payment_get(cr, uid, ids)
def test_retenida(self, cr, uid, ids, type, *args): res = self.move_journal_id_payment_get(cr, uid, ids) if not res: return False ok = True
4dd3341f022da6f12d3fa5cba00d9bada06ca5af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/4dd3341f022da6f12d3fa5cba00d9bada06ca5af/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1349, 275, 350, 69, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 380, 1968, 4672, 400, 273, 365, 18, 1349, 67, 9261, 67, 588, 12, 3353, 16, 4555, 16, 3258, 13, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1349, 275, 350, 69, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 380, 1968, 4672, 400, 273, 365, 18, 1349, 67, 9261, 67, 588, 12, 3353, 16, 4555, 16, 3258, 13, 30...
if verbose: print 'access...' for key in f.keys(): word = f[key]
def test(openmethod, what): if verbose: print '\nTesting: ', what fname = tempfile.mktemp() f = openmethod(fname, 'c') verify(f.keys() == []) if verbose: print 'creation...' f['0'] = '' f['a'] = 'Guido' f['b'] = 'van' f['c'] = 'Rossum' f['d'] = 'invented' f['f'] = 'Python' if verbose: print '%s %s %s' % (f['a'], f['b...
9d4ff6ee76015fde0b507ecd3b7677689005dbd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9d4ff6ee76015fde0b507ecd3b7677689005dbd8/test_bsddb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 3190, 2039, 16, 4121, 4672, 225, 309, 3988, 30, 1172, 2337, 82, 22218, 30, 2265, 4121, 225, 5299, 273, 13275, 18, 24816, 5814, 1435, 284, 273, 1696, 2039, 12, 12749, 16, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 3190, 2039, 16, 4121, 4672, 225, 309, 3988, 30, 1172, 2337, 82, 22218, 30, 2265, 4121, 225, 5299, 273, 13275, 18, 24816, 5814, 1435, 284, 273, 1696, 2039, 12, 12749, 16, 296, ...
@param itemList: A list of 3-length tuples: (troveName, version, flavor). If updateByDefault is True, trove names in itemList prefixed
@param itemList: A list of change specs: (troveName, (oldVersionSpec, oldFlavor), (newVersionSpec, newFlavor), isAbsolute). isAbsolute specifies whether to try to find an older version of trove on the system to replace if none is specified. If updateByDefault is True, trove names in itemList prefixed
def updateChangeSet(self, itemList, keepExisting = False, recurse = True, resolveDeps = True, test = False, updateByDefault = True, callback = UpdateCallback(), split = False, sync = False, fromChangesets = [], checkPathConflicts = True, ignorePrimaryPins = True, resolveRepos = True): """ Creates a changeset to update ...
469b326ab36060192bd285e78ebb80943b1abf82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/469b326ab36060192bd285e78ebb80943b1abf82/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 21565, 12, 2890, 16, 761, 682, 16, 3455, 9895, 273, 1083, 16, 11502, 273, 1053, 16, 2245, 14430, 273, 1053, 16, 1842, 273, 1083, 16, 1089, 858, 1868, 273, 1053, 16, 1348, 273, 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, 1089, 21565, 12, 2890, 16, 761, 682, 16, 3455, 9895, 273, 1083, 16, 11502, 273, 1053, 16, 2245, 14430, 273, 1053, 16, 1842, 273, 1083, 16, 1089, 858, 1868, 273, 1053, 16, 1348, 273, 23...
WHERE ur.id_user = %s """ % (id_user, ))
WHERE ur.id_user = %s """, (id_user, ))
def acc_findUserInfoIds(id_user=0): """find all authorization entries for all the roles a user is connected to.""" res1 = run_sql("""SELECT ur.id_user, raa.* FROM user_accROLE ur LEFT JOIN accROLE_accACTION_accARGUMENT raa ON ur.id_accROLE = raa.id_accROLE WHERE ur.id_user = %s """ % (id_user, )) res2 = [] for res in...
31e1b0bc8460287f2ab023e74c2aeb22a4d39413 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/31e1b0bc8460287f2ab023e74c2aeb22a4d39413/access_control_admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4078, 67, 4720, 21015, 2673, 12, 350, 67, 1355, 33, 20, 4672, 3536, 4720, 777, 6093, 3222, 364, 777, 326, 4900, 279, 729, 353, 5840, 358, 12123, 225, 400, 21, 273, 1086, 67, 4669, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4078, 67, 4720, 21015, 2673, 12, 350, 67, 1355, 33, 20, 4672, 3536, 4720, 777, 6093, 3222, 364, 777, 326, 4900, 279, 729, 353, 5840, 358, 12123, 225, 400, 21, 273, 1086, 67, 4669, 2932...
res = run_sql("SELECT * FROM collection_field_fieldvalue where id_field=%s and id_collection=%s and type=%s and id_fieldvalue=%s", (fldID, colID, type, fldvID))
res = run_sql("SELECT id_collection,id_field,id_fieldvalue,type,score,score_fieldvalue FROM collection_field_fieldvalue where id_field=%s and id_collection=%s and type=%s and id_fieldvalue=%s", (fldID, colID, type, fldvID))
def add_col_fld(colID, fldID, type, fldvID=''): """Add a sort/search/field to the collection. colID - the id of the collection involved fldID - the id of the field. fldvID - the id of the fieldvalue. type - which type, seo, sew... score - the score of the format, decides sorting, if not given, place the format on top""...
4e20a90d8096dfa6f956241650ea42ce82b508df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/4e20a90d8096dfa6f956241650ea42ce82b508df/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1293, 67, 19794, 12, 1293, 734, 16, 9880, 734, 16, 618, 16, 9880, 90, 734, 2218, 11, 4672, 3536, 986, 279, 1524, 19, 3072, 19, 1518, 358, 326, 1849, 18, 645, 734, 300, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1293, 67, 19794, 12, 1293, 734, 16, 9880, 734, 16, 618, 16, 9880, 90, 734, 2218, 11, 4672, 3536, 986, 279, 1524, 19, 3072, 19, 1518, 358, 326, 1849, 18, 645, 734, 300, 326, ...
prev_tb._tb_next = None
prev_tb.set_next(None)
def __init__(self, exc_type, exc_value, frames): assert frames, 'no frames for this traceback?' self.exc_type = exc_type self.exc_value = exc_value self.frames = frames
9e5d08326842b9ee0070794639faad72fed72ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14446/9e5d08326842b9ee0070794639faad72fed72ff6/debug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3533, 67, 723, 16, 3533, 67, 1132, 16, 7793, 4672, 1815, 7793, 16, 296, 2135, 7793, 364, 333, 10820, 4899, 365, 18, 10075, 67, 723, 273, 3533, 67, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3533, 67, 723, 16, 3533, 67, 1132, 16, 7793, 4672, 1815, 7793, 16, 296, 2135, 7793, 364, 333, 10820, 4899, 365, 18, 10075, 67, 723, 273, 3533, 67, 723, ...
result = db.access2("DROP TABLE copyright CASCADE")
result = db.access("DROP TABLE copyright CASCADE")
def drop_database(): db = None try: db = libfosspython.FossDB() except Exception, inst: print >> sys.stderr, 'ERROR: %s, in %s' % inst sys.exit(1) result = db.access2("DROP TABLE copyright CASCADE") if result != 0: error = db.errmsg() if error != 'table "copyright" does not exist': print >> sys.stderr, "ERROR: Could n...
5591e7614be9e25419d647bc539b27581a368b7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6959/5591e7614be9e25419d647bc539b27581a368b7b/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 6231, 13332, 1319, 273, 599, 775, 30, 1319, 273, 2561, 5075, 1752, 18490, 18, 42, 8464, 2290, 1435, 1335, 1185, 16, 1804, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 3589, 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, 3640, 67, 6231, 13332, 1319, 273, 599, 775, 30, 1319, 273, 2561, 5075, 1752, 18490, 18, 42, 8464, 2290, 1435, 1335, 1185, 16, 1804, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 3589, 30, ...
documents = self.documents
def search(self, query=None, **kw): # Build the query if it is passed through keyword parameters if query is None: if kw: atoms = [] for key, value in kw.items(): atoms.append(PhraseQuery(key, value))
8d40870b091768c90003c6dc3c650ca1814c2224 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/8d40870b091768c90003c6dc3c650ca1814c2224/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 843, 33, 7036, 16, 2826, 9987, 4672, 468, 3998, 326, 843, 309, 518, 353, 2275, 3059, 4932, 1472, 309, 843, 353, 599, 30, 309, 5323, 30, 9006, 273, 5378, 364, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 12, 2890, 16, 843, 33, 7036, 16, 2826, 9987, 4672, 468, 3998, 326, 843, 309, 518, 353, 2275, 3059, 4932, 1472, 309, 843, 353, 599, 30, 309, 5323, 30, 9006, 273, 5378, 364, 498, ...
if s != u'\xa0\xc2\u1234 \x11abc\xff\u1234':
if s != unicode(r'\xa0\xc2\u1234 \x11abc\xff\u1234', 'unicode-escape'):
def testunicode(): try: array.array('b', u'foo') except TypeError: pass else: raise TestFailed("creating a non-unicode array from " "a Unicode string should fail") x = array.array('u', u'\xa0\xc2\u1234') x.fromunicode(u' ') x.fromunicode(u'') x.fromunicode(u'') x.fromunicode(u'\x11abc\xff\u1234') s = x.tounicode() if ...
8bf46e4e7abdc6e88b1dcd680815b94c9d70184e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bf46e4e7abdc6e88b1dcd680815b94c9d70184e/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9124, 13332, 775, 30, 526, 18, 1126, 2668, 70, 2187, 582, 11, 11351, 6134, 1335, 3580, 30, 1342, 469, 30, 1002, 7766, 2925, 2932, 23799, 279, 1661, 17, 9124, 526, 628, 315, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9124, 13332, 775, 30, 526, 18, 1126, 2668, 70, 2187, 582, 11, 11351, 6134, 1335, 3580, 30, 1342, 469, 30, 1002, 7766, 2925, 2932, 23799, 279, 1661, 17, 9124, 526, 628, 315, 315, ...
in which all burst events match sim.
in which all burst events match sim and to which all instruments on at the time of the sim contributed events.
def find_exact_coinc_matches(coincs, sim, comparefunc): """ Return a list of the coinc_event_ids of the burst<-->burst coincs in which all burst events match sim. """ # FIXME: this test does not consider the time slide offsets that # should be applied to the coinc, but for now injections are done # at zero lag so this...
1126ecd32ca491514cbed02a89dd809841dce610 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1126ecd32ca491514cbed02a89dd809841dce610/ligolw_binjfind.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 17165, 67, 12645, 71, 67, 8436, 12, 12645, 2143, 16, 3142, 16, 3400, 644, 4672, 3536, 2000, 279, 666, 434, 326, 13170, 71, 67, 2575, 67, 2232, 434, 326, 27966, 32, 413, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 17165, 67, 12645, 71, 67, 8436, 12, 12645, 2143, 16, 3142, 16, 3400, 644, 4672, 3536, 2000, 279, 666, 434, 326, 13170, 71, 67, 2575, 67, 2232, 434, 326, 27966, 32, 413, 34, ...
return (ctrlCode & 0xffff0000L) >> 16
return (ctrlCode & 0xffff0000) >> 16
def DEVICE_TYPE_FROM_CTL_CODE(ctrlCode): return (ctrlCode & 0xffff0000L) >> 16
4d8d78e7d12aa633dba7cddf190eea9b1ccf177f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/992/4d8d78e7d12aa633dba7cddf190eea9b1ccf177f/winioctlcon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23996, 67, 2399, 67, 11249, 67, 1268, 48, 67, 5572, 12, 16277, 1085, 4672, 327, 261, 16277, 1085, 473, 374, 20431, 2787, 13, 1671, 2872, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23996, 67, 2399, 67, 11249, 67, 1268, 48, 67, 5572, 12, 16277, 1085, 4672, 327, 261, 16277, 1085, 473, 374, 20431, 2787, 13, 1671, 2872, 225, 2, -100, -100, -100, -100, -100, -100, -100,...
text_in_first_line(file, VERSION_STR)
return text_in_first_line(file, VERSION_STR)
def version_in_first_line(file): text_in_first_line(file, VERSION_STR)
e74dfe64775afaa544ace5046660e94a24e7c1e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5252/e74dfe64775afaa544ace5046660e94a24e7c1e6/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 67, 267, 67, 3645, 67, 1369, 12, 768, 4672, 327, 977, 67, 267, 67, 3645, 67, 1369, 12, 768, 16, 8456, 67, 3902, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 67, 267, 67, 3645, 67, 1369, 12, 768, 4672, 327, 977, 67, 267, 67, 3645, 67, 1369, 12, 768, 16, 8456, 67, 3902, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
basepath = 'web/' have_fork = 0 have_popen2 = 0 have_popen3 = 0 def is_cgi( self ): path = self.path i = path.rfind( '?' ) if i >= 0: scriptpath, query = path[:i], path[i+1:] else: scriptpath = path query = '' if self.is_python( scriptpath ): path = posixpath.dirname( scriptpath ) script = posixpath.basename( s...
def is_cgi( self ): path = self.path i = path.rfind( '?' ) if i >= 0: scriptpath, query = path[:i], path[i+1:] else: scriptpath = path query = '' if self.is_python( scriptpath ): path = posixpath.dirname( scriptpath ) script = posixpath.basename( scriptpath ) + '?' + query self.cgi_info = path, script return 1 r...
def handle_error(self, request, client_address): # Ignore Socket Errors && IOErrors if sys.exc_type == socket.error or sys.exc_type == IOError: dummy = cStringIO.StringIO() traceback.print_exc( None, dummy ) dummy.close() return
58f64a31d5379e286aca0f31bd5ff48ec8f89afe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/58f64a31d5379e286aca0f31bd5ff48ec8f89afe/webadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 16, 590, 16, 1004, 67, 2867, 4672, 468, 8049, 8758, 9372, 597, 1665, 4229, 309, 2589, 18, 10075, 67, 723, 422, 2987, 18, 1636, 578, 2589, 18, 10075, 67, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 16, 590, 16, 1004, 67, 2867, 4672, 468, 8049, 8758, 9372, 597, 1665, 4229, 309, 2589, 18, 10075, 67, 723, 422, 2987, 18, 1636, 578, 2589, 18, 10075, 67, 723, ...
value = map(lambda val: Literal(val,datatype=XSD['string']) if type(val) in [str,unicode] else val,value)
value = map(self.__val2rdf,value)
def __setattr__(self,name,value): ''' the `set` method - responsible for *caching* the `value` to the coresponding object attribute given by `name` note: this method sets the state of the resource to *dirty* (the `resource` will be persisted if the `commit` `session` method is called) ''' object.__setattr__(self,name,...
9d772085d719ad87f1d89ed18beff97f65949668 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13812/9d772085d719ad87f1d89ed18beff97f65949668/resource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 529, 16, 1132, 4672, 9163, 326, 1375, 542, 68, 707, 300, 14549, 364, 380, 17703, 310, 14, 326, 1375, 1132, 68, 358, 326, 15355, 3111, 310, 733, 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, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 529, 16, 1132, 4672, 9163, 326, 1375, 542, 68, 707, 300, 14549, 364, 380, 17703, 310, 14, 326, 1375, 1132, 68, 358, 326, 15355, 3111, 310, 733, 1566...
source = line[7:-1]
source = unquote(line[6:])
def unquote(str): return str[1:-1].replace("\\n", "\n") \ .replace('\\"', "\"")
cca5789135a507266aec05d80c821779543b81fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/cca5789135a507266aec05d80c821779543b81fc/translate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25611, 12, 701, 4672, 327, 609, 63, 21, 30, 17, 21, 8009, 2079, 2932, 1695, 82, 3113, 1548, 82, 7923, 282, 521, 263, 2079, 2668, 27576, 2187, 11143, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25611, 12, 701, 4672, 327, 609, 63, 21, 30, 17, 21, 8009, 2079, 2932, 1695, 82, 3113, 1548, 82, 7923, 282, 521, 263, 2079, 2668, 27576, 2187, 11143, 13, 2, -100, -100, -100, -100, -100...
print "Unsupported Type for Set?", val.getType()
logging.error("Unsupported Type for Set? '%s'" % str(val.getType()))
def set(self, key, value): val = self.map.byKey(key) vType = val.getType() if vType == TYPE_UINT8: return val.setUint(value) elif vType == TYPE_UINT16: return val.setUint(value) elif vType == TYPE_UINT32: return val.setUint(value) elif vType == TYPE_UINT64: return val.setUint64(value) elif vType == TYPE_SSTR: if value:...
baef67bcc8ab8c9bd2d1c1939587efa7edf66937 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/198/baef67bcc8ab8c9bd2d1c1939587efa7edf66937/qmf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 498, 16, 460, 4672, 1244, 273, 365, 18, 1458, 18, 1637, 653, 12, 856, 13, 331, 559, 273, 1244, 18, 588, 559, 1435, 309, 331, 559, 422, 3463, 67, 57, 3217, 28, 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, 444, 12, 2890, 16, 498, 16, 460, 4672, 1244, 273, 365, 18, 1458, 18, 1637, 653, 12, 856, 13, 331, 559, 273, 1244, 18, 588, 559, 1435, 309, 331, 559, 422, 3463, 67, 57, 3217, 28, 30...
if "KNOWN FAIL" in line:
if "TEST-KNOWN-FAIL" in line:
def createSummary(self, log): testCount = 0 passCount = 0 failCount = 0 knownFailCount = 0 for line in log.readlines(): if "REFTEST" not in line: continue if "IMAGE" in line: continue if "RESULT EXPECTED TO BE RANDOM" in line: continue testCount += 1 if "UNEXPECTED" in line: failCount += 1 continue if "KNOWN FAIL" in l...
7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2/steps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4733, 12, 2890, 16, 613, 4672, 1842, 1380, 273, 374, 1342, 1380, 273, 374, 2321, 1380, 273, 374, 4846, 3754, 1380, 273, 374, 364, 980, 316, 613, 18, 896, 3548, 13332, 309, 315, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4733, 12, 2890, 16, 613, 4672, 1842, 1380, 273, 374, 1342, 1380, 273, 374, 2321, 1380, 273, 374, 4846, 3754, 1380, 273, 374, 364, 980, 316, 613, 18, 896, 3548, 13332, 309, 315, 10...
this = apply(_quickfix.new_CustDirectedOrder, args)
this = _quickfix.new_CustDirectedOrder(*args)
def __init__(self, *args): this = apply(_quickfix.new_CustDirectedOrder, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 39, 641, 5368, 329, 2448, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 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, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 39, 641, 5368, 329, 2448, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 13...
self.root_path,
[self.root_path],
def get_others(self, builddir = True): """Returns CXX source files of the project""" return self.get_files( self.root_path, constants.CXX_SOURCE_EXT + constants.CXX_HEADER_EXT, builddir, invert_matches = True )
293414ffc61c81e72c4e46207469f91ccb727f68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/293414ffc61c81e72c4e46207469f91ccb727f68/project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28197, 12, 2890, 16, 25666, 330, 449, 481, 273, 1053, 4672, 3536, 1356, 385, 5619, 1084, 1390, 434, 326, 1984, 8395, 327, 365, 18, 588, 67, 2354, 12, 306, 2890, 18, 3085, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28197, 12, 2890, 16, 25666, 330, 449, 481, 273, 1053, 4672, 3536, 1356, 385, 5619, 1084, 1390, 434, 326, 1984, 8395, 327, 365, 18, 588, 67, 2354, 12, 306, 2890, 18, 3085, 67, ...
self.stc.Show(False)
def createEditWindow(self,parent): FundamentalView.createEditWindow(self,parent) self.dprint("creating new HexEditView window")
fa5526c5d504186f66affde6661868000835dfbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11522/fa5526c5d504186f66affde6661868000835dfbf/hexedit-plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4666, 3829, 12, 2890, 16, 2938, 4672, 478, 1074, 14773, 287, 1767, 18, 2640, 4666, 3829, 12, 2890, 16, 2938, 13, 365, 18, 72, 1188, 2932, 23799, 394, 15734, 4666, 1767, 2742, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4666, 3829, 12, 2890, 16, 2938, 4672, 478, 1074, 14773, 287, 1767, 18, 2640, 4666, 3829, 12, 2890, 16, 2938, 13, 365, 18, 72, 1188, 2932, 23799, 394, 15734, 4666, 1767, 2742, 7923, ...
self.hardreset()
try: self.hardreset() except AutoservUnsupportedError: print "Hardreset is unsupported on %s" % self.hostname
def ensure_up(self): """ Ensure the host is up if it is not then do not proceed; this prevents cacading failures of tests """ print 'Ensuring that %s is up before continuing' % self.hostname if hasattr(self, 'hardreset') and not self.wait_up(300): print "Performing a hardreset on %s" % self.hostname self.hardreset() if...
b23c762796b1957fb73f87fa7d348921bcb44c1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/b23c762796b1957fb73f87fa7d348921bcb44c1d/ssh_host.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3387, 67, 416, 12, 2890, 4672, 3536, 7693, 326, 1479, 353, 731, 309, 518, 353, 486, 1508, 741, 486, 11247, 31, 333, 17793, 276, 1077, 14968, 11720, 434, 7434, 3536, 1172, 296, 664, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3387, 67, 416, 12, 2890, 4672, 3536, 7693, 326, 1479, 353, 731, 309, 518, 353, 486, 1508, 741, 486, 11247, 31, 333, 17793, 276, 1077, 14968, 11720, 434, 7434, 3536, 1172, 296, 664, 87, ...
$Id: Publish.py,v 1.8 1996/07/18 14:59:54 jfulton Exp $"""
$Id: Publish.py,v 1.9 1996/07/23 19:59:29 jfulton Exp $"""
def taste(spam): "a favorable reviewer" return spam,'yum yum, I like ' + spam
2418690bd14be709545ae105d236c1ebadc220dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2418690bd14be709545ae105d236c1ebadc220dc/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 225, 2, -100, -100, -100, -100, -100, -100, -...
item = Globals.mainViewRoot.postEventByName('NewTask',{})[0]
item = App_ns.root.NewTask()[0]
def __init__(self, type, logger): if not type in ["Event", "Note", "Task", "MailMessage", "Collection"]: # "Copy constructor" if isinstance(type,pim.calendar.CalendarEvent): self.isNote = self.isTask = self.isMessage = self.isCollection = self.allDay = self.recurring = False self.isEvent = True self.view = App_ns.itsVi...
4d24bd6a34af83772bf639bb3b33c4290696873d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/4d24bd6a34af83772bf639bb3b33c4290696873d/QAUITestAppLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 16, 1194, 4672, 309, 486, 618, 316, 8247, 1133, 3113, 315, 8067, 3113, 315, 2174, 3113, 315, 6759, 1079, 3113, 315, 2532, 11929, 30, 468, 315, 2951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 618, 16, 1194, 4672, 309, 486, 618, 316, 8247, 1133, 3113, 315, 8067, 3113, 315, 2174, 3113, 315, 6759, 1079, 3113, 315, 2532, 11929, 30, 468, 315, 2951, ...
run()
app, sb = build(initialcolor=initialcolor, initfile=initfile, ignore=ignore) run(app, sb) sb.save_views()
def main(): try: opts, args = getopt.getopt( sys.argv[1:], 'hd:i:X', ['database=', 'initfile=', 'ignore', 'help']) except getopt.error, msg: usage(1, msg) if len(args) == 0: initialcolor = None elif len(args) == 1: initialcolor = args[0] else: usage(1) ignore = 0 initfile = os.path.expanduser('~/.pynche') for opt, ar...
877d299292063ce07c5ecc3e897216731bdf4e5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/877d299292063ce07c5ecc3e897216731bdf4e5a/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 296, 22057, 30, 77, 30, 60, 2187, 10228, 6231, 33, 2187, 296, 2738, 768, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 296, 22057, 30, 77, 30, 60, 2187, 10228, 6231, 33, 2187, 296, 2738, 768, 33...
"FROM %s WHERE timestamp > from_unixtime(%s);" \
"FROM %s WHERE timestamp > FROM_UNIXTIME(%s);" \
def testFilter(self): client = createClient()
bbc6d4a41e391b03a5967de1e41d1776891f0285 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/bbc6d4a41e391b03a5967de1e41d1776891f0285/test_mysql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1586, 12, 2890, 4672, 1004, 273, 30872, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1586, 12, 2890, 4672, 1004, 273, 30872, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
open_file.write(self.cutMSFileByRecords(filename = \ file[0], starttime = starttime, endtime = endtime))
open_file.write(self.cutMSFileByRecords(filename=\ file[0], starttime=starttime, endtime=endtime))
def mergeAndCutMSFiles(self, file_list, outfile, starttime = None, endtime = None): """ This method takes several Mini-SEED files and returns one merged file. It is also possible to specify a start- and a endtime and all records that are out of bounds will be cut. If two not identical files cover a common time frame t...
da81b4ce7064a28a168b56663efe435b307a52d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/da81b4ce7064a28a168b56663efe435b307a52d4/libmseed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 1876, 15812, 3537, 2697, 12, 2890, 16, 585, 67, 1098, 16, 8756, 16, 23437, 273, 599, 16, 31361, 273, 599, 4672, 3536, 1220, 707, 5530, 11392, 27987, 17, 1090, 2056, 1390, 471, 1135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 1876, 15812, 3537, 2697, 12, 2890, 16, 585, 67, 1098, 16, 8756, 16, 23437, 273, 599, 16, 31361, 273, 599, 4672, 3536, 1220, 707, 5530, 11392, 27987, 17, 1090, 2056, 1390, 471, 1135...
fields = line.split('=')
fields = line.strip().split('=')
def get_GIS_env(self): # sends command to GRASS session and returns result via stdout (piped) output = subprocess.Popen("g.gisenv", shell=True, stdout=subprocess.PIPE).communicate()[0] pre_range_data = StringIO.StringIO(output).readlines() ret = {} for line in pre_range_data: fields = line.split('=') ret[fields[0]] = f...
258eacbd6ca92f7973fe7ba0745a1ddfc7ee642d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10332/258eacbd6ca92f7973fe7ba0745a1ddfc7ee642d/GRASSInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 43, 5127, 67, 3074, 12, 2890, 4672, 468, 9573, 1296, 358, 611, 2849, 1260, 1339, 471, 1135, 563, 3970, 3909, 261, 16104, 329, 13, 876, 273, 6652, 18, 52, 3190, 2932, 75, 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, 336, 67, 43, 5127, 67, 3074, 12, 2890, 4672, 468, 9573, 1296, 358, 611, 2849, 1260, 1339, 471, 1135, 563, 3970, 3909, 261, 16104, 329, 13, 876, 273, 6652, 18, 52, 3190, 2932, 75, 18, ...
return Loop( Reverse(self.one), self.times )
return Loop_IntervalAction( Reverse(self.one), self.times )
def __reversed__(self): return Loop( Reverse(self.one), self.times )
b61d6421993ccaa1e5cbf7a76a71eddd21cef7a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7473/b61d6421993ccaa1e5cbf7a76a71eddd21cef7a4/base_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 266, 7548, 972, 12, 2890, 4672, 327, 9720, 12, 18469, 12, 2890, 18, 476, 3631, 365, 18, 8293, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 266, 7548, 972, 12, 2890, 4672, 327, 9720, 12, 18469, 12, 2890, 18, 476, 3631, 365, 18, 8293, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _mergeOrders(self, cr, uid, data, context):
def _merge_orders(self, cr, uid, data, context):
def _mergeOrders(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) order_obj = pool.get('purchase.order') mod_obj = pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'purchase', 'view_purchase_order_filter') id = mod_obj.read(cr, uid, result, ['res_id']) def make_key(br, fields): list_key = []...
ce5aacc8b06729dbfce1e9296d9514648eb4be00 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ce5aacc8b06729dbfce1e9296d9514648eb4be00/wizard_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2702, 67, 9972, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 1353, 67, 2603, 273, 2845, 18, 588, 2668,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2702, 67, 9972, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 1353, 67, 2603, 273, 2845, 18, 588, 2668,...
"""
r"""
def linkage(y, method='single', metric='euclidean'): """ Performs hierarchical/agglomerative clustering on the condensed distance matrix y. y must be a {n \choose 2} sized vector where n is the number of original observations paired in the distance matrix. The behavior of this function is very similar to the MATLAB(TM)...
8172e9e1737f1f6d84d1b06fa46e587e764a1a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/8172e9e1737f1f6d84d1b06fa46e587e764a1a0f/hierarchy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 410, 12, 93, 16, 707, 2218, 7526, 2187, 3999, 2218, 73, 22392, 11, 4672, 436, 8395, 27391, 26633, 19, 346, 7043, 362, 264, 1535, 18743, 603, 326, 6941, 28003, 3888, 3148, 677, 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, 1692, 410, 12, 93, 16, 707, 2218, 7526, 2187, 3999, 2218, 73, 22392, 11, 4672, 436, 8395, 27391, 26633, 19, 346, 7043, 362, 264, 1535, 18743, 603, 326, 6941, 28003, 3888, 3148, 677, 18, ...
data[filename] = initial_size - len(datas) + original_value
data[filename] = position
fields_def = self.fields_get(cr, uid, context=context)
efd0cb9412db0c0bcc806b9b089c26c097a70bff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/efd0cb9412db0c0bcc806b9b089c26c097a70bff/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.canvas.tkraise(self.id, abovethis)
self.canvas.tag_raise(self.id, abovethis)
def tkraise(self, abovethis=None): self.canvas.tkraise(self.id, abovethis)
2c25a3deecf33f653b4a2745025be74f6905f2ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c25a3deecf33f653b4a2745025be74f6905f2ae/Canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13030, 11628, 12, 2890, 16, 279, 1075, 90, 546, 291, 33, 7036, 4672, 365, 18, 15424, 18, 16099, 11628, 12, 2890, 18, 350, 16, 279, 1075, 90, 546, 291, 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, 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, 13030, 11628, 12, 2890, 16, 279, 1075, 90, 546, 291, 33, 7036, 4672, 365, 18, 15424, 18, 16099, 11628, 12, 2890, 18, 350, 16, 279, 1075, 90, 546, 291, 13, 2, -100, -100, -100, -100, ...
iters = [iterchain(it, sentinel(), fillers) for it in seqarrays]
iters = [iterchain(it, sentinel(), fillers) for it in seqarrays]
def sentinel(counter = ([fill_value]*(len(seqarrays)-1)).pop): "Yields the fill_value or raises IndexError" yield counter()
8d227b3f6d8e882676ce43a6651c20409b01bd96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8d227b3f6d8e882676ce43a6651c20409b01bd96/recfunctions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20285, 12, 7476, 273, 23265, 5935, 67, 1132, 5772, 12, 1897, 12, 5436, 16223, 24950, 21, 13, 2934, 5120, 4672, 315, 16348, 87, 326, 3636, 67, 1132, 578, 14183, 10195, 6, 2824, 3895, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20285, 12, 7476, 273, 23265, 5935, 67, 1132, 5772, 12, 1897, 12, 5436, 16223, 24950, 21, 13, 2934, 5120, 4672, 315, 16348, 87, 326, 3636, 67, 1132, 578, 14183, 10195, 6, 2824, 3895, 1435...
elif itr: trace("-> iterator")
if _STACK_DYNAMIC == kind: (flow, data, linknext) = param ret = flow.run(data, linknext) if ret: return ret stack.pop() continue if _STACK_ITERATOR == kind: (iterator, stop, linknext) = param
def run(self, data = None, state=initialState): ''' This executes the current flow, given empty starting data and the default initial state. ''' trace("running flow") stack = self.stack if not(stack): stack.append((state, data, None, None, None)) while stack: (state, data, finish, itr, stop) = stack[-1] if finish: fini...
4cf3103eb894bde67fe5e1250725e8ef11de7f5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4cf3103eb894bde67fe5e1250725e8ef11de7f5a/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 501, 273, 599, 16, 919, 33, 6769, 1119, 4672, 9163, 1220, 11997, 326, 783, 4693, 16, 864, 1008, 5023, 501, 471, 326, 805, 2172, 919, 18, 9163, 2606, 2932, 8704, 469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 501, 273, 599, 16, 919, 33, 6769, 1119, 4672, 9163, 1220, 11997, 326, 783, 4693, 16, 864, 1008, 5023, 501, 471, 326, 805, 2172, 919, 18, 9163, 2606, 2932, 8704, 469...
this = apply(_quickfix.new_AgreementDesc, args)
this = _quickfix.new_AgreementDesc(*args)
def __init__(self, *args): this = apply(_quickfix.new_AgreementDesc, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 17420, 4217, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 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, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 17420, 4217, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, ...
if self.wlessLB is not self.no_wlan:
if self.wlessLB != self.no_wlan:
def update_netlist(self,state=None, x=None, force_check=False,firstrun=False): # Don't even try to do this if we are running a dialog if self.diag: return # Run focus-collecting code if we are not running this for the first # time if not firstrun: self.update_focusloc() self.list_header.set_text(gen_list_header()) """ ...
7bcd28d210ec68624a9d714bea0a1ced9928b437 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/7bcd28d210ec68624a9d714bea0a1ced9928b437/wicd-curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2758, 1098, 12, 2890, 16, 2019, 33, 7036, 16, 619, 33, 7036, 16, 2944, 67, 1893, 33, 8381, 16, 74, 481, 701, 318, 33, 8381, 4672, 468, 7615, 1404, 5456, 775, 358, 741, 333,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2758, 1098, 12, 2890, 16, 2019, 33, 7036, 16, 619, 33, 7036, 16, 2944, 67, 1893, 33, 8381, 16, 74, 481, 701, 318, 33, 8381, 4672, 468, 7615, 1404, 5456, 775, 358, 741, 333,...
if mime is not None and not attrs['mime'].startswith(mime):
origmime = attrs['mime'] if mime is not None and origmime is not None and \ not origmime.startswith(mime):
def recognize (self, buf, attrs): # note: recognizing a mime type fixes exploits like # CVE-2002-0025 and CVE-2002-0024 wc.log.debug(wc.LOG_FILTER, "MIME recognize %d bytes of data", buf.tell()) try: mime = wc.magic.classify(buf) wc.log.debug(wc.LOG_FILTER, "MIME recognized %r", mime) if mime is not None and not attrs[...
bffc3d94a89ba5dab90f82581015bc299bcb8c9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/bffc3d94a89ba5dab90f82581015bc299bcb8c9a/MimeRecognizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21431, 261, 2890, 16, 1681, 16, 3422, 4672, 468, 4721, 30, 14603, 6894, 279, 4892, 618, 24436, 15233, 1282, 3007, 468, 385, 3412, 17, 6976, 22, 17, 713, 2947, 471, 385, 3412, 17, 6976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21431, 261, 2890, 16, 1681, 16, 3422, 4672, 468, 4721, 30, 14603, 6894, 279, 4892, 618, 24436, 15233, 1282, 3007, 468, 385, 3412, 17, 6976, 22, 17, 713, 2947, 471, 385, 3412, 17, 6976, ...
return "(switch%s %s\n %s%s)" % (props(), o(n.discriminant,i,c), i,
return "(SWITCH%s %s\n %s%s)" % (props(), o(n.discriminant,i,c), i,
def props(): if c["include_props"]: props_to_include = [x for x in ("lineno", "start", "end", "readOnly") if hasattr(n, x)] if len(props_to_include) > 0: s = " (@" for prop in props_to_include: s += " (%s %s)" % (prop, getattr(n, prop)) return s +")" return ""
df699fbcef0551b57fbcf593691a41515ef3b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4710/df699fbcef0551b57fbcf593691a41515ef3b880/sexp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3458, 13332, 309, 276, 9614, 6702, 67, 9693, 11929, 30, 3458, 67, 869, 67, 6702, 273, 306, 92, 364, 619, 316, 7566, 17782, 3113, 315, 1937, 3113, 315, 409, 3113, 315, 896, 3386, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3458, 13332, 309, 276, 9614, 6702, 67, 9693, 11929, 30, 3458, 67, 869, 67, 6702, 273, 306, 92, 364, 619, 316, 7566, 17782, 3113, 315, 1937, 3113, 315, 409, 3113, 315, 896, 3386, 7923, ...
product_ids = [move.product_id.id for move in self.pool.get('stock.move').browse(cr, uid, recent_move_ids)]
product_ids = [move.product_id.id for move in self.pool.get('stock.move').browse(cr, uid, recent_move_ids) if move.product_id.state != 'obsolete']
def export_inventory(self, cr, uid, ids, ctx=None): if ctx is None: ctx = {} for shop in self.browse(cr, uid, ids): ctx['shop_id'] = shop.id ctx['conn_obj'] = self.external_connection(cr, uid, shop.referential_id) product_ids = [product.id for product in shop.exportable_product_ids] if shop.last_inventory_export_date: ...
69f22070e72e628fb5796548d398ad0e153a6b47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/69f22070e72e628fb5796548d398ad0e153a6b47/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 26024, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1103, 33, 7036, 4672, 309, 1103, 353, 599, 30, 1103, 273, 2618, 364, 12122, 316, 365, 18, 25731, 12, 3353, 16, 4555, 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, 3359, 67, 26024, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1103, 33, 7036, 4672, 309, 1103, 353, 599, 30, 1103, 273, 2618, 364, 12122, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, ...
cty.c_int, FL_COLOR],
cty.c_int, FL_COLOR],
def fl_insert_xyplot_data(ob, id, n, x, y): """ fl_insert_xyplot_data(ob, id, n, x, y) """ _fl_insert_xyplot_data(ob, id, n, x, y)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 6387, 67, 1698, 4032, 67, 892, 12, 947, 16, 612, 16, 290, 16, 619, 16, 677, 4672, 3536, 1183, 67, 6387, 67, 1698, 4032, 67, 892, 12, 947, 16, 612, 16, 290, 16, 619, 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, 1183, 67, 6387, 67, 1698, 4032, 67, 892, 12, 947, 16, 612, 16, 290, 16, 619, 16, 677, 4672, 3536, 1183, 67, 6387, 67, 1698, 4032, 67, 892, 12, 947, 16, 612, 16, 290, 16, 619, 16, ...
response = xmlrpclib.dumps( xmlrpclib.Fault(xen.xend.XendClient.ERROR_INTERNAL, str(exn)))
if isinstance(exn, xmlrpclib.Fault): response = xmlrpclib.dumps(exn) else: log.exception('Internal error handling %s', method) response = xmlrpclib.dumps( xmlrpclib.Fault(xen.xend.XendClient.ERROR_INTERNAL, str(exn)))
def _marshaled_dispatch(self, data, dispatch_method = None): params, method = xmlrpclib.loads(data) if False: # Enable this block of code to exit immediately without sending # a response. This allows you to test client-side crash handling. import sys sys.exit(1) try: if dispatch_method is not None: response = dispatch...
ef21aafb2dc66597f4d3003b8d331e3ef9112849 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/ef21aafb2dc66597f4d3003b8d331e3ef9112849/xmlrpclib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 859, 16, 707, 273, 2025, 13832, 830, 495, 18, 17135, 12, 892, 13, 309, 1083, 30, 468, 9677, 333, 120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 859, 16, 707, 273, 2025, 13832, 830, 495, 18, 17135, 12, 892, 13, 309, 1083, 30, 468, 9677, 333, 120...
constants.CHANDLER_MAIL_FOLDER: _(u"Add messages to this folder to add them to your Mail Dashboard."), constants.CHANDLER_STARRED_FOLDER: _(u"Add messages to this folder to add them to your Starred Items Dashboard."), constants.CHANDLER_EVENTS_FOLDER: _(u"Add messages to this folder to add them to your Calendar.")
constants.CHANDLER_MAIL_FOLDER: _(u"Add messages here to download them into Chandler as mail."), constants.CHANDLER_STARRED_FOLDER: _(u"Add messages here to download them into Chandler as starred messages."), constants.CHANDLER_EVENTS_FOLDER: _(u"Add messages here to download them into Chandler as events.")
def getSuccessText(self, statusValue): descriptions = { constants.CHANDLER_MAIL_FOLDER: _(u"Add messages to this folder to add them to your Mail Dashboard."), constants.CHANDLER_STARRED_FOLDER: _(u"Add messages to this folder to add them to your Starred Items Dashboard."), constants.CHANDLER_EVENTS_FOLDER: _(u"Add mess...
3b831f9b81323b15070a42b9b890c2c02ace7a8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9228/3b831f9b81323b15070a42b9b890c2c02ace7a8b/AccountPreferencesDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 2825, 1528, 12, 2890, 16, 1267, 620, 4672, 15550, 273, 288, 6810, 18, 1792, 4307, 14668, 67, 18191, 67, 17357, 30, 389, 12, 89, 6, 986, 2743, 2674, 358, 4224, 2182, 1368, 1680, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 2825, 1528, 12, 2890, 16, 1267, 620, 4672, 15550, 273, 288, 6810, 18, 1792, 4307, 14668, 67, 18191, 67, 17357, 30, 389, 12, 89, 6, 986, 2743, 2674, 358, 4224, 2182, 1368, 1680, 4...
if self.get_flags() != '':
if self.get_flags():
def remove_flag(self, flag): """Unset the given string flag(s) without changing others.""" if self.get_flags() != '': self.set_flags(''.join(set(self.get_flags()) - set(flag)))
3ae5cf1ce9baf6330ccf73291ebfeaee2c111013 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3ae5cf1ce9baf6330ccf73291ebfeaee2c111013/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 6420, 12, 2890, 16, 2982, 4672, 3536, 13250, 326, 864, 533, 2982, 12, 87, 13, 2887, 12770, 10654, 12123, 309, 365, 18, 588, 67, 7133, 13332, 365, 18, 542, 67, 7133, 2668, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 67, 6420, 12, 2890, 16, 2982, 4672, 3536, 13250, 326, 864, 533, 2982, 12, 87, 13, 2887, 12770, 10654, 12123, 309, 365, 18, 588, 67, 7133, 13332, 365, 18, 542, 67, 7133, 2668, 103...
threshold = 0.1
def detect_directions(lines): assert(lines.total >= 2) threshold = 0.1 s_lines = sorted([(l[0], l[1]) for l in lines], key = lambda x: x[1]) axes = [] rho, theta = s_lines[0] axes.append((theta, [(rho, theta)])) for rho, theta in s_lines[1:]: if abs(theta - axes[-1][0]) < 0.1: axes[-1][1].append((rho, theta)) else: axe...
1b93b107da0e0efbaf850effa86d8a03bd20218b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/1b93b107da0e0efbaf850effa86d8a03bd20218b/imageproc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 9855, 87, 12, 3548, 4672, 1815, 12, 3548, 18, 4963, 1545, 576, 13, 272, 67, 3548, 273, 3115, 3816, 12, 80, 63, 20, 6487, 328, 63, 21, 5717, 364, 328, 316, 2362, 6487, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 9855, 87, 12, 3548, 4672, 1815, 12, 3548, 18, 4963, 1545, 576, 13, 272, 67, 3548, 273, 3115, 3816, 12, 80, 63, 20, 6487, 328, 63, 21, 5717, 364, 328, 316, 2362, 6487, 498, ...
now = time.localtime(val)
if val == 0: now = time.localtime() else: now = time.localtime(val)
def encodeDPT10(self,val): ## checktype default unix timestamp ## except standard timestring 20:15 or 20:15:34 or Mo 20:14:55 weekday = 0 hour = 0 min = 0 sec = 0 if type(val) == str: ## check for weekday if val[0].isalpha(): ## extract Weekday day,val = val.split(" ",1) ## Fixme: I18N day = day.lower() weekdays = ["",...
54d8f791f2ea878153ca464a5c61d27be6039cba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5166/54d8f791f2ea878153ca464a5c61d27be6039cba/DPT_Types.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 40, 1856, 2163, 12, 2890, 16, 1125, 4672, 7541, 866, 723, 805, 9753, 2858, 7541, 1335, 4529, 4124, 371, 4200, 30, 3600, 578, 4200, 30, 3600, 30, 5026, 578, 14987, 4200, 30, 3461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 40, 1856, 2163, 12, 2890, 16, 1125, 4672, 7541, 866, 723, 805, 9753, 2858, 7541, 1335, 4529, 4124, 371, 4200, 30, 3600, 578, 4200, 30, 3600, 30, 5026, 578, 14987, 4200, 30, 3461, ...
table.StripTableName(VetoDefTable.tableName): VetoDefTable
table.StripTableName(VetoDefTable.tableName): VetoDefTable, table.StripTableName(SummMimeTable.tableName): SummMimeTable
def set_time(self, gps): self.time, self.time_ns = gps.seconds, gps.nanoseconds
790e41049b30b9f04066720fecb3a8636264da4a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/790e41049b30b9f04066720fecb3a8636264da4a/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 957, 12, 2890, 16, 20985, 4672, 365, 18, 957, 16, 365, 18, 957, 67, 2387, 273, 20985, 18, 7572, 16, 20985, 18, 13569, 23272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 957, 12, 2890, 16, 20985, 4672, 365, 18, 957, 16, 365, 18, 957, 67, 2387, 273, 20985, 18, 7572, 16, 20985, 18, 13569, 23272, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
def _check_other_commands(self):
def check_other_commands(self):
def _check_other_commands(self): try: c = self._client() c.speak("Testing other commands:") c.char("a") c.key("shift_b") c.sound_icon("empty") finally: c.close()
1b9acb1f1086e79e1ce4152acf9f31016bfcbefa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7484/1b9acb1f1086e79e1ce4152acf9f31016bfcbefa/_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3011, 67, 7847, 12, 2890, 4672, 775, 30, 276, 273, 365, 6315, 2625, 1435, 276, 18, 87, 10244, 2932, 22218, 1308, 4364, 2773, 13, 276, 18, 3001, 2932, 69, 7923, 276, 18, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3011, 67, 7847, 12, 2890, 4672, 775, 30, 276, 273, 365, 6315, 2625, 1435, 276, 18, 87, 10244, 2932, 22218, 1308, 4364, 2773, 13, 276, 18, 3001, 2932, 69, 7923, 276, 18, 856, ...
if timeSinceFirstFound > 60 * 60 * 2:
if timeSinceFirstFound > 60 * 60 * 24 * 7:
def setLinkDead(self, url, error, page): """ Adds the fact that the link was found dead to the .dat file. """ self.semaphore.acquire() now = time.time() if self.historyDict.has_key(url): timeSinceFirstFound = now - self.historyDict[url][0][1] timeSinceLastFound= now - self.historyDict[url][-1][1] # if the last time we ...
5ac668063670d5191a766a69b97c3dbb18bd4375 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5ac668063670d5191a766a69b97c3dbb18bd4375/weblinkchecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2098, 11852, 12, 2890, 16, 880, 16, 555, 16, 1363, 4672, 3536, 15605, 326, 5410, 716, 326, 1692, 1703, 1392, 8363, 358, 326, 263, 3404, 585, 18, 3536, 365, 18, 307, 1458, 76, 479,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2098, 11852, 12, 2890, 16, 880, 16, 555, 16, 1363, 4672, 3536, 15605, 326, 5410, 716, 326, 1692, 1703, 1392, 8363, 358, 326, 263, 3404, 585, 18, 3536, 365, 18, 307, 1458, 76, 479,...
result = result + self.section('NAME', name) try: file = inspect.getabsfile(object) except TypeError: file = '(built-in)'
result = self.section('NAME', name) try: file = inspect.getabsfile(object) except TypeError: file = '(built-in)'
def docmodule(self, object): """Produce text documentation for a given module object.""" result = ''
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 1605, 733, 12123, 563, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 1605, 733, 12123, 563, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
@type height: float
@type height: int
def setRenderWindowDimensions(self, width, height): """ Sets the render window dimensions
9fdcf57a3e43c683a74923d57a14b76868437bf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/9fdcf57a3e43c683a74923d57a14b76868437bf3/renderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3420, 3829, 10796, 12, 2890, 16, 1835, 16, 2072, 4672, 3536, 11511, 326, 1743, 2742, 5769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 3420, 3829, 10796, 12, 2890, 16, 1835, 16, 2072, 4672, 3536, 11511, 326, 1743, 2742, 5769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
elif val.find(" ") != -1: val = "\"" + val + "\""
else: val = val.replace('"',"'") if val.find(" ") != -1: val = "\"" + val + "\""
def oneField(field): val = MISSING_VALUE if field in parsed: val = parsed[field] if val == None: if OPTIONS.verbose: print >> sys.stderr, 'field', field, 'is missing in', parsed['id'] elif val.find(" ") != -1: val = "\"" + val + "\"" return val
501d44fa046202d0d3ce06eadf506f6124cbd179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2773/501d44fa046202d0d3ce06eadf506f6124cbd179/analyzeRunReports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1245, 974, 12, 1518, 4672, 1244, 273, 28695, 67, 4051, 309, 652, 316, 2707, 30, 1244, 273, 2707, 63, 1518, 65, 309, 1244, 422, 599, 30, 309, 16726, 18, 11369, 30, 1172, 1671, 2589, 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, 1245, 974, 12, 1518, 4672, 1244, 273, 28695, 67, 4051, 309, 652, 316, 2707, 30, 1244, 273, 2707, 63, 1518, 65, 309, 1244, 422, 599, 30, 309, 16726, 18, 11369, 30, 1172, 1671, 2589, 18,...
return not abs(cmp(a, b))
return not abs(cmp(a, b, sh, st))
def _cmp(a, b): try: return not abs(cmp(a, b)) except os.error: return 2
d4f5db66816c3edc4c766d8087eaed92a7315099 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d4f5db66816c3edc4c766d8087eaed92a7315099/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 12, 69, 16, 324, 4672, 775, 30, 327, 486, 2417, 12, 9625, 12, 69, 16, 324, 16, 699, 16, 384, 3719, 1335, 1140, 18, 1636, 30, 327, 576, 282, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 12, 69, 16, 324, 4672, 775, 30, 327, 486, 2417, 12, 9625, 12, 69, 16, 324, 16, 699, 16, 384, 3719, 1335, 1140, 18, 1636, 30, 327, 576, 282, 2, -100, -100, -100, -100, -1...
self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Def', tc) self.initdef = "\n%sdef __init__(self, name = None, ns = None, **kw):" % ID2
self.classdef.set('\n\n%sclass %s(%s):' \ % (ID1, tp.getName() + '_Def', tc)) self.initdef.set("\n%sdef __init__(self, name = None, ns = None, **kw):" % ID2)
self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Def', tc)
e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 1106, 536, 282, 273, 2337, 82, 64, 82, 9, 1017, 459, 738, 87, 9275, 87, 13, 2497, 738, 261, 734, 21, 16, 8071, 18, 17994, 1435, 521, 397, 2070, 3262, 2187, 1715, 13, 2, 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, 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, 365, 18, 1106, 536, 282, 273, 2337, 82, 64, 82, 9, 1017, 459, 738, 87, 9275, 87, 13, 2497, 738, 261, 734, 21, 16, 8071, 18, 17994, 1435, 521, 397, 2070, 3262, 2187, 1715, 13, 2, -100, -1...
queries = self.db.user.get(self.userid, 'queries') queries.append(qid) self.db.user.set(self.userid, queries=queries)
queries = self.db.user.get(self.userid, 'queries') queries.append(qid) self.db.user.set(self.userid, queries=queries)
def searchAction(self, wcre=re.compile(r'[\s,]+')): ''' Mangle some of the form variables.
d44660a05231f2f3065e60c0984db4b1d37bc837 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d44660a05231f2f3065e60c0984db4b1d37bc837/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 1803, 12, 2890, 16, 341, 1793, 33, 266, 18, 11100, 12, 86, 11, 7438, 87, 16, 3737, 26112, 30, 9163, 490, 4341, 2690, 434, 326, 646, 3152, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 1803, 12, 2890, 16, 341, 1793, 33, 266, 18, 11100, 12, 86, 11, 7438, 87, 16, 3737, 26112, 30, 9163, 490, 4341, 2690, 434, 326, 646, 3152, 18, 2, -100, -100, -100, -100, -100, -...
elif file == "HTMLtree" or file == "HTMLparser":
elif file == "HTMLtree" or file == "HTMLparser" or name[0:4] == "html":
output.write("#ifdef LIBXML_SCHEMAS_ENABLED\n");
656ce948ab664ce96298c5f419a03a7ffcc88d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/656ce948ab664ce96298c5f419a03a7ffcc88d9d/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 876, 18, 2626, 2932, 7, 430, 536, 23983, 4201, 67, 55, 10390, 3033, 67, 13560, 64, 82, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 876, 18, 2626, 2932, 7, 430, 536, 23983, 4201, 67, 55, 10390, 3033, 67, 13560, 64, 82, 8863, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ShortField("listen_interval", 0xc800) ]
LEShortField("listen_interval", 0x00c8) ]
def mysummary(self): if self.ID == 0: return "SSID=%s"%repr(self.info),[Dot11] else: return ""
9e997e264462646e694ada714420b482033b3cd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/9e997e264462646e694ada714420b482033b3cd6/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 7687, 12, 2890, 4672, 309, 365, 18, 734, 422, 374, 30, 327, 315, 1260, 734, 5095, 87, 28385, 12715, 12, 2890, 18, 1376, 3631, 63, 10412, 2499, 65, 469, 30, 327, 1408, 2, 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, 3399, 7687, 12, 2890, 4672, 309, 365, 18, 734, 422, 374, 30, 327, 315, 1260, 734, 5095, 87, 28385, 12715, 12, 2890, 18, 1376, 3631, 63, 10412, 2499, 65, 469, 30, 327, 1408, 2, -100, ...
if 'preview' in req.args:
if not resource_new:
def _render_property_diff(self, req, ticket, field, old, new): rendered = None # per type special rendering of diffs type_ = None for f in ticket.fields: if f['name'] == field: type_ = f['type'] break if type_ == 'checkbox': rendered = new == '1' and "set" or "unset" elif type_ == 'textarea': if 'preview' in req.args: ...
a6beba53faca2ec5bd26db873d91a5a01a86071a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/a6beba53faca2ec5bd26db873d91a5a01a86071a/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 4468, 67, 5413, 12, 2890, 16, 1111, 16, 9322, 16, 652, 16, 1592, 16, 394, 4672, 7935, 273, 599, 468, 1534, 618, 4582, 9782, 434, 15250, 618, 67, 273, 599, 364, 284, 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, 5902, 67, 4468, 67, 5413, 12, 2890, 16, 1111, 16, 9322, 16, 652, 16, 1592, 16, 394, 4672, 7935, 273, 599, 468, 1534, 618, 4582, 9782, 434, 15250, 618, 67, 273, 599, 364, 284, 31...
self._visa.write(query) time.sleep(0.02)
self.write(query)
def ask(self, query): try: self._visa.write(query) time.sleep(0.02) reply = self._visa.read() return reply.rstrip(' \t\r\n') except Exception, e: logging.error('Failed to ask ARC200') return ''
217ba6a166e16b06110f206f8e7524a08d2d00b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/217ba6a166e16b06110f206f8e7524a08d2d00b7/Attocube_ARC200.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 12, 2890, 16, 843, 4672, 775, 30, 365, 18, 2626, 12, 2271, 13, 4332, 273, 365, 6315, 3516, 69, 18, 896, 1435, 327, 4332, 18, 86, 6406, 2668, 521, 88, 64, 86, 64, 82, 6134, 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, 6827, 12, 2890, 16, 843, 4672, 775, 30, 365, 18, 2626, 12, 2271, 13, 4332, 273, 365, 6315, 3516, 69, 18, 896, 1435, 327, 4332, 18, 86, 6406, 2668, 521, 88, 64, 86, 64, 82, 6134, 13...
gLogger.error("The replica you are trying to remove is the only one.","%s @ %s" % (lfn,storageElementName))
gLogger.error( "The replica you are trying to remove is the only one.", "%s @ %s" % ( lfn, storageElementName ) )
def removeReplica(self,storageElementName,lfn): """ Remove replica at the supplied Storage Element from Storage Element then file catalogue 'storageElementName' is the storage where the file is to be removed 'lfn' is the file to be removed """ if type(lfn) == types.ListType: lfns = lfn elif type(lfn) == types.StringTy...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 14222, 12, 2890, 16, 5697, 30584, 16, 80, 4293, 4672, 3536, 3581, 12335, 622, 326, 4580, 5235, 3010, 628, 5235, 3010, 1508, 585, 20833, 225, 296, 5697, 30584, 11, 353, 326, 2502, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14222, 12, 2890, 16, 5697, 30584, 16, 80, 4293, 4672, 3536, 3581, 12335, 622, 326, 4580, 5235, 3010, 628, 5235, 3010, 1508, 585, 20833, 225, 296, 5697, 30584, 11, 353, 326, 2502, 1...
genpluginproject("ppc", "_Mlte", libraries=["Textension"], outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Mlte", libraries=["Textension"], libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload", libraryflags=None, stdlibraryflags=None, prefixname=None): if architecture == "all": # For the time being we generate two project files....
150f9fc415d529faf327290ae61f0a86035b25ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/150f9fc415d529faf327290ae61f0a86035b25ed/genpluginprojects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487,...
""" c = [[x+1] for x in range(n)] c[n-1] = [] return LatticePoset(c)
TESTS: Check that sage: Posets.ChainPoset(0) Finite lattice containing 0 elements sage: C = Posets.ChainPoset(1); C Finite lattice containing 1 elements sage: C.cover_relations() [] sage: C = Posets.ChainPoset(2); C Finite lattice containing 2 elements sage: C.cover_relations() [[0, 1]] """ return LatticePoset((rang...
def ChainPoset(self, n): """ Returns a chain (a totally ordered poset) containing ``n`` elements.
f6df801a959469ca4edc92b985ba83b784a85a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f6df801a959469ca4edc92b985ba83b784a85a2c/poset_examples.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7824, 1616, 278, 12, 2890, 16, 290, 4672, 3536, 2860, 279, 2687, 261, 69, 9997, 1230, 5901, 949, 278, 13, 4191, 12176, 82, 10335, 2186, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7824, 1616, 278, 12, 2890, 16, 290, 4672, 3536, 2860, 279, 2687, 261, 69, 9997, 1230, 5901, 949, 278, 13, 4191, 12176, 82, 10335, 2186, 18, 2, -100, -100, -100, -100, -100, -100, -100, ...
ret = ctxt.eval(""" ({ 'test': function(){ return [ [ 1, 'abla' ], [ 2, 'ajkss' ], ] } })
ret = ctxt.eval(""" ({ 'test': function(){ return [ [ 1, 'abla' ], [ 2, 'ajkss' ], ] } })
def testMultiDimArray(self): with JSContext() as ctxt: ret = ctxt.eval(""" ({ 'test': function(){ return [ [ 1, 'abla' ], [ 2, 'ajkss' ], ] } }) """).test() self.assertEquals([[1, 'abla'], [2, 'ajkss']], convert(ret))
d76ea3f452d147f051e65b20fdab9b87a8b84413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2065/d76ea3f452d147f051e65b20fdab9b87a8b84413/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5002, 5225, 1076, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 14286, 30, 325, 273, 14286, 18, 8622, 2932, 3660, 10797, 296, 3813, 4278, 445, 1435, 95, 327, 225, 306, 306, 404, 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, 1842, 5002, 5225, 1076, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 14286, 30, 325, 273, 14286, 18, 8622, 2932, 3660, 10797, 296, 3813, 4278, 445, 1435, 95, 327, 225, 306, 306, 404, 16, ...
assert_almost_equal(np.log(x), y)
assert_almost_equal_spec(np.log(x), y)
def test_special_values(self): xl = [] yl = []
c60575349b5810b393eb3092a591ac429325074c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/c60575349b5810b393eb3092a591ac429325074c/test_umath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 67, 2372, 12, 2890, 4672, 15643, 273, 5378, 677, 80, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 67, 2372, 12, 2890, 4672, 15643, 273, 5378, 677, 80, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.progress = 100.0*float(count*blockSize)/float(totalSize)
try: self.progress = 100.0*float(count*blockSize)/float(totalSize) except ZeroDivisionError, zde: log('Totalsize unknown, cannot determine progress.', sender=self) self.progress = 100.0
def status_updated( self, count, blockSize, totalSize): if totalSize: # We see a different "total size" while downloading, # so correct the total size variable in the thread if totalSize != self.total_size and totalSize > 0: log('Correcting file size for %s from %d to %d while downloading.', self.url, self.total_size, ...
6cd6f72c22ffb9e5df9024a3c16141169b480435 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/6cd6f72c22ffb9e5df9024a3c16141169b480435/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1267, 67, 7007, 12, 365, 16, 1056, 16, 13766, 16, 24611, 4672, 309, 24611, 30, 468, 1660, 2621, 279, 3775, 315, 4963, 963, 6, 1323, 23742, 16, 468, 1427, 3434, 326, 2078, 963, 2190, 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, 1267, 67, 7007, 12, 365, 16, 1056, 16, 13766, 16, 24611, 4672, 309, 24611, 30, 468, 1660, 2621, 279, 3775, 315, 4963, 963, 6, 1323, 23742, 16, 468, 1427, 3434, 326, 2078, 963, 2190, 31...
if not prop.empty(v): setattr(obj, prop.name, v) obj._auto_update = True
return v
def get_property(self, prop, obj, name): qs = """SELECT "%s" FROM "%s" WHERE id='%s';""" % (name, self.db_table, obj.id) self.cursor.execute(qs, None) if self.cursor.rowcount == 1: obj._auto_update = False rs = self.cursor.fetchone() for prop in obj.properties(hidden=False): if prop.name == name: v = self.decode_value(...
19eae2e9d33292744ef02f084f60cd7139e39bf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/19eae2e9d33292744ef02f084f60cd7139e39bf0/pgmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4468, 12, 2890, 16, 2270, 16, 1081, 16, 508, 4672, 8719, 273, 3536, 4803, 2213, 87, 6, 4571, 2213, 87, 6, 4852, 612, 28713, 87, 13506, 8395, 738, 261, 529, 16, 365, 18, 1966...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4468, 12, 2890, 16, 2270, 16, 1081, 16, 508, 4672, 8719, 273, 3536, 4803, 2213, 87, 6, 4571, 2213, 87, 6, 4852, 612, 28713, 87, 13506, 8395, 738, 261, 529, 16, 365, 18, 1966...
self.assertEqual(User.prompt_with_list("title", options, can_choose_multiple=can_choose_multiple, raw_input=mock_raw_input), expected_result)
output_capture = OutputCapture() actual_result = output_capture.assert_outputs( self, User.prompt_with_list, args=["title", ["foo", "bar"]], kwargs={"can_choose_multiple": can_choose_multiple, "raw_input": mock_raw_input}, expected_stdout="title\n 1. foo\n 2. bar\n") self.assertEqual(actual_result, expected_result)
def mock_raw_input(message): return inputs.pop(0)
94ad005371f1429bbdca44b4aa5908e477de2c8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/94ad005371f1429bbdca44b4aa5908e477de2c8c/user_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5416, 67, 1899, 67, 2630, 12, 2150, 4672, 327, 4540, 18, 5120, 12, 20, 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,...
[ 1, 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, 5416, 67, 1899, 67, 2630, 12, 2150, 4672, 327, 4540, 18, 5120, 12, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if rtype == mm_cfg.HELDMSG:
if rtype == HELDMSG:
def HandleRequest(self, id, value, comment): self.__opendb() rtype, data = self.__db[id] del self.__db[id] if rtype == mm_cfg.HELDMSG: self.__handlepost(data, value, comment) else: assert rtype == mm_cfg.SUBSCRIPTION self.__handlesubscription(data, value, comment)
af1fd3ec170fe88a3989e311b6a1288555faaeb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/af1fd3ec170fe88a3989e311b6a1288555faaeb3/ListAdmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 691, 12, 2890, 16, 612, 16, 460, 16, 2879, 4672, 365, 16186, 556, 409, 70, 1435, 9328, 16, 501, 273, 365, 16186, 1966, 63, 350, 65, 1464, 365, 16186, 1966, 63, 350, 65, 309, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 691, 12, 2890, 16, 612, 16, 460, 16, 2879, 4672, 365, 16186, 556, 409, 70, 1435, 9328, 16, 501, 273, 365, 16186, 1966, 63, 350, 65, 1464, 365, 16186, 1966, 63, 350, 65, 309, 93...
try: accepted = cls.dispatch(None, msg) return [m.text for m in msg.responses]\ if accepted else False
conn, created = Connection.objects.get_or_create( backend=cls._mock_backend, identity=identity)
... def dispatch(cls, router, msg):
e60e9938975d05c80473db5f5b5aaa5ae94bbd65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/e60e9938975d05c80473db5f5b5aaa5ae94bbd65/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 3435, 12, 6429, 16, 4633, 16, 1234, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 3435, 12, 6429, 16, 4633, 16, 1234, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
...
u'foo & bar \\xbb foo'
def replace_entities(string): """Replace HTML entities in a string: >>> replace_entities('foo &amp; bar &raquo; foo') ... """ def handle_match(m): name = m.group(1) if name in _html_entities: return unichr(_html_entities[name]) if name[:2] in ('#x', '#X'): try: return unichr(int(name[2:], 16)) except ValueError: retur...
12a0736b6fcf717c79872eb4da497ebd9893e929 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/12a0736b6fcf717c79872eb4da497ebd9893e929/xml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 9996, 12, 1080, 4672, 3536, 5729, 3982, 5140, 316, 279, 533, 30, 225, 4080, 1453, 67, 9996, 2668, 11351, 473, 931, 31, 4653, 473, 354, 372, 83, 31, 8431, 6134, 582, 11, 11351...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 9996, 12, 1080, 4672, 3536, 5729, 3982, 5140, 316, 279, 533, 30, 225, 4080, 1453, 67, 9996, 2668, 11351, 473, 931, 31, 4653, 473, 354, 372, 83, 31, 8431, 6134, 582, 11, 11351...
shutil.rmtree('tmp/tmp')
try: shutil.rmtree('tmp/tmp') except: reason = 'Cannot remove tmp/tmp after drv = %s, nBands = %d, datatype = %s' % (drv.ShortName, nBands, gdal.GetDataTypeName(datatype)) gdaltest.post_reason(reason) return False
def misc_6_internal(datatype, nBands): if nBands == 0: ds = gdal.GetDriverByName('ILWIS').Create('tmp/tmp.mpl', 100, 100, nBands, datatype) else: ds = gdal.GetDriverByName('GTiff').Create('tmp/tmp.tif', 10, 10, nBands, datatype) ds.GetRasterBand(1).Fill(255) ds.SetGeoTransform([2,1.0/10,0,49,0,-1.0/10]) ds.SetProjectio...
1a3408c27c19cefb5b5ae262c1ed0e9c4da51fb1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/1a3408c27c19cefb5b5ae262c1ed0e9c4da51fb1/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20448, 67, 26, 67, 7236, 12, 21540, 16, 290, 26554, 4672, 309, 290, 26554, 422, 374, 30, 3780, 273, 15551, 287, 18, 967, 4668, 5911, 2668, 2627, 59, 5127, 16063, 1684, 2668, 5645, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20448, 67, 26, 67, 7236, 12, 21540, 16, 290, 26554, 4672, 309, 290, 26554, 422, 374, 30, 3780, 273, 15551, 287, 18, 967, 4668, 5911, 2668, 2627, 59, 5127, 16063, 1684, 2668, 5645, 19, ...
self.normal_aus_tooltip = unicode(self.author_sort.toolTip())
base = unicode(self.author_sort.toolTip()) self.ok_aus_tooltip = '<p>' + textwrap.fill(base+'<br><br>'+ _(' The green color indicates that the current ' 'author sort matches the current author')) self.bad_aus_tooltip = '<p>'+textwrap.fill(base + '<br><br>'+ _(' The red color indicates that the current ' 'author sort do...
def __init__(self, window, row, db, accepted_callback=None, cancel_all=False): ResizableDialog.__init__(self, window) self.bc_box.layout().setAlignment(self.cover, Qt.AlignCenter|Qt.AlignHCenter) self.cancel_all = False self.normal_aus_tooltip = unicode(self.author_sort.toolTip()) if cancel_all: self.__abort_button = s...
40ee6a2140c963f575aaec506108448e0fa1ac4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/40ee6a2140c963f575aaec506108448e0fa1ac4c/metadata_single.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 16, 1027, 16, 1319, 16, 8494, 67, 3394, 33, 7036, 16, 3755, 67, 454, 33, 8381, 4672, 1124, 6934, 6353, 16186, 2738, 972, 12, 2890, 16, 2742, 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, 1001, 2738, 972, 12, 2890, 16, 2742, 16, 1027, 16, 1319, 16, 8494, 67, 3394, 33, 7036, 16, 3755, 67, 454, 33, 8381, 4672, 1124, 6934, 6353, 16186, 2738, 972, 12, 2890, 16, 2742, 13, ...
return 'H'
return runstate
def waitForJobToRun(self, num): self.logger.log(Log.DEBUG, "CondorJobs:waitForJobToRun") jobNum = "%s.0" % num queueExp = re.compile("\S+") cJobSeen = 0 print "waiting for job %s to run." % num print "this might take a few minutes" secondsWaited = 0 while 1: pop = os.popen("condor_q", "r") bJobSeenNow = False if (secon...
c92a87c74e95ac4cf2b8a95c4fce14cbed793e54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/c92a87c74e95ac4cf2b8a95c4fce14cbed793e54/CondorJobs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10712, 2278, 774, 1997, 12, 2890, 16, 818, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 12441, 280, 7276, 30, 7048, 1290, 2278, 774, 1997, 7923, 1719, 2578, 273, 2213, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10712, 2278, 774, 1997, 12, 2890, 16, 818, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 12441, 280, 7276, 30, 7048, 1290, 2278, 774, 1997, 7923, 1719, 2578, 273, 2213, 8...
if 'stdin' in infiles: open('%s.stdin' % testname, 'w').write(input)
def runtest(testname, command, diff_method, infiles, outfiles, capture_output=True, keep_all_files=False): for name, contents in infiles.iteritems(): if name != 'stdin': f = open(name,'w') f.writelines(contents) f.close() # Remove old output files for name, contents in outfiles.iteritems(): if name != 'stdout': if os...
037beccedc6fd1f49336208e4d4dd5f68516c235 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/037beccedc6fd1f49336208e4d4dd5f68516c235/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 3813, 529, 16, 1296, 16, 3122, 67, 2039, 16, 316, 2354, 16, 596, 2354, 16, 7477, 67, 2844, 33, 5510, 16, 3455, 67, 454, 67, 2354, 33, 8381, 4672, 225, 364, 508, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 3813, 529, 16, 1296, 16, 3122, 67, 2039, 16, 316, 2354, 16, 596, 2354, 16, 7477, 67, 2844, 33, 5510, 16, 3455, 67, 454, 67, 2354, 33, 8381, 4672, 225, 364, 508, 16, ...
d = self.gridinterval
d = int(round(self.gridinterval))
def _drawaxis(self, cw, ch): cursor = 'tcross' background = 'gray80' cardinal = 'black' self._canvas.configure(cursor=cursor, bg=background) if self._blocked: # mark region blocked by photodiode.. (x1, y1) = self.fb2can(self._blocked[0], self._blocked[1]) self._canvas.create_line(x1, ch, x1, y1, width=3, fill='black'...
7548973dee935dda9c1039964c571d0921c4dde4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5701/7548973dee935dda9c1039964c571d0921c4dde4/userdpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9446, 4890, 12, 2890, 16, 14098, 16, 462, 4672, 3347, 273, 296, 5111, 3984, 11, 5412, 273, 296, 22440, 3672, 11, 5270, 1490, 273, 296, 11223, 11, 225, 365, 6315, 15424, 18, 14895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9446, 4890, 12, 2890, 16, 14098, 16, 462, 4672, 3347, 273, 296, 5111, 3984, 11, 5412, 273, 296, 22440, 3672, 11, 5270, 1490, 273, 296, 11223, 11, 225, 365, 6315, 15424, 18, 14895, ...
elif opt[0] in ("-L", "--runtime-limit"):
elif opt[0] in ("-L", "--limit"):
def _task_build_params( task_name, argv, description="", help_specific_usage="", version=__revision__, specific_params=("", []), task_submit_elaborate_specific_parameter_fnc=None, task_submit_check_options_fnc=None): """ Build the BibTask params. @param argv a list of string as in sys.argv @param description is the gen...
83bf104f28b02316d29d8cf6f2faa75ad4726d30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/83bf104f28b02316d29d8cf6f2faa75ad4726d30/bibtask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4146, 67, 3510, 67, 2010, 12, 1562, 67, 529, 16, 5261, 16, 2477, 1546, 3113, 2809, 67, 12524, 67, 9167, 1546, 3113, 1177, 33, 972, 13057, 972, 16, 2923, 67, 2010, 33, 2932, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4146, 67, 3510, 67, 2010, 12, 1562, 67, 529, 16, 5261, 16, 2477, 1546, 3113, 2809, 67, 12524, 67, 9167, 1546, 3113, 1177, 33, 972, 13057, 972, 16, 2923, 67, 2010, 33, 2932, 3113, ...
print entry
def parse(self): """ Continously read from LDIF file and parse input """ self._line = self._inputfile.readline()
5376625021f39b5ee278a780f3fb62a78b37b107 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/5376625021f39b5ee278a780f3fb62a78b37b107/ldif.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 3536, 1816, 267, 1481, 715, 855, 628, 511, 2565, 42, 585, 471, 1109, 810, 3536, 365, 6315, 1369, 273, 365, 6315, 2630, 768, 18, 896, 1369, 1435, 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, 1109, 12, 2890, 4672, 3536, 1816, 267, 1481, 715, 855, 628, 511, 2565, 42, 585, 471, 1109, 810, 3536, 365, 6315, 1369, 273, 365, 6315, 2630, 768, 18, 896, 1369, 1435, 2, -100, -100, -1...
file.Write(" c.Init(%s);\n" % args)
file.Write(" c.Init(%s, data_size);\n" % args)
def WriteImmediateCmdHelper(self, func, file): """Overrriden from TypeHandler.""" args = func.MakeOriginalArgString("") last_arg = func.GetLastOriginalArg() file.Write(" void %s(%s) {\n" % (func.name, func.MakeTypedOriginalArgString(""))) file.Write(" const uint32 size = gles2::%s::ComputeSize(%s);\n" % (func.name,...
8a837bb40249dfd9f0a2736abdab4f64592c99db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8a837bb40249dfd9f0a2736abdab4f64592c99db/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 5931, 2276, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 833, 273, 1326, 18, 6464, 8176, 4117, 780, 2932, 7923, 1142, 67, 3175, 273, 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, 2598, 22651, 5931, 2276, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 833, 273, 1326, 18, 6464, 8176, 4117, 780, 2932, 7923, 1142, 67, 3175, 273, 13...
ver_match = r'f77: (?P<version>[^\s*,]*)'
ver_match = r'f90: Sun (?P<version>[^\s*,]*)'
def get_extra_link_args(self): return [] # Couldn't get this to link for anything using gcc. #dr = "c:\\Absoft62\\lib" #libs = ['fio.lib', 'COMDLG32.lib','fmath.lib', 'f90math.lib','libcomdlg32.a' ] #libs = map(lambda x,dr=dr:os.path.join(dr,x),libs) #return libs
b539116e300999ded6f418730cce709d9cf1f028 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/b539116e300999ded6f418730cce709d9cf1f028/build_flib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7763, 67, 1232, 67, 1968, 12, 2890, 4672, 327, 5378, 468, 14312, 82, 1404, 336, 333, 358, 1692, 364, 6967, 1450, 314, 952, 18, 468, 3069, 273, 315, 71, 31027, 9382, 4401, 8898...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7763, 67, 1232, 67, 1968, 12, 2890, 4672, 327, 5378, 468, 14312, 82, 1404, 336, 333, 358, 1692, 364, 6967, 1450, 314, 952, 18, 468, 3069, 273, 315, 71, 31027, 9382, 4401, 8898...
TEST_EXCEPTION = RuntimeError("test exception")
def setUp(self): self.TEST_EXCEPTION = RuntimeError("test exception")
def shouldThrow(): with ExitThrows(): pass
0e653abb6baefc2339f2001ec51c9eff91ea0cce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/0e653abb6baefc2339f2001ec51c9eff91ea0cce/test_with.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 8282, 13332, 598, 9500, 21845, 13332, 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, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 8282, 13332, 598, 9500, 21845, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
delta = now - recipe.last_downloaded if delta > timedelta(days=recipe.schedule): needs_downloading.add(recipe)
delta = nowt - recipe.last_downloaded if recipe.schedule < 1e5: if delta > timedelta(days=recipe.schedule): needs_downloading.add(recipe) else: day, hour, minute = decode_schedule(recipe.schedule) now = time.localtime() day_matches = day > 6 or day == now.tm_wday tnow = now.tm_hour*60 + now.tm_min matches = day_matches...
def check(self): if not self.lock.tryLock(): return try: if self.dirtied: self.refresh_schedule(load_recipes()) self.dirtied = False needs_downloading = set([]) self.debug('Checking...') now = datetime.utcnow() for recipe in self.recipes: if recipe.schedule is None: continue delta = now - recipe.last_downloaded if delt...
0bb41a00a5980da0882a88d2286bdcc7eee40e69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/0bb41a00a5980da0882a88d2286bdcc7eee40e69/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 309, 486, 365, 18, 739, 18, 698, 2531, 13332, 327, 775, 30, 309, 365, 18, 1214, 88, 2092, 30, 365, 18, 9144, 67, 10676, 12, 945, 67, 266, 3449, 281, 10756, 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, 866, 12, 2890, 4672, 309, 486, 365, 18, 739, 18, 698, 2531, 13332, 327, 775, 30, 309, 365, 18, 1214, 88, 2092, 30, 365, 18, 9144, 67, 10676, 12, 945, 67, 266, 3449, 281, 10756, 365, ...