rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
<panes> g/p widgets added dynamically"""
<panes> g/p widgets added dynamically with the add method."""
def enable(self, name): self.tk.call(self._w, 'enable', name)
b7b32601281f25ffed50f8187c78a3802fa14039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b7b32601281f25ffed50f8187c78a3802fa14039/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4237, 12, 2890, 16, 508, 4672, 365, 18, 16099, 18, 1991, 12, 2890, 6315, 91, 16, 296, 7589, 2187, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4237, 12, 2890, 16, 508, 4672, 365, 18, 16099, 18, 1991, 12, 2890, 6315, 91, 16, 296, 7589, 2187, 508, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_)
def buildChildren(self, child_, nodeName_, from_subclass=False): if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) super(IDTagged, self).buildChildren(child_, nodeName_, True) pass
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 2240, 12, 734, 18674, 16, 365, 2934, 3510, 4212, 12, 3624, 67, 16, 7553, 67, 16, 1053, 13, 1342,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 2240, 12, 734, 18674, 16, 365, 2934, 3510, 4212, 12, 3624, 67, 16, 7553, 67, 16, 1053, 13, 1342,...
for idx,graph in enumerate(exprs): legend=[] plot = fig.add_subplot(1,len(exprs),idx) for time,expr,color in zip(times,str_expr,colors): speedup = [t[0].min()/t[1].min() for t in time] plot.semilogx(nb_calls, speedup, linewidth=1.0, linestyle='--', color=color) speedup = [t[0].min()/t[2].min() for t in time] plot.semil...
for idx,(time,expr) in enumerate(zip(times,str_expr)): pylab.subplot(220+idx+1) pylab.subplots_adjust(wspace=0.25, hspace=0.25) speedup = [t[0].min()/t[1].min() for t in time] pylab.semilogx(nb_calls, speedup, linewidth=1.0, linestyle = '--', color='r') speedup = [t[0].min()/t[2].min() for t in time] pylab.semilogx(n...
def execs_timeit_2vector(exprs, fname=None): """ exprs is a list of list of expr to evaluate The first level of list is put into different graph section in the same graph. The second level is the expression to put in each section """ exp = [(1,10000),(1e1,10000),(1e2,100000),(1e3,100000), (5e3,50000), (1e4,10000),(5e4,...
c621473e30281a9b95cfb47a4890f6eeb6b22b6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/c621473e30281a9b95cfb47a4890f6eeb6b22b6f/gen_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 87, 67, 957, 305, 67, 22, 7737, 12, 8638, 87, 16, 5299, 33, 7036, 4672, 3536, 22523, 353, 279, 666, 434, 666, 434, 3065, 358, 5956, 1021, 1122, 1801, 434, 666, 353, 1378, 1368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 87, 67, 957, 305, 67, 22, 7737, 12, 8638, 87, 16, 5299, 33, 7036, 4672, 3536, 22523, 353, 279, 666, 434, 666, 434, 3065, 358, 5956, 1021, 1122, 1801, 434, 666, 353, 1378, 1368, ...
try: portal = getToolByName(self, 'portal_url').getPortalObject() except ComponentLookupError, e: log('Cannot get portal', e) return catalogs
portal = getToolByName(self, 'portal_url').getPortalObject()
def getCatalogsByType(self, portal_type): """Return the catalog objects assoicated with a given type. """ catalogs = [] catalog_map = getattr(self, 'catalog_map', None) if catalog_map is not None: names = self.catalog_map.get(portal_type, ['portal_catalog']) else: names = ['portal_catalog'] # Can happen during deletio...
c9abb2066af13366c69da45dc12a516b54ad0544 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/c9abb2066af13366c69da45dc12a516b54ad0544/ArchetypeTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 21836, 14145, 12, 2890, 16, 11899, 67, 723, 4672, 3536, 990, 326, 6222, 2184, 1551, 83, 11780, 598, 279, 864, 618, 18, 3536, 26455, 273, 5378, 6222, 67, 1458, 273, 3869, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 21836, 14145, 12, 2890, 16, 11899, 67, 723, 4672, 3536, 990, 326, 6222, 2184, 1551, 83, 11780, 598, 279, 864, 618, 18, 3536, 26455, 273, 5378, 6222, 67, 1458, 273, 3869, 12, 2890, ...
writestr += fix_capitals(newstr[oldend:])
writestr += newstr[oldend:]
def process_str(allstr): newstr = allstr.lower() writestr = _head struct = parse_structure(newstr) # return a (sorted) list of tuples for each function or subroutine # each tuple is the start and end of a subroutine or function to be expanded oldend = 0 for sub in struct: writestr += fix_capitals(newstr[oldend:sub[...
f42b743431beed95b0b354e091133b66aecd50f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f42b743431beed95b0b354e091133b66aecd50f0/from_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 701, 12, 454, 701, 4672, 394, 701, 273, 777, 701, 18, 8167, 1435, 7262, 313, 273, 389, 1978, 225, 1958, 273, 1109, 67, 7627, 12, 2704, 701, 13, 468, 225, 327, 279, 261, 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, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 701, 12, 454, 701, 4672, 394, 701, 273, 777, 701, 18, 8167, 1435, 7262, 313, 273, 389, 1978, 225, 1958, 273, 1109, 67, 7627, 12, 2704, 701, 13, 468, 225, 327, 279, 261, 103...
print myx print x
for key in myx: if myx[key] != x[key]: print key, myx[key],' changed to ',x[key] return True
def electronic_minimization_changed(self, x): print 'checking if em changed' myx = self.get_electronic_minimization() print myx print x return False
2c02bf6ab05bdd9ad23d6b9b0c1a515eb9e7fe80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/2c02bf6ab05bdd9ad23d6b9b0c1a515eb9e7fe80/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27484, 335, 67, 1154, 381, 1588, 67, 6703, 12, 2890, 16, 619, 4672, 1172, 296, 24609, 309, 801, 3550, 11, 3399, 92, 273, 365, 18, 588, 67, 13759, 1949, 335, 67, 1154, 381, 1588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27484, 335, 67, 1154, 381, 1588, 67, 6703, 12, 2890, 16, 619, 4672, 1172, 296, 24609, 309, 801, 3550, 11, 3399, 92, 273, 365, 18, 588, 67, 13759, 1949, 335, 67, 1154, 381, 1588, 1435, ...
print
print ' ' + color(color.FG_GREEN, color.BOLD) + method.__name__ + color(color.DEFAULT)
def run(self): methods = [ getattr(self, name) for name in sorted(dir(self)) #if name.startswith('test_') if callable(getattr(self, name)) if hasattr(getattr(self, name), 'is_test') ] tests_ok = 0 tests_fail = 0 tests_total = len(methods) for method in methods: print ' ', method.__name__, try: result = method() print ...
f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2590, 273, 306, 3869, 12, 2890, 16, 508, 13, 364, 508, 316, 3115, 12, 1214, 12, 2890, 3719, 468, 430, 508, 18, 17514, 1918, 2668, 3813, 4623, 13, 309, 4140, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2590, 273, 306, 3869, 12, 2890, 16, 508, 13, 364, 508, 316, 3115, 12, 1214, 12, 2890, 3719, 468, 430, 508, 18, 17514, 1918, 2668, 3813, 4623, 13, 309, 4140, 12, ...
self.future_center = position, self.center self.center_glider.Reset(0.0, 1.0)
epsilon = 2**-15 x, y = position fx, fy = self.future_center[0] if abs(self.normalize(x - fx)) > abs(epsilon * fx) or abs(self.normalize(y - fy)) > abs(epsilon * fy): cx = self.normalize(self.center[0]) cy = self.normalize(self.center[1]) x = self.normalize(x - cx) + cx y = self.normalize(y - cy) + cy self.future_cente...
def _SetFutureCenter(self, position): """ Set the viewport center in logical coordinates. """ self.future_center = position, self.center self.center_glider.Reset(0.0, 1.0)
3a724653bc1a37a3da11c7e3d17b642dd0c17b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/3a724653bc1a37a3da11c7e3d17b642dd0c17b7b/viewport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 694, 4118, 8449, 12, 2890, 16, 1754, 4672, 3536, 1000, 326, 10482, 4617, 316, 6374, 5513, 18, 3536, 365, 18, 14343, 67, 5693, 273, 1754, 16, 365, 18, 5693, 365, 18, 5693, 67, 7043...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 694, 4118, 8449, 12, 2890, 16, 1754, 4672, 3536, 1000, 326, 10482, 4617, 316, 6374, 5513, 18, 3536, 365, 18, 14343, 67, 5693, 273, 1754, 16, 365, 18, 5693, 365, 18, 5693, 67, 7043...
assert(order == ['first','second',default_dir()])
assert(order == ['first','second',catalog.default_dir()])
def check_build_search_order3(self): """ If MODULE is absent, module_dir shouldn't be in search path. """ q = catalog.catalog(['first','second']) q.set_module_directory('third') order = q.build_search_order() assert(order == ['first','second',default_dir()])
fb838538d73bb3cc154ab6ad47c96d1bb9f12f0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/fb838538d73bb3cc154ab6ad47c96d1bb9f12f0d/test_catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3510, 67, 3072, 67, 1019, 23, 12, 2890, 4672, 3536, 971, 14057, 353, 17245, 16, 1605, 67, 1214, 12044, 1404, 506, 316, 1623, 589, 18, 3536, 1043, 273, 6222, 18, 7199, 12, 3292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3510, 67, 3072, 67, 1019, 23, 12, 2890, 4672, 3536, 971, 14057, 353, 17245, 16, 1605, 67, 1214, 12044, 1404, 506, 316, 1623, 589, 18, 3536, 1043, 273, 6222, 18, 7199, 12, 3292...
yextrap=((y[-1]-y[-2])/h0 + h0*(2.0*y2[-2]+y2[-1])/6.0)*h1+y2[-1]*h1*h1/2.0
yextrap=y[-1]+((y[-1]-y[-2])/h0 + h0*(2.0*y2[-2]+y2[-1])/6.0)*h1+y2[-1]*h1*h1/2.0
def spline_extension(x, y, y2, xmin=None, xmax=None): """x, y, y2 = spline_extension(x_vals,y_vals, y2vals, xmin=None, xmax=None) returns the x, y, y2 table for the spline as needed by splint() with adjustments to allow quadratic extrapolation outside the range x[0]-x[-1], from xmin (or x[0] if xmin is None) to xmax (o...
017e4490fd02787ac4d20b8b283592a27a09bef1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/017e4490fd02787ac4d20b8b283592a27a09bef1/spline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22826, 67, 6447, 12, 92, 16, 677, 16, 677, 22, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 4672, 3536, 92, 16, 677, 16, 677, 22, 273, 22826, 67, 6447, 12, 92, 67, 4524, 16, 93, 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, 22826, 67, 6447, 12, 92, 16, 677, 16, 677, 22, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 4672, 3536, 92, 16, 677, 16, 677, 22, 273, 22826, 67, 6447, 12, 92, 67, 4524, 16, 93, 67, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 346) else quickfix.IntField.__init__(self, 346, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 890, 8749, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 890, 8749, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 273...
gLogger.info("Updated status of transformation %s to ValidatedOutput" % (transID))
gLogger.info( "Updated status of transformation %s to ValidatedOutput" % ( transID ) )
def updateWaitingIntegrity(self): gLogger.info( "Looking for transformations in the WaitingIntegrity status to update" ) res = self.transClient.getTransformations({'Status':'WaitingIntegrity'}) if not res['OK']: gLogger.error( "Failed to get WaitingIntegrity transformations", res['Message'] ) return res transDicts = re...
18fc97d84d5da730b753dba630ee26614f9d37b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/18fc97d84d5da730b753dba630ee26614f9d37b6/ValidateOutputDataAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 15946, 30669, 12, 2890, 4672, 314, 3328, 18, 1376, 12, 315, 9794, 310, 364, 19245, 316, 326, 23333, 30669, 1267, 358, 1089, 6, 262, 400, 273, 365, 18, 2338, 1227, 18, 588, 4059, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15946, 30669, 12, 2890, 4672, 314, 3328, 18, 1376, 12, 315, 9794, 310, 364, 19245, 316, 326, 23333, 30669, 1267, 358, 1089, 6, 262, 400, 273, 365, 18, 2338, 1227, 18, 588, 4059, ...
in_string = open('./editor/locale/'+filename).read()
""" Loads the given lang.XX.js file, processes it and saves it back to the file system """ in_file = open('./editor/locale/'+filename, 'r') in_string = in_file.read() in_file.close()
def processFile(filename): in_string = open('./editor/locale/'+filename).read() try: j = json.loads(in_string) pass except ValueError: print "ERROR! " + filename + " was not valid JSON, please fix it!"
44a0aa06be79412cc98c9cdbda09eeec55d53f5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4765/44a0aa06be79412cc98c9cdbda09eeec55d53f5c/update-langs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 812, 12, 3459, 4672, 3536, 4444, 87, 326, 864, 3303, 18, 5619, 18, 2924, 585, 16, 8488, 518, 471, 14649, 518, 1473, 358, 326, 585, 2619, 3536, 316, 67, 768, 273, 1696, 2668, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 812, 12, 3459, 4672, 3536, 4444, 87, 326, 864, 3303, 18, 5619, 18, 2924, 585, 16, 8488, 518, 471, 14649, 518, 1473, 358, 326, 585, 2619, 3536, 316, 67, 768, 273, 1696, 2668, 18, ...
vals = self.ical2values(cursor, user, event_id, ical, calendar_id, vevent=vevent, context=context)
def ical2values(self, cursor, user, event_id, ical, calendar_id, vevent=None, context=None): ''' Convert iCalendar to values for create or write
0c487ca73b535f1f8b4cd41f4280a2499a1315f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9294/0c487ca73b535f1f8b4cd41f4280a2499a1315f4/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 771, 22, 2372, 12, 2890, 16, 3347, 16, 729, 16, 871, 67, 350, 16, 277, 771, 16, 5686, 67, 350, 16, 331, 2575, 33, 7036, 16, 819, 33, 7036, 4672, 9163, 4037, 277, 7335, 358, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 771, 22, 2372, 12, 2890, 16, 3347, 16, 729, 16, 871, 67, 350, 16, 277, 771, 16, 5686, 67, 350, 16, 331, 2575, 33, 7036, 16, 819, 33, 7036, 4672, 9163, 4037, 277, 7335, 358, 92...
def do_globbing(args, final_args_list): """Do filename expansion. Uses glob.glob to expand the default special characters of bash. Note that the command line will leave in arguments that do not expand to anything, unlike glob.glob. For example, entering 'myprogram.py total_nonsense*.txt' will pass through 'total_nonse...
def do_globbing(args, final_args_list): """Do filename expansion.
a00d819420b88a935f429ee59bbd406706d0b453 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/a00d819420b88a935f429ee59bbd406706d0b453/google.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 10581, 31169, 12, 1968, 16, 727, 67, 1968, 67, 1098, 4672, 3536, 3244, 1544, 17965, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 10581, 31169, 12, 1968, 16, 727, 67, 1968, 67, 1098, 4672, 3536, 3244, 1544, 17965, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
count = self["digit_count"].value
is_negative = self["digit_count"].value < 0 count = abs(self["digit_count"].value)
def createValueLong(self): count = self["digit_count"].value total = 0 for index in xrange(count-1, -1, -1): total <<= 15 total += self["digit[%u]" % index].value return total
d40c2ebad658e37df375ede54747241ca33bfe24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/d40c2ebad658e37df375ede54747241ca33bfe24/python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 620, 3708, 12, 2890, 4672, 353, 67, 13258, 273, 365, 9614, 11052, 67, 1883, 6, 8009, 1132, 411, 374, 1056, 273, 2417, 12, 2890, 9614, 11052, 67, 1883, 6, 8009, 1132, 13, 2078, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 620, 3708, 12, 2890, 4672, 353, 67, 13258, 273, 365, 9614, 11052, 67, 1883, 6, 8009, 1132, 411, 374, 1056, 273, 2417, 12, 2890, 9614, 11052, 67, 1883, 6, 8009, 1132, 13, 2078, 273...
def doFile(self, file): fullpath = self.macros.destdir + file
def doFile(self, filename): fullpath = self.macros.destdir + filename
def doFile(self, file):
3561ce3f76f41003d687b48587aeb1636072833a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/3561ce3f76f41003d687b48587aeb1636072833a/packagepolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 585, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 585, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
do {
while (i < input.length) {
def notebook_lib(): s= r"""
66f7744ce56a022b6bc7c7b798399a9e772ef40e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/66f7744ce56a022b6bc7c7b798399a9e772ef40e/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
tab_ids = eval_container(row[0])
try: tab_ids = eval_container(row[0]) except StandardError: tab_ids = []
def upgrade100(cursor): """Adds the Miro audio guide as a site for anyone who doesn't already have it and isn't using a theme. """ # if the user is using a theme, we don't do anything if not config.get(prefs.THEME_NAME) == prefs.THEME_NAME.default: return audio_guide_url = u'https://www.miroguide.com/audio/' favicon_u...
47f5cecfb25046f11dbc5fbf08a6fb96871d580c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/47f5cecfb25046f11dbc5fbf08a6fb96871d580c/databaseupgrade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 6625, 12, 9216, 4672, 3536, 3655, 326, 490, 11373, 7447, 7343, 487, 279, 2834, 364, 1281, 476, 10354, 3302, 1404, 1818, 1240, 518, 471, 5177, 1404, 1450, 279, 5006, 18, 3536, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 6625, 12, 9216, 4672, 3536, 3655, 326, 490, 11373, 7447, 7343, 487, 279, 2834, 364, 1281, 476, 10354, 3302, 1404, 1818, 1240, 518, 471, 5177, 1404, 1450, 279, 5006, 18, 3536, 468, ...
self.toggle_renderer = CellRendererToggle() self.toggle_renderer.activatable = True
action_renderer = CellRendererPixbuf()
def _setup_columns(self):
8d887e6509e2d71a2f13e91bd822bc9a5fc668ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2654/8d887e6509e2d71a2f13e91bd822bc9a5fc668ca/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 5112, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 5112, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.check_sizeof(get_cell().func_closure[0], size(h + 'P'))
check(get_cell().func_closure[0], size(h + 'P'))
def inner(): return x
d2cd86ddd5c3d90911a98a1440563118297e45db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/d2cd86ddd5c3d90911a98a1440563118297e45db/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 13332, 327, 619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 13332, 327, 619, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.playsound = playsound.PlaySound(self.datarootpath)
self.playsound = playsound.PlaySound(self.datarootpath)
def __init__(self, *args): self.param = args[0] self.version = args[1] self.datarootpath = args[2]
5e25a2dd329b709a23460a382ee7bc2bada60f67 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3073/5e25a2dd329b709a23460a382ee7bc2bada60f67/gtk_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 365, 18, 891, 273, 833, 63, 20, 65, 365, 18, 1589, 273, 833, 63, 21, 65, 365, 18, 3404, 297, 1632, 803, 273, 833, 63, 22, 65, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 365, 18, 891, 273, 833, 63, 20, 65, 365, 18, 1589, 273, 833, 63, 21, 65, 365, 18, 3404, 297, 1632, 803, 273, 833, 63, 22, 65, 2, -...
% (ID2, nsp, tp.name )
% (ID2, nsp, tp.name + \ '_Dec' )
self.typecode += '\n%sdef __init__(self):' %(ID1)
cecd76e2f9e035fae497760109796b77adf0b0f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/cecd76e2f9e035fae497760109796b77adf0b0f2/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 723, 710, 1011, 2337, 82, 9, 87, 536, 1001, 2738, 972, 12, 2890, 13, 2497, 8975, 734, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 723, 710, 1011, 2337, 82, 9, 87, 536, 1001, 2738, 972, 12, 2890, 13, 2497, 8975, 734, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
</arg>
</param>
def kill(self): os.kill(self.p.pid, 9)
a8ce822aad90a4aa37cd74d25ca0939e0b97736a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/a8ce822aad90a4aa37cd74d25ca0939e0b97736a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 4672, 1140, 18, 16418, 12, 2890, 18, 84, 18, 6610, 16, 2468, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8673, 12, 2890, 4672, 1140, 18, 16418, 12, 2890, 18, 84, 18, 6610, 16, 2468, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
headers = {} for line in str.split('\n'): key, value = line.split(':', 1) headers[key] = value return headers
return dict(line.split(":", 1) for line in headers_str.split("\n"))
def parse_headers(self, str): """Parse headers received from the servers and convert to a :class:`dict`.""" headers = {} for line in str.split('\n'): key, value = line.split(':', 1) headers[key] = value return headers
0df02ebe57d54978f6ea9957a0c169e31f40c1da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2733/0df02ebe57d54978f6ea9957a0c169e31f40c1da/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2485, 12, 2890, 16, 609, 4672, 3536, 3201, 1607, 5079, 628, 326, 7084, 471, 1765, 358, 279, 294, 1106, 28288, 1576, 68, 12123, 1607, 273, 2618, 364, 980, 316, 609, 18, 4939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2485, 12, 2890, 16, 609, 4672, 3536, 3201, 1607, 5079, 628, 326, 7084, 471, 1765, 358, 279, 294, 1106, 28288, 1576, 68, 12123, 1607, 273, 2618, 364, 980, 316, 609, 18, 4939, ...
-v prints the Roundup version number and exits -C <fname> use configuration file -n <name> sets the host name of the Roundup web server instance -p <port> sets the port to listen on (default: %(port)s)
-v print the Roundup version number and exit -h print this text and exit -S create or update configuration file and exit -C <fname> use configuration file <fname> -n <name> set the host name of the Roundup web server instance -p <port> set the port to listen on (default: %(po...
def usage(message=''): if RoundupService: os_part = \
998279a3d7de2ef06b98d35b2649de3fe4a0d156 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/998279a3d7de2ef06b98d35b2649de3fe4a0d156/roundup_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2150, 2218, 11, 4672, 309, 11370, 416, 1179, 30, 1140, 67, 2680, 273, 521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2150, 2218, 11, 4672, 309, 11370, 416, 1179, 30, 1140, 67, 2680, 273, 521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.setPage("confirm")
self.page_queue.append("confirm")
def showConfirmation(self, tray): self.setPage("confirm")
4cee6f42f003c2bdd38ed142363244230177319c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12317/4cee6f42f003c2bdd38ed142363244230177319c/Gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 17597, 12, 2890, 16, 268, 435, 4672, 365, 18, 542, 1964, 2932, 10927, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 2405, 17597, 12, 2890, 16, 268, 435, 4672, 365, 18, 542, 1964, 2932, 10927, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if(browser_op)
if(browser_op or browser_saf)
def javascript(): s = r"""
11127499097c00a7f97dc72439a4dd217bb6617f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/11127499097c00a7f97dc72439a4dd217bb6617f/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
errormessage = 'ACTION=IDENTIFY STATUS=ERROR FILE=' + filename + ' ERROR=' + inst
errormessage = 'ACTION=IDENTIFY STATUS=ERROR FILE=' + filename + ' ERROR=' + str(inst)
def do_file_move(showid, showname, snum, enum, epname, quality, fileext, origfilename): season_dir = 'Season ' + snum episode_filename = '[' + snum + 'x' + enum + ']' + ' ' + epname + ' [' + quality + ']' + fileext newpath = os.path.join(tv_dir, showname, season_dir, episode_filename) sdir = os.path.split(newpath) i...
11d4d3e286e712786517fd0886c19abfc7b080f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/11d4d3e286e712786517fd0886c19abfc7b080f4/tvwrangler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 768, 67, 8501, 12, 4500, 350, 16, 2405, 529, 16, 272, 2107, 16, 2792, 16, 5529, 529, 16, 9312, 16, 585, 408, 16, 1647, 3459, 4672, 225, 15874, 67, 1214, 273, 296, 1761, 2753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 768, 67, 8501, 12, 4500, 350, 16, 2405, 529, 16, 272, 2107, 16, 2792, 16, 5529, 529, 16, 9312, 16, 585, 408, 16, 1647, 3459, 4672, 225, 15874, 67, 1214, 273, 296, 1761, 2753...
relative importance of that node to its graph. Degree centrality measures the number of links incident upon a node. INPUT: v -- a vertex label (to find degree centrality of only one node)
relative importance of that vertex to its graph. Degree centrality measures the number of links incident upon a vertex. INPUT: v -- a vertex label (to find degree centrality of only one vertex)
def centrality_degree(self, v=False): r""" Returns the degree centrality (fraction of nodes connected to) as a dictionary of values keyed by node. The degree centrality is normalized to be in range (0,1). Measures of the centrality of a vertex within a graph determine the relative importance of that node to its graph...
7d819cbf1df622e9f76b4801233dbb334f44d362 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7d819cbf1df622e9f76b4801233dbb334f44d362/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 8230, 7919, 67, 21361, 12, 2890, 16, 331, 33, 8381, 4672, 436, 8395, 2860, 326, 10782, 276, 8230, 7919, 261, 16744, 434, 2199, 5840, 358, 13, 487, 279, 3880, 434, 924, 17408, 635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 8230, 7919, 67, 21361, 12, 2890, 16, 331, 33, 8381, 4672, 436, 8395, 2860, 326, 10782, 276, 8230, 7919, 261, 16744, 434, 2199, 5840, 358, 13, 487, 279, 3880, 434, 924, 17408, 635, ...
tg.session['results_per_page'] = int(limit) tg.session.save()
session['results_per_page'] = int(limit) session.save()
def handle_paging(self, limit, page, default=50): if limit: if c.user in (None, M.User.anonymous()): tg.session['results_per_page'] = int(limit) tg.session.save() else: c.user.preferences.results_per_page = int(limit) else: if c.user in (None, M.User.anonymous()): limit = 'results_per_page' in tg.session and tg.session...
4cb2298989bba5ef262d662461fd21ea6a143943 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/4cb2298989bba5ef262d662461fd21ea6a143943/app_globals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 84, 5755, 12, 2890, 16, 1800, 16, 1363, 16, 805, 33, 3361, 4672, 309, 1800, 30, 309, 276, 18, 1355, 316, 261, 7036, 16, 490, 18, 1299, 18, 19070, 1435, 4672, 1339, 3292, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 84, 5755, 12, 2890, 16, 1800, 16, 1363, 16, 805, 33, 3361, 4672, 309, 1800, 30, 309, 276, 18, 1355, 316, 261, 7036, 16, 490, 18, 1299, 18, 19070, 1435, 4672, 1339, 3292, 47...
body = p_char.sub('ord(\\0)', body)
body = p_char.sub("ord('\\1')", body)
def pytify(body): # replace ignored patterns by spaces for p in ignores: body = p.sub(' ', body) # replace char literals by ord(...) body = p_char.sub('ord(\\0)', body) # Compute negative hexadecimal constants start = 0 UMAX = 2*(sys.maxsize+1) while 1: m = p_hex.search(body, start) if not m: break s,e = m.span() val =...
65ab6547f41fa35324a069fc05e74f6898f050aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/65ab6547f41fa35324a069fc05e74f6898f050aa/h2py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2395, 88, 1164, 12, 3432, 4672, 468, 1453, 5455, 6884, 635, 7292, 364, 293, 316, 17868, 30, 1417, 273, 293, 18, 1717, 2668, 2265, 1417, 13, 468, 1453, 1149, 18228, 635, 4642, 5825, 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, 2395, 88, 1164, 12, 3432, 4672, 468, 1453, 5455, 6884, 635, 7292, 364, 293, 316, 17868, 30, 1417, 273, 293, 18, 1717, 2668, 2265, 1417, 13, 468, 1453, 1149, 18228, 635, 4642, 5825, 13, ...
t = s.quad if t[PRED] is self.implies:
con, pred, subj, obj = s.quad if (pred is self.implies and isinstance(subj, Formula) and isinstance(obj, Formula)):
def applyRules(self, workingContext, # Data we assume filterContext = None, # Where to find the rules targetContext = None, # Where to put the conclusions universals = [], # Inherited from higher contexts alreadyDictionary = None): # rule: list of bindings already found """ Apply rules in one cont...
c28b25e8b525c33b8149cf574d2ba898de68f923 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/c28b25e8b525c33b8149cf574d2ba898de68f923/llyn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 4478, 12, 2890, 16, 5960, 1042, 16, 565, 468, 1910, 732, 6750, 1034, 1042, 273, 599, 16, 565, 468, 12177, 358, 1104, 326, 2931, 1018, 1042, 273, 599, 16, 565, 468, 12177, 358, 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, 2230, 4478, 12, 2890, 16, 5960, 1042, 16, 565, 468, 1910, 732, 6750, 1034, 1042, 273, 599, 16, 565, 468, 12177, 358, 1104, 326, 2931, 1018, 1042, 273, 599, 16, 565, 468, 12177, 358, 13...
""" Test case behaviour """
""" Test case behaviour. """
def make_module_from_file(module_name, file_name): """ Make a new module object from the code in specified file """ from types import ModuleType module = ModuleType(module_name) module_file = open(file_name, 'r') exec module_file in module.__dict__ return module
f197f660de27f119c9000bdd2c634e6960ce4fd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/f197f660de27f119c9000bdd2c634e6960ce4fd0/scaffold.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2978, 67, 2080, 67, 768, 12, 2978, 67, 529, 16, 585, 67, 529, 4672, 3536, 4344, 279, 394, 1605, 733, 628, 326, 981, 316, 1269, 585, 3536, 225, 628, 1953, 1930, 5924, 559, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2978, 67, 2080, 67, 768, 12, 2978, 67, 529, 16, 585, 67, 529, 4672, 3536, 4344, 279, 394, 1605, 733, 628, 326, 981, 316, 1269, 585, 3536, 225, 628, 1953, 1930, 5924, 559, 1...
).select(model.PersonPackageListingAcl.c.acl=='approveacls')
).select(model.PersonPackageListingAcl.c.acl.in_(*acls))
def _send_log_msg(self, msg, subject, pkgListing, author): authorEmail = author.user['email'] # Get the owner for this package if pkgListing.owner != ORPHAN_ID: (owner, group) = self.fas.get_user_info(pkgListing.owner)
6a1e86df47a953c97a765d34e2a088d866e33991 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/6a1e86df47a953c97a765d34e2a088d866e33991/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 1330, 67, 3576, 12, 2890, 16, 1234, 16, 3221, 16, 3475, 19081, 16, 2869, 4672, 2869, 4134, 273, 2869, 18, 1355, 3292, 3652, 3546, 468, 968, 326, 3410, 364, 333, 2181, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 1330, 67, 3576, 12, 2890, 16, 1234, 16, 3221, 16, 3475, 19081, 16, 2869, 4672, 2869, 4134, 273, 2869, 18, 1355, 3292, 3652, 3546, 468, 968, 326, 3410, 364, 333, 2181, 30...
if self.use_scrobbler:
if self.as_enabled:
def prefs_window_response(self, window, response, prefsnotebook, exit_stop, activate, win_ontop, display_art_combo, win_sticky, direntry, minimize, update_start, autoconnect, currentoptions, libraryoptions, titleoptions, currsongoptions1, currsongoptions2, crossfadecheck, crossfadespin, infopath_options, hostentry, por...
d9f94ae44e704d6986404a96af8786c6246b4182 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/d9f94ae44e704d6986404a96af8786c6246b4182/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15503, 67, 5668, 67, 2740, 12, 2890, 16, 2742, 16, 766, 16, 15503, 24422, 16, 2427, 67, 5681, 16, 10235, 16, 5657, 67, 1580, 556, 16, 2562, 67, 485, 67, 25053, 16, 5657, 67, 334, 130...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15503, 67, 5668, 67, 2740, 12, 2890, 16, 2742, 16, 766, 16, 15503, 24422, 16, 2427, 67, 5681, 16, 10235, 16, 5657, 67, 1580, 556, 16, 2562, 67, 485, 67, 25053, 16, 5657, 67, 334, 130...
repo.copy(oldpath, join(newname, f)) repo.remove([oldpath], unlink=True) else: repo.copy(oldname, newname) repo.remove([oldname], unlink=True)
self._hgCommand('copy', oldpath, join(newname, f)) self._hgCommand('remove', oldpath, unlink=True) else: self._hgCommand('copy', oldname, newname) self._hgCommand('remove', oldname, unlink=True)
def _renamePathname(self, oldname, newname): """Rename an entry"""
17d4767c89d5ca663109b6077b88b94344a2cf34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5981/17d4767c89d5ca663109b6077b88b94344a2cf34/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18539, 743, 529, 12, 2890, 16, 1592, 529, 16, 26722, 4672, 3536, 16019, 392, 1241, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 389, 18539, 743, 529, 12, 2890, 16, 1592, 529, 16, 26722, 4672, 3536, 16019, 392, 1241, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.config.trusted_signers)
self.config.trusted_signers,
def update(self, enabled=None, cnames=None, comment=None, origin_access_identity=None, trusted_signers=None, default_root_object=None): """ Update the configuration of the Distribution.
82b72d8214076378135b0b229683b177fe03a038 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/82b72d8214076378135b0b229683b177fe03a038/distribution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3696, 33, 7036, 16, 276, 1973, 33, 7036, 16, 2879, 33, 7036, 16, 4026, 67, 3860, 67, 10781, 33, 7036, 16, 13179, 67, 2977, 414, 33, 7036, 16, 805, 67, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3696, 33, 7036, 16, 276, 1973, 33, 7036, 16, 2879, 33, 7036, 16, 4026, 67, 3860, 67, 10781, 33, 7036, 16, 13179, 67, 2977, 414, 33, 7036, 16, 805, 67, 3085, 67, ...
this = apply(_quickfix.new_CardIssNo, args)
this = _quickfix.new_CardIssNo(*args)
def __init__(self, *args): this = apply(_quickfix.new_CardIssNo, 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, 6415, 7568, 2279, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6415, 7568, 2279, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
_lock = None
if thread: _lock = threading.RLock() else: _lock = None
def addLevelName(level, levelName): """ Associate 'levelName' with 'level'. This is used when converting levels to text during message formatting. """ _acquireLock() try: #unlikely to cause an exception, but you never know... _levelNames[level] = levelName _levelNames[levelName] = level finally: _releaseLock()
73d1cda9d93493d09ed342063e5e5a7576bf1c41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/73d1cda9d93493d09ed342063e5e5a7576bf1c41/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2355, 461, 12, 2815, 16, 1801, 461, 4672, 3536, 14008, 296, 2815, 461, 11, 598, 296, 2815, 10332, 225, 1220, 353, 1399, 1347, 14540, 7575, 358, 977, 4982, 883, 10407, 18, 3536, 389,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2355, 461, 12, 2815, 16, 1801, 461, 4672, 3536, 14008, 296, 2815, 461, 11, 598, 296, 2815, 10332, 225, 1220, 353, 1399, 1347, 14540, 7575, 358, 977, 4982, 883, 10407, 18, 3536, 389,...
authors = [dict(((k, v) for k, v in a._get_data().items() if k in author_fields)) for a in author_list]
authors = [dict(((k, v) for k, v in a._get_data().items() if k in author_fields)) for a in author_list if a]
def flip_name(name): # strip end dots like this: "Smith, John." but not like this: "Smith, J." m = re_end_dot.search(name) if m: name = name[:-1] m = re_marc_name.match(name) return m.group(2) + ' ' + m.group(1)
5d5011294746dec41a5dfa6ba0d870397c5de4b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/5d5011294746dec41a5dfa6ba0d870397c5de4b2/authors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9668, 67, 529, 12, 529, 4672, 468, 2569, 679, 19522, 3007, 333, 30, 315, 9552, 483, 16, 804, 22223, 1199, 1496, 486, 3007, 333, 30, 315, 9552, 483, 16, 804, 1199, 312, 273, 283, 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, 9668, 67, 529, 12, 529, 4672, 468, 2569, 679, 19522, 3007, 333, 30, 315, 9552, 483, 16, 804, 22223, 1199, 1496, 486, 3007, 333, 30, 315, 9552, 483, 16, 804, 1199, 312, 273, 283, 67, ...
if not translationSearchStrategy: translationSearchStrategy = CEDICTTranslationSearchStrategy() super(CEDICT, self).__init__(entryFactory, columnFormatStrategies, readingSearchStrategy, translationSearchStrategy, databaseUrl, dbConnectInst)
if 'translationSearchStrategy' not in options: options['translationSearchStrategy'] \ = CEDICTWildcardTranslationSearchStrategy() super(CEDICT, self).__init__(**options) headword = options.get('headword', 'b')
def __init__(self, entryFactory=None, columnFormatStrategies=None, readingSearchStrategy=None, translationSearchStrategy=None, databaseUrl=None, dbConnectInst=None, headword='b'): """ Initialises the CEDICT instance. By default the both, simplified and traditional, headword forms are used for lookup.
7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1241, 1733, 33, 7036, 16, 1057, 1630, 1585, 15127, 33, 7036, 16, 6453, 2979, 4525, 33, 7036, 16, 4794, 2979, 4525, 33, 7036, 16, 2063, 1489, 33, 7036, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1241, 1733, 33, 7036, 16, 1057, 1630, 1585, 15127, 33, 7036, 16, 6453, 2979, 4525, 33, 7036, 16, 4794, 2979, 4525, 33, 7036, 16, 2063, 1489, 33, 7036, 16...
cv.circle(object_color, cv.asPoint(keypt.pt), int(keypt.size*1.2/9.*2), colors[0], 1, 8, 0)
cv.circle(object_color, cv.asPoint(inst_Point2f=keypt.pt), int(keypt.size*1.2/9.*2), colors[0], 1, 8, 0)
def locatePlanarObject(ptpairs, src_corners, dst_corners): n = len(ptpairs) if n < 4: return 0 pt1 = cv.asMat([pair[0] for pair in ptpairs]) pt2 = cv.asMat([pair[1] for pair in ptpairs]) h = cv.findHomography(pt1, pt2, method=cv.RANSAC, ransacReprojThreshold=5)[:] for i in range(4): x = src_corners[i].x y = src_corne...
a4296c5e04a746eb398192130702fcf9f01fca2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4310/a4296c5e04a746eb398192130702fcf9f01fca2e/find_obj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 5365, 297, 921, 12, 337, 11545, 16, 1705, 67, 3850, 9646, 16, 3046, 67, 3850, 9646, 4672, 290, 273, 562, 12, 337, 11545, 13, 309, 290, 411, 1059, 30, 327, 374, 225, 5818, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 5365, 297, 921, 12, 337, 11545, 16, 1705, 67, 3850, 9646, 16, 3046, 67, 3850, 9646, 4672, 290, 273, 562, 12, 337, 11545, 13, 309, 290, 411, 1059, 30, 327, 374, 225, 5818, 21, ...
the starred calculation for review requests.
the starred calculation for review groups.
def render_data(self, obj): obj.starred = self.all_starred.get(obj.id, False) return render_star(self.datagrid.request.user, obj)
accfa93342fed2272bf990d4515a41fc3996a4ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/accfa93342fed2272bf990d4515a41fc3996a4ff/datagrids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 892, 12, 2890, 16, 1081, 4672, 1081, 18, 10983, 1118, 273, 365, 18, 454, 67, 10983, 1118, 18, 588, 12, 2603, 18, 350, 16, 1083, 13, 327, 1743, 67, 10983, 12, 2890, 18, 3404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 67, 892, 12, 2890, 16, 1081, 4672, 1081, 18, 10983, 1118, 273, 365, 18, 454, 67, 10983, 1118, 18, 588, 12, 2603, 18, 350, 16, 1083, 13, 327, 1743, 67, 10983, 12, 2890, 18, 3404...
nm_pid = (updater_out.split())[1]
nm_pid = (nm_out.split())[1]
def nmclient_rawsay(nmip, nmport, *args): fullresponse = nmclient_rawcommunicate(nmip, nmport, *args) try: (response, status) = fullresponse.rsplit('\n',1) except KeyError: raise NMClientException, "Communication error '"+fullresponse+"'" if status == 'Success': return response elif status == 'Error': raise NMClientE...
12e51465934a6e4b989ad696d06506c04033996b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/12e51465934a6e4b989ad696d06506c04033996b/testprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
print 'Creating disk image %s, size = %s Bytes' % (img_path, size) try: cmd = 'dd if=/dev/zero of=%s bs=1024 count=%s' % (img_path, size)
logging.debug('Creating disk image %s, size = %d Bytes', img_path, size) try: cmd = 'dd if=/dev/zero of=%s bs=1024 count=%d' % (img_path, size)
def __create_disk_img(self, img_path, size): """ Creates a disk image using dd.
662f76bda53f3b39610e52556ebe4e8573de519d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/662f76bda53f3b39610e52556ebe4e8573de519d/base_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 67, 10863, 67, 6081, 12, 2890, 16, 3774, 67, 803, 16, 963, 4672, 3536, 10210, 279, 4234, 1316, 1450, 6957, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 67, 10863, 67, 6081, 12, 2890, 16, 3774, 67, 803, 16, 963, 4672, 3536, 10210, 279, 4234, 1316, 1450, 6957, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise error_reply, resp
raise NNTPReplyError(resp)
def getlongresp(self): """Internal: get a response plus following text from the server. Raise various errors if the response indicates an error.""" resp = self.getresp() if resp[:3] not in LONGRESP: raise error_reply, resp list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = line[1...
4e07be6953691f89f9e6cbb75dc0fc194ecbf3e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4e07be6953691f89f9e6cbb75dc0fc194ecbf3e8/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5748, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 1718, 273, 365, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5748, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 1718, 273, 365, 18, 588, ...
if doc.version(): items = [self._dom_to_html(doc.version(), container)] str += self._descrlist(items, 'Version') items = [self._dom_to_html(a, container) for a in doc.authors()] str += self._descrlist(items, 'Author', 'Authors', short=1) items = [self._dom_to_html(r, container) for r in doc.requires()] str += self...
for field in doc.fields(): values = doc.field_value(field) if not values: continue items = [self._dom_to_html(v, container) for v in values] str += self._descrlist(items, field.singular, field.plural, field.short)
def _standard_fields(self, doc): """ @return: HTML code containing descriptions of the epytext fields that are common to all L{ObjDoc}s (except for C{descr}). @rtype: C{string} @param doc: The object whose fields should be described. """ uid = doc.uid() if uid.is_module() or uid.is_class(): container = uid else: contai...
149531a2cda79700e8a2b9b1cbdefc79ff90296b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/149531a2cda79700e8a2b9b1cbdefc79ff90296b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10005, 67, 2821, 12, 2890, 16, 997, 4672, 3536, 632, 2463, 30, 3982, 981, 4191, 15550, 434, 326, 425, 2074, 955, 1466, 716, 854, 2975, 358, 777, 511, 95, 2675, 1759, 97, 87, 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, 389, 10005, 67, 2821, 12, 2890, 16, 997, 4672, 3536, 632, 2463, 30, 3982, 981, 4191, 15550, 434, 326, 425, 2074, 955, 1466, 716, 854, 2975, 358, 777, 511, 95, 2675, 1759, 97, 87, 261, ...
for move,(loc,auto,delay) in todo:
for move, (loc, auto, delay) in todo:
def create_chained_picking(self,cr,uid,moves,context): new_moves=[] for picking, todo in self._chain_compute(cr, uid, moves, context).items(): ptype = self.pool.get('stock.location').picking_type_get(cr, uid, todo[0][0].location_dest_id, todo[0][1][0]) pickid = self.pool.get('stock.picking').create(cr, uid, { 'name': p...
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5639, 329, 67, 11503, 310, 12, 2890, 16, 3353, 16, 1911, 16, 81, 10829, 16, 2472, 4672, 394, 67, 81, 10829, 33, 8526, 364, 6002, 310, 16, 10621, 316, 365, 6315, 5639, 67, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5639, 329, 67, 11503, 310, 12, 2890, 16, 3353, 16, 1911, 16, 81, 10829, 16, 2472, 4672, 394, 67, 81, 10829, 33, 8526, 364, 6002, 310, 16, 10621, 316, 365, 6315, 5639, 67, 92...
print 'validando VENTA:'
def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[p...
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
setup(name='zope.sqlalchemy', version='0.2', description="Minimal Zope/SQLAlchemy transaction integration", long_description=long_description, classifiers=[ "Framework :: Zope3", "Programming Language :: Python", "License :: OSI Approved :: Zope Public License", "Topic :: Software Development :: Libraries :: Python M...
def desc(*texts): return '\n'.join(texts)
9964ec3d4c3d0cea05037e581e51564baf468774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9906/9964ec3d4c3d0cea05037e581e51564baf468774/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3044, 30857, 26256, 4672, 327, 2337, 82, 10332, 5701, 12, 26256, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3044, 30857, 26256, 4672, 327, 2337, 82, 10332, 5701, 12, 26256, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def amount_set(self, value):
def amount(self, value):
def amount_set(self, value): self._amount = float(value)
12234bfb520ef7f2e2a14519f54111cd01d9f91b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/12234bfb520ef7f2e2a14519f54111cd01d9f91b/bank.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3844, 12, 2890, 16, 460, 4672, 365, 6315, 8949, 273, 1431, 12, 1132, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 3844, 12, 2890, 16, 460, 4672, 365, 6315, 8949, 273, 1431, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Differentiats self with respect in the provided variable. This
Differentiates self with respect to the provided variable. This
def diff(self, variable, have_ring=False): """ Differentiats self with respect in the provided variable. This is completely symbolic so it is also defined over e.g. finite fields. INPUT: variable -- the derivate is taken with respect to that variable have_ring -- see self._singular_() (default:False)
527dc80b6f8a55541af2f90c790b5d4f152ed713 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/527dc80b6f8a55541af2f90c790b5d4f152ed713/polynomial_singular_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 12, 2890, 16, 2190, 16, 1240, 67, 8022, 33, 8381, 4672, 3536, 21104, 3518, 16020, 365, 598, 8762, 358, 326, 2112, 2190, 18, 1220, 353, 14416, 16754, 1427, 518, 353, 2546, 2553, 187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 12, 2890, 16, 2190, 16, 1240, 67, 8022, 33, 8381, 4672, 3536, 21104, 3518, 16020, 365, 598, 8762, 358, 326, 2112, 2190, 18, 1220, 353, 14416, 16754, 1427, 518, 353, 2546, 2553, 187...
self.declare_class(fieldvalue._INSTANCE)
self.declare_any(fieldvalue._INSTANCE)
def declare_constant_instance(self, const): # const.concretetype is Instance if const in self.declarations: return self.declarations[const][0] if const.value is const.concretetype._null: return "nil" name = "const" + str(self.constcount) INST = dynamicType(const.value) self.declare_class(INST) inst = oodowncast(INST, c...
6e2ac92e5f9e2f09c7e5d67d74cc4b6388892363 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6e2ac92e5f9e2f09c7e5d67d74cc4b6388892363/gencl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14196, 67, 14384, 67, 1336, 12, 2890, 16, 1866, 4672, 468, 1866, 18, 11504, 1349, 5872, 353, 5180, 309, 1866, 316, 365, 18, 8840, 9642, 30, 327, 365, 18, 8840, 9642, 63, 10248, 6362, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14196, 67, 14384, 67, 1336, 12, 2890, 16, 1866, 4672, 468, 1866, 18, 11504, 1349, 5872, 353, 5180, 309, 1866, 316, 365, 18, 8840, 9642, 30, 327, 365, 18, 8840, 9642, 63, 10248, 6362, 2...
if time.strftime(directive, time_tuple).find('00'):
if '00' in time.strftime(directive, time_tuple):
def __calc_date_time(self): # Set self.date_time, self.date, & self.time by using # time.strftime().
6e372d1422dfaf5b1cd2ab2f48a42ee609cc119c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6e372d1422dfaf5b1cd2ab2f48a42ee609cc119c/_strptime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12448, 67, 712, 67, 957, 12, 2890, 4672, 468, 1000, 365, 18, 712, 67, 957, 16, 365, 18, 712, 16, 473, 365, 18, 957, 635, 1450, 468, 813, 18, 701, 9982, 7675, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 12448, 67, 712, 67, 957, 12, 2890, 4672, 468, 1000, 365, 18, 712, 67, 957, 16, 365, 18, 712, 16, 473, 365, 18, 957, 635, 1450, 468, 813, 18, 701, 9982, 7675, 2, -100, -100, -...
return '%s%s' % (_justprefix(network, channel, nick), nick) else: return nick
nick = '%s%s' % (_justprefix(network, channel, nick), nick) for escapes in (('&','&amp;'), ('<','&lt;'), ('>','&gt;')): nick = nick.replace(*escapes) return nick
def prefix(network, channelname, nick): channel = getchan(network, channelname) if channel: return '%s%s' % (_justprefix(network, channel, nick), nick) else: return nick
728338b7de7c5fd0e08014a5a88ac014e3931a1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/728338b7de7c5fd0e08014a5a88ac014e3931a1b/chaninfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1633, 12, 5185, 16, 1904, 529, 16, 10909, 4672, 1904, 273, 336, 7472, 12, 5185, 16, 1904, 529, 13, 225, 309, 1904, 30, 10909, 273, 1995, 87, 9, 87, 11, 738, 261, 67, 3732, 3239, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1633, 12, 5185, 16, 1904, 529, 16, 10909, 4672, 1904, 273, 336, 7472, 12, 5185, 16, 1904, 529, 13, 225, 309, 1904, 30, 10909, 273, 1995, 87, 9, 87, 11, 738, 261, 67, 3732, 3239, 12, ...
return dict([(var(k),w) for k,w in kwds.iteritems()])
""" EXAMPLES: sage: function('f',x) f(x) sage: a = f._SymbolicExpression__parse_in_dict({f:log},{}) sage: f._SymbolicExpression__varify_kwds(a) {f: <function log at 0x...>} sage: b = f._SymbolicExpression__parse_in_dict({},{'f':log}) sage: f._SymbolicExpression__varify_kwds(b) {f: <function log at 0x...>} """ return d...
def __varify_kwds(self, kwds): return dict([(var(k),w) for k,w in kwds.iteritems()])
cfb03204c6a9a2377d6a25e7e5226195466c9a90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cfb03204c6a9a2377d6a25e7e5226195466c9a90/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1401, 1164, 67, 25577, 12, 2890, 16, 17149, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 445, 2668, 74, 2187, 92, 13, 284, 12, 92, 13, 272, 410, 30, 279, 273, 284, 6315, 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, 1001, 1401, 1164, 67, 25577, 12, 2890, 16, 17149, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 445, 2668, 74, 2187, 92, 13, 284, 12, 92, 13, 272, 410, 30, 279, 273, 284, 6315, 10...
response = t[1].read() print '\t%s' % response print '\t%s' % t[2].read()
print '\t%s' % t[0] print '\t%s' % t[1]
def bundle_image(self, prefix, key_file, cert_file, size, ssh_key): print 'bundling image...' print '\tcopying cert and pk over to /mnt directory on server' sftp_client = self.ssh_client.open_sftp() path, name = os.path.split(key_file) remote_key_file = '/mnt/%s' % name self.ssh_client.put_file(key_file, remote_key_fil...
8bbe12a2465fd90d055289b27b7517bdb7d7daf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/8bbe12a2465fd90d055289b27b7517bdb7d7daf4/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 67, 2730, 12, 2890, 16, 1633, 16, 498, 67, 768, 16, 3320, 67, 768, 16, 963, 16, 7056, 67, 856, 4672, 1172, 296, 70, 1074, 2456, 1316, 7821, 1172, 2337, 88, 3530, 310, 3320, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 67, 2730, 12, 2890, 16, 1633, 16, 498, 67, 768, 16, 3320, 67, 768, 16, 963, 16, 7056, 67, 856, 4672, 1172, 296, 70, 1074, 2456, 1316, 7821, 1172, 2337, 88, 3530, 310, 3320, 471...
if not failed or options.noStop:
if testlistStartup and (not failed or options.noStop):
def runPerfSuite(options): """ Run the Performance Test Suite """ # XXX need to log the full output to intermediate file so that we can # XXX first show the condensed form, sleep for 5 seconds, and cat the # XXX full log (like do_tests.sh does). failed = False savePWD = os.getcwd() try: if 'release' in options.modes...
4272128dba31ee83ec0437dd8cb2441e28a3495b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/4272128dba31ee83ec0437dd8cb2441e28a3495b/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22016, 13587, 12, 2116, 4672, 3536, 1939, 326, 11217, 1359, 7766, 348, 9519, 3536, 468, 11329, 1608, 358, 613, 326, 1983, 876, 358, 12110, 585, 1427, 716, 732, 848, 468, 11329, 1122,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22016, 13587, 12, 2116, 4672, 3536, 1939, 326, 11217, 1359, 7766, 348, 9519, 3536, 468, 11329, 1608, 358, 613, 326, 1983, 876, 358, 12110, 585, 1427, 716, 732, 848, 468, 11329, 1122,...
raise KeyError('Invalid field %s' % field)
raise KeyError(u'Invalid field %s' % field)
def __delitem__(self, field): if field not in FIELDS: raise KeyError('Invalid field %s' % field) self.fields[field] = ''
7caf7af8620f36787fcc5d3a1634ba919cd8202c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/7caf7af8620f36787fcc5d3a1634ba919cd8202c/phonebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 1726, 972, 12, 2890, 16, 652, 4672, 309, 652, 486, 316, 4011, 11608, 30, 1002, 4999, 12, 89, 11, 1941, 652, 738, 87, 11, 738, 652, 13, 365, 18, 2821, 63, 1518, 65, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3771, 1726, 972, 12, 2890, 16, 652, 4672, 309, 652, 486, 316, 4011, 11608, 30, 1002, 4999, 12, 89, 11, 1941, 652, 738, 87, 11, 738, 652, 13, 365, 18, 2821, 63, 1518, 65, 273, ...
if platform.machine().startswith('armv'): _output('Seattle is being installed on a Nokia N800/900 Internet Tablet.') import pwd if pwd.getpwuid(os.getuid())[0] != 'root': _output('Please run the installer as root. This can be done by ' \ + 'installing/using the rootsh or openssh package.') return continue_inst...
def main(): if OS not in SUPPORTED_OSES: raise UnsupportedOSError("This operating system is not supported.") # Begin pre-installation process. # Pre-install: parse the passed-in arguments. try: # Armon: Changed getopt to accept parameters for Repy and NM IP/Iface # restrictions, also a special disable flag opts, arg...
456716f9f962bbdd263f3293dbf27268249362cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7995/456716f9f962bbdd263f3293dbf27268249362cb/seattleinstaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 5932, 486, 316, 29556, 67, 51, 1090, 55, 30, 1002, 7221, 4618, 668, 2932, 2503, 16929, 2619, 353, 486, 3260, 1199, 13, 282, 468, 14323, 675, 17, 5425, 367, 1207, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 5932, 486, 316, 29556, 67, 51, 1090, 55, 30, 1002, 7221, 4618, 668, 2932, 2503, 16929, 2619, 353, 486, 3260, 1199, 13, 282, 468, 14323, 675, 17, 5425, 367, 1207, 18, ...
sage: r.dev_off()
sage: r.dev_off()
def plot(self, *args, **kwargs): """ The R plot function. Type r.help('plot') for much more extensive documentatin about this function. See the examples below for how to use it to write output to a FILE.
42a77e19371576e2f0fa4a64916832f43f940a8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/42a77e19371576e2f0fa4a64916832f43f940a8c/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1021, 534, 3207, 445, 18, 225, 1412, 436, 18, 5201, 2668, 4032, 6134, 364, 9816, 1898, 1110, 14315, 1668, 270, 267, 2973, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1021, 534, 3207, 445, 18, 225, 1412, 436, 18, 5201, 2668, 4032, 6134, 364, 9816, 1898, 1110, 14315, 1668, 270, 267, 2973, 333, ...
negs=unique(labeled[:,-1]) positives[negs]=False
negs = np.unique(labeled[:,-1]) positives[negs] = False
def border_regions(mask_or_labeled): ''' positives = border_regions(mask_or_labeled) Removes anything that touches the border. ''' nr_objs = mask_or_labeled.max() if mask_or_labeled.max() == 1: labeled,nr_objs=ndimage.label(mask_or_labeled) else: labeled = mask_or_labeled positives = numpy.ones(nr_objs+1,numpy.bool) r...
b661ac13250f72232d0c217ee6ef04a767cd4c1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12199/b661ac13250f72232d0c217ee6ef04a767cd4c1b/filters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5795, 67, 15923, 12, 4455, 67, 280, 67, 1925, 329, 4672, 9163, 949, 28737, 273, 5795, 67, 15923, 12, 4455, 67, 280, 67, 1925, 329, 13, 225, 20284, 6967, 716, 18796, 326, 5795, 18, 9163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5795, 67, 15923, 12, 4455, 67, 280, 67, 1925, 329, 4672, 9163, 949, 28737, 273, 5795, 67, 15923, 12, 4455, 67, 280, 67, 1925, 329, 13, 225, 20284, 6967, 716, 18796, 326, 5795, 18, 9163...
btnBox.AddSpacer(4)
btnBox.AddSpacer((4, 4))
def createOptionsFrame(self): """ Created: 03.11.2004, KP Description: Creates a frame that contains the various widgets used to control the colocalization settings """ GUI.FilterBasedTaskPanel.FilterBasedTaskPanel.createOptionsFrame(self) #self.panel=wx.Panel(self.settingsNotebook,-1) self.panel = wx.Panel(self, -1) s...
1700b123e079a29b8062f04ceab839eee34973a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/1700b123e079a29b8062f04ceab839eee34973a1/ManipulationPanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1320, 3219, 12, 2890, 4672, 3536, 12953, 30, 17107, 18, 2499, 18, 6976, 24, 16, 1475, 52, 6507, 30, 10210, 279, 2623, 716, 1914, 326, 11191, 10965, 1399, 358, 3325, 326, 645, 23735,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1320, 3219, 12, 2890, 4672, 3536, 12953, 30, 17107, 18, 2499, 18, 6976, 24, 16, 1475, 52, 6507, 30, 10210, 279, 2623, 716, 1914, 326, 11191, 10965, 1399, 358, 3325, 326, 645, 23735,...
print analytic_line
print analytic_line
def create_analytic_lines(self, cr, uid, ids, context={}): super(account_move_line, self).create_analytic_lines(cr, uid, ids, context) for move_line in self.browse(cr, uid, ids, context): print "--------" print move_line print move_line.move_id print "invoice:" print move_line.invoice print move_line.invoice.id if mov...
7ed2ce414bdfc4a900d1f1e5a3320b86a65d1680 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ed2ce414bdfc4a900d1f1e5a3320b86a65d1680/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 304, 7834, 335, 67, 3548, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 2240, 12, 4631, 67, 8501, 67, 1369, 16, 365, 2934, 2640, 67, 304, 7834, 335, 67, 3548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 304, 7834, 335, 67, 3548, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 2240, 12, 4631, 67, 8501, 67, 1369, 16, 365, 2934, 2640, 67, 304, 7834, 335, 67, 3548...
if string.lower(urltype) == 'https':
url = rest user_passwd = None if string.lower(urltype) != 'https': realhost = None else:
def open_https(self, url, data=None): """Use HTTPS protocol.""" import httplib if type(url) is type(""): host, selector = splithost(url) user_passwd, host = splituser(host) else: host, selector = url urltype, rest = splittype(selector) if string.lower(urltype) == 'https': realhost, rest = splithost(rest) user_passwd, r...
567ca8e732a75682adfdca08daaf2afa59582ad9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/567ca8e732a75682adfdca08daaf2afa59582ad9/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 4528, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 18904, 1771, 12123, 1930, 15851, 6673, 309, 618, 12, 718, 13, 353, 618, 2932, 6, 4672, 1479, 16, 3451, 273, 6121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 4528, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 18904, 1771, 12123, 1930, 15851, 6673, 309, 618, 12, 718, 13, 353, 618, 2932, 6, 4672, 1479, 16, 3451, 273, 6121...
readmodule_ex(mod)
_readmodule(mod, [])
def readmodule_ex(module, path=[], inpackage=None): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module. If INPACKAGE is true, it must be the dotted name of the package in ...
69689ec153ac01a51540a5bb3eafceb7eb9c7ba7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/69689ec153ac01a51540a5bb3eafceb7eb9c7ba7/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 7036, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 7036, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 25...
sys.stderr.write("No coords provided on command line!")
sys.stderr.write("No coords provided on command line!\n")
def main(): deg_symb = unichr(176).encode("latin-1") galcoords = [] if options.galcoords: for l,b in [g.split(',') for g in options.galcoords]: galcoords.append((float(l), float(b))) for l, b in galcoords: temp = get_skytemp(l, b, freq=options.freq, index=options.index) print "l=%g%s, b=%g%s, freq=%g, (index=%g): temp...
35111d0814dccb538e0ca7c28f03f5868c570997 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3485/35111d0814dccb538e0ca7c28f03f5868c570997/skytemp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 5843, 67, 9009, 1627, 273, 640, 1354, 86, 12, 28493, 2934, 3015, 2932, 26578, 17, 21, 7923, 225, 24902, 9076, 273, 5378, 309, 702, 18, 25030, 9076, 30, 364, 328, 16, 70, 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, 2774, 13332, 5843, 67, 9009, 1627, 273, 640, 1354, 86, 12, 28493, 2934, 3015, 2932, 26578, 17, 21, 7923, 225, 24902, 9076, 273, 5378, 309, 702, 18, 25030, 9076, 30, 364, 328, 16, 70, 3...
x^10 + x^8 + x^6 + x^4
x^10 - 15*x^8 + 75*x^6 - 24*x^5 - 165*x^4 + 120*x^3 + 120*x^2 - 160*x + 48
def characteristic_polynomial(self, var='x', laplacian=False): """ Returns the characteristic polynomial of the adjacency matrix of the (di)graph.
d067cb40b1bc48cd4a4208c39a8023684e3cecbe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d067cb40b1bc48cd4a4208c39a8023684e3cecbe/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23158, 67, 3915, 13602, 12, 2890, 16, 569, 2218, 92, 2187, 7125, 30538, 2779, 33, 8381, 4672, 3536, 2860, 326, 23158, 16991, 434, 326, 25220, 3148, 434, 326, 261, 3211, 13, 4660, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23158, 67, 3915, 13602, 12, 2890, 16, 569, 2218, 92, 2187, 7125, 30538, 2779, 33, 8381, 4672, 3536, 2860, 326, 23158, 16991, 434, 326, 25220, 3148, 434, 326, 261, 3211, 13, 4660, 18, 2, ...
tgw_lry = max(t_lry,self.lry)
if t_geotransform[5] < 0: tgw_uly = min(t_uly,self.uly) tgw_lry = max(t_lry,self.lry) else: tgw_uly = max(t_uly,self.uly) tgw_lry = min(t_lry,self.lry)
def copy_into( self, t_fh, s_band = 1, t_band = 1, nodata_arg=None ): """ Copy this files image into target file.
30aa108a592296b22280cd49c4941d9cc435649a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/30aa108a592296b22280cd49c4941d9cc435649a/gdal_merge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 18591, 12, 365, 16, 268, 67, 19260, 16, 272, 67, 12752, 273, 404, 16, 268, 67, 12752, 273, 404, 16, 14003, 396, 67, 3175, 33, 7036, 262, 30, 3536, 5631, 333, 1390, 1316, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 18591, 12, 365, 16, 268, 67, 19260, 16, 272, 67, 12752, 273, 404, 16, 268, 67, 12752, 273, 404, 16, 14003, 396, 67, 3175, 33, 7036, 262, 30, 3536, 5631, 333, 1390, 1316, 13...
import thread
import threading
def __init__(self, maxsize=0): """Initialize a queue object with a given maximum size.
5af0e414822e0e5da17566e1156005df520d1ae0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5af0e414822e0e5da17566e1156005df520d1ae0/Queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 22959, 33, 20, 4672, 3536, 7520, 279, 2389, 733, 598, 279, 864, 4207, 963, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 22959, 33, 20, 4672, 3536, 7520, 279, 2389, 733, 598, 279, 864, 4207, 963, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
vp_ts = rpmtools.rpmtransactionset() self.instance_status[inst]['verify'] = \ rpmtools.rpm_verify( vp_ts, pkg, flags) vp_ts.closeDB() del vp_ts
if inst.get('verify', 'true') == 'false': self.instance_status[inst]['verify'] = None else: vp_ts = rpmtools.rpmtransactionset() self.instance_status[inst]['verify'] = \ rpmtools.rpm_verify( vp_ts, pkg, flags) vp_ts.closeDB() del vp_ts
def VerifyPackage(self, entry, modlist, pinned_version=None): ''' Verify Package status for entry. Performs the following: - Checks for the presence of required Package Instances. - Compares the evra 'version' info against self.installed{}. - RPM level package verify (rpm --verify). - Checks for the presence of unrequi...
a8e9519ed12e59f20c8591d886908bb85ea17acf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/a8e9519ed12e59f20c8591d886908bb85ea17acf/RPMng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2261, 12, 2890, 16, 1241, 16, 681, 1098, 16, 26193, 67, 1589, 33, 7036, 4672, 9163, 8553, 7508, 1267, 364, 1241, 18, 27391, 326, 3751, 30, 300, 13074, 364, 326, 9805, 434, 1931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2261, 12, 2890, 16, 1241, 16, 681, 1098, 16, 26193, 67, 1589, 33, 7036, 4672, 9163, 8553, 7508, 1267, 364, 1241, 18, 27391, 326, 3751, 30, 300, 13074, 364, 326, 9805, 434, 1931, ...
"The last 302 error message was:\n"
"The last 30x error message was:\n"
def http_error_302(self, req, fp, code, msg, headers): if 'location' in headers: newurl = headers['location'] elif 'uri' in headers: newurl = headers['uri'] else: return newurl = urlparse.urljoin(req.get_full_url(), newurl)
162f081fb3c3e68e08e477a87311121fd5b72b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/162f081fb3c3e68e08e477a87311121fd5b72b18/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 23, 3103, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 309, 296, 3562, 11, 316, 1607, 30, 394, 718, 273, 1607, 3292, 3562, 3546, 1327, 296, 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, 1062, 67, 1636, 67, 23, 3103, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 309, 296, 3562, 11, 316, 1607, 30, 394, 718, 273, 1607, 3292, 3562, 3546, 1327, 296, 16...
from MoinMoin.Page import Page
now = int(time.time())
def load_wikimap(request): """ load interwiki map (once, and only on demand) """ from MoinMoin.Page import Page try: _interwiki_list = request.cfg._interwiki_list now = int(time.time()) if request.cfg._interwiki_ts + (3*60) < now: # 3 minutes caching time raise AttributeError # refresh cache except AttributeError: _in...
ab178ea1bfb2adc18dcb3d933b883f9fc3827a27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/ab178ea1bfb2adc18dcb3d933b883f9fc3827a27/wikiutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 11999, 12161, 12, 2293, 4672, 3536, 1262, 1554, 13044, 852, 261, 8243, 16, 471, 1338, 603, 23653, 13, 3536, 225, 2037, 273, 509, 12, 957, 18, 957, 10756, 225, 775, 30, 389, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 11999, 12161, 12, 2293, 4672, 3536, 1262, 1554, 13044, 852, 261, 8243, 16, 471, 1338, 603, 23653, 13, 3536, 225, 2037, 273, 509, 12, 957, 18, 957, 10756, 225, 775, 30, 389, 2...
self.log.debug('acct_mgr: check_password() -- Can\'t locate "%s"' % str(filename))
self.log.debug('acct_mgr: check_password() -- ' 'Can\'t locate "%s"' % filename)
def check_password(self, user, password): filename = self.filename if not os.path.exists(filename): self.log.debug('acct_mgr: check_password() -- Can\'t locate "%s"' % str(filename)) return False user = user.encode('utf-8') password = password.encode('utf-8') prefix = self.prefix(user) fd = file(filename) try: for line...
38d2050c98594ae137600c3302386f2bfe7154ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6208/38d2050c98594ae137600c3302386f2bfe7154ad/htfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3664, 12, 2890, 16, 729, 16, 2201, 4672, 1544, 273, 365, 18, 3459, 309, 486, 1140, 18, 803, 18, 1808, 12, 3459, 4672, 365, 18, 1330, 18, 4148, 2668, 1077, 299, 67, 13552, 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, 866, 67, 3664, 12, 2890, 16, 729, 16, 2201, 4672, 1544, 273, 365, 18, 3459, 309, 486, 1140, 18, 803, 18, 1808, 12, 3459, 4672, 365, 18, 1330, 18, 4148, 2668, 1077, 299, 67, 13552, 30...
l.append ((fd, flags)) r = poll.poll (l, timeout)
l.append((fd, flags)) r = poll.poll(l, timeout)
def poll2 (timeout=0.0, map=None): import poll if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) if map: l = [] for fd, obj in map.iteritems(): flags = 0 if obj.readable(): flags = poll.POLLIN if obj.writable(): flags = flags | poll.POLLOUT if flags: l.appen...
d560ace3a76d1fa162fa40ec90a158d4d3540036 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d560ace3a76d1fa162fa40ec90a158d4d3540036/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 261, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 1930, 7672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 309, 2021, 353, 486, 599, 30, 468, 2021, 353, 316, 10993, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 261, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 1930, 7672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 309, 2021, 353, 486, 599, 30, 468, 2021, 353, 316, 10993, ...
def getPfnForLfn(self,lfns,storageElementName): storageElement = StorageElement(storageElementName) res = storageElement.isValid('getPfnForLfn')
def getPfnForLfn( self, lfns, storageElementName ): storageElement = StorageElement( storageElementName ) res = storageElement.isValid( 'getPfnForLfn' )
def getPfnForLfn(self,lfns,storageElementName): storageElement = StorageElement(storageElementName) res = storageElement.isValid('getPfnForLfn') if not res['OK']: errStr = "ReplicaManager.getPfnForLfn: Failed to instantiate Storage Element" gLogger.error(errStr, "for performing getPfnForLfn at %s." % (storageElementNam...
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, 1689, 4293, 1290, 48, 4293, 12, 365, 16, 18594, 2387, 16, 2502, 30584, 262, 30, 2502, 1046, 273, 5235, 1046, 12, 2502, 30584, 262, 400, 273, 2502, 1046, 18, 26810, 12, 296, 588, 52, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 4293, 1290, 48, 4293, 12, 365, 16, 18594, 2387, 16, 2502, 30584, 262, 30, 2502, 1046, 273, 5235, 1046, 12, 2502, 30584, 262, 400, 273, 2502, 1046, 18, 26810, 12, 296, 588, 52, 42...
bad.insert(name, oid) if not data: continue refs = tuple(ref for ref in getrefs(data, name) if not good.has(*ref)) if not refs: continue f = open(os.path.join(baddir, name, base64.urlsafe_b64encode(oid)), 'ab') marshal.dump(refs, f) f.close()
if good.has(name, oid): good.remove(name, oid) elif bad.has(name, oid): bad.remove(name, oid) path = bad_path(baddir, name, oid) if os.path.exists(path): os.remove(path) deleted.insert(name, oid) if conf2 is not None: for db in db2.databases.itervalues(): db.close()
def gc(conf, days=1, conf2=None): db = ZODB.config.databaseFromFile(open(conf)) if conf2 is None: db2 = db else: logger.info("Using secondary configuration, %s, for analysis", conf2) db2 = ZODB.config.databaseFromFile(open(conf2)) if set(db.databases) != set(db2.databases): raise ValueError("primary and secondary datab...
710f636d20110b254b274c75d4a5a9d62854e89a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5364/710f636d20110b254b274c75d4a5a9d62854e89a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8859, 12, 3923, 16, 4681, 33, 21, 16, 2195, 22, 33, 7036, 4672, 1319, 273, 2285, 19786, 18, 1425, 18, 6231, 13087, 12, 3190, 12, 3923, 3719, 309, 2195, 22, 353, 599, 30, 1319, 22, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8859, 12, 3923, 16, 4681, 33, 21, 16, 2195, 22, 33, 7036, 4672, 1319, 273, 2285, 19786, 18, 1425, 18, 6231, 13087, 12, 3190, 12, 3923, 3719, 309, 2195, 22, 353, 599, 30, 1319, 22, 27...
util.mkpath (name, mode, self.verbose, self.dry_run)
dir_util.mkpath(name, mode, self.verbose, self.dry_run)
def mkpath (self, name, mode=0777): util.mkpath (name, mode, self.verbose, self.dry_run)
09c32ab2e7168e7f15fad3a8eda93b98e396067a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/09c32ab2e7168e7f15fad3a8eda93b98e396067a/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 803, 261, 2890, 16, 508, 16, 1965, 33, 20, 14509, 4672, 1709, 18, 24816, 803, 261, 529, 16, 1965, 16, 365, 18, 11369, 16, 365, 18, 25011, 67, 2681, 13, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5028, 803, 261, 2890, 16, 508, 16, 1965, 33, 20, 14509, 4672, 1709, 18, 24816, 803, 261, 529, 16, 1965, 16, 365, 18, 11369, 16, 365, 18, 25011, 67, 2681, 13, 2, -100, -100, -100, -10...
Testing bad charent includes: <system_message level="3" line="1" source="%s" type="ERROR">
Testing errors in included file: <system_message level="3" line="1" source="%(source)s" type="ERROR">
def suite(): s = DocutilsTestSupport.ParserTestSuite() s.generateTests(totest) return s
be0a683fdfa7936d22943e68fd43d90dc54c884a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/be0a683fdfa7936d22943e68fd43d90dc54c884a/test_include.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
max_ratio = height_ratio
max_ratio = height_ratio
def zoom_to_fit_or_1_to_1(self, action, is_preloadimg):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7182, 67, 869, 67, 7216, 67, 280, 67, 21, 67, 869, 67, 21, 12, 2890, 16, 1301, 16, 353, 67, 1484, 945, 6081, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7182, 67, 869, 67, 7216, 67, 280, 67, 21, 67, 869, 67, 21, 12, 2890, 16, 1301, 16, 353, 67, 1484, 945, 6081, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
[Ideal (z^3 + 2, -z^2 + y) of Multivariate Polynomial Ring in x, y, z over Rational Field, Ideal (z^2 + 1, -z^2 + y) of Multivariate Polynomial Ring in x, y, z over Rational Field]
[Ideal (z^2 + 1, -z^2 + y) of Multivariate Polynomial Ring in x, y, z over Rational Field, Ideal (z^3 + 2, -z^2 + y) of Multivariate Polynomial Ring in x, y, z over Rational Field]
def minimal_associated_primes(self): r""" OUTPUT: list -- a list of prime ideals
46f3f42ba21e62bc919b91320ff5b4482653b732 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/46f3f42ba21e62bc919b91320ff5b4482653b732/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16745, 67, 28441, 67, 683, 4485, 12, 2890, 4672, 436, 8395, 11550, 30, 666, 1493, 279, 666, 434, 17014, 10572, 1031, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16745, 67, 28441, 67, 683, 4485, 12, 2890, 4672, 436, 8395, 11550, 30, 666, 1493, 279, 666, 434, 17014, 10572, 1031, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self.get(False)
self.not_empty.acquire() try: if self._empty(): raise Empty else: item = self._get() self.not_full.notify() return item finally: self.not_empty.release()
def get_nowait(self): """Remove and return an item from the queue without blocking.
5af0e414822e0e5da17566e1156005df520d1ae0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5af0e414822e0e5da17566e1156005df520d1ae0/Queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3338, 1540, 12, 2890, 4672, 3536, 3288, 471, 327, 392, 761, 628, 326, 2389, 2887, 9445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3338, 1540, 12, 2890, 4672, 3536, 3288, 471, 327, 392, 761, 628, 326, 2389, 2887, 9445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
n.append(nodes.inline(text=t))
n.append(nodes.Text(t))
def mol_role(role, rawtext, text, lineno, inliner, options={}, content=[]): n = [] t = '' while text: if text[0] == '_': n.append(nodes.inline(text=t)) t = '' n.append(nodes.subscript(text=text[1])) text = text[2:] else: t += text[0] text = text[1:] n.append(nodes.inline(text=t)) return n, []
c7ef21ee5ed8d4fe902c68f9873d9e185e73c309 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/c7ef21ee5ed8d4fe902c68f9873d9e185e73c309/ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12629, 67, 4615, 12, 4615, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 290, 273, 5378, 268, 273, 875, 1323, 977, 30, 309, 977, 63, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12629, 67, 4615, 12, 4615, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 290, 273, 5378, 268, 273, 875, 1323, 977, 30, 309, 977, 63, 20, ...
self.body.append(self.context.pop()) self.body.append(self.starttag(node, 'tbody', valign='top'))
self.inTableBody = True
def visit_tbody(self, node): self.write_colspecs() self.body.append(self.context.pop()) # '</colgroup>\n' or '' self.body.append(self.starttag(node, 'tbody', valign='top'))
6375238ab8247c4cfacf9efad70324a50b6c7ce8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/6375238ab8247c4cfacf9efad70324a50b6c7ce8/OOwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 20779, 12, 2890, 16, 756, 4672, 365, 18, 2626, 67, 1293, 15115, 1435, 365, 18, 3432, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 468, 4357, 1293, 1655, 5333, 82, 11, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 20779, 12, 2890, 16, 756, 4672, 365, 18, 2626, 67, 1293, 15115, 1435, 365, 18, 3432, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 468, 4357, 1293, 1655, 5333, 82, 11, 578, ...
int_length = int(length)
try: int_length = int(length) except: print `buf` raise
def read_file(f): buf = None while 1: if buf: length = buf[:5] int_length = int(length) else: length = f.read(5) buf = length if length == "": break try: assert length.isdigit() except AssertionError: print `length` raise int_length = int(length) data = buf + f.read(int_length - len(buf)) buf = None if not data.endswit...
bef6afc11b4f7b8971ec3803fb79303961289695 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/bef6afc11b4f7b8971ec3803fb79303961289695/fast_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 768, 12, 74, 4672, 1681, 273, 599, 1323, 404, 30, 309, 1681, 30, 769, 273, 1681, 10531, 25, 65, 775, 30, 509, 67, 2469, 273, 509, 12, 2469, 13, 1335, 30, 1172, 1375, 4385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 768, 12, 74, 4672, 1681, 273, 599, 1323, 404, 30, 309, 1681, 30, 769, 273, 1681, 10531, 25, 65, 775, 30, 509, 67, 2469, 273, 509, 12, 2469, 13, 1335, 30, 1172, 1375, 4385, ...
monthes = {0: _("Month"),
months = {0: _("Month"),
def get_i18n_month_name(month_nb, display='short', ln=CFG_SITE_LANG): """ get a non-numeric representation of a month, internationalized. @param month_nb: number of month, (1 based!) =>1=jan,..,12=dec @param ln: language for output @return: the string representation of month """ _ = gettext_set_language(ln) if display ...
521fa3dc2accf244448eecb0f3bac9cf37e98f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1780/521fa3dc2accf244448eecb0f3bac9cf37e98f1a/dateutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 77, 2643, 82, 67, 7496, 67, 529, 12, 7496, 67, 6423, 16, 2562, 2218, 6620, 2187, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 336, 279, 1661, 17, 5246, 4335, 434, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 77, 2643, 82, 67, 7496, 67, 529, 12, 7496, 67, 6423, 16, 2562, 2218, 6620, 2187, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 336, 279, 1661, 17, 5246, 4335, 434, 279, ...
def _write_tmp_file_with_contents(contents): (file_descriptor, file_path) = tempfile.mkstemp() file = os.fdopen(file_descriptor, 'w') file.write(contents) file.close() return file_path
def _parse_latest_entry_from_file(changelog_file): entry_lines = [] first_line = changelog_file.readline() if not ChangeLog.date_line_regexp.match(first_line): return None entry_lines.append(first_line)
def _write_tmp_file_with_contents(contents): (file_descriptor, file_path) = tempfile.mkstemp() # NamedTemporaryFile always deletes the file on close in python < 2.6 file = os.fdopen(file_descriptor, 'w') file.write(contents) file.close() return file_path
ca4cad9f45fb5f85c7c9551aaec86d179a83bef8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/ca4cad9f45fb5f85c7c9551aaec86d179a83bef8/changelogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 5645, 67, 768, 67, 1918, 67, 3980, 12, 3980, 4672, 261, 768, 67, 12628, 16, 585, 67, 803, 13, 273, 13275, 18, 24816, 19781, 84, 1435, 468, 27555, 3712, 9792, 326, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 5645, 67, 768, 67, 1918, 67, 3980, 12, 3980, 4672, 261, 768, 67, 12628, 16, 585, 67, 803, 13, 273, 13275, 18, 24816, 19781, 84, 1435, 468, 27555, 3712, 9792, 326, 585, ...
if mc_remaining != mc_should:
if mc_remaining < mc_should:
def CheckPrereq(self): """Check prerequisites.
8fe9239ee5e338e00b486609b306e32add066fe5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/8fe9239ee5e338e00b486609b306e32add066fe5/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
"""Return a list of (name, value) tuples in native schema order."""
"""Return a list of (name, value) tuples in native interface order. The type specifies whether we are looking for attributes or methods. The '_itemsorter' argument provides the function that is used to order the fields. The default function should be the correct one for 99% of your needs. Example:: >>> from zope.int...
def _getInOrder(iface, type, _itemsorter=lambda x, y: cmp(x[1].order, y[1].order)): """Return a list of (name, value) tuples in native schema order.""" items = _get(iface, type).items() items.sort(_itemsorter) return items
8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 382, 2448, 12, 31479, 16, 618, 16, 389, 1726, 2467, 387, 33, 14661, 619, 16, 677, 30, 9411, 12, 92, 63, 21, 8009, 1019, 16, 677, 63, 21, 8009, 1019, 3719, 30, 3536, 990, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 382, 2448, 12, 31479, 16, 618, 16, 389, 1726, 2467, 387, 33, 14661, 619, 16, 677, 30, 9411, 12, 92, 63, 21, 8009, 1019, 16, 677, 63, 21, 8009, 1019, 3719, 30, 3536, 990, ...
args[0]
args[0], releaseConfigFile,
def verify_options(cmd_options, config): """Check release_configs against command-line opts""" success = True if cmd_options.branch != config['sourceRepoName']: log.error("branch passed in does not match release_configs") success = False if cmd_options.version != config['version']: log.error("version passed in does not...
29e2998218cfd0b56a6e7f3dc493dda66b40af1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/29e2998218cfd0b56a6e7f3dc493dda66b40af1c/release_sanity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 2116, 12, 4172, 67, 2116, 16, 642, 4672, 3536, 1564, 3992, 67, 10955, 5314, 1296, 17, 1369, 1500, 8395, 2216, 273, 1053, 309, 1797, 67, 2116, 18, 7500, 480, 642, 3292, 3168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 2116, 12, 4172, 67, 2116, 16, 642, 4672, 3536, 1564, 3992, 67, 10955, 5314, 1296, 17, 1369, 1500, 8395, 2216, 273, 1053, 309, 1797, 67, 2116, 18, 7500, 480, 642, 3292, 3168, ...
data = compress(self.TEXT)
if self.skip_decompress_tests: return data = bz2.compress(self.TEXT)
def testCompress(self): # "Test compress() function" data = compress(self.TEXT) self.assertEqual(self.decompress(data), self.TEXT)
2481432a0ddf1154a98edc6c468ea4c37a8c3ed5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2481432a0ddf1154a98edc6c468ea4c37a8c3ed5/test_bz2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16552, 12, 2890, 4672, 468, 315, 4709, 8099, 1435, 445, 6, 309, 365, 18, 7457, 67, 323, 14706, 67, 16341, 30, 327, 501, 273, 24788, 22, 18, 14706, 12, 2890, 18, 5151, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16552, 12, 2890, 4672, 468, 315, 4709, 8099, 1435, 445, 6, 309, 365, 18, 7457, 67, 323, 14706, 67, 16341, 30, 327, 501, 273, 24788, 22, 18, 14706, 12, 2890, 18, 5151, 13, 365, ...
imagefilename = getThemeFile(themeName, node.attributes["filename"].value) if not doesFileExist(imagefilename): fatalError("Cannot find image for playall button (%s)." % imagefilename) maskimagefilename = getThemeFile(themeName, node.attributes["mask"].value) if not doesFileExist(maskimagefilename): fatalError("Cannot...
paintBackground(bgimage, node) paintButton(draw, bgimage, bgimagemask, node, infoDOM, itemnum, page, itemsonthispage, chapternumber, chapterlist) button = spumuxdom.createElement("button") button.setAttribute("name","playall") button.setAttribute("x0","%s" % getScaledAttribute(node, "x")) button.setAttribute("y0",...
def drawThemeItem(page, itemsonthispage, itemnum, menuitem, bgimage, draw, bgimagemask, drawmask, highlightcolor, spumuxdom, spunode, numberofitems, chapternumber, chapterlist): """Draws text and graphics onto a dvd menu, called by createMenu and createChapterMenu""" #Get the XML containing information about this item ...
3b621623397009015c837134fe56f0ca3f353bed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/3b621623397009015c837134fe56f0ca3f353bed/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 8335, 1180, 12, 2433, 16, 761, 816, 2211, 2433, 16, 761, 2107, 16, 3824, 1726, 16, 7611, 2730, 16, 3724, 16, 7611, 15374, 351, 835, 16, 3724, 4455, 16, 8839, 3266, 16, 1694, 379,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 8335, 1180, 12, 2433, 16, 761, 816, 2211, 2433, 16, 761, 2107, 16, 3824, 1726, 16, 7611, 2730, 16, 3724, 16, 7611, 15374, 351, 835, 16, 3724, 4455, 16, 8839, 3266, 16, 1694, 379,...
break
if not hasattr(self.designer.model.specialAttrs['self'], oRf): break
def writeDependencies(self, output, ctrlName, depLinks, definedCtrls, stripFrmId=''): """ Write out dependent properties if all the ctrls they reference have been created. """ if depLinks.has_key(ctrlName): for prop, otherRefs in depLinks[ctrlName]: for oRf in otherRefs: if oRf not in definedCtrls: break else: output.a...
141c1d06b926a674bc6730615c2cf30ab6bb7925 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/141c1d06b926a674bc6730615c2cf30ab6bb7925/BaseCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 8053, 12, 2890, 16, 876, 16, 6414, 461, 16, 5993, 7100, 16, 2553, 39, 313, 3251, 16, 2569, 7167, 81, 548, 2218, 11, 4672, 3536, 2598, 596, 10460, 1790, 309, 777, 326, 14629, 3251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 8053, 12, 2890, 16, 876, 16, 6414, 461, 16, 5993, 7100, 16, 2553, 39, 313, 3251, 16, 2569, 7167, 81, 548, 2218, 11, 4672, 3536, 2598, 596, 10460, 1790, 309, 777, 326, 14629, 3251...
'manager_id2': fields.many2one('hr.employee', 'Second Approval', readonly=True, help='This area is automaticly filled by the user who validate the leave with second level (If Leave type need second validation)')
'manager_id2': fields.many2one('hr.employee', 'Second Approval', readonly=True, help='This area is automaticly filled by the user who validate the leave with second level (If Leave type need second validation)'), 'category_holiday_id': fields.many2one('hr.holidays', 'Holiday', help='For allocation By Employee Category...
def _employee_get(obj, cr, uid, context=None): if context is None: context = {} ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context) if ids: return ids[0] return False
8319012fca94b6f066e6d1f4e857737563eee7cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8319012fca94b6f066e6d1f4e857737563eee7cb/hr_holidays.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 351, 2817, 1340, 67, 588, 12, 2603, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 3258, 273, 1081, 18, 6011, 18, 588, 2668, 7256, 18, 351,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 351, 2817, 1340, 67, 588, 12, 2603, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 3258, 273, 1081, 18, 6011, 18, 588, 2668, 7256, 18, 351,...
def make_change1(path): files = os.listdir(path) for file in files[1:3]:
def delete_two_files(path): files = ['extensions', 'GlTransition.csharp'] for file in files:
def make_change1(path): files = os.listdir(path) for file in files[1:3]: if os.path.isfile(os.path.join(path, file)): print 'removing file', os.path.join(path, file) os.remove(os.path.join(path, file)) elif os.path.isdir(os.path.join(path, file)): print 'removing dir', os.path.join(path, file) shutil.rmtree(os.path.joi...
bfc20a799fb7ae7a0b6d7996e7ba0681bf49c856 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/bfc20a799fb7ae7a0b6d7996e7ba0681bf49c856/backupandrestore_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 15415, 67, 2354, 12, 803, 4672, 1390, 273, 10228, 9489, 2187, 296, 21308, 8850, 18, 71, 674, 11441, 3546, 364, 585, 316, 1390, 30, 309, 1140, 18, 803, 18, 291, 768, 12, 538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 15415, 67, 2354, 12, 803, 4672, 1390, 273, 10228, 9489, 2187, 296, 21308, 8850, 18, 71, 674, 11441, 3546, 364, 585, 316, 1390, 30, 309, 1140, 18, 803, 18, 291, 768, 12, 538, ...
if (res is not None): print 'sendall error'
if (len == 0): print 'len = 0'
def run (self): global sd_id global sd_owner global sd_name global pfsd_port cli = Connect ('', 0) cli.setsock (self.client)
c161f95a6ae4a916df4cd1a92f4c8a3bd6c3ab65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12216/c161f95a6ae4a916df4cd1a92f4c8a3bd6c3ab65/lan_tun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2552, 8349, 67, 350, 2552, 8349, 67, 8443, 2552, 8349, 67, 529, 2552, 293, 2556, 72, 67, 655, 4942, 273, 8289, 7707, 2187, 374, 13, 4942, 18, 4424, 975, 261, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2552, 8349, 67, 350, 2552, 8349, 67, 8443, 2552, 8349, 67, 529, 2552, 293, 2556, 72, 67, 655, 4942, 273, 8289, 7707, 2187, 374, 13, 4942, 18, 4424, 975, 261, 289...
print 'Branch "%s" has been deleted.' % doomed_name
print 'done'
def delete_branch(doomed_name, force = False): doomed = stack.Series(doomed_name) if doomed.get_protected(): raise CmdException, 'This branch is protected. Delete is not permitted' if is_current_branch(doomed_name) and doomed_name != 'master': git.switch_branch('master') doomed.delete(force) if doomed_name != 'mast...
fe4f6d5812d62c1d6a5e0aa7536bad2e8a3beb6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/fe4f6d5812d62c1d6a5e0aa7536bad2e8a3beb6b/branch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 7500, 12, 2896, 362, 329, 67, 529, 16, 2944, 273, 1083, 4672, 741, 362, 329, 273, 2110, 18, 6485, 12, 2896, 362, 329, 67, 529, 13, 225, 309, 741, 362, 329, 18, 588, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 7500, 12, 2896, 362, 329, 67, 529, 16, 2944, 273, 1083, 4672, 741, 362, 329, 273, 2110, 18, 6485, 12, 2896, 362, 329, 67, 529, 13, 225, 309, 741, 362, 329, 18, 588, 67, 1...
assert len(res) == number_of_atoms, \
if not ( len(res) == number_of_atoms ): print "\n*** BUG in atoms_in_mmp_file_order for %r: " % self, \
def atoms_in_mmp_file_order(self, mapping = None): #bruce 080321 """ [overrides Chunk method]
6495273e1d8c1b0570b3f269aedb8ef509f03cd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6495273e1d8c1b0570b3f269aedb8ef509f03cd0/DnaLadderRailChunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9006, 67, 267, 67, 81, 1291, 67, 768, 67, 1019, 12, 2890, 16, 2874, 273, 599, 4672, 468, 2848, 3965, 374, 3672, 1578, 21, 3536, 306, 19775, 13021, 707, 65, 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, 9006, 67, 267, 67, 81, 1291, 67, 768, 67, 1019, 12, 2890, 16, 2874, 273, 599, 4672, 468, 2848, 3965, 374, 3672, 1578, 21, 3536, 306, 19775, 13021, 707, 65, 2, -100, -100, -100, -100, ...
toaddrs = "To: " + args['p_email'] to = toaddrs + "\n" sub = "Subject: %s %s\n\n" % (_("Credentials for"), cdsname) body = "%s %s:\n\n" % (_("Here are your user credentials for"), cdsname) body += " %s: %s\n %s: %s\n\n" % (_("username"), args['p_email'], _("password"), passw) body += "%s %s/youraccount/login?ln=%s...
toaddr = "To: " + args['p_email'] subject = "Subject: %s %s" % (_("Credentials for"), cdsname) body = websession_templates.tmpl_account_lost_password_email_body(args['p_email'], passw, args['ln']) msg = toaddr + "\n" + subject + "\n\n" + body
def send_email(self, req, form): # set all the declared query fields as local variables args = wash_urlargd(form, {'p_email': (str, None)}) uid = webuser.getUid(req)
28ae12c953ec48b9646d02575e673b0d8fdc6399 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/28ae12c953ec48b9646d02575e673b0d8fdc6399/websession_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 16, 1111, 16, 646, 4672, 468, 444, 777, 326, 7886, 843, 1466, 487, 1191, 3152, 833, 273, 341, 961, 67, 718, 3175, 72, 12, 687, 16, 13666, 84, 67, 3652, 4278...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 16, 1111, 16, 646, 4672, 468, 444, 777, 326, 7886, 843, 1466, 487, 1191, 3152, 833, 273, 341, 961, 67, 718, 3175, 72, 12, 687, 16, 13666, 84, 67, 3652, 4278...