rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
""" Read the spec header from the datafile.
|
"""Read the spec header from the datafile.
|
def readHeader(self): """ Read the spec header from the datafile.
|
17360c36a91ef39238e92aeff0ad9b6c9ad0971f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/17360c36a91ef39238e92aeff0ad9b6c9ad0971f/spec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1864,
12,
2890,
4672,
3536,
2720,
326,
857,
1446,
628,
326,
30682,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
855,
1864,
12,
2890,
4672,
3536,
2720,
326,
857,
1446,
628,
326,
30682,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if text[-1] in whitespace:
|
if text and text[-1] in whitespace:
|
def _getFragWords(frags): ''' given a Parafrag list return a list of fragwords [[size, (f00,w00), ..., (f0n,w0n)],....,[size, (fm0,wm0), ..., (f0n,wmn)]] each pair f,w represents a style and some string each sublist represents a word ''' R = [] W = [] n = 0 hangingStrip = False for f in frags: text = f.text #del f.text # we can't do this until we sort out splitting # of paragraphs if text!='': if hangingStrip: hangingStrip = False text = text.lstrip() S = split(text) if S==[]: S = [''] if W!=[] and text[0] in whitespace: W.insert(0,n) R.append(W) W = [] n = 0 for w in S[:-1]: W.append((f,w)) n += stringWidth(w, f.fontName, f.fontSize) W.insert(0,n) R.append(W) W = [] n = 0 w = S[-1] W.append((f,w)) n += stringWidth(w, f.fontName, f.fontSize) if text[-1] in whitespace: W.insert(0,n) R.append(W) W = [] n = 0 elif hasattr(f,'cbDefn'): W.append((f,'')) elif hasattr(f, 'lineBreak'): #pass the frag through. The line breaker will scan for it. if W!=[]: W.insert(0,n) R.append(W) W = [] n = 0 R.append([0,(f,'')]) hangingStrip = True if W!=[]: W.insert(0,n) R.append(W) return R
|
0647f2f676b444d66e914221d559c3dacc8d0d0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/0647f2f676b444d66e914221d559c3dacc8d0d0a/paragraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
19509,
7363,
12,
28193,
4672,
9163,
864,
279,
2280,
1727,
2458,
666,
327,
279,
666,
434,
10111,
3753,
12167,
1467,
16,
261,
74,
713,
16,
91,
713,
3631,
1372,
16,
261,
74,
20,
82,
16,
91,
20,
82,
13,
6487,
6265,
16,
63,
1467,
16,
261,
25089,
20,
16,
91,
81,
20,
3631,
1372,
16,
261,
74,
20,
82,
16,
91,
13607,
13,
13563,
1517,
3082,
284,
16,
91,
8686,
279,
2154,
471,
2690,
533,
1517,
26680,
8686,
279,
2076,
9163,
534,
273,
5378,
678,
273,
5378,
290,
273,
374,
366,
18183,
16632,
273,
1083,
364,
284,
316,
3812,
1341,
30,
977,
273,
284,
18,
955,
468,
3771,
284,
18,
955,
468,
732,
848,
1404,
741,
333,
3180,
732,
1524,
596,
20347,
468,
434,
24552,
309,
977,
5,
2218,
4278,
309,
366,
18183,
16632,
30,
366,
18183,
16632,
273,
1083,
977,
273,
977,
18,
80,
6406,
1435,
348,
273,
1416,
12,
955,
13,
309,
348,
631,
8526,
30,
348,
273,
10228,
3546,
309,
678,
5,
33,
8526,
471,
977,
63,
20,
65,
316,
7983,
30,
678,
18,
6387,
12,
20,
16,
82,
13,
534,
18,
6923,
12,
59,
13,
678,
273,
5378,
290,
273,
374,
225,
364,
341,
316,
348,
10531,
17,
21,
14542,
678,
18,
6923,
12443,
74,
16,
91,
3719,
290,
1011,
533,
2384,
12,
91,
16,
284,
18,
5776,
461,
16,
284,
18,
5776,
1225,
13,
678,
18,
6387,
12,
20,
16,
82,
13,
534,
18,
6923,
12,
59,
13,
678,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19509,
7363,
12,
28193,
4672,
9163,
864,
279,
2280,
1727,
2458,
666,
327,
279,
666,
434,
10111,
3753,
12167,
1467,
16,
261,
74,
713,
16,
91,
713,
3631,
1372,
16,
261,
74,
20,
82,
16,
91,
20,
82,
13,
6487,
6265,
16,
63,
1467,
16,
261,
25089,
20,
16,
91,
81,
20,
3631,
1372,
16,
261,
74,
20,
82,
16,
91,
13607,
13,
13563,
1517,
3082,
284,
16,
91,
8686,
279,
2154,
471,
2690,
533,
1517,
26680,
8686,
279,
2076,
9163,
534,
273,
5378,
678,
273,
5378,
290,
273,
374,
366,
18183,
16632,
273,
1083,
364,
284,
316,
3812,
1341,
30,
977,
273,
284,
18,
955,
468,
3771,
284,
18,
955,
468,
732,
848,
1404,
741,
2
] |
midpoint C of AB and computes the distance between C and D. The point D is added to the curve if it exceeds the (nonzero) adaptive_tolerance threshold. If D is added to the curve, then the
|
midpoint C of AB and computes the distance between C and D. If that distance exceeds the adaptive_tolerance threshold (*relative* to the size of the initial plot subintervals), the point D is added to the curve. If D is added to the curve, then the
|
def plot(funcs, *args, **kwds): r""" Use plot by writing ``plot(X, ...)`` where `X` is a Sage object (or list of Sage objects) that either is callable and returns numbers that can be coerced to floats, or has a plot method that returns a ``GraphicPrimitive`` object. Type ``plot.options`` for a dictionary of the default options for plots. You can change this to change the defaults for all future plots. Use ``plot.reset()`` to reset to the default options. PLOT OPTIONS: - ``plot_points`` - (default: 5) the minimal number of plot points. - ``adaptive_recursion`` - (default: 5) how many levels of recursion to go before giving up when doing adaptive refinement. Setting this to 0 disables adaptive refinement. - ``adaptive_tolerance`` - (default: 0.01) how large a difference should be before the adaptive refinement code considers it significant. See the documentation for plot() for more information. - ``xmin`` - starting x value - ``xmax`` - ending x value - ``color`` - an rgb-tuple (r,g,b) with each of r,g,b between 0 and 1, or a color name as a string (e.g., 'purple'), or an HTML color such as '#aaff0b'. APPEARANCE OPTIONS: The following options affect the appearance of the line through the points on the graph of `X` (these are the same as for the line function): INPUT: - ``alpha`` - How transparent the line is - ``thickness`` - How thick the line is - ``rgbcolor`` - The color as an rgb tuple - ``hue`` - The color given as a hue Any MATPLOTLIB line option may also be passed in. E.g., - ``linestyle`` - The style of the line, which is one of '--' (dashed), '-.' (dash dot), '-' (solid), 'steps', ':' (dotted) - ``marker`` - "'0' (tickleft), '1' (tickright), '2' (tickup), '3' (tickdown), '' (nothing), ' ' (nothing), '+' (plus), ',' (pixel), '.' (point), '1' (tri_down), '3' (tri_left), '2' (tri_up), '4' (tri_right), '<' (triangle_left), '>' (triangle_right), 'None' (nothing), 'D' (diamond), 'H' (hexagon2), '_' (hline), '\^' (triangle_up), 'd' (thin_diamond), 'h' (hexagon1), 'o' (circle), 'p' (pentagon), 's' (square), 'v' (triangle_down), 'x' (x), '|' (vline)" - ``markersize`` - the size of the marker in points - ``markeredgecolor`` - the markerfacecolor can be any color arg - ``markeredgewidth`` - the size of the marker edge in points FILLING OPTIONS: INPUT: - ``fill`` - (Default: None) One of: - "axis" or True: Fill the area between the function and the x-axis. - "min": Fill the area between the function and its minimal value. - "max": Fill the area between the function and its maximal value. - a number c: Fill the area between the function and the horizontal line y = c. - a function g: Fill the area between the function that is plotted and g. - a dictonary d (only if a list of functions are plotted): The keys of the dictionary should be integers. The value of d[i] specifies the fill options for the i-th function in the list. If d[i] == [j]: Fill the area between the i-th and the j-th function in the list. - ``fillcolor`` - (default: 'automatic') The color of the fill. Either 'automatic' or a color. - ``fillalpha`` - (default: 0.5) How transparent the fill is. A number between 0 and 1. Note that this function does NOT simply sample equally spaced points between xmin and xmax. Instead it computes equally spaced points and add small perturbations to them. This reduces the possibility of, e.g., sampling sin only at multiples of `2\pi`, which would yield a very misleading graph. EXAMPLES: We plot the sin function:: sage: P = plot(sin, (0,10)); print P Graphics object consisting of 1 graphics primitive sage: len(P) # number of graphics primitives 1 sage: len(P[0]) # how many points were computed (random) 225 sage: P # render :: sage: P = plot(sin, (0,10), plot_points=10); print P Graphics object consisting of 1 graphics primitive sage: len(P[0]) # random output 32 sage: P # render We plot with randomize=False, which makes the initial sample points evenly spaced (hence always the same). Adaptive plotting might insert other points, however, unless adaptive_recursion=0. :: sage: p=plot(1, (x,0,3), plot_points=4, randomize=False, adaptive_recursion=0) sage: list(p[0]) [(0.0, 1.0), (1.0, 1.0), (2.0, 1.0), (3.0, 1.0)] Some colored functions:: sage: plot(sin, 0, 10, rgbcolor='#ff00ff') sage: plot(sin, 0, 10, rgbcolor='purple') We plot several functions together by passing a list of functions as input:: sage: plot([sin(n*x) for n in [1..4]], (0, pi)) The function `\sin(1/x)` wiggles wildly near `0`. Sage adapts to this and plots extra points near the origin. :: sage: plot(sin(1/x), (x, -1, 1)) Note that the independent variable may be omitted if there is no ambiguity:: sage: plot(sin(1/x), (-1, 1)) The algorithm used to insert extra points is actually pretty simple. On the picture drawn by the lines below:: sage: p = plot(x^2, (-0.5, 1.4)) + line([(0,0), (1,1)], rgbcolor='green') sage: p += line([(0.5, 0.5), (0.5, 0.5^2)], rgbcolor='purple') sage: p += point(((0, 0), (0.5, 0.5), (0.5, 0.5^2), (1, 1)), rgbcolor='red', pointsize=20) sage: p += text('A', (-0.05, 0.1), rgbcolor='red') sage: p += text('B', (1.01, 1.1), rgbcolor='red') sage: p += text('C', (0.48, 0.57), rgbcolor='red') sage: p += text('D', (0.53, 0.18), rgbcolor='red') sage: p.show(axes=False, xmin=-0.5, xmax=1.4, ymin=0, ymax=2) You have the function (in blue) and its approximation (in green) passing through the points A and B. The algorithm finds the midpoint C of AB and computes the distance between C and D. The point D is added to the curve if it exceeds the (nonzero) adaptive_tolerance threshold. If D is added to the curve, then the algorithm is applied recursively to the points A and D, and D and B. It is repeated adaptive_recursion times (10, by default). The actual sample points are slightly randomized, so the above plots may look slightly different each time you draw them. We draw the graph of an elliptic curve as the union of graphs of 2 functions. :: sage: def h1(x): return abs(sqrt(x^3 - 1)) sage: def h2(x): return -abs(sqrt(x^3 - 1)) sage: P = plot([h1, h2], 1,4) sage: P # show the result We can also directly plot the elliptic curve:: sage: E = EllipticCurve([0,-1]) sage: plot(E, (1, 4), rgbcolor=hue(0.6)) We can change the line style to one of '--' (dashed), '-.' (dash dot), '-' (solid), 'steps', ':' (dotted):: sage: plot(sin(x), 0, 10, linestyle='-.') Sage currently ignores points that cannot be evaluated :: sage: set_verbose(-1) sage: plot(-x*log(x), (x,0,1)) # this works fine since the failed endpoint is just skipped. sage: set_verbose(0) This prints out a warning and plots where it can (we turn off the warning by setting the verbose mode temporarily to -1.) :: sage: set_verbose(-1) sage: plot(x^(1/3), (x,-1,1)) sage: set_verbose(0) To plot the negative real cube root, use something like the following:: sage: plot(lambda x : RR(x).nth_root(3), (x,-1, 1)) The basic options for filling a plot:: sage: p1 = plot(sin(x), -pi, pi, fill = 'axis') sage: p2 = plot(sin(x), -pi, pi, fill = 'min') sage: p3 = plot(sin(x), -pi, pi, fill = 'max') sage: p4 = plot(sin(x), -pi, pi, fill = 0.5) sage: graphics_array([[p1, p2], [p3, p4]]).show(frame=True, axes=False) sage: plot([sin(x), cos(2*x)*sin(4*x)], -pi, pi, fill = {0: 1}, fillcolor = 'red', fillalpha = 1) A example about the growth of prime numbers:: sage: plot(1.13*log(x), 1, 100, fill = lambda x: nth_prime(x)/floor(x), fillcolor = 'red') Fill the area between a function and its asymptote:: sage: f = (2*x^3+2*x-1)/((x-2)*(x+1)) sage: plot([f, 2*x+2], -7,7, fill = {0: [1]}, fillcolor='#ccc').show(ymin=-20, ymax=20) sage: def b(n): return lambda x: bessel_J(n, x) sage: plot([b(n) for n in [1..5]], 0, 20, fill = 'axis') sage: def b(n): return lambda x: bessel_J(n, x) + 0.5*(n-1) sage: plot([b(c) for c in [1..5]], 0, 40, fill = dict([(i, i+1) for i in [0..3]])) TESTS: We do not randomize the endpoints:: sage: p = plot(x, (x,-1,1)) sage: p[0].xdata[0] == -1 True sage: p[0].xdata[-1] == 1 True We check to make sure that the x/y min/max data get set correctly when there are multiple functions. :: sage: d = plot([sin(x), cos(x)], 100, 120).get_minmax_data() sage: d['xmin'] 100.0 sage: d['xmax'] 120.0 We check various combinations of tuples and functions, ending with tests that lambda functions work properly with explicit variable declaration, without a tuple. :: sage: p = plot(lambda x: x,(x,-1,1)) sage: p = plot(lambda x: x,-1,1) sage: p = plot(x,x,-1,1) sage: p = plot(x,-1,1) sage: p = plot(x^2,x,-1,1) sage: p = plot(x^2,xmin=-1,xmax=2) sage: p = plot(lambda x: x,x,-1,1) sage: p = plot(lambda x: x^2,x,-1,1) sage: p = plot(lambda x: 1/x,x,-1,1) sage: f(x) = sin(x+3)-.1*x^3 sage: p = plot(lambda x: f(x),x,-1,1) We check to handle cases where the function gets evaluated at a point which causes an 'inf' or '-inf' result to be produced. :: sage: p = plot(1/x, 0, 1) sage: p = plot(-1/x, 0, 1) Bad options now give better errors:: sage: P = plot(sin(1/x), (x,-1,3), foo=10) Traceback (most recent call last): ... RuntimeError: Error in line(): option 'foo' not valid. """ original_opts = kwds.pop('__original_opts', {}) do_show = kwds.pop('show',False) if hasattr(funcs, 'plot'): G = funcs.plot(*args, **original_opts) # if we are using the generic plotting method else: n = len(args) # if there are no extra args, try to get xmin,xmax from # keyword arguments or pick some silly default if n == 0: xmin = kwds.pop('xmin', -1) xmax = kwds.pop('xmax', 1) G = _plot(funcs, (xmin, xmax), **kwds) # if there is one extra arg, then it had better be a tuple elif n == 1: G = _plot(funcs, *args, **kwds) elif n == 2: # if there are two extra args, then pull them out and pass them as a tuple xmin = args[0] xmax = args[1] args = args[2:] G = _plot(funcs, (xmin, xmax), *args, **kwds) elif n == 3: # if there are three extra args, then pull them out and pass them as a tuple var = args[0] xmin = args[1] xmax = args[2] args = args[3:] G = _plot(funcs, (var, xmin, xmax), *args, **kwds) elif ('xmin' in kwds) or ('xmax' in kwds): xmin = kwds.pop('xmin', -1) xmax = kwds.pop('xmax', 1) G = _plot(funcs, (xmin, xmax), *args, **kwds) pass else: sage.misc.misc.verbose("there were %s extra arguments (besides %s)" % (n, funcs), level=0) if do_show: G.show() return G
|
53bc30b3387bfc0f18049d2b64fd1492c7912453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/53bc30b3387bfc0f18049d2b64fd1492c7912453/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
17728,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
2672,
3207,
635,
7410,
225,
12176,
4032,
12,
60,
16,
1372,
13,
10335,
225,
1625,
1375,
60,
68,
353,
279,
348,
410,
733,
261,
280,
666,
434,
348,
410,
2184,
13,
716,
3344,
353,
4140,
471,
1135,
5600,
716,
848,
506,
12270,
72,
358,
19172,
16,
578,
711,
279,
3207,
707,
716,
1135,
279,
12176,
29459,
9840,
10335,
733,
18,
225,
1412,
12176,
4032,
18,
2116,
10335,
364,
279,
3880,
434,
326,
805,
702,
364,
17931,
18,
4554,
848,
2549,
333,
358,
2549,
326,
3467,
364,
777,
3563,
17931,
18,
2672,
12176,
4032,
18,
6208,
1435,
10335,
358,
2715,
358,
326,
805,
702,
18,
225,
453,
1502,
56,
16726,
30,
225,
300,
12176,
4032,
67,
4139,
10335,
300,
261,
1886,
30,
1381,
13,
326,
16745,
1300,
434,
3207,
3143,
18,
225,
300,
12176,
19195,
688,
67,
31347,
10335,
300,
261,
1886,
30,
1381,
13,
3661,
4906,
7575,
434,
13917,
358,
1960,
1865,
21057,
731,
1347,
9957,
5855,
688,
25994,
820,
18,
225,
13274,
333,
358,
374,
24960,
5855,
688,
25994,
820,
18,
225,
300,
12176,
19195,
688,
67,
25456,
10335,
300,
261,
1886,
30,
374,
18,
1611,
13,
3661,
7876,
279,
7114,
1410,
506,
1865,
326,
5855,
688,
25994,
820,
981,
1959,
24290,
518,
14177,
18,
225,
2164,
326,
7323,
364,
3207,
1435,
364,
1898,
1779,
18,
225,
300,
12176,
92,
1154,
10335,
300,
5023,
619,
460,
225,
300,
12176,
92,
1896,
10335,
300,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
17728,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
2672,
3207,
635,
7410,
225,
12176,
4032,
12,
60,
16,
1372,
13,
10335,
225,
1625,
1375,
60,
68,
353,
279,
348,
410,
733,
261,
280,
666,
434,
348,
410,
2184,
13,
716,
3344,
353,
4140,
471,
1135,
5600,
716,
848,
506,
12270,
72,
358,
19172,
16,
578,
711,
279,
3207,
707,
716,
1135,
279,
12176,
29459,
9840,
10335,
733,
18,
225,
1412,
12176,
4032,
18,
2116,
10335,
364,
279,
3880,
434,
326,
805,
702,
364,
17931,
18,
4554,
848,
2549,
333,
358,
2549,
326,
3467,
364,
777,
3563,
17931,
18,
2672,
12176,
4032,
18,
6208,
1435,
10335,
358,
2715,
358,
326,
805,
702,
18,
225,
453,
2
] |
empty_vec_list = [[] for i in range(Theta_Precision + 1)] theta_vec = [[] for i in range(Theta_Precision + 1)]
|
theta_vec = [[] for i in range(bound + 1)]
|
def vectors_by_length(self, bound): """ Returns a list of short vectors together with their values. This is a naive algorithm which uses the Cholesky decomposition, but does not use the LLL-reduction algorithm. INPUT: bound -- an integer >= 0 OUTPUT: A list L of length (bound + 1) whose entry L[i] is a list of all vectors of length i. Reference: This is a slightly modified version of Cohn's Algorithm 2.7.5 in "A Course in Computational Number Theory", with the increment step moved around and slightly re-indexed to allow clean looping. Note: We could speed this up for very skew matrices by using LLL first, and then changing coordinates back, but for our purposes the simpler method is efficient enough. =) EXAMPLES: sage: Q = DiagonalQuadraticForm(ZZ, [1,1]) sage: Q.vectors_by_length(5) [[[0, 0]], [[0, -1], [-1, 0]], [[-1, -1], [1, -1]], [], [[0, -2], [-2, 0]], [[-1, -2], [1, -2], [-2, -1], [2, -1]]] sage: Q1 = DiagonalQuadraticForm(ZZ, [1,3,5,7]) sage: Q1.vectors_by_length(5) [[[0, 0, 0, 0]], [[-1, 0, 0, 0]], [], [[0, -1, 0, 0]], [[-1, -1, 0, 0], [1, -1, 0, 0], [-2, 0, 0, 0]], [[0, 0, -1, 0]]] """ Theta_Precision = bound ## Unsigned long n = self.dim() ## Make the vector of vectors which have a given value ## (So theta_vec[i] will have all vectors v with Q(v) = i.) empty_vec_list = [[] for i in range(Theta_Precision + 1)] theta_vec = [[] for i in range(Theta_Precision + 1)] ## Initialize Q with zeros and Copy the Cholesky array into Q Q = self.cholesky_decomposition() ## 1. Initialize T = n * [RDF(0)] ## Note: We index the entries as 0 --> n-1 U = n * [RDF(0)] i = n-1 T[i] = RDF(Theta_Precision) U[i] = RDF(0) L = n * [0] x = n * [0] Z = RDF(0) ## 2. Compute bounds Z = sqrt(T[i] / Q[i][i]) L[i] = ZZ(floor(Z - U[i])) x[i] = ZZ(ceil(-Z - U[i]) - 0) done_flag = False Q_val_double = RDF(0) Q_val = 0 ## WARNING: Still need a good way of checking overflow for this value... ## Big loop which runs through all vectors while not done_flag: ## 3b. Main loop -- try to generate a complete vector x (when i=0) while (i > 0): #print " i = ", i #print " T[i] = ", T[i] #print " Q[i][i] = ", Q[i][i] #print " x[i] = ", x[i] #print " U[i] = ", U[i] #print " x[i] + U[i] = ", (x[i] + U[i]) #print " T[i-1] = ", T[i-1] T[i-1] = T[i] - Q[i][i] * (x[i] + U[i]) * (x[i] + U[i]) #print " T[i-1] = ", T[i-1] #print " x = ", x #print i = i - 1 U[i] = 0 for j in range(i+1, n): U[i] = U[i] + Q[i][j] * x[j] ## Now go back and compute the bounds... ## 2. Compute bounds Z = sqrt(T[i] / Q[i][i]) L[i] = ZZ(floor(Z - U[i])) x[i] = ZZ(ceil(-Z - U[i]) - 0) ## 4. Solution found (This happens when i = 0) #print "-- Solution found! --" #print " x = ", x #print " Q_val = Q(x) = ", Q_val Q_val_double = Theta_Precision - T[0] + Q[0][0] * (x[0] + U[0]) * (x[0] + U[0]) Q_val = ZZ(floor(round(Q_val_double))) ## SANITY CHECK: Roundoff Error is < 0.001 if abs(Q_val_double - Q_val) > 0.001: print " x = ", x print " Float = ", Q_val_double, " Long = ", Q_val raise RuntimeError, "The roundoff error is bigger than 0.001, so we should use more precision somewhere..." #print " Float = ", Q_val_double, " Long = ", Q_val, " XX " #print " The float value is ", Q_val_double #print " The associated long value is ", Q_val if (Q_val <= Theta_Precision): #print " Have vector ", x, " with value ", Q_val theta_vec[Q_val].append(deepcopy(x)) ## 5. Check if x = 0, for exit condition. =) j = 0 done_flag = True while (j < n): if (x[j] != 0): done_flag = False j += 1 ## 3a. Increment (and carry if we go out of bounds) x[i] += 1 while (x[i] > L[i]) and (i < n-1): i += 1 x[i] += 1 #print " Leaving ThetaVectors()" return theta_vec
|
11f419f5d8f61203b210269d067662af34db070a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/11f419f5d8f61203b210269d067662af34db070a/quadratic_form__split_local_covering.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10046,
67,
1637,
67,
2469,
12,
2890,
16,
2489,
4672,
3536,
2860,
279,
666,
434,
3025,
10046,
9475,
598,
3675,
924,
18,
225,
1220,
353,
279,
28224,
4886,
1492,
4692,
326,
1680,
9112,
18465,
26288,
16,
1496,
1552,
486,
999,
326,
511,
4503,
17,
1118,
4062,
4886,
18,
225,
12943,
30,
2489,
1493,
392,
3571,
1545,
374,
225,
11550,
30,
432,
666,
511,
434,
769,
261,
3653,
397,
404,
13,
8272,
1241,
511,
63,
77,
65,
353,
279,
666,
434,
777,
10046,
434,
769,
277,
18,
225,
6268,
30,
1220,
353,
279,
21980,
4358,
1177,
434,
7695,
76,
82,
1807,
15067,
576,
18,
27,
18,
25,
316,
315,
37,
385,
3117,
316,
14169,
8371,
3588,
1021,
630,
3113,
598,
326,
5504,
2235,
10456,
6740,
471,
21980,
283,
17,
19626,
358,
1699,
2721,
25004,
18,
225,
3609,
30,
1660,
3377,
8632,
333,
731,
364,
8572,
20001,
16415,
635,
1450,
511,
4503,
1122,
16,
471,
1508,
12770,
5513,
1473,
16,
1496,
364,
3134,
13694,
326,
9330,
264,
707,
353,
14382,
7304,
18,
273,
13,
225,
5675,
8900,
11386,
30,
272,
410,
30,
2238,
273,
14539,
9528,
24483,
20004,
1204,
12,
27096,
16,
306,
21,
16,
21,
5717,
272,
410,
30,
2238,
18,
18535,
67,
1637,
67,
2469,
12,
25,
13,
12167,
63,
20,
16,
374,
65,
6487,
12167,
20,
16,
300,
21,
6487,
23059,
21,
16,
374,
65,
6487,
12167,
17,
21,
16,
300,
21,
6487,
306,
21,
16,
300,
21,
65,
6487,
5378,
16,
12167,
20,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10046,
67,
1637,
67,
2469,
12,
2890,
16,
2489,
4672,
3536,
2860,
279,
666,
434,
3025,
10046,
9475,
598,
3675,
924,
18,
225,
1220,
353,
279,
28224,
4886,
1492,
4692,
326,
1680,
9112,
18465,
26288,
16,
1496,
1552,
486,
999,
326,
511,
4503,
17,
1118,
4062,
4886,
18,
225,
12943,
30,
2489,
1493,
392,
3571,
1545,
374,
225,
11550,
30,
432,
666,
511,
434,
769,
261,
3653,
397,
404,
13,
8272,
1241,
511,
63,
77,
65,
353,
279,
666,
434,
777,
10046,
434,
769,
277,
18,
225,
6268,
30,
1220,
353,
279,
21980,
4358,
1177,
434,
7695,
76,
82,
1807,
15067,
576,
18,
27,
18,
25,
316,
315,
37,
385,
3117,
316,
14169,
8371,
3588,
1021,
630,
3113,
2
] |
_run(LATEX_COMMAND % filenames, options)
|
_run(latex_command % filenames, options)
|
def _latex(docmap, options, format): """ Create the LaTeX documentation for the objects in the given documentation map. @param docmap: A documentation map containing the documentation for the objects whose API documentation should be created. @param options: Options from the command-line arguments. @type options: C{dict} @param format: One of C{'latex'}, C{'dvi'}, C{'ps'}, or C{'pdf'}. """ from epydoc.latex import LatexFormatter # Create the documenter, and figure out how many files it will # generate. latex_doc = LatexFormatter(docmap, **options) num_files = latex_doc.num_files() # Write documentation. if options['verbosity'] > 0: print >>sys.stderr, ('Writing LaTeX docs (%d files) to %r.' % (num_files, options['target'])) progress = _Progress('Writing', options['verbosity'], num_files) latex_doc.write(options['target'], progress.report) # Run latex, makeindex, dvi, ps, and pdf, as appropriate. oldpath = os.path.abspath(os.curdir) try: try: # Filenames (used by the external commands) filenames = {'tex': 'api.tex', 'idx': 'api.idx', 'dvi': 'api.dvi', 'ps': 'api.ps', 'pdf': 'api.pdf'} # latex -> dvi if format in ('dvi', 'ps', 'pdf'): # Go into the output directory. os.chdir(options['target']) _run(LATEX_COMMAND % filenames, options) _run(MAKEINDEX_COMMAND % filenames, options) _run(LATEX_COMMAND % filenames, options) _run(LATEX_COMMAND % filenames, options) # dvi -> postscript if format in ('ps', 'pdf'): _run(DVIPS_COMMAND % filenames, options) # postscript -> pdf if format in ('pdf',): _run(PS2PDF_COMMAND % filenames, options) except OSError, e: print >>sys.stderr, 'Error: %s' % e sys.exit(1) finally: os.chdir(oldpath)
|
5397b1945fdf3feb9813ef60349d76c37defaafe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5397b1945fdf3feb9813ef60349d76c37defaafe/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
12,
2434,
1458,
16,
702,
16,
740,
4672,
3536,
1788,
326,
21072,
21575,
60,
7323,
364,
326,
2184,
316,
326,
864,
7323,
852,
18,
225,
632,
891,
997,
1458,
30,
432,
7323,
852,
4191,
326,
7323,
364,
326,
2184,
8272,
1491,
7323,
1410,
506,
2522,
18,
632,
891,
702,
30,
5087,
628,
326,
1296,
17,
1369,
1775,
18,
632,
723,
702,
30,
385,
95,
1576,
97,
632,
891,
740,
30,
6942,
434,
385,
27828,
26264,
11,
5779,
385,
27828,
72,
522,
11,
5779,
385,
27828,
1121,
11,
5779,
578,
385,
27828,
7699,
11,
5496,
3536,
628,
425,
2074,
2434,
18,
26264,
1930,
11134,
338,
5074,
225,
468,
1788,
326,
1668,
264,
16,
471,
7837,
596,
3661,
4906,
1390,
518,
903,
468,
2103,
18,
25079,
67,
2434,
273,
11134,
338,
5074,
12,
2434,
1458,
16,
2826,
2116,
13,
818,
67,
2354,
273,
25079,
67,
2434,
18,
2107,
67,
2354,
1435,
225,
468,
2598,
7323,
18,
309,
702,
3292,
16629,
8807,
3546,
405,
374,
30,
1172,
225,
1671,
9499,
18,
11241,
16,
7707,
18835,
21072,
21575,
60,
3270,
6142,
72,
1390,
13,
358,
738,
86,
1093,
738,
261,
2107,
67,
2354,
16,
702,
3292,
3299,
3546,
3719,
4007,
273,
389,
5491,
2668,
18835,
2187,
702,
3292,
16629,
8807,
17337,
818,
67,
2354,
13,
25079,
67,
2434,
18,
2626,
12,
2116,
3292,
3299,
17337,
4007,
18,
6006,
13,
225,
468,
1939,
25079,
16,
1221,
1615,
16,
302,
522,
16,
4250,
16,
471,
8169,
16,
487,
5505,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26264,
12,
2434,
1458,
16,
702,
16,
740,
4672,
3536,
1788,
326,
21072,
21575,
60,
7323,
364,
326,
2184,
316,
326,
864,
7323,
852,
18,
225,
632,
891,
997,
1458,
30,
432,
7323,
852,
4191,
326,
7323,
364,
326,
2184,
8272,
1491,
7323,
1410,
506,
2522,
18,
632,
891,
702,
30,
5087,
628,
326,
1296,
17,
1369,
1775,
18,
632,
723,
702,
30,
385,
95,
1576,
97,
632,
891,
740,
30,
6942,
434,
385,
27828,
26264,
11,
5779,
385,
27828,
72,
522,
11,
5779,
385,
27828,
1121,
11,
5779,
578,
385,
27828,
7699,
11,
5496,
3536,
628,
425,
2074,
2434,
18,
26264,
1930,
11134,
338,
5074,
225,
468,
1788,
326,
1668,
264,
16,
471,
7837,
596,
3661,
2
] |
prefix = PREFIX
|
prefix = None
|
def main(): # overridable context prefix = PREFIX # settable with -p option exec_prefix = None # settable with -P option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:P:') except getopt.error, msg: usage('getopt error: ' + str(msg)) # proces option arguments for o, a in opts: if o == '-e': extensions.append(a) if o == '-p': prefix = a if o == '-P': exec_prefix = a # default exec_prefix if exec_prefix is None: exec_prefix = EXEC_PREFIX if exec_prefix is None: exec_prefix = prefix # locations derived from options binlib = os.path.join(exec_prefix, 'lib/python1.4/config') incldir = os.path.join(prefix, 'include/python1.4') config_c_in = os.path.join(binlib, 'config.c.in') frozenmain_c = os.path.join(binlib, 'frozenmain.c') getpath_c = os.path.join(binlib, 'getpath.c') supp_sources = [frozenmain_c, getpath_c] makefile_in = os.path.join(binlib, 'Makefile') defines = ['-DPYTHONPATH=\\"$(PYTHONPATH)\\"'] includes = ['-I' + incldir, '-I' + binlib] # sanity check of directories and files for dir in [prefix, exec_prefix, binlib, incldir] + extensions: if not os.path.exists(dir): usage('needed directory %s not found' % dir) if not os.path.isdir(dir): usage('%s: not a directory' % dir) for file in [config_c_in, makefile_in] + supp_sources: if not os.path.exists(file): usage('needed file %s not found' % file) if not os.path.isfile(file): usage('%s: not a plain file' % file) for dir in extensions: setup = os.path.join(dir, 'Setup') if not os.path.exists(setup): usage('needed file %s not found' % setup) if not os.path.isfile(setup): usage('%s: not a plain file' % setup) # check that enough arguments are passed if not args: usage('at least one filename argument required') # check that the script name ends in ".py" if args[0][-3:] != ".py": usage('the script name must have a .py suffix') # check that file arguments exist for arg in args: if not os.path.exists(arg): usage('argument %s not found' % arg) if not os.path.isfile(arg): usage('%s: not a plain file' % arg) # process non-option arguments scriptfile = args[0] modules = args[1:] # derive target name from script name base = os.path.basename(scriptfile) base, ext = os.path.splitext(base) if base: if base != scriptfile: target = base else: target = base + '.bin' # Actual work starts here... dict = findmodules.findmodules(scriptfile, modules, path) names = dict.keys() names.sort() print "Modules being frozen:" for name in names: print '\t', name backup = frozen_c + '~' try: os.rename(frozen_c, backup) except os.error: backup = None outfp = open(frozen_c, 'w') try: makefreeze.makefreeze(outfp, dict) finally: outfp.close() if backup: if cmp.cmp(backup, frozen_c): sys.stderr.write('%s not changed, not written\n' % frozen_c) os.rename(backup, frozen_c) builtins = [] unknown = [] mods = dict.keys() mods.sort() for mod in mods: if dict[mod] == '<builtin>': builtins.append(mod) elif dict[mod] == '<unknown>': unknown.append(mod) addfiles = [] if unknown: addfiles, addmods = \ checkextensions.checkextensions(unknown, extensions) for mod in addmods: unknown.remove(mod) builtins = builtins + addmods if unknown: sys.stderr.write('Warning: unknown modules remain: %s\n' % string.join(unknown)) builtins.sort() infp = open(config_c_in) backup = config_c + '~' try: os.rename(config_c, backup) except os.error: backup = None outfp = open(config_c, 'w') try: makeconfig.makeconfig(infp, outfp, builtins) finally: outfp.close() infp.close() if backup: if cmp.cmp(backup, config_c): sys.stderr.write('%s not changed, not written\n' % config_c) os.rename(backup, config_c) cflags = defines + includes + ['$(OPT)'] libs = [] for n in 'Modules', 'Python', 'Objects', 'Parser': n = 'lib%s.a' % n n = os.path.join(binlib, n) libs.append(n) makevars = parsesetup.getmakevars(makefile_in) somevars = {} for key in makevars.keys(): somevars[key] = makevars[key] somevars['CFLAGS'] = string.join(cflags) # override files = ['$(OPT)', '$(LDFLAGS)', config_c, frozen_c] + \ supp_sources + addfiles + libs + \ ['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)'] backup = makefile + '~' try: os.rename(makefile, backup) except os.error: backup = None outfp = open(makefile, 'w') try: makemakefile.makemakefile(outfp, somevars, files, target) finally: outfp.close() if backup: if not cmp.cmp(backup, makefile): print 'previous Makefile saved as', backup else: sys.stderr.write('%s not changed, not written\n' % makefile) os.rename(backup, makefile) # Done! print 'Now run make to build the target:', target
|
96c4dd95cfdd3ed761c7030de047839419689a68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/96c4dd95cfdd3ed761c7030de047839419689a68/freeze.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
17154,
1082,
202,
7,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
202,
202,
7,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
589,
273,
2589,
18,
803,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
202,
202,
7,
15849,
10379,
628,
2728,
508,
1221,
768,
273,
296,
6464,
768,
11,
225,
468,
1109,
1296,
980,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
73,
30,
84,
30,
52,
2497,
13,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
2668,
588,
3838,
555,
30,
296,
397,
609,
12,
3576,
3719,
225,
468,
450,
764,
1456,
1775,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
73,
4278,
4418,
18,
6923,
12,
69,
13,
309,
320,
422,
2400,
84,
4278,
1633,
273,
279,
309,
320,
422,
2400,
52,
4278,
1196,
67,
3239,
273,
279,
225,
468,
805,
1196,
67,
3239,
309,
1196,
67,
3239,
353,
599,
30,
1196,
67,
3239,
273,
24508,
67,
6307,
309,
1196,
67,
3239,
353,
599,
30,
1196,
67,
3239,
273,
1633,
225,
468,
7838,
10379,
628,
702,
4158,
2941,
273,
1140,
18,
803,
18,
5701,
12,
4177,
67,
3239,
16,
296,
2941,
19,
8103,
21,
18,
24,
19,
1425,
6134,
2823,
1214,
273,
1140,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
17154,
1082,
202,
7,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
202,
202,
7,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
589,
273,
2589,
18,
803,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
202,
202,
7,
15849,
10379,
628,
2728,
508,
1221,
768,
273,
296,
6464,
768,
11,
225,
468,
1109,
1296,
980,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
73,
30,
84,
30,
52,
2497,
13,
1335,
336,
2
] |
def handle_connect (self):
|
def handle_connect(self):
|
def handle_connect (self): pass
|
1bd27dd7813e479e22b22a0e1e77859916f10664 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/1bd27dd7813e479e22b22a0e1e77859916f10664/select_trigger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3612,
12,
2890,
4672,
1342,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3612,
12,
2890,
4672,
1342,
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,
-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,
-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,
-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,
-100,
-100,
-100,
-100,
-100
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 544) else quickfix.CharField.__init__(self, 544, 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,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
6334,
13,
469,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
6334,
16,
501,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
>>> task.set_info('debug', True)
|
>>> task.set_info('debug', True)
|
def set_info(self, info_key, value): """ Set task value for a specific key information. Key, value pairs can be passed to the engine and/or workers. Users may store their own task-specific info key, value pairs using this method and retrieve them with info(). The following example changes the fanout value to 128: >>> task.set_info('fanout', 128)
|
65316c7a44a21202522ade511510f650c8606095 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/65316c7a44a21202522ade511510f650c8606095/Task.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1376,
12,
2890,
16,
1123,
67,
856,
16,
460,
4672,
3536,
1000,
1562,
460,
364,
279,
2923,
498,
1779,
18,
1929,
16,
460,
5574,
848,
506,
2275,
358,
326,
4073,
471,
19,
280,
9798,
18,
12109,
2026,
1707,
3675,
4953,
1562,
17,
12524,
1123,
498,
16,
460,
5574,
1450,
333,
707,
471,
4614,
2182,
598,
1123,
7675,
225,
1021,
3751,
3454,
3478,
326,
26154,
659,
460,
358,
8038,
30,
4080,
1562,
18,
542,
67,
1376,
2668,
74,
304,
659,
2187,
8038,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1376,
12,
2890,
16,
1123,
67,
856,
16,
460,
4672,
3536,
1000,
1562,
460,
364,
279,
2923,
498,
1779,
18,
1929,
16,
460,
5574,
848,
506,
2275,
358,
326,
4073,
471,
19,
280,
9798,
18,
12109,
2026,
1707,
3675,
4953,
1562,
17,
12524,
1123,
498,
16,
460,
5574,
1450,
333,
707,
471,
4614,
2182,
598,
1123,
7675,
225,
1021,
3751,
3454,
3478,
326,
26154,
659,
460,
358,
8038,
30,
4080,
1562,
18,
542,
67,
1376,
2668,
74,
304,
659,
2187,
8038,
13,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'Station n%s : %s channels' % (str(i), str(channels))
|
print 'Station n�%s : %s channels' % (str(i), str(channels))
|
def run(self): print "D-fuzz v"+self.version self.conf = self.get_conf_dict() #print self.conf nb_stations = len(self.conf['d-fuzz']['station']) print 'Number of stations : ' + str(nb_stations) # Create our Queue: #stream_pool = Queue.Queue ( 0 )
|
69f52c49fb2aaf79eb5109a7dae8bd6b401479a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/69f52c49fb2aaf79eb5109a7dae8bd6b401479a2/d-fuzz.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1172,
315,
40,
17,
74,
9510,
331,
6,
15,
2890,
18,
1589,
365,
18,
3923,
273,
365,
18,
588,
67,
3923,
67,
1576,
1435,
468,
1188,
365,
18,
3923,
4264,
67,
31478,
273,
562,
12,
2890,
18,
3923,
3292,
72,
17,
74,
9510,
21712,
17894,
19486,
1172,
296,
1854,
434,
29719,
294,
296,
397,
609,
12,
6423,
67,
31478,
13,
225,
468,
1788,
3134,
7530,
30,
468,
3256,
67,
6011,
273,
7530,
18,
3183,
261,
374,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1172,
315,
40,
17,
74,
9510,
331,
6,
15,
2890,
18,
1589,
365,
18,
3923,
273,
365,
18,
588,
67,
3923,
67,
1576,
1435,
468,
1188,
365,
18,
3923,
4264,
67,
31478,
273,
562,
12,
2890,
18,
3923,
3292,
72,
17,
74,
9510,
21712,
17894,
19486,
1172,
296,
1854,
434,
29719,
294,
296,
397,
609,
12,
6423,
67,
31478,
13,
225,
468,
1788,
3134,
7530,
30,
468,
3256,
67,
6011,
273,
7530,
18,
3183,
261,
374,
262,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.pool.get('ir.model.data').ir_set(self.cr, self.uid, \ 'action', keyword, node.url, ["ir.actions.url"], value, replace=replace, isobject=True, xml_id=node.id)
|
self.pool.get('ir.model.data').ir_set(self.cr, self.uid, 'action', \ keyword, node.url, ["ir.actions.url"], value, replace=replace, \ noupdate=self.isnoupdate(node), isobject=True, xml_id=node.id)
|
def process_url(self, node): self.validate_xml_id(node.id)
|
88635654ce8aa65af2e0d311178c356dd8e2cd42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/88635654ce8aa65af2e0d311178c356dd8e2cd42/yaml_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
718,
12,
2890,
16,
756,
4672,
365,
18,
5662,
67,
2902,
67,
350,
12,
2159,
18,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
718,
12,
2890,
16,
756,
4672,
365,
18,
5662,
67,
2902,
67,
350,
12,
2159,
18,
350,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
msg = self._receive(True, 3)
|
msg = self._receive(True, 4)
|
def _process(self): self.result = False self.myAgent.jabber.send(self.iq) #print "SIB SENT:", str(self.iq) msg = self._receive(True, 3) if msg: self.result = False if msg.getType() =="result": print "StreamRequest Agreed" print msg
|
9f0b7c0364d086fd6fa03dbe1cb839f880130866 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10121/9f0b7c0364d086fd6fa03dbe1cb839f880130866/Agent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
4672,
365,
18,
2088,
273,
1083,
365,
18,
4811,
3630,
18,
78,
378,
744,
18,
4661,
12,
2890,
18,
18638,
13,
468,
1188,
315,
9894,
348,
2222,
2773,
16,
609,
12,
2890,
18,
18638,
13,
1234,
273,
365,
6315,
18149,
12,
5510,
16,
1059,
13,
309,
1234,
30,
365,
18,
2088,
273,
1083,
309,
1234,
18,
588,
559,
1435,
422,
6,
2088,
6877,
1172,
315,
1228,
691,
5495,
15656,
6,
1172,
1234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2567,
12,
2890,
4672,
365,
18,
2088,
273,
1083,
365,
18,
4811,
3630,
18,
78,
378,
744,
18,
4661,
12,
2890,
18,
18638,
13,
468,
1188,
315,
9894,
348,
2222,
2773,
16,
609,
12,
2890,
18,
18638,
13,
1234,
273,
365,
6315,
18149,
12,
5510,
16,
1059,
13,
309,
1234,
30,
365,
18,
2088,
273,
1083,
309,
1234,
18,
588,
559,
1435,
422,
6,
2088,
6877,
1172,
315,
1228,
691,
5495,
15656,
6,
1172,
1234,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EXAMPLE:
|
EXAMPLE::
|
def maximal_difference_probability_absolute(self): """ Return the difference probability of the difference with the highest probability in absolute terms, i.e. how often it occurs in total.
|
722300ff09b8199db5acea36fda4b2778a4c12e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/722300ff09b8199db5acea36fda4b2778a4c12e9/sbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
2840,
67,
23444,
67,
22390,
67,
12547,
12,
2890,
4672,
3536,
2000,
326,
7114,
11331,
434,
326,
7114,
598,
326,
9742,
11331,
316,
4967,
6548,
16,
277,
18,
73,
18,
3661,
16337,
518,
9938,
316,
2078,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
2840,
67,
23444,
67,
22390,
67,
12547,
12,
2890,
4672,
3536,
2000,
326,
7114,
11331,
434,
326,
7114,
598,
326,
9742,
11331,
316,
4967,
6548,
16,
277,
18,
73,
18,
3661,
16337,
518,
9938,
316,
2078,
18,
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,
-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,
-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
] |
elif encoding.lower() == 'b':
|
elif encoding == 'b':
|
def encode(s, charset='iso-8859-1', encoding='q'): """Encode a string according to RFC 2047.""" if encoding.lower() == 'q': estr = _qencode(s) elif encoding.lower() == 'b': estr = _bencode(s) else: raise ValueError, 'Illegal encoding code: ' + encoding return '=?%s?%s?%s?=' % (charset.lower(), encoding.lower(), estr)
|
b06ca2ddc40b5033510c264798c22f5758468e6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b06ca2ddc40b5033510c264798c22f5758468e6b/Utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
87,
16,
4856,
2218,
9699,
17,
17258,
17,
21,
2187,
2688,
2218,
85,
11,
4672,
3536,
5509,
279,
533,
4888,
358,
8372,
11492,
27,
12123,
309,
2688,
18,
8167,
1435,
422,
296,
85,
4278,
5001,
313,
273,
389,
85,
3015,
12,
87,
13,
1327,
2688,
422,
296,
70,
4278,
5001,
313,
273,
389,
70,
3015,
12,
87,
13,
469,
30,
1002,
2068,
16,
296,
12195,
2688,
981,
30,
296,
397,
2688,
327,
15196,
35,
9,
87,
35,
9,
87,
35,
9,
87,
35,
2218,
738,
261,
9999,
18,
8167,
9334,
2688,
18,
8167,
9334,
5001,
313,
13,
565,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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326,
981,
30,
1652,
2017,
12,
87,
16,
4856,
2218,
9699,
17,
17258,
17,
21,
2187,
2688,
2218,
85,
11,
4672,
3536,
5509,
279,
533,
4888,
358,
8372,
11492,
27,
12123,
309,
2688,
18,
8167,
1435,
422,
296,
85,
4278,
5001,
313,
273,
389,
85,
3015,
12,
87,
13,
1327,
2688,
422,
296,
70,
4278,
5001,
313,
273,
389,
70,
3015,
12,
87,
13,
469,
30,
1002,
2068,
16,
296,
12195,
2688,
981,
30,
296,
397,
2688,
327,
15196,
35,
9,
87,
35,
9,
87,
35,
9,
87,
35,
2218,
738,
261,
9999,
18,
8167,
9334,
2688,
18,
8167,
9334,
5001,
313,
13,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
h.request(req.get_method(), req.get_selector(), body, headers) except socket.error, err:
|
if req.has_data(): data = req.get_data() h.putrequest('POST', req.get_selector()) if 'Content-type' not in req.headers: h.putheader('Content-type', 'application/x-www-form-urlencoded') if 'Content-length' not in req.headers: h.putheader('Content-length', '%d' % len(data)) else: h.putrequest('GET', req.get_selector()) except (socket.error), err:
|
def _start_transaction(self, h, req): headers = req.headers.copy() body = req.data if sys.version_info >= (2, 4): headers.update(req.unredirected_hdrs) try: h.request(req.get_method(), req.get_selector(), body, headers) except socket.error, err: # XXX what error? raise urllib2.URLError(err)
|
d9972835929014ea3c164d173e2d69d505e46bc5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/d9972835929014ea3c164d173e2d69d505e46bc5/keepalive.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
7958,
12,
2890,
16,
366,
16,
1111,
4672,
1607,
273,
1111,
18,
2485,
18,
3530,
1435,
1417,
273,
1111,
18,
892,
309,
2589,
18,
1589,
67,
1376,
1545,
261,
22,
16,
1059,
4672,
1607,
18,
2725,
12,
3658,
18,
318,
7590,
329,
67,
16587,
87,
13,
775,
30,
309,
1111,
18,
5332,
67,
892,
13332,
501,
273,
1111,
18,
588,
67,
892,
1435,
366,
18,
458,
2293,
2668,
3798,
2187,
1111,
18,
588,
67,
9663,
10756,
309,
296,
1350,
17,
723,
11,
486,
316,
1111,
18,
2485,
30,
366,
18,
458,
3374,
2668,
1350,
17,
723,
2187,
296,
3685,
19,
92,
17,
5591,
17,
687,
17,
19690,
6134,
309,
296,
1350,
17,
2469,
11,
486,
316,
1111,
18,
2485,
30,
366,
18,
458,
3374,
2668,
1350,
17,
2469,
2187,
1995,
72,
11,
738,
562,
12,
892,
3719,
469,
30,
366,
18,
458,
2293,
2668,
3264,
2187,
1111,
18,
588,
67,
9663,
10756,
1335,
261,
7814,
18,
1636,
3631,
393,
30,
468,
11329,
4121,
555,
35,
1002,
11527,
22,
18,
1785,
668,
12,
370,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
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,
1937,
67,
7958,
12,
2890,
16,
366,
16,
1111,
4672,
1607,
273,
1111,
18,
2485,
18,
3530,
1435,
1417,
273,
1111,
18,
892,
309,
2589,
18,
1589,
67,
1376,
1545,
261,
22,
16,
1059,
4672,
1607,
18,
2725,
12,
3658,
18,
318,
7590,
329,
67,
16587,
87,
13,
775,
30,
309,
1111,
18,
5332,
67,
892,
13332,
501,
273,
1111,
18,
588,
67,
892,
1435,
366,
18,
458,
2293,
2668,
3798,
2187,
1111,
18,
588,
67,
9663,
10756,
309,
296,
1350,
17,
723,
11,
486,
316,
1111,
18,
2485,
30,
366,
18,
458,
3374,
2668,
1350,
17,
723,
2187,
296,
3685,
19,
92,
17,
5591,
17,
687,
17,
19690,
6134,
309,
296,
1350,
17,
2469,
11,
486,
2
] |
class PyWarningsDisplayTests(WarningsDisplayTests):
|
class PyWarningsDisplayTests(BaseTest, WarningsDisplayTests):
|
def test_showwarning(self): file_name = os.path.splitext(warning_tests.__file__)[0] + '.py' line_num = 3 expected_file_line = linecache.getline(file_name, line_num).strip() message = 'msg' category = Warning file_object = StringIO.StringIO() expect = self.module.formatwarning(message, category, file_name, line_num) self.module.showwarning(message, category, file_name, line_num, file_object) self.failUnlessEqual(file_object.getvalue(), expect) # Test 'line' argument. expected_file_line += "for the win!" expect = self.module.formatwarning(message, category, file_name, line_num, expected_file_line) file_object = StringIO.StringIO() self.module.showwarning(message, category, file_name, line_num, file_object, expected_file_line) self.failUnlessEqual(expect, file_object.getvalue())
|
270c8f6e48b1d2abc6701cad20b23c6ecc1876d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/270c8f6e48b1d2abc6701cad20b23c6ecc1876d9/test_warnings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4500,
8551,
12,
2890,
4672,
585,
67,
529,
273,
1140,
18,
803,
18,
4939,
408,
12,
8551,
67,
16341,
16186,
768,
972,
25146,
20,
65,
397,
2418,
2074,
11,
980,
67,
2107,
273,
890,
2665,
67,
768,
67,
1369,
273,
4739,
557,
807,
18,
588,
1369,
12,
768,
67,
529,
16,
980,
67,
2107,
2934,
6406,
1435,
883,
273,
296,
3576,
11,
3150,
273,
9728,
585,
67,
1612,
273,
15777,
18,
780,
4294,
1435,
4489,
273,
365,
18,
2978,
18,
2139,
8551,
12,
2150,
16,
3150,
16,
585,
67,
529,
16,
980,
67,
2107,
13,
365,
18,
2978,
18,
4500,
8551,
12,
2150,
16,
3150,
16,
585,
67,
529,
16,
980,
67,
2107,
16,
585,
67,
1612,
13,
365,
18,
6870,
984,
2656,
5812,
12,
768,
67,
1612,
18,
588,
1132,
9334,
4489,
13,
468,
7766,
296,
1369,
11,
1237,
18,
2665,
67,
768,
67,
1369,
1011,
315,
1884,
326,
5657,
4442,
4489,
273,
365,
18,
2978,
18,
2139,
8551,
12,
2150,
16,
3150,
16,
585,
67,
529,
16,
980,
67,
2107,
16,
2665,
67,
768,
67,
1369,
13,
585,
67,
1612,
273,
15777,
18,
780,
4294,
1435,
365,
18,
2978,
18,
4500,
8551,
12,
2150,
16,
3150,
16,
585,
67,
529,
16,
980,
67,
2107,
16,
585,
67,
1612,
16,
2665,
67,
768,
67,
1369,
13,
365,
18,
6870,
984,
2656,
5812,
12,
12339,
16,
585,
67,
1612,
18,
588,
1132,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4500,
8551,
12,
2890,
4672,
585,
67,
529,
273,
1140,
18,
803,
18,
4939,
408,
12,
8551,
67,
16341,
16186,
768,
972,
25146,
20,
65,
397,
2418,
2074,
11,
980,
67,
2107,
273,
890,
2665,
67,
768,
67,
1369,
273,
4739,
557,
807,
18,
588,
1369,
12,
768,
67,
529,
16,
980,
67,
2107,
2934,
6406,
1435,
883,
273,
296,
3576,
11,
3150,
273,
9728,
585,
67,
1612,
273,
15777,
18,
780,
4294,
1435,
4489,
273,
365,
18,
2978,
18,
2139,
8551,
12,
2150,
16,
3150,
16,
585,
67,
529,
16,
980,
67,
2107,
13,
365,
18,
2978,
18,
4500,
8551,
12,
2150,
16,
3150,
16,
585,
67,
529,
16,
980,
67,
2107,
16,
585,
67,
2
] |
elif self.getBoard()[cord] and \ self.getBoard()[cord].color == self.getBoard().color: self.view.selected = cord
|
elif cord == self.view.active == self.view.selected == self.parent.selected_last: self.view.active = None self.view.selected = None self.view.draggedPiece = None self.view.startAnimation() self.parent.setStateNormal() else:
|
def release (self, x, y): cord = self.point2Cord(x,y) if not cord: self.view.active = None self.view.selected = None self.view.draggedPiece = None self.view.startAnimation() self.parent.setStateNormal() # When in the mixed active/selected state elif self.view.selected: # Unselect when releasing on an already selected cord if cord == self.view.active == self.view.selected: self.view.hover = cord self.view.selected = None self.view.active = None self.view.draggedPiece = None self.view.startAnimation() self.parent.setStateNormal() # Move when releasing on a good cord elif self.validate(self.view.selected, cord): self.parent.setStateNormal() # It is important to emit_move_signal after setting state # as listeners of the function probably will lock the board self.view.draggedPiece = None self.parent.emit_move_signal(self.view.selected, cord) self.view.selected = None self.view.active = None
|
fb950e42337ca928fbe5d1a63d756f451c29b737 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/fb950e42337ca928fbe5d1a63d756f451c29b737/BoardControl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
261,
2890,
16,
619,
16,
677,
4672,
276,
517,
273,
365,
18,
1153,
22,
39,
517,
12,
92,
16,
93,
13,
309,
486,
276,
517,
30,
365,
18,
1945,
18,
3535,
273,
599,
365,
18,
1945,
18,
8109,
273,
599,
365,
18,
1945,
18,
15997,
2423,
22607,
273,
599,
365,
18,
1945,
18,
1937,
10816,
1435,
365,
18,
2938,
18,
542,
1119,
5506,
1435,
225,
468,
5203,
316,
326,
7826,
2695,
19,
8109,
919,
1327,
365,
18,
1945,
18,
8109,
30,
468,
1351,
4025,
1347,
6707,
11730,
603,
392,
1818,
3170,
276,
517,
309,
276,
517,
422,
365,
18,
1945,
18,
3535,
422,
365,
18,
1945,
18,
8109,
30,
365,
18,
1945,
18,
24969,
273,
276,
517,
365,
18,
1945,
18,
8109,
273,
599,
365,
18,
1945,
18,
3535,
273,
599,
365,
18,
1945,
18,
15997,
2423,
22607,
273,
599,
365,
18,
1945,
18,
1937,
10816,
1435,
365,
18,
2938,
18,
542,
1119,
5506,
1435,
225,
468,
9933,
1347,
6707,
11730,
603,
279,
7494,
276,
517,
1327,
365,
18,
5662,
12,
2890,
18,
1945,
18,
8109,
16,
276,
517,
4672,
365,
18,
2938,
18,
542,
1119,
5506,
1435,
468,
2597,
353,
10802,
358,
3626,
67,
8501,
67,
10420,
1839,
3637,
919,
468,
487,
4679,
434,
326,
445,
8656,
903,
2176,
326,
11094,
365,
18,
1945,
18,
15997,
2423,
22607,
273,
599,
365,
18,
2938,
18,
18356,
67,
8501,
67,
10420,
12,
2890,
18,
1945,
18,
8109,
16,
276,
517,
13,
365,
18,
1945,
18,
8109,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
261,
2890,
16,
619,
16,
677,
4672,
276,
517,
273,
365,
18,
1153,
22,
39,
517,
12,
92,
16,
93,
13,
309,
486,
276,
517,
30,
365,
18,
1945,
18,
3535,
273,
599,
365,
18,
1945,
18,
8109,
273,
599,
365,
18,
1945,
18,
15997,
2423,
22607,
273,
599,
365,
18,
1945,
18,
1937,
10816,
1435,
365,
18,
2938,
18,
542,
1119,
5506,
1435,
225,
468,
5203,
316,
326,
7826,
2695,
19,
8109,
919,
1327,
365,
18,
1945,
18,
8109,
30,
468,
1351,
4025,
1347,
6707,
11730,
603,
392,
1818,
3170,
276,
517,
309,
276,
517,
422,
365,
18,
1945,
18,
3535,
422,
365,
18,
1945,
18,
8109,
30,
365,
18,
1945,
18,
24969,
273,
276,
517,
2
] |
log('Queue done in %.3fs (%s tasks)' % (time.time() - self.start_time, self.count))
|
log('\nQueue done in %.3fs (%s tasks)' % (time.time() - self.start_time, self.count))
|
def finished(self): """ BackgroundTask finish callback """ log('Queue done in %.3fs (%s tasks)' % (time.time() - self.start_time, self.count)) self.queue_ended() self.running = False
|
436aa4b3c1e9e9debf43e75f53fcd9fee786e756 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2369/436aa4b3c1e9e9debf43e75f53fcd9fee786e756/soundconverter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6708,
12,
2890,
4672,
3536,
8977,
2174,
4076,
1348,
3536,
613,
2668,
64,
82,
3183,
2731,
316,
12639,
23,
2556,
6142,
87,
4592,
2506,
738,
261,
957,
18,
957,
1435,
300,
365,
18,
1937,
67,
957,
16,
365,
18,
1883,
3719,
365,
18,
4000,
67,
3934,
1435,
365,
18,
8704,
273,
1083,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6708,
12,
2890,
4672,
3536,
8977,
2174,
4076,
1348,
3536,
613,
2668,
64,
82,
3183,
2731,
316,
12639,
23,
2556,
6142,
87,
4592,
2506,
738,
261,
957,
18,
957,
1435,
300,
365,
18,
1937,
67,
957,
16,
365,
18,
1883,
3719,
365,
18,
4000,
67,
3934,
1435,
365,
18,
8704,
273,
1083,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return [self.get_task(id) for id in self.get_task_ids()]
|
return self.get_tasks_filtered(['all'])
|
def get_tasks(self): # Retrieve a list of task data dicts return [self.get_task(id) for id in self.get_task_ids()]
|
22914d3a9d9c3d7e8d5a3c3e29abf2ca71499fd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/22914d3a9d9c3d7e8d5a3c3e29abf2ca71499fd7/dbuswrapper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9416,
12,
2890,
4672,
468,
10708,
279,
666,
434,
1562,
501,
15838,
327,
306,
2890,
18,
588,
67,
4146,
12,
350,
13,
364,
612,
316,
365,
18,
588,
67,
4146,
67,
2232,
1435,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not ip_peer.udp_bind (self, self.dns_ip):
|
if not self.dns_connect ():
|
def dns_send (self, request, when): if self.socket == None: if not ip_peer.udp_bind (self, self.dns_ip): self.dns_finalize (request) # # in case of failure, just keep trying.
|
efdc7ec517c02be5ef01dbc76ece8053b3e093d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/efdc7ec517c02be5ef01dbc76ece8053b3e093d9/dns_client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6605,
67,
4661,
261,
2890,
16,
590,
16,
1347,
4672,
309,
365,
18,
7814,
422,
599,
30,
309,
486,
365,
18,
14926,
67,
3612,
1832,
30,
365,
18,
14926,
67,
30343,
261,
2293,
13,
468,
468,
316,
648,
434,
5166,
16,
2537,
3455,
8374,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6605,
67,
4661,
261,
2890,
16,
590,
16,
1347,
4672,
309,
365,
18,
7814,
422,
599,
30,
309,
486,
365,
18,
14926,
67,
3612,
1832,
30,
365,
18,
14926,
67,
30343,
261,
2293,
13,
468,
468,
316,
648,
434,
5166,
16,
2537,
3455,
8374,
18,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return namespace['config']
|
return namespace
|
def readconfig(): """Read a configuration file, if it doesn't exist create it.""" configname = sys.argv[0] + '.config' if not os.path.exists(configname): confstr = """config = [ ("^.*\.cp$", ":unweave-src"), ("^.*\.h$", ":unweave-include"),
|
10b20e795b8150162255e3169e0e933f9ae84032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/10b20e795b8150162255e3169e0e933f9ae84032/unweave.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1425,
13332,
3536,
1994,
279,
1664,
585,
16,
309,
518,
3302,
1404,
1005,
752,
518,
12123,
642,
529,
273,
2589,
18,
19485,
63,
20,
65,
397,
2418,
1425,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
1425,
529,
4672,
2195,
701,
273,
3536,
1425,
273,
306,
7566,
66,
4509,
5834,
4057,
8,
3113,
6398,
318,
1814,
836,
17,
4816,
6,
3631,
7566,
66,
4509,
5834,
76,
8,
3113,
6398,
318,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
855,
1425,
13332,
3536,
1994,
279,
1664,
585,
16,
309,
518,
3302,
1404,
1005,
752,
518,
12123,
642,
529,
273,
2589,
18,
19485,
63,
20,
65,
397,
2418,
1425,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
1425,
529,
4672,
2195,
701,
273,
3536,
1425,
273,
306,
7566,
66,
4509,
5834,
4057,
8,
3113,
6398,
318,
1814,
836,
17,
4816,
6,
3631,
7566,
66,
4509,
5834,
76,
8,
3113,
6398,
318,
1814,
836,
17,
6702,
6,
3631,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_, outputs = _RuleInputsAndOutputs(rule, tf) all_outputs += outputs
|
inputs, outputs = _RuleInputsAndOutputs(rule, tf) all_inputs.update(set(inputs)) all_outputs.update(set(outputs))
|
def _GenerateExternalRules(p, rules, output_dir, spec, config_name, c_data, sources, options, actions_to_add): """Generate an external makefile to do a set of rules. Arguments: p: the target project rules: the list of rules to include output_dir: path containing project and gyp files spec: project specification data config_name: name of the configuration in question c_data: dict for the configuration in question sources: set of sources known options: global generator options """ filename = '%s_%s_rules%s.mk' % (spec['target_name'], config_name, options.suffix) file = gyp.common.WriteOnDiff(os.path.join(output_dir, filename)) # Find cygwin style versions of some paths. file.write('OutDirCygwin:=$(shell cygpath -u "$(OutDir)")\n') file.write('IntDirCygwin:=$(shell cygpath -u "$(IntDir)")\n') # Gather stuff needed to emit all: target. all_outputs = [] all_output_dirs = set() first_outputs = [] for rule in rules: trigger_files = _FindRuleTriggerFiles(rule, sources) for tf in trigger_files: _, outputs = _RuleInputsAndOutputs(rule, tf) all_outputs += outputs # Only take the first one because make is... limited. first_outputs.append(list(outputs)[0]) # Get the unique output directories for this rule. output_dirs = [os.path.split(i)[0] for i in outputs] for od in output_dirs: all_output_dirs.add(od) first_outputs_cyg = [_Cygwinify(i) for i in first_outputs] # Write out all: target, including mkdir for each output directory. file.write('all: %s\n' % ' '.join(first_outputs_cyg)) for od in all_output_dirs: file.write('\tmkdir -p %s\n' % od) file.write('\n') # Define how each output is generated. for rule in rules: trigger_files = _FindRuleTriggerFiles(rule, sources) for tf in trigger_files: # Get all the inputs and outputs for this rule for this trigger file. inputs, outputs = _RuleInputsAndOutputs(rule, tf) inputs = [_Cygwinify(i) for i in inputs] outputs = [_Cygwinify(i) for i in outputs] # Only take the first one because make is... limited. outputs = [outputs[0]] # Prepare the command line for this rule. cmd = [_RuleExpandPath(c, tf) for c in rule['action']] cmd = ['"%s"' % i for i in cmd] cmd = ' '.join(cmd) # Add it to the makefile. file.write('%s: %s\n' % (' '.join(outputs), ' '.join(inputs))) file.write('\t%s\n\n' % cmd) # Close up the file. file.close() # Add makefile to list of sources. sources.add(filename) # Add a build action to call makefile. cmd = ['make', 'OutDir=$(OutDir)', 'IntDir=$(IntDir)', '-j', '${NUMBER_OF_PROCESSORS_PLUS_1}', '-f', filename] cmd = _PrepareActionRaw(c_data, cmd, True, False) actions_to_add.append({ 'config_name': config_name, 'c_data': c_data, 'inputs': [filename], 'outputs': [_FixPath(i) for i in all_outputs], 'description': 'Running %s' % cmd, 'cmd': cmd, })
|
376ee900655bc7ad9db17d44ace38a060ad4d58b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/376ee900655bc7ad9db17d44ace38a060ad4d58b/msvs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
6841,
4478,
12,
84,
16,
2931,
16,
876,
67,
1214,
16,
857,
16,
642,
67,
529,
16,
276,
67,
892,
16,
5550,
16,
702,
16,
4209,
67,
869,
67,
1289,
4672,
3536,
4625,
392,
3903,
1221,
768,
358,
741,
279,
444,
434,
2931,
18,
225,
13599,
30,
293,
30,
326,
1018,
1984,
2931,
30,
326,
666,
434,
2931,
358,
2341,
876,
67,
1214,
30,
589,
4191,
1984,
471,
314,
879,
1390,
857,
30,
1984,
7490,
501,
642,
67,
529,
30,
508,
434,
326,
1664,
316,
5073,
276,
67,
892,
30,
2065,
364,
326,
1664,
316,
5073,
5550,
30,
444,
434,
5550,
4846,
702,
30,
2552,
4456,
702,
3536,
1544,
273,
1995,
87,
10185,
87,
67,
7482,
9,
87,
18,
24816,
11,
738,
261,
2793,
3292,
3299,
67,
529,
17337,
642,
67,
529,
16,
702,
18,
8477,
13,
585,
273,
314,
879,
18,
6054,
18,
3067,
1398,
5938,
12,
538,
18,
803,
18,
5701,
12,
2844,
67,
1214,
16,
1544,
3719,
468,
4163,
276,
4338,
8082,
2154,
5244,
434,
2690,
2953,
18,
585,
18,
2626,
2668,
1182,
1621,
39,
4338,
8082,
30,
13295,
12,
10304,
276,
4338,
803,
300,
89,
4662,
12,
1182,
1621,
2225,
5153,
82,
6134,
585,
18,
2626,
2668,
1702,
1621,
39,
4338,
8082,
30,
13295,
12,
10304,
276,
4338,
803,
300,
89,
4662,
12,
1702,
1621,
2225,
5153,
82,
6134,
468,
25868,
10769,
3577,
358,
3626,
777,
30,
1018,
18,
777,
67,
12295,
273,
5378,
777,
67,
2844,
67,
8291,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4625,
6841,
4478,
12,
84,
16,
2931,
16,
876,
67,
1214,
16,
857,
16,
642,
67,
529,
16,
276,
67,
892,
16,
5550,
16,
702,
16,
4209,
67,
869,
67,
1289,
4672,
3536,
4625,
392,
3903,
1221,
768,
358,
741,
279,
444,
434,
2931,
18,
225,
13599,
30,
293,
30,
326,
1018,
1984,
2931,
30,
326,
666,
434,
2931,
358,
2341,
876,
67,
1214,
30,
589,
4191,
1984,
471,
314,
879,
1390,
857,
30,
1984,
7490,
501,
642,
67,
529,
30,
508,
434,
326,
1664,
316,
5073,
276,
67,
892,
30,
2065,
364,
326,
1664,
316,
5073,
5550,
30,
444,
434,
5550,
4846,
702,
30,
2552,
4456,
702,
3536,
1544,
273,
1995,
87,
10185,
87,
67,
7482,
2
] |
macros['F'] = shell_quote(next_tab.pointed_obj.path)
|
if next_tab.pointed_obj: macros['F'] = shell_quote(next_tab.pointed_obj.path)
|
def _substitute_metachars(self, command): macros = {}
|
fd51fa3da2848859ba722bac45178c24845d17d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/fd51fa3da2848859ba722bac45178c24845d17d0/console.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
67,
10578,
497,
5913,
12,
2890,
16,
1296,
4672,
24302,
273,
2618,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
adaptive_recursion both increase the number of subdivision points::
|
adaptive_recursion both increase the number of subdivision points. (Note that which creates more points is heavily dependent on the particular function plotted.) ::
|
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: - ``f`` - a function of one variable - ``p1, p2`` - two points to refine between - ``plot_points`` - (default: 5) the minimal number of plot points. - ``adaptive_recursion`` - (default: 5) how many levels of recursion to go before giving up when doing adaptive refinement. Setting this to 0 disables adaptive refinement. - ``adaptive_tolerance`` - (default: 0.01) how large a difference should be before the adaptive refinement code considers it significant. See the documentation for plot() for more information. OUTPUT: - a list of points (x, f(x)) in the interval xrange, which aproximate the function f. TESTS:: sage: from sage.plot.plot import generate_plot_points sage: generate_plot_points(sin, (0, pi), plot_points=2, adaptive_recursion=0) [(0.0, 0.0), (3.1415926535897931, 1.2246...e-16)] sage: generate_plot_points(sin(x).function(x), (-pi, pi), randomize=False) [(-3.1415926535897931, -1.2246...e-16), (-2.748893571891069, -0.3826834323650898...), (-2.3561944901923448, -0.707106781186547...), (-2.1598449493429825, -0.831469612302545...), (-1.9634954084936207, -0.92387953251128674), (-1.7671458676442586, -0.98078528040323043), (-1.5707963267948966, -1.0), (-1.3744467859455345, -0.98078528040323043), (-1.1780972450961724, -0.92387953251128674), (-0.98174770424681035, -0.831469612302545...), (-0.78539816339744828, -0.707106781186547...), (-0.39269908169872414, -0.38268343236508978), (0.0, 0.0), (0.39269908169872414, 0.38268343236508978), (0.78539816339744828, 0.707106781186547...), (0.98174770424681035, 0.831469612302545...), (1.1780972450961724, 0.92387953251128674), (1.3744467859455345, 0.98078528040323043), (1.5707963267948966, 1.0), (1.7671458676442586, 0.98078528040323043), (1.9634954084936207, 0.92387953251128674), (2.1598449493429825, 0.831469612302545...), (2.3561944901923448, 0.707106781186547...), (2.748893571891069, 0.3826834323650898...), (3.1415926535897931, 1.2246...e-16)] This shows that lowering adaptive_tolerance and raising adaptive_recursion both increase the number of subdivision points:: sage: x = var('x') sage: f(x) = sin(1/x) sage: [len(generate_plot_points(f, (-pi, pi), adaptive_tolerance=i)) for i in [0.01, 0.001, 0.0001]] [42, 67, 104] sage: [len(generate_plot_points(f, (-pi, pi), adaptive_recursion=i)) for i in [5, 10, 15]] [34, 144, 897] """ x, data = var_and_list_of_values(xrange, plot_points) xmin = data[0] xmax = data[-1] delta = float(xmax-xmin) / plot_points random = current_randstate().python_random().random exceptions = 0; msg='' exception_indices = [] for i in range(len(data)): xi = data[i] # Slightly randomize the interior sample points if # randomize is true if randomize and i > 0 and i < plot_points-1: xi += delta*(random() - 0.5) try: data[i] = (float(xi), float(f(xi))) if str(data[i][1]) in ['nan', 'NaN', 'inf', '-inf']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) if i == 0: for j in range(1, 99): xj = xi + delta*j/100.0 try: data[i] = (float(xj), float(f(xj))) # nan != nan if data[i][1] != data[i][1]: continue break except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: pass else: exceptions += 1 exception_indices.append(i) elif i == plot_points-1: for j in range(1, 99): xj = xi - delta*j/100.0 try: data[i] = (float(xj), float(f(xj))) # nan != nan if data[i][1] != data[i][1]: continue break except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: pass else: exceptions += 1 exception_indices.append(i) else: exceptions += 1 exception_indices.append(i) exceptions += 1 exception_indices.append(i) data = [data[i] for i in range(len(data)) if i not in exception_indices] # adaptive refinement i, j = 0, 0 adaptive_tolerance = delta * float(adaptive_tolerance) adaptive_recursion = int(adaptive_recursion) while i < len(data) - 1: for p in adaptive_refinement(f, data[i], data[i+1], adaptive_tolerance=adaptive_tolerance, adaptive_recursion=adaptive_recursion): data.insert(i+1, p) i += 1 i += 1 if (len(data) == 0 and exceptions > 0) or exceptions > 10: sage.misc.misc.verbose("WARNING: When plotting, failed to evaluate function at %s points."%exceptions, level=0) sage.misc.misc.verbose("Last error message: '%s'"%msg, level=0) return data
|
53bc30b3387bfc0f18049d2b64fd1492c7912453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/53bc30b3387bfc0f18049d2b64fd1492c7912453/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
4672,
436,
8395,
9029,
3207,
3143,
364,
279,
445,
284,
316,
326,
3673,
12314,
18,
1021,
5855,
688,
25994,
820,
4886,
364,
20947,
279,
445,
284,
18,
2164,
326,
14525,
364,
3207,
364,
279,
2477,
434,
326,
4886,
18,
225,
12943,
30,
225,
300,
12176,
74,
10335,
300,
279,
445,
434,
1245,
2190,
225,
300,
12176,
84,
21,
16,
293,
22,
10335,
300,
2795,
3143,
358,
30446,
3086,
225,
300,
12176,
4032,
67,
4139,
10335,
300,
261,
1886,
30,
1381,
13,
326,
16745,
1300,
434,
3207,
3143,
18,
225,
300,
12176,
19195,
688,
67,
31347,
10335,
300,
261,
1886,
30,
1381,
13,
3661,
4906,
7575,
434,
13917,
358,
1960,
1865,
21057,
731,
1347,
9957,
5855,
688,
25994,
820,
18,
225,
13274,
333,
358,
374,
24960,
5855,
688,
25994,
820,
18,
225,
300,
12176,
19195,
688,
67,
25456,
10335,
300,
261,
1886,
30,
374,
18,
1611,
13,
3661,
7876,
279,
7114,
1410,
506,
1865,
326,
5855,
688,
25994,
820,
981,
1959,
24290,
518,
14177,
18,
225,
2164,
326,
7323,
364,
3207,
1435,
364,
1898,
1779,
18,
225,
11550,
30,
225,
300,
279,
666,
434,
3143,
261,
92,
16,
284,
12,
92,
3719,
316,
326,
3673,
12314,
16,
1492,
513,
303,
92,
4988,
326,
445,
284,
18,
225,
22130,
55,
2866,
225,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
4672,
436,
8395,
9029,
3207,
3143,
364,
279,
445,
284,
316,
326,
3673,
12314,
18,
1021,
5855,
688,
25994,
820,
4886,
364,
20947,
279,
445,
284,
18,
2164,
326,
14525,
364,
3207,
364,
279,
2477,
434,
326,
4886,
18,
225,
12943,
30,
225,
300,
12176,
74,
10335,
300,
279,
445,
434,
1245,
2190,
225,
300,
12176,
84,
21,
16,
293,
22,
10335,
300,
2795,
3143,
358,
30446,
3086,
225,
300,
12176,
4032,
67,
4139,
10335,
300,
261,
1886,
30,
1381,
13,
326,
2
] |
self.parent.dendrogram.setCutOffLine(e.pos().x())
|
self.parent.dendrogram.setCutOffLine(pos.x())
|
def mouseReleaseEvent(self, e): self.markerDragged=False self.parent.CommitOnChange=self.commitStatus self.parent.dendrogram.setCutOffLine(e.pos().x())
|
94b725165088a81ea27b58e2ace96e30782609f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/94b725165088a81ea27b58e2ace96e30782609f4/OWHierarchicalClustering.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
7391,
1133,
12,
2890,
16,
425,
4672,
365,
18,
11145,
11728,
2423,
33,
8381,
365,
18,
2938,
18,
5580,
1398,
3043,
33,
2890,
18,
7371,
1482,
365,
18,
2938,
18,
72,
409,
21028,
18,
542,
15812,
7210,
1670,
12,
73,
18,
917,
7675,
92,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7644,
7391,
1133,
12,
2890,
16,
425,
4672,
365,
18,
11145,
11728,
2423,
33,
8381,
365,
18,
2938,
18,
5580,
1398,
3043,
33,
2890,
18,
7371,
1482,
365,
18,
2938,
18,
72,
409,
21028,
18,
542,
15812,
7210,
1670,
12,
73,
18,
917,
7675,
92,
10756,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
], CONTEXT)
|
], 0, None, None, CONTEXT)
|
def test0070sha(self): ''' Test Sha. ''' sha1_id = self.sha.create({ 'sha': 'Test', }, CONTEXT) self.assert_(sha1_id)
|
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
7301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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
7301,
7819,
12,
2890,
4672,
9163,
7766,
2638,
69,
18,
9163,
6056,
21,
67,
350,
273,
365,
18,
7819,
18,
2640,
12590,
296,
7819,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
11231,
67,
12,
7819,
21,
67,
350,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
style = getattr(__import__(module, None, None, ['']), stylename)
|
style = getattr(__import__(module, None, None, ['__name__']), stylename)
|
def __init__(self, dest='html', stylename='sphinx'): self.dest = dest if not pygments: return if stylename == 'sphinx': style = SphinxStyle elif '.' in stylename: module, stylename = stylename.rsplit('.', 1) style = getattr(__import__(module, None, None, ['']), stylename) else: style = get_style_by_name(stylename) self.hfmter = {False: HtmlFormatter(style=style), True: HtmlFormatter(style=style, linenos=True)} self.lfmter = {False: LatexFormatter(style=style, commandprefix='PYG'), True: LatexFormatter(style=style, linenos=True, commandprefix='PYG')}
|
4b201975a442d45a3ae5118a38c3baa07940f9b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/4b201975a442d45a3ae5118a38c3baa07940f9b3/highlighting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1570,
2218,
2620,
2187,
16253,
14724,
2218,
87,
15922,
11,
4672,
365,
18,
10488,
273,
1570,
309,
486,
2395,
75,
1346,
30,
327,
309,
16253,
14724,
422,
296,
87,
15922,
4278,
2154,
273,
348,
15922,
2885,
1327,
2611,
316,
16253,
14724,
30,
1605,
16,
16253,
14724,
273,
16253,
14724,
18,
86,
4939,
2668,
1093,
16,
404,
13,
2154,
273,
3869,
12,
972,
5666,
972,
12,
2978,
16,
599,
16,
599,
16,
10228,
972,
529,
972,
3546,
3631,
16253,
14724,
13,
469,
30,
2154,
273,
336,
67,
4060,
67,
1637,
67,
529,
12,
334,
93,
14724,
13,
365,
18,
76,
25089,
387,
273,
288,
8381,
30,
5430,
5074,
12,
4060,
33,
4060,
3631,
1053,
30,
5430,
5074,
12,
4060,
33,
4060,
16,
4739,
275,
538,
33,
5510,
16869,
365,
18,
20850,
81,
387,
273,
288,
8381,
30,
11134,
338,
5074,
12,
4060,
33,
4060,
16,
1296,
3239,
2218,
16235,
43,
19899,
1053,
30,
11134,
338,
5074,
12,
4060,
33,
4060,
16,
4739,
275,
538,
33,
5510,
16,
1296,
3239,
2218,
16235,
43,
6134,
97,
2,
0,
0,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570,
2218,
2620,
2187,
16253,
14724,
2218,
87,
15922,
11,
4672,
365,
18,
10488,
273,
1570,
309,
486,
2395,
75,
1346,
30,
327,
309,
16253,
14724,
422,
296,
87,
15922,
4278,
2154,
273,
348,
15922,
2885,
1327,
2611,
316,
16253,
14724,
30,
1605,
16,
16253,
14724,
273,
16253,
14724,
18,
86,
4939,
2668,
1093,
16,
404,
13,
2154,
273,
3869,
12,
972,
5666,
972,
12,
2978,
16,
599,
16,
599,
16,
10228,
972,
529,
972,
3546,
3631,
16253,
14724,
13,
469,
30,
2154,
273,
336,
67,
4060,
67,
1637,
67,
529,
12,
334,
93,
14724,
13,
365,
18,
76,
25089,
387,
273,
288,
8381,
30,
5430,
5074,
12,
4060,
33,
4060,
3631,
2
] |
xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) ymax = float(maxpoint[1])
|
xtail = float(tailpoint[0]) ytail = float(tailpoint[1]) xhead = float(headpoint[0]) yhead = float(headpoint[1]) xmin = min(xtail, xhead) xmax = max(xtail, xhead) ymin = min(ytail, yhead) ymax = max(ytail, yhead)
|
def __call__(self, minpoint, maxpoint, **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) ymax = float(maxpoint[1])
|
20fed398d25002f78f9edd13592206eb593b0a5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/20fed398d25002f78f9edd13592206eb593b0a5f/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1131,
1153,
16,
943,
1153,
16,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
63,
79,
65,
273,
331,
13777,
273,
1431,
12,
1154,
1153,
63,
20,
5717,
15763,
273,
1431,
12,
1154,
1153,
63,
21,
5717,
14016,
273,
1431,
12,
1896,
1153,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1131,
1153,
16,
943,
1153,
16,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
63,
79,
65,
273,
331,
13777,
273,
1431,
12,
1154,
1153,
63,
20,
5717,
15763,
273,
1431,
12,
1154,
1153,
63,
21,
5717,
14016,
273,
1431,
12,
1896,
1153,
63,
20,
5717,
15275,
273,
1431,
12,
1896,
1153,
63,
21,
5717,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m = prog.search(line) if m: break
|
match = prog.search(line) if match: filename, lineno = match.group(1, 2) try: f = open(filename, "r") f.close() break except IOError: continue
|
def _file_line_helper(self, line): for prog in self.file_line_progs: m = prog.search(line) if m: break else: return None filename, lineno = m.group(1, 2) try: f = open(filename, "r") f.close() except IOError: return None try: return filename, int(lineno) except TypeError: return None
|
8099e9c16705b9abc3882a656691df36e60f1692 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/8099e9c16705b9abc3882a656691df36e60f1692/OutputWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
768,
67,
1369,
67,
4759,
12,
2890,
16,
980,
4672,
364,
11243,
316,
365,
18,
768,
67,
1369,
67,
685,
564,
30,
845,
273,
11243,
18,
3072,
12,
1369,
13,
309,
845,
30,
1544,
16,
7586,
273,
845,
18,
1655,
12,
21,
16,
576,
13,
775,
30,
284,
273,
1696,
12,
3459,
16,
315,
86,
7923,
284,
18,
4412,
1435,
898,
1335,
8340,
30,
1324,
469,
30,
327,
599,
1544,
16,
7586,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
775,
30,
284,
273,
1696,
12,
3459,
16,
315,
86,
7923,
284,
18,
4412,
1435,
1335,
8340,
30,
327,
599,
775,
30,
327,
1544,
16,
509,
12,
17782,
13,
1335,
3580,
30,
327,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
768,
67,
1369,
67,
4759,
12,
2890,
16,
980,
4672,
364,
11243,
316,
365,
18,
768,
67,
1369,
67,
685,
564,
30,
845,
273,
11243,
18,
3072,
12,
1369,
13,
309,
845,
30,
1544,
16,
7586,
273,
845,
18,
1655,
12,
21,
16,
576,
13,
775,
30,
284,
273,
1696,
12,
3459,
16,
315,
86,
7923,
284,
18,
4412,
1435,
898,
1335,
8340,
30,
1324,
469,
30,
327,
599,
1544,
16,
7586,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
775,
30,
284,
273,
1696,
12,
3459,
16,
315,
86,
7923,
284,
18,
4412,
1435,
1335,
8340,
30,
327,
599,
775,
30,
327,
1544,
16,
509,
12,
17782,
13,
1335,
3580,
30,
327,
599,
2,
-100,
-100
] |
self.__skeleton__[table][col_name]['primary_key'] = False
|
self.__skeleton__[table_name][col_name]['primary_key'] = False
|
def drop_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...) Note: deosnt's delte colmsn jsut make not primiarey """ if not self.__skeleton__.has_key(table): raise ValueError("Database has no table %s."%table) if not self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s has no column %s."%(table,col_name)) if not self.__skeleton__[table_name][index_name]['primary_key']: return # silently
|
12098d45ba68813e42a6a22032a2f2e6d360e158 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/12098d45ba68813e42a6a22032a2f2e6d360e158/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
18843,
7567,
14,
5423,
9560,
3948,
2777,
7460,
7733,
1258,
12557,
13578,
13880,
12048,
10057,
13462,
20676,
6953,
9666,
28054,
432,
24401,
916,
6043,
7567,
18,
225,
11726,
43,
27332,
1146,
55,
12108,
348,
1423,
2056,
3079,
432,
862,
678,
2247,
3865,
958,
18,
225,
261,
916,
804,
5996,
31434,
432,
21298,
21846,
225,
3609,
30,
443,
538,
496,
1807,
1464,
736,
645,
959,
82,
3828,
322,
1221,
486,
15610,
77,
834,
93,
225,
3536,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
12,
2121,
4672,
1002,
2068,
2932,
4254,
711,
1158,
1014,
738,
87,
1199,
9,
2121,
13,
309,
486,
365,
16186,
7771,
12143,
972,
63,
2121,
8009,
5332,
67,
856,
12,
1293,
67,
529,
4672,
1002,
2068,
2932,
1388,
738,
87,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
18843,
7567,
14,
5423,
9560,
3948,
2777,
7460,
7733,
1258,
12557,
13578,
13880,
12048,
10057,
13462,
20676,
6953,
9666,
28054,
432,
24401,
916,
6043,
7567,
18,
225,
11726,
43,
27332,
1146,
55,
12108,
348,
1423,
2056,
3079,
432,
862,
678,
2247,
3865,
958,
18,
225,
261,
916,
804,
5996,
31434,
432,
21298,
21846,
225,
3609,
30,
443,
538,
496,
1807,
1464,
736,
645,
959,
82,
3828,
322,
1221,
486,
15610,
77,
834,
93,
225,
3536,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
2
] |
a[8] and b[17] match for 6 elements a[14] and b[23] match for 15 elements
|
a[8] and b[17] match for 21 elements
|
def _calculate_ratio(matches, length): if length: return 2.0 * matches / length return 1.0
|
43898b4f642acf182242744181143141228ca56e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/43898b4f642acf182242744181143141228ca56e/difflib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
9847,
12,
8436,
16,
769,
4672,
309,
769,
30,
327,
576,
18,
20,
380,
1885,
342,
769,
327,
404,
18,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11162,
67,
9847,
12,
8436,
16,
769,
4672,
309,
769,
30,
327,
576,
18,
20,
380,
1885,
342,
769,
327,
404,
18,
20,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
uri.Uri(vModellNs['enthält']),
|
uri.Uri(vModellNs[u'enthält']),
|
def _endElementHandler(self, name): elem = self._popElem()
|
77b755075f6e88f15f500aab96ac5487c327a1b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5223/77b755075f6e88f15f500aab96ac5487c327a1b1/vmodellparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
1046,
1503,
12,
2890,
16,
508,
4672,
3659,
273,
365,
6315,
5120,
7498,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
409,
1046,
1503,
12,
2890,
16,
508,
4672,
3659,
273,
365,
6315,
5120,
7498,
1435,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
previous_shelve = bsddb.dbshelve.open(filename + '.previous')
|
previous_shelve = old_dbshelve.open(filename + '.previous')
|
def open_shelve(filename): from bsddb3 import db,dbshelve log.debug('Opening database ' + filename)
|
8a619583902822990a865e72dd837af6970244c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/8a619583902822990a865e72dd837af6970244c5/apt_proxy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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,
7081,
449,
70,
23,
1930,
1319,
16,
1966,
674,
292,
537,
613,
18,
4148,
2668,
21378,
2063,
296,
397,
1544,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.encode = 'iso-8859-1'
|
self.encode = 'utf-8'
|
def __init__(self): self.original_url_search = 'http://imdb.com/find?more=tt;q=' self.translated_url_search = 'http://imdb.com/find?more=tt;q=' self.encode = 'iso-8859-1'
|
7ec26d094b178996d5aa62095540a7b16cfbba61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/7ec26d094b178996d5aa62095540a7b16cfbba61/PluginMovieIMDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8830,
67,
718,
67,
3072,
202,
33,
296,
2505,
2207,
381,
1966,
18,
832,
19,
4720,
35,
10161,
33,
748,
31,
85,
2218,
365,
18,
22899,
67,
718,
67,
3072,
202,
33,
296,
2505,
2207,
381,
1966,
18,
832,
19,
4720,
35,
10161,
33,
748,
31,
85,
2218,
365,
18,
3015,
273,
296,
9699,
17,
17258,
17,
21,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8830,
67,
718,
67,
3072,
202,
33,
296,
2505,
2207,
381,
1966,
18,
832,
19,
4720,
35,
10161,
33,
748,
31,
85,
2218,
365,
18,
22899,
67,
718,
67,
3072,
202,
33,
296,
2505,
2207,
381,
1966,
18,
832,
19,
4720,
35,
10161,
33,
748,
31,
85,
2218,
365,
18,
3015,
273,
296,
9699,
17,
17258,
17,
21,
11,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.normalize(k) == key:
|
if normalize(k) == key:
|
def __contains__(self, key): key = self.normalize(key) for k, v in self._items: if self.normalize(k) == key: return True return False
|
5e878f6a6d1b899882359f21d5f274dd4b6e29f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12287/5e878f6a6d1b899882359f21d5f274dd4b6e29f4/headerdict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
498,
4672,
498,
273,
365,
18,
12237,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
3883,
12,
79,
13,
422,
498,
30,
327,
1053,
327,
1083,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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365,
6315,
3319,
30,
309,
3883,
12,
79,
13,
422,
498,
30,
327,
1053,
327,
1083,
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,
-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,
-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
] |
if abs(axes[0][0] - axes[-1][0] + math.pi) < 0.1:
|
if abs(axes[0][0] - axes[-1][0] + math.pi) < param_directions_threshold:
|
def detect_directions(lines): assert(lines.total >= 2) threshold = 0.1 s_lines = sorted([(l[0], l[1]) for l in lines], key = lambda x: x[1]) axes = [] rho, theta = s_lines[0] axes.append((theta, [(rho, theta)])) for rho, theta in s_lines[1:]: if abs(theta - axes[-1][0]) < 0.1: axes[-1][1].append((rho, theta)) else: axes.append((theta, [(rho, theta)])) if abs(axes[0][0] - axes[-1][0] + math.pi) < 0.1: axes[0][1].extend([(-rho, theta - math.pi) \ for rho, theta in axes[-1][1]]) del axes[-1] for i in range(0, len(axes)): avg = sum([theta for rho, theta in axes[i][1]]) / len(axes[i][1]) axes[i] = (avg, axes[i][1])
|
1b93b107da0e0efbaf850effa86d8a03bd20218b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/1b93b107da0e0efbaf850effa86d8a03bd20218b/imageproc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
9855,
87,
12,
3548,
4672,
1815,
12,
3548,
18,
4963,
1545,
576,
13,
5573,
273,
374,
18,
21,
272,
67,
3548,
273,
3115,
3816,
12,
80,
63,
20,
6487,
328,
63,
21,
5717,
364,
328,
316,
2362,
6487,
498,
273,
3195,
619,
30,
619,
63,
21,
5717,
6515,
273,
5378,
10360,
16,
7338,
273,
272,
67,
3548,
63,
20,
65,
6515,
18,
6923,
12443,
14482,
16,
306,
12,
25603,
16,
7338,
13,
22643,
364,
10360,
16,
7338,
316,
272,
67,
3548,
63,
21,
30,
14542,
309,
2417,
12,
14482,
300,
6515,
18919,
21,
6362,
20,
5717,
411,
374,
18,
21,
30,
6515,
18919,
21,
6362,
21,
8009,
6923,
12443,
25603,
16,
7338,
3719,
469,
30,
6515,
18,
6923,
12443,
14482,
16,
306,
12,
25603,
16,
7338,
13,
22643,
309,
2417,
12,
10855,
63,
20,
6362,
20,
65,
300,
6515,
18919,
21,
6362,
20,
65,
397,
4233,
18,
7259,
13,
411,
579,
67,
9855,
87,
67,
8699,
30,
6515,
63,
20,
6362,
21,
8009,
14313,
3816,
19236,
25603,
16,
7338,
300,
4233,
18,
7259,
13,
521,
364,
10360,
16,
7338,
316,
6515,
18919,
21,
6362,
21,
65,
5717,
1464,
6515,
18919,
21,
65,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
10855,
3719,
30,
11152,
273,
2142,
3816,
14482,
364,
10360,
16,
7338,
316,
6515,
63,
77,
6362,
21,
65,
5717,
342,
562,
12,
10855,
63,
77,
6362,
21,
5717,
6515,
63,
77,
65,
273,
261,
14141,
16,
6515,
63,
77,
6362,
21,
5717,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
9855,
87,
12,
3548,
4672,
1815,
12,
3548,
18,
4963,
1545,
576,
13,
5573,
273,
374,
18,
21,
272,
67,
3548,
273,
3115,
3816,
12,
80,
63,
20,
6487,
328,
63,
21,
5717,
364,
328,
316,
2362,
6487,
498,
273,
3195,
619,
30,
619,
63,
21,
5717,
6515,
273,
5378,
10360,
16,
7338,
273,
272,
67,
3548,
63,
20,
65,
6515,
18,
6923,
12443,
14482,
16,
306,
12,
25603,
16,
7338,
13,
22643,
364,
10360,
16,
7338,
316,
272,
67,
3548,
63,
21,
30,
14542,
309,
2417,
12,
14482,
300,
6515,
18919,
21,
6362,
20,
5717,
411,
374,
18,
21,
30,
6515,
18919,
21,
6362,
21,
8009,
6923,
12443,
25603,
16,
7338,
3719,
469,
30,
6515,
2
] |
if not inv.has_filename(e):
|
if not inv.has_filename(e) and not e in added:
|
def _addPathnames(self, entries): # This method may get invoked several times with the same # entries; and Branch.add complains if a file is already # versioned. So go through the list and sort out entries that # is already versioned, since there is no need to add them. # Do not try to catch any errors from Branch.add, since the # they are _real_ errors. new_entries = [] inv = self._b.get_inventory(self._b.last_revision()) for e in entries: if not inv.has_filename(e): new_entries.extend([e]) else: self.log.debug('"%s" already in inventory, skipping', e)
|
282ea4fda1cfcaa65e98047fc222daf57eefcfd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/282ea4fda1cfcaa65e98047fc222daf57eefcfd5/bzr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
743,
1973,
12,
2890,
16,
3222,
4672,
468,
1220,
707,
2026,
336,
8187,
11392,
4124,
598,
326,
1967,
468,
3222,
31,
471,
15449,
18,
1289,
27534,
4167,
309,
279,
585,
353,
1818,
468,
17083,
18,
225,
6155,
1960,
3059,
326,
666,
471,
1524,
596,
3222,
716,
468,
353,
1818,
17083,
16,
3241,
1915,
353,
1158,
1608,
358,
527,
2182,
18,
468,
2256,
486,
775,
358,
1044,
1281,
1334,
628,
15449,
18,
1289,
16,
3241,
326,
468,
2898,
854,
389,
7688,
67,
1334,
18,
394,
67,
8219,
273,
5378,
2198,
273,
365,
6315,
70,
18,
588,
67,
26024,
12,
2890,
6315,
70,
18,
2722,
67,
13057,
10756,
364,
425,
316,
3222,
30,
309,
486,
2198,
18,
5332,
67,
3459,
12,
73,
13,
471,
486,
425,
316,
3096,
30,
394,
67,
8219,
18,
14313,
3816,
73,
5717,
469,
30,
365,
18,
1330,
18,
4148,
22076,
9,
87,
6,
1818,
316,
13086,
16,
14195,
2187,
425,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1289,
743,
1973,
12,
2890,
16,
3222,
4672,
468,
1220,
707,
2026,
336,
8187,
11392,
4124,
598,
326,
1967,
468,
3222,
31,
471,
15449,
18,
1289,
27534,
4167,
309,
279,
585,
353,
1818,
468,
17083,
18,
225,
6155,
1960,
3059,
326,
666,
471,
1524,
596,
3222,
716,
468,
353,
1818,
17083,
16,
3241,
1915,
353,
1158,
1608,
358,
527,
2182,
18,
468,
2256,
486,
775,
358,
1044,
1281,
1334,
628,
15449,
18,
1289,
16,
3241,
326,
468,
2898,
854,
389,
7688,
67,
1334,
18,
394,
67,
8219,
273,
5378,
2198,
273,
365,
6315,
70,
18,
588,
67,
26024,
12,
2890,
6315,
70,
18,
2722,
67,
13057,
10756,
364,
425,
316,
3222,
30,
309,
486,
2198,
18,
5332,
2
] |
try:
|
with self.assertRaises(OverflowError):
|
def test(self): huge = 1L << 40000 mhuge = -huge self.assertEqual(huge / huge, 1.0) self.assertEqual(mhuge / mhuge, 1.0) self.assertEqual(huge / mhuge, -1.0) self.assertEqual(mhuge / huge, -1.0) self.assertEqual(1 / huge, 0.0) self.assertEqual(1L / huge, 0.0) self.assertEqual(1 / mhuge, 0.0) self.assertEqual(1L / mhuge, 0.0) self.assertEqual((666 * huge + (huge >> 1)) / huge, 666.5) self.assertEqual((666 * mhuge + (mhuge >> 1)) / mhuge, 666.5) self.assertEqual((666 * huge + (huge >> 1)) / mhuge, -666.5) self.assertEqual((666 * mhuge + (mhuge >> 1)) / huge, -666.5) self.assertEqual(huge / (huge << 1), 0.5) self.assertEqual((1000000 * huge) / huge, 1000000)
|
836070c5fd3803e6924952639507bd95d5f16afb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/836070c5fd3803e6924952639507bd95d5f16afb/test_long_future.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
366,
21627,
273,
404,
48,
2296,
1059,
2787,
17819,
21627,
273,
300,
76,
21627,
365,
18,
11231,
5812,
12,
76,
21627,
342,
366,
21627,
16,
404,
18,
20,
13,
365,
18,
11231,
5812,
12,
81,
76,
21627,
342,
17819,
21627,
16,
404,
18,
20,
13,
365,
18,
11231,
5812,
12,
76,
21627,
342,
17819,
21627,
16,
300,
21,
18,
20,
13,
365,
18,
11231,
5812,
12,
81,
76,
21627,
342,
366,
21627,
16,
300,
21,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
342,
366,
21627,
16,
374,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
48,
342,
366,
21627,
16,
374,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
342,
17819,
21627,
16,
374,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
48,
342,
17819,
21627,
16,
374,
18,
20,
13,
365,
18,
11231,
5812,
12443,
25308,
380,
366,
21627,
397,
261,
76,
21627,
1671,
404,
3719,
342,
366,
21627,
16,
1666,
6028,
18,
25,
13,
365,
18,
11231,
5812,
12443,
25308,
380,
17819,
21627,
397,
261,
81,
76,
21627,
1671,
404,
3719,
342,
17819,
21627,
16,
1666,
6028,
18,
25,
13,
365,
18,
11231,
5812,
12443,
25308,
380,
366,
21627,
397,
261,
76,
21627,
1671,
404,
3719,
342,
17819,
21627,
16,
300,
25308,
18,
25,
13,
365,
18,
11231,
5812,
12443,
25308,
380,
17819,
21627,
397,
261,
81,
76,
21627,
1671,
404,
3719,
342,
366,
21627,
16,
300,
25308,
18,
25,
13,
365,
18,
11231,
5812,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
366,
21627,
273,
404,
48,
2296,
1059,
2787,
17819,
21627,
273,
300,
76,
21627,
365,
18,
11231,
5812,
12,
76,
21627,
342,
366,
21627,
16,
404,
18,
20,
13,
365,
18,
11231,
5812,
12,
81,
76,
21627,
342,
17819,
21627,
16,
404,
18,
20,
13,
365,
18,
11231,
5812,
12,
76,
21627,
342,
17819,
21627,
16,
300,
21,
18,
20,
13,
365,
18,
11231,
5812,
12,
81,
76,
21627,
342,
366,
21627,
16,
300,
21,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
342,
366,
21627,
16,
374,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
48,
342,
366,
21627,
16,
374,
18,
20,
13,
365,
18,
11231,
5812,
12,
21,
342,
2
] |
self.newlink((root, ""), ("<root>", root))
|
if add_to_do: self.newlink((root, ""), ("<root>", root))
|
def addroot(self, root): if root not in self.roots: troot = root scheme, netloc, path, params, query, fragment = \ urlparse.urlparse(root) i = string.rfind(path, "/") + 1 if 0 < i < len(path): path = path[:i] troot = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) self.roots.append(troot) self.addrobot(root) # Begin SLB 2/24/99: Modified this call to respect # the fact that the "done" and "todo" dictionaries # are now (URL, fragment) pairs self.newlink((root, ""), ("<root>", root)) # End SLB 2/24/99
|
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3085,
12,
2890,
16,
1365,
4672,
309,
1365,
486,
316,
365,
18,
22078,
30,
268,
3085,
273,
1365,
4355,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
273,
521,
15185,
18,
718,
2670,
12,
3085,
13,
277,
273,
533,
18,
86,
4720,
12,
803,
16,
4016,
13,
397,
404,
309,
374,
411,
277,
411,
562,
12,
803,
4672,
589,
273,
589,
10531,
77,
65,
268,
3085,
273,
15185,
18,
718,
318,
2670,
12443,
9068,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
3719,
365,
18,
22078,
18,
6923,
12,
88,
3085,
13,
365,
18,
1289,
28870,
12,
3085,
13,
468,
14323,
348,
12995,
576,
19,
3247,
19,
2733,
30,
21154,
333,
745,
358,
8762,
468,
326,
5410,
716,
326,
315,
8734,
6,
471,
315,
9012,
6,
16176,
468,
854,
2037,
261,
1785,
16,
5481,
13,
5574,
365,
18,
2704,
1232,
12443,
3085,
16,
1408,
3631,
7566,
32,
3085,
2984,
16,
1365,
3719,
468,
4403,
348,
12995,
576,
19,
3247,
19,
2733,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3085,
12,
2890,
16,
1365,
4672,
309,
1365,
486,
316,
365,
18,
22078,
30,
268,
3085,
273,
1365,
4355,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
273,
521,
15185,
18,
718,
2670,
12,
3085,
13,
277,
273,
533,
18,
86,
4720,
12,
803,
16,
4016,
13,
397,
404,
309,
374,
411,
277,
411,
562,
12,
803,
4672,
589,
273,
589,
10531,
77,
65,
268,
3085,
273,
15185,
18,
718,
318,
2670,
12443,
9068,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
3719,
365,
18,
22078,
18,
6923,
12,
88,
3085,
13,
365,
18,
1289,
28870,
12,
3085,
13,
468,
14323,
348,
12995,
576,
19,
3247,
19,
2733,
30,
21154,
333,
745,
358,
2
] |
domNode.click()
|
try: s=domNode.QueryInterface(IAccessibleHandler.IServiceProvider) ia=s.QueryService(ctypes.byref(IAccessibleHandler.IAccessible._iid_), ctypes.byref(IAccessibleHandler.IAccessible._iid_)) ia=ctypes.POINTER(IAccessibleHandler.IAccessible)(ia) ia.accDoDefaultAction() except: domNode.click()
|
def activatePosition(self,pos): ID=self.getIDFromPosition(pos) if ID is None: return domNode=self._IDs[ID]["node"] if domNode is None: return nodeName=domNode.nodeName if nodeName in ["SELECT","TEXTAREA"]: if not self.passThrough: self.passThrough=True virtualBufferHandler.reportPassThrough(self) domNode.focus() elif nodeName =="INPUT": inputType=domNode.getAttribute('type') if inputType in ["checkbox","radio"]: domNode.click() speech.speakMessage("%s"%(IAccessibleHandler.getStateText(IAccessibleHandler.STATE_SYSTEM_CHECKED) if domNode.checked else _("not %s")%IAccessibleHandler.getStateText(IAccessibleHandler.STATE_SYSTEM_CHECKED))) elif inputType in ["file","text","password"]: if not self.passThrough: self.passThrough=True virtualBufferHandler.reportPassThrough(self) domNode.focus() elif inputType in ["button","image","reset","submit"]: domNode.click() elif (nodeName in ["A","IMG"]) or domNode.onclick: domNode.click() try: domNode.focus() except: pass
|
1b49334955b91ce0f9aedd8cba2af32673dc408d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/1b49334955b91ce0f9aedd8cba2af32673dc408d/MSHTML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
2555,
12,
2890,
16,
917,
4672,
1599,
33,
2890,
18,
588,
734,
1265,
2555,
12,
917,
13,
309,
1599,
353,
599,
30,
327,
24984,
33,
2890,
6315,
5103,
63,
734,
6362,
6,
2159,
11929,
309,
24984,
353,
599,
30,
327,
7553,
33,
9859,
907,
18,
2159,
461,
309,
7553,
316,
8247,
4803,
15937,
5151,
20933,
11929,
30,
309,
486,
365,
18,
5466,
14287,
30,
365,
18,
5466,
14287,
33,
5510,
5024,
1892,
1503,
18,
6006,
6433,
14287,
12,
2890,
13,
24984,
18,
13923,
1435,
1327,
7553,
422,
6,
15934,
6877,
21092,
33,
9859,
907,
18,
588,
1499,
2668,
723,
6134,
309,
21092,
316,
8247,
12017,
15937,
17006,
11929,
30,
775,
30,
272,
33,
9859,
907,
18,
1138,
1358,
12,
45,
10451,
1503,
18,
45,
16300,
13,
20389,
33,
87,
18,
1138,
1179,
12,
299,
989,
18,
1637,
1734,
12,
45,
10451,
1503,
18,
45,
10451,
6315,
77,
350,
67,
3631,
6983,
18,
1637,
1734,
12,
45,
10451,
1503,
18,
45,
10451,
6315,
77,
350,
67,
3719,
20389,
33,
299,
989,
18,
2419,
9125,
12,
45,
10451,
1503,
18,
45,
10451,
21433,
1155,
13,
20389,
18,
8981,
3244,
1868,
1803,
1435,
1335,
30,
24984,
18,
7475,
1435,
24556,
18,
87,
10244,
1079,
27188,
87,
6,
17105,
45,
10451,
1503,
18,
588,
1119,
1528,
12,
45,
10451,
1503,
18,
7998,
67,
14318,
67,
10687,
2056,
13,
309,
24984,
18,
4532,
469,
389,
2932,
902,
738,
87,
7923,
9,
45,
10451,
1503,
18,
588,
1119,
1528,
12,
45,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
2555,
12,
2890,
16,
917,
4672,
1599,
33,
2890,
18,
588,
734,
1265,
2555,
12,
917,
13,
309,
1599,
353,
599,
30,
327,
24984,
33,
2890,
6315,
5103,
63,
734,
6362,
6,
2159,
11929,
309,
24984,
353,
599,
30,
327,
7553,
33,
9859,
907,
18,
2159,
461,
309,
7553,
316,
8247,
4803,
15937,
5151,
20933,
11929,
30,
309,
486,
365,
18,
5466,
14287,
30,
365,
18,
5466,
14287,
33,
5510,
5024,
1892,
1503,
18,
6006,
6433,
14287,
12,
2890,
13,
24984,
18,
13923,
1435,
1327,
7553,
422,
6,
15934,
6877,
21092,
33,
9859,
907,
18,
588,
1499,
2668,
723,
6134,
309,
21092,
316,
8247,
12017,
15937,
17006,
11929,
30,
775,
30,
272,
33,
9859,
907,
18,
1138,
2
] |
def __init__(self, master=None):
|
def __init__(self, master=None, value=None, name=None):
|
def __init__(self, master=None): """Construct a string variable.
|
d9565dc51f7ac24afa5838b531be5ac7f386c816 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9565dc51f7ac24afa5838b531be5ac7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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
533,
2190,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print("Ignoring comment (in %s): %s" % (self.filename, commentError))
|
print("Ignoring comment in %s: %s" % (self.filename, commentError))
|
def skip(self): """Eats comments and whitespace.""" input = self.source startLine = self.line indent = "" while (True): if len(input) > self.cursor: ch = input[self.cursor] else: return self.cursor += 1 if len(input) > self.cursor: next = input[self.cursor] else: next = None
|
195747aaac01b3d43784d3f2bbb2634c18db65be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/195747aaac01b3d43784d3f2bbb2634c18db65be/Tokenizer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
12,
2890,
4672,
3536,
41,
2323,
5678,
471,
7983,
12123,
810,
273,
365,
18,
3168,
24636,
273,
365,
18,
1369,
225,
3504,
273,
1408,
225,
1323,
261,
5510,
4672,
309,
562,
12,
2630,
13,
405,
365,
18,
9216,
30,
462,
273,
810,
63,
2890,
18,
9216,
65,
469,
30,
327,
225,
365,
18,
9216,
1011,
404,
225,
309,
562,
12,
2630,
13,
405,
365,
18,
9216,
30,
1024,
273,
810,
63,
2890,
18,
9216,
65,
469,
30,
1024,
273,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9216,
65,
469,
30,
327,
225,
365,
18,
9216,
1011,
404,
225,
309,
562,
12,
2630,
13,
405,
365,
18,
9216,
30,
1024,
273,
810,
63,
2890,
18,
9216,
65,
469,
30,
1024,
273,
599,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
details, members = get_list_info(userdesc, perms, mlist)
|
infos = get_list_info(userdesc, perms, mlist) if infos is None: return None details, members = infos
|
def get_members(userdesc, perms, mlist): """ List the members of a list. @mlist """ details, members = get_list_info(userdesc, perms, mlist) members.sort() members = map(lambda member: (get_name(member), member), members) return (details, members, mlist.owner)
|
5f0ac25ee1e92a8344859d08bb6d706dc4d5d49d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5724/5f0ac25ee1e92a8344859d08bb6d706dc4d5d49d/lists.rpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7640,
12,
1355,
5569,
16,
13793,
16,
312,
1098,
4672,
3536,
987,
326,
4833,
434,
279,
666,
18,
632,
781,
376,
3536,
10626,
273,
336,
67,
1098,
67,
1376,
12,
1355,
5569,
16,
13793,
16,
312,
1098,
13,
309,
10626,
353,
599,
30,
327,
599,
3189,
16,
4833,
273,
10626,
4833,
18,
3804,
1435,
4833,
273,
852,
12,
14661,
3140,
30,
261,
588,
67,
529,
12,
5990,
3631,
3140,
3631,
4833,
13,
327,
261,
6395,
16,
4833,
16,
312,
1098,
18,
8443,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
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,
7640,
12,
1355,
5569,
16,
13793,
16,
312,
1098,
4672,
3536,
987,
326,
4833,
434,
279,
666,
18,
632,
781,
376,
3536,
10626,
273,
336,
67,
1098,
67,
1376,
12,
1355,
5569,
16,
13793,
16,
312,
1098,
13,
309,
10626,
353,
599,
30,
327,
599,
3189,
16,
4833,
273,
10626,
4833,
18,
3804,
1435,
4833,
273,
852,
12,
14661,
3140,
30,
261,
588,
67,
529,
12,
5990,
3631,
3140,
3631,
4833,
13,
327,
261,
6395,
16,
4833,
16,
312,
1098,
18,
8443,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class StrangeIdTest(ATSiteTestCase): def test_strangeUnallowedIds(self): """ Certain IDs used to give an error and are unusable They're set in zope's lib/python/App/Product.py. Examples: home, version. This test used to include 'icon', too, but that's apparently really an id that's already been taken (instead of a bug). """ strangeIds = ['home', 'version'] for id in strangeIds: self.folder.invokeFactory('Folder', id) self.assert_(id in self.folder.objectIds()) def test_suite(): from unittest import TestSuite, makeSuite suite = TestSuite() suite.addTest(makeSuite(GetFilenameTest)) suite.addTest(makeSuite(SetFilenameTest)) suite.addTest(makeSuite(LargeFileTest)) suite.addTest(makeSuite(StrangeIdTest)) return suite if __name__ == '__main__': framework()
|
>>> nodes[0].setLinks([n.UID() for n in nodes[1:]]) >>> nodes[0].getLinks() [<Refnode...>, <Refnode...>] >>> nodes[0].setLinks(()) >>> nodes[0].getLinks() [] Setting multiple values for a non multivalued field will fail: >>> nodes[1].setLink(nodes) Traceback (most recent call last): ... ValueError: Multiple values ... Keyword arguments may be passed directly to addReference(), thereby creating properties on the reference objects: >>> nodes[1].setLink(nodes[0].UID(), foo='bar', spam=1) >>> ref = nodes[1].getReferenceImpl()[0] >>> ref.foo, ref.spam ('bar', 1) Empty BTreeFolders work as values ( >>> _ = self.folder.invokeFactory('SimpleBTreeFolder', 'btf') >>> nodes[2].setLink(self.folder.btf) >>> nodes[2].getLink() <SimpleBTreeFolder...> """ tool = getToolByName(instance, REFERENCE_CATALOG) targetUIDs = [ref.targetUID for ref in tool.getReferences(instance, self.relationship)] if value is None: value = () if not isinstance(value, (ListType, TupleType)): value = value, elif not self.multiValued and len(value) > 1: raise ValueError, \ "Multiple values given for single valued field %r" % self uids = [] for v in value: if type(v) in STRING_TYPES: uids.append(v) else: uids.append(v.UID()) add = [v for v in uids if v and v not in targetUIDs] sub = [t for t in targetUIDs if t not in uids] addRef_kw = kwargs.copy() addRef_kw.setdefault('referenceClass', self.referenceClass) if addRef_kw.has_key('schema'): del addRef_kw['schema'] for uid in add: __traceback_info__ = (instance, uid, value, targetUIDs) tool.addReference(instance, uid, self.relationship, **addRef_kw) for uid in sub: tool.deleteReference(instance, uid, self.relationship) if self.callStorageOnSet: ObjectField.set(self, instance, self.getRaw(instance), **kwargs) security.declarePrivate('getRaw') def getRaw(self, instance, aslist=False, **kwargs): """Return the list of UIDs referenced under this fields relationship """ rc = getToolByName(instance, REFERENCE_CATALOG) brains = rc(sourceUID=instance.UID(), relationship=self.relationship) res = [b.targetUID for b in brains] if not self.multiValued and not aslist: if res: res = res[0] else: res = None return res security.declarePublic('Vocabulary') def Vocabulary(self, content_instance=None): """Use vocabulary property if it's been defined.""" if self.vocabulary: return ObjectField.Vocabulary(self, content_instance) else: return self._Vocabulary(content_instance).sortedByValue() def _brains_title_or_id(self, brain, instance): """ ensure the brain has a title or an id and return it as unicode""" title = None if shasattr(brain, 'getId'): title = brain.getId if shasattr(brain, 'Title') and brain.Title != '': title = brain.Title if title is not None and type(title) in StringTypes: return decode(title, instance) raise AttributeError, "Brain has no title or id" def _Vocabulary(self, content_instance): pairs = [] pc = getToolByName(content_instance, 'portal_catalog') uc = getToolByName(content_instance, config.UID_CATALOG) purl = getToolByName(content_instance, 'portal_url') allowed_types = self.allowed_types allowed_types_method = getattr(self, 'allowed_types_method', None) if allowed_types_method: meth = getattr(content_instance,allowed_types_method) allowed_types = meth(self) skw = allowed_types and {'portal_type':allowed_types} or {} brains = uc.searchResults(**skw) if self.vocabulary_custom_label is not None: label = lambda b:eval(self.vocabulary_custom_label, {'b': b}) elif self.vocabulary_display_path_bound != -1 and len(brains) > self.vocabulary_display_path_bound: at = i18n.translate(domain='archetypes', msgid='label_at', context=content_instance, default='at') label = lambda b:u'%s %s %s' % (self._brains_title_or_id(b, content_instance), at, b.getPath()) else: label = lambda b:self._brains_title_or_id(b, content_instance) portal_base = purl.getPortalPath() path_offset = len(portal_base) + 1 abs_paths = {} abs_path = lambda b, p=portal_base: '%s/%s' % (p, b.getPath()) [abs_paths.update({abs_path(b):b}) for b in brains] pc_brains = pc(path=abs_paths.keys(), **skw) for b in pc_brains: b_path = b.getPath() path = b_path[path_offset:] if self.referenceReferences is False and \ path.find(config.REFERENCE_ANNOTATION) != -1: continue if abs_paths.has_key(b_path): uid = abs_paths[b_path].UID if uid is None: raise ReferenceException("Brain for the object at %s "\ "doesn't have an UID assigned with. Please update your"\ " reference catalog!" % b_path) pairs.append((uid, label(b))) if not self.required and not self.multiValued: no_reference = i18n.translate(domain='archetypes', msgid='label_no_reference', context=content_instance, default='<no reference>') pairs.insert(0, ('', no_reference)) __traceback_info__ = (content_instance, self.getName(), pairs) return DisplayList(pairs) security.declarePublic('get_size') def get_size(self, instance): """Get size of the stored data used for get_size in BaseObject """ return 0 class ComputedField(ObjectField): """A field that stores a read-only computation.""" __implements__ = Field.__implements__ _properties = Field._properties.copy() _properties.update({ 'type' : 'computed', 'expression': None, 'widget' : ComputedWidget, 'mode' : 'r', 'storage': ReadOnlyStorage(), }) security = ClassSecurityInfo() security.declarePrivate('set') def set(self, *ignored, **kwargs): pass security.declarePrivate('get') def get(self, instance, **kwargs): """Return the computed value.""" return eval(self.expression, {'context': instance, 'here' : instance}) security.declarePublic('get_size') def get_size(self, instance): """Get size of the stored data. Used for get_size in BaseObject. """ return 0 class BooleanField(ObjectField): """A field that stores boolean values.""" __implements__ = ObjectField.__implements__ _properties = Field._properties.copy() _properties.update({ 'type' : 'boolean', 'default': None, 'widget' : BooleanWidget, }) security = ClassSecurityInfo() security.declarePrivate('set') def set(self, instance, value, **kwargs): """If value is not defined or equal to 0, set field to false; otherwise, set to true.""" if not value or value == '0' or value == 'False': value = False else: value = True ObjectField.set(self, instance, value, **kwargs) security.declarePublic('get_size') def get_size(self, instance): """Get size of the stored data used for get_size in BaseObject """ return True class CMFObjectField(ObjectField): """ COMMENT TODO """ __implements__ = ObjectField.__implements__ _properties = Field._properties.copy() _properties.update({ 'type' : 'object', 'portal_type': 'File', 'default': None, 'default_mime_type': 'application/octet-stream', 'widget' : FileWidget, 'storage': ObjectManagedStorage(), 'workflowable': True, }) security = ClassSecurityInfo() def _process_input(self, value, default=None, **kwargs): __traceback_info__ = (value, type(value)) if type(value) is not StringType: if ((isinstance(value, FileUpload) and value.filename != '') or \ (isinstance(value, FileType) and value.name != '')): value.seek(-1, 2) size = value.tell() value.seek(0) if size == 0: return default return value if value is None: return default else: if value == '': return default return value raise ObjectFieldException('Value is not File or String') security.declarePrivate('get') def get(self, instance, **kwargs): try: return self.getStorage(instance).get(self.getName(), instance, **kwargs) except AttributeError: tt = getToolByName(instance, 'portal_types', None) if tt is None: msg = "Coudln't get portal_types tool from this context" raise AttributeError(msg) type_name = self.portal_type info = tt.getTypeInfo(type_name) if info is None: raise ValueError('No such content type: %s' % type_name) if not shasattr(info, 'constructInstance'): raise ValueError('Cannot construct content type: %s' % \ type_name) args = [instance, self.getName()] for k in ['field', 'schema']: del kwargs[k] return mapply(info.constructInstance, *args, **kwargs) security.declarePrivate('set') def set(self, instance, value, **kwargs): obj = self.get(instance, **kwargs) value = self._process_input(value, default=self.getDefault(instance), \ **kwargs) if value is None or value == '': return obj.edit(file=value) class Image(BaseImage): security = ClassSecurityInfo() def title(self): parent = aq_parent(aq_inner(self)) if parent is not None: return parent.Title() or parent.getId() return self.getId() title = ComputedAttribute(title, 1) alt = title_or_id = title def isBinary(self): return True class ImageField(FileField): """ implements an image attribute. it stores it's data in an image sub-object sizes is an dictionary containing the sizes to scale the image to. PIL is required for that. Format: sizes={'mini': (50,50), 'normal' : (100,100), ... } syntax: {'name': (width,height), ... } the scaled versions can then be accessed as object/<imagename>_<scalename> e.g. object/image_mini where <imagename> is the fieldname and <scalename> is the name from the dictionary original_size -- this parameter gives the size in (w,h) to which the original image will be scaled. If it's None, then no scaling will take place. This is important if you don't want to store megabytes of imagedata if you only need a max. of 100x100 ;-) max_size -- similar to max_size but if it's given then the image is checked to be no bigger than any of the given values of width or height. XXX: I think it is, because the one who added it did not document it ;-) (mrtopf - 2003/07/20) example: ImageField('image', original_size=(600,600), sizes={ 'mini' : (80,80), 'normal' : (200,200), 'big' : (300,300), 'maxi' : (500,500)}) will create an attribute called "image" with the sizes mini, normal, big, maxi as given and a original sized image of max 600x600. This will be accessible as object/image and the sizes as object/image_mini object/image_normal object/image_big object/image_maxi the official API to get tag (in a pagetemplate) is obj.getField('image').tag(obj, scale='mini') ... sizes may be the name of a method in the instance or a callable which returns a dict. Don't remove scales once they exist! Instead of removing a scale from the list of sizes you should set the size to (0,0). Thus removeScales method is able to find the scales to delete the data. Scaling will only be available if PIL is installed! If 'DELETE_IMAGE' will be given as value, then all the images will be deleted (None is understood as no-op) """ _properties = FileField._properties.copy() _properties.update({ 'type' : 'image', 'default' : '', 'original_size': None, 'max_size': None, 'sizes' : {'thumb':(80,80)}, 'swallowResizeExceptions' : False, 'pil_quality' : 88, 'pil_resize_algo' : PIL_ALGO, 'default_content_type' : 'image/png', 'allowable_content_types' : ('image/gif','image/jpeg','image/png'), 'widget': ImageWidget, 'storage': AttributeStorage(), 'content_class': Image, }) security = ClassSecurityInfo() default_view = "view" security.declarePrivate('set') def set(self, instance, value, **kwargs): if not value: return if value=="DELETE_IMAGE": self.removeScales(instance, **kwargs) ObjectField.unset(self, instance, **kwargs) return kwargs.setdefault('mimetype', None) default = self.getDefault(instance) value, mimetype, filename = self._process_input(value, default=default, instance=instance, **kwargs) size = getattr(value, 'size', None) if size == 0: return kwargs['mimetype'] = mimetype kwargs['filename'] = filename try: data = self.rescaleOriginal(value, **kwargs) except (ConflictError, KeyboardInterrupt): raise except: if not self.swallowResizeExceptions: raise else: log_exc() data = str(value.data) self.createOriginal(instance, data, **kwargs) self.createScales(instance, value=data) security.declareProtected(permissions.View, 'getAvailableSizes') def getAvailableSizes(self, instance): """Get sizes Supports: self.sizes as dict A method in instance called like sizes that returns dict A callable """ sizes = self.sizes if type(sizes) is DictType: return sizes elif type(sizes) is StringType: assert(shasattr(instance, sizes)) method = getattr(instance, sizes) data = method() assert(type(data) is DictType) return data elif callable(sizes): return sizes() elif sizes is None: return {} else: raise TypeError, 'Wrong self.sizes has wrong type: %s' % type(sizes) security.declareProtected(permissions.ModifyPortalContent, 'rescaleOriginal') def rescaleOriginal(self, value, **kwargs): """rescales the original image and sets the data for self.original_size or self.max_size value must be an OFS.Image.Image instance """ data = str(value.data) if not HAS_PIL: return data mimetype = kwargs.get('mimetype', self.default_content_type) if self.original_size or self.max_size: if not value: return self.default w=h=0 if self.max_size: if value.width > self.max_size[0] or \ value.height > self.max_size[1]: factor = min(float(self.max_size[0])/float(value.width), float(self.max_size[1])/float(value.height)) w = int(factor*value.width) h = int(factor*value.height) elif self.original_size: w,h = self.original_size if w and h: __traceback_info__ = (self, value, w, h) fvalue, format = self.scale(data, w, h) data = fvalue.read() else: data = str(value.data) return data security.declarePrivate('createOriginal') def createOriginal(self, instance, value, **kwargs): """create the original image (save it) """ if value: image = self._wrapValue(instance, value, **kwargs) else: image = self.getDefault(instance) ObjectField.set(self, instance, image, **kwargs) security.declarePrivate('removeScales') def removeScales(self, instance, **kwargs): """Remove the scaled image """ sizes = self.getAvailableSizes(instance) if sizes: for name, size in sizes.items(): id = self.getName() + "_" + name try: self.getStorage(instance).unset(id, instance, **kwargs) except KeyError: pass security.declareProtected(permissions.ModifyPortalContent, 'createScales') def createScales(self, instance, value=_marker): """creates the scales and save them """ sizes = self.getAvailableSizes(instance) if not HAS_PIL or not sizes: return if value is _marker: img = self.getRaw(instance) if not img: return data = str(img.data) else: data = value if not data: return filename = self.getFilename(instance) for n, size in sizes.items(): if size == (0,0): continue w, h = size id = self.getName() + "_" + n __traceback_info__ = (self, instance, id, w, h) try: imgdata, format = self.scale(data, w, h) except (ConflictError, KeyboardInterrupt): raise except: if not self.swallowResizeExceptions: raise else: log_exc() continue mimetype = 'image/%s' % format.lower() image = self.content_class(id, self.getName(), imgdata, mimetype ) image.filename = filename delattr(image, 'title') self.getStorage(instance).set(id, instance, image, mimetype=mimetype, filename=filename) security.declarePrivate('scale') def scale(self, data, w, h, default_format = 'PNG'): """ scale image (with material from ImageTag_Hotfix)""" size = int(w), int(h) original_file=StringIO(data) image = PIL.Image.open(original_file) original_mode = image.mode if original_mode == '1': image = image.convert('L') elif original_mode == 'P': image = image.convert('RGBA') image.thumbnail(size, self.pil_resize_algo) format = image.format and image.format or default_format if original_mode == 'P' and format == 'GIF': image = image.convert('P') thumbnail_file = StringIO() image.save(thumbnail_file, format, quality=self.pil_quality) thumbnail_file.seek(0) return thumbnail_file, format.lower() security.declareProtected(permissions.View, 'getSize') def getSize(self, instance, scale=None): """get size of scale or original """ img = self.getScale(instance, scale=scale) if not img: return 0, 0 return img.width, img.height security.declareProtected(permissions.View, 'getScale') def getScale(self, instance, scale=None, **kwargs): """Get scale by name or original """ if scale is None: return self.get(instance, **kwargs) else: assert(scale in self.getAvailableSizes(instance).keys(), 'Unknown scale %s for %s' % (scale, self.getName())) id = self.getScaleName(scale=scale) try: image = self.getStorage(instance).get(id, instance, **kwargs) except AttributeError: return '' image = self._wrapValue(instance, image, **kwargs) if shasattr(image, '__of__', acquire=True) and not kwargs.get('unwrapped', False): return image.__of__(instance) else: return image security.declareProtected(permissions.View, 'getScaleName') def getScaleName(self, scale=None): """Get the full name of the attribute for the scale """ if scale: return self.getName() + "_" + scale else: return '' security.declarePublic('get_size') def get_size(self, instance): """Get size of the stored data used for get_size in BaseObject XXX: We should only return the size of the original image """ sizes = self.getAvailableSizes(instance) original = self.get(instance) size = original and original.get_size() or 0 if sizes: for name in sizes.keys(): id = self.getScaleName(scale=name) try: data = self.getStorage(instance).get(id, instance) except AttributeError: pass else: size+=data and data.get_size() or 0 return size security.declareProtected(permissions.View, 'tag') def tag(self, instance, scale=None, height=None, width=None, alt=None, css_class=None, title=None, **kwargs): """Create a tag including scale """ image = self.getScale(instance, scale=scale) if image: img_height=image.height img_width=image.width else: img_height=0 img_width=0 if height is None: height=img_height if width is None: width=img_width url = instance.absolute_url() if scale: url+= '/' + self.getScaleName(scale) else: url+= '/' + self.getName() values = {'src' : url, 'alt' : escape(alt and alt or instance.Title(), 1), 'title' : escape(title and title or instance.Title(), 1), 'height' : height, 'width' : width, } result = '<img src="%(src)s" alt="%(alt)s" title="%(title)s" '\ 'height="%(height)s" width="%(width)s"' % values if css_class is not None: result = '%s class="%s"' % (result, css_class) for key, value in kwargs.items(): if value: result = '%s %s="%s"' % (result, key, value) return '%s />' % result class DynVariantWrapper(Base): """Provide a transparent wrapper from image to dynvariant call it with url ${image_url}/variant/${variant} """ def __init__(self): deprecated('DynVariantWrapper (for PhotoField) is deprecated after work ' 'done on ImageField and ATImage. It will be removed in ' 'Archetypes 1.5. If someone like to keep the code please ' 'move it over to an own Product in MoreFieldsAndWidgets ' 'repository.' ) def __of__(self, parent): return parent.Variants() class DynVariant(Implicit, Traversable): """Provide access to the variants.""" def __init__(self): deprecated('DynVariant (for PhotoField) is deprecated after work ' 'done on ImageField and ATImage. It will be removed in ' 'Archetypes 1.5. If someone like to keep the code please ' 'move it over to an own Product in MoreFieldsAndWidgets ' 'repository.' ) def __getitem__(self, name): if self.checkForVariant(name): return self.getPhoto(name).__of__(aq_parent(self)) else: return aq_parent(self) class ScalableImage(BaseImage): """A scalable image class.""" __implements__ = BaseImage.__implements__ meta_type = 'Scalable Image' isBinary = lambda self: True security = ClassSecurityInfo() def __init__(self, id, title='', file='', displays={}): deprecated('ScalableImage (for PhotoField) is deprecated after work ' 'done on ImageField and ATImage. It will be removed in ' 'Archetypes 1.5. If someone like to keep the code please ' 'move it over to an own Product in MoreFieldsAndWidgets ' 'repository.' ) BaseImage.__init__(self, id, title, file) self._photos = OOBTree() self.displays = displays variant=DynVariantWrapper() security.declareProtected(permissions.View, 'Variants') def Variants(self): return DynVariant().__of__(self) security.declareProtected(permissions.View, 'getPhoto') def getPhoto(self,size): '''returns the Photo of the specified size''' return self._photos[size] security.declareProtected(permissions.View, 'getDisplays') def getDisplays(self): result = [] for name, size in self.displays.items(): result.append({'name':name, 'label':'%s (%dx%d)' % ( name, size[0], size[1]),'size':size} ) result.sort(lambda d1,d2: cmp( d1['size'][0]*d1['size'][0], d2['size'][1]*d2['size'][1]) ) return result security.declarePrivate('checkForVariant') def checkForVariant(self, size): """Create variant if not there.""" if size in self.displays.keys(): if not self._photos.has_key(size): self._photos[size] = BaseImage( size, size, self._resize(self.displays.get(size, (0,0))) ) elif not self._photos[size].getContentType().startswith('image'): self._photos[size] = BaseImage( size, size, self._resize(self.displays.get(size, (0,0))) ) return True else: return False security.declareProtected(permissions.View, 'index_html') def index_html(self, REQUEST, RESPONSE, size=None): """Return the image data.""" if self.checkForVariant(size): return self.getPhoto(size).index_html(REQUEST, RESPONSE) return BaseImage.index_html(self, REQUEST, RESPONSE) security.declareProtected(permissions.View, 'tag') def tag(self, height=None, width=None, alt=None, scale=False, xscale=False, yscale=False, css_class=None, title=None, size='original', **args): """Return an HTML img tag (See OFS.Image)""" w=self.width h=self.height if height is None or width is None: if size in self.displays.keys(): if not self._photos.has_key(size): x,y = self.displays.get(size) try: if self.width > self.height: w=x h=int(round(1.0/(float(self.width)/w/self.height))) else: h=y w=int(round(1.0/(float(self.height)/x/self.width))) except ValueError: w=None h=None else: photo = self._photos.get(size) w=photo.width h=photo.height if height is None: height=h if width is None: width=w xdelta = xscale or scale ydelta = yscale or scale if xdelta and width: width = str(int(round(int(width) * xdelta))) if ydelta and height: height = str(int(round(int(height) * ydelta))) result='<img src="%s/variant/%s"' % (self.absolute_url(), escape(size)) if alt is None: alt=getattr(self, 'title', '') result = '%s alt="%s"' % (result, escape(alt, 1)) if title is None: title=getattr(self, 'title', '') result = '%s title="%s"' % (result, escape(title, 1)) if height: result = '%s height="%s"' % (result, height) if width: result = '%s width="%s"' % (result, width) if not 'border' in [ x.lower() for x in args.keys()]: result = '%s border="0"' % result if css_class is not None: result = '%s class="%s"' % (result, css_class) for key in args.keys(): value = args.get(key) result = '%s %s="%s"' % (result, key, value) return '%s />' % result security.declarePrivate('update_data') def update_data(self, data, content_type=None, size=None): """ Update/upload image -> remove all copies """ BaseImage.update_data(self, data, content_type, size) self._photos = OOBTree() def _resize(self, size, quality=100): """Resize and resample photo.""" image = StringIO() width, height = size try: if HAS_PIL: img = PIL.Image.open(StringIO(str(self.data))) fmt = img.format img.thumbnail((width, height)) img.save(image, fmt, quality=quality) else: if sys.platform == 'win32': from win32pipe import popen2 imgin, imgout = popen2(('convert -quality %s ' '-geometry %sx%s - -' % (quality, width, height), 'b')) else: from popen2 import Popen3 convert=Popen3(('convert -quality %s ' '-geometry %sx%s - -' % (quality, width, height))) imgout=convert.fromchild imgin=convert.tochild imgin.write(str(self.data)) imgin.close() image.write(imgout.read()) imgout.close() if sys.platform !='win32': convert.wait() image.seek(0) except (ConflictError, KeyboardInterrupt): raise except Exception, e: log_exc('Error while resizing image') return image security.declareProtected(ChangeCacheSettingsPermission, 'ZCacheable_setManagerId') def ZCacheable_setManagerId(self, manager_id, REQUEST=None): '''Changes the manager_id for this object. overridden because we must propagate the change to all variants''' for size in self._photos.keys(): variant = self.getPhoto(size).__of__(self) variant.ZCacheable_setManagerId(manager_id) inherited_attr = Photo.inheritedAttribute('ZCacheable_setManagerId') return inherited_attr(self, manager_id, REQUEST) InitializeClass(ScalableImage) class PhotoField(ObjectField): """A photo field class.""" _properties = Field._properties.copy() _properties.update({ 'type' : 'image', 'default' : '', 'default_content_type' : 'image/gif', 'allowable_content_types' : ('image/gif','image/jpeg'), 'displays': { 'thumbnail': (128,128), 'xsmall': (200,200), 'small': (320,320), 'medium': (480,480), 'large': (768,768), 'xlarge': (1024,1024) }, 'widget': ImageWidget, 'storage': AttributeStorage(), }) security = ClassSecurityInfo() default_view = "view" def __init__(self, *args, **kwargs): deprecated('PhotoField is deprecated after work done on ImageField and ' 'ATImage. It will be removed in Archetypes 1.5. If someone ' 'like to keep the code please move it over to an own ' 'Product in MoreFieldsAndWidgets repository.' ) super(PhotoField, self).__init__(*args, **kwargs) security.declarePrivate('set') def set(self, instance, value, **kw): if type(value) is StringType: value = StringIO(value) image = ScalableImage(self.getName(), file=value, displays=self.displays) ObjectField.set(self, instance, image, **kw) security.declarePrivate('validate_required') def validate_required(self, instance, value, errors): value = getattr(value, 'get_size', lambda: str(value))() return ObjectField.validate_required(self, instance, value, errors) __all__ = ('Field', 'ObjectField', 'StringField', 'FileField', 'TextField', 'DateTimeField', 'LinesField', 'IntegerField', 'FloatField', 'FixedPointField', 'ReferenceField', 'ComputedField', 'BooleanField', 'CMFObjectField', 'ImageField', 'PhotoField', ) registerField(StringField, title='String', description='Used for storing simple strings') registerField(FileField, title='File', description='Used for storing files') registerField(TextField, title='Text', description=('Used for storing text which can be ' 'used in transformations')) registerField(DateTimeField, title='Date Time', description='Used for storing date/time') registerField(LinesField, title='LinesField', description=('Used for storing text which can be ' 'used in transformations')) registerField(IntegerField, title='Integer', description='Used for storing integer values') registerField(FloatField, title='Float', description='Used for storing float values') registerField(FixedPointField, title='Fixed Point', description='Used for storing fixed point values') registerField(ReferenceField, title='Reference', description=('Used for storing references to ' 'other Archetypes Objects')) registerField(ComputedField, title='Computed', description=('Read-only field, which value is ' 'computed from a python expression')) registerField(BooleanField, title='Boolean', description='Used for storing boolean values') registerField(CMFObjectField, title='CMF Object', description=('Used for storing value inside ' 'a CMF Object, which can have workflow. ' 'Can only be used for BaseFolder-based ' 'content objects')) registerField(ImageField, title='Image', description=('Used for storing images. ' 'Images can then be retrieved in ' 'different thumbnail sizes')) registerField(PhotoField, title='Photo', description=('Used for storing images. ' 'Based on CMFPhoto. ') ) registerPropertyType('required', 'boolean') registerPropertyType('default', 'string') registerPropertyType('default', 'integer', IntegerField) registerPropertyType('default', 'boolean', BooleanField) registerPropertyType('default', 'datetime', DateTimeField) registerPropertyType('vocabulary', 'string') registerPropertyType('enforceVocabulary', 'boolean') registerPropertyType('multiValued', 'boolean', LinesField) registerPropertyType('searchable', 'boolean') registerPropertyType('isMetadata', 'boolean') registerPropertyType('accessor', 'string') registerPropertyType('edit_accessor', 'string') registerPropertyType('mutator', 'string') registerPropertyType('mode', 'string') registerPropertyType('read_permission', 'string') registerPropertyType('write_permission', 'string') registerPropertyType('widget', 'widget') registerPropertyType('validators', 'validators') registerPropertyType('storage', 'storage') registerPropertyType('index', 'string') registerPropertyType('old_field_name', 'string')
|
def testSetFilenameOfLargeFile(self): """Test for https://dev.plone.org/archetypes/ticket/635 """ self.folder.invokeFactory('SimpleFile', 'sf') obj = self.folder.sf contents = StringIO('largest file, ' * 10000) obj.setBody(contents) self.assertEqual(obj.getBody().size, 140000) obj.getBody().setFilename('Spam.txt') self.assertEqual(obj.getBody().size, 140000)
|
7f67c4ee539d19adcd957bec3fd4f33e48c75664 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/7f67c4ee539d19adcd957bec3fd4f33e48c75664/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
694,
5359,
951,
20020,
812,
12,
2890,
4672,
3536,
4709,
364,
2333,
2207,
5206,
18,
412,
476,
18,
3341,
19,
991,
15180,
19,
16282,
19,
4449,
25,
3536,
365,
18,
5609,
18,
14407,
1733,
2668,
5784,
812,
2187,
296,
21668,
6134,
1081,
273,
365,
18,
5609,
18,
21668,
2939,
273,
15777,
2668,
80,
11475,
585,
16,
296,
380,
12619,
13,
1081,
18,
542,
2250,
12,
3980,
13,
365,
18,
11231,
5812,
12,
2603,
18,
588,
2250,
7675,
1467,
16,
5045,
2787,
13,
1081,
18,
588,
2250,
7675,
542,
5359,
2668,
3389,
301,
18,
5830,
6134,
365,
18,
11231,
5812,
12,
2603,
18,
588,
2250,
7675,
1467,
16,
5045,
2787,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
694,
5359,
951,
20020,
812,
12,
2890,
4672,
3536,
4709,
364,
2333,
2207,
5206,
18,
412,
476,
18,
3341,
19,
991,
15180,
19,
16282,
19,
4449,
25,
3536,
365,
18,
5609,
18,
14407,
1733,
2668,
5784,
812,
2187,
296,
21668,
6134,
1081,
273,
365,
18,
5609,
18,
21668,
2939,
273,
15777,
2668,
80,
11475,
585,
16,
296,
380,
12619,
13,
1081,
18,
542,
2250,
12,
3980,
13,
365,
18,
11231,
5812,
12,
2603,
18,
588,
2250,
7675,
1467,
16,
5045,
2787,
13,
1081,
18,
588,
2250,
7675,
542,
5359,
2668,
3389,
301,
18,
5830,
6134,
365,
18,
11231,
5812,
12,
2603,
18,
588,
2250,
7675,
1467,
16,
5045,
2787,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
return item.name
|
return item.name.lower()
|
def sort_key(self, item): return item.name
|
267ac422a3cec89d0e7be5dfb502a630bc66500e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/267ac422a3cec89d0e7be5dfb502a630bc66500e/itemlist.py
|
[
1,
8585,
326,
22398,
316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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1524,
67,
856,
12,
2890,
16,
761,
4672,
327,
761,
18,
529,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if title and title_prefix_len: edition['title'] = title[title_prefix_len:] edition['title_prefix'] = title[:title_prefix_len] else: edition['title'] = title
|
edition['title'] = title
|
def read_title(fields): if '245' not in fields: return {}
|
24084a1dff4045db3947d685f4667ee1e4ec4f4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/24084a1dff4045db3947d685f4667ee1e4ec4f4b/build_record.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2649,
12,
2821,
4672,
309,
296,
3247,
25,
11,
486,
316,
1466,
30,
327,
2618,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
855,
67,
2649,
12,
2821,
4672,
309,
296,
3247,
25,
11,
486,
316,
1466,
30,
327,
2618,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
g['BINDIR'] = os.path.dirname(os.path.abspath(sys.executable))
|
g['BINDIR'] = os.path.dirname(os.path.realpath(sys.executable))
|
def _init_nt(): """Initialize the module as appropriate for NT""" g = {} # set basic install directories g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1) g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1) # XXX hmmm.. a normal install puts include files here g['INCLUDEPY'] = get_python_inc(plat_specific=0) g['SO'] = '.pyd' g['EXE'] = ".exe" g['VERSION'] = get_python_version().replace(".", "") g['BINDIR'] = os.path.dirname(os.path.abspath(sys.executable)) global _config_vars _config_vars = g
|
6f09ea893713808934d21cf56eeddbf4f51a3fcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/6f09ea893713808934d21cf56eeddbf4f51a3fcb/sysconfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
496,
13332,
3536,
7520,
326,
1605,
487,
5505,
364,
20064,
8395,
314,
273,
2618,
468,
444,
5337,
3799,
6402,
314,
3292,
14484,
1639,
882,
3546,
273,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
20,
16,
4529,
67,
2941,
33,
21,
13,
314,
3292,
12615,
14484,
1639,
882,
3546,
273,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
21,
16,
4529,
67,
2941,
33,
21,
13,
225,
468,
11329,
366,
7020,
81,
838,
279,
2212,
3799,
8200,
2341,
1390,
2674,
314,
3292,
26003,
16235,
3546,
273,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
13,
225,
314,
3292,
3584,
3546,
273,
2418,
2074,
72,
11,
314,
3292,
2294,
41,
3546,
273,
3552,
14880,
6,
314,
3292,
5757,
3546,
273,
336,
67,
8103,
67,
1589,
7675,
2079,
2932,
1199,
16,
1408,
13,
314,
3292,
2708,
7937,
3546,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
7688,
803,
12,
9499,
18,
17751,
3719,
225,
2552,
389,
1425,
67,
4699,
389,
1425,
67,
4699,
273,
314,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
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,
2738,
67,
496,
13332,
3536,
7520,
326,
1605,
487,
5505,
364,
20064,
8395,
314,
273,
2618,
468,
444,
5337,
3799,
6402,
314,
3292,
14484,
1639,
882,
3546,
273,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
20,
16,
4529,
67,
2941,
33,
21,
13,
314,
3292,
12615,
14484,
1639,
882,
3546,
273,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
21,
16,
4529,
67,
2941,
33,
21,
13,
225,
468,
11329,
366,
7020,
81,
838,
279,
2212,
3799,
8200,
2341,
1390,
2674,
314,
3292,
26003,
16235,
3546,
273,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
13,
225,
314,
3292,
3584,
3546,
273,
2418,
2074,
72,
11,
2
] |
"""Gets charset out of content-type
|
"""Get charset out of content-type
|
def getCharset(content_type, default="UTF-8"): """Gets charset out of content-type >>> getCharset('text/xml; charset=latin-1') 'latin-1' >>> getCharset('text/xml; charset=yada-yada') 'yada-yada' >>> getCharset('text/xml; charset=yada-yada; fo=ba') 'yada-yada' >>> getCharset('text/plain') 'UTF-8' """ parts = content_type.split(";") if len(parts) == 0: return default stripped_parts = [part.strip() for part in parts] charsets = [part for part in stripped_parts if part.startswith("charset=")] if len(charsets) == 0: return default return charsets[0].split("=")[1]
|
8860b27e6332684ffe49ef3637e3d3060bb143d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8860b27e6332684ffe49ef3637e3d3060bb143d6/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30428,
12,
1745,
67,
723,
16,
805,
1546,
5159,
17,
28,
6,
4672,
3536,
967,
4856,
596,
434,
913,
17,
723,
225,
4080,
30428,
2668,
955,
19,
2902,
31,
4856,
33,
26578,
17,
21,
6134,
296,
26578,
17,
21,
11,
225,
4080,
30428,
2668,
955,
19,
2902,
31,
4856,
33,
93,
16524,
17,
93,
16524,
6134,
296,
93,
16524,
17,
93,
16524,
11,
225,
4080,
30428,
2668,
955,
19,
2902,
31,
4856,
33,
93,
16524,
17,
93,
16524,
31,
18261,
33,
12124,
6134,
296,
93,
16524,
17,
93,
16524,
11,
225,
4080,
30428,
2668,
955,
19,
7446,
6134,
296,
5159,
17,
28,
11,
225,
3536,
2140,
273,
913,
67,
723,
18,
4939,
2932,
4868,
13,
309,
562,
12,
6019,
13,
422,
374,
30,
327,
805,
225,
13300,
67,
6019,
273,
306,
2680,
18,
6406,
1435,
364,
1087,
316,
2140,
65,
225,
1149,
4424,
273,
306,
2680,
364,
1087,
316,
13300,
67,
6019,
309,
1087,
18,
17514,
1918,
2932,
9999,
1546,
25887,
225,
309,
562,
12,
3001,
4424,
13,
422,
374,
30,
327,
805,
225,
327,
1149,
4424,
63,
20,
8009,
4939,
2932,
1546,
25146,
21,
65,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
30428,
12,
1745,
67,
723,
16,
805,
1546,
5159,
17,
28,
6,
4672,
3536,
967,
4856,
596,
434,
913,
17,
723,
225,
4080,
30428,
2668,
955,
19,
2902,
31,
4856,
33,
26578,
17,
21,
6134,
296,
26578,
17,
21,
11,
225,
4080,
30428,
2668,
955,
19,
2902,
31,
4856,
33,
93,
16524,
17,
93,
16524,
6134,
296,
93,
16524,
17,
93,
16524,
11,
225,
4080,
30428,
2668,
955,
19,
2902,
31,
4856,
33,
93,
16524,
17,
93,
16524,
31,
18261,
33,
12124,
6134,
296,
93,
16524,
17,
93,
16524,
11,
225,
4080,
30428,
2668,
955,
19,
7446,
6134,
296,
5159,
17,
28,
11,
225,
3536,
2140,
273,
913,
67,
723,
18,
4939,
2932,
4868,
13,
309,
562,
12,
2
] |
('set_str2', [c_char_p, Base, RoundingMode]),
|
('set_str2', [ctypes.c_char_p, Base]),
|
def wrapped_f(*args): return f(*args)
|
02926928087f4afc97395e40ec8dfe22e86f83ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/02926928087f4afc97395e40ec8dfe22e86f83ce/pympfr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
74,
30857,
1968,
4672,
327,
284,
30857,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5805,
67,
74,
30857,
1968,
4672,
327,
284,
30857,
1968,
13,
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,
-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,
-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,
-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
] |
help="Number of iterations this workcenter has to do in the specified operation of the routing."), 'hour_nbr': fields.float('Number of Hours', required=True, help="Time in hours for this workcenter to achieve the operation of the specified routing."),
|
help="Number of iterations this work Center has to do in the specified operation of the routing."), 'hour_nbr': fields.float('Number of Hours', required=True, help="Time in hours for this work Center to achieve the operation of the specified routing."),
|
def on_change_product_cost(self, cr, uid, ids, product_id, context=None): if context is None: context = {} value = {}
|
c572dd7a4872ce82d06e9d92dd7f6699c3f493e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c572dd7a4872ce82d06e9d92dd7f6699c3f493e6/mrp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3427,
67,
5896,
67,
12398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
350,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
460,
273,
2618,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3427,
67,
5896,
67,
12398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
350,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
460,
273,
2618,
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,
-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,
-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,
-100,
-100
] |
'docutils_xml': DocutilsXmlStrategy,
|
'xml': DocutilsXmlStrategy,
|
def functional_strategies(): for name, Strategy in chain(builtin_writers.items(), pseudo_writers.items(), external_writers.items()): strategy = Strategy() yield name, Strategy
|
dd52830c95b212ee6c39330de34648a43a6dbee5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13745/dd52830c95b212ee6c39330de34648a43a6dbee5/strategies.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18699,
67,
701,
15127,
13332,
364,
508,
16,
19736,
316,
2687,
12,
24553,
67,
5363,
414,
18,
3319,
9334,
12454,
67,
5363,
414,
18,
3319,
9334,
3903,
67,
5363,
414,
18,
3319,
1435,
4672,
6252,
273,
19736,
1435,
2824,
508,
16,
19736,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18699,
67,
701,
15127,
13332,
364,
508,
16,
19736,
316,
2687,
12,
24553,
67,
5363,
414,
18,
3319,
9334,
12454,
67,
5363,
414,
18,
3319,
9334,
3903,
67,
5363,
414,
18,
3319,
1435,
4672,
6252,
273,
19736,
1435,
2824,
508,
16,
19736,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
JOIN (SELECT date, persongroups_id FROM SCREENING_farmer_groups_targeted sfgt
|
JOIN (SELECT date, persongroups_id FROM SCREENING_farmer_groups_targeted sfgt
|
def rule1(): rule = Rule.objects.all()[0] sql = """SELECT sc.id as object_id, b.district_id, sfgt.persongroups_id, sc.date FROM SCREENING_farmer_groups_targeted sfgt JOIN SCREENING sc ON sc.id = sfgt.screening_id JOIN (SELECT date, persongroups_id FROM SCREENING_farmer_groups_targeted sfgt JOIN SCREENING sc on sc.id = sfgt.screening_id GROUP BY date, persongroups_id HAVING COUNT(*) > 1) t ON t.date = sc.date and t.persongroups_id = sfgt.persongroups_id JOIN VILLAGE V ON V.id = sc.village_id JOIN BLOCK B ON B.id = V.block_id ORDER BY sfgt.persongroups_id, sc.date, sc.id""" new_errors = []; if cursor.execute(sql): rows = cursor.fetchall() cur = rows[0] for row in rows[1:]: if row[2] == cur[2] and row[3] == cur[3]: new_errors.append(Error(content_object1 = Screening.objects.get(pk=cur[0]), \ content_object2 = Screening.objects.get(pk=row[0]), \ district = District.objects.get(pk=row[1]), \ rule = rule)) else: cur = row; old_errors = list(Error.objects.filter(rule = rule)) syncErrors(new_errors, old_errors)
|
2487fa33a84bcb01a99cd10843840b195d544fdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/2487fa33a84bcb01a99cd10843840b195d544fdb/dashboard_error_cron.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1720,
21,
13332,
1720,
273,
6781,
18,
6911,
18,
454,
1435,
63,
20,
65,
1847,
273,
3536,
4803,
888,
18,
350,
487,
733,
67,
350,
16,
324,
18,
22602,
67,
350,
16,
272,
2137,
88,
18,
10422,
932,
656,
87,
67,
350,
16,
888,
18,
712,
4571,
348,
5458,
1157,
1360,
67,
74,
4610,
264,
67,
4650,
67,
3299,
329,
272,
2137,
88,
7645,
348,
5458,
1157,
1360,
888,
6229,
888,
18,
350,
273,
272,
2137,
88,
18,
9252,
310,
67,
350,
7645,
261,
4803,
1509,
16,
13508,
932,
656,
87,
67,
350,
4571,
348,
5458,
1157,
1360,
67,
74,
4610,
264,
67,
4650,
67,
3299,
329,
272,
2137,
88,
7645,
348,
5458,
1157,
1360,
888,
603,
888,
18,
350,
273,
272,
2137,
88,
18,
9252,
310,
67,
350,
13839,
6953,
1509,
16,
13508,
932,
656,
87,
67,
350,
670,
27882,
12666,
24099,
405,
404,
13,
268,
6229,
268,
18,
712,
273,
888,
18,
712,
471,
268,
18,
10422,
932,
656,
87,
67,
350,
273,
272,
2137,
88,
18,
10422,
932,
656,
87,
67,
350,
7645,
776,
15125,
2833,
776,
6229,
776,
18,
350,
273,
888,
18,
90,
737,
410,
67,
350,
7645,
14073,
605,
6229,
605,
18,
350,
273,
776,
18,
2629,
67,
350,
10205,
6953,
272,
2137,
88,
18,
10422,
932,
656,
87,
67,
350,
16,
888,
18,
712,
16,
888,
18,
350,
8395,
225,
394,
67,
4324,
273,
5378,
31,
309,
3347,
18,
8837,
12,
4669,
4672,
2595,
273,
3347,
18,
5754,
454,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1720,
21,
13332,
1720,
273,
6781,
18,
6911,
18,
454,
1435,
63,
20,
65,
1847,
273,
3536,
4803,
888,
18,
350,
487,
733,
67,
350,
16,
324,
18,
22602,
67,
350,
16,
272,
2137,
88,
18,
10422,
932,
656,
87,
67,
350,
16,
888,
18,
712,
4571,
348,
5458,
1157,
1360,
67,
74,
4610,
264,
67,
4650,
67,
3299,
329,
272,
2137,
88,
7645,
348,
5458,
1157,
1360,
888,
6229,
888,
18,
350,
273,
272,
2137,
88,
18,
9252,
310,
67,
350,
7645,
261,
4803,
1509,
16,
13508,
932,
656,
87,
67,
350,
4571,
348,
5458,
1157,
1360,
67,
74,
4610,
264,
67,
4650,
67,
3299,
329,
272,
2137,
88,
7645,
348,
5458,
1157,
1360,
888,
603,
888,
2
] |
if not self.child:
|
if hasattr(self,'child'):
|
def kill(self, signal=15): global __all_childapps__
|
086351ef0450d469d3b9b7b46f2c5be20c904cd9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/086351ef0450d469d3b9b7b46f2c5be20c904cd9/childapp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
12,
2890,
16,
4277,
33,
3600,
4672,
2552,
1001,
454,
67,
3624,
11411,
972,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
16,
4277,
33,
3600,
4672,
2552,
1001,
454,
67,
3624,
11411,
972,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.execCmd("rm '%s'" % string.join(absNames, ' '))
|
self.execCmd("rm -rf '%s'" % string.join(absNames, ' '))
|
def deleteItems(self, names): absNames = [] for name in names: absNames.append(self.resourcepath + '/' +name) self.execCmd("rm '%s'" % string.join(absNames, ' '))
|
41c8ca89d9b33fa9cd0c4288fc9effa21db5d761 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/41c8ca89d9b33fa9cd0c4288fc9effa21db5d761/SSHExplorer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
3126,
12,
2890,
16,
1257,
4672,
2417,
1557,
273,
5378,
364,
508,
316,
1257,
30,
2417,
1557,
18,
6923,
12,
2890,
18,
3146,
803,
397,
2023,
397,
529,
13,
365,
18,
4177,
5931,
2932,
8864,
1995,
87,
4970,
738,
533,
18,
5701,
12,
5113,
1557,
16,
296,
296,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1430,
3126,
12,
2890,
16,
1257,
4672,
2417,
1557,
273,
5378,
364,
508,
316,
1257,
30,
2417,
1557,
18,
6923,
12,
2890,
18,
3146,
803,
397,
2023,
397,
529,
13,
365,
18,
4177,
5931,
2932,
8864,
1995,
87,
4970,
738,
533,
18,
5701,
12,
5113,
1557,
16,
296,
296,
3719,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def registerTimerCbFun(self, timerCbFun): self.__timerCbFuns.append(timerCbFun)
|
def registerTimerCbFun(self, timerCbFun, tickInterval=1.0): self.__timerCallables.append(TimerCallable(timerCbFun, tickInterval))
|
def registerTimerCbFun(self, timerCbFun): self.__timerCbFuns.append(timerCbFun)
|
df20074873bcf69ba59049cf2dcc13cf17c8f977 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/587/df20074873bcf69ba59049cf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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1744,
6777,
15237,
22783,
12,
2890,
16,
5441,
15237,
22783,
4672,
365,
16186,
12542,
15237,
22783,
87,
18,
6923,
12,
12542,
15237,
22783,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else:
|
elif S_ISDIR(entry.filemode):
|
def __getDirectoryContents(self,path): """ Returns a dictionary containing all of the contents of a directory. This includes the metadata associated to files (replicas, size, guid, status) and the subdirectories found. """ # First check that the directory exists, this res = self.exists(path) if not res['OK']: return res if not res['Value']['Successful'].has_key(path): return S_ERROR('__getDirectoryContents: There was an error accessing the supplied path') if not res['Value']['Successful'][path]: return S_ERROR('__getDirectoryContents: There supplied path does not exist')
|
cff124c80101a729006f0324d8648c6b90cbff8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/cff124c80101a729006f0324d8648c6b90cbff8a/LcgFileCatalogClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2853,
6323,
12,
2890,
16,
803,
4672,
3536,
2860,
279,
3880,
4191,
777,
434,
326,
2939,
434,
279,
1867,
18,
1220,
6104,
326,
1982,
3627,
358,
1390,
261,
266,
10528,
16,
963,
16,
9875,
16,
1267,
13,
471,
326,
31220,
1392,
18,
3536,
468,
5783,
866,
716,
326,
1867,
1704,
16,
333,
400,
273,
365,
18,
1808,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
21712,
14277,
29489,
5332,
67,
856,
12,
803,
4672,
327,
348,
67,
3589,
2668,
972,
588,
2853,
6323,
30,
6149,
1703,
392,
555,
19531,
326,
4580,
589,
6134,
309,
486,
400,
3292,
620,
21712,
14277,
3546,
63,
803,
14542,
327,
348,
67,
3589,
2668,
972,
588,
2853,
6323,
30,
6149,
4580,
589,
1552,
486,
1005,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
777,
434,
326,
2939,
434,
279,
1867,
18,
1220,
6104,
326,
1982,
3627,
358,
1390,
261,
266,
10528,
16,
963,
16,
9875,
16,
1267,
13,
471,
326,
31220,
1392,
18,
3536,
468,
5783,
866,
716,
326,
1867,
1704,
16,
333,
400,
273,
365,
18,
1808,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
21712,
14277,
29489,
5332,
67,
856,
12,
803,
4672,
327,
348,
67,
3589,
2668,
972,
588,
2853,
6323,
30,
6149,
1703,
392,
555,
19531,
326,
4580,
589,
6134,
309,
486,
400,
3292,
620,
21712,
14277,
3546,
63,
803,
14542,
327,
348,
67,
2
] |
xdata = l[0].get_xdata() ydata = l[0].get_ydata()
|
if len(l) == 3: a = array([l[0].get_ydata()[0], l[1].get_ydata()[0], l[2].get_ydata()[0]]) a = a.argsort() n = a[1] else: n = 0 xdata = l[n].get_xdata() ydata = l[n].get_ydata()
|
def fitdata(funcs, ax = None, showguess = False, *args, **kwargs): """Force fitting of a function to graphed data Parameters ---------- funcs : [list] list of the fit functions ax : [axis] axis to fit (if none the current axis is used. All the additional *args and **kwargs are passed onto the fit class (see fit.__init__ for details). Returns ------- "fit" Object with result. """ if ax is None: l = pylab.gca().lines else: l = ax.lines if len(l) == 0: print "No data on graph" return None xdata = l[0].get_xdata() ydata = l[0].get_ydata() f = fit(x = xdata, y = ydata, funcs = funcs, *args, **kwargs) f.go() # Now plot the results pylab.hold('on') if showguess: x, y = f.evalfitfunc(nxpts = 200, p = f.guess, x = xdata) pylab.plot(x, y, 'r-') x, y = f.evalfitfunc(nxpts = 200, x = xdata) pylab.plot(x, y, 'g-') return f
|
1f300cac329655a6dc7386bd14cd6bfaecbbfea4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/1f300cac329655a6dc7386bd14cd6bfaecbbfea4/fit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4845,
892,
12,
17728,
16,
1740,
273,
599,
16,
2405,
20885,
273,
1083,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
10997,
23591,
434,
279,
445,
358,
2667,
329,
501,
225,
7012,
12181,
15630,
565,
294,
306,
1098,
65,
666,
434,
326,
4845,
4186,
1740,
4202,
294,
306,
4890,
65,
2654,
358,
4845,
261,
430,
6555,
326,
783,
2654,
353,
1399,
18,
225,
4826,
326,
3312,
380,
1968,
471,
2826,
4333,
854,
2275,
10170,
326,
4845,
667,
261,
5946,
4845,
16186,
2738,
972,
364,
3189,
2934,
225,
2860,
18365,
225,
315,
7216,
6,
1033,
598,
563,
18,
3536,
225,
309,
1740,
353,
599,
30,
328,
273,
2395,
7411,
18,
75,
5353,
7675,
3548,
469,
30,
328,
273,
1740,
18,
3548,
225,
309,
562,
12,
80,
13,
422,
374,
30,
1172,
315,
2279,
501,
603,
2667,
6,
327,
599,
565,
309,
562,
12,
80,
13,
422,
890,
30,
279,
273,
526,
3816,
80,
63,
20,
8009,
588,
67,
93,
892,
1435,
63,
20,
6487,
328,
63,
21,
8009,
588,
67,
93,
892,
1435,
63,
20,
6487,
328,
63,
22,
8009,
588,
67,
93,
892,
1435,
63,
20,
65,
5717,
279,
273,
279,
18,
1968,
499,
1435,
290,
273,
279,
63,
21,
65,
469,
30,
290,
273,
374,
225,
25363,
273,
328,
63,
82,
8009,
588,
67,
92,
892,
1435,
29175,
273,
328,
63,
82,
8009,
588,
67,
93,
892,
1435,
225,
284,
273,
4845,
12,
92,
273,
25363,
16,
677,
273,
29175,
16,
15630,
273,
15630,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4845,
892,
12,
17728,
16,
1740,
273,
599,
16,
2405,
20885,
273,
1083,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
10997,
23591,
434,
279,
445,
358,
2667,
329,
501,
225,
7012,
12181,
15630,
565,
294,
306,
1098,
65,
666,
434,
326,
4845,
4186,
1740,
4202,
294,
306,
4890,
65,
2654,
358,
4845,
261,
430,
6555,
326,
783,
2654,
353,
1399,
18,
225,
4826,
326,
3312,
380,
1968,
471,
2826,
4333,
854,
2275,
10170,
326,
4845,
667,
261,
5946,
4845,
16186,
2738,
972,
364,
3189,
2934,
225,
2860,
18365,
225,
315,
7216,
6,
1033,
598,
563,
18,
3536,
225,
309,
1740,
353,
599,
30,
328,
273,
2395,
7411,
18,
75,
5353,
7675,
3548,
469,
30,
328,
273,
1740,
2
] |
universe = sage.categories.all.Objects()) return self._decomp
|
universe = cat.Objects())
|
def decomposition(self): r""" Returns the Dirichlet groups of prime power modulus corresponding to primes dividing modulus.
|
9c9051916e82d8e6549f10cbafc69b92d5f2a89f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9c9051916e82d8e6549f10cbafc69b92d5f2a89f/dirichlet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26288,
12,
2890,
4672,
436,
8395,
2860,
326,
8446,
1354,
1810,
3252,
434,
17014,
7212,
24770,
4656,
358,
846,
4485,
3739,
10415,
24770,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26288,
12,
2890,
4672,
436,
8395,
2860,
326,
8446,
1354,
1810,
3252,
434,
17014,
7212,
24770,
4656,
358,
846,
4485,
3739,
10415,
24770,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not path: return path = norm_path(path) if path not in sys.path and (os.path.exists(path) or force):
|
if _should_be_added(path, force):
|
def add_path(path, to_beginning=False, force=False): if not path: return path = norm_path(path) if path not in sys.path and (os.path.exists(path) or force): if to_beginning: sys.path.insert(0, path) else: sys.path.append(path)
|
94bbe917c2c4dfd733d4240e01d56a21b2abe07a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/94bbe917c2c4dfd733d4240e01d56a21b2abe07a/pythonpathsetter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
803,
12,
803,
16,
358,
67,
10086,
2093,
33,
8381,
16,
2944,
33,
8381,
4672,
309,
389,
13139,
67,
2196,
67,
9665,
12,
803,
16,
2944,
4672,
309,
358,
67,
10086,
2093,
30,
2589,
18,
803,
18,
6387,
12,
20,
16,
589,
13,
469,
30,
2589,
18,
803,
18,
6923,
12,
803,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
33,
8381,
16,
2944,
33,
8381,
4672,
309,
389,
13139,
67,
2196,
67,
9665,
12,
803,
16,
2944,
4672,
309,
358,
67,
10086,
2093,
30,
2589,
18,
803,
18,
6387,
12,
20,
16,
589,
13,
469,
30,
2589,
18,
803,
18,
6923,
12,
803,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.cflags = ['/MDd', '/Z7']
|
self.cflags = ['/MDd', '/Z7', '/Od']
|
def __init__(self, cc=None): self.cc = 'cl.exe'
|
276db6f60b9b453dae899e25e7442f2004392faa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/276db6f60b9b453dae899e25e7442f2004392faa/windows.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4946,
33,
7036,
4672,
365,
18,
952,
273,
296,
830,
18,
14880,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
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,
4946,
33,
7036,
4672,
365,
18,
952,
273,
296,
830,
18,
14880,
11,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
releasesTmpFilePath = os.path.join( tmp, "releases.cfg" )
|
releasesTmpFilePath = os.path.join( tmpPath, "releases.cfg" )
|
def tagSVNReleases( mainCFG, taggedReleases ): global cliParams releasesCFG = mainCFG[ 'Releases' ] cmtCompatiblePackages = mainCFG.getOption( 'CMTCompatiblePackages', [] ) autoTarPackages = mainCFG.getOption( 'AutoTarPackages', [] ) for releaseVersion in cliParams.releasesToBuild: if not cliParams.forceSVNLinks and releaseVersion in taggedReleases: gLogger.info( "Release %s is already tagged, skipping" % releaseVersion ) continue if releaseVersion not in releasesCFG.listSections(): gLogger.error( "Release %s not defined in releases.cfg" % releaseVersion ) continue releaseSVNPath = "%s/tags/%s" % ( cliParams.svnRoot, releaseVersion ) if releaseVersion not in taggedReleases: gLogger.info( "Creating global release dir %s" % releaseVersion ) svnCmd = "svn -m 'Release %s' mkdir '%s'" % ( releaseVersion, releaseSVNPath ) result = Subprocess.shellCall( 300, svnCmd ) if not result[ 'OK' ]: gLogger.error( "Error while generating release tag", result[ 'Message' ] ) sys.exit( 1 ) exitStatus, stdData, errData = result[ 'Value' ] if exitStatus: gLogger.error( "Error while generating release tag", "\n".join( [ stdData, errData ] ) ) sys.exit( 1 ) svnLinks = [] packages = releasesCFG[ releaseVersion ].listOptions() packages.sort() for p in packages: if p not in autoTarPackages: continue version = releasesCFG[ releaseVersion ].getOption( p, "" ) versionPath = getVersion( p, version, cmtCompatiblePackages ) svnLinks.append( "%s http://svnweb.cern.ch/guest/dirac/%s/%s" % ( p, p, versionPath ) ) tmpPath = tempfile.mkdtemp() fd = open( os.path.join( tmpPath, "extProp" ), "wb" ) fd.write( "%s\n" % "\n".join( svnLinks ) ) fd.close() svnCmds = [] checkOutPath = os.path.join( tmpPath, "svnco" ) releasesFilePath = os.path.join( tmpPath, "releases.cfg" ) releasesTmpFilePath = os.path.join( tmp, "releases.cfg" ) releasesFinalFilePath = os.path.join( checkOutPath, "releases.cfg" ) if not mainCFG.writeToFile( releasesTmpFilePath ): gLogger.error( "Could not write releases.cfg file to %s" % releasesTmpFilePath ) svnCmds.append( "svn co -N '%s' '%s'" % ( releaseSVNPath, checkOutPath ) ) svnCmds.append( "mv '%s' '%s'" % ( releasesTmpFilePath, releasesFinalFilePath ) ) svnCmds.append( "svn add '%s'" % releasesFinalFilePath ) svnCmds.append( "svn propset svn:externals -F '%s/extProp' '%s'" % ( tmpPath, checkOutPath ) ) svnCmds.append( "svn ci -m 'Release %s svn:externals' '%s'" % ( releaseVersion, checkOutPath ) ) gLogger.info( "Creating svn:externals in %s..." % releaseVersion ) for cmd in svnCmds: result = Subprocess.shellCall( 900, cmd ) if not result[ 'OK' ]: gLogger.error( "Error while adding externals to tag", result[ 'Message' ] ) sys.exit( 1 ) exitStatus, stdData, errData = result[ 'Value' ] if exitStatus: gLogger.error( "Error while adding externals to tag", "\n".join( [ stdData, errData ] ) ) sys.exit( 1 ) os.system( "rm -rf '%s'" % tmpPath )
|
09619d2424c75cac4f091eaa5f9040ad5f8400ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/09619d2424c75cac4f091eaa5f9040ad5f8400ca/dirac-distribution.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
23927,
50,
26217,
12,
2774,
19727,
16,
12503,
26217,
262,
30,
2552,
4942,
1370,
225,
14824,
19727,
273,
2774,
19727,
63,
296,
26217,
11,
308,
276,
1010,
14599,
11425,
273,
2774,
19727,
18,
588,
1895,
12,
296,
39,
6152,
14599,
11425,
2187,
5378,
262,
225,
3656,
20464,
11425,
273,
2774,
19727,
18,
588,
1895,
12,
296,
4965,
20464,
11425,
2187,
5378,
262,
225,
364,
3992,
1444,
316,
4942,
1370,
18,
28416,
774,
3116,
30,
309,
486,
4942,
1370,
18,
5734,
23927,
50,
7100,
471,
3992,
1444,
316,
12503,
26217,
30,
314,
3328,
18,
1376,
12,
315,
7391,
738,
87,
353,
1818,
12503,
16,
14195,
6,
738,
3992,
1444,
262,
1324,
309,
3992,
1444,
486,
316,
14824,
19727,
18,
1098,
15965,
13332,
314,
3328,
18,
1636,
12,
315,
7391,
738,
87,
486,
2553,
316,
14824,
18,
7066,
6,
738,
3992,
1444,
262,
1324,
3992,
23927,
50,
743,
273,
2213,
87,
19,
4156,
5258,
87,
6,
738,
261,
4942,
1370,
18,
31505,
2375,
16,
3992,
1444,
262,
309,
3992,
1444,
486,
316,
12503,
26217,
30,
314,
3328,
18,
1376,
12,
315,
11092,
2552,
3992,
1577,
738,
87,
6,
738,
3992,
1444,
262,
5893,
82,
5931,
273,
315,
31505,
300,
81,
296,
7391,
738,
87,
11,
6535,
1995,
87,
4970,
738,
261,
3992,
1444,
16,
3992,
23927,
50,
743,
262,
563,
273,
2592,
2567,
18,
10304,
1477,
12,
11631,
16,
5893,
82,
5931,
262,
309,
486,
563,
63,
296,
3141,
11,
308,
30,
314,
3328,
18,
1636,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
23927,
50,
26217,
12,
2774,
19727,
16,
12503,
26217,
262,
30,
2552,
4942,
1370,
225,
14824,
19727,
273,
2774,
19727,
63,
296,
26217,
11,
308,
276,
1010,
14599,
11425,
273,
2774,
19727,
18,
588,
1895,
12,
296,
39,
6152,
14599,
11425,
2187,
5378,
262,
225,
3656,
20464,
11425,
273,
2774,
19727,
18,
588,
1895,
12,
296,
4965,
20464,
11425,
2187,
5378,
262,
225,
364,
3992,
1444,
316,
4942,
1370,
18,
28416,
774,
3116,
30,
309,
486,
4942,
1370,
18,
5734,
23927,
50,
7100,
471,
3992,
1444,
316,
12503,
26217,
30,
314,
3328,
18,
1376,
12,
315,
7391,
738,
87,
353,
1818,
12503,
16,
14195,
6,
738,
3992,
1444,
262,
1324,
309,
3992,
1444,
486,
316,
14824,
19727,
2
] |
self.__format_results("\n".join(results))
|
def execute_mysql(self, build, num_threads, max_time, read_only, args): bin = os.path.join(self.autodir, 'deps/mysql/mysql/bin') data = os.path.join(self.autodir, 'deps/mysql/mysql/var') log = os.path.join(self.debugdir, 'mysql.log')
|
a3a72e56e8f48a515c0a2ce3a47d2992c6b7bb4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/a3a72e56e8f48a515c0a2ce3a47d2992c6b7bb4d/sysbench.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
12527,
12,
2890,
16,
1361,
16,
818,
67,
12495,
16,
943,
67,
957,
16,
855,
67,
3700,
16,
833,
4672,
4158,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5854,
369,
481,
16,
296,
14877,
19,
12527,
19,
12527,
19,
4757,
6134,
501,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5854,
369,
481,
16,
296,
14877,
19,
12527,
19,
12527,
19,
1401,
6134,
613,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4148,
1214,
16,
296,
12527,
18,
1330,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
326,
981,
30,
1652,
1836,
67,
12527,
12,
2890,
16,
1361,
16,
818,
67,
12495,
16,
943,
67,
957,
16,
855,
67,
3700,
16,
833,
4672,
4158,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5854,
369,
481,
16,
296,
14877,
19,
12527,
19,
12527,
19,
4757,
6134,
501,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5854,
369,
481,
16,
296,
14877,
19,
12527,
19,
12527,
19,
1401,
6134,
613,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4148,
1214,
16,
296,
12527,
18,
1330,
6134,
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,
-100,
-100,
-100,
-100,
-100
] |
|
('medata-check', None,
|
('metadata-check', None,
|
def checking_metadata(self): """Callable used for the check sub-command.
|
637ec99689c690508a54561f0350368ac649bad4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/637ec99689c690508a54561f0350368ac649bad4/sdist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6728,
67,
4165,
12,
2890,
4672,
3536,
11452,
1399,
364,
326,
866,
720,
17,
3076,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
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,
6728,
67,
4165,
12,
2890,
4672,
3536,
11452,
1399,
364,
326,
866,
720,
17,
3076,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" The initialize step further initializes the Request by setting additional information in the _data dict, registering plugins,
|
"""The initialize step further initializes the Request by setting additional information in the ``data`` dict, registering plugins,
|
def initialize(self): """ The initialize step further initializes the Request by setting additional information in the _data dict, registering plugins, and entryparsers. """ data = self._request.getData() pyhttp = self._request.getHttp() config = self._request.getConfiguration()
|
2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
3536,
1986,
4046,
2235,
9271,
11643,
326,
1567,
635,
3637,
3312,
1779,
316,
326,
12176,
892,
10335,
2065,
16,
22845,
4799,
16,
471,
1241,
11104,
18,
3536,
501,
273,
365,
6315,
2293,
18,
588,
751,
1435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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
12,
2890,
4672,
3536,
1986,
4046,
2235,
9271,
11643,
326,
1567,
635,
3637,
3312,
1779,
316,
326,
12176,
892,
10335,
2065,
16,
22845,
4799,
16,
471,
1241,
11104,
18,
3536,
501,
273,
365,
6315,
2293,
18,
588,
751,
1435,
2395,
2505,
273,
365,
6315,
2293,
18,
588,
2940,
1435,
642,
273,
365,
6315,
2293,
18,
588,
1750,
1435,
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,
-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,
-100,
-100,
-100,
-100,
-100
] |
status = os.spawnl(os.P_WAIT, commandpath)
|
status = os.spawnl(os.P_WAIT, commandpath, commandpath)
|
def check_state(state, interactive=True): if not state['good'] or not state['bad']: if (good or bad or skip or reset) and interactive: return if not state['good']: raise util.Abort(_('cannot bisect (no known good revisions)')) else: raise util.Abort(_('cannot bisect (no known bad revisions)')) return True
|
d43970a9007b77a3f7db6432c5876b6d50f58dfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/d43970a9007b77a3f7db6432c5876b6d50f58dfc/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2019,
12,
2019,
16,
12625,
33,
5510,
4672,
309,
486,
919,
3292,
19747,
3546,
578,
486,
919,
3292,
8759,
3546,
30,
309,
261,
19747,
578,
5570,
578,
2488,
578,
2715,
13,
471,
12625,
30,
327,
309,
486,
919,
3292,
19747,
3546,
30,
1002,
1709,
18,
13572,
24899,
2668,
12892,
27031,
261,
2135,
4846,
7494,
18325,
2506,
3719,
469,
30,
1002,
1709,
18,
13572,
24899,
2668,
12892,
27031,
261,
2135,
4846,
5570,
18325,
2506,
3719,
327,
1053,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
67,
2019,
12,
2019,
16,
12625,
33,
5510,
4672,
309,
486,
919,
3292,
19747,
3546,
578,
486,
919,
3292,
8759,
3546,
30,
309,
261,
19747,
578,
5570,
578,
2488,
578,
2715,
13,
471,
12625,
30,
327,
309,
486,
919,
3292,
19747,
3546,
30,
1002,
1709,
18,
13572,
24899,
2668,
12892,
27031,
261,
2135,
4846,
7494,
18325,
2506,
3719,
469,
30,
1002,
1709,
18,
13572,
24899,
2668,
12892,
27031,
261,
2135,
4846,
5570,
18325,
2506,
3719,
327,
1053,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'seqs' print seqs print 'outInfo' print outInfo print 'non_Seqs' print non_seqs
|
def perform(self, node, args, storage): print 'perform args' # get scan inputs n_steps = args[0]
|
aca8eb0e580ecd37383d9dca80329f63dca1bd6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/aca8eb0e580ecd37383d9dca80329f63dca1bd6e/scan.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
833,
16,
2502,
4672,
1172,
296,
16092,
833,
11,
468,
336,
4135,
4540,
290,
67,
8986,
273,
833,
63,
20,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
C{sort_order} is not C{None}, then sort according to its
|
C{sortorder} is not C{None}, then sort according to its
|
def _sort(self, docs, sort_order=None): """ Sort and filter a list of C{ObjDoc}s. In particular, if C{sort_order} is not C{None}, then sort according to its contents; otherwise, sort using L{_cmp_name}. If L{_show_private} is true, then filter out all private objects; otherwise, perform no filtering.
|
62ff4e473663c51d0a945a451e36120f11d9450a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/62ff4e473663c51d0a945a451e36120f11d9450a/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
12,
2890,
16,
3270,
16,
1524,
67,
1019,
33,
7036,
4672,
3536,
5928,
471,
1034,
279,
666,
434,
385,
95,
2675,
1759,
97,
87,
18,
225,
657,
6826,
16,
309,
385,
95,
29068,
97,
353,
486,
385,
95,
7036,
5779,
1508,
1524,
4888,
358,
2097,
2939,
31,
3541,
16,
1524,
1450,
511,
95,
67,
9625,
67,
529,
5496,
225,
971,
511,
95,
67,
4500,
67,
1152,
97,
353,
638,
16,
1508,
1034,
596,
777,
3238,
2184,
31,
3541,
16,
3073,
1158,
11346,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3804,
12,
2890,
16,
3270,
16,
1524,
67,
1019,
33,
7036,
4672,
3536,
5928,
471,
1034,
279,
666,
434,
385,
95,
2675,
1759,
97,
87,
18,
225,
657,
6826,
16,
309,
385,
95,
29068,
97,
353,
486,
385,
95,
7036,
5779,
1508,
1524,
4888,
358,
2097,
2939,
31,
3541,
16,
1524,
1450,
511,
95,
67,
9625,
67,
529,
5496,
225,
971,
511,
95,
67,
4500,
67,
1152,
97,
353,
638,
16,
1508,
1034,
596,
777,
3238,
2184,
31,
3541,
16,
3073,
1158,
11346,
18,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, direct_attributes, True, context)) subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, inverse_attributes, False, context))
|
if direct_attributes: subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, direct_attributes, True, context)) if inverse_attributes: subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, inverse_attributes, False, context))
|
def get_by_attribute(cls, attributes, context = None): """ Retrieve all `instances` from the data store that have the specified `attributes` and are of `rdf:type` of the resource class
|
746bbd0cef92a7515a400d3108d524b0c2b5f648 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13812/746bbd0cef92a7515a400d3108d524b0c2b5f648/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1637,
67,
4589,
12,
6429,
16,
1677,
16,
819,
273,
599,
4672,
3536,
10708,
777,
1375,
10162,
68,
628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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1637,
67,
4589,
12,
6429,
16,
1677,
16,
819,
273,
599,
4672,
3536,
10708,
777,
1375,
10162,
68,
628,
326,
501,
1707,
716,
1240,
326,
1269,
1375,
4350,
68,
471,
854,
434,
1375,
19299,
30,
723,
68,
434,
326,
1058,
667,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if wikidb is None: api_helper = get_api_helper(desc_url) if api_helper is None:
|
api_helper = get_api_helper(desc_url) if api_helper is None: if wikidb is None:
|
def getContributors(self, name, wikidb=None): """Return list of image contributors @param name: image name without namespace (e.g. without "Image:") @type name: unicode @param wikidb: WikiDB instance (optional) @type wikidb: object @returns: list of contributors @rtype: [unicode] or None """ desc_url = self.getDescriptionURL(name) if desc_url is None: return None if wikidb is None: api_helper = get_api_helper(desc_url) if api_helper is None: return None wikidb = WikiDB(api_helper=api_helper) title = 'Image:%s' % name raw = wikidb.getRawArticle(title) if not raw: return None def isUserLink(node): return isinstance(node, parser.NamespaceLink) and node.namespace == namespace.NS_USER # best method: find Information template, parse Author argument: template = find_template(raw, 'Information') if template is not None: author = get_template_args(template).get('Author', '').strip() if author: userlinks = list(uparser.parseString('', raw=author, wikidb=wikidb, ).filter(isUserLink)) if userlinks: return [userlinks[0].target] else: return [author] # second-to-best method: parse article, look for any User: link: users = [ u.target for u in uparser.parseString(title, raw=raw, wikidb=wikidb, ).filter(isUserLink) ] if users: return users # worst method: return authors via history: return wikidb.getAuthors(title)
|
2f5f7ba333de99a6af911835aa96a3f263fb2f5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/2f5f7ba333de99a6af911835aa96a3f263fb2f5d/mwapidb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
442,
665,
13595,
12,
2890,
16,
508,
16,
341,
1766,
350,
70,
33,
7036,
4672,
3536,
990,
666,
434,
1316,
13608,
13595,
225,
632,
891,
508,
30,
1316,
508,
2887,
1981,
261,
73,
18,
75,
18,
2887,
315,
2040,
2773,
13,
632,
723,
508,
30,
5252,
225,
632,
891,
341,
1766,
350,
70,
30,
28268,
2290,
791,
261,
10444,
13,
632,
723,
341,
1766,
350,
70,
30,
733,
225,
632,
6154,
30,
666,
434,
13608,
13595,
632,
86,
723,
30,
306,
9124,
65,
578,
599,
3536,
225,
3044,
67,
718,
273,
365,
18,
588,
3291,
1785,
12,
529,
13,
309,
3044,
67,
718,
353,
599,
30,
327,
599,
377,
1536,
67,
4759,
273,
336,
67,
2425,
67,
4759,
12,
5569,
67,
718,
13,
309,
1536,
67,
4759,
353,
599,
30,
309,
341,
1766,
350,
70,
353,
599,
30,
327,
599,
341,
1766,
350,
70,
273,
28268,
2290,
12,
2425,
67,
4759,
33,
2425,
67,
4759,
13,
225,
2077,
273,
296,
2040,
5319,
87,
11,
738,
508,
225,
1831,
273,
341,
1766,
350,
70,
18,
588,
4809,
7880,
12,
2649,
13,
309,
486,
1831,
30,
327,
599,
225,
1652,
29302,
2098,
12,
2159,
4672,
327,
1549,
12,
2159,
16,
2082,
18,
3402,
2098,
13,
471,
756,
18,
4937,
422,
1981,
18,
3156,
67,
4714,
225,
468,
3796,
707,
30,
1104,
15353,
1542,
16,
1109,
6712,
1237,
30,
1542,
273,
1104,
67,
3202,
12,
1899,
16,
296,
5369,
6134,
309,
1542,
353,
486,
599,
30,
2869,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
442,
665,
13595,
12,
2890,
16,
508,
16,
341,
1766,
350,
70,
33,
7036,
4672,
3536,
990,
666,
434,
1316,
13608,
13595,
225,
632,
891,
508,
30,
1316,
508,
2887,
1981,
261,
73,
18,
75,
18,
2887,
315,
2040,
2773,
13,
632,
723,
508,
30,
5252,
225,
632,
891,
341,
1766,
350,
70,
30,
28268,
2290,
791,
261,
10444,
13,
632,
723,
341,
1766,
350,
70,
30,
733,
225,
632,
6154,
30,
666,
434,
13608,
13595,
632,
86,
723,
30,
306,
9124,
65,
578,
599,
3536,
225,
3044,
67,
718,
273,
365,
18,
588,
3291,
1785,
12,
529,
13,
309,
3044,
67,
718,
353,
599,
30,
327,
599,
377,
1536,
67,
4759,
273,
336,
67,
2425,
67,
2
] |
self._map.pop(file.fileno())
|
self._map.clear()
|
def remove_handler(self, file): """Remove a handler for file.
|
04a1448feda26fc31294d57ea17d771d9b643819 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/04a1448feda26fc31294d57ea17d771d9b643819/pymplayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
4176,
12,
2890,
16,
585,
4672,
3536,
3288,
279,
1838,
364,
585,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
67,
4176,
12,
2890,
16,
585,
4672,
3536,
3288,
279,
1838,
364,
585,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
DirectFrame, (self,),
|
DirectFrame, (self.reparentFrame,),
|
def __init__(self, parent = aspect2d, **kw): # Inherits from DirectButton optiondefs = ( # List of items to display on the popup menu ('items', [], self.setItems), # Initial item to display on menu button # Can be an interger index or the same string as the button ('initialitem', None, INITOPT), # Amount of padding to place around popup button indicator ('popupMarkerBorder', (.1, .1), None), # Background color to use to highlight popup menu items ('highlightColor', (.5,.5,.5,1),None), # Alignment to use for text on popup menu button # Changing this breaks button layout ('text_align', TextNode.ALeft, None), # Remove press effect because it looks a bit funny ('pressEffect', 0, INITOPT), ) # Merge keyword options with default options self.defineoptions(kw, optiondefs) # Initialize superclasses DirectButton.__init__(self, parent) # This is created when you set the menu's items self.popupMenu = None self.selectedIndex = None # Record any user specified frame size self.initFrameSize = self['frameSize'] # Create a small rectangular marker to distinguish this button # as a popup menu button self.popupMarker = self.createcomponent( 'popupMarker', (), None, DirectFrame, (self,), frameSize = (-0.5, 0.5, -0.2, 0.2), scale = 0.4, relief = RAISED) # This needs to popup the menu too self.popupMarker.bind(B1PRESS, self.showPopupMenu) # Make popup marker have the same click sound self.popupMarker.guiItem.setSound( B1PRESS + self.popupMarker.guiId,self['clickSound']) # A big screen encompassing frame to catch the cancel clicks self.cancelFrame = self.createcomponent( 'cancelframe', (), None, DirectFrame, (self,), frameSize = (-1,1,-1,1), relief = None) self.cancelFrame.bind(B1PRESS, self.hidePopupMenu) # Default action on press is to show popup menu self.bind(B1PRESS, self.showPopupMenu) # Call option initialization functions self.initialiseoptions(DirectOptionMenu) # Need to call this since we explicitly set frame size self.resetFrameSize()
|
c5f0f39804767e32af47660628781f1cfd3fbd63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c5f0f39804767e32af47660628781f1cfd3fbd63/DirectOptionMenu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
9648,
22,
72,
16,
2826,
9987,
4672,
468,
657,
20038,
628,
9908,
3616,
1456,
12537,
273,
261,
468,
987,
434,
1516,
358,
2562,
603,
326,
10431,
3824,
7707,
3319,
2187,
4202,
5378,
16,
2398,
365,
18,
542,
3126,
3631,
468,
10188,
761,
358,
2562,
603,
3824,
3568,
468,
4480,
506,
392,
1554,
693,
770,
578,
326,
1967,
533,
487,
326,
3568,
7707,
6769,
1726,
2187,
599,
16,
6647,
12584,
15620,
3631,
468,
16811,
434,
4992,
358,
3166,
6740,
10431,
3568,
10664,
7707,
16086,
7078,
8107,
2187,
261,
18,
21,
16,
263,
21,
3631,
599,
3631,
468,
8977,
2036,
358,
999,
358,
8839,
10431,
3824,
1516,
7707,
15978,
2957,
2187,
261,
18,
25,
29257,
25,
29257,
25,
16,
21,
3631,
7036,
3631,
468,
17804,
358,
999,
364,
977,
603,
10431,
3824,
3568,
468,
1680,
18183,
333,
16217,
3568,
3511,
7707,
955,
67,
7989,
2187,
225,
3867,
907,
18,
1013,
73,
1222,
16,
599,
3631,
468,
3581,
11779,
5426,
2724,
518,
10192,
279,
2831,
9831,
18538,
7707,
1028,
12477,
2187,
377,
374,
16,
1850,
12584,
15620,
3631,
262,
468,
8964,
4932,
702,
598,
805,
702,
365,
18,
11255,
2116,
12,
9987,
16,
1456,
12537,
13,
468,
9190,
2240,
4701,
9908,
3616,
16186,
2738,
972,
12,
2890,
16,
982,
13,
468,
1220,
353,
2522,
1347,
1846,
444,
326,
3824,
1807,
1516,
365,
18,
16086,
4599,
273,
599,
365,
18,
8109,
1016,
273,
599,
468,
5059,
1281,
729,
1269,
2623,
963,
365,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
9648,
22,
72,
16,
2826,
9987,
4672,
468,
657,
20038,
628,
9908,
3616,
1456,
12537,
273,
261,
468,
987,
434,
1516,
358,
2562,
603,
326,
10431,
3824,
7707,
3319,
2187,
4202,
5378,
16,
2398,
365,
18,
542,
3126,
3631,
468,
10188,
761,
358,
2562,
603,
3824,
3568,
468,
4480,
506,
392,
1554,
693,
770,
578,
326,
1967,
533,
487,
326,
3568,
7707,
6769,
1726,
2187,
599,
16,
6647,
12584,
15620,
3631,
468,
16811,
434,
4992,
358,
3166,
6740,
10431,
3568,
10664,
7707,
16086,
7078,
8107,
2187,
261,
18,
21,
16,
263,
21,
3631,
599,
3631,
468,
8977,
2036,
358,
999,
358,
8839,
10431,
3824,
1516,
7707,
15978,
2957,
2187,
261,
2
] |
return "%s/site_icon.gif" % portal_url
|
portal_state = getMultiAdapter((self.context, self.request), name=u'plone_portal_state') if portal_state.is_rtl(): return "%s/rtl-site_icon.gif" % portal_url else: return "%s/site_icon.gif" % portal_url
|
def url(self): portal_url = getToolByName(self.context, 'portal_url')() return "%s/site_icon.gif" % portal_url
|
07003602c515ef362fd1cec7dbec2ce66d7e2ffc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12185/07003602c515ef362fd1cec7dbec2ce66d7e2ffc/icons.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
2890,
4672,
11899,
67,
718,
273,
336,
6364,
5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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
880,
12,
2890,
4672,
11899,
67,
718,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
296,
24386,
67,
718,
6134,
1435,
327,
2213,
87,
19,
4256,
67,
3950,
18,
13905,
6,
738,
11899,
67,
718,
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,
-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,
-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,
-100
] |
logger.notifyChannel('init', netsvc.LOG_INFO, "storing computed values of fields.function '%s'" % (k,))
|
logger.notifyChannel('orm', netsvc.LOG_INFO, "storing computed values of fields.function '%s'" % (k,))
|
def _update_store(self, cr, f, k): logger = netsvc.Logger() logger.notifyChannel('init', netsvc.LOG_INFO, "storing computed values of fields.function '%s'" % (k,)) ss = self._columns[k]._symbol_set update_query = 'UPDATE "%s" SET "%s"=%s WHERE id=%%s' % (self._table, k, ss[0]) cr.execute('select id from '+self._table) ids_lst = map(lambda x: x[0], cr.fetchall()) while ids_lst: iids = ids_lst[:40] ids_lst = ids_lst[40:] res = f.get(cr, self, iids, k, 1, {}) for key,val in res.items(): if f._multi: val = val[k] # if val is a many2one, just write the ID if type(val)==tuple: val = val[0] if (val<>False) or (type(val)<>bool): cr.execute(update_query, (ss[1](val), key))
|
ab41714295af23aa5c95790777fbe2e65dff8efa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ab41714295af23aa5c95790777fbe2e65dff8efa/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
2233,
12,
2890,
16,
4422,
16,
284,
16,
417,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
1194,
18,
12336,
2909,
2668,
535,
2187,
21954,
4227,
18,
4842,
67,
5923,
16,
315,
334,
6053,
8470,
924,
434,
1466,
18,
915,
1995,
87,
4970,
738,
261,
79,
16,
3719,
5202,
273,
365,
6315,
5112,
63,
79,
65,
6315,
7175,
67,
542,
1089,
67,
2271,
273,
296,
8217,
2213,
87,
6,
7855,
2213,
87,
6,
5095,
87,
4852,
612,
5095,
9,
87,
11,
738,
261,
2890,
6315,
2121,
16,
417,
16,
5202,
63,
20,
5717,
4422,
18,
8837,
2668,
4025,
612,
628,
15126,
2890,
6315,
2121,
13,
3258,
67,
16923,
273,
852,
12,
14661,
619,
30,
619,
63,
20,
6487,
4422,
18,
5754,
454,
10756,
1323,
3258,
67,
16923,
30,
277,
2232,
273,
3258,
67,
16923,
10531,
7132,
65,
3258,
67,
16923,
273,
3258,
67,
16923,
63,
7132,
26894,
400,
273,
284,
18,
588,
12,
3353,
16,
365,
16,
277,
2232,
16,
417,
16,
404,
16,
2618,
13,
364,
498,
16,
1125,
316,
400,
18,
3319,
13332,
309,
284,
6315,
7027,
30,
1244,
273,
1244,
63,
79,
65,
468,
309,
1244,
353,
279,
4906,
22,
476,
16,
2537,
1045,
326,
1599,
309,
618,
12,
1125,
13,
631,
8052,
30,
1244,
273,
1244,
63,
20,
65,
309,
261,
1125,
29667,
8381,
13,
578,
261,
723,
12,
1125,
13,
29667,
6430,
4672,
4422,
18,
8837,
12,
2725,
67,
2271,
16,
261,
1049,
63,
21,
29955,
1125,
3631,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
67,
2233,
12,
2890,
16,
4422,
16,
284,
16,
417,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
1194,
18,
12336,
2909,
2668,
535,
2187,
21954,
4227,
18,
4842,
67,
5923,
16,
315,
334,
6053,
8470,
924,
434,
1466,
18,
915,
1995,
87,
4970,
738,
261,
79,
16,
3719,
5202,
273,
365,
6315,
5112,
63,
79,
65,
6315,
7175,
67,
542,
1089,
67,
2271,
273,
296,
8217,
2213,
87,
6,
7855,
2213,
87,
6,
5095,
87,
4852,
612,
5095,
9,
87,
11,
738,
261,
2890,
6315,
2121,
16,
417,
16,
5202,
63,
20,
5717,
4422,
18,
8837,
2668,
4025,
612,
628,
15126,
2890,
6315,
2121,
13,
3258,
67,
16923,
273,
852,
12,
14661,
619,
30,
619,
2
] |
current_module, res, xml_id=data_id, mode=mode,
|
current_module, res, mode=mode,
|
fields_def = self.fields_get(cr, uid, context=context)
|
efd0cb9412db0c0bcc806b9b089c26c097a70bff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/efd0cb9412db0c0bcc806b9b089c26c097a70bff/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-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,
-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,
-100,
-100,
-100
] |
[(0.0, 0.0), (3.1415926535897931, 1.2246063538223773e-16)]
|
[(0.0, 0.0), (3.1415926535897931, 1.2246...e-16)]
|
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -- a function of one variable p1, p2 -- two points to refine between plot_points -- (default: 5) the minimal number of plot points. adaptive_recursion -- (default: 5) how many levels of recursion to go before giving up when doing adaptive refinement. Setting this to 0 disables adaptive refinement. adaptive_tolerance -- (default: 0.01) how large a difference should be before the adaptive refinement code considers it significant. See the documentation for plot() for more information. OUTPUT: list -- a list of points (x, f(x)) in the interval xrange, which aproximate the function f. TESTS: sage: from sage.plot.plot import generate_plot_points sage: generate_plot_points(sin, (0, pi), plot_points=2, adaptive_recursion=0) [(0.0, 0.0), (3.1415926535897931, 1.2246063538223773e-16)] sage: generate_plot_points(sin(x), (-pi, pi), randomize=False) [(-3.1415926535897931, -1.2246063538223773e-16), (-2.748893571891069, -0.38268343236508989), (-2.3561944901923448, -0.70710678118654757), (-2.1598449493429825, -0.83146961230254546), (-1.9634954084936207, -0.92387953251128674), (-1.7671458676442586, -0.98078528040323043), (-1.5707963267948966, -1.0), (-1.3744467859455345, -0.98078528040323043), (-1.1780972450961724, -0.92387953251128674), (-0.98174770424681035, -0.83146961230254524), (-0.78539816339744828, -0.70710678118654746), (-0.39269908169872414, -0.38268343236508978), (0.0, 0.0), (0.39269908169872414, 0.38268343236508978), (0.78539816339744828, 0.70710678118654746), (0.98174770424681035, 0.83146961230254524), (1.1780972450961724, 0.92387953251128674), (1.3744467859455345, 0.98078528040323043), (1.5707963267948966, 1.0), (1.7671458676442586, 0.98078528040323043), (1.9634954084936207, 0.92387953251128674), (2.1598449493429825, 0.83146961230254546), (2.3561944901923448, 0.70710678118654757), (2.748893571891069, 0.38268343236508989), (3.1415926535897931, 1.2246063538223773e-16)] This shows that lowering adaptive_tolerance and raising adaptive_recursion both increase the number of subdivision points: sage: x = var('x') sage: f = sin(1/x) sage: [len(generate_plot_points(f, (-pi, pi), adaptive_tolerance=i)) for i in [0.01, 0.001, 0.0001]] [42, 67, 104] sage: [len(generate_plot_points(f, (-pi, pi), adaptive_recursion=i)) for i in [5, 10, 15]] [34, 144, 897] """ x, data = var_and_list_of_values(xrange, plot_points) xmin = data[0] xmax = data[-1] delta = float(xmax-xmin) / plot_points random = current_randstate().python_random().random exceptions = 0; msg='' exception_indices = [] for i in range(len(data)): xi = data[i] # Slightly randomize the interior sample points if # randomize is true if randomize and i > 0 and i < plot_points-1: xi += delta*(random() - 0.5) try: data[i] = (float(xi), float(f(xi))) if str(data[i][1]) in ['nan', 'NaN', 'inf', '-inf']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) if i == 0: for j in range(1, 99): xj = xi + delta*j/100.0 try: data[i] = (float(xj), float(f(xj))) # nan != nan if data[i][1] != data[i][1]: continue break except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: pass else: exceptions += 1 exception_indices.append(i) elif i == plot_points-1: for j in range(1, 99): xj = xi - delta*j/100.0 try: data[i] = (float(xj), float(f(xj))) # nan != nan if data[i][1] != data[i][1]: continue break except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: pass else: exceptions += 1 exception_indices.append(i) else: exceptions += 1 exception_indices.append(i) exceptions += 1 exception_indices.append(i) data = [data[i] for i in range(len(data)) if i not in exception_indices] # adaptive refinement i, j = 0, 0 adaptive_tolerance = delta * float(adaptive_tolerance) adaptive_recursion = int(adaptive_recursion) while i < len(data) - 1: for p in adaptive_refinement(f, data[i], data[i+1], adaptive_tolerance=adaptive_tolerance, adaptive_recursion=adaptive_recursion): data.insert(i+1, p) i += 1 i += 1 if (len(data) == 0 and exceptions > 0) or exceptions > 10: sage.misc.misc.verbose("WARNING: When plotting, failed to evaluate function at %s points."%exceptions, level=0) sage.misc.misc.verbose("Last error message: '%s'"%msg, level=0) return data
|
9f9cdead7bccde39df56339b41036d398e9e5627 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9f9cdead7bccde39df56339b41036d398e9e5627/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
4672,
436,
8395,
9029,
3207,
3143,
364,
279,
445,
284,
316,
326,
3673,
12314,
18,
1021,
5855,
688,
25994,
820,
4886,
364,
20947,
279,
445,
284,
18,
2164,
326,
14525,
364,
3207,
364,
279,
2477,
434,
326,
4886,
18,
225,
12943,
30,
284,
1493,
279,
445,
434,
1245,
2190,
293,
21,
16,
293,
22,
1493,
2795,
3143,
358,
30446,
3086,
3207,
67,
4139,
3639,
1493,
261,
1886,
30,
1381,
13,
326,
16745,
1300,
434,
3207,
3143,
18,
5855,
688,
67,
31347,
1493,
261,
1886,
30,
1381,
13,
3661,
4906,
7575,
434,
13917,
358,
1960,
1865,
21057,
731,
1347,
9957,
5855,
688,
25994,
820,
18,
13274,
333,
358,
374,
24960,
5855,
688,
25994,
820,
18,
5855,
688,
67,
25456,
1493,
261,
1886,
30,
374,
18,
1611,
13,
3661,
7876,
279,
7114,
1410,
506,
1865,
326,
5855,
688,
25994,
820,
981,
1959,
24290,
518,
14177,
18,
225,
2164,
326,
7323,
364,
3207,
1435,
364,
1898,
1779,
18,
225,
11550,
30,
666,
1493,
279,
666,
434,
3143,
261,
92,
16,
284,
12,
92,
3719,
316,
326,
3673,
12314,
16,
1492,
513,
303,
92,
4988,
326,
445,
284,
18,
225,
22130,
55,
30,
272,
410,
30,
628,
272,
410,
18,
4032,
18,
4032,
1930,
2103,
67,
4032,
67,
4139,
272,
410,
30,
2103,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
4672,
436,
8395,
9029,
3207,
3143,
364,
279,
445,
284,
316,
326,
3673,
12314,
18,
1021,
5855,
688,
25994,
820,
4886,
364,
20947,
279,
445,
284,
18,
2164,
326,
14525,
364,
3207,
364,
279,
2477,
434,
326,
4886,
18,
225,
12943,
30,
284,
1493,
279,
445,
434,
1245,
2190,
293,
21,
16,
293,
22,
1493,
2795,
3143,
358,
30446,
3086,
3207,
67,
4139,
3639,
1493,
261,
1886,
30,
1381,
13,
326,
16745,
1300,
434,
3207,
3143,
18,
5855,
688,
67,
31347,
1493,
2
] |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect( ('non.existent.server', PORT) )
|
self.s.connect( ('non.existent.server', PORT) )
|
def testUnresolvedAddress(self): try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect( ('non.existent.server', PORT) ) except socket.gaierror, gaix: self.failUnlessEqual(gaix[0], errno.EGETADDRINFOFAILED) except Exception, x: self.fail("Get host name for non-existent host raised wrong exception: %s" % x) else: self.fail("Get host name for non-existent host should have raised exception")
|
c75e71ddaa629b10becc0eb9d61b274962f35edf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/c75e71ddaa629b10becc0eb9d61b274962f35edf/test_socket.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
984,
11792,
1887,
12,
2890,
4672,
775,
30,
365,
18,
87,
18,
3612,
12,
7707,
5836,
18,
19041,
18,
3567,
2187,
20987,
13,
262,
1335,
2987,
18,
75,
10658,
1636,
16,
18812,
697,
30,
365,
18,
6870,
984,
2656,
5812,
12,
15833,
697,
63,
20,
6487,
8402,
18,
41,
3264,
14142,
5923,
11965,
13,
1335,
1185,
16,
619,
30,
365,
18,
6870,
2932,
967,
1479,
508,
364,
1661,
17,
19041,
1479,
11531,
7194,
1520,
30,
738,
87,
6,
738,
619,
13,
469,
30,
365,
18,
6870,
2932,
967,
1479,
508,
364,
1661,
17,
19041,
1479,
1410,
1240,
11531,
1520,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
984,
11792,
1887,
12,
2890,
4672,
775,
30,
365,
18,
87,
18,
3612,
12,
7707,
5836,
18,
19041,
18,
3567,
2187,
20987,
13,
262,
1335,
2987,
18,
75,
10658,
1636,
16,
18812,
697,
30,
365,
18,
6870,
984,
2656,
5812,
12,
15833,
697,
63,
20,
6487,
8402,
18,
41,
3264,
14142,
5923,
11965,
13,
1335,
1185,
16,
619,
30,
365,
18,
6870,
2932,
967,
1479,
508,
364,
1661,
17,
19041,
1479,
11531,
7194,
1520,
30,
738,
87,
6,
738,
619,
13,
469,
30,
365,
18,
6870,
2932,
967,
1479,
508,
364,
1661,
17,
19041,
1479,
1410,
1240,
11531,
1520,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gp.setmode(int(line.rstrip()[-6:], 8))
|
gp.setmode(int(line[-6:], 8))
|
def readgitpatch(lr): """extract git-style metadata about patches from <patchname>""" # Filter patch for git information gp = None gitpatches = [] # Can have a git patch with only metadata, causing patch to complain dopatch = 0 lineno = 0 for line in lr: lineno += 1 if line.startswith('diff --git'): m = gitre.match(line) if m: if gp: gitpatches.append(gp) src, dst = m.group(1, 2) gp = patchmeta(dst) gp.lineno = lineno elif gp: if line.startswith('--- '): if gp.op in ('COPY', 'RENAME'): dopatch |= GP_FILTER gitpatches.append(gp) gp = None dopatch |= GP_PATCH continue if line.startswith('rename from '): gp.op = 'RENAME' gp.oldpath = line[12:].rstrip() elif line.startswith('rename to '): gp.path = line[10:].rstrip() elif line.startswith('copy from '): gp.op = 'COPY' gp.oldpath = line[10:].rstrip() elif line.startswith('copy to '): gp.path = line[8:].rstrip() elif line.startswith('deleted file'): gp.op = 'DELETE' # is the deleted file a symlink? gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('new file mode '): gp.op = 'ADD' gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('new mode '): gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('GIT binary patch'): dopatch |= GP_BINARY gp.binary = True if gp: gitpatches.append(gp) if not gitpatches: dopatch = GP_PATCH return (dopatch, gitpatches)
|
be5497a5fc601c2dd2fa6a4688b100383b0f1202 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/be5497a5fc601c2dd2fa6a4688b100383b0f1202/patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6845,
2272,
12,
10826,
4672,
3536,
8004,
5071,
17,
4060,
1982,
2973,
16482,
628,
411,
2272,
529,
2984,
3660,
225,
468,
4008,
4729,
364,
5071,
1779,
4178,
273,
599,
5071,
30278,
273,
5378,
468,
4480,
1240,
279,
5071,
4729,
598,
1338,
1982,
16,
25416,
4729,
358,
532,
7446,
302,
556,
505,
273,
374,
225,
7586,
273,
374,
364,
980,
316,
12226,
30,
7586,
1011,
404,
309,
980,
18,
17514,
1918,
2668,
5413,
1493,
6845,
11,
4672,
312,
273,
5071,
266,
18,
1916,
12,
1369,
13,
309,
312,
30,
309,
4178,
30,
5071,
30278,
18,
6923,
12,
6403,
13,
1705,
16,
3046,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
4178,
273,
4729,
3901,
12,
11057,
13,
4178,
18,
17782,
273,
7586,
1327,
4178,
30,
309,
980,
18,
17514,
1918,
2668,
6062,
296,
4672,
309,
4178,
18,
556,
316,
7707,
24875,
2187,
296,
862,
1985,
11,
4672,
302,
556,
505,
5626,
4948,
67,
11126,
5071,
30278,
18,
6923,
12,
6403,
13,
4178,
273,
599,
302,
556,
505,
5626,
4948,
67,
20366,
1324,
309,
980,
18,
17514,
1918,
2668,
18539,
628,
296,
4672,
4178,
18,
556,
273,
296,
862,
1985,
11,
4178,
18,
1673,
803,
273,
980,
63,
2138,
30,
8009,
86,
6406,
1435,
1327,
980,
18,
17514,
1918,
2668,
18539,
358,
296,
4672,
4178,
18,
803,
273,
980,
63,
2163,
30,
8009,
86,
6406,
1435,
1327,
980,
18,
17514,
1918,
2668,
3530,
628,
296,
4672,
4178,
18,
556,
273,
296,
24875,
11,
4178,
18,
1673,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6845,
2272,
12,
10826,
4672,
3536,
8004,
5071,
17,
4060,
1982,
2973,
16482,
628,
411,
2272,
529,
2984,
3660,
225,
468,
4008,
4729,
364,
5071,
1779,
4178,
273,
599,
5071,
30278,
273,
5378,
468,
4480,
1240,
279,
5071,
4729,
598,
1338,
1982,
16,
25416,
4729,
358,
532,
7446,
302,
556,
505,
273,
374,
225,
7586,
273,
374,
364,
980,
316,
12226,
30,
7586,
1011,
404,
309,
980,
18,
17514,
1918,
2668,
5413,
1493,
6845,
11,
4672,
312,
273,
5071,
266,
18,
1916,
12,
1369,
13,
309,
312,
30,
309,
4178,
30,
5071,
30278,
18,
6923,
12,
6403,
13,
1705,
16,
3046,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
4178,
273,
4729,
3901,
12,
11057,
13,
2
] |
self.MinRate = default_MinRate
|
self.MinRate = default_MinRate
|
def __init__(self, xid, name, data): self.xid = xid self.name = name self.time = 0 self.bytes = 0 self.i2bytes = 0 self.MaxRate = default_MaxRate self.MinRate = default_MinRate self.Maxi2Rate = default_Maxi2Rate self.Mini2Rate = default_Mini2Rate self.MaxKByte = default_MaxKByte self.ThreshKByte = default_ThreshKByte self.Maxi2KByte = default_Maxi2KByte self.Threshi2KByte = default_Threshi2KByte self.Share = default_Share self.emailed = False
|
2fc55c6e90c2aeca8a448e95fae76c73ffb3cdaf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6995/2fc55c6e90c2aeca8a448e95fae76c73ffb3cdaf/bwmon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19031,
16,
508,
16,
501,
4672,
365,
18,
6212,
273,
19031,
365,
18,
529,
273,
508,
365,
18,
957,
273,
374,
365,
18,
3890,
273,
374,
365,
18,
77,
22,
3890,
273,
374,
365,
18,
2747,
4727,
273,
805,
67,
2747,
4727,
365,
18,
2930,
4727,
273,
805,
67,
2930,
4727,
365,
18,
2747,
77,
22,
4727,
273,
805,
67,
2747,
77,
22,
4727,
365,
18,
2930,
77,
22,
4727,
273,
805,
67,
2930,
77,
22,
4727,
365,
18,
2747,
47,
3216,
273,
805,
67,
2747,
47,
3216,
365,
18,
1315,
1955,
47,
3216,
273,
805,
67,
1315,
1955,
47,
3216,
365,
18,
2747,
77,
22,
47,
3216,
273,
805,
67,
2747,
77,
22,
47,
3216,
365,
18,
1315,
1955,
77,
22,
47,
3216,
273,
805,
67,
1315,
1955,
77,
22,
47,
3216,
365,
18,
9535,
273,
805,
67,
9535,
365,
18,
351,
1708,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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738,
972,
12,
2890,
16,
19031,
16,
508,
16,
501,
4672,
365,
18,
6212,
273,
19031,
365,
18,
529,
273,
508,
365,
18,
957,
273,
374,
365,
18,
3890,
273,
374,
365,
18,
77,
22,
3890,
273,
374,
365,
18,
2747,
4727,
273,
805,
67,
2747,
4727,
365,
18,
2930,
4727,
273,
805,
67,
2930,
4727,
365,
18,
2747,
77,
22,
4727,
273,
805,
67,
2747,
77,
22,
4727,
365,
18,
2930,
77,
22,
4727,
273,
805,
67,
2930,
77,
22,
4727,
365,
18,
2747,
47,
3216,
273,
805,
67,
2747,
47,
3216,
365,
18,
1315,
1955,
47,
3216,
273,
805,
67,
1315,
1955,
47,
3216,
365,
18,
2747,
77,
22,
47,
3216,
273,
805,
67,
2747,
2
] |
The provided spectral curves (directional-hemispherical reflectance, transmittance and absorptance) were obtained considering light incident on the adaxial surface of the specimens, and angles of incidence measured with respect to the specimens' normal (zenith). The curves were obtained using a virtual spectrophotometer~\cite{Ba01}. The researcher interested in BDF
|
The provided spectral curves (directional-hemispherical reflectance, transmittance and absorptance) were obtained considering light incident on the adaxial surface of the specimens, and angles of incidence measured with respect to the specimens' normal (zenith). The curves were obtained using a virtual spectrophotometer~\cite{Ba01}. The researcher interested in BDF
|
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
|
7518b9371fc42cae5b7ff818acf3a636401881ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13808/7518b9371fc42cae5b7ff818acf3a636401881ae/abmb_c.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
2250,
12,
2890,
4672,
327,
436,
8395,
1220,
353,
326,
1686,
434,
3433,
938,
1086,
434,
521,
955,
17156,
95,
2090,
49,
17,
57,
97,
364,
326,
423,
270,
3766,
4360,
275,
362,
275,
265,
9587,
6234,
3756,
261,
50,
5857,
43,
13,
622,
1351,
6760,
560,
434,
678,
2045,
383,
83,
18,
2,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25079,
2250,
12,
2890,
4672,
327,
436,
8395,
1220,
353,
326,
1686,
434,
3433,
938,
1086,
434,
521,
955,
17156,
95,
2090,
49,
17,
57,
97,
364,
326,
423,
270,
3766,
4360,
275,
362,
275,
265,
9587,
6234,
3756,
261,
50,
5857,
43,
13,
622,
1351,
6760,
560,
434,
678,
2045,
383,
83,
18,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
table:style-name="table-default.cell-C4">
|
table:style-name="table-default.cell-C1">
|
def test_table_tfoot_tbody(self): """Test <tfoot> tag with <tbody>""" html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <tfoot> <tr> <td>Cell1</td> <td>Cell2</td> </tr> </tfoot> <tbody> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </tbody> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re.sub('(xmlns:[a-z0-9=:".-]+\s+)*', '', str(odt)) # remove comments odt = re.sub('(<!--[a-z0-9=-]+-->)*', '', odt) print odt assert re.search(r""" <table:table \s+ table:style-name="table-default"> \s* <table:table-column \s+ table:number-columns-repeated="2"/> \s* <table:table-row> \s*
|
3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c/test_tables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
88,
10923,
67,
20779,
12,
2890,
4672,
3536,
4709,
411,
88,
10923,
34,
1047,
598,
411,
20779,
2984,
3660,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
6441,
411,
2121,
34,
411,
88,
10923,
34,
411,
313,
34,
411,
4465,
34,
4020,
21,
1757,
4465,
34,
411,
4465,
34,
4020,
22,
1757,
4465,
34,
7765,
313,
34,
7765,
88,
10923,
34,
411,
20779,
34,
411,
313,
34,
411,
4465,
34,
4020,
23,
1757,
4465,
34,
411,
4465,
34,
4020,
24,
1757,
4465,
34,
7765,
313,
34,
7765,
20779,
34,
7765,
2121,
34,
7765,
2620,
34,
3536,
320,
7510,
273,
619,
2620,
22,
369,
88,
12,
2620,
13,
468,
1206,
7728,
320,
7510,
273,
283,
18,
1717,
2668,
12,
16741,
30,
63,
69,
17,
94,
20,
17,
29,
33,
2773,
18,
23238,
64,
87,
6975,
14,
2187,
10226,
609,
12,
369,
88,
3719,
468,
1206,
5678,
320,
7510,
273,
283,
18,
1717,
2668,
12,
5586,
413,
63,
69,
17,
94,
20,
17,
29,
33,
23238,
413,
34,
17653,
2187,
10226,
320,
7510,
13,
1172,
320,
7510,
1815,
283,
18,
3072,
12,
86,
8395,
411,
2121,
30,
2121,
521,
87,
15,
1014,
30,
4060,
17,
529,
1546,
2121,
17,
1886,
6441,
521,
87,
14,
411,
2121,
30,
2121,
17,
2827,
521,
87,
15,
1014,
30,
2696,
17,
5112,
17,
266,
9061,
1546,
22,
6,
21259,
521,
87,
14,
411,
2121,
30,
2121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
88,
10923,
67,
20779,
12,
2890,
4672,
3536,
4709,
411,
88,
10923,
34,
1047,
598,
411,
20779,
2984,
3660,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
6441,
411,
2121,
34,
411,
88,
10923,
34,
411,
313,
34,
411,
4465,
34,
4020,
21,
1757,
4465,
34,
411,
4465,
34,
4020,
22,
1757,
4465,
34,
7765,
313,
34,
7765,
88,
10923,
34,
411,
20779,
34,
411,
313,
34,
411,
4465,
34,
4020,
23,
1757,
4465,
34,
411,
4465,
34,
4020,
24,
1757,
4465,
34,
7765,
313,
34,
7765,
20779,
34,
7765,
2121,
34,
7765,
2620,
34,
3536,
320,
7510,
273,
619,
2620,
22,
2
] |
xmlfile = urllib2.urlopen(url);
|
try: xmlfile = urllib2.urlopen(url); except: print ' !Error! Unable to open url:', url; return False;
|
def GetXML(semester, filename, outpath): # open the xml url and check to make sure it succeeded url = base_url[0] + semester + base_url[1] + filename; xmlfile = urllib2.urlopen(url); if (not(xmlfile)): print ' !Error! Unable to open url:', url; return False; # grab the xml and close the url xmlstring = xmlfile.read(XML_MAX); xmlfile.close(); # write output isOk = True; try: fout = open(outpath, 'w'); if (fout): fout.write(xmlstring); else: print ' !Error! Unable to open output path:', outpath; isOk = False; except: print ' !Error! Error occurred while attempting to open or write to path:', outpath; isOk = False; fout.close(); # return results, one way or the other return isOk;
|
1448cb0d5c92a0f8147851bc9f25a8520b952a36 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4025/1448cb0d5c92a0f8147851bc9f25a8520b952a36/update.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4201,
12,
12000,
7654,
16,
1544,
16,
596,
803,
4672,
468,
1696,
326,
2025,
880,
471,
866,
358,
1221,
3071,
518,
15784,
880,
273,
1026,
67,
718,
63,
20,
65,
397,
6111,
7654,
397,
1026,
67,
718,
63,
21,
65,
397,
1544,
31,
775,
30,
2025,
768,
273,
11527,
22,
18,
295,
18589,
12,
718,
1769,
1335,
30,
1172,
296,
565,
401,
668,
5,
18640,
358,
1696,
880,
30,
2187,
880,
31,
327,
1083,
31,
225,
309,
261,
902,
12,
2902,
768,
3719,
30,
1172,
296,
565,
401,
668,
5,
18640,
358,
1696,
880,
30,
2187,
880,
31,
327,
1083,
31,
225,
468,
11086,
326,
2025,
471,
1746,
326,
880,
2025,
1080,
273,
2025,
768,
18,
896,
12,
4201,
67,
6694,
1769,
2025,
768,
18,
4412,
5621,
225,
468,
1045,
876,
353,
8809,
273,
1053,
31,
775,
30,
17382,
273,
1696,
12,
659,
803,
16,
296,
91,
8284,
309,
261,
617,
322,
4672,
17382,
18,
2626,
12,
2902,
1080,
1769,
469,
30,
1172,
296,
565,
401,
668,
5,
18640,
358,
1696,
876,
589,
30,
2187,
596,
803,
31,
353,
8809,
273,
1083,
31,
1335,
30,
1172,
296,
565,
401,
668,
5,
1068,
7841,
1323,
15600,
358,
1696,
578,
1045,
358,
589,
30,
2187,
596,
803,
31,
353,
8809,
273,
1083,
31,
225,
17382,
18,
4412,
5621,
225,
468,
327,
1686,
16,
1245,
4031,
578,
326,
1308,
327,
353,
8809,
31,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
968,
4201,
12,
12000,
7654,
16,
1544,
16,
596,
803,
4672,
468,
1696,
326,
2025,
880,
471,
866,
358,
1221,
3071,
518,
15784,
880,
273,
1026,
67,
718,
63,
20,
65,
397,
6111,
7654,
397,
1026,
67,
718,
63,
21,
65,
397,
1544,
31,
775,
30,
2025,
768,
273,
11527,
22,
18,
295,
18589,
12,
718,
1769,
1335,
30,
1172,
296,
565,
401,
668,
5,
18640,
358,
1696,
880,
30,
2187,
880,
31,
327,
1083,
31,
225,
309,
261,
902,
12,
2902,
768,
3719,
30,
1172,
296,
565,
401,
668,
5,
18640,
358,
1696,
880,
30,
2187,
880,
31,
327,
1083,
31,
225,
468,
11086,
326,
2025,
471,
1746,
326,
880,
2025,
1080,
273,
2025,
768,
18,
896,
2
] |
m = md5.new()
|
m = md5()
|
def read_md5(self): """ Calculate the md5 hash for this file.
|
e08a0357e0c382fb0cb2f2f131098417e70f0599 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14074/e08a0357e0c382fb0cb2f2f131098417e70f0599/path.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1264,
25,
12,
2890,
4672,
3536,
9029,
326,
3481,
25,
1651,
364,
333,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
855,
67,
1264,
25,
12,
2890,
4672,
3536,
9029,
326,
3481,
25,
1651,
364,
333,
585,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
''' Selects instrument and clears the selection of all other instruments. '''
|
""" Selects an instrument and clears the selection of all other instruments. Parameters: instrument -- Instrument object corresponding to the selected instrument. """
|
def SelectInstrument(self, instrument=None): ''' Selects instrument and clears the selection of all other instruments. ''' for instr in self.instruments: if instr is not instrument: instr.SetSelected(False) else: instr.SetSelected(True)
|
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6766,
19228,
12,
2890,
16,
10353,
33,
7036,
4672,
3536,
6766,
87,
392,
10353,
471,
22655,
326,
4421,
434,
777,
1308,
29555,
18,
225,
7012,
30,
10353,
1493,
25565,
733,
4656,
358,
326,
3170,
10353,
18,
3536,
364,
16170,
316,
365,
18,
22818,
87,
30,
309,
16170,
353,
486,
10353,
30,
16170,
18,
694,
7416,
12,
8381,
13,
469,
30,
16170,
18,
694,
7416,
12,
5510,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6766,
19228,
12,
2890,
16,
10353,
33,
7036,
4672,
3536,
6766,
87,
392,
10353,
471,
22655,
326,
4421,
434,
777,
1308,
29555,
18,
225,
7012,
30,
10353,
1493,
25565,
733,
4656,
358,
326,
3170,
10353,
18,
3536,
364,
16170,
316,
365,
18,
22818,
87,
30,
309,
16170,
353,
486,
10353,
30,
16170,
18,
694,
7416,
12,
8381,
13,
469,
30,
16170,
18,
694,
7416,
12,
5510,
13,
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,
-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
] |
if (ssl_incs is not None and ssl_libs is not None and openssl_ver >= 0x00907000):
|
min_openssl_ver = 0x00907000 have_usable_openssl = (ssl_incs is not None and ssl_libs is not None and openssl_ver >= min_openssl_ver) if have_usable_openssl:
|
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler_obj.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler_obj.include_dirs, '/usr/local/include')
|
ea17548d2f6cdcbc8292da1d0e629e0249290f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/ea17548d2f6cdcbc8292da1d0e629e0249290f08/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
67,
2603,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
67,
2603,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
67,
2603,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
67,
2603,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
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,
-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
] |
assert ret is not None,
|
assert ret is not None, \
|
def script(self, database=None, operation=None): """Returns SQL or Python Script""" for db in (database, 'default'): # Try to return a .sql script first try: return self.sql[db][operation] except KeyError: continue # No .sql script exists
|
ea7cf29c587ce1f278de158293e0277a50f9f10e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9035/ea7cf29c587ce1f278de158293e0277a50f9f10e/version.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
12,
2890,
16,
2063,
33,
7036,
16,
1674,
33,
7036,
4672,
3536,
1356,
3063,
578,
6600,
7739,
8395,
364,
1319,
316,
261,
6231,
16,
296,
1886,
11,
4672,
468,
6161,
358,
327,
279,
263,
4669,
2728,
1122,
775,
30,
327,
365,
18,
4669,
63,
1966,
6362,
7624,
65,
1335,
4999,
30,
1324,
225,
468,
2631,
263,
4669,
2728,
1704,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2728,
12,
2890,
16,
2063,
33,
7036,
16,
1674,
33,
7036,
4672,
3536,
1356,
3063,
578,
6600,
7739,
8395,
364,
1319,
316,
261,
6231,
16,
296,
1886,
11,
4672,
468,
6161,
358,
327,
279,
263,
4669,
2728,
1122,
775,
30,
327,
365,
18,
4669,
63,
1966,
6362,
7624,
65,
1335,
4999,
30,
1324,
225,
468,
2631,
263,
4669,
2728,
1704,
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,
-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,
-100,
-100,
-100,
-100
] |
l = q.outerjoin(User.orders).options(eagerload(User.addresses), contains_eager(User.orders)).offset(1).limit(2).all()
|
l = q.outerjoin(User.orders).options(eagerload(User.addresses), contains_eager(User.orders)).order_by(User.id, Order.id).offset(1).limit(2).all()
|
def go(): # outerjoin to User.orders, offset 1/limit 2 so we get user 7 + second two orders. # then eagerload the addresses. User + Order columns go into the subquery, address # left outer joins to the subquery, eagerloader for User.orders applies context.adapter # to result rows. This was [ticket:1180]. l = q.outerjoin(User.orders).options(eagerload(User.addresses), contains_eager(User.orders)).offset(1).limit(2).all() eq_(l, [User(id=7, addresses=[Address(email_address=u'[email protected]',user_id=7,id=1)], name=u'jack', orders=[ Order(address_id=1,user_id=7,description=u'order 3',isopen=1,id=3), Order(address_id=None,user_id=7,description=u'order 5',isopen=0,id=5) ])])
|
8f4999a70bc68801ba032ffdd367249186d4cb67 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8f4999a70bc68801ba032ffdd367249186d4cb67/query.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
13332,
468,
6390,
5701,
358,
2177,
18,
9972,
16,
1384,
404,
19,
3595,
576,
1427,
732,
336,
729,
2371,
397,
2205,
2795,
11077,
18,
468,
1508,
18853,
945,
326,
6138,
18,
225,
2177,
397,
4347,
2168,
1960,
1368,
326,
20074,
16,
1758,
468,
2002,
6390,
13471,
358,
326,
20074,
16,
18853,
6714,
364,
2177,
18,
9972,
10294,
819,
18,
10204,
468,
358,
563,
2595,
18,
225,
1220,
1703,
306,
16282,
30,
2499,
3672,
8009,
328,
273,
1043,
18,
14068,
5701,
12,
1299,
18,
9972,
2934,
2116,
12,
73,
6817,
945,
12,
1299,
18,
13277,
3631,
1914,
67,
73,
6817,
12,
1299,
18,
9972,
13,
2934,
1019,
67,
1637,
12,
1299,
18,
350,
16,
4347,
18,
350,
2934,
3348,
12,
21,
2934,
3595,
12,
22,
2934,
454,
1435,
7555,
67,
12,
80,
16,
306,
1299,
12,
350,
33,
27,
16,
6138,
22850,
1887,
12,
3652,
67,
2867,
33,
89,
11,
78,
484,
36,
14496,
18,
832,
2187,
1355,
67,
350,
33,
27,
16,
350,
33,
21,
13,
6487,
508,
33,
89,
11,
78,
484,
2187,
11077,
22850,
4347,
12,
2867,
67,
350,
33,
21,
16,
1355,
67,
350,
33,
27,
16,
3384,
33,
89,
11,
1019,
890,
2187,
291,
3190,
33,
21,
16,
350,
33,
23,
3631,
4347,
12,
2867,
67,
350,
33,
7036,
16,
1355,
67,
350,
33,
27,
16,
3384,
33,
89,
11,
1019,
1381,
2187,
291,
3190,
33,
20,
16,
350,
33,
25,
13,
308,
13,
5717,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1960,
13332,
468,
6390,
5701,
358,
2177,
18,
9972,
16,
1384,
404,
19,
3595,
576,
1427,
732,
336,
729,
2371,
397,
2205,
2795,
11077,
18,
468,
1508,
18853,
945,
326,
6138,
18,
225,
2177,
397,
4347,
2168,
1960,
1368,
326,
20074,
16,
1758,
468,
2002,
6390,
13471,
358,
326,
20074,
16,
18853,
6714,
364,
2177,
18,
9972,
10294,
819,
18,
10204,
468,
358,
563,
2595,
18,
225,
1220,
1703,
306,
16282,
30,
2499,
3672,
8009,
328,
273,
1043,
18,
14068,
5701,
12,
1299,
18,
9972,
2934,
2116,
12,
73,
6817,
945,
12,
1299,
18,
13277,
3631,
1914,
67,
73,
6817,
12,
1299,
18,
9972,
13,
2934,
1019,
67,
1637,
12,
1299,
18,
350,
16,
4347,
18,
350,
2934,
2
] |
if cf.param_value('archive_mode'):
|
if archive_mode:
|
def master_configure_archiving(self, enable_archiving, can_restart): """Turn the archiving on or off"""
|
0ca959a83cef53a35b93413f946a313437551bba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/0ca959a83cef53a35b93413f946a313437551bba/walmgr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
14895,
67,
991,
9288,
12,
2890,
16,
4237,
67,
991,
9288,
16,
848,
67,
19164,
4672,
3536,
15858,
326,
6637,
9288,
603,
578,
3397,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buffer = audioop.stereo(buffer, 2, 1, 1)
|
b = audioop.tostereo(buffer, 2, 1, 1)
|
def fromStdFmt(self, buffer): from numarray import fromstring, Int16, Float32 buffer = audioop.stereo(buffer, 2, 1, 1) b, self.fromstate = audioop.ratecv(b, 2, 2, OUTHZ, HZ, self.fromstate) buffer = fromstring(x, Int16) buffer = buffer.astype(Float32) buffer = ( buffer + 32768/2 ) / self.SCALE return buffer
|
9e8b643a9d5d89cedde47af9dba6b0141656633d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/9e8b643a9d5d89cedde47af9dba6b0141656633d/ratecvt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
10436,
16090,
12,
2890,
16,
1613,
4672,
628,
818,
1126,
1930,
21376,
16,
3094,
2313,
16,
5450,
1578,
324,
273,
7447,
556,
18,
88,
669,
822,
83,
12,
4106,
16,
576,
16,
404,
16,
404,
13,
324,
16,
365,
18,
2080,
2019,
273,
7447,
556,
18,
5141,
19774,
12,
70,
16,
576,
16,
576,
16,
531,
5844,
62,
16,
670,
62,
16,
365,
18,
2080,
2019,
13,
1613,
273,
21376,
12,
92,
16,
3094,
2313,
13,
1613,
273,
1613,
18,
689,
388,
12,
4723,
1578,
13,
1613,
273,
261,
1613,
397,
29317,
28,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
628,
10436,
16090,
12,
2890,
16,
1613,
4672,
628,
818,
1126,
1930,
21376,
16,
3094,
2313,
16,
5450,
1578,
324,
273,
7447,
556,
18,
88,
669,
822,
83,
12,
4106,
16,
576,
16,
404,
16,
404,
13,
324,
16,
365,
18,
2080,
2019,
273,
7447,
556,
18,
5141,
19774,
12,
70,
16,
576,
16,
576,
16,
531,
5844,
62,
16,
670,
62,
16,
365,
18,
2080,
2019,
13,
1613,
273,
21376,
12,
92,
16,
3094,
2313,
13,
1613,
273,
1613,
18,
689,
388,
12,
4723,
1578,
13,
1613,
273,
261,
1613,
397,
29317,
28,
19,
22,
262,
342,
365,
18,
19378,
327,
1613,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(apache_user, apache_user, omd_site, " ".join(commandargs[2:])))
|
(apache_user, apache_user, omd_site, " ".join(commandargs[3:])))
|
def check_mk_automation(command, args=[], indata=""): # Gather the command to use for executing --automation calls to check_mk # - First try to use the check_mk_automation option from the defaults # - When not set try to detect the command for OMD or non OMD installations # - OMD 'own' apache mode or non OMD: check_mk --automation # - OMD 'shared' apache mode: Full path to the binary and the defaults commandargs = [] if defaults.check_mk_automation: commandargs = defaults.check_mk_automation.split() else: apache_user, omd_mode, omd_site = html.omd_mode() if not omd_mode or omd_mode == 'own': commandargs = [ 'check_mk', '--automation' ] else: commandargs = [ 'sudo', '-u', omd_site, '/usr/bin/env', 'python', '/omd/sites/'+omd_site+'/share/check_mk/modules/check_mk.py', '--defaults', '/omd/sites/'+omd_site+'/etc/check_mk/defaults', '--automation' ] if commandargs[0] == 'sudo': sudo_msg = ("<p>The webserver is running as user which has no rights on the " "needed Check_MK/Nagios files.<br />Please ensure you have set-up " "the sudo environment correctly. e.g. proceed as follows:</p>\n" "<ol><li>install sudo package</li>\n" "<li>Append the following to the <code>/etc/sudoers</code> file:\n" "<pre># Needed for WATO - the Check_MK Web Administration Tool\n" "Defaults:%s !requiretty\n" "%s ALL = (%s) NOPASSWD: %s *\n" "</pre></li>\n" "<li>Retry this operation</li></ol>\n" % (apache_user, apache_user, omd_site, " ".join(commandargs[2:]))) cmd = commandargs + [ command ] + args try: p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) except Exception, e: if commandargs[0] == 'sudo': raise MKGeneralException("Cannot execute <tt>%s</tt>: %s<br /><br >%s" % (commandargs[0], e, sudo_msg)) else: raise MKGeneralException("Cannot execute <tt>%s</tt>: %s" % (commandargs[0], e)) p.stdin.write(repr(indata)) p.stdin.close() outdata = p.stdout.read() exitcode = p.wait() if exitcode != 0: raise MKGeneralException("Error running <tt>%s</tt>: <pre>%s</pre>%s" % (" ".join(cmd), outdata, sudo_msg)) try: return eval(outdata) except Exception, e: raise MKGeneralException("Error running <tt>%s</tt>. Invalid output from webservice (%s): <pre>%s</pre>" % (" ".join(cmd), e, outdata))
|
0e4b062b6ae288635e8e0ddf68c489b08a4ab3f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/0e4b062b6ae288635e8e0ddf68c489b08a4ab3f3/wato.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
24816,
67,
5854,
11978,
12,
3076,
16,
833,
22850,
6487,
316,
892,
1546,
6,
4672,
468,
25868,
326,
1296,
358,
999,
364,
11274,
1493,
5854,
11978,
4097,
358,
866,
67,
24816,
468,
300,
5783,
775,
358,
999,
326,
866,
67,
24816,
67,
5854,
11978,
1456,
628,
326,
3467,
468,
300,
5203,
486,
444,
775,
358,
5966,
326,
1296,
364,
531,
6188,
578,
1661,
531,
6188,
3799,
1012,
468,
282,
300,
531,
6188,
296,
995,
11,
12291,
1965,
578,
1661,
531,
6188,
30,
866,
67,
24816,
1493,
5854,
11978,
468,
282,
300,
531,
6188,
296,
11574,
11,
12291,
1965,
30,
11692,
589,
358,
326,
3112,
471,
326,
3467,
1296,
1968,
273,
5378,
309,
3467,
18,
1893,
67,
24816,
67,
5854,
11978,
30,
1296,
1968,
273,
3467,
18,
1893,
67,
24816,
67,
5854,
11978,
18,
4939,
1435,
469,
30,
12291,
67,
1355,
16,
320,
1264,
67,
3188,
16,
320,
1264,
67,
4256,
273,
1729,
18,
362,
72,
67,
3188,
1435,
309,
486,
320,
1264,
67,
3188,
578,
320,
1264,
67,
3188,
422,
296,
995,
4278,
1296,
1968,
273,
306,
296,
1893,
67,
24816,
2187,
3534,
5854,
11978,
11,
308,
469,
30,
1296,
1968,
273,
306,
296,
20566,
2187,
2400,
89,
2187,
320,
1264,
67,
4256,
16,
1173,
13640,
19,
4757,
19,
3074,
2187,
296,
8103,
2187,
1173,
362,
72,
19,
12180,
2473,
15,
362,
72,
67,
4256,
6797,
19,
14419,
19,
1893,
67,
24816,
19,
6400,
19,
1893,
67,
24816,
18,
2074,
2187,
3534,
7606,
2187,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24816,
67,
5854,
11978,
12,
3076,
16,
833,
22850,
6487,
316,
892,
1546,
6,
4672,
468,
25868,
326,
1296,
358,
999,
364,
11274,
1493,
5854,
11978,
4097,
358,
866,
67,
24816,
468,
300,
5783,
775,
358,
999,
326,
866,
67,
24816,
67,
5854,
11978,
1456,
628,
326,
3467,
468,
300,
5203,
486,
444,
775,
358,
5966,
326,
1296,
364,
531,
6188,
578,
1661,
531,
6188,
3799,
1012,
468,
282,
300,
531,
6188,
296,
995,
11,
12291,
1965,
578,
1661,
531,
6188,
30,
866,
67,
24816,
1493,
5854,
11978,
468,
282,
300,
531,
6188,
296,
11574,
11,
12291,
1965,
30,
11692,
589,
358,
326,
3112,
471,
326,
3467,
1296,
1968,
273,
5378,
309,
3467,
18,
1893,
67,
2
] |
self.serial_write_port=port=open(port_name,"r+" , 16384) self.serial_read_port=self.serial_write_port
|
self.serial_write_port=port=open(port_name,"r+" , 0) self.serial_read_port=self.serial_write_port
|
def setup_serial(self, port_name): self.serial_write_port=port=open(port_name,"r+" , 16384) self.serial_read_port=self.serial_write_port self.set_port_params() #setup default port
|
3fd2b1c72c2aee5447e46f56f19804640c6c56f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/3fd2b1c72c2aee5447e46f56f19804640c6c56f5/LabPro.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
8818,
12,
2890,
16,
1756,
67,
529,
4672,
365,
18,
8818,
67,
2626,
67,
655,
33,
655,
33,
3190,
12,
655,
67,
529,
10837,
86,
9078,
269,
374,
13,
365,
18,
8818,
67,
896,
67,
655,
33,
2890,
18,
8818,
67,
2626,
67,
655,
365,
18,
542,
67,
655,
67,
2010,
1435,
468,
8401,
805,
1756,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3875,
67,
8818,
12,
2890,
16,
1756,
67,
529,
4672,
365,
18,
8818,
67,
2626,
67,
655,
33,
655,
33,
3190,
12,
655,
67,
529,
10837,
86,
9078,
269,
374,
13,
365,
18,
8818,
67,
896,
67,
655,
33,
2890,
18,
8818,
67,
2626,
67,
655,
365,
18,
542,
67,
655,
67,
2010,
1435,
468,
8401,
805,
1756,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cr.execute('SELECT id FROM '+self._table+' WHERE id IN ('+ids_str+')')
|
cr.execute('SELECT id FROM "'+self._table+'" WHERE id IN ('+ids_str+')')
|
def write(self, cr, user, ids, vals, context=None): if not context: context={} if not ids: return True if isinstance(ids, (int, long)): ids = [ids] delta= context.get('read_delta',False) if delta and self._log_access: cr.execute("select (now() - min(write_date)) <= '%s'::interval from %s where id in (%s)"% (delta,self._table,",".join(map(str, ids))) ) res= cr.fetchone() if res and res[0]: for field in vals: if field in self._columns and self._columns[field]._classic_write: raise except_orm('ConcurrencyException', 'This record was modified in the meanwhile')
|
be2ceb24bde4a569bfb092c4888d20f47c553384 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/be2ceb24bde4a569bfb092c4888d20f47c553384/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
3719,
30,
3258,
273,
306,
2232,
65,
3622,
33,
819,
18,
588,
2668,
896,
67,
9878,
2187,
8381,
13,
309,
3622,
471,
365,
6315,
1330,
67,
3860,
30,
4422,
18,
8837,
2932,
4025,
225,
261,
3338,
1435,
225,
300,
1131,
12,
2626,
67,
712,
3719,
1648,
1995,
87,
11,
2866,
6624,
225,
628,
738,
87,
1625,
612,
316,
6142,
87,
2225,
9,
261,
9878,
16,
2890,
6315,
2121,
16,
3113,
9654,
5701,
12,
1458,
12,
701,
16,
3258,
20349,
262,
400,
33,
4422,
18,
5754,
476,
1435,
309,
400,
471,
400,
63,
20,
14542,
364,
652,
316,
5773,
30,
309,
652,
316,
365,
6315,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,
0,
0,
0,
0,
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,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
3719,
30,
3258,
273,
306,
2232,
65,
3622,
33,
819,
18,
588,
2668,
896,
67,
9878,
2187,
8381,
13,
309,
3622,
471,
365,
6315,
1330,
67,
3860,
30,
4422,
18,
8837,
2932,
4025,
225,
261,
3338,
1435,
225,
300,
1131,
12,
2626,
67,
712,
3719,
1648,
1995,
87,
11,
2866,
6624,
225,
628,
738,
87,
1625,
612,
316,
6142,
87,
2225,
9,
261,
9878,
16,
2890,
6315,
2121,
16,
3113,
9654,
5701,
12,
1458,
12,
701,
16,
3258,
20349,
262,
400,
2
] |
configprc=ReadFile("makepanda/config.in")
|
configprc = ReadFile("makepanda/config.in")
|
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
|
397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
out = TemporaryFile("w")
|
out = TemporaryFile()
|
def update_file(self, filename): '''Update the specified configuration file.''' sectname = None optname = None out = TemporaryFile("w") if os.path.exists(filename): f = file(filename, "r") else: # doesn't exist, so create it - all the changed options will # be added to it if options["globals", "verbose"]: print "Creating new configuration file", filename f = file(filename, "w") f.close() f = file(filename, "r") written = [] vi = ": " # default; uses the one from the file where possible while True: line = f.readline() if not line: break # comment or blank line? if line.strip() == '' or line[0] in '#;': out.write(line) continue if line.split(None, 1)[0].lower() == 'rem' and line[0] in "rR": # no leading whitespace out.write(line) continue # continuation line? if line[0].isspace() and sectname is not None and optname: continue # a section header or option header? else: # is it a section header? mo = self.SECTCRE.match(line) if mo: # Add any missing from the previous section if sectname is not None: self._add_missing(out, written, sectname, vi, False) sectname = mo.group('header') # So sections can't start with a continuation line optname = None if sectname in self.sections(): out.write(line) # an option line? else: mo = self.OPTCRE.match(line) if mo: optname, vi, optval = mo.group('option', 'vi', 'value') if vi in ('=', ':') and ';' in optval: # ';' is a comment delimiter only if it follows # a spacing character pos = optval.find(';') if pos != -1 and optval[pos-1].isspace(): optval = optval[:pos] optval = optval.strip() # allow empty values if optval == '""': optval = '' optname = optname.rstrip().lower() if self._options.has_key((sectname, optname)): out.write(optname) out.write(vi) out.write(self.unconvert(sectname, optname)) out.write('\n') written.append((sectname, optname)) for sect in self.sections(): self._add_missing(out, written, sect, vi) f.close() out.flush() if options["globals", "verbose"]: # save a backup of the old file shutil.copyfile(filename, filename + ".bak") # copy the new file across f = file(filename) shutil.copyfileobj(out, f) out.close() f.close()
|
bd41161609b033091f26df394d3e65b37d045eec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/bd41161609b033091f26df394d3e65b37d045eec/Options.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
768,
12,
2890,
16,
1544,
4672,
9163,
1891,
326,
1269,
1664,
585,
1093,
6309,
29140,
529,
273,
599,
2153,
529,
273,
599,
596,
273,
22791,
812,
1435,
309,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
284,
273,
585,
12,
3459,
16,
315,
86,
7923,
469,
30,
468,
3302,
1404,
1005,
16,
1427,
752,
518,
300,
777,
326,
3550,
702,
903,
468,
506,
3096,
358,
518,
309,
702,
9614,
16227,
3113,
315,
11369,
11929,
30,
1172,
315,
11092,
394,
1664,
585,
3113,
1544,
284,
273,
585,
12,
3459,
16,
315,
91,
7923,
284,
18,
4412,
1435,
284,
273,
585,
12,
3459,
16,
315,
86,
7923,
5941,
273,
5378,
13206,
273,
6398,
315,
468,
805,
31,
4692,
326,
1245,
628,
326,
585,
1625,
3323,
1323,
1053,
30,
980,
273,
284,
18,
896,
1369,
1435,
309,
486,
980,
30,
898,
468,
2879,
578,
7052,
980,
35,
309,
980,
18,
6406,
1435,
422,
875,
578,
980,
63,
20,
65,
316,
2946,
31,
4278,
596,
18,
2626,
12,
1369,
13,
1324,
309,
980,
18,
4939,
12,
7036,
16,
404,
25146,
20,
8009,
8167,
1435,
422,
296,
2764,
11,
471,
980,
63,
20,
65,
316,
315,
86,
54,
6877,
468,
1158,
7676,
7983,
596,
18,
2626,
12,
1369,
13,
1324,
468,
17378,
980,
35,
309,
980,
63,
20,
8009,
1054,
909,
1435,
471,
29140,
529,
353,
486,
599,
471,
2153,
529,
30,
1324,
468,
279,
2442,
1446,
578,
1456,
1446,
35,
469,
30,
468,
353,
518,
279,
2442,
1446,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
768,
12,
2890,
16,
1544,
4672,
9163,
1891,
326,
1269,
1664,
585,
1093,
6309,
29140,
529,
273,
599,
2153,
529,
273,
599,
596,
273,
22791,
812,
1435,
309,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
284,
273,
585,
12,
3459,
16,
315,
86,
7923,
469,
30,
468,
3302,
1404,
1005,
16,
1427,
752,
518,
300,
777,
326,
3550,
702,
903,
468,
506,
3096,
358,
518,
309,
702,
9614,
16227,
3113,
315,
11369,
11929,
30,
1172,
315,
11092,
394,
1664,
585,
3113,
1544,
284,
273,
585,
12,
3459,
16,
315,
91,
7923,
284,
18,
4412,
1435,
284,
273,
585,
12,
3459,
16,
315,
86,
7923,
5941,
273,
5378,
13206,
273,
6398,
315,
468,
805,
31,
4692,
2
] |
server_runner.__doc__ = serve.__doc__ + """
|
server_runner.__doc__ = (serve.__doc__ or '') + """
|
def server_runner(wsgi_app, global_conf, **kwargs): from paste.deploy.converters import asbool for name in ['port', 'socket_timeout', 'threadpool_workers', 'threadpool_hung_thread_limit', 'threadpool_kill_thread_limit', 'threadpool_dying_limit', 'threadpool_spawn_if_under', 'threadpool_max_zombie_threads_before_die', 'threadpool_hung_check_period', 'threadpool_max_requests']: if name in kwargs: kwargs[name] = int(kwargs[name]) for name in ['use_threadpool', 'daemon_threads']: if name in kwargs: kwargs[name] = asbool(kwargs[name]) threadpool_options = {} for name, value in kwargs.items(): if name.startswith('threadpool_') and name != 'threadpool_workers': threadpool_options[name[len('threadpool_'):]] = value del kwargs[name] if ('error_email' not in threadpool_options and 'error_email' in global_conf): threadpool_options['error_email'] = global_conf['error_email'] kwargs['threadpool_options'] = threadpool_options serve(wsgi_app, **kwargs)
|
f32390df7c543e3ba5308c83d3d3d390e0649bf1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11400/f32390df7c543e3ba5308c83d3d3d390e0649bf1/httpserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
67,
18156,
12,
28539,
67,
2910,
16,
2552,
67,
3923,
16,
2826,
4333,
4672,
628,
19401,
18,
12411,
18,
15747,
87,
1930,
487,
6430,
364,
508,
316,
10228,
655,
2187,
296,
7814,
67,
4538,
2187,
296,
5930,
6011,
67,
15625,
2187,
296,
5930,
6011,
67,
76,
20651,
67,
5930,
67,
3595,
2187,
296,
5930,
6011,
67,
16418,
67,
5930,
67,
3595,
2187,
296,
5930,
6011,
67,
72,
14946,
67,
3595,
2187,
296,
5930,
6011,
67,
1752,
9533,
67,
430,
67,
9341,
2187,
296,
5930,
6011,
67,
1896,
67,
94,
16659,
1385,
67,
12495,
67,
5771,
67,
72,
1385,
2187,
296,
5930,
6011,
67,
76,
20651,
67,
1893,
67,
6908,
2187,
296,
5930,
6011,
67,
1896,
67,
11420,
3546,
30,
309,
508,
316,
1205,
30,
1205,
63,
529,
65,
273,
509,
12,
4333,
63,
529,
5717,
364,
508,
316,
10228,
1202,
67,
5930,
6011,
2187,
296,
21511,
67,
12495,
3546,
30,
309,
508,
316,
1205,
30,
1205,
63,
529,
65,
273,
487,
6430,
12,
4333,
63,
529,
5717,
2650,
6011,
67,
2116,
273,
2618,
364,
508,
16,
460,
316,
1205,
18,
3319,
13332,
309,
508,
18,
17514,
1918,
2668,
5930,
6011,
4623,
13,
471,
508,
480,
296,
5930,
6011,
67,
15625,
4278,
2650,
6011,
67,
2116,
63,
529,
63,
1897,
2668,
5930,
6011,
4623,
4672,
13563,
273,
460,
1464,
1205,
63,
529,
65,
309,
7707,
1636,
67,
3652,
11,
486,
316,
2650,
6011,
67,
2116,
471,
296,
1636,
67,
3652,
11,
316,
2552,
67,
3923,
4672,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
67,
18156,
12,
28539,
67,
2910,
16,
2552,
67,
3923,
16,
2826,
4333,
4672,
628,
19401,
18,
12411,
18,
15747,
87,
1930,
487,
6430,
364,
508,
316,
10228,
655,
2187,
296,
7814,
67,
4538,
2187,
296,
5930,
6011,
67,
15625,
2187,
296,
5930,
6011,
67,
76,
20651,
67,
5930,
67,
3595,
2187,
296,
5930,
6011,
67,
16418,
67,
5930,
67,
3595,
2187,
296,
5930,
6011,
67,
72,
14946,
67,
3595,
2187,
296,
5930,
6011,
67,
1752,
9533,
67,
430,
67,
9341,
2187,
296,
5930,
6011,
67,
1896,
67,
94,
16659,
1385,
67,
12495,
67,
5771,
67,
72,
1385,
2187,
296,
5930,
6011,
67,
76,
20651,
67,
1893,
67,
6908,
2187,
296,
5930,
6011,
67,
1896,
67,
11420,
2
] |
if nick_re.match(cfg.dc_to_irc_prefix): LOG.error("DC nick prefix is Q-lined! Terminating.") self.transport.loseConnection() reactor.stop() return
|
if self.syncd: if nick_re.match(cfg.dc_to_irc_prefix): self.pushRemoveQLine(nickmask) return
|
def handleCmd_TKL(self, prefix, args):
|
41cfee835992c192fb2464a231351b4271c46427 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8524/41cfee835992c192fb2464a231351b4271c46427/bridge_server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
56,
47,
48,
12,
2890,
16,
1633,
16,
833,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
1640,
5931,
67,
56,
47,
48,
12,
2890,
16,
1633,
16,
833,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-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,
-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
] |
0.399123963308
|
0.39912396330...
|
def elias_bound_asymp(delta,q): """ Computes the asymptotic Elias bound for the information rate, provided 0 < delta < 1-1/q. EXAMPLES: sage: elias_bound_asymp(1/4,2) 0.399123963308 """ r = 1-1/q return RDF((1-entropy(r-sqrt(r*(r-delta)), q)))
|
007a05078dbcac71dac7847d958820f393dc0c9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/007a05078dbcac71dac7847d958820f393dc0c9c/code_bounds.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
415,
1795,
67,
3653,
67,
15762,
1291,
12,
9878,
16,
85,
4672,
3536,
14169,
281,
326,
26202,
337,
352,
335,
512,
2772,
2489,
364,
326,
1779,
4993,
16,
2112,
374,
411,
3622,
411,
404,
17,
21,
19,
85,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
415,
1795,
67,
3653,
67,
15762,
1291,
12,
21,
19,
24,
16,
22,
13,
374,
18,
23,
2733,
2138,
5520,
26,
3707,
20,
2777,
3536,
436,
273,
404,
17,
21,
19,
85,
327,
13539,
12443,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
415,
1795,
67,
3653,
67,
15762,
1291,
12,
9878,
16,
85,
4672,
3536,
14169,
281,
326,
26202,
337,
352,
335,
512,
2772,
2489,
364,
326,
1779,
4993,
16,
2112,
374,
411,
3622,
411,
404,
17,
21,
19,
85,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
415,
1795,
67,
3653,
67,
15762,
1291,
12,
21,
19,
24,
16,
22,
13,
374,
18,
23,
2733,
2138,
5520,
26,
3707,
20,
2777,
3536,
436,
273,
404,
17,
21,
19,
85,
327,
13539,
12443,
21,
17,
21937,
12,
86,
17,
24492,
12,
86,
21556,
86,
17,
9878,
13,
3631,
1043,
20349,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nqtext += ":".join(self.ex_ents)
|
nqtext += ":".join(ex_ents)
|
def VerifyDirectory(self, entry, modlist): '''Verify Directory Entry''' while len(entry.get('perms', '')) < 4: entry.set('perms', '0' + entry.get('perms', '')) try: ondisk = os.stat(entry.get('name')) except OSError: entry.set('current_exists', 'false') self.logger.debug("%s %s does not exist" % (entry.tag, entry.get('name'))) return False try: owner = str(ondisk[ST_UID]) group = str(ondisk[ST_GID]) except (OSError, KeyError): self.logger.error('User/Group resolution failed for path %s' % (entry.get('name'))) owner = 'root' group = '0' finfo = os.stat(entry.get('name')) perms = oct(finfo[ST_MODE])[-4:] if entry.get('mtime', '-1') != '-1': mtime = str(finfo[ST_MTIME]) else: mtime = '-1' pTrue = ((owner == str(normUid(entry))) and (group == str(normGid(entry))) and (perms == entry.get('perms')) and (mtime == entry.get('mtime', '-1')))
|
3d29375196c124405db4d256dc8368f39e9160d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/3d29375196c124405db4d256dc8368f39e9160d1/POSIX.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
2853,
12,
2890,
16,
1241,
16,
681,
1098,
4672,
9163,
8097,
8930,
3841,
26418,
1323,
562,
12,
4099,
18,
588,
2668,
15969,
2187,
875,
3719,
411,
1059,
30,
1241,
18,
542,
2668,
15969,
2187,
296,
20,
11,
397,
1241,
18,
588,
2668,
15969,
2187,
875,
3719,
775,
30,
603,
10863,
273,
1140,
18,
5642,
12,
4099,
18,
588,
2668,
529,
26112,
1335,
10002,
30,
1241,
18,
542,
2668,
2972,
67,
1808,
2187,
296,
5743,
6134,
365,
18,
4901,
18,
4148,
27188,
87,
738,
87,
1552,
486,
1005,
6,
738,
261,
4099,
18,
2692,
16,
1241,
18,
588,
2668,
529,
11,
20349,
327,
1083,
775,
30,
3410,
273,
609,
12,
1434,
10175,
63,
882,
67,
3060,
5717,
1041,
273,
609,
12,
1434,
10175,
63,
882,
67,
28258,
5717,
1335,
261,
4618,
668,
16,
4999,
4672,
365,
18,
4901,
18,
1636,
2668,
1299,
19,
1114,
7861,
2535,
364,
589,
738,
87,
11,
738,
261,
4099,
18,
588,
2668,
529,
11,
20349,
3410,
273,
296,
3085,
11,
1041,
273,
296,
20,
11,
15190,
273,
1140,
18,
5642,
12,
4099,
18,
588,
2668,
529,
26112,
13793,
273,
10844,
12,
926,
617,
63,
882,
67,
7038,
5717,
18919,
24,
26894,
309,
1241,
18,
588,
2668,
10838,
2187,
2400,
21,
6134,
480,
2400,
21,
4278,
13158,
273,
609,
12,
926,
617,
63,
882,
67,
49,
4684,
5717,
469,
30,
13158,
273,
2400,
21,
11,
293,
5510,
273,
14015,
8443,
422,
609,
12,
7959,
11994,
12,
4099,
20349,
471,
261,
1655,
422,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2853,
12,
2890,
16,
1241,
16,
681,
1098,
4672,
9163,
8097,
8930,
3841,
26418,
1323,
562,
12,
4099,
18,
588,
2668,
15969,
2187,
875,
3719,
411,
1059,
30,
1241,
18,
542,
2668,
15969,
2187,
296,
20,
11,
397,
1241,
18,
588,
2668,
15969,
2187,
875,
3719,
775,
30,
603,
10863,
273,
1140,
18,
5642,
12,
4099,
18,
588,
2668,
529,
26112,
1335,
10002,
30,
1241,
18,
542,
2668,
2972,
67,
1808,
2187,
296,
5743,
6134,
365,
18,
4901,
18,
4148,
27188,
87,
738,
87,
1552,
486,
1005,
6,
738,
261,
4099,
18,
2692,
16,
1241,
18,
588,
2668,
529,
11,
20349,
327,
1083,
775,
30,
3410,
273,
609,
12,
1434,
10175,
63,
882,
67,
3060,
5717,
1041,
2
] |
if sage.modules.free_module_element.is_FreeModuleElement(x):
|
if free_module_element.is_FreeModuleElement(x):
|
def __init__(self, parent, x, check=True): r""" Create with ``DirichletCharacter(parent, values_on_gens)`` INPUT: - ``parent`` - DirichletGroup, a group of Dirichlet characters - ``x``
|
80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
16,
866,
33,
5510,
4672,
436,
8395,
1788,
598,
12176,
1621,
1354,
1810,
7069,
12,
2938,
16,
924,
67,
265,
67,
23730,
13,
10335,
225,
12943,
30,
282,
300,
225,
12176,
2938,
10335,
300,
8446,
1354,
1810,
1114,
16,
279,
1041,
434,
8446,
1354,
1810,
3949,
225,
300,
225,
12176,
92,
10335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
16,
866,
33,
5510,
4672,
436,
8395,
1788,
598,
12176,
1621,
1354,
1810,
7069,
12,
2938,
16,
924,
67,
265,
67,
23730,
13,
10335,
225,
12943,
30,
282,
300,
225,
12176,
2938,
10335,
300,
8446,
1354,
1810,
1114,
16,
279,
1041,
434,
8446,
1354,
1810,
3949,
225,
300,
225,
12176,
92,
10335,
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,
-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,
-100,
-100,
-100
] |
sqlite_defines.append(('PY_MINOR_VERSION',
|
sqlite_defines.append(('PY_MINOR_VERSION',
|
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
1e257c03d783aa423a5326d235b7cad3e7b9b6de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1e257c03d783aa423a5326d235b7cad3e7b9b6de/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
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,
-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,
-100,
-100
] |
print classname, "warning", fn["name"], "parameter is overridden const but was not originally var"
|
print classname, "warning", fn["name"], "parameter is overridden 'out' but was not originally 'var'"
|
def func_cb(varname, fn): global classname global cclassconstructparams global c2pfuncparamoverride global pextratypes global c2pcallbackpointers global preturntransformers global poverridearraytypes global wrapperpointerprefix global wrapperprefix global pstringtype global interfaceprefix if fn["name"] in c2pfuncparamoverride: overridep = c2pfuncparamoverride[fn["name"]] else: overridep = None if varname == "poverrideornot": if fn["name"].endswith("_sink"): return "override;" elif fn["name"] == "gtk_object_destroy": return "virtual;" return "" if varname == "pclassifier": if isMemberFN(fn) or isInterfaceImplementationFN(fn): return "" else: if isInInterfaceMode(): return "//class" else: return "class" if varname == "preturntransformer": ret = func_cb("preturn", fn) if ret in preturntransformers: return preturntransformers[ret] if ret == "Single": return "" # workaround, fixme Lowlevel return ret if varname == "preturn": if fn["return"] == "gchar**": preturn = arrayTypeOf(pstringtype) else: preturn = c2ptype(fn["return"]) if preturn != None: if preturn.startswith("var "): preturn = preturn[4:] if isFNListReturnOverride(fn): preturn = getFNListReturnOverride(fn)["preturn"] # support ICloneable interface by modding the return type to ICloneable # function Clone: ICloneable; ## TODO parent supports ICloneable ? if fn["name"] == ("%s_copy" % uscclassname): assert(len(fn["args"]) == 1) rover = getFNListReturnOverride(fn) if rover != None and "kind" in rover and rover["kind"] == "interface": preturn = "ICloneable" else: print classname, "warning", fn["name"], "missing interface return override" return preturn if varname == "preturnerrorcode": if isFNListReturnOverride(fn): return getFNListReturnOverride(fn)["errorcode"] else: print classname, "warning", "no known error code for", fn["name"], "; Hint: use 'errorcode' return override" return "?" if varname == "preturnitemrawtype": if not isFNListReturnOverride(fn): print classname, "error", "no list return overide for", fn["name"], "(preturnitemrawtype)" arritemt = getFNListReturnOverride(fn)["arritemt"] if arritemt.startswith(interfaceprefix): nativetype = wrapperpointerprefix + arritemt[len(interfaceprefix):] elif arritemt == "TGtkAccelGroupEntry": # var ? nativetype = wrapperpointerprefix + arritemt[1:] # cough. #print "nativetype", nativetype elif arritemt == pstringtype: #"UTF8String": # or so try: nativetype = getFNListReturnOverride(fn)["arritemraw"] except: nativetype = "PChar" print classname, "warning, no nativetype for return value of function ", fn["name"], "assuming PChar" #"PChar" if nativetype == "?": print classname, "error", fn["name"], "have", nativetype, "for", arritemt else: print classname, "error, cannot find nativetype for ", arritemt, "for function", fn["name"] #print "native", nativetype return nativetype if varname == "wrapperexpectedtype": arritemt = getFNListReturnOverride(fn)["arritemt"] if arritemt.startswith(interfaceprefix): return wrapperpointerprefix + "GObject" # FIXME others if classname == "GtkAccelGroup" and arritemt == "TGtkAccelGroupEntry": #print arritemt #== "GtkAccelGroupEntry*" and #print "YES" return "gtkAccelGroupEntryFromPointer" #if classname == "GtkAccelGroup": # FIXME do that somewhere else (*fromcarray) # if arritemt.startswith(classprefix): # return wrapperpointerprefix + arritemt[len(classprefix):] return "" if varname == "preturnitemtype": if (c2pfnname(fn["name"]) == "Clone"): arritemt = interfaceprefix + "Cloneable" else: arritemt = getFNListReturnOverride(fn)["arritemt"] if isInterface(arritemt): needInterface(arritemt) needImplementationUnitForClass(implementationClassForInterface(arritemt)) return arritemt if varname == "preturnitemtypeas": res = func_cb("preturnitemtype", fn) if isInterface(res) or isImplementationClass(res): return " as %s" % res else: return "" if varname == "preturnlistfinalizer": return getFNListReturnOverride(fn)["pendfree"] if varname == "preturnperitempreaction": try: return getFNListReturnOverride(fn)["pforeach"] except: print classname, "error", fn["name"], "pforeach not found in config" raise return pforeach if varname == "pfreeforeachitem": return getFNListReturnOverride(fn)["pforeachfree"] if varname == "preturnitemclassname": return getFNListReturnOverride(fn)["pclassconstruct"] if varname == "pfunction": return c2pfnname(fn["name"]) if varname == "cfunction": return fn["name"] if varname == "pfunctionparams": a = [] args = fn["args"] invalidlist = getInvalidArgs(fn, args) ixo = 0 if isMemberFN(fn) or isInterfaceImplementationFN(fn): #if len(args) > 0 and args[0][0].lower() == classname.lower() + "*": args = args[1:] # skip instance param ixo = -1 if len(args) > 0 and args[-1][0] == "GError**": args = args[:-1] #print args[0][0] ix = 1-ixo for argtyp, argname in args: canvar = False fnover = getFNListParamOverride(fn, ix) adefault = getFNListParamDefault(fn, ix) ptypeover = None if fnover != None and len(fnover) > 0: c = fnover[0] try: t = fnover[1] it = c2ptype(t) #if isEnum(it): if it.startswith("T"): # FIXME! after conv it = it[1:] except: t = None it = None if c == "type": ptypeover = t if c == "varany": ptypeover = "var " if c == "forceinstring": # for "gchar*" instead of "const gchar*" bug (gtk_paint_shadow_gap) ptypeover = pstringtype if c == "pointer": #print "pointer", fn ptypeover = "Pointer" if c == "ccallback": # TODO pass if c == "userdata": ptypeover = "Pointer" # fixme argname = "userdata" if c == "tvarargs": ptypeover = "const TVarrecArray" argname = "avarargs" if c == "varargs": ptypeover = "array of const" argname = "avarargs" if c == "array": ptypeover = "T%sArray" % it if c == "carray": ptypeover = "T%sArray" % it if c == "varcarray": ptypeover = "var T%sArray" % it if c == "const": ptype = c2ptype(argtyp, False, canvar) if ptype.startswith("var "): ptypeover = "const " + ptype[4:] else: print classname, "warning", fn["name"], "parameter is overridden const but was not originally var" if c == "out": ptype = c2ptype(argtyp, False, canvar) if ptype.startswith("var "): ptypeover = "out " + ptype[4:] else: print classname, "warning", fn["name"], "parameter is overridden const but was not originally var" if ptypeover != None: ptype = ptypeover else: try: ptype = c2ptype(argtyp, False, canvar) except: print classname, "info: while doing", fn raise pname = argname if ptype == None: print classname, "info: while doing", fn # TODO var if ptype == "TGTypeArray": ptype = "ugtypes.TGTypeArray" # weird workaround #elif ptype == "TGIntArray": # pargtyp = "ugtype.TGIntArray", # weird workaround if ptype != None and ptype.startswith("var "): ptype = ptype[4:] if ptype == "": a.append("var %s" % pname) else: a.append("var %s: %s" % (pname, ptype)) elif ptype != None and ptype.startswith("const "): ptype = ptype[6:] a.append("const %s: %s" % (pname, ptype)) elif ptype != None and ptype.startswith("out "): ptype = ptype[4:] a.append("out %s: %s" % (pname, ptype)) else: a.append("%s: %s" % (pname, ptype)) if isDebug() and ptypeover != None: print "overridden", a if adefault != None: a[-1] = a[-1] + " = " + adefault ix = ix + 1 offs = - ixo for item in invalidlist: ix = item - offs try: a = a[:ix] + a[ix+1:] except: print "??!" pass offs = offs + 1 return ";".join(a) if varname == "cfunctioncallparams": a = getCfunctioncallparams(fn) # TODO @ return ",".join(a) print varname return None
|
18da3727386bfab1a4356cdae87ddce393e0db6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2589/18da3727386bfab1a4356cdae87ddce393e0db6e/tool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
7358,
12,
1401,
529,
16,
2295,
4672,
2552,
7479,
2552,
15964,
10062,
2010,
2552,
276,
22,
84,
644,
891,
10601,
2552,
293,
14523,
13373,
2552,
276,
22,
84,
3394,
10437,
87,
2552,
675,
20922,
6547,
414,
2552,
8275,
1197,
1126,
2352,
2552,
4053,
10437,
3239,
2552,
4053,
3239,
2552,
293,
1080,
723,
2552,
1560,
3239,
309,
2295,
9614,
529,
11929,
316,
276,
22,
84,
644,
891,
10601,
30,
3849,
84,
273,
276,
22,
84,
644,
891,
10601,
63,
4293,
9614,
529,
11929,
65,
469,
30,
3849,
84,
273,
599,
225,
309,
15434,
422,
315,
1631,
1197,
280,
902,
6877,
309,
2295,
9614,
529,
6,
8009,
5839,
1918,
2932,
67,
17074,
6,
4672,
327,
315,
10601,
4868,
1327,
2295,
9614,
529,
11929,
422,
315,
4521,
79,
67,
1612,
67,
11662,
6877,
327,
315,
12384,
4868,
225,
327,
1408,
225,
309,
15434,
422,
315,
84,
1106,
1251,
6877,
309,
353,
4419,
19793,
12,
4293,
13,
578,
21456,
13621,
19793,
12,
4293,
4672,
327,
1408,
469,
30,
309,
8048,
1358,
2309,
13332,
327,
16177,
1106,
6,
469,
30,
327,
315,
1106,
6,
225,
309,
15434,
422,
315,
84,
2463,
21523,
6877,
325,
273,
1326,
67,
7358,
2932,
84,
2463,
3113,
2295,
13,
225,
309,
325,
316,
675,
20922,
6547,
414,
30,
327,
675,
20922,
6547,
414,
63,
1349,
65,
225,
309,
325,
422,
315,
5281,
6877,
327,
1408,
468,
18975,
16,
2917,
3501,
23629,
2815,
225,
327,
325,
225,
309,
15434,
422,
315,
84,
2463,
6877,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
7358,
12,
1401,
529,
16,
2295,
4672,
2552,
7479,
2552,
15964,
10062,
2010,
2552,
276,
22,
84,
644,
891,
10601,
2552,
293,
14523,
13373,
2552,
276,
22,
84,
3394,
10437,
87,
2552,
675,
20922,
6547,
414,
2552,
8275,
1197,
1126,
2352,
2552,
4053,
10437,
3239,
2552,
4053,
3239,
2552,
293,
1080,
723,
2552,
1560,
3239,
309,
2295,
9614,
529,
11929,
316,
276,
22,
84,
644,
891,
10601,
30,
3849,
84,
273,
276,
22,
84,
644,
891,
10601,
63,
4293,
9614,
529,
11929,
65,
469,
30,
3849,
84,
273,
599,
225,
309,
15434,
422,
315,
1631,
1197,
280,
902,
6877,
309,
2295,
9614,
529,
6,
8009,
5839,
1918,
2932,
67,
17074,
6,
4672,
327,
315,
10601,
4868,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.