rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
author = getpageinfo_result[0]['author'][5:] datestr = str(getpageinfo_result[0]['lastModified']) | author = getpageinfo_result['author'][5:] datestr = str(getpageinfo_result['lastModified']) | def get_page_info(self, command): """Returns detailed information about a given page""" | 41eab09adfae81e3655fe6299a31bde71c702548 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/41eab09adfae81e3655fe6299a31bde71c702548/xmlrpcbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2433,
67,
1376,
12,
2890,
16,
1296,
4672,
3536,
1356,
6864,
1779,
2973,
279,
864,
1363,
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,
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
] |
hv = HValue(self.volume) | hv = HValue(self.volume[dir]) | def opsSetVolume(self, dir, chn, value): val = self.volumeFromUser(self.volumeinfo[dir], dir, value) if self.volumearray[dir][chn] == val: return self.volumearray[dir][chn] = val hv = HValue(self.volume) hv.setArray(self.volumeinfo[dir].type, self.volumearray[dir]) hv.write() | de2b7a42d740d544f478d9b5d5ce90301862fdd1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3300/de2b7a42d740d544f478d9b5d5ce90301862fdd1/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6727,
694,
4545,
12,
2890,
16,
1577,
16,
462,
82,
16,
460,
4672,
1244,
273,
365,
18,
9491,
1265,
1299,
12,
2890,
18,
9491,
1376,
63,
1214,
6487,
1577,
16,
460,
13,
309,
365,
18,
9491,
1126,
63,
1214,
6362,
343,
82,
65,
422,
1244,
30,
327,
365,
18,
9491,
1126,
63,
1214,
6362,
343,
82,
65,
273,
1244,
366,
90,
273,
670,
620,
12,
2890,
18,
9491,
63,
1214,
5717,
366,
90,
18,
542,
1076,
12,
2890,
18,
9491,
1376,
63,
1214,
8009,
723,
16,
365,
18,
9491,
1126,
63,
1214,
5717,
366,
90,
18,
2626,
1435,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6727,
694,
4545,
12,
2890,
16,
1577,
16,
462,
82,
16,
460,
4672,
1244,
273,
365,
18,
9491,
1265,
1299,
12,
2890,
18,
9491,
1376,
63,
1214,
6487,
1577,
16,
460,
13,
309,
365,
18,
9491,
1126,
63,
1214,
6362,
343,
82,
65,
422,
1244,
30,
327,
365,
18,
9491,
1126,
63,
1214,
6362,
343,
82,
65,
273,
1244,
366,
90,
273,
670,
620,
12,
2890,
18,
9491,
63,
1214,
5717,
366,
90,
18,
542,
1076,
12,
2890,
18,
9491,
1376,
63,
1214,
8009,
723,
16,
365,
18,
9491,
1126,
63,
1214,
5717,
366,
90,
18,
2626,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
text = ki18n("`%1' has been added, using the `%2' driver.").subs(name).subs(driver).toString() | text = ki18n("'%1' has been added, using the '%2' driver.").subs(name).subs(driver).toString() | def NewPrinter (self, status, name, mfg, mdl, des, cmd): """hal-cups-utils has set up a new printer""" """ print "status: " + str(status) print "name: " + name print "mfg: " + mfg print "mdl: " + mdl print "des: " + des print "cmd: " + cmd """ | 8bb11784d3e5c1341249c8727c0a9bb0c7fb6608 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1682/8bb11784d3e5c1341249c8727c0a9bb0c7fb6608/printer-applet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1166,
12149,
261,
2890,
16,
1267,
16,
508,
16,
312,
2137,
16,
3481,
80,
16,
2832,
16,
1797,
4672,
3536,
22314,
17,
71,
18294,
17,
5471,
711,
444,
731,
279,
394,
12539,
8395,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1166,
12149,
261,
2890,
16,
1267,
16,
508,
16,
312,
2137,
16,
3481,
80,
16,
2832,
16,
1797,
4672,
3536,
22314,
17,
71,
18294,
17,
5471,
711,
444,
731,
279,
394,
12539,
8395,
3536,
1172,
315,
2327,
30,
315,
397,
609,
12,
2327,
13,
1172,
315,
529,
30,
315,
397,
508,
1172,
315,
81,
2137,
30,
315,
397,
312,
2137,
1172,
315,
1264,
80,
30,
315,
397,
3481,
80,
1172,
315,
5489,
30,
315,
397,
2832,
1172,
315,
4172,
30,
315,
397,
1797,
3536,
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
] |
self.write(")" + self.binop[t.op.__class__.__name__] + "(") | self.write(" " + self.binop[t.op.__class__.__name__] + " ") | def _BinOp(self, t): self.write("(") self.dispatch(t.left) self.write(")" + self.binop[t.op.__class__.__name__] + "(") self.dispatch(t.right) self.write(")") | cb0813c7fd0cbadb8e73d810beafa8afbceafda7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb0813c7fd0cbadb8e73d810beafa8afbceafda7/unparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9913,
3817,
12,
2890,
16,
268,
4672,
365,
18,
2626,
2932,
2932,
13,
365,
18,
10739,
12,
88,
18,
4482,
13,
365,
18,
2626,
2932,
315,
397,
365,
18,
4757,
556,
63,
88,
18,
556,
16186,
1106,
972,
16186,
529,
972,
65,
397,
315,
9369,
365,
18,
10739,
12,
88,
18,
4083,
13,
365,
18,
2626,
2932,
2225,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9913,
3817,
12,
2890,
16,
268,
4672,
365,
18,
2626,
2932,
2932,
13,
365,
18,
10739,
12,
88,
18,
4482,
13,
365,
18,
2626,
2932,
315,
397,
365,
18,
4757,
556,
63,
88,
18,
556,
16186,
1106,
972,
16186,
529,
972,
65,
397,
315,
9369,
365,
18,
10739,
12,
88,
18,
4083,
13,
365,
18,
2626,
2932,
2225,
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
] |
x0 = asarray(x0) | x0 = asarray(x0).squeeze() if x0.ndim == 0: x0.shape = (1,) | def fmin_bfgs(f, x0, fprime=None, args=(), gtol=1e-5, norm=Inf, epsilon=_epsilon, maxiter=None, full_output=0, disp=1, retall=0, callback=None): """Minimize a function using the BFGS algorithm. Description: Optimize the function, f, whose gradient is given by fprime using the quasi-Newton method of Broyden, Fletcher, Goldfarb, and Shanno (BFGS) See Wright, and Nocedal 'Numerical Optimization', 1999, pg. 198. Inputs: f -- the Python function or method to be minimized. x0 -- the initial guess for the minimizer. fprime -- a function to compute the gradient of f. args -- extra arguments to f and fprime. gtol -- gradient norm must be less than gtol before succesful termination norm -- order of norm (Inf is max, -Inf is min) epsilon -- if fprime is approximated use this value for the step size (can be scalar or vector) callback -- an optional user-supplied function to call after each iteration. It is called as callback(xk), where xk is the current parameter vector. Outputs: (xopt, {fopt, gopt, Hopt, func_calls, grad_calls, warnflag}, <allvecs>) xopt -- the minimizer of f. fopt -- the value of f(xopt). gopt -- the value of f'(xopt). (Should be near 0) Bopt -- the value of 1/f''(xopt). (inverse hessian matrix) func_calls -- the number of function_calls. grad_calls -- the number of gradient calls. warnflag -- an integer warning flag: 1 : 'Maximum number of iterations exceeded.' 2 : 'Gradient and/or function calls not changing' allvecs -- a list of all iterates (only returned if retall==1) Additional Inputs: maxiter -- the maximum number of iterations. full_output -- if non-zero then return fopt, func_calls, grad_calls, and warnflag in addition to xopt. disp -- print convergence message if non-zero. retall -- return a list of results at each iteration if non-zero See also: fmin, fmin_powell, fmin_cg, fmin_bfgs, fmin_ncg -- multivariate local optimizers leastsq -- nonlinear least squares minimizer fmin_l_bfgs_b, fmin_tnc, fmin_cobyla -- constrained multivariate optimizers anneal, brute -- global optimizers fminbound, brent, golden, bracket -- local scalar minimizers fsolve -- n-dimenstional root-finding brentq, brenth, ridder, bisect, newton -- one-dimensional root-finding fixed_point -- scalar fixed-point finder """ x0 = asarray(x0) if maxiter is None: maxiter = len(x0)*200 func_calls, f = wrap_function(f, args) if fprime is None: grad_calls, myfprime = wrap_function(approx_fprime, (f, epsilon)) else: grad_calls, myfprime = wrap_function(fprime, args) gfk = myfprime(x0) k = 0 N = len(x0) I = numpy.eye(N,dtype=int) Hk = I old_fval = f(x0) old_old_fval = old_fval + 5000 xk = x0 if retall: allvecs = [x0] sk = [2*gtol] warnflag = 0 gnorm = vecnorm(gfk,ord=norm) while (gnorm > gtol) and (k < maxiter): pk = -numpy.dot(Hk,gfk) alpha_k, fc, gc, old_fval, old_old_fval, gfkp1 = \ linesearch.line_search(f,myfprime,xk,pk,gfk, old_fval,old_old_fval) if alpha_k is None: # line search failed try different one. alpha_k, fc, gc, old_fval, old_old_fval, gfkp1 = \ line_search(f,myfprime,xk,pk,gfk, old_fval,old_old_fval) if alpha_k is None: # This line search also failed to find a better solution. warnflag = 2 break xkp1 = xk + alpha_k * pk if retall: allvecs.append(xkp1) sk = xkp1 - xk xk = xkp1 if gfkp1 is None: gfkp1 = myfprime(xkp1) yk = gfkp1 - gfk gfk = gfkp1 if callback is not None: callback(xk) k += 1 gnorm = vecnorm(gfk,ord=norm) if (gnorm <= gtol): break try: rhok = 1 / (numpy.dot(yk,sk)) except ZeroDivisionError: rhok = 1000. print "Divide-by-zero encountered: rhok assumed large" A1 = I - sk[:,numpy.newaxis] * yk[numpy.newaxis,:] * rhok A2 = I - yk[:,numpy.newaxis] * sk[numpy.newaxis,:] * rhok Hk = numpy.dot(A1,numpy.dot(Hk,A2)) + rhok * sk[:,numpy.newaxis] \ * sk[numpy.newaxis,:] if disp or full_output: fval = old_fval if warnflag == 2: if disp: print "Warning: Desired error not necessarily achieved due to precision loss" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls[0] print " Gradient evaluations: %d" % grad_calls[0] elif k >= maxiter: warnflag = 1 if disp: print "Warning: Maximum number of iterations has been exceeded" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls[0] print " Gradient evaluations: %d" % grad_calls[0] else: if disp: print "Optimization terminated successfully." print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls[0] print " Gradient evaluations: %d" % grad_calls[0] if full_output: retlist = xk, fval, gfk, Hk, func_calls[0], grad_calls[0], warnflag if retall: retlist += (allvecs,) else: retlist = xk if retall: retlist = (xk, allvecs) return retlist | 669899600f7d37529c8fd56dac9b1fbd72fe22f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/669899600f7d37529c8fd56dac9b1fbd72fe22f2/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
17156,
564,
12,
74,
16,
619,
20,
16,
284,
16382,
33,
7036,
16,
833,
33,
9334,
314,
3490,
33,
21,
73,
17,
25,
16,
4651,
33,
13149,
16,
12263,
33,
67,
13058,
10327,
16,
25743,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
16,
1348,
33,
7036,
4672,
3536,
2930,
10153,
279,
445,
1450,
326,
605,
42,
16113,
4886,
18,
225,
6507,
30,
225,
12056,
10153,
326,
445,
16,
284,
16,
8272,
10292,
353,
864,
635,
284,
16382,
1450,
326,
719,
31653,
17,
1908,
1917,
707,
434,
605,
3800,
13002,
16,
3857,
1593,
264,
16,
611,
1673,
74,
6779,
16,
471,
2638,
1072,
83,
261,
15259,
16113,
13,
2164,
678,
4083,
16,
471,
2631,
3263,
287,
296,
2578,
10882,
19615,
1588,
2187,
404,
11984,
16,
7184,
18,
5342,
28,
18,
225,
24472,
30,
225,
284,
1493,
326,
6600,
445,
578,
707,
358,
506,
18172,
1235,
18,
619,
20,
1493,
326,
2172,
7274,
364,
326,
18172,
1824,
18,
225,
284,
16382,
1493,
279,
445,
358,
3671,
326,
10292,
434,
284,
18,
833,
1493,
2870,
1775,
358,
284,
471,
284,
16382,
18,
314,
3490,
1493,
10292,
4651,
1297,
506,
5242,
2353,
314,
3490,
1865,
8667,
764,
2706,
19650,
4651,
1493,
1353,
434,
4651,
261,
13149,
353,
943,
16,
300,
13149,
353,
1131,
13,
12263,
1493,
309,
284,
16382,
353,
10818,
17275,
999,
333,
460,
364,
326,
2235,
963,
261,
4169,
506,
4981,
578,
3806,
13,
1348,
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,
284,
1154,
67,
17156,
564,
12,
74,
16,
619,
20,
16,
284,
16382,
33,
7036,
16,
833,
33,
9334,
314,
3490,
33,
21,
73,
17,
25,
16,
4651,
33,
13149,
16,
12263,
33,
67,
13058,
10327,
16,
25743,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
16,
1348,
33,
7036,
4672,
3536,
2930,
10153,
279,
445,
1450,
326,
605,
42,
16113,
4886,
18,
225,
6507,
30,
225,
12056,
10153,
326,
445,
16,
284,
16,
8272,
10292,
353,
864,
635,
284,
16382,
1450,
326,
719,
31653,
17,
1908,
1917,
707,
434,
605,
3800,
13002,
16,
3857,
1593,
264,
16,
611,
1673,
74,
6779,
16,
471,
2638,
1072,
83,
261,
15259,
2
] |
parser.add_option("-p", "--prefer", action="append", metavar="BUILDER", dest="prefer", default=defaults.get("prefer", []), | parser.add_option("-p", "--prefer", action="appendResetDefault", metavar="BUILDER", dest="prefer", default=defaults.get("prefer", []), | def buildParser(self): usage = "%prog [options] [build | list]" description = self.DESCRIPTION version = """%%prog %s | 4f2b1b2bc6a5e1aac8f432abb14bdafad0ee9a99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/4f2b1b2bc6a5e1aac8f432abb14bdafad0ee9a99/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2678,
12,
2890,
4672,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
3510,
571,
666,
4279,
2477,
273,
365,
18,
15911,
1177,
273,
3536,
11438,
14654,
738,
87,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2678,
12,
2890,
4672,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
3510,
571,
666,
4279,
2477,
273,
365,
18,
15911,
1177,
273,
3536,
11438,
14654,
738,
87,
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
] |
for id in selected_rows: iter = dest_tablist.iter_map[id] parent = model.parent_iter(iter) if parent is None or dest_tablist.view.is_row_expanded(parent): dest_tablist.view.select(iter) | try: for id in selected_rows: iter = dest_tablist.iter_map[id] parent = model.parent_iter(iter) if parent is None or dest_tablist.view.is_row_expanded(parent): dest_tablist.view.select(iter) except: pass | def accept_drop(self, table_view, model, type, source_actions, parent, position, data): if (type in ('feed', 'feed-with-folder') and self.tablist == app.tab_list_manager.audio_feed_list): source_tablist = app.tab_list_manager.feed_list dest_tablist = self.tablist elif (type in ('audio-feed', 'audio-feed-with-folder') and self.tablist == app.tab_list_manager.feed_list): source_tablist = app.tab_list_manager.audio_feed_list dest_tablist = self.tablist else: source_tablist = dest_tablist = self.tablist selected_infos = app.tab_list_manager.get_selection()[1] selected_rows = [info.id for info in selected_infos] source_tablist.doing_change = dest_tablist.doing_change = True source_tablist.view.unselect_all() dest_tablist.view.unselect_all() dragged_ids = set([int(id) for id in data.split('-')]) expanded_rows = [id for id in dragged_ids if \ source_tablist.view.is_row_expanded(source_tablist.iter_map[id])] reorderer = TabDnDReorder() try: new_iters = reorderer.reorder( source_tablist.view.model, dest_tablist.view.model, parent, position, dragged_ids) | b76152e37483f6ffafdd718e994d0e0cdb9ac5ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/b76152e37483f6ffafdd718e994d0e0cdb9ac5ee/tablist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
67,
7285,
12,
2890,
16,
1014,
67,
1945,
16,
938,
16,
618,
16,
1084,
67,
4905,
16,
982,
16,
1754,
16,
501,
4672,
309,
261,
723,
316,
7707,
7848,
2187,
296,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
11509,
67,
7848,
67,
1098,
4672,
1084,
67,
7032,
1098,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
1327,
261,
723,
316,
7707,
11509,
17,
7848,
2187,
296,
11509,
17,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
4672,
1084,
67,
7032,
1098,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
11509,
67,
7848,
67,
1098,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
469,
30,
1084,
67,
7032,
1098,
273,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
3170,
67,
18227,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
588,
67,
10705,
1435,
63,
21,
65,
3170,
67,
3870,
273,
306,
1376,
18,
350,
364,
1123,
316,
3170,
67,
18227,
65,
1084,
67,
7032,
1098,
18,
2896,
310,
67,
3427,
273,
1570,
67,
7032,
1098,
18,
2896,
310,
67,
3427,
273,
1053,
1084,
67,
7032,
1098,
18,
1945,
18,
318,
4025,
67,
454,
1435,
1570,
67,
7032,
1098,
18,
1945,
18,
318,
4025,
67,
454,
1435,
8823,
2423,
67,
2232,
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,
2791,
67,
7285,
12,
2890,
16,
1014,
67,
1945,
16,
938,
16,
618,
16,
1084,
67,
4905,
16,
982,
16,
1754,
16,
501,
4672,
309,
261,
723,
316,
7707,
7848,
2187,
296,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
11509,
67,
7848,
67,
1098,
4672,
1084,
67,
7032,
1098,
273,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
1570,
67,
7032,
1098,
273,
365,
18,
7032,
1098,
1327,
261,
723,
316,
7707,
11509,
17,
7848,
2187,
296,
11509,
17,
7848,
17,
1918,
17,
5609,
6134,
471,
365,
18,
7032,
1098,
422,
595,
18,
7032,
67,
1098,
67,
4181,
18,
7848,
67,
1098,
2
] |
if italic: italic = 0 elif bold: bold = 0 | if plainname != fontname: gotbold = bold gotitalic = italic | def SysFont(name, size, bold=0, italic=0): """pygame.font.SysFont(name, size, bold=0, italic=0) -> Font create a pygame Font from system font resources This will search the system fonts for the given font name. You can also enable bold or italic styles, and the appropriate system font will be selected if available. This will always return a valid Font object, and will fallback on the builtin pygame font if the given font is not found. Name can also be a comma separated list of names, in which case set of names will be searched in order. Pygame uses a small set of common font aliases, if the specific font you ask for is not available, a reasonable alternative may be used. """ import pygame.font if not Sysfonts: initsysfonts() fontname = None if name: allnames = name for name in allnames.split(','): origbold = bold origitalic = italic name = _simplename(name) styles = Sysfonts.get(name) if not styles: styles = Sysalias.get(name) if styles: while not fontname: fontname = styles.get((bold, italic)) if italic: italic = 0 elif bold: bold = 0 elif not fontname: fontname = styles.values()[0] if fontname: break font = pygame.font.Font(fontname, size) if name: if origbold and not bold: font.set_bold(1) if origitalic and not italic: font.set_italic(1) else: if bold: font.set_bold(1) elif italic: font.set_italic(1) return font | ca5d89783ff94ee98c45799f2426265c7e24f7ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/ca5d89783ff94ee98c45799f2426265c7e24f7ac/sysfont.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16995,
5711,
12,
529,
16,
963,
16,
13068,
33,
20,
16,
31709,
33,
20,
4672,
3536,
2074,
13957,
18,
5776,
18,
12712,
5711,
12,
529,
16,
963,
16,
13068,
33,
20,
16,
31709,
33,
20,
13,
317,
10063,
752,
279,
2395,
13957,
10063,
628,
2619,
3512,
2703,
225,
1220,
903,
1623,
326,
2619,
16450,
364,
326,
864,
3512,
508,
18,
4554,
848,
2546,
4237,
13068,
578,
31709,
5687,
16,
471,
326,
5505,
2619,
3512,
903,
506,
3170,
309,
2319,
18,
225,
1220,
903,
3712,
327,
279,
923,
10063,
733,
16,
471,
903,
5922,
603,
326,
15273,
2395,
13957,
3512,
309,
326,
864,
3512,
353,
486,
1392,
18,
225,
1770,
848,
2546,
506,
279,
8716,
8936,
666,
434,
1257,
16,
316,
1492,
648,
444,
434,
1257,
903,
506,
19242,
316,
1353,
18,
453,
4338,
339,
4692,
279,
5264,
444,
434,
2975,
3512,
6900,
16,
309,
326,
2923,
3512,
1846,
6827,
364,
353,
486,
2319,
16,
279,
23589,
10355,
2026,
506,
1399,
18,
3536,
1930,
2395,
13957,
18,
5776,
225,
309,
486,
16995,
22052,
30,
1208,
9499,
22052,
1435,
225,
3512,
529,
273,
599,
309,
508,
30,
777,
1973,
273,
508,
364,
508,
316,
777,
1973,
18,
4939,
12,
17023,
4672,
1647,
16390,
273,
13068,
1647,
7053,
335,
273,
31709,
508,
273,
389,
9812,
412,
1069,
12,
529,
13,
5687,
273,
16995,
22052,
18,
588,
12,
529,
13,
309,
486,
5687,
30,
5687,
273,
16995,
4930,
18,
588,
12,
529,
13,
309,
5687,
30,
1323,
486,
3512,
529,
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,
16995,
5711,
12,
529,
16,
963,
16,
13068,
33,
20,
16,
31709,
33,
20,
4672,
3536,
2074,
13957,
18,
5776,
18,
12712,
5711,
12,
529,
16,
963,
16,
13068,
33,
20,
16,
31709,
33,
20,
13,
317,
10063,
752,
279,
2395,
13957,
10063,
628,
2619,
3512,
2703,
225,
1220,
903,
1623,
326,
2619,
16450,
364,
326,
864,
3512,
508,
18,
4554,
848,
2546,
4237,
13068,
578,
31709,
5687,
16,
471,
326,
5505,
2619,
3512,
903,
506,
3170,
309,
2319,
18,
225,
1220,
903,
3712,
327,
279,
923,
10063,
733,
16,
471,
903,
5922,
603,
326,
15273,
2395,
13957,
3512,
309,
326,
864,
3512,
353,
486,
1392,
18,
225,
1770,
848,
2546,
506,
279,
8716,
8936,
666,
434,
1257,
2
] |
print "Solver.Solve() return code = ", ierr | if Comm.MyPID() == 0: print " Solver.Solve() return code = ", ierr | def main(): Comm = Epetra.PyComm() args = sys.argv[1:] if len(args) == 0: Type = "Amesos_Lapack" else: Type = args[0] NumGlobalRows = 10 Map = Epetra.Map(NumGlobalRows, 0, Comm) LHS_exact = Epetra.MultiVector(Map, 1) LHS = Epetra.MultiVector(Map, 1) RHS = Epetra.MultiVector(Map, 1) Matrix = Epetra.CrsMatrix(Epetra.Copy, Map, 0) Indices = Epetra.IntSerialDenseVector(3) Values = Epetra.SerialDenseVector(3) Values[0] = 2.0 Values[1] = -1.0 Values[2] = -1.0 NumLocalRows = Map.NumMyElements() # Builds the matrix (1D Laplacian) for ii in range(0, NumLocalRows): i = Map.GID(ii) Indices[0] = i if i == 0: NumEntries = 2 Indices[1] = i + 1 elif i == NumGlobalRows - 1: NumEntries = 2 Indices[1] = i - 1 else: NumEntries = 3 Indices[1] = i - 1 Indices[2] = i + 1 Matrix.InsertGlobalValues(i, NumEntries, Values, Indices) ierr = Matrix.FillComplete() LHS_exact.Random() Matrix.Multiply(False, LHS_exact, RHS) LHS.PutScalar(1.0) Problem = Epetra.LinearProblem(Matrix, LHS, RHS) if Type == "Amesos_Lapack": Solver = Amesos.Lapack(Problem) elif Type == "Amesos_Klu": Solver = Amesos.Klu(Problem) elif Type == "Amesos_Umfpack": Solver = Amesos.Umfpack(Problem) elif Type == "Amesos_Pardiso": Solver = Amesos.Umfpack(Problem) elif Type == "Amesos_Taucs": Solver = Amesos.Umfpack(Problem) elif Type == "Amesos_Superlu": Solver = Amesos.Superlu(Problem) elif Type == "Amesos_Superludist": Solver = Amesos.Superludist(Problem) elif Type == "Amesos_Dscpack": Solver = Amesos.Dscpack(Problem) elif Type == "Amesos_Mumps": Solver = Amesos.Mumps(Problem) else: print 'Selected solver (%s) not available' % Type print __doc__ sys.exit(-2) AmesosList = { "PrintStatus": True, "PrintTiming": True } Solver.SetParameters(AmesosList) Solver.SymbolicFactorization() Solver.NumericFactorization() ierr = Solver.Solve() print "Solver.Solve() return code = ", ierr del Solver | dbba790af0e743bcea68bbc367fcc2738fb3d668 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/dbba790af0e743bcea68bbc367fcc2738fb3d668/exSolvers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
16854,
273,
512,
6951,
354,
18,
9413,
12136,
1435,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
422,
374,
30,
1412,
273,
315,
9864,
281,
538,
67,
48,
438,
484,
6,
469,
30,
1412,
273,
833,
63,
20,
65,
225,
6805,
5160,
4300,
273,
1728,
1635,
273,
512,
6951,
354,
18,
863,
12,
2578,
5160,
4300,
16,
374,
16,
16854,
13,
511,
13173,
67,
17165,
273,
512,
6951,
354,
18,
5002,
5018,
12,
863,
16,
404,
13,
511,
13173,
273,
512,
6951,
354,
18,
5002,
5018,
12,
863,
16,
404,
13,
534,
13173,
273,
512,
6951,
354,
18,
5002,
5018,
12,
863,
16,
404,
13,
7298,
273,
512,
6951,
354,
18,
39,
5453,
4635,
12,
41,
6951,
354,
18,
2951,
16,
1635,
16,
374,
13,
23046,
273,
512,
6951,
354,
18,
1702,
6342,
40,
3558,
5018,
12,
23,
13,
6876,
273,
512,
6951,
354,
18,
6342,
40,
3558,
5018,
12,
23,
13,
6876,
63,
20,
65,
273,
225,
576,
18,
20,
6876,
63,
21,
65,
273,
300,
21,
18,
20,
6876,
63,
22,
65,
273,
300,
21,
18,
20,
225,
6805,
2042,
4300,
273,
1635,
18,
2578,
12062,
3471,
1435,
225,
468,
3998,
87,
326,
3148,
261,
21,
40,
21072,
30538,
2779,
13,
364,
6072,
316,
1048,
12,
20,
16,
6805,
2042,
4300,
4672,
277,
273,
1635,
18,
28258,
12,
2835,
13,
23046,
63,
20,
65,
273,
277,
309,
277,
422,
374,
30,
6805,
5400,
273,
576,
23046,
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,
16854,
273,
512,
6951,
354,
18,
9413,
12136,
1435,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
422,
374,
30,
1412,
273,
315,
9864,
281,
538,
67,
48,
438,
484,
6,
469,
30,
1412,
273,
833,
63,
20,
65,
225,
6805,
5160,
4300,
273,
1728,
1635,
273,
512,
6951,
354,
18,
863,
12,
2578,
5160,
4300,
16,
374,
16,
16854,
13,
511,
13173,
67,
17165,
273,
512,
6951,
354,
18,
5002,
5018,
12,
863,
16,
404,
13,
511,
13173,
273,
512,
6951,
354,
18,
5002,
5018,
12,
863,
16,
404,
13,
534,
13173,
273,
512,
6951,
354,
18,
5002,
5018,
12,
863,
16,
404,
13,
7298,
273,
512,
6951,
354,
2
] |
for seqname in self.seqdict.keys(): joinstringlist.append("LEFT JOIN sequence_data AS sd%s ON" " headers.id = sd%s.id AND sd%s.sid =" "'%s'" % ((self.quoteseqname(seqname),)*3 + (seqname,))) | for seq in self.seqdict.values(): s = ("LEFT JOIN sequence_data AS %s ON headers.id = %s.id " "AND %s.sid = %d" % ((seq.getalias(),)*3 + (seq.getsid(),))) joinstringlist.append(s) | def setqschema(self): """Set the query schema strings and argument list | 2a1f7430d7f536381e0559ee31064212bc097beb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3083/2a1f7430d7f536381e0559ee31064212bc097beb/vfolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
85,
4821,
12,
2890,
4672,
3536,
694,
326,
843,
1963,
2064,
471,
1237,
666,
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,
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326,
22398,
316,
326,
981,
30,
1652,
444,
85,
4821,
12,
2890,
4672,
3536,
694,
326,
843,
1963,
2064,
471,
1237,
666,
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
] |
xqd = xrd | xqd = tmp | def _buildResiduum(self, mol, zmatrix, n_atoms, phi, psi, init_pos): """ | bfcd9bbf8883b807c4b4f0c2104f99b7390da40d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/bfcd9bbf8883b807c4b4f0c2104f99b7390da40d/PeptideGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
4672,
3536,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
4672,
3536,
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
] |
""" fl_create_from_pixmapdata(win, data, w, h, sm, hotx, hoty, tran) -> pixmap ref. | """ fl_create_from_pixmapdata(win, data, w, h, sm, hotx, hoty, tran) -> pixmap | def fl_create_from_pixmapdata(win, data, w, h, sm, hotx, hoty, tran): """ fl_create_from_pixmapdata(win, data, w, h, sm, hotx, hoty, tran) -> pixmap ref. """ retval = _fl_create_from_pixmapdata(win, data, w, h, sm, hotx, hoty, tran) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
2080,
67,
14861,
1458,
892,
12,
8082,
16,
501,
16,
341,
16,
366,
16,
3029,
16,
12811,
92,
16,
12811,
93,
16,
13637,
4672,
3536,
1183,
67,
2640,
67,
2080,
67,
14861,
1458,
892,
12,
8082,
16,
501,
16,
341,
16,
366,
16,
3029,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
317,
11871,
1458,
3536,
225,
5221,
273,
389,
2242,
67,
2640,
67,
2080,
67,
14861,
1458,
892,
12,
8082,
16,
501,
16,
341,
16,
366,
16,
3029,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
327,
5221,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1183,
67,
2640,
67,
2080,
67,
14861,
1458,
892,
12,
8082,
16,
501,
16,
341,
16,
366,
16,
3029,
16,
12811,
92,
16,
12811,
93,
16,
13637,
4672,
3536,
1183,
67,
2640,
67,
2080,
67,
14861,
1458,
892,
12,
8082,
16,
501,
16,
341,
16,
366,
16,
3029,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
317,
11871,
1458,
3536,
225,
5221,
273,
389,
2242,
67,
2640,
67,
2080,
67,
14861,
1458,
892,
12,
8082,
16,
501,
16,
341,
16,
366,
16,
3029,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
327,
5221,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
welcom = welcomer % signList[number_user] + ' {{subst:LOCALTIME}}, {{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}} (UTC).' | if wsite.family.name == "wikipedia" and wsite.lang == "zh": welcom = welcomer % signList[number_user] + timeselected + '<small>(via ~~~)</small>' else: welcom = welcomer % signList[number_user] + timeselected | def main(settingsBot): # Taking the messages inside the function namespace. global netext; global summary; global logbook; global summary2; global report_page; global project_inserted global comment; global bad_pag; global report_text; global random_sign; global whitelist_pg """ 0 1 2 3 4 5 6 7 8 9 10 11 Returned tuple: (None, ask, filename, fileOption, fileSignName, filter_wp, limit, log_variable, number, numberlog, offset_variable, random, (mainSettings()) 12 13 14 15 recursive, savedata, sign, time_variable) """ # Loading the option of the mainSettings() ask = settingsBot[1]; filename = settingsBot[2]; fileOption = settingsBot[3]; fileSignName = settingsBot[4]; filter_wp = settingsBot[5] limit = settingsBot[6]; log_variable = settingsBot[7]; number = settingsBot[8]; numberlog = settingsBot[9]; offset_variable = settingsBot[10] random = settingsBot[11]; recursive = settingsBot[12]; savedata = settingsBot[13]; sign = settingsBot[14]; time_variable = settingsBot[15] # The site wsite = wikipedia.getSite() # A little block-statement to ensure that the bot won't start with en-parameters. if wsite.lang not in project_inserted: raise NoProjectFound(u'Your project is not supported by the framework. You have to edit the script and add it!') # The follow lines translate the language's parameters. welcomer = wikipedia.translate(wsite, netext) summ = wikipedia.translate(wsite, summary) logg = wikipedia.translate(wsite, logbook) summ2 = wikipedia.translate(wsite, summary2) rep_page = wikipedia.translate(wsite, report_page) com = wikipedia.translate(wsite, comment) bad_page = wikipedia.translate(wsite, bad_pag) rep_text = wikipedia.translate(wsite, report_text) signPageTitle = wikipedia.translate(wsite, random_sign) wtlpg = wikipedia.translate(wsite, whitelist_pg) usernam = wsite.namespace(2) contrib = string.capitalize(wsite.mediawiki_message('contribslink')) # The talk_page's variable gives "Talk page". talk_page = wsite.namespace(3) talk = urlname(talk_page, wsite) + ':' # Some project of the same language, have different settings. (this is the place to add them). if wsite.family.name == "wikinews" and wsite.lang == "it": welcomer = u'{{subst:benvenuto|%s}}' sign = 'Tooby' elif wsite.family.name == "wiktionary" and wsite.lang == "it": welcomer = u'{{subst:Utente:Filnik/Benve|nome={{subst:PAGENAME}}}} %s' elif wsite.family.name == "wikiversity" and wsite.lang == "it": welcomer = u'{{subst:Benvenuto}} %s' welcomed_users = list() if savedata == True and os.path.exists(wikipedia.datafilepath(filename)): f = file(filename) number_user = cPickle.load(f) yield number_user else: number_user = 0 yield number_user # Here there is the main loop. while True: if filter_wp == True: # A standard list of bad username components (you can change/delate it in your project...). # [ I divided the list into three to make it smaller...] elencoaf = [' ano', ' anus', 'anal ', 'babies', 'baldracca', 'balle', 'bastardo', 'bestiali', 'bestiale', 'bastarda', 'b.i.t.c.h.', 'bitch', 'boobie', 'bordello', 'breast', 'cacata', 'cacca', 'cachapera', 'cagata', 'cane', 'cazz', 'cazzo', 'cazzata', 'chiavare', 'chiavata', 'chick', 'christ ', 'cristo', 'clitoride', 'coione', 'cojdioonear', 'cojones', 'cojo', 'coglione', 'coglioni', 'cornuto', 'cula', 'culatone', 'culattone', 'culo', 'deficiente', 'deficente', 'dio', 'die ', 'died ', 'ditalino', 'ejackulate', 'enculer', 'eroticunt', 'fanculo', 'fellatio', 'fica ', 'ficken', 'figa', 'sfiga', 'fottere', 'fotter', 'fottuto', 'fuck', 'f.u.c.k.', "funkyass"] elencogz = ['gay', 'hentai.com', 'horne', 'horney', 'virgin', 'hotties', 'idiot', '@alice.it', 'incest', 'jesus', 'gesu', 'gesù', 'kazzo', 'kill', 'leccaculo', 'lesbian', 'lesbica', 'lesbo', 'masturbazione', 'masturbare', 'masturbo', 'merda', 'merdata', 'merdoso', 'mignotta', 'minchia', 'minkia', 'minchione', 'mona', 'nudo', 'nuda', 'nudi', 'oral', 'sex', 'orgasmso', 'porc', 'pompa', 'pompino', 'porno', 'puttana', 'puzza', 'puzzone', "racchia", 'sborone', 'sborrone', 'sborata', 'sborolata', 'sboro', 'scopata', 'scopare', 'scroto', 'scrotum', 'sega', 'sesso', 'shit', 'shiz', 's.h.i.t.', 'sadomaso', 'sodomist', 'stronzata', 'stronzo', 'succhiamelo', 'succhiacazzi', 'testicol', 'troia', 'universetoday.net', 'vaffanculo', 'vagina', 'vibrator', "vacca", 'yiddiot', "zoccola"] elenco_others = ['@', ".com", ".sex", ".org", ".uk", ".en", ".it", "admin", "administrator", "amministratore", '@yahoo.com', '@alice.com', "amministratrice", "burocrate", "checkuser", "developer", "http://", "jimbo", "mediawiki", "on wheals", "on wheal", "on wheel", "planante", "razinger", "sysop", "troll", "vandal", " v.f. ", "v. fighter", "vandal f.", "vandal fighter", 'wales jimmy', "wheels", "wales", "www."] badword_page = wikipedia.Page(wsite, bad_page) if badword_page.exists(): wikipedia.output(u'\nLoading the bad words list from %s...' % wsite.hostname() ) text_bad = badword_page.get() list_loaded = load_word_function(wsite,text_bad) else: wikipedia.output(u'\t\t>>>WARNING: The bad word page doesn\'t exist!<<<') list_loaded = list() # Joining the "other things" with the loaded... elencovarie = elenco_others + list_loaded elif filter_wp == False: elencoaf = list() elencogz = list() elencovarie = list() # Joining the three lists.. elenco = elencoaf + elencogz + elencovarie if filter_wp == True: # That is the default whitelist (it contains few name because it has been improved in the latest days..). whitelist_default = ['emiliano'] whitelist_page = wikipedia.Page(wsite, wtlpg) if whitelist_page.exists(): wikipedia.output(u'\nLoading the whitelist from %s...' % wsite.hostname() ) text_white = whitelist_page.get() list_white = load_word_function(wsite,text_white) else: wikipedia.output(u"\t\t>>>WARNING: The whitelist's page doesn't exist!<<<") list_white = list() else: list_white = list() whitelist_default = list() # Joined the whitelist words. whitelist = list_white + whitelist_default # List of words that the bot understands when it asks the operator for input. block = ("B", "b", "Blocco", "blocco", "block", "bloc", "Block", "Bloc", 'Report', 'report') say_hi = ("S", "s", "Saluto", "saluto", "Welcome", "welcome", 'w', 'W', 'say hi', 'Say hi', 'Hi', 'hi', 'h', 'hello', 'Hello') # The URL for new users is the same in every project. It should not be changed. URL = "/w/index.php?title=Special:Log&type=newusers&limit=%d&offset=%d" % (limit, offset_variable) log = wsite.getUrl(URL) wikipedia.output(u'Loading latest ' + str(limit) + u' new users from ' + (wsite.hostname()) + u'...\n') # Determine which signature to use if random == True: try: wikipedia.output(u'Loading random signatures...') signList = defineSign(wsite, signPageTitle, fileSignName, fileOption) except wikipedia.NoPage: wikipedia.output(u'The list with signatures is not available... Using default signature...') random = False for found_result in parselog(wsite, log, talk, number): if found_result == None: continue # Compiling the signature to be used. if random == True: if number_user + 1> len(signList): number_user = 0 yield number_user welcom = welcomer % signList[number_user] + ' {{subst:LOCALTIME}}, {{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}} (UTC).' else: welcom = welcomer % sign username = str(found_result[0]) usertalkpage = wikipedia.Page(wsite, talk + username) baduser = False # Check if the username is composed by only numbers. try: int(username) baduser = True except ValueError: # OK, no problem pass # Check if the user has been already blocked. ki = blocked(wsite,username) if ki == True: wikipedia.output(u'%s has been blocked! Skipping...' % username) continue # Understand if the user has a bad-username. for word in elenco: username = str(username).encode(config.console_encoding) if word.lower() in username.lower(): baduser = True if wsite.lang == 'it': final_rep = rep_text + word + '}}' break else: final_rep = rep_text # Checking in the whitelist... for xy in whitelist: if xy.lower() in username.lower(): username.replace(xy, '') for word in elenco: if word.lower() in username.lower(): baduser = True else: baduser = False # He has a badusername, trying to report him... if baduser == True: while 1: if ask == True: wikipedia.output(u'%s may have an unwanted username, what shall i do?' % username ) answer = wikipedia.input(u'[B]lock or [W]elcome?') for w in block: if w in answer: if not usertalkpage.exists(): # Check if the user has been already blocked (second check). ki = blocked(wsite, username) if ki == True: wikipedia.output(u'%s has been blocked! Skipping him...' % username) continue report(wsite, rep_page, username, com, final_rep) break else: wikipedia.output(u'The discussion page of the bad-user already exist...') running = False for w in say_hi: if w in answer: baduser = False break elif ask == False: wikipedia.output(u'%s is possibly an unwanted username. He will be reported.' % username) if not usertalkpage.exists(): report(wsite, rep_page, username, com, final_rep) break else: wikipedia.output(u'The discussion page of the bad-user already exist...') break # He has a good username, welcome! elif baduser == False: if not usertalkpage.exists(): # Tring to put the welcome... try: # make non-minor edit to trigger new talk page message. usertalkpage.put(welcom, summ, minorEdit = False) welcomed_users.append(found_result) if random == True: number_user += 1 yield number_user except wikipedia.EditConflict: wikipedia.output(u'An edit conflict has occured, skipping this user.') continue else: wikipedia.output(u'%s has been already welcomed when i was loading all the users... skipping' % username) continue # That's the log if log_variable == True and logg: if len(welcomed_users) == 1: wikipedia.output(u'One user has been welcomed.') elif len(welcomed_users) == 0: wikipedia.output(u'No users have been welcomed.') else: wikipedia.output(u'%s users have been welcomed.' % str(len(welcomed_users)) ) if len(welcomed_users) < numberlog: continue # Update the welcome log each fifth welcome message. elif len(welcomed_users) >= numberlog: logresult = logmaker(wsite, welcomed_users, logg, summ2, usernam, contrib) welcomed_users = list() if logresult == False: continue # If we haven't to report, do nothing. elif log_variable == False: pass if log_variable == True and logg and len(welcomed_users) != 0: if len(welcomed_users) == 1: wikipedia.output(u'Putting the log of the latest user...') else: wikipedia.output(u'Putting the log of the latest %d users...' % len(welcomed_users)) logresult2 = logmaker(wsite, welcomed_users, logg, summ2, usernam, contrib) welcomed_users = list() if logresult2 == False: continue # If recursive, don't exit, repeat after one hour. if recursive == True: waitstr = unicode(time_variable) if locale.getlocale()[1]: strfstr = unicode(time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.gmtime()), locale.getlocale()[1]) else: strfstr = unicode(time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.gmtime())) wikipedia.output(u'Sleeping %s seconds before rerun. %s' % (waitstr, strfstr)) time.sleep(time_variable) # If not recursive, break. elif recursive == False: yield [number_user, 'STOP'] | fe702a33925267aa9a210fa3eabf12799ac83373 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/fe702a33925267aa9a210fa3eabf12799ac83373/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
4272,
6522,
4672,
468,
399,
6159,
326,
2743,
4832,
326,
445,
1981,
18,
2552,
2901,
408,
31,
2552,
4916,
31,
2552,
613,
3618,
31,
2552,
4916,
22,
31,
2552,
2605,
67,
2433,
31,
2552,
1984,
67,
6387,
329,
2552,
2879,
31,
2552,
5570,
67,
9095,
31,
2552,
2605,
67,
955,
31,
2552,
2744,
67,
2977,
31,
2552,
10734,
67,
8365,
225,
3536,
374,
377,
404,
1377,
576,
6647,
890,
6647,
1059,
6647,
1381,
540,
1666,
540,
2371,
1850,
1725,
540,
2468,
6647,
1728,
5411,
4648,
8045,
3193,
30,
261,
7036,
16,
6827,
16,
1544,
16,
585,
1895,
16,
585,
2766,
461,
16,
1034,
67,
8612,
16,
1800,
16,
613,
67,
6105,
16,
1300,
16,
1300,
1330,
16,
1384,
67,
6105,
16,
2744,
16,
261,
5254,
2628,
10756,
282,
2593,
3639,
5958,
1377,
5045,
3639,
4711,
5904,
16,
5198,
396,
16,
1573,
16,
813,
67,
6105,
13,
3536,
468,
4444,
310,
326,
1456,
434,
326,
2774,
2628,
1435,
6827,
273,
1947,
6522,
63,
21,
15533,
1544,
273,
1947,
6522,
63,
22,
15533,
585,
1895,
273,
1947,
6522,
63,
23,
15533,
585,
2766,
461,
273,
1947,
6522,
63,
24,
15533,
1034,
67,
8612,
273,
1947,
6522,
63,
25,
65,
1800,
273,
1947,
6522,
63,
26,
15533,
613,
67,
6105,
273,
1947,
6522,
63,
27,
15533,
1300,
273,
1947,
6522,
63,
28,
15533,
1300,
1330,
273,
1947,
6522,
63,
29,
15533,
1384,
67,
6105,
273,
1947,
6522,
63,
2163,
65,
2744,
273,
1947,
6522,
63,
2499,
15533,
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,
12,
4272,
6522,
4672,
468,
399,
6159,
326,
2743,
4832,
326,
445,
1981,
18,
2552,
2901,
408,
31,
2552,
4916,
31,
2552,
613,
3618,
31,
2552,
4916,
22,
31,
2552,
2605,
67,
2433,
31,
2552,
1984,
67,
6387,
329,
2552,
2879,
31,
2552,
5570,
67,
9095,
31,
2552,
2605,
67,
955,
31,
2552,
2744,
67,
2977,
31,
2552,
10734,
67,
8365,
225,
3536,
374,
377,
404,
1377,
576,
6647,
890,
6647,
1059,
6647,
1381,
540,
1666,
540,
2371,
1850,
1725,
540,
2468,
6647,
1728,
5411,
4648,
8045,
3193,
30,
261,
7036,
16,
6827,
16,
1544,
16,
585,
1895,
16,
585,
2766,
461,
16,
1034,
67,
8612,
16,
1800,
16,
613,
67,
6105,
16,
1300,
16,
1300,
1330,
2
] |
MenuItem.template('FileSeparator2', menuItemKind = 'Separator'), MenuItem.template('QuitItem', event = globalBlocks.Quit, title = _(u'Quit'), accel = _(u'Ctrl+Q'), helpString = _(u'Quit Chandler')), ]), | ]) if wx.Platform != '__WXMAC__': fileMenu.attrs['childrenBlocks'].append(MenuItem.template('FileSeparator2', menuItemKind = 'Separator')) fileMenu.attrs['childrenBlocks'].append(MenuItem.template('QuitItem', event=globalBlocks.Quit, title = _(u'Quit'), accel = _(u'Ctrl+Q'), helpString = _(u'Quit Chandler'))) MenuBar.template('MenuBar', childrenBlocks = [ fileMenu, | def makeColorMenuItems (parcel, cls, hues): """ dynamically creates an array of type 'cls' based on a list of colors """ menuItems = [] # make sure that all the events end up in the main parcel mainParcel = schema.parcel_for_module ("osaf.views.main", repositoryView) for shortName, title, hue in hues: rgb = wx.Image.HSVtoRGB (wx.Image_HSVValue (hue/360.0, 0.5, 1.0)) color = ColorType (rgb.red, rgb.green, rgb.blue, 255) | 9195fbe71e44fe20e170bf34fbad6c1bfee554fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9195fbe71e44fe20e170bf34fbad6c1bfee554fb/menus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
2957,
4599,
3126,
261,
1065,
2183,
16,
2028,
16,
366,
3610,
4672,
3536,
18373,
3414,
392,
526,
434,
618,
296,
6429,
11,
2511,
603,
279,
666,
434,
5740,
3536,
3824,
3126,
273,
5378,
225,
468,
1221,
3071,
716,
777,
326,
2641,
679,
731,
316,
326,
2774,
779,
2183,
2774,
1553,
2183,
273,
1963,
18,
1065,
2183,
67,
1884,
67,
2978,
7566,
538,
1727,
18,
7061,
18,
5254,
3113,
3352,
1767,
13,
364,
19276,
16,
2077,
16,
16846,
316,
366,
3610,
30,
6917,
273,
7075,
18,
2040,
18,
13173,
58,
869,
11343,
261,
27226,
18,
2040,
67,
13173,
58,
620,
261,
76,
344,
19,
29751,
18,
20,
16,
374,
18,
25,
16,
404,
18,
20,
3719,
2036,
273,
5563,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
2957,
4599,
3126,
261,
1065,
2183,
16,
2028,
16,
366,
3610,
4672,
3536,
18373,
3414,
392,
526,
434,
618,
296,
6429,
11,
2511,
603,
279,
666,
434,
5740,
3536,
3824,
3126,
273,
5378,
225,
468,
1221,
3071,
716,
777,
326,
2641,
679,
731,
316,
326,
2774,
779,
2183,
2774,
1553,
2183,
273,
1963,
18,
1065,
2183,
67,
1884,
67,
2978,
7566,
538,
1727,
18,
7061,
18,
5254,
3113,
3352,
1767,
13,
364,
19276,
16,
2077,
16,
16846,
316,
366,
3610,
30,
6917,
273,
7075,
18,
2040,
18,
13173,
58,
869,
11343,
261,
27226,
18,
2040,
67,
13173,
58,
620,
261,
76,
344,
19,
29751,
18,
20,
16,
374,
18,
25,
16,
404,
18,
20,
3719,
2036,
273,
2
] |
msg.error(_("makeindex failed on %s") % self.source) | msg.error(_("could not make index %s") % self.target) | def post_compile (self): """ Run makeindex if needed, with appropriate options and environment. """ if not os.path.exists(self.source): msg.log(_("strange, there is no %s") % self.source, pkg="index") return 0 if not self.run_needed(): return 0 | 246518fe05858dd373693d5f39f87ebc015f46a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/246518fe05858dd373693d5f39f87ebc015f46a2/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
11100,
261,
2890,
4672,
3536,
1939,
1221,
1615,
309,
3577,
16,
598,
5505,
702,
471,
3330,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18,
3168,
4672,
1234,
18,
1330,
24899,
2932,
701,
726,
16,
1915,
353,
1158,
738,
87,
7923,
738,
365,
18,
3168,
16,
3475,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
11100,
261,
2890,
4672,
3536,
1939,
1221,
1615,
309,
3577,
16,
598,
5505,
702,
471,
3330,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18,
3168,
4672,
1234,
18,
1330,
24899,
2932,
701,
726,
16,
1915,
353,
1158,
738,
87,
7923,
738,
365,
18,
3168,
16,
3475,
1546,
1615,
7923,
327,
374,
309,
486,
365,
18,
2681,
67,
17471,
13332,
327,
374,
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
] |
return self.attributes[XMLSchemaComponent.xsd].get('finalDefault') | return self.attributes.get('finalDefault') | def getFinalDefault(self): """return finalDefault attribute """ return self.attributes[XMLSchemaComponent.xsd].get('finalDefault') | e50368f02a007b522df43404acf761191b9356f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/e50368f02a007b522df43404acf761191b9356f0/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
1490,
1868,
12,
2890,
4672,
3536,
2463,
727,
1868,
1566,
3536,
327,
365,
18,
4350,
63,
4201,
3078,
1841,
18,
19144,
8009,
588,
2668,
6385,
1868,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(Key('a'), Key('s'), Key('d'), Key('f'), Key('g'), Key('h'), Key('j'), Key('k'), Key('k')), | (Key('a'), Key('s'), Key('d'), Key('f'), Key('g'), Key('h'), Key('j'), Key('k'), Key('l')), | def __init__(self,k,nb=1,evt='car'): self.txt=k self.width=nb self.event=evt | 83718a56cfe3647e2b03d1f3af8cc38bc6cd7d33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5279/83718a56cfe3647e2b03d1f3af8cc38bc6cd7d33/keyboard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
79,
16,
6423,
33,
21,
16,
73,
11734,
2218,
9815,
11,
4672,
365,
18,
5830,
33,
79,
365,
18,
2819,
33,
6423,
365,
18,
2575,
33,
73,
11734,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
79,
16,
6423,
33,
21,
16,
73,
11734,
2218,
9815,
11,
4672,
365,
18,
5830,
33,
79,
365,
18,
2819,
33,
6423,
365,
18,
2575,
33,
73,
11734,
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
] |
def getPixelForCoord( point, bounds, tiles ): return [1,1] pass | def getPixelForCoord( point, bounds, imagesize ): return (((bounds[0][1] - point[1] ) / bounds[2][1] * imagesize[1]) + 128 , ((bounds[0][0] - point[0] ) / bounds[2][0] * imagesize[0]) + 128) | def calculateTilesAuto( points ): | 8b5fef750b60a1c81dd107b5781cbdc2de6c7bd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3985/8b5fef750b60a1c81dd107b5781cbdc2de6c7bd8/gpx2png.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
27669,
4965,
12,
3143,
262,
30,
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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
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
27669,
4965,
12,
3143,
262,
30,
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,
-100
] |
file.write(struct.pack("=64sH", marker[0], marker[1])) | file.write(struct.pack("=64sH", marker[0], \ blenderframe_to_wspriteframe(marker[1]))) | def mapvertex(index, u, v): for mv in xrange(0, len(vertexmap)): if vertexmap[mv] == index and uvs[mv] == (u, v): return mv vertexmap.append(index) uvs.append( (u, v) ) return len(vertexmap)-1 | f0a359398f642ebc58567dd18b8aa64ca5711647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2372/f0a359398f642ebc58567dd18b8aa64ca5711647/windstille_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
15281,
12,
1615,
16,
582,
16,
331,
4672,
364,
7701,
316,
12314,
12,
20,
16,
562,
12,
15281,
1458,
3719,
30,
309,
5253,
1458,
63,
17509,
65,
422,
770,
471,
582,
6904,
63,
17509,
65,
422,
261,
89,
16,
331,
4672,
327,
7701,
5253,
1458,
18,
6923,
12,
1615,
13,
582,
6904,
18,
6923,
12,
261,
89,
16,
331,
13,
262,
327,
562,
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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,
852,
15281,
12,
1615,
16,
582,
16,
331,
4672,
364,
7701,
316,
12314,
12,
20,
16,
562,
12,
15281,
1458,
3719,
30,
309,
5253,
1458,
63,
17509,
65,
422,
770,
471,
582,
6904,
63,
17509,
65,
422,
261,
89,
16,
331,
4672,
327,
7701,
5253,
1458,
18,
6923,
12,
1615,
13,
582,
6904,
18,
6923,
12,
261,
89,
16,
331,
13,
262,
327,
562,
12,
15281,
1458,
24950,
21,
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
] |
self.skip("test can only run in a 32-bit address space") | self.skipTest("test can only run in a 32-bit address space") | def test_unbounded_file(self): # Issue #1174606: reading from an unbounded stream such as /dev/zero. zero = "/dev/zero" if not os.path.exists(zero): self.skip("{0} does not exist".format(zero)) if sys.maxsize > 0x7FFFFFFF: self.skip("test can only run in a 32-bit address space") if support.real_max_memuse < support._2G: self.skip("test requires at least 2GB of memory") with open(zero, "rb", buffering=0) as f: self.assertRaises(OverflowError, f.read) with open(zero, "rb") as f: self.assertRaises(OverflowError, f.read) with open(zero, "r") as f: self.assertRaises(OverflowError, f.read) | c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25/test_io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
318,
26220,
67,
768,
12,
2890,
4672,
468,
11820,
468,
2499,
5608,
4848,
26,
30,
6453,
628,
392,
640,
26220,
1407,
4123,
487,
342,
5206,
19,
7124,
18,
3634,
273,
2206,
5206,
19,
7124,
6,
309,
486,
1140,
18,
803,
18,
1808,
12,
7124,
4672,
365,
18,
7457,
2932,
95,
20,
97,
1552,
486,
1005,
9654,
2139,
12,
7124,
3719,
309,
2589,
18,
1896,
1467,
405,
374,
92,
27,
18343,
42,
30,
365,
18,
7457,
4709,
2932,
3813,
848,
1338,
1086,
316,
279,
3847,
17,
3682,
1758,
3476,
7923,
309,
2865,
18,
7688,
67,
1896,
67,
3917,
1202,
411,
2865,
6315,
22,
43,
30,
365,
18,
7457,
2932,
3813,
4991,
622,
4520,
576,
5887,
434,
3778,
7923,
598,
1696,
12,
7124,
16,
315,
6731,
3113,
25056,
33,
20,
13,
487,
284,
30,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
284,
18,
896,
13,
598,
1696,
12,
7124,
16,
315,
6731,
7923,
487,
284,
30,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
284,
18,
896,
13,
598,
1696,
12,
7124,
16,
315,
86,
7923,
487,
284,
30,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
284,
18,
896,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
318,
26220,
67,
768,
12,
2890,
4672,
468,
11820,
468,
2499,
5608,
4848,
26,
30,
6453,
628,
392,
640,
26220,
1407,
4123,
487,
342,
5206,
19,
7124,
18,
3634,
273,
2206,
5206,
19,
7124,
6,
309,
486,
1140,
18,
803,
18,
1808,
12,
7124,
4672,
365,
18,
7457,
2932,
95,
20,
97,
1552,
486,
1005,
9654,
2139,
12,
7124,
3719,
309,
2589,
18,
1896,
1467,
405,
374,
92,
27,
18343,
42,
30,
365,
18,
7457,
4709,
2932,
3813,
848,
1338,
1086,
316,
279,
3847,
17,
3682,
1758,
3476,
7923,
309,
2865,
18,
7688,
67,
1896,
67,
3917,
1202,
411,
2865,
6315,
22,
43,
30,
365,
18,
7457,
2932,
3813,
4991,
622,
4520,
576,
5887,
434,
3778,
2
] |
for troveTup in sorted(group.iterTroveList(strongRefs=True)): log.debug(' %s=%s[%s]' % troveTup) | for troveTup, isStrong, byDefault, _ in sorted(group.iterTroveListInfo()): extra = '' if not byDefault: extra += '[NotByDefault]' if not isStrong: extra += '[Weak]' log.debug(' %s=%s[%s] %s' % (troveTup + (extra,))) | def _sortGroups(groupList): """ Sorts groupList so that if group a includes group b, group b is before a in the returned list. Also checks for cyclic group inclusion. """ g = graph.DirectedGraph() | 90c95393ebab2b32eedf7e803e5a51f24cefed47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/90c95393ebab2b32eedf7e803e5a51f24cefed47/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
3621,
12,
1655,
682,
4672,
3536,
5928,
87,
1041,
682,
1427,
716,
309,
1041,
279,
6104,
1041,
324,
16,
1041,
324,
353,
1865,
279,
316,
326,
2106,
666,
18,
225,
8080,
4271,
364,
30383,
1041,
26485,
18,
3536,
314,
273,
2667,
18,
5368,
329,
4137,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
3621,
12,
1655,
682,
4672,
3536,
5928,
87,
1041,
682,
1427,
716,
309,
1041,
279,
6104,
1041,
324,
16,
1041,
324,
353,
1865,
279,
316,
326,
2106,
666,
18,
225,
8080,
4271,
364,
30383,
1041,
26485,
18,
3536,
314,
273,
2667,
18,
5368,
329,
4137,
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
] |
elif not line.endswith('total letters'): | elif not line.endswith('total letters'): | def database_info(self, line): line = line.rstrip() if line.startswith('Database: '): self._header.database = line[10:] | 4345b66dc64a700881a4c9a0e3a6ea43eabf5ea2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/4345b66dc64a700881a4c9a0e3a6ea43eabf5ea2/NCBIStandalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2063,
67,
1376,
12,
2890,
16,
980,
4672,
980,
273,
980,
18,
86,
6406,
1435,
309,
980,
18,
17514,
1918,
2668,
4254,
30,
296,
4672,
365,
6315,
3374,
18,
6231,
273,
980,
63,
2163,
26894,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2063,
67,
1376,
12,
2890,
16,
980,
4672,
980,
273,
980,
18,
86,
6406,
1435,
309,
980,
18,
17514,
1918,
2668,
4254,
30,
296,
4672,
365,
6315,
3374,
18,
6231,
273,
980,
63,
2163,
26894,
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
] |
"""Patcher panel with option to select source elements.""" listLabel = _("Source Mods/Files") def GetConfigPanel(self,parent,gConfigSizer,gTipText): """Show config.""" if self.gConfigPanel: return self.gConfigPanel self.forceItemCheck = self.__class__.forceItemCheck self.gTipText = gTipText gConfigPanel = self.gConfigPanel = wx.Window(parent,-1) text = fill(self.__class__.text,70) gText = staticText(self.gConfigPanel,text) if self.forceItemCheck: self.gList =wx.ListBox(gConfigPanel,-1) else: self.gList =wx.CheckListBox(gConfigPanel,-1) self.gList.Bind(wx.EVT_CHECKLISTBOX,self.OnListCheck) self.gList.Bind(wx.EVT_MOTION,self.OnMouse) self.gList.Bind(wx.EVT_RIGHT_DOWN,self.OnMouse) self.gList.Bind(wx.EVT_RIGHT_UP,self.OnMouse) self.mouseItem = -1 self.mouseState = None if self.forceAuto: gManualSizer = None self.SetItems(self.getAutoItems()) else: self.gAuto = checkBox(gConfigPanel,_("Automatic"),onCheck=self.OnAutomatic) self.gAuto.SetValue(self.autoIsChecked) self.gAdd = button(gConfigPanel,_("Add"),onClick=self.OnAdd) self.gRemove = button(gConfigPanel,_("Remove"),onClick=self.OnRemove) self.OnAutomatic() gManualSizer = (vSizer( (self.gAuto,0,wx.TOP,2), (self.gAdd,0,wx.TOP,12), (self.gRemove,0,wx.TOP,4), ),0,wx.EXPAND|wx.LEFT,4) self.SetItems(self.configItems) gSizer = vSizer( (gText,), (hsbSizer((gConfigPanel,-1,self.__class__.listLabel), ((4,0),0,wx.EXPAND), (self.gList,1,wx.EXPAND|wx.TOP,2), gManualSizer, ),1,wx.EXPAND|wx.TOP,4), ) gConfigPanel.SetSizer(gSizer) gConfigSizer.Add(gConfigPanel,1,wx.EXPAND) return gConfigPanel def SetItems(self,items): """Set item to specified set of items.""" items = self.items = self.sortConfig(items) forceItemCheck = self.forceItemCheck defaultItemCheck = self.__class__.defaultItemCheck self.gList.Clear() for index,item in enumerate(items): self.gList.Insert(self.getItemLabel(item),index) if forceItemCheck: self.configChecks[item] = True else: self.gList.Check(index,self.configChecks.setdefault(item,defaultItemCheck)) self.configItems = items def OnListCheck(self,event=None): """One of list items was checked. Update all configChecks states.""" for index,item in enumerate(self.items): self.configChecks[item] = self.gList.IsChecked(index) def OnAutomatic(self,event=None): """Automatic checkbox changed.""" self.autoIsChecked = self.gAuto.IsChecked() self.gAdd.Enable(not self.autoIsChecked) self.gRemove.Enable(not self.autoIsChecked) if self.autoIsChecked: self.SetItems(self.getAutoItems()) def OnAdd(self,event): """Add button clicked.""" srcDir = bosh.modInfos.dir wildcard = _('Fallout3 Mod Files')+' (*.esp;*.esm)|*.esp;*.esm' title = _("Get ")+self.__class__.listLabel srcPaths = balt.askOpenMulti(self.gConfigPanel,title,srcDir, '', wildcard) if not srcPaths: return for srcPath in srcPaths: dir,name = srcPath.headTail if dir == srcDir and name not in self.configItems: self.configItems.append(name) self.SetItems(self.configItems) def OnRemove(self,event): """Remove button clicked.""" selected = self.gList.GetSelections() newItems = [item for index,item in enumerate(self.configItems) if index not in selected] self.SetItems(newItems) def OnMouse(self,event): """Check mouse motion to detect right click event.""" if event.RightDown(): self.mouseState = (event.m_x,event.m_y) event.Skip() elif event.RightUp() and self.mouseState: self.ShowChoiceMenu(event) elif event.Dragging(): if self.mouseState: oldx,oldy = self.mouseState if max(abs(event.m_x-oldx),abs(event.m_y-oldy)) > 4: self.mouseState = None else: self.mouseState = False event.Skip() def ShowChoiceMenu(self,event): """Displays a popup choice menu if applicable. NOTE: Assume that configChoice returns a set of chosen items.""" if not self.choiceMenu: return if self.forceItemCheck: itemHeight = self.gList.GetCharHeight() else: itemHeight = self.gList.GetItemHeight() itemIndex = event.m_y/itemHeight + self.gList.GetScrollPos(wx.VERTICAL) if itemIndex >= len(self.items): return self.rightClickItemIndex = itemIndex choiceSet = self.getChoice(self.items[itemIndex]) menu = wx.Menu() for index,label in enumerate(self.choiceMenu): if label == '----': menu.AppendSeparator() else: menuItem = wx.MenuItem(menu,index,label,kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) if label in choiceSet: menuItem.Check() wx.EVT_MENU(self.gList,index,self.OnItemChoice) self.gList.PopupMenu(menu) menu.Destroy() def OnItemChoice(self,event): """Handle choice menu selection.""" itemIndex = self.rightClickItemIndex item =self.items[itemIndex] choice = self.choiceMenu[event.GetId()] choiceSet = self.configChoices[item] choiceSet ^= set((choice,)) if choice != 'Auto': choiceSet.discard('Auto') elif 'Auto' in self.configChoices[item]: self.getChoice(item) self.gList.SetString(itemIndex,self.getItemLabel(item)) | """Patcher panel with option to select source elements.""" listLabel = _("Source Mods/Files") def GetConfigPanel(self,parent,gConfigSizer,gTipText): """Show config.""" if self.gConfigPanel: return self.gConfigPanel self.forceItemCheck = self.__class__.forceItemCheck self.gTipText = gTipText gConfigPanel = self.gConfigPanel = wx.Window(parent,-1) text = fill(self.__class__.text,70) gText = staticText(self.gConfigPanel,text) if self.forceItemCheck: self.gList =wx.ListBox(gConfigPanel,-1) else: self.gList =wx.CheckListBox(gConfigPanel,-1) self.gList.Bind(wx.EVT_CHECKLISTBOX,self.OnListCheck) self.gList.Bind(wx.EVT_MOTION,self.OnMouse) self.gList.Bind(wx.EVT_RIGHT_DOWN,self.OnMouse) self.gList.Bind(wx.EVT_RIGHT_UP,self.OnMouse) self.mouseItem = -1 self.mouseState = None if self.forceAuto: gManualSizer = None self.SetItems(self.getAutoItems()) else: self.gAuto = checkBox(gConfigPanel,_("Automatic"),onCheck=self.OnAutomatic) self.gAuto.SetValue(self.autoIsChecked) self.gAdd = button(gConfigPanel,_("Add"),onClick=self.OnAdd) self.gRemove = button(gConfigPanel,_("Remove"),onClick=self.OnRemove) self.OnAutomatic() gManualSizer = (vSizer( (self.gAuto,0,wx.TOP,2), (self.gAdd,0,wx.TOP,12), (self.gRemove,0,wx.TOP,4), ),0,wx.EXPAND|wx.LEFT,4) self.SetItems(self.configItems) gSizer = vSizer( (gText,), (hsbSizer((gConfigPanel,-1,self.__class__.listLabel), ((4,0),0,wx.EXPAND), (self.gList,1,wx.EXPAND|wx.TOP,2), gManualSizer, ),1,wx.EXPAND|wx.TOP,4), ) gConfigPanel.SetSizer(gSizer) gConfigSizer.Add(gConfigPanel,1,wx.EXPAND) return gConfigPanel def SetItems(self,items): """Set item to specified set of items.""" items = self.items = self.sortConfig(items) forceItemCheck = self.forceItemCheck defaultItemCheck = self.__class__.defaultItemCheck self.gList.Clear() for index,item in enumerate(items): self.gList.Insert(self.getItemLabel(item),index) if forceItemCheck: self.configChecks[item] = True else: self.gList.Check(index,self.configChecks.setdefault(item,defaultItemCheck)) self.configItems = items def OnListCheck(self,event=None): """One of list items was checked. Update all configChecks states.""" for index,item in enumerate(self.items): self.configChecks[item] = self.gList.IsChecked(index) def OnAutomatic(self,event=None): """Automatic checkbox changed.""" self.autoIsChecked = self.gAuto.IsChecked() self.gAdd.Enable(not self.autoIsChecked) self.gRemove.Enable(not self.autoIsChecked) if self.autoIsChecked: self.SetItems(self.getAutoItems()) def OnAdd(self,event): """Add button clicked.""" srcDir = bosh.modInfos.dir wildcard = _('Fallout3 Mod Files')+' (*.esp;*.esm)|*.esp;*.esm' title = _("Get ")+self.__class__.listLabel srcPaths = balt.askOpenMulti(self.gConfigPanel,title,srcDir, '', wildcard) if not srcPaths: return for srcPath in srcPaths: dir,name = srcPath.headTail if dir == srcDir and name not in self.configItems: self.configItems.append(name) self.SetItems(self.configItems) def OnRemove(self,event): """Remove button clicked.""" selected = self.gList.GetSelections() newItems = [item for index,item in enumerate(self.configItems) if index not in selected] self.SetItems(newItems) def OnMouse(self,event): """Check mouse motion to detect right click event.""" if event.RightDown(): self.mouseState = (event.m_x,event.m_y) event.Skip() elif event.RightUp() and self.mouseState: self.ShowChoiceMenu(event) elif event.Dragging(): if self.mouseState: oldx,oldy = self.mouseState if max(abs(event.m_x-oldx),abs(event.m_y-oldy)) > 4: self.mouseState = None else: self.mouseState = False event.Skip() def ShowChoiceMenu(self,event): """Displays a popup choice menu if applicable. NOTE: Assume that configChoice returns a set of chosen items.""" if not self.choiceMenu: return if self.forceItemCheck: itemHeight = self.gList.GetCharHeight() else: itemHeight = self.gList.GetItemHeight() itemIndex = event.m_y/itemHeight + self.gList.GetScrollPos(wx.VERTICAL) if itemIndex >= len(self.items): return self.rightClickItemIndex = itemIndex choiceSet = self.getChoice(self.items[itemIndex]) menu = wx.Menu() for index,label in enumerate(self.choiceMenu): if label == '----': menu.AppendSeparator() else: menuItem = wx.MenuItem(menu,index,label,kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) if label in choiceSet: menuItem.Check() wx.EVT_MENU(self.gList,index,self.OnItemChoice) self.gList.PopupMenu(menu) menu.Destroy() def OnItemChoice(self,event): """Handle choice menu selection.""" itemIndex = self.rightClickItemIndex item =self.items[itemIndex] choice = self.choiceMenu[event.GetId()] choiceSet = self.configChoices[item] choiceSet ^= set((choice,)) if choice != 'Auto': choiceSet.discard('Auto') elif 'Auto' in self.configChoices[item]: self.getChoice(item) self.gList.SetString(itemIndex,self.getItemLabel(item)) | def OnEditAliases(self,event): text = self.gAliases.GetValue() self.aliases.clear() for line in text.split('\n'): fields = map(string.strip,line.split('>>')) if len(fields) != 2 or not fields[0] or not fields[1]: continue self.aliases[GPath(fields[0])] = GPath(fields[1]) self.SetAliasText() | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4666,
9667,
12,
2890,
16,
2575,
4672,
977,
273,
365,
18,
75,
9667,
18,
967,
620,
1435,
365,
18,
13831,
18,
8507,
1435,
364,
980,
316,
977,
18,
4939,
2668,
64,
82,
11,
4672,
1466,
273,
852,
12,
1080,
18,
6406,
16,
1369,
18,
4939,
2668,
34,
1870,
3719,
309,
562,
12,
2821,
13,
480,
576,
578,
486,
1466,
63,
20,
65,
578,
486,
1466,
63,
21,
14542,
1324,
365,
18,
13831,
63,
43,
743,
12,
2821,
63,
20,
5717,
65,
273,
611,
743,
12,
2821,
63,
21,
5717,
365,
18,
694,
2936,
1528,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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967,
620,
1435,
365,
18,
13831,
18,
8507,
1435,
364,
980,
316,
977,
18,
4939,
2668,
64,
82,
11,
4672,
1466,
273,
852,
12,
1080,
18,
6406,
16,
1369,
18,
4939,
2668,
34,
1870,
3719,
309,
562,
12,
2821,
13,
480,
576,
578,
486,
1466,
63,
20,
65,
578,
486,
1466,
63,
21,
14542,
1324,
365,
18,
13831,
63,
43,
743,
12,
2821,
63,
20,
5717,
65,
273,
611,
743,
12,
2821,
63,
21,
5717,
365,
18,
694,
2936,
1528,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if fn[-3:] == "mmp": | if not ext: ext = ".mmp" if ext == ".mmp": | def fileSaveAs(self): if self.assy: if self.assy.filename: dir, fil, ext = fileparse(self.assy.filename) else: dir, fil = "./", self.assy.name | 3af5176502f95d4d44f823cb48f69513107138bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3af5176502f95d4d44f823cb48f69513107138bd/MWsemantics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
4755,
1463,
12,
2890,
4672,
309,
365,
18,
428,
93,
30,
309,
365,
18,
428,
93,
18,
3459,
30,
1577,
16,
661,
16,
1110,
273,
585,
2670,
12,
2890,
18,
428,
93,
18,
3459,
13,
469,
30,
1577,
16,
661,
273,
25165,
3113,
365,
18,
428,
93,
18,
529,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
4755,
1463,
12,
2890,
4672,
309,
365,
18,
428,
93,
30,
309,
365,
18,
428,
93,
18,
3459,
30,
1577,
16,
661,
16,
1110,
273,
585,
2670,
12,
2890,
18,
428,
93,
18,
3459,
13,
469,
30,
1577,
16,
661,
273,
25165,
3113,
365,
18,
428,
93,
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
] |
print response == gtk.RESPONSE_OK | def isScrapeAllowed(self, url): """Tell the user that URL wasn't a valid feed and ask if it should be scraped for links instead. Returns True if the user gives permission, or False if not.""" summary = "Not a DTV-style channel" message = "But we'll try our best to grab the files.\n- It may take time to list the videos\n- Descriptions may look funny\n\nPlease contact the publishers of %s and ask if they have a DTV-style channel." % url buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, "Continue", gtk.RESPONSE_OK) response = ShowDialog (summary, message, buttons) print response == gtk.RESPONSE_OK if (response == gtk.RESPONSE_OK): return True else: return False | 601660c8ec99e2bb2013b91d859fce71a310d46e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/601660c8ec99e2bb2013b91d859fce71a310d46e/UIBackendDelegate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1541,
25360,
5042,
12,
2890,
16,
880,
4672,
3536,
21009,
326,
729,
716,
1976,
14487,
1404,
279,
923,
4746,
471,
6827,
309,
518,
1410,
506,
888,
1266,
329,
364,
4716,
3560,
18,
2860,
1053,
309,
326,
729,
14758,
4132,
16,
578,
1083,
309,
486,
12123,
4916,
273,
315,
1248,
279,
10696,
58,
17,
4060,
1904,
6,
883,
273,
315,
31167,
732,
5614,
775,
3134,
3796,
358,
11086,
326,
1390,
8403,
82,
17,
2597,
2026,
4862,
813,
358,
666,
326,
24752,
64,
82,
17,
463,
9726,
2026,
2324,
9831,
18538,
64,
82,
64,
82,
8496,
5388,
326,
3808,
414,
434,
738,
87,
471,
6827,
309,
2898,
1240,
279,
10696,
58,
17,
4060,
1904,
1199,
738,
880,
9502,
273,
261,
4521,
79,
18,
31487,
3507,
67,
25268,
16,
22718,
18,
14508,
67,
25268,
16,
315,
12378,
3113,
22718,
18,
14508,
67,
3141,
13,
766,
273,
9674,
6353,
261,
7687,
16,
883,
16,
9502,
13,
309,
261,
2740,
422,
22718,
18,
14508,
67,
3141,
4672,
327,
1053,
469,
30,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1541,
25360,
5042,
12,
2890,
16,
880,
4672,
3536,
21009,
326,
729,
716,
1976,
14487,
1404,
279,
923,
4746,
471,
6827,
309,
518,
1410,
506,
888,
1266,
329,
364,
4716,
3560,
18,
2860,
1053,
309,
326,
729,
14758,
4132,
16,
578,
1083,
309,
486,
12123,
4916,
273,
315,
1248,
279,
10696,
58,
17,
4060,
1904,
6,
883,
273,
315,
31167,
732,
5614,
775,
3134,
3796,
358,
11086,
326,
1390,
8403,
82,
17,
2597,
2026,
4862,
813,
358,
666,
326,
24752,
64,
82,
17,
463,
9726,
2026,
2324,
9831,
18538,
64,
82,
64,
82,
8496,
5388,
326,
3808,
414,
434,
738,
87,
471,
6827,
309,
2898,
1240,
279,
10696,
58,
17,
4060,
1904,
1199,
738,
880,
9502,
273,
2
] |
|
Order by names. __init__ < anything. public < private. otherwise, sorted alphabetically by name. | Compare uid1 and uid2 by their names, using the following rules: - C{'__init__'} < anything. - public < private. - otherwise, sort alphabetically by name. @return: -1 if C{uid1<uid2}; 0 if C{uid1==uid2}; and 1 if C{uid1>uid2}. @rtype: C{int} | def _cmp_name(uid1, uid2): """ Order by names. __init__ < anything. public < private. otherwise, sorted alphabetically by name. """ x = uid1.name() y = uid2.name() if (y == '__init__'): return 1 if (x == '__init__'): return -1 if x == y: return 0 if _is_private(x) and not _is_private(y): return 1 if _is_private(y) and not _is_private(x): return -1 return cmp(x, y) | ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9625,
67,
529,
12,
1911,
21,
16,
4555,
22,
4672,
3536,
11051,
4555,
21,
471,
4555,
22,
635,
3675,
1257,
16,
1450,
326,
3751,
2931,
30,
300,
385,
27828,
972,
2738,
7250,
97,
411,
6967,
18,
300,
1071,
411,
3238,
18,
300,
3541,
16,
1524,
10877,
6478,
635,
508,
18,
225,
632,
2463,
30,
300,
21,
309,
385,
95,
1911,
21,
32,
1911,
22,
20451,
374,
309,
385,
95,
1911,
21,
631,
1911,
22,
20451,
471,
404,
309,
385,
95,
1911,
21,
34,
1911,
22,
5496,
632,
86,
723,
30,
385,
95,
474,
97,
3536,
619,
273,
4555,
21,
18,
529,
1435,
677,
273,
4555,
22,
18,
529,
1435,
309,
261,
93,
422,
4940,
2738,
7250,
4672,
327,
404,
309,
261,
92,
422,
4940,
2738,
7250,
4672,
327,
300,
21,
309,
619,
422,
677,
30,
327,
374,
309,
389,
291,
67,
1152,
12,
92,
13,
471,
486,
389,
291,
67,
1152,
12,
93,
4672,
327,
404,
309,
389,
291,
67,
1152,
12,
93,
13,
471,
486,
389,
291,
67,
1152,
12,
92,
4672,
327,
300,
21,
327,
9411,
12,
92,
16,
677,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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450,
326,
3751,
2931,
30,
300,
385,
27828,
972,
2738,
7250,
97,
411,
6967,
18,
300,
1071,
411,
3238,
18,
300,
3541,
16,
1524,
10877,
6478,
635,
508,
18,
225,
632,
2463,
30,
300,
21,
309,
385,
95,
1911,
21,
32,
1911,
22,
20451,
374,
309,
385,
95,
1911,
21,
631,
1911,
22,
20451,
471,
404,
309,
385,
95,
1911,
21,
34,
1911,
22,
5496,
632,
86,
723,
30,
385,
95,
474,
97,
3536,
619,
273,
4555,
21,
18,
529,
1435,
677,
273,
4555,
22,
18,
529,
1435,
309,
261,
93,
422,
4940,
2738,
7250,
4672,
2
] |
self.modified = 1 | self.modified = True | def loadItem(self): ext = FileExt[self.currentTabLabel] extstr = '' if not isinstance(ext, types.StringType): for e in ext: extstr += '*%s.xml *.%s ' % (e, e) ext = ext[0] else: extstr = '*%s.xml *.%s' % (ext, ext) extstr = "Items (%s);;All Files (*.*)" % extstr.rstrip() itemdir = self.ItemPath recentdir = [] if os.path.exists(os.path.join(itemdir, self.realm, ext)): itemdir = os.path.join(self.ItemPath, self.realm, ext) if self.coop: for realm in Realms: if realm != self.realm: recentdir.append(os.path.join(self.ItemPath, realm,ext)) recentdir.append(os.path.join(self.ItemPath, "All", ext)) elif os.path.exists(os.path.join(itemdir, 'All', ext)): itemdir = os.path.join(self.ItemPath, 'All', ext) Qfd = ItemList.ItemListDialog(self, "Load Item", itemdir, extstr, self.realm, self.charclass) Qfd.setHistory(recentdir) if Qfd.exec_(): if Qfd.selectedFiles().count() > 0: filename = unicode(Qfd.selectedFiles()[0]) item = Item('drop', self.currentTabLabel, self.realm, self.itemIndex) if item.load(filename,str(self.itemnumbering)) == -1: return if string.lower(item.Realm) != string.lower(self.realm)\ and string.lower(item.Realm) != 'all'\ and not self.coop: QMessageBox.critical(None, 'Error!', 'You are trying to load an ' \ + 'item for another realm!', 'OK') return self.itemIndex += 1 self.itemnumbering += 1 if item.next: item.next.TemplateIndex = self.itemIndex self.itemIndex += 1 item.Location = self.currentTabLabel item.Equipped = self.itemattrlist[self.currentTabLabel].Equipped self.itemattrlist[self.currentTabLabel].Equipped = '0' item.next = self.itemattrlist[self.currentTabLabel] self.itemattrlist[self.currentTabLabel] = item self.restoreItem(item) self.modified = 1 | cdc9cf773cf0c254cf668f14ba48aa9d538724e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/cdc9cf773cf0c254cf668f14ba48aa9d538724e6/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1180,
12,
2890,
4672,
1110,
273,
1387,
2482,
63,
2890,
18,
2972,
5661,
2224,
65,
1110,
701,
273,
875,
309,
486,
1549,
12,
408,
16,
1953,
18,
780,
559,
4672,
364,
425,
316,
1110,
30,
1110,
701,
1011,
14609,
9,
87,
18,
2902,
380,
7866,
87,
296,
738,
261,
73,
16,
425,
13,
1110,
273,
1110,
63,
20,
65,
469,
30,
1110,
701,
273,
14609,
9,
87,
18,
2902,
380,
7866,
87,
11,
738,
261,
408,
16,
1110,
13,
1110,
701,
273,
315,
3126,
6142,
87,
1769,
31,
1595,
6471,
261,
14,
4509,
2225,
738,
1110,
701,
18,
86,
6406,
1435,
761,
1214,
273,
365,
18,
1180,
743,
8399,
1214,
273,
5378,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
1726,
1214,
16,
365,
18,
24056,
16,
1110,
3719,
30,
761,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1180,
743,
16,
365,
18,
24056,
16,
1110,
13,
309,
365,
18,
2894,
556,
30,
364,
11319,
316,
15987,
959,
30,
309,
11319,
480,
365,
18,
24056,
30,
8399,
1214,
18,
6923,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
1180,
743,
16,
11319,
16,
408,
3719,
8399,
1214,
18,
6923,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
1180,
743,
16,
315,
1595,
3113,
1110,
3719,
1327,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
1726,
1214,
16,
296,
1595,
2187,
1110,
3719,
30,
761,
1214,
273,
1140,
18,
803,
18,
5701,
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,
1262,
1180,
12,
2890,
4672,
1110,
273,
1387,
2482,
63,
2890,
18,
2972,
5661,
2224,
65,
1110,
701,
273,
875,
309,
486,
1549,
12,
408,
16,
1953,
18,
780,
559,
4672,
364,
425,
316,
1110,
30,
1110,
701,
1011,
14609,
9,
87,
18,
2902,
380,
7866,
87,
296,
738,
261,
73,
16,
425,
13,
1110,
273,
1110,
63,
20,
65,
469,
30,
1110,
701,
273,
14609,
9,
87,
18,
2902,
380,
7866,
87,
11,
738,
261,
408,
16,
1110,
13,
1110,
701,
273,
315,
3126,
6142,
87,
1769,
31,
1595,
6471,
261,
14,
4509,
2225,
738,
1110,
701,
18,
86,
6406,
1435,
761,
1214,
273,
365,
18,
1180,
743,
8399,
1214,
273,
5378,
309,
1140,
18,
803,
18,
2
] |
def test_mktime(self): self.assertRaises(OverflowError, time.mktime, (999999, 999999, 999999, 999999, 999999, 999999, 999999, 999999, 999999)) | def test_mktime(self): self.assertRaises(OverflowError, time.mktime, (999999, 999999, 999999, 999999, 999999, 999999, 999999, 999999, 999999)) | 48a5ab800c3a8a35c86664397552e0d3225b3ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/48a5ab800c3a8a35c86664397552e0d3225b3ea8/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
24816,
957,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
813,
18,
24816,
957,
16,
261,
22866,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
3719,
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,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0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
24816,
957,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
813,
18,
24816,
957,
16,
261,
22866,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
16,
23841,
29,
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,
-100,
-100
] |
|
funcChild = node[0] if funcChild.type == "function": func = "(%s)" % compress(funcChild) else: func = compress(funcChild) result = "%s(%s)" % (func, compress(node[1])) | result = "%s(%s)" % (compress(node[0]), compress(node[1])) | def __call(node): global __endsBlock # self-executing functions needs to be wrapped to be valid JS funcChild = node[0] if funcChild.type == "function": func = "(%s)" % compress(funcChild) else: func = compress(funcChild) result = "%s(%s)" % (func, compress(node[1])) __endsBlock = False return result | 39f0d1e48cdb5a3dd68b067928162f03e311990f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/39f0d1e48cdb5a3dd68b067928162f03e311990f/Compressor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
12,
2159,
4672,
2552,
1001,
5839,
1768,
225,
468,
365,
17,
4177,
8490,
4186,
4260,
358,
506,
5805,
358,
506,
923,
6756,
2088,
273,
2213,
87,
9275,
87,
2225,
738,
261,
14706,
12,
2159,
63,
20,
65,
3631,
8099,
12,
2159,
63,
21,
22643,
1001,
5839,
1768,
273,
1083,
327,
563,
225,
2,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
12,
2159,
4672,
2552,
1001,
5839,
1768,
225,
468,
365,
17,
4177,
8490,
4186,
4260,
358,
506,
5805,
358,
506,
923,
6756,
2088,
273,
2213,
87,
9275,
87,
2225,
738,
261,
14706,
12,
2159,
63,
20,
65,
3631,
8099,
12,
2159,
63,
21,
22643,
1001,
5839,
1768,
273,
1083,
327,
563,
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
] |
sage: B = A.change_ring(Integers(p**prec)) sage: B [90 62] [70 33] | sage: B = A.change_ring(Integers(p**prec)) sage: B [90 62] [70 33] | def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be a $\Z/(p^M)\Z$-algebra in which the matrix of frobenius will be constructed. p -- prime >= 5 for which E has good reduction M -- integer >= 2; $p$-adic precision of the coefficient ring trace -- (optional) the trace of the matrix, if known in advance. This is easy to compute because it's just the $a_p$ of the curve. If the trace is supplied, matrix_of_frobenius will use it to speed the computation (i.e. we know the determinant is $p$, so we have two conditions, so really only column of the matrix needs to be computed. It's actually a little more complicated than that, but that's the basic idea.) If trace=None, then both columns will be computed independently, and you can get a strong indication of correctness by verifying the trace afterwards. WARNING: -- THE RESULT WILL NOT NECESSARILY BE CORRECT TO M p-ADIC DIGITS. If you want prec digits of precision, you need to use the function adjusted_prec(), and then you need to reduce the answer mod p^prec at the end. OUTPUT: 2x2 matrix of frobenius on Monsky-Washnitzer cohomology, with entries in the coefficient ring of Q. EXAMPLES: A simple example: sage: p = 5 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: M 5 sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) sage: A [3090 187] [2945 408] But the result is only accurate to prec digits: sage: B = A.change_ring(Integers(p**prec)) sage: B [90 62] [70 33] Check trace (123 = -2 mod 125) and determinant: sage: B.det() 5 sage: B.trace() 123 sage: EllipticCurve([-1, 1/4]).ap(5) -2 Try using the trace to speed up the calculation: sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), ... p, M, -2) sage: A [2715 187] [1445 408] Hmmm... it looks different, but that's because the trace of our first answer was only -2 modulo $5^3$, not -2 modulo $5^5$. So the right answer is: sage: A.change_ring(Integers(p**prec)) [90 62] [70 33] Check it works with only one digit of precision: sage: p = 5 sage: prec = 1 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) sage: A.change_ring(Integers(p)) [0 2] [0 3] Here's an example that's particularly badly conditioned for using the trace trick: sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 + 7*x + 8, p, M) sage: A.change_ring(Integers(p**prec)) [1144 176] [ 847 185] The problem here is that the top-right entry is divisible by 11, and the bottom-left entry is divisible by $11^2$. So when you apply the trace trick, neither $F(dx/y)$ nor $F(x dx/y)$ is enough to compute the whole matrix to the desired precision, even if you try increasing the target precision by one. Nevertheless, \code{matrix_of_frobenius} knows how to get the right answer by evaluating $F((x+1) dx/y)$ instead: sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 + 7*x + 8, p, M, -2) sage: A.change_ring(Integers(p**prec)) [1144 176] [ 847 185] The running time is about \code{O(p * prec**2)} (times some logarithmic factors), so it's feasible to run on fairly large primes, or precision (or both?!?!): sage: p = 10007 sage: prec = 2 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: B = A.change_ring(Integers(p**prec)); B # long time [74311982 57996908] [95877067 25828133] sage: B.det() # long time 10007 sage: B.trace() # long time 66 sage: EllipticCurve([-1, 1/4]).ap(10007) # long time 66 sage: p = 5 sage: prec = 300 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: B = A.change_ring(Integers(p**prec)) # long time sage: B.det() # long time 5 sage: -B.trace() # long time 2 sage: EllipticCurve([-1, 1/4]).ap(5) # long time -2 Let's check consistency of the results for a range of precisions: sage: p = 5 sage: max_prec = 60 sage: M = monsky_washnitzer.adjusted_prec(p, max_prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) # long time sage: A = A.change_ring(Integers(p**max_prec)) # long time sage: result = [] # long time sage: for prec in range(1, max_prec): # long time ... M = monsky_washnitzer.adjusted_prec(p, prec) # long time ... R.<x> = PolynomialRing(Integers(p^M),'x') # long time ... B = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time ... B = B.change_ring(Integers(p**prec)) # long time ... result.append(B == A.change_ring( # long time ... Integers(p**prec))) # long time sage: result == [True] * (max_prec - 1) # long time True The remaining examples discuss what happens when you take the coefficient ring to be a power series ring; i.e. in effect you're looking at a family of curves. The code does in fact work... sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: S.<t> = PowerSeriesRing(Integers(p**M), default_prec=4) sage: a = 7 + t + 3*t^2 sage: b = 8 - 6*t + 17*t^2 sage: R.<x> = PolynomialRing(S) sage: Q = x**3 + a*x + b sage: A = monsky_washnitzer.matrix_of_frobenius(Q, p, M) # long time sage: B = A.change_ring(PowerSeriesRing(Integers(p**prec), 't', default_prec=4)) # long time sage: B # long time [1144 + 264*t + 841*t^2 + 1025*t^3 + O(t^4) 176 + 1052*t + 216*t^2 + 523*t^3 + O(t^4)] [ 847 + 668*t + 81*t^2 + 424*t^3 + O(t^4) 185 + 341*t + 171*t^2 + 642*t^3 + O(t^4)] The trace trick should work for power series rings too, even in the badly- conditioned case. Unfortunately I don't know how to compute the trace in advance, so I'm not sure exactly how this would help. Also, I suspect the running time will be dominated by the expansion, so the trace trick won't really speed things up anyway. Another problem is that the determinant is not always p: sage: B.det() # long time 11 + 484*t^2 + 451*t^3 + O(t^4) However, it appears that the determinant always has the property that if you substitute t -> 11t, you do get the constant series p (mod p**prec). Similarly for the trace. And since the parameter only really makes sense when it's divisible by p anyway, perhaps this isn't a problem after all. """ M = int(M) if M < 2: raise ValueError, "M (=%s) must be at least 2" % M base_ring = Q.base_ring() # Expand out frobenius of dx/y and x dx/y. # (You can substitute frobenius_expansion_by_series here, that will work # as well. See its docstring for some performance notes.) F0, F1, offset = frobenius_expansion_by_newton(Q, p, M) #F0, F1, offset = frobenius_expansion_by_series(Q, p, M) if compute_exact_forms: # we need to do all the work to get the exact expressions f such that F(x^i dx/y) = df + \sum a_i x^i dx/y F0_coeffs = transpose_list(F0.coeffs()) F0_reduced, f_0 = reduce_all(Q, p, F0_coeffs, offset, True) F1_coeffs = transpose_list(F1.coeffs()) F1_reduced, f_1 = reduce_all(Q, p, F1_coeffs, offset, True) elif M == 2: # This implies that only one digit of precision is valid, so we only need # to reduce the second column. Also, the trace doesn't help at all. F0_reduced = [ base_ring(0), base_ring(0) ] F1_coeffs = transpose_list(F1.coeffs()) F1_reduced = reduce_all(Q, p, F1_coeffs, offset) elif trace is None: # No trace provided, just reduce F(dx/y) and F(x dx/y) separately. F0_coeffs = transpose_list(F0.coeffs()) F0_reduced = reduce_all(Q, p, F0_coeffs, offset) F1_coeffs = transpose_list(F1.coeffs()) F1_reduced = reduce_all(Q, p, F1_coeffs, offset) else: # Trace has been provided. # In most cases this can be used to quickly compute F(dx/y) from # F(x dx/y). However, if we're unlucky, the (dx/y)-component of # F(x dx/y) (i.e. the top-right corner of the matrix) may be divisible # by p, in which case there isn't enough information to get the # (x dx/y)-component of F(dx/y) to the desired precision. When this # happens, it turns out that F((x+1) dx/y) always *does* give enough # information (together with the trace) to get both columns to the # desired precision. # First however we need a quick way of telling whether the top-right # corner is divisible by p, i.e. we want to compute the second column # of the matrix mod p. We could do this by just running the entire # algorithm with M = 2 (which assures precision 1). Luckily, we've # already done most of the work by computing F1 to high precision; so # all we need to do is extract the coefficients that would correspond # to the first term of the series, and run the reduction on them. # todo: actually we only need to do this reduction step mod p^2, not # mod p^M, which is what the code currently does. If the base ring # is Integers(p^M), then it's easy. Otherwise it's tricky to construct # the right ring, I don't know how to do it. F1_coeffs = transpose_list(F1.coeffs()) F1_modp_coeffs = F1_coeffs[int((M-2)*p):] # make a copy, because reduce_all will destroy the coefficients: F1_modp_coeffs = [[cell for cell in row] for row in F1_modp_coeffs] F1_modp_offset = offset - (M-2)*p F1_modp_reduced = reduce_all(Q, p, F1_modp_coeffs, F1_modp_offset) if F1_modp_reduced[0].is_unit(): # If the first entry is invertible mod p, then F(x dx/y) is sufficient # to get the whole matrix. F1_reduced = reduce_all(Q, p, F1_coeffs, offset) F0_reduced = [ base_ring(trace) - F1_reduced[1], None ] # using that the determinant is p: F0_reduced[1] = (F0_reduced[0] * F1_reduced[1] - base_ring(p)) \ / F1_reduced[0] else: # If the first entry is zero mod p, then F((x+1) dx/y) will be sufficient # to get the whole matrix. (Here we are using the fact that the second # entry *cannot* be zero mod p. This is guaranteed by some results in # section 3.2 of ``Computation of p-adic Heights and Log Convergence'' # by Mazur, Stein, Tate. But let's quickly check it anyway :-)) assert F1_modp_reduced[1].is_unit(), \ "Hey that's impossible! The second entry in the second column " \ "should be invertible mod p!" G0_coeffs = transpose_list( (F0 + F1).coeffs()) G0_reduced = reduce_all(Q, p, G0_coeffs, offset) # Now G0_reduced expresses F((x+1) dx/y) in terms of dx/y and x dx/y. # Re-express this in terms of (x+1) dx/y and x dx/y. H0_reduced = [ G0_reduced[0], G0_reduced[1] - G0_reduced[0] ] # The thing we're about to divide by better be a unit. assert H0_reduced[1].is_unit(), \ "Hey that's impossible! The second entry in this column " \ "should be invertible mod p!" # Figure out the second column using the trace... H1_reduced = [ None, base_ring(trace) - H0_reduced[0] ] # ... and using that the determinant is p: H1_reduced[0] = (H0_reduced[0] * H1_reduced[1] - base_ring(p)) \ / H0_reduced[1] # Finally, change back to the usual basis (dx/y, x dx/y) F1_reduced = [ H1_reduced[0], \ H1_reduced[0] + H1_reduced[1] ] F0_reduced = [ H0_reduced[0] - F1_reduced[0], H0_reduced[0] + H0_reduced[1] - F1_reduced[1] ] # One more sanity check: our final result should be congruent mod p # to the approximation we used earlier. assert not ( (F1_reduced[0] - F1_modp_reduced[0]).is_unit() or \ (F1_reduced[1] - F1_modp_reduced[1]).is_unit() or \ F0_reduced[0].is_unit() or F0_reduced[1].is_unit()), \ "Hey that's impossible! The output matrix is not congruent mod p " \ "to the approximation found earlier!" if compute_exact_forms: return matrix(base_ring, 2, 2, [F0_reduced[0], F1_reduced[0], F0_reduced[1], F1_reduced[1]]), f_0, f_1 else: return matrix(base_ring, 2, 2, [F0_reduced[0], F1_reduced[0], F0_reduced[1], F1_reduced[1]]) | e8c5dfe629aabf0303b396e56733ea0c7032d92a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e8c5dfe629aabf0303b396e56733ea0c7032d92a/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
19425,
8384,
603,
490,
7008,
18465,
17,
59,
961,
82,
305,
24355,
1825,
17125,
4676,
16,
598,
8762,
358,
326,
10853,
27488,
13437,
19,
93,
16,
619,
6633,
19,
93,
21877,
18,
225,
12943,
30,
2238,
1493,
31247,
16991,
271,
53,
12,
92,
13,
273,
619,
66,
23,
397,
1740,
397,
324,
8,
9364,
392,
415,
549,
21507,
8882,
512,
635,
271,
93,
66,
22,
273,
2238,
12,
92,
21877,
18,
1021,
16554,
9221,
434,
2238,
1410,
506,
279,
271,
64,
62,
19,
12,
84,
66,
49,
5153,
62,
8,
17,
287,
29087,
316,
1492,
326,
3148,
434,
284,
303,
19425,
8384,
903,
506,
15688,
18,
293,
1493,
17014,
1545,
1381,
364,
1492,
512,
711,
7494,
20176,
490,
1493,
3571,
1545,
576,
31,
271,
84,
8,
17,
20333,
6039,
434,
326,
16554,
9221,
2606,
1493,
261,
10444,
13,
326,
2606,
434,
326,
3148,
16,
309,
4846,
316,
8312,
18,
1220,
353,
12779,
358,
3671,
2724,
518,
1807,
2537,
326,
271,
69,
67,
84,
8,
434,
326,
8882,
18,
971,
326,
2606,
353,
4580,
16,
3148,
67,
792,
67,
74,
303,
19425,
8384,
903,
999,
518,
358,
8632,
326,
16039,
261,
77,
18,
73,
18,
732,
5055,
326,
6328,
970,
353,
271,
84,
8,
16,
1427,
732,
1240,
2795,
4636,
16,
1427,
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,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
19425,
8384,
603,
490,
7008,
18465,
17,
59,
961,
82,
305,
24355,
1825,
17125,
4676,
16,
598,
8762,
358,
326,
10853,
27488,
13437,
19,
93,
16,
619,
6633,
19,
93,
21877,
18,
225,
12943,
30,
2238,
1493,
31247,
16991,
271,
53,
12,
92,
13,
273,
619,
66,
23,
397,
1740,
397,
324,
8,
9364,
392,
415,
549,
21507,
8882,
512,
635,
271,
93,
66,
22,
273,
2238,
12,
92,
21877,
18,
1021,
16554,
9221,
434,
2238,
1410,
506,
279,
271,
64,
62,
19,
2
] |
firstName = conf.get("firstName", username) secondName = conf.get("secondName", _("Guest")) | conf.set("firstName", conf.get("firstName", username)) conf.set("secondName", conf.get("secondName", _("Guest"))) | def __init__ (self, widgets): userdata = getpwuid(getuid()) username = userdata.pw_gecos or userdata.pw_name firstName = conf.get("firstName", username) secondName = conf.get("secondName", _("Guest")) # Give to uistuff.keeper for key in ("firstName", "secondName", "hideTabs", "autoRotate", "showCords", "figuresInNotation", "fullAnimation", "moveAnimation", "noAnimation"): uistuff.keep(widgets[key], key) | 54713e13df764032ab0c4dc06498e0a80d83dea2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/54713e13df764032ab0c4dc06498e0a80d83dea2/preferencesDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
10965,
4672,
225,
21518,
273,
336,
14921,
1911,
12,
588,
1911,
10756,
2718,
273,
21518,
18,
14921,
67,
75,
557,
538,
578,
21518,
18,
14921,
67,
529,
2195,
18,
542,
2932,
3645,
461,
3113,
2195,
18,
588,
2932,
3645,
461,
3113,
2718,
3719,
2195,
18,
542,
2932,
8538,
461,
3113,
2195,
18,
588,
2932,
8538,
461,
3113,
389,
2932,
12978,
6,
20349,
225,
468,
22374,
358,
582,
376,
3809,
18,
79,
9868,
225,
364,
498,
316,
7566,
3645,
461,
3113,
315,
8538,
461,
3113,
315,
11248,
17348,
3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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
10965,
4672,
225,
21518,
273,
336,
14921,
1911,
12,
588,
1911,
10756,
2718,
273,
21518,
18,
14921,
67,
75,
557,
538,
578,
21518,
18,
14921,
67,
529,
2195,
18,
542,
2932,
3645,
461,
3113,
2195,
18,
588,
2932,
3645,
461,
3113,
2718,
3719,
2195,
18,
542,
2932,
8538,
461,
3113,
2195,
18,
588,
2932,
8538,
461,
3113,
389,
2932,
12978,
6,
20349,
225,
468,
22374,
358,
582,
376,
3809,
18,
79,
9868,
225,
364,
498,
316,
7566,
3645,
461,
3113,
315,
8538,
461,
3113,
315,
11248,
17348,
3113,
315,
6079,
16357,
3113,
315,
4500,
39,
517,
87,
3113,
315,
470,
1823,
382,
14818,
3113,
315,
2854,
10816,
3113,
315,
8501,
10816,
3113,
2
] |
attrib = { 'style:vertical-pos': 'top', 'style:vertical-rel': 'paragraph', 'style:horizontal-rel': 'paragraph', 'style:mirror': 'none', 'fo:clip': 'rect(0cm 0cm 0cm 0cm)', 'draw:luminance': '0%', 'draw:contrast': '0%', 'draw:red': '0%', 'draw:green': '0%', 'draw:blue': '0%', 'draw:gamma': '100%', 'draw:color-inversion': 'false', 'draw:image-opacity': '100%', 'draw:color-mode': 'standard', } | if frame_attrs is None: attrib = { 'style:vertical-pos': 'top', 'style:vertical-rel': 'paragraph', 'style:horizontal-rel': 'paragraph', 'style:mirror': 'none', 'fo:clip': 'rect(0cm 0cm 0cm 0cm)', 'draw:luminance': '0%', 'draw:contrast': '0%', 'draw:red': '0%', 'draw:green': '0%', 'draw:blue': '0%', 'draw:gamma': '100%', 'draw:color-inversion': 'false', 'draw:image-opacity': '100%', 'draw:color-mode': 'standard', } else: attrib = frame_attrs | def generate_image(self, node, source, destination, current_element): #ipshell('At generate_image') self.image_style_count += 1 style_name = 'rstframestyle%d' % self.image_style_count # Add the style. attrib = { 'style:name': style_name, 'style:family': 'graphic', 'style:parent-style-name': 'Graphics', } el1 = SubElement(self.automatic_styles, 'style:style', attrib=attrib, nsdict=SNSD) halign = None valign = None if 'align' in node.attributes: align = node.attributes['align'].split() for val in align: if val in ('left', 'center', 'right'): halign = val elif val in ('top', 'middle', 'bottom'): valign = val attrib = { 'style:vertical-pos': 'top', 'style:vertical-rel': 'paragraph', #'style:horizontal-pos': halign, #'style:vertical-pos': valign, 'style:horizontal-rel': 'paragraph', 'style:mirror': 'none', 'fo:clip': 'rect(0cm 0cm 0cm 0cm)', 'draw:luminance': '0%', 'draw:contrast': '0%', 'draw:red': '0%', 'draw:green': '0%', 'draw:blue': '0%', 'draw:gamma': '100%', 'draw:color-inversion': 'false', 'draw:image-opacity': '100%', 'draw:color-mode': 'standard', } if halign is not None: attrib['style:horizontal-pos'] = halign if valign is not None: attrib['style:vertical-pos'] = valign #ipshell('At generate_image') # If we are inside a table, add a no-wrap style. if self.is_in_table(node): attrib['style:wrap'] = 'none' el2 = SubElement(el1, 'style:graphic-properties', attrib=attrib, nsdict=SNSD) # Add the content. #el = SubElement(current_element, 'text:p', # attrib={'text:style-name': 'rststyle-textbody'}) attrib={ 'draw:style-name': style_name, 'draw:name': 'graphics2', #'text:anchor-type': 'paragraph', #'svg:width': '%fcm' % (width, ), #'svg:height': '%fcm' % (height, ), 'draw:z-index': '1', } if isinstance(node.parent, nodes.TextElement): attrib['text:anchor-type'] = 'char' else: attrib['text:anchor-type'] = 'paragraph' if 'scale' in node.attributes: try: scale = int(node.attributes['scale']) if scale < 1: # or scale > 100: raise ValueError scale = scale * 0.01 except ValueError, e: print 'Error: Invalid scale for image: "%s"' % ( node.attributes['scale'], ) else: scale = 1.0 if 'width' in node.attributes: try: width = int(node.attributes['width']) width = width * (35.278 / 1000.0) width *= scale attrib['svg:width'] = '%.2fcm' % (width, ) except ValueError, e: print 'Error: Invalid width for image: "%s"' % ( node.attributes['width'], ) if 'height' in node.attributes: try: height = int(node.attributes['height']) height = height * (35.278 / 1000.0) height *= scale attrib['svg:height'] = '%.2fcm' % (height, ) except ValueError, e: print 'Error: Invalid height for image: "%s"' % ( node.attributes['height'], ) if ('scale' in node.attributes and ('width' not in node.attributes or 'height' not in node.attributes)): if Image is not None: if source in self.image_dict: filename, destination = self.image_dict[source] imageobj = Image.open(filename, 'r') width, height = imageobj.size width = width * (35.278 / 1000.0) width *= scale attrib['svg:width'] = '%.2fcm' % (width, ) height = height * (35.278 / 1000.0) height *= scale attrib['svg:height'] = '%.2fcm' % (height, ) else: raise RuntimeError, 'image has scale and no height/width and PIL not installed' el1 = SubElement(current_element, 'draw:frame', attrib=attrib) el2 = SubElement(el1, 'draw:image', attrib={ 'xlink:href': '%s' % (destination, ), 'xlink:type': 'simple', 'xlink:show': 'embed', 'xlink:actuate': 'onLoad', }) return el1 | 086c03a394bb4fe54c588e814ac2435862cc205a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/086c03a394bb4fe54c588e814ac2435862cc205a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2730,
12,
2890,
16,
756,
16,
1084,
16,
2929,
16,
783,
67,
2956,
4672,
468,
625,
10304,
2668,
861,
2103,
67,
2730,
6134,
365,
18,
2730,
67,
4060,
67,
1883,
1011,
404,
2154,
67,
529,
273,
296,
16114,
74,
1940,
19706,
9,
72,
11,
738,
365,
18,
2730,
67,
4060,
67,
1883,
468,
1436,
326,
2154,
18,
5885,
273,
288,
296,
4060,
30,
529,
4278,
2154,
67,
529,
16,
296,
4060,
30,
9309,
4278,
296,
4660,
335,
2187,
296,
4060,
30,
2938,
17,
4060,
17,
529,
4278,
296,
17558,
2187,
289,
415,
21,
273,
5479,
12,
2890,
18,
5854,
4941,
67,
10218,
16,
296,
4060,
30,
4060,
2187,
5885,
33,
14588,
16,
3153,
1576,
33,
55,
3156,
40,
13,
366,
7989,
273,
599,
1244,
724,
273,
599,
309,
296,
7989,
11,
316,
756,
18,
4350,
30,
5689,
273,
756,
18,
4350,
3292,
7989,
29489,
4939,
1435,
364,
1244,
316,
5689,
30,
309,
1244,
316,
7707,
4482,
2187,
296,
5693,
2187,
296,
4083,
11,
4672,
366,
7989,
273,
1244,
1327,
1244,
316,
7707,
3669,
2187,
296,
18661,
2187,
296,
9176,
11,
4672,
1244,
724,
273,
1244,
5885,
273,
288,
296,
4060,
30,
17824,
17,
917,
4278,
296,
3669,
2187,
296,
4060,
30,
17824,
17,
2878,
4278,
296,
22445,
2187,
25767,
4060,
30,
18396,
17,
917,
4278,
366,
7989,
16,
25767,
4060,
30,
17824,
17,
917,
4278,
1244,
724,
16,
296,
4060,
30,
18396,
17,
2878,
4278,
296,
22445,
2187,
296,
4060,
30,
27197,
4278,
296,
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,
2730,
12,
2890,
16,
756,
16,
1084,
16,
2929,
16,
783,
67,
2956,
4672,
468,
625,
10304,
2668,
861,
2103,
67,
2730,
6134,
365,
18,
2730,
67,
4060,
67,
1883,
1011,
404,
2154,
67,
529,
273,
296,
16114,
74,
1940,
19706,
9,
72,
11,
738,
365,
18,
2730,
67,
4060,
67,
1883,
468,
1436,
326,
2154,
18,
5885,
273,
288,
296,
4060,
30,
529,
4278,
2154,
67,
529,
16,
296,
4060,
30,
9309,
4278,
296,
4660,
335,
2187,
296,
4060,
30,
2938,
17,
4060,
17,
529,
4278,
296,
17558,
2187,
289,
415,
21,
273,
5479,
12,
2890,
18,
5854,
4941,
67,
10218,
16,
296,
4060,
30,
4060,
2187,
5885,
33,
14588,
16,
3153,
1576,
33,
55,
2
] |
self.debug_trace("Tag_ubyte_array") | def Tag_ubyte_array(self): self.debug_trace("Tag_ubyte_array") if ( self.getTag( 'ubyte_array' ) ): self.consume_to_char_plus_one('[') self.pack_string = 'B' return 1 return 0 | ecf78c969222f7513a2f516b0355728295fb546a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/ecf78c969222f7513a2f516b0355728295fb546a/pxlasm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
10340,
736,
67,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
10340,
736,
67,
1126,
12,
2890,
4672,
309,
261,
365,
18,
588,
1805,
12,
296,
10340,
736,
67,
1126,
11,
262,
262,
30,
365,
18,
21224,
67,
869,
67,
3001,
67,
10103,
67,
476,
2668,
3292,
13,
365,
18,
2920,
67,
1080,
273,
296,
38,
11,
327,
404,
327,
374,
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 eval(p, sage.all.__dict__, locals) | if len(cmds): exec cmd_seq in sage.all.__dict__, locals return locals['_sage_eval_returnval_'] else: return eval(source, sage.all.__dict__, locals) | def sage_eval(source, locals={}): r""" Obtain a \SAGE object from the input string by evaluate it using SAGE. This means calling eval after preparsing and with globals equal to everything included in the scope of \code{from sage.all import *}.). If the object has an _sage_ method it is called and the value is returned. Otherwise str is called on the object, and all preparsing is applied and the resulting expression is evaluated in the context of \code{from sage.all import *}. To evaluate the expression with certain variables set, use the locals argument, which should be a dictionary. EXAMPLES: This example illustrates that preparsing is applied. sage: eval('2^3') 1 sage: sage_eval('2^3') 8 Note that you have explicitly define variables and pass them as the second option: sage: x = PolynomialRing(RationalField(),"x").gen() sage: sage_eval('x^2+1', locals={'x':x}) x^2 + 1 This illustrates interfaces: sage: f = gp('2/3') sage: type(f) <class 'sage.interfaces.gp.GpElement'> sage: f._sage_() 2/3 sage: type(f._sage_()) <type 'sage.rings.rational.Rational'> sage: a = gap(939393/2433) sage: a._sage_() 313131/811 sage: type(a._sage_()) <type 'sage.rings.rational.Rational'> This example illustrates that evaluation occurs in the context of \code{from sage.all import *}. Even though bernoulli has been redefined in the local scope, when calling \code{sage_eval} the default value meaning of bernoulli is used. Likewise for QQ below. sage: bernoulli = lambda x : x^2 sage: bernoulli(6) 36 sage: eval('bernoulli(6)') 36 sage: sage_eval('bernoulli(6)') 1/42 sage: QQ = lambda x : x^2 sage: QQ(2) 4 sage: sage_eval('QQ(2)') 2 sage: parent(sage_eval('QQ(2)')) Rational Field This example illustrates setting a variable for use in evaluation. sage: x = 5 sage: eval('4/3 + x', {'x':25}) 26 sage: sage_eval('4/3 + x', locals={'x':25}) 79/3 This example illustrates how \code{sage_eval} can be useful when evaluating the output of other computer algebra systems. sage: R.<x> = PolynomialRing(RationalField()) sage: gap.eval('R:=PolynomialRing(Rationals,["x"]);') 'PolynomialRing(..., [ x ])' sage: ff = gap.eval('x:=IndeterminatesOfPolynomialRing(R);; f:=x^2+1;'); ff 'x^2+1' sage: sage_eval(ff, locals={'x':x}) x^2 + 1 sage: eval(ff) Traceback (most recent call last): ... RuntimeError: Use ** for exponentiation, not '^', which means xor in Python, and has the wrong precedence. Here you can see eval simply will not work but \code{sage_eval} will. """ if not isinstance(source, basestring): raise TypeError, "source must be a string." import sage.all p = preparse(source) try: return eval(p, sage.all.__dict__, locals) except SyntaxError, msg: raise SyntaxError, "%s\nError using SAGE to evaluate '%s'"%(msg, p) | ed8606501475114ac6a3106e3f3022c0879a34e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ed8606501475114ac6a3106e3f3022c0879a34e9/sage_eval.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
8622,
12,
3168,
16,
8985,
12938,
4672,
436,
8395,
24850,
279,
521,
55,
2833,
733,
628,
326,
810,
533,
635,
5956,
518,
1450,
348,
2833,
18,
225,
1220,
4696,
4440,
5302,
1839,
675,
24979,
471,
598,
10941,
3959,
358,
7756,
5849,
316,
326,
2146,
434,
521,
710,
95,
2080,
272,
410,
18,
454,
1930,
380,
5496,
2934,
225,
971,
326,
733,
711,
392,
389,
87,
410,
67,
707,
518,
353,
2566,
471,
326,
460,
353,
2106,
18,
225,
5272,
609,
353,
2566,
603,
326,
733,
16,
471,
777,
675,
24979,
353,
6754,
471,
326,
8156,
2652,
353,
12697,
316,
326,
819,
434,
521,
710,
95,
2080,
272,
410,
18,
454,
1930,
380,
5496,
225,
2974,
5956,
326,
2652,
598,
8626,
3152,
444,
16,
999,
326,
8985,
1237,
16,
1492,
1410,
506,
279,
3880,
18,
225,
5675,
8900,
11386,
30,
1220,
3454,
277,
2906,
27008,
815,
716,
675,
24979,
353,
6754,
18,
272,
410,
30,
5302,
2668,
22,
66,
23,
6134,
404,
272,
410,
30,
272,
410,
67,
8622,
2668,
22,
66,
23,
6134,
1725,
225,
3609,
716,
1846,
1240,
8122,
4426,
3152,
471,
1342,
2182,
487,
326,
2205,
1456,
30,
225,
272,
410,
30,
619,
273,
6730,
13602,
10369,
12,
54,
8371,
974,
9334,
6,
92,
20387,
4507,
1435,
272,
410,
30,
272,
410,
67,
8622,
2668,
92,
66,
22,
15,
21,
2187,
8985,
5899,
11,
92,
4278,
92,
6792,
619,
66,
22,
397,
404,
225,
1220,
277,
2906,
27008,
815,
7349,
30,
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,
272,
410,
67,
8622,
12,
3168,
16,
8985,
12938,
4672,
436,
8395,
24850,
279,
521,
55,
2833,
733,
628,
326,
810,
533,
635,
5956,
518,
1450,
348,
2833,
18,
225,
1220,
4696,
4440,
5302,
1839,
675,
24979,
471,
598,
10941,
3959,
358,
7756,
5849,
316,
326,
2146,
434,
521,
710,
95,
2080,
272,
410,
18,
454,
1930,
380,
5496,
2934,
225,
971,
326,
733,
711,
392,
389,
87,
410,
67,
707,
518,
353,
2566,
471,
326,
460,
353,
2106,
18,
225,
5272,
609,
353,
2566,
603,
326,
733,
16,
471,
777,
675,
24979,
353,
6754,
471,
326,
8156,
2652,
353,
12697,
316,
326,
819,
434,
521,
710,
95,
2080,
272,
410,
18,
454,
1930,
380,
5496,
225,
2974,
2
] |
print 'working in: ', self.cwd | def __init__(self, read_pipe = None, write_pipe = None): # signals !!! #fname = '/usr/share/guzuta/guzuta2.glade' gtk.gdk.threads_init() self.th = None | eb129f819df25447105c78e99ec3cae5341ad816 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/eb129f819df25447105c78e99ec3cae5341ad816/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
855,
67,
14772,
273,
599,
16,
1045,
67,
14772,
273,
599,
4672,
468,
11505,
401,
8548,
468,
12749,
273,
1173,
13640,
19,
14419,
19,
6891,
94,
322,
69,
19,
6891,
94,
322,
69,
22,
18,
7043,
2486,
11,
22718,
18,
75,
2883,
18,
12495,
67,
2738,
1435,
225,
365,
18,
451,
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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326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
855,
67,
14772,
273,
599,
16,
1045,
67,
14772,
273,
599,
4672,
468,
11505,
401,
8548,
468,
12749,
273,
1173,
13640,
19,
14419,
19,
6891,
94,
322,
69,
19,
6891,
94,
322,
69,
22,
18,
7043,
2486,
11,
22718,
18,
75,
2883,
18,
12495,
67,
2738,
1435,
225,
365,
18,
451,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
sage: len(search_doc('tree', whole_word=True, interact=False).splitlines()) < 100 | sage: len(search_doc('tree', whole_word=True, interact=False).splitlines()) < 200 | def search_doc(string, extra1='', extra2='', extra3='', extra4='', extra5='', **kwds): """ Search Sage HTML documentation for lines containing ``string``. The search is case-sensitive. The file paths in the output are relative to ``$SAGE_ROOT/devel/sage/doc/output``. INPUT: same as for :func:`search_src`. OUTPUT: same as for :func:`search_src`. EXAMPLES: See the documentation for :func:`search_src` for more examples. :: sage: search_doc('creates a polynomial', path_re='tutorial', interact=False) # random html/en/tutorial/tour_polynomial.html:<p>This creates a polynomial ring and tells Sage to use (the string) If you search the documentation for 'tree', then you will get too many results, because many lines in the documentation contain the word 'toctree'. If you use the ``whole_word`` option, though, you can search for 'tree' without returning all of the instances of 'toctree'. In the following, since ``search_doc('tree', interact=False)`` returns a string with one line for each match, counting the length of ``search_doc('tree', interact=False).splitlines()`` gives the number of matches. :: sage: len(search_doc('tree', interact=False).splitlines()) > 2000 True sage: len(search_doc('tree', whole_word=True, interact=False).splitlines()) < 100 True """ return _search_src_or_doc('doc', string, extra1=extra1, extra2=extra2, extra3=extra3, extra4=extra4, extra5=extra5, **kwds) | cbde36a067cc4ef9dd18ba380f18c50dc89c9571 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cbde36a067cc4ef9dd18ba380f18c50dc89c9571/sagedoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
2434,
12,
1080,
16,
2870,
21,
2218,
2187,
2870,
22,
2218,
2187,
2870,
23,
2218,
2187,
2870,
24,
2218,
2187,
2870,
25,
2218,
2187,
2826,
25577,
4672,
3536,
5167,
348,
410,
3982,
7323,
364,
2362,
4191,
12176,
1080,
68,
8338,
1021,
1623,
353,
648,
17,
23481,
18,
225,
1021,
585,
2953,
316,
326,
876,
854,
3632,
358,
12176,
8,
55,
2833,
67,
9185,
19,
323,
941,
19,
87,
410,
19,
2434,
19,
2844,
68,
8338,
225,
12943,
30,
1967,
487,
364,
294,
644,
28288,
3072,
67,
4816,
8338,
225,
11550,
30,
1967,
487,
364,
294,
644,
28288,
3072,
67,
4816,
8338,
225,
5675,
8900,
11386,
30,
225,
2164,
326,
7323,
364,
294,
644,
28288,
3072,
67,
4816,
68,
364,
1898,
10991,
18,
493,
225,
272,
410,
30,
1623,
67,
2434,
2668,
19787,
279,
16991,
2187,
589,
67,
266,
2218,
88,
22378,
2187,
16592,
33,
8381,
13,
468,
2744,
1729,
19,
275,
19,
88,
22378,
19,
88,
477,
67,
3915,
13602,
18,
2620,
22292,
84,
34,
2503,
3414,
279,
16991,
9221,
471,
24551,
348,
410,
358,
999,
261,
5787,
533,
13,
225,
971,
1846,
1623,
326,
7323,
364,
296,
3413,
2187,
1508,
1846,
903,
336,
4885,
4906,
1686,
16,
2724,
4906,
2362,
316,
326,
7323,
912,
326,
2076,
296,
869,
299,
992,
10332,
225,
971,
1846,
999,
326,
12176,
3350,
790,
67,
1095,
10335,
1456,
16,
11376,
16,
1846,
848,
1623,
364,
296,
3413,
11,
2887,
5785,
777,
434,
326,
3884,
434,
296,
869,
299,
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,
1623,
67,
2434,
12,
1080,
16,
2870,
21,
2218,
2187,
2870,
22,
2218,
2187,
2870,
23,
2218,
2187,
2870,
24,
2218,
2187,
2870,
25,
2218,
2187,
2826,
25577,
4672,
3536,
5167,
348,
410,
3982,
7323,
364,
2362,
4191,
12176,
1080,
68,
8338,
1021,
1623,
353,
648,
17,
23481,
18,
225,
1021,
585,
2953,
316,
326,
876,
854,
3632,
358,
12176,
8,
55,
2833,
67,
9185,
19,
323,
941,
19,
87,
410,
19,
2434,
19,
2844,
68,
8338,
225,
12943,
30,
1967,
487,
364,
294,
644,
28288,
3072,
67,
4816,
8338,
225,
11550,
30,
1967,
487,
364,
294,
644,
28288,
3072,
67,
4816,
8338,
225,
5675,
8900,
11386,
30,
225,
2164,
326,
7323,
364,
294,
644,
28288,
3072,
67,
2
] |
self.tmp_dir = tempfile.mkdtemp(prefix="pythontest_") | self.tmp_dir = os.path.join(os.path.dirname(__file__), 'xx') os.mkdir(self.tmp_dir) | def setUp(self): # Create a simple test environment # Note that we're making changes to sys.path self.tmp_dir = tempfile.mkdtemp(prefix="pythontest_") self.sys_path = sys.path[:] sys.path.append(self.tmp_dir) shutil.copy(_get_source_filename(), self.tmp_dir) | b516c126ef7b69e4b6560fe98ed4529f21fdb7eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/b516c126ef7b69e4b6560fe98ed4529f21fdb7eb/test_build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
468,
1788,
279,
4143,
1842,
3330,
468,
3609,
716,
732,
4565,
10480,
3478,
358,
2589,
18,
803,
365,
18,
5645,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
296,
5279,
6134,
1140,
18,
26686,
12,
2890,
18,
5645,
67,
1214,
13,
365,
18,
9499,
67,
803,
273,
2589,
18,
803,
10531,
65,
2589,
18,
803,
18,
6923,
12,
2890,
18,
5645,
67,
1214,
13,
11060,
18,
3530,
24899,
588,
67,
3168,
67,
3459,
9334,
365,
18,
5645,
67,
1214,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
468,
1788,
279,
4143,
1842,
3330,
468,
3609,
716,
732,
4565,
10480,
3478,
358,
2589,
18,
803,
365,
18,
5645,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
296,
5279,
6134,
1140,
18,
26686,
12,
2890,
18,
5645,
67,
1214,
13,
365,
18,
9499,
67,
803,
273,
2589,
18,
803,
10531,
65,
2589,
18,
803,
18,
6923,
12,
2890,
18,
5645,
67,
1214,
13,
11060,
18,
3530,
24899,
588,
67,
3168,
67,
3459,
9334,
365,
18,
5645,
67,
1214,
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
] |
self.__cur_index = self.__cur_index - 1 | self.__cur_index = self.__cur_index while isinstance(self.pages[self.__cur_index], p6.extension.point.ExtensionPoint): self.__cur_index = self.__cur_index - 1 | def previous(self): self.__cur_index = self.__cur_index - 1 | 741e4dc2e162828c3b9a38d4e45a45612f4fc70b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2607/741e4dc2e162828c3b9a38d4e45a45612f4fc70b/xrcwiz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2416,
12,
2890,
4672,
365,
16186,
1397,
67,
1615,
273,
365,
16186,
1397,
67,
1615,
300,
404,
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,
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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,
2416,
12,
2890,
4672,
365,
16186,
1397,
67,
1615,
273,
365,
16186,
1397,
67,
1615,
300,
404,
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
] |
elif len( self.c ) == 1 and ord( self.c ) <= 127: | elif len( self.c ) == 1 and self.c in string.printable: | def p_key( self ): """Process a keypress""" | 5786d10932b54be06f30f43cebbbafcdac9c42b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/5786d10932b54be06f30f43cebbbafcdac9c42b3/bpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
856,
12,
365,
262,
30,
3536,
2227,
279,
498,
1028,
8395,
2,
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,
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,
293,
67,
856,
12,
365,
262,
30,
3536,
2227,
279,
498,
1028,
8395,
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
] |
for PackageSetName in ["min", "std", "core", "base"]: Zip(PackageSetName) TarBzip2(PackageSetName) | MakeArchives() | def Setup(ExistingCompilerRoot, NewRoot): global InstallRoot InstallRoot = NewRoot os.environ["INSTALLROOT"] = NewRoot if (OriginalLIB): # This is Windows-only thing. os.environ["LIB"] = os.path.join(NewRoot, "lib") + OriginalLIB os.environ["PATH"] = (os.path.join(NewRoot, "bin") + OriginalPATH) if ((NewRoot != InstallRoot_CompilerWithPrevious) and (NewRoot != InstallRoot_CompilerWithSelf) and (NewRoot != InstallRoot_Min)): CopyRecursive(InstallRoot_Min, NewRoot) or FatalError() else: CopyCompiler(ExistingCompilerRoot, NewRoot) or FatalError() reload(pylib) or FatalError() | 755d5509a1ef6d2b4c0bcd3f4c3aa96d534b8788 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/755d5509a1ef6d2b4c0bcd3f4c3aa96d534b8788/make-dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
12,
9895,
9213,
2375,
16,
1166,
2375,
4672,
2552,
10284,
2375,
10284,
2375,
273,
1166,
2375,
1140,
18,
28684,
9614,
28865,
9185,
11929,
273,
1166,
2375,
309,
261,
8176,
14484,
4672,
468,
1220,
353,
8202,
17,
3700,
7757,
18,
1140,
18,
28684,
9614,
14484,
11929,
273,
1140,
18,
803,
18,
5701,
12,
1908,
2375,
16,
315,
2941,
7923,
397,
19225,
14484,
1140,
18,
28684,
9614,
4211,
11929,
273,
261,
538,
18,
803,
18,
5701,
12,
1908,
2375,
16,
315,
4757,
7923,
397,
19225,
4211,
13,
225,
309,
14015,
1908,
2375,
480,
10284,
2375,
67,
9213,
1190,
8351,
13,
471,
261,
1908,
2375,
480,
10284,
2375,
67,
9213,
1190,
10084,
13,
471,
261,
1908,
2375,
480,
10284,
2375,
67,
2930,
3719,
30,
5631,
10483,
12,
6410,
2375,
67,
2930,
16,
1166,
2375,
13,
578,
10375,
668,
1435,
469,
30,
5631,
9213,
12,
9895,
9213,
2375,
16,
1166,
2375,
13,
578,
10375,
668,
1435,
225,
7749,
12,
2074,
2941,
13,
578,
10375,
668,
1435,
225,
2,
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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,
10284,
2375,
10284,
2375,
273,
1166,
2375,
1140,
18,
28684,
9614,
28865,
9185,
11929,
273,
1166,
2375,
309,
261,
8176,
14484,
4672,
468,
1220,
353,
8202,
17,
3700,
7757,
18,
1140,
18,
28684,
9614,
14484,
11929,
273,
1140,
18,
803,
18,
5701,
12,
1908,
2375,
16,
315,
2941,
7923,
397,
19225,
14484,
1140,
18,
28684,
9614,
4211,
11929,
273,
261,
538,
18,
803,
18,
5701,
12,
1908,
2375,
16,
315,
4757,
7923,
397,
19225,
4211,
13,
225,
309,
14015,
1908,
2375,
480,
10284,
2375,
67,
9213,
1190,
8351,
13,
471,
261,
1908,
2375,
480,
10284,
2375,
67,
9213,
1190,
10084,
13,
471,
261,
1908,
2375,
480,
10284,
2375,
2
] |
if self.address != (self.jid, self.node): | if address != (self.jid, self.node): | def got_disco_items(self,address,items,state): if self.address != (self.jid, self.node): pass self.buffer.unask_question() format_string=self.plugin.cjc.theme_manager.format_string if state=='new': cache_state=None else: cache_state="cached" formatted_items=[] self.items=items.items for i,item in zip(indices1,items.items): params={'jid': item.jid, 'node': item.node, 'name': item.name, 'index': i } formatted_items+=format_string("disco.item",params) params={ "jid": address[0], "node": address[1], "disco_items": formatted_items, "cache_state": cache_state, } self.buffer.append_themed("disco.items",params) self.ask_question() self.buffer.update() | 1ac10d715fdb642566516a2541439ee2c4b681c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/1ac10d715fdb642566516a2541439ee2c4b681c0/disco.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
2251,
2894,
67,
3319,
12,
2890,
16,
2867,
16,
3319,
16,
2019,
4672,
309,
1758,
480,
261,
2890,
18,
18252,
16,
365,
18,
2159,
4672,
1342,
365,
18,
4106,
18,
318,
835,
67,
4173,
1435,
740,
67,
1080,
33,
2890,
18,
4094,
18,
71,
78,
71,
18,
7997,
67,
4181,
18,
2139,
67,
1080,
309,
919,
18920,
2704,
4278,
1247,
67,
2019,
33,
7036,
469,
30,
1247,
67,
2019,
1546,
7097,
6,
4955,
67,
3319,
33,
8526,
365,
18,
3319,
33,
3319,
18,
3319,
364,
277,
16,
1726,
316,
3144,
12,
6836,
21,
16,
3319,
18,
3319,
4672,
859,
5899,
11,
18252,
4278,
761,
18,
18252,
16,
296,
2159,
4278,
761,
18,
2159,
16,
296,
529,
4278,
761,
18,
529,
16,
296,
1615,
4278,
277,
289,
4955,
67,
3319,
15,
33,
2139,
67,
1080,
2932,
2251,
2894,
18,
1726,
3113,
2010,
13,
859,
5899,
315,
18252,
6877,
1758,
63,
20,
6487,
315,
2159,
6877,
1758,
63,
21,
6487,
315,
2251,
2894,
67,
3319,
6877,
4955,
67,
3319,
16,
315,
2493,
67,
2019,
6877,
1247,
67,
2019,
16,
289,
365,
18,
4106,
18,
6923,
67,
451,
351,
329,
2932,
2251,
2894,
18,
3319,
3113,
2010,
13,
365,
18,
835,
67,
4173,
1435,
365,
18,
4106,
18,
2725,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2363,
67,
2251,
2894,
67,
3319,
12,
2890,
16,
2867,
16,
3319,
16,
2019,
4672,
309,
1758,
480,
261,
2890,
18,
18252,
16,
365,
18,
2159,
4672,
1342,
365,
18,
4106,
18,
318,
835,
67,
4173,
1435,
740,
67,
1080,
33,
2890,
18,
4094,
18,
71,
78,
71,
18,
7997,
67,
4181,
18,
2139,
67,
1080,
309,
919,
18920,
2704,
4278,
1247,
67,
2019,
33,
7036,
469,
30,
1247,
67,
2019,
1546,
7097,
6,
4955,
67,
3319,
33,
8526,
365,
18,
3319,
33,
3319,
18,
3319,
364,
277,
16,
1726,
316,
3144,
12,
6836,
21,
16,
3319,
18,
3319,
4672,
859,
5899,
11,
18252,
4278,
761,
18,
18252,
16,
296,
2159,
4278,
761,
18,
2159,
16,
296,
529,
2
] |
deps = model_dependencies(checked_model, last_models) | deps = model_dependencies(checked_model, last_models, checked_models) | def model_dependencies(model, last_models=None, checked_models=None): """ Returns a set of models this one depends on to be defined; things like OneToOneFields as ID, ForeignKeys everywhere, etc. """ depends = {} checked_models = checked_models or set() # Get deps for each field for field in model._meta.fields + model._meta.many_to_many: depends.update(field_dependencies(field, last_models)) # Now recurse new_to_check = set(depends.keys()) - checked_models while new_to_check: checked_model = new_to_check.pop() if checked_model == model or checked_model in checked_models: continue checked_models.add(checked_model) deps = model_dependencies(checked_model, last_models) # Loop through dependencies... for dep, value in deps.items(): # If the new dep is not already checked, add to the queue if (dep not in depends) and (dep not in new_to_check) and (dep not in checked_models): new_to_check.add(dep) depends[dep] = value return depends | 2c5b1baceeb91910bddd133569c12c004961b146 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/2c5b1baceeb91910bddd133569c12c004961b146/startmigration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
938,
67,
11037,
12,
2284,
16,
1142,
67,
7665,
33,
7036,
16,
5950,
67,
7665,
33,
7036,
4672,
3536,
2860,
279,
444,
434,
3679,
333,
1245,
10935,
603,
358,
506,
2553,
31,
9198,
3007,
6942,
16027,
2314,
487,
1599,
16,
17635,
2396,
3614,
6051,
16,
5527,
18,
3536,
10935,
273,
2618,
5950,
67,
7665,
273,
5950,
67,
7665,
578,
444,
1435,
468,
968,
8740,
364,
1517,
652,
364,
652,
316,
938,
6315,
3901,
18,
2821,
397,
938,
6315,
3901,
18,
9353,
67,
869,
67,
9353,
30,
10935,
18,
2725,
12,
1518,
67,
11037,
12,
1518,
16,
1142,
67,
7665,
3719,
468,
4494,
11502,
394,
67,
869,
67,
1893,
273,
444,
12,
27360,
18,
2452,
10756,
300,
5950,
67,
7665,
1323,
394,
67,
869,
67,
1893,
30,
5950,
67,
2284,
273,
394,
67,
869,
67,
1893,
18,
5120,
1435,
309,
5950,
67,
2284,
422,
938,
578,
5950,
67,
2284,
316,
5950,
67,
7665,
30,
1324,
5950,
67,
7665,
18,
1289,
12,
4532,
67,
2284,
13,
8740,
273,
938,
67,
11037,
12,
4532,
67,
2284,
16,
1142,
67,
7665,
16,
5950,
67,
7665,
13,
468,
9720,
3059,
5030,
2777,
364,
5993,
16,
460,
316,
8740,
18,
3319,
13332,
468,
971,
326,
394,
5993,
353,
486,
1818,
5950,
16,
527,
358,
326,
2389,
309,
261,
15037,
486,
316,
10935,
13,
471,
261,
15037,
486,
316,
394,
67,
869,
67,
1893,
13,
471,
261,
15037,
486,
316,
5950,
67,
7665,
4672,
394,
67,
869,
67,
1893,
18,
1289,
12,
15037,
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,
938,
67,
11037,
12,
2284,
16,
1142,
67,
7665,
33,
7036,
16,
5950,
67,
7665,
33,
7036,
4672,
3536,
2860,
279,
444,
434,
3679,
333,
1245,
10935,
603,
358,
506,
2553,
31,
9198,
3007,
6942,
16027,
2314,
487,
1599,
16,
17635,
2396,
3614,
6051,
16,
5527,
18,
3536,
10935,
273,
2618,
5950,
67,
7665,
273,
5950,
67,
7665,
578,
444,
1435,
468,
968,
8740,
364,
1517,
652,
364,
652,
316,
938,
6315,
3901,
18,
2821,
397,
938,
6315,
3901,
18,
9353,
67,
869,
67,
9353,
30,
10935,
18,
2725,
12,
1518,
67,
11037,
12,
1518,
16,
1142,
67,
7665,
3719,
468,
4494,
11502,
394,
67,
869,
67,
1893,
273,
444,
12,
27360,
18,
2452,
10756,
300,
5950,
67,
2
] |
buildinstall.append(mirorrlist) | buildinstall.append(mirrorlist) | def doBuildinstall(self): """Run anaconda-runtime's buildinstall on the tree.""" | 3b955cc823559d501bc1b9c7140539a22fc3d03b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8489/3b955cc823559d501bc1b9c7140539a22fc3d03b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
3116,
5425,
12,
2890,
4672,
3536,
1997,
392,
16329,
2414,
17,
9448,
1807,
1361,
5425,
603,
326,
2151,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
3116,
5425,
12,
2890,
4672,
3536,
1997,
392,
16329,
2414,
17,
9448,
1807,
1361,
5425,
603,
326,
2151,
12123,
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
] |
@bigmemtest(minsize=_2G // 2 + 2, memuse=8) | @bigmemtest(minsize=_2G // 2 + 2, memuse=16) | def basic_test_extend(self, size): l = [file] * size l.extend(l) self.assertEquals(len(l), size * 2) self.failUnless(l[0] is l[-1]) self.failUnless(l[size - 1] is l[size + 1]) | 45c86f11a051e38ce1d30b67fb8b1ba24dac6f21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/45c86f11a051e38ce1d30b67fb8b1ba24dac6f21/test_bigmem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5337,
67,
3813,
67,
14313,
12,
2890,
16,
963,
4672,
328,
273,
306,
768,
65,
380,
963,
328,
18,
14313,
12,
80,
13,
365,
18,
11231,
8867,
12,
1897,
12,
80,
3631,
963,
380,
576,
13,
365,
18,
6870,
984,
2656,
12,
80,
63,
20,
65,
353,
328,
18919,
21,
5717,
365,
18,
6870,
984,
2656,
12,
80,
63,
1467,
300,
404,
65,
353,
328,
63,
1467,
397,
404,
5717,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5337,
67,
3813,
67,
14313,
12,
2890,
16,
963,
4672,
328,
273,
306,
768,
65,
380,
963,
328,
18,
14313,
12,
80,
13,
365,
18,
11231,
8867,
12,
1897,
12,
80,
3631,
963,
380,
576,
13,
365,
18,
6870,
984,
2656,
12,
80,
63,
20,
65,
353,
328,
18919,
21,
5717,
365,
18,
6870,
984,
2656,
12,
80,
63,
1467,
300,
404,
65,
353,
328,
63,
1467,
397,
404,
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,
-100,
-100,
-100,
-100,
-100
] |
if self.data: | if self.nomogram and self.data and self.data.domain.classVar.varType==orange.VarTypes.Discrete and \ len(self.data.domain.classVar.values)==2 and self.kernel_type==0: import orngLR_Jakulin self.learner=orngSVM.BasicSVMLearner() for attr in ("name", "shrinking"): setattr(self.learner, attr, getattr(self, attr)) for attr in ("gamma", "coef0", "C", "p", "eps", "nu"): setattr(self.learner, attr, float(getattr(self, attr))) self.learner.kernel=self.kernel_type self.learner.for_nomogram=1 self.classifier=orngLR_Jakulin.MarginMetaLearner(self.learner, folds=1)(self.data) self.classifier.name=self.name self.classifier.domain=self.data.domain self.classifier.data=self.data self.supportVectors=self.data.getitemsref(self.classifier.classifier.model["SVi"]) elif self.data: | def applySettings(self): self.learner=orngSVM.SVMLearner() for attr in ("name", "kernel_type", "degree", "shrinking"): setattr(self.learner, attr, getattr(self, attr)) | c449df6ba0bbd4e2d21dc3c10c044ec3e5a391a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c449df6ba0bbd4e2d21dc3c10c044ec3e5a391a8/OWSVM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2628,
12,
2890,
4672,
365,
18,
298,
24834,
33,
280,
3368,
55,
7397,
18,
23927,
1495,
2091,
1224,
1435,
364,
1604,
316,
7566,
529,
3113,
315,
8111,
67,
723,
3113,
315,
21361,
3113,
315,
674,
12334,
310,
6,
4672,
9241,
12,
2890,
18,
298,
24834,
16,
1604,
16,
3869,
12,
2890,
16,
1604,
3719,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2628,
12,
2890,
4672,
365,
18,
298,
24834,
33,
280,
3368,
55,
7397,
18,
23927,
1495,
2091,
1224,
1435,
364,
1604,
316,
7566,
529,
3113,
315,
8111,
67,
723,
3113,
315,
21361,
3113,
315,
674,
12334,
310,
6,
4672,
9241,
12,
2890,
18,
298,
24834,
16,
1604,
16,
3869,
12,
2890,
16,
1604,
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
] |
parent = node.get('cpp:parent') | parent = node['cpp:parent'] | def _create_refnode(expr): target = unicode(expr) if target not in self.data['objects']: return None obj = self.data['objects'][target] if obj[1] != typ: return None return make_refnode(builder, fromdocname, obj[0], target, contnode, target) | d1097cd5315a33ccebeab718c8768d01f3a00bba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/d1097cd5315a33ccebeab718c8768d01f3a00bba/cpp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
1734,
2159,
12,
8638,
4672,
1018,
273,
5252,
12,
8638,
13,
309,
1018,
486,
316,
365,
18,
892,
3292,
6911,
3546,
30,
327,
599,
1081,
273,
365,
18,
892,
3292,
6911,
3546,
63,
3299,
65,
309,
1081,
63,
21,
65,
480,
3815,
30,
327,
599,
327,
1221,
67,
1734,
2159,
12,
9574,
16,
628,
2434,
529,
16,
1081,
63,
20,
6487,
1018,
16,
466,
2159,
16,
1018,
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,
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,
389,
2640,
67,
1734,
2159,
12,
8638,
4672,
1018,
273,
5252,
12,
8638,
13,
309,
1018,
486,
316,
365,
18,
892,
3292,
6911,
3546,
30,
327,
599,
1081,
273,
365,
18,
892,
3292,
6911,
3546,
63,
3299,
65,
309,
1081,
63,
21,
65,
480,
3815,
30,
327,
599,
327,
1221,
67,
1734,
2159,
12,
9574,
16,
628,
2434,
529,
16,
1081,
63,
20,
6487,
1018,
16,
466,
2159,
16,
1018,
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
] |
s = "Open your web browser to http%s://%s:%s%s"%('s' if secure else '', address, port, path) | """ Print a message on the screen suggesting that the user open their web browser to a certain URL. INPUT: address -- a computer address port -- a port number secure -- bool (default: False); whether to put http or https path -- path after the port. EXAMPLES: sage: sage.server.misc.print_open_msg('localhost', 8000, True) **************************************************** * * * Open your web browser to https://localhost:8000 * * * **************************************************** sage: sage.server.misc.print_open_msg('sagemath.org', 8000, False) ****************************************************** * * * Open your web browser to http://sagemath.org:8000 * * * ****************************************************** sage: sage.server.misc.print_open_msg('sagemath.org', 90, False) **************************************************** * * * Open your web browser to http://sagemath.org:90 * * * **************************************************** sage: sage.server.misc.print_open_msg('sagemath.org', 80, False) ************************************************** * * * Open your web browser to http://sagemath.org * * * ************************************************** """ if port == 80: port = '' else: port = ':%s'%port s = "Open your web browser to http%s://%s%s%s"%('s' if secure else '', address, port, path) | def print_open_msg(address, port, secure=False, path=""): s = "Open your web browser to http%s://%s:%s%s"%('s' if secure else '', address, port, path) t = len(s) if t%2: t += 1 s += ' ' n = max(t+4, 50) k = n - t - 1 j = k/2 print '*'*n print '*'+ ' '*(n-2) + '*' print '*' + ' '*j + s + ' '*j + '*' print '*'+ ' '*(n-2) + '*' print '*'*n | 0fdf5bac4ca1844e861d460d3ac18fe8986d02b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0fdf5bac4ca1844e861d460d3ac18fe8986d02b0/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3190,
67,
3576,
12,
2867,
16,
1756,
16,
8177,
33,
8381,
16,
589,
1546,
6,
4672,
3536,
3038,
279,
883,
603,
326,
5518,
19816,
310,
716,
326,
729,
1696,
3675,
3311,
4748,
358,
279,
8626,
1976,
18,
225,
12943,
30,
1758,
1493,
279,
26579,
1758,
1756,
1493,
279,
1756,
1300,
8177,
1493,
1426,
261,
1886,
30,
1083,
1769,
2856,
358,
1378,
1062,
578,
2333,
589,
1493,
589,
1839,
326,
1756,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
272,
410,
18,
3567,
18,
23667,
18,
1188,
67,
3190,
67,
3576,
2668,
13014,
2187,
1725,
3784,
16,
1053,
13,
20210,
2751,
14465,
380,
4766,
5375,
380,
380,
3502,
3433,
3311,
4748,
358,
2333,
2207,
13014,
30,
26021,
225,
380,
380,
4766,
5375,
380,
20210,
2751,
14465,
272,
410,
30,
272,
410,
18,
3567,
18,
23667,
18,
1188,
67,
3190,
67,
3576,
2668,
87,
346,
351,
421,
18,
3341,
2187,
1725,
3784,
16,
1083,
13,
20210,
2751,
23490,
380,
4766,
10792,
380,
380,
3502,
3433,
3311,
4748,
358,
1062,
2207,
87,
346,
351,
421,
18,
3341,
30,
26021,
225,
380,
380,
4766,
10792,
380,
20210,
2751,
23490,
272,
410,
30,
272,
410,
18,
3567,
18,
23667,
18,
1188,
67,
3190,
67,
3576,
2668,
87,
346,
351,
421,
18,
3341,
2187,
8566,
16,
1083,
13,
20210,
2751,
14465,
380,
4766,
5375,
380,
380,
3502,
3433,
3311,
4748,
358,
1062,
2207,
87,
346,
351,
421,
18,
3341,
30,
9349,
225,
380,
380,
4766,
5375,
380,
20210,
2751,
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,
1172,
67,
3190,
67,
3576,
12,
2867,
16,
1756,
16,
8177,
33,
8381,
16,
589,
1546,
6,
4672,
3536,
3038,
279,
883,
603,
326,
5518,
19816,
310,
716,
326,
729,
1696,
3675,
3311,
4748,
358,
279,
8626,
1976,
18,
225,
12943,
30,
1758,
1493,
279,
26579,
1758,
1756,
1493,
279,
1756,
1300,
8177,
1493,
1426,
261,
1886,
30,
1083,
1769,
2856,
358,
1378,
1062,
578,
2333,
589,
1493,
589,
1839,
326,
1756,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
272,
410,
18,
3567,
18,
23667,
18,
1188,
67,
3190,
67,
3576,
2668,
13014,
2187,
1725,
3784,
16,
1053,
13,
20210,
2751,
14465,
380,
4766,
5375,
380,
380,
3502,
3433,
3311,
4748,
358,
2333,
2207,
13014,
30,
2
] |
"self_status", ] | "final_status", "gen_html_time", ] def get_td_final_status(self): if self.final_status is None: return "job_running","running" else: exit_status,term_sig = self.final_status if exit_status == 0: return "job_success",("exited 0") elif exit_status is not None: return "job_failed",("exited %d" % exit_status) else: return "job_killed",("killed %d" % term_sig) | def do_make2_cmd(self, args): """ args : whatever is given after 'make2' """ # FIXIT: parse args and give them to make if self.init3() == -1: return cmd_interpreter.RET_NOT_RUN self.set_make_environ() return self.server_main([ "-a", 'work_proc_sock="make -j 1200"' ] + args) | 112ee2b67ad2dcc046910a8ee540a6c7f13e7284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/924/112ee2b67ad2dcc046910a8ee540a6c7f13e7284/gxp_js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6540,
22,
67,
4172,
12,
2890,
16,
833,
4672,
3536,
833,
294,
15098,
353,
864,
1839,
296,
6540,
22,
11,
3536,
468,
8563,
1285,
30,
1109,
833,
471,
8492,
2182,
358,
1221,
309,
365,
18,
2738,
23,
1435,
422,
300,
21,
30,
327,
1797,
67,
2761,
11599,
18,
10238,
67,
4400,
67,
15238,
365,
18,
542,
67,
6540,
67,
28684,
1435,
327,
365,
18,
3567,
67,
5254,
3816,
3701,
69,
3113,
296,
1252,
67,
9381,
67,
15031,
1546,
6540,
300,
78,
2593,
713,
5187,
308,
397,
833,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6540,
22,
67,
4172,
12,
2890,
16,
833,
4672,
3536,
833,
294,
15098,
353,
864,
1839,
296,
6540,
22,
11,
3536,
468,
8563,
1285,
30,
1109,
833,
471,
8492,
2182,
358,
1221,
309,
365,
18,
2738,
23,
1435,
422,
300,
21,
30,
327,
1797,
67,
2761,
11599,
18,
10238,
67,
4400,
67,
15238,
365,
18,
542,
67,
6540,
67,
28684,
1435,
327,
365,
18,
3567,
67,
5254,
3816,
3701,
69,
3113,
296,
1252,
67,
9381,
67,
15031,
1546,
6540,
300,
78,
2593,
713,
5187,
308,
397,
833,
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
] |
rsync_filenames_client += "tcos_share/%s " %( os.path.basename(filename).replace(" ", "\ ").replace("(", "\(").replace(")", "\)").replace("*", "\*").replace("!", "\!").replace("?", "\?").replace("\"", "\\\"") ) rsync_filenames_server += "%s " %( filename.replace(" ", "\ ").replace("(", "\(").replace(")", "\)").replace("*", "\*").replace("!", "\!").replace("?", "\?").replace("\"", "\\\"") ) | basename_scape=os.path.basename(filename) abspath_scape=filename for scape in str_scapes: basename_scape=basename_scape.replace("%s" %scape, "\%s" %scape) abspath_scape=abspath_scape.replace("%s" %scape, "\%s" %scape) rsync_filenames_client += "tcos_share/%s " %( basename_scape ) rsync_filenames_server += "%s " %( abspath_scape ) | def menu_event_one(self, action): start1=time() (model, iter) = self.main.tabla.get_selection().get_selected() if iter == None: print_debug( "menu_event_one() not selected thin client !!!" ) return self.main.selected_host=model.get_value(iter,COL_HOST) self.main.selected_ip=model.get_value(iter, COL_IP) if not self.doaction_onthisclient(action, self.main.selected_ip): # show a msg shared.info_msg ( _("Can't exec this action because you are connected at this host!") ) return if action == 0: # refresh terminal # call to read remote info self.main.xmlrpc.newhost(self.main.selected_ip) self.main.xmlrpc.ip=self.main.selected_ip self.main.worker=shared.Workers( self.main,\ target=self.populate_datatxt, args=([self.main.selected_ip]) ).start() if action == 1: # clean datatxtbuffer self.main.datatxt.clean() if action == 2: # Ask for reboot reboot ip=self.main.selected_ip msg=_( _("Do you want to reboot %s?" ) %(self.main.selected_ip) ) if shared.ask_msg ( msg ): self.main.xmlrpc.Exe("reboot") if action == 3: # Ask for poweroff reboot msg=_( _("Do you want to poweroff %s?" ) %(self.main.selected_ip) ) if shared.ask_msg ( msg ): self.main.xmlrpc.Exe("poweroff") if action == 4: # lock screen if not self.main.xmlrpc.lockscreen(): shared.error_msg( _("Can't connect to tcosxmlrpc.\nPlease verify user and password in prefences!") ) return self.change_lockscreen(self.main.selected_ip) if action == 5: # unlock screen if not self.main.xmlrpc.unlockscreen(): shared.error_msg( _("Can't connect to tcosxmlrpc.\nPlease verify user and password in prefences!") ) return self.change_lockscreen(self.main.selected_ip) if action == 6: # start ivs self.main.worker=shared.Workers(self.main, target=self.start_ivs, args=([self.main.selected_ip]) ) self.main.worker.start() if action == 7: # start vnc self.main.worker=shared.Workers(self.main, target=self.start_vnc, args=([self.main.selected_ip]) ) self.main.worker.start() if action == 8: # screenshot !!! self.main.worker=shared.Workers(self.main, target=self.get_screenshot, args=[self.main.selected_ip]) self.main.worker.start() if action == 9: # give a remote xterm throught SSH pass_msg=_("Enter password of remote thin client (if asked for it)") cmd="xterm -e \"echo '%s'; ssh root@%s\"" %(pass_msg, self.main.selected_ip) print_debug ( "menu_event_one(%d) cmd=%s" %(action, cmd) ) th=self.main.exe_cmd( cmd ) if action == 10: # launch personalize settings if client is TCOS (PXES and LTSP not supported) client_type = self.main.xmlrpc.ReadInfo("get_client") if client_type == "tcos": cmd="gksu \"tcospersonalize --host=%s\"" %(self.main.selected_ip) print_debug ( "menu_event_one(%d) cmd=%s" %(action, cmd) ) th=self.main.exe_cmd( cmd ) else: shared.info_msg( _("%s is not supported to personalize!") %(client_type) ) if action == 11: # reset xorg # Ask for it if not self.main.localdata.IsLogged(self.main.selected_ip): shared.error_msg ( _("Can't logout, user is not logged") ) return user=self.main.localdata.GetUsernameAndHost(self.main.selected_ip) print_debug("menu_event_one() user=%s" %user) msg=_( _("Do you want to logout user \"%s\"?" ) %(user) ) if shared.ask_msg ( msg ): newusernames=[] remote_cmd="/usr/lib/tcos/session-cmd-send LOGOUT" if user.find(":") != -1: # we have a standalone user... usern, ip = user.split(":") self.main.xmlrpc.newhost(ip) self.main.xmlrpc.DBus("exec", remote_cmd ) else: newusernames.append(user) result = self.main.dbus_action.do_exec(newusernames ,remote_cmd ) if not result: shared.error_msg ( _("Error while exec remote app:\nReason:%s") %( self.main.dbus_action.get_error_msg() ) ) if action == 12: # restart xorg with new settings # thin client must download again XXX.XXX.XXX.XXX.conf and rebuild xorg.conf client_type = self.main.xmlrpc.ReadInfo("get_client") if client_type == "tcos": msg=_( "Restart X session of %s with new config?" ) %(self.main.selected_ip) if shared.ask_msg ( msg ): # see xmlrpc/xorg.h, rebuild will download and sed xorg.conf.tpl self.main.xmlrpc.tc.tcos.xorg("rebuild", "--restartxorg", \ self.main.xmlrpc.username, \ self.main.xmlrpc.password ) self.refresh_client_info(self.main.selected_ip) else: shared.info_msg( _("%s is not supported to restart Xorg!") %(client_type) ) if action == 13: # exec app self.askfor(mode="exec", users=[self.main.localdata.GetUsernameAndHost(self.main.selected_ip)]) if action == 14: # send message self.askfor(mode="mess", users=[self.main.localdata.GetUsernameAndHost(self.main.selected_ip)] ) if action == 15: print_debug ("menu_event_one() show running apps" ) self.get_user_processes(self.main.selected_ip) if action == 16: # action sent by vidal_joshur at gva dot es # start video broadcast mode # search for connected users # Stream to single client unicast users=[self.main.localdata.GetUsernameAndHost(self.main.selected_ip)] client=[self.main.selected_ip] ip_unicast=self.main.selected_ip dialog = gtk.FileChooserDialog(_("Select audio/video file.."), None, gtk.FILE_CHOOSER_ACTION_OPEN, (_("Play DVD"), 1, _("Play SVCD/VCD"), 2, _("Play AudioCD"), 3, gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) self.folder = self._folder = os.environ['HOME'] dialog.set_current_folder(self.folder) filter = gtk.FileFilter() filter.set_name("Media Files ( *.avi, *.mpg, *.mpeg, *.mp3, *.wav, etc.. )") file_types=["*.avi", "*.mpg", "*.mpeg", "*.ogg", "*.ogm", "*.asf", "*.divx", "*.wmv", "*.vob", "*.m2v", "*.m4v", "*.mp2", "*.mp4", "*.ac3", "*.ogg", "*.mp1", "*.mp2", "*.mp3", "*.wav", "*.wma"] for elem in file_types: filter.add_pattern( elem ) dialog.add_filter(filter) filter = gtk.FileFilter() filter.set_name("All Files") filter.add_pattern("*.*") dialog.add_filter(filter) | 02aa26e9decb17b7531b02e8a9add63d01cedfb3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/02aa26e9decb17b7531b02e8a9add63d01cedfb3/TcosActions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3824,
67,
2575,
67,
476,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
261,
2284,
16,
1400,
13,
273,
365,
18,
5254,
18,
7032,
11821,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435,
309,
1400,
422,
599,
30,
1172,
67,
4148,
12,
315,
5414,
67,
2575,
67,
476,
1435,
486,
3170,
21936,
1004,
401,
5,
4442,
262,
327,
365,
18,
5254,
18,
8109,
67,
2564,
33,
2284,
18,
588,
67,
1132,
12,
2165,
16,
4935,
67,
8908,
13,
365,
18,
5254,
18,
8109,
67,
625,
33,
2284,
18,
588,
67,
1132,
12,
2165,
16,
5597,
67,
2579,
13,
225,
309,
486,
365,
18,
2896,
1128,
67,
2152,
291,
2625,
12,
1128,
16,
365,
18,
5254,
18,
8109,
67,
625,
4672,
468,
2405,
279,
1234,
5116,
18,
1376,
67,
3576,
261,
389,
2932,
2568,
1404,
1196,
333,
1301,
2724,
1846,
854,
5840,
622,
333,
1479,
4442,
13,
262,
327,
225,
309,
1301,
422,
374,
30,
468,
4460,
8651,
468,
745,
358,
855,
2632,
1123,
365,
18,
5254,
18,
2902,
7452,
18,
2704,
2564,
12,
2890,
18,
5254,
18,
8109,
67,
625,
13,
365,
18,
5254,
18,
2902,
7452,
18,
625,
33,
2890,
18,
5254,
18,
8109,
67,
625,
225,
365,
18,
5254,
18,
10124,
33,
11574,
18,
15252,
12,
365,
18,
5254,
17211,
1018,
33,
2890,
18,
19936,
67,
3404,
270,
15239,
16,
833,
33,
3816,
2890,
18,
5254,
18,
8109,
67,
625,
5717,
262,
18,
1937,
1435,
282,
309,
1301,
422,
404,
30,
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,
3824,
67,
2575,
67,
476,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
261,
2284,
16,
1400,
13,
273,
365,
18,
5254,
18,
7032,
11821,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435,
309,
1400,
422,
599,
30,
1172,
67,
4148,
12,
315,
5414,
67,
2575,
67,
476,
1435,
486,
3170,
21936,
1004,
401,
5,
4442,
262,
327,
365,
18,
5254,
18,
8109,
67,
2564,
33,
2284,
18,
588,
67,
1132,
12,
2165,
16,
4935,
67,
8908,
13,
365,
18,
5254,
18,
8109,
67,
625,
33,
2284,
18,
588,
67,
1132,
12,
2165,
16,
5597,
67,
2579,
13,
225,
309,
486,
365,
18,
2896,
1128,
67,
2152,
291,
2625,
12,
1128,
16,
365,
18,
5254,
2
] |
valid_ext = ['.txt', '.pdb', '.html'] | valid_ext = ['.txt', '.html', '.htm', '.fb2', '.chm', '.rtf', '.oeb', '.zip', '.prc', '.pdb', '.mobi', '.orb', '.opf', '.oebzip', '.tcr', '.tgz', '.ipk', ] | def get_valid_basename(base): valid_ext = ['.txt', '.pdb', '.html'] skip_ext = ['.gz', '.bz2', '.tar'] while True: base, ext = os.path.splitext(base) if ext in valid_ext: return base elif ext in skip_ext: pass else: return None | 4ad633209b0a4c8fb26a27fbe63046456d843e5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14744/4ad633209b0a4c8fb26a27fbe63046456d843e5a/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
877,
67,
13909,
12,
1969,
4672,
923,
67,
408,
273,
10228,
18,
5830,
2187,
2418,
2620,
2187,
2418,
31180,
2187,
2418,
19192,
22,
2187,
2418,
343,
81,
2187,
2418,
3797,
74,
2187,
2418,
15548,
70,
2187,
2418,
4450,
2187,
2418,
683,
71,
2187,
2418,
17414,
2187,
2418,
81,
30875,
2187,
2418,
16640,
2187,
2418,
556,
74,
2187,
2418,
15548,
70,
4450,
2187,
2418,
88,
3353,
2187,
2418,
88,
9764,
2187,
2418,
625,
79,
2187,
308,
2488,
67,
408,
273,
10228,
18,
9764,
2187,
2418,
25292,
22,
2187,
2418,
11718,
3546,
225,
1323,
1053,
30,
1026,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
1969,
13,
309,
1110,
316,
923,
67,
408,
30,
327,
1026,
1327,
1110,
316,
2488,
67,
408,
30,
1342,
469,
30,
327,
599,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
877,
67,
13909,
12,
1969,
4672,
923,
67,
408,
273,
10228,
18,
5830,
2187,
2418,
2620,
2187,
2418,
31180,
2187,
2418,
19192,
22,
2187,
2418,
343,
81,
2187,
2418,
3797,
74,
2187,
2418,
15548,
70,
2187,
2418,
4450,
2187,
2418,
683,
71,
2187,
2418,
17414,
2187,
2418,
81,
30875,
2187,
2418,
16640,
2187,
2418,
556,
74,
2187,
2418,
15548,
70,
4450,
2187,
2418,
88,
3353,
2187,
2418,
88,
9764,
2187,
2418,
625,
79,
2187,
308,
2488,
67,
408,
273,
10228,
18,
9764,
2187,
2418,
25292,
22,
2187,
2418,
11718,
3546,
225,
1323,
1053,
30,
1026,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
1969,
13,
309,
1110,
316,
923,
67,
408,
30,
327,
1026,
2
] |
string.split(Utils.readTextFromClipboard(), os.linesep)) | string.split(str(Utils.readTextFromClipboard()), os.linesep)) | def OnPasteSelected(self, event): """ Paste current clipboard contents into the current selection """ if self.selection: # If the selection is not a container, select it's parent (a container) if not self.selection.selCompn.container: self.selectParent(self.selection.selection) | 0cb885fbe7e13dec4cc1329367a538359aee901b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0cb885fbe7e13dec4cc1329367a538359aee901b/Designer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
52,
14725,
7416,
12,
2890,
16,
871,
4672,
3536,
453,
14725,
783,
20304,
2939,
1368,
326,
783,
4421,
3536,
309,
365,
18,
10705,
30,
468,
971,
326,
4421,
353,
486,
279,
1478,
16,
2027,
518,
1807,
982,
261,
69,
1478,
13,
309,
486,
365,
18,
10705,
18,
1786,
2945,
82,
18,
3782,
30,
365,
18,
4025,
3054,
12,
2890,
18,
10705,
18,
10705,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
52,
14725,
7416,
12,
2890,
16,
871,
4672,
3536,
453,
14725,
783,
20304,
2939,
1368,
326,
783,
4421,
3536,
309,
365,
18,
10705,
30,
468,
971,
326,
4421,
353,
486,
279,
1478,
16,
2027,
518,
1807,
982,
261,
69,
1478,
13,
309,
486,
365,
18,
10705,
18,
1786,
2945,
82,
18,
3782,
30,
365,
18,
4025,
3054,
12,
2890,
18,
10705,
18,
10705,
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
] |
time.sleep(0.050) | time.sleep(0.050) | def destroy(self): """Destroy the library, and pjsua.""" global _lib if self._has_thread: self._quit = 1 loop = 0 while self._quit != 2 and loop < 400: self.handle_events(5) loop = loop + 1 | 8907293bdad5c793455a1ee75bc93c2502d2f7e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4447/8907293bdad5c793455a1ee75bc93c2502d2f7e6/pjsua.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
3536,
10740,
326,
5313,
16,
471,
293,
2924,
11886,
12123,
2552,
389,
2941,
309,
365,
6315,
5332,
67,
5930,
30,
365,
6315,
27176,
273,
404,
2798,
273,
374,
1323,
365,
6315,
27176,
480,
576,
471,
2798,
411,
7409,
30,
365,
18,
4110,
67,
5989,
12,
25,
13,
2798,
273,
2798,
397,
404,
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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5546,
12,
2890,
4672,
3536,
10740,
326,
5313,
16,
471,
293,
2924,
11886,
12123,
2552,
389,
2941,
309,
365,
6315,
5332,
67,
5930,
30,
365,
6315,
27176,
273,
404,
2798,
273,
374,
1323,
365,
6315,
27176,
480,
576,
471,
2798,
411,
7409,
30,
365,
18,
4110,
67,
5989,
12,
25,
13,
2798,
273,
2798,
397,
404,
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
] |
d = self.remoteobj.callRemote('killJob', self._job.id) | d = self.remoteobj.callRemote('killJob', self.id) | def kill(self): r""" Kills the current job. """ d = self.remoteobj.callRemote('killJob', self._job.id) d.addCallback(self._killedJob) d.addErrback(self._catchFailure) return d | 0a7aae585c5e29c6a0654bebf2a481e22334e333 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0a7aae585c5e29c6a0654bebf2a481e22334e333/dsage_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
12,
2890,
4672,
436,
8395,
20520,
87,
326,
783,
1719,
18,
225,
3536,
225,
302,
273,
365,
18,
7222,
2603,
18,
1991,
5169,
2668,
16418,
2278,
2187,
365,
18,
350,
13,
302,
18,
1289,
2428,
12,
2890,
6315,
79,
13148,
2278,
13,
302,
18,
1289,
2524,
823,
12,
2890,
6315,
14683,
5247,
13,
327,
302,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
12,
2890,
4672,
436,
8395,
20520,
87,
326,
783,
1719,
18,
225,
3536,
225,
302,
273,
365,
18,
7222,
2603,
18,
1991,
5169,
2668,
16418,
2278,
2187,
365,
18,
350,
13,
302,
18,
1289,
2428,
12,
2890,
6315,
79,
13148,
2278,
13,
302,
18,
1289,
2524,
823,
12,
2890,
6315,
14683,
5247,
13,
327,
302,
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
] |
def __init__(self, filename=None, verify=None, verbose=None, legacy=None, payload=None, parsesig=None, tags=None, ntags=None, keepdata=None): | def __init__(self, filename=None, verify=None, verbose=None, legacy=None, payload=None, parsesig=None, hdronly=None, tags=None, ntags=None, keepdata=None): | def __init__(self, filename=None, verify=None, verbose=None, legacy=None, payload=None, parsesig=None, tags=None, ntags=None, keepdata=None): RpmIO.__init__(self) self.filename = filename self.fd = None self.verify = verify self.verbose = verbose self.legacy = legacy self.payload = payload self.parsesig = parsesig self.tags = tags self.ntags = ntags self.keepdata = keepdata self.source = filename self.issrc = 0 self.data = None if filename[-8:] == ".src.rpm" or filename[-10:] == ".nosrc.rpm": self.issrc = 1 | 1ca072be3b39d918de69d6201fb635d5ab22b89b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/1ca072be3b39d918de69d6201fb635d5ab22b89b/pyrpmlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
33,
7036,
16,
3929,
33,
7036,
16,
3988,
33,
7036,
16,
8866,
33,
7036,
16,
2385,
33,
7036,
16,
8940,
360,
33,
7036,
16,
15921,
1949,
715,
33,
7036,
16,
2342,
33,
7036,
16,
290,
4156,
33,
7036,
16,
3455,
892,
33,
7036,
4672,
534,
7755,
4294,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3459,
273,
1544,
365,
18,
8313,
273,
599,
365,
18,
8705,
273,
3929,
365,
18,
11369,
273,
3988,
365,
18,
17386,
273,
8866,
365,
18,
7648,
273,
2385,
365,
18,
1065,
2420,
360,
273,
8940,
360,
365,
18,
4156,
273,
2342,
365,
18,
496,
1341,
273,
290,
4156,
365,
18,
10102,
892,
273,
3455,
892,
365,
18,
3168,
273,
1544,
365,
18,
1054,
1310,
273,
374,
365,
18,
892,
273,
599,
309,
1544,
18919,
28,
26894,
422,
3552,
4816,
18,
86,
7755,
6,
578,
1544,
18919,
2163,
26894,
422,
3552,
18050,
1310,
18,
86,
7755,
6877,
365,
18,
1054,
1310,
273,
404,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
33,
7036,
16,
3929,
33,
7036,
16,
3988,
33,
7036,
16,
8866,
33,
7036,
16,
2385,
33,
7036,
16,
8940,
360,
33,
7036,
16,
15921,
1949,
715,
33,
7036,
16,
2342,
33,
7036,
16,
290,
4156,
33,
7036,
16,
3455,
892,
33,
7036,
4672,
534,
7755,
4294,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3459,
273,
1544,
365,
18,
8313,
273,
599,
365,
18,
8705,
273,
3929,
365,
18,
11369,
273,
3988,
365,
18,
17386,
273,
8866,
365,
18,
7648,
273,
2385,
365,
18,
1065,
2420,
360,
273,
8940,
360,
365,
18,
4156,
273,
2342,
365,
18,
496,
1341,
273,
290,
4156,
365,
18,
10102,
892,
273,
3455,
892,
365,
2
] |
irq.scheduling_priority = int(match_obj.group(4)) | if match_obj.group(4) != '-': irq.scheduling_priority = int(match_obj.group(4)) else: irq.scheduling_priority = None | def sortedDictValues(adict): items = adict.items() items.sort() return [value for key, value in items] | 3a0e8c29920bf8aaccaa94ad12e0e3aa9a44186e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11526/3a0e8c29920bf8aaccaa94ad12e0e3aa9a44186e/listirqinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3115,
5014,
1972,
12,
361,
933,
4672,
1516,
273,
1261,
933,
18,
3319,
1435,
1516,
18,
3804,
1435,
327,
306,
1132,
364,
498,
16,
460,
316,
1516,
65,
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,
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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
] |
print 'f=',f | def getentry(self, which): self._check() if which == 'in': cmd = IN_ENTRY_SENSE elif which == 'out': cmd = OUT_ENTRY_SENSE self.replycmd(cmd) h = self._getnumber(2) print 'h=',h m = self._getnumber(2) print 'm=',m s = self._getnumber(2) print 's=',s f = self._getnumber(2) print 'f=',f return (h, m, s, f) | 0b424aeee61cf467f726567c4a8deb7458742940 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0b424aeee61cf467f726567c4a8deb7458742940/VCR.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4099,
12,
2890,
16,
1492,
4672,
365,
6315,
1893,
1435,
309,
1492,
422,
296,
267,
4278,
1797,
273,
2120,
67,
19083,
67,
1090,
50,
1090,
1327,
1492,
422,
296,
659,
4278,
1797,
273,
8210,
67,
19083,
67,
1090,
50,
1090,
365,
18,
10629,
4172,
12,
4172,
13,
366,
273,
365,
6315,
588,
2696,
12,
22,
13,
1172,
296,
76,
33,
2187,
76,
312,
273,
365,
6315,
588,
2696,
12,
22,
13,
1172,
296,
81,
33,
2187,
81,
272,
273,
365,
6315,
588,
2696,
12,
22,
13,
1172,
296,
87,
33,
2187,
87,
284,
273,
365,
6315,
588,
2696,
12,
22,
13,
327,
261,
76,
16,
312,
16,
272,
16,
284,
13,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4099,
12,
2890,
16,
1492,
4672,
365,
6315,
1893,
1435,
309,
1492,
422,
296,
267,
4278,
1797,
273,
2120,
67,
19083,
67,
1090,
50,
1090,
1327,
1492,
422,
296,
659,
4278,
1797,
273,
8210,
67,
19083,
67,
1090,
50,
1090,
365,
18,
10629,
4172,
12,
4172,
13,
366,
273,
365,
6315,
588,
2696,
12,
22,
13,
1172,
296,
76,
33,
2187,
76,
312,
273,
365,
6315,
588,
2696,
12,
22,
13,
1172,
296,
81,
33,
2187,
81,
272,
273,
365,
6315,
588,
2696,
12,
22,
13,
1172,
296,
87,
33,
2187,
87,
284,
273,
365,
6315,
588,
2696,
12,
22,
13,
327,
261,
76,
16,
312,
16,
272,
16,
284,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
</datafield> | </datafield> | def setUp(self): """Prepare some ideal outputs""" | 181d70a4898299aca5054809a38a1f10089e9722 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/181d70a4898299aca5054809a38a1f10089e9722/bibformat_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
7543,
2690,
23349,
6729,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
7543,
2690,
23349,
6729,
8395,
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
] |
intersection = lang.intersection(region) if intersection: return intersection | intersect = lang.intersection(region) if intersect: return intersect | def f8(lang, country, region): '''8. Lang ^ Country ^ Region, Lang ^ Country, Lang ^ Region, Lang''' intersect = lang.intersection(country).intersection(region) if intersection: return intersect else: intersection = lang.intersection(country) if intersection: return intersection else: intersection = lang.intersection(region) if intersection: return intersection else: return lang | e696c88745d210c2b85958eb1d08ee2bba59969a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8937/e696c88745d210c2b85958eb1d08ee2bba59969a/classifier_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
28,
12,
4936,
16,
5251,
16,
3020,
4672,
9163,
28,
18,
13346,
3602,
19394,
3602,
9164,
16,
13346,
3602,
19394,
16,
13346,
3602,
9164,
16,
13346,
26418,
9136,
273,
3303,
18,
30231,
12,
9082,
2934,
30231,
12,
6858,
13,
309,
7619,
30,
327,
9136,
469,
30,
7619,
273,
3303,
18,
30231,
12,
9082,
13,
309,
7619,
30,
327,
7619,
469,
30,
9136,
273,
3303,
18,
30231,
12,
6858,
13,
309,
9136,
30,
327,
9136,
469,
30,
327,
3303,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
28,
12,
4936,
16,
5251,
16,
3020,
4672,
9163,
28,
18,
13346,
3602,
19394,
3602,
9164,
16,
13346,
3602,
19394,
16,
13346,
3602,
9164,
16,
13346,
26418,
9136,
273,
3303,
18,
30231,
12,
9082,
2934,
30231,
12,
6858,
13,
309,
7619,
30,
327,
9136,
469,
30,
7619,
273,
3303,
18,
30231,
12,
9082,
13,
309,
7619,
30,
327,
7619,
469,
30,
9136,
273,
3303,
18,
30231,
12,
6858,
13,
309,
9136,
30,
327,
9136,
469,
30,
327,
3303,
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
] |
if not self.audioState == self.AUDIO_EXPORTING: | if not self.GetIsExporting(): | def TerminateExport(self, bus=None, message=None): """ GStreamer End Of Stream handler. It is connected to eos on mainpipeline while export is taking place. Parameters: bus -- reserved for GStreamer callbacks, don't use it explicitly. message -- reserved for GStreamer callbacks, don't use it explicitly. """ if not self.audioState == self.AUDIO_EXPORTING: return #stop playback because some elements will be removed from the pipeline self.Stop() self.bus.disconnect(self.EOShandler) self.Mhandler = self.bus.connect("message::element", self.__PipelineBusLevelCb) self.EOShandler = self.bus.connect("message::eos", self.Stop) #remove the filesink and encoder self.playbackbin.remove(self.outfile, self.encodebin) self.levelElementCaps.unlink(self.encodebin) #dispose of the elements del self.outfile, self.encodebin #re-add all the alsa playback elements self.playbackbin.add(self.masterSink, self.levelElement) self.levelElementCaps.link(self.levelElement) self.levelElement.link(self.masterSink) | 7f3ca674eab3e149c948663085fb197bc6e45c85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/7f3ca674eab3e149c948663085fb197bc6e45c85/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23945,
6144,
12,
2890,
16,
5766,
33,
7036,
16,
883,
33,
7036,
4672,
3536,
611,
1228,
264,
4403,
8031,
3961,
1838,
18,
2597,
353,
5840,
358,
425,
538,
603,
2774,
14511,
1323,
3359,
353,
13763,
3166,
18,
225,
7012,
30,
5766,
1493,
8735,
364,
611,
1228,
264,
6689,
16,
2727,
1404,
999,
518,
8122,
18,
883,
1493,
8735,
364,
611,
1228,
264,
6689,
16,
2727,
1404,
999,
518,
8122,
18,
3536,
225,
309,
486,
365,
18,
967,
2520,
6144,
310,
13332,
327,
225,
468,
5681,
26335,
2724,
2690,
2186,
903,
506,
3723,
628,
326,
5873,
365,
18,
4947,
1435,
225,
365,
18,
9274,
18,
20177,
12,
2890,
18,
41,
51,
1555,
464,
749,
13,
365,
18,
49,
4176,
273,
365,
18,
9274,
18,
3612,
2932,
2150,
2866,
2956,
3113,
365,
16186,
8798,
7086,
2355,
15237,
13,
365,
18,
41,
51,
1555,
464,
749,
273,
365,
18,
9274,
18,
3612,
2932,
2150,
2866,
73,
538,
3113,
365,
18,
4947,
13,
225,
468,
4479,
326,
1390,
754,
471,
7261,
365,
18,
1601,
823,
4757,
18,
4479,
12,
2890,
18,
26050,
16,
365,
18,
3015,
4757,
13,
365,
18,
2815,
1046,
24193,
18,
318,
1232,
12,
2890,
18,
3015,
4757,
13,
225,
468,
2251,
4150,
434,
326,
2186,
1464,
365,
18,
26050,
16,
365,
18,
3015,
4757,
225,
468,
266,
17,
1289,
777,
326,
524,
13098,
26335,
2186,
365,
18,
1601,
823,
4757,
18,
1289,
12,
2890,
18,
7525,
11326,
16,
365,
18,
2815,
1046,
13,
365,
18,
2815,
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,
23945,
6144,
12,
2890,
16,
5766,
33,
7036,
16,
883,
33,
7036,
4672,
3536,
611,
1228,
264,
4403,
8031,
3961,
1838,
18,
2597,
353,
5840,
358,
425,
538,
603,
2774,
14511,
1323,
3359,
353,
13763,
3166,
18,
225,
7012,
30,
5766,
1493,
8735,
364,
611,
1228,
264,
6689,
16,
2727,
1404,
999,
518,
8122,
18,
883,
1493,
8735,
364,
611,
1228,
264,
6689,
16,
2727,
1404,
999,
518,
8122,
18,
3536,
225,
309,
486,
365,
18,
967,
2520,
6144,
310,
13332,
327,
225,
468,
5681,
26335,
2724,
2690,
2186,
903,
506,
3723,
628,
326,
5873,
365,
18,
4947,
1435,
225,
365,
18,
9274,
18,
20177,
12,
2890,
18,
41,
51,
1555,
464,
749,
13,
365,
18,
49,
4176,
2
] |
child.exportDirPage(linkDict) | child.exportDirPage(linkDict, level + 1) | def exportDirPage(self, linkDict): """Write directory structure with navigation bar and full pages""" title = self.title() lines = [u'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 '\ 'Transitional//EN">', u'<html>', u'<head>', u'<meta http-equiv="Content-Type" content="text/html; '\ 'charset=utf-8">', u'<title>%s</title>' % title, u'</head>', u'<body>'] links = [] for item in self.childList: links.append(u'> > <a href="%s/%s.html">%s</a><br />' % (self.exportDirName(False), item.exportDirName(False), item.title())) if self.parent: pos = 0 for item in self.parent.childList: if item is self: links.insert(pos, u'> %s<br />' % self.title()) pos = len(links) else: links.insert(pos, u'> <a href="%s.html">%s</a><br />' % (item.exportDirName(False), item.title())) pos += 1 if self.parent.parent: pos = 0 for item in self.parent.parent.childList: links.insert(pos, u'<a href="../%s.html">%s</a><br />' % (item.exportDirName(False), item.title())) if item is self.parent: pos = len(links) pos += 1 lines.extend(links) lines.append('<hr>') sep = globalref.docRef.lineBreaks and u'<br />\n' or u'\n' lines.append(sep.join(self.formatText(True, True, True))) lines.extend([u'</body>', u'</html>']) try: dirName = self.exportDirName(True) fileName = u'%s.html' % dirName f = codecs.open(fileName, 'w', 'utf-8') f.writelines([line + '\n' for line in lines]) except (IOError, UnicodeError): print 'Error - could not write file to %s', fileName raise IOError(_('Error - cannot write file to %s') % fileName) f.close() if self.childList: try: if not os.access(dirName, os.R_OK): os.mkdir(dirName, 0755) os.chdir(dirName) except (OSError, ValueError, UnicodeError): print 'Error - cannot create directory', dirName raise IOError(_('Error - cannot create directory %s') % dirName) for child in self.childList: child.exportDirPage(linkDict) os.chdir('..') | 3c72e95cfd65937c53af1de3d76c230408027ee0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3087/3c72e95cfd65937c53af1de3d76c230408027ee0/treeitem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
1621,
1964,
12,
2890,
16,
1692,
5014,
4672,
3536,
3067,
1867,
3695,
598,
10394,
4653,
471,
1983,
4689,
8395,
2077,
273,
365,
18,
2649,
1435,
2362,
273,
306,
89,
11,
5586,
29824,
1729,
17187,
3701,
759,
59,
23,
39,
759,
25728,
3982,
1059,
18,
1611,
2337,
296,
1429,
6457,
759,
1157,
7918,
16,
582,
11,
32,
2620,
1870,
16,
582,
11,
32,
1978,
1870,
16,
582,
11,
32,
3901,
1062,
17,
14298,
427,
1546,
1350,
17,
559,
6,
913,
1546,
955,
19,
2620,
31,
2337,
296,
9999,
33,
3158,
17,
28,
7918,
16,
582,
11,
32,
2649,
9822,
87,
1757,
2649,
1870,
738,
2077,
16,
582,
11,
1757,
1978,
1870,
16,
582,
11,
32,
3432,
1870,
65,
4716,
273,
5378,
364,
761,
316,
365,
18,
3624,
682,
30,
4716,
18,
6923,
12,
89,
11,
10,
4521,
31,
473,
4521,
31,
411,
69,
3897,
11613,
87,
5258,
87,
18,
2620,
24038,
87,
1757,
69,
4438,
2848,
13452,
738,
261,
2890,
18,
6530,
28780,
12,
8381,
3631,
761,
18,
6530,
28780,
12,
8381,
3631,
761,
18,
2649,
1435,
3719,
309,
365,
18,
2938,
30,
949,
273,
374,
364,
761,
316,
365,
18,
2938,
18,
3624,
682,
30,
309,
761,
353,
365,
30,
4716,
18,
6387,
12,
917,
16,
582,
11,
10,
4521,
31,
738,
87,
32,
2848,
13452,
738,
365,
18,
2649,
10756,
949,
273,
562,
12,
7135,
13,
469,
30,
4716,
18,
6387,
12,
917,
16,
582,
11,
10,
4521,
31,
411,
69,
3897,
11613,
87,
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,
3359,
1621,
1964,
12,
2890,
16,
1692,
5014,
4672,
3536,
3067,
1867,
3695,
598,
10394,
4653,
471,
1983,
4689,
8395,
2077,
273,
365,
18,
2649,
1435,
2362,
273,
306,
89,
11,
5586,
29824,
1729,
17187,
3701,
759,
59,
23,
39,
759,
25728,
3982,
1059,
18,
1611,
2337,
296,
1429,
6457,
759,
1157,
7918,
16,
582,
11,
32,
2620,
1870,
16,
582,
11,
32,
1978,
1870,
16,
582,
11,
32,
3901,
1062,
17,
14298,
427,
1546,
1350,
17,
559,
6,
913,
1546,
955,
19,
2620,
31,
2337,
296,
9999,
33,
3158,
17,
28,
7918,
16,
582,
11,
32,
2649,
9822,
87,
1757,
2649,
1870,
738,
2077,
16,
582,
11,
1757,
1978,
1870,
16,
582,
11,
32,
3432,
1870,
65,
2
] |
return | return 0 | def handle(self): """Handle a single HTTP request. | d65b53923ecefc96f24d9cbc4e3e83dd2194d6b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d65b53923ecefc96f24d9cbc4e3e83dd2194d6b4/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
3259,
279,
2202,
2239,
590,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
3259,
279,
2202,
2239,
590,
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,
-100,
-100,
-100
] |
self.settings[self.settings["spec_prefix"]+"/rm"]=[self.settings[self.settings["spec_prefix"]+"/rm"]] | self.settings[self.settings["spec_prefix"]+"/rm"]=self.settings[self.settings["spec_prefix"]+"/rm"].split() | def remove(self): if self.settings.has_key("AUTORESUME") \ and os.path.exists(self.settings["autoresume_path"]+"remove"): print "Resume point detected, skipping remove operation..." else: if self.settings.has_key(self.settings["spec_prefix"]+"/rm"): if type(self.settings[self.settings["spec_prefix"]+"/rm"])==types.StringType: self.settings[self.settings["spec_prefix"]+"/rm"]=[self.settings[self.settings["spec_prefix"]+"/rm"]] for x in self.settings[self.settings["spec_prefix"]+"/rm"]: # we're going to shell out for all these cleaning operations, # so we get easy glob handling print "livecd: removing "+x os.system("rm -rf "+self.settings["chroot_path"]+x) try: if os.path.exists(self.settings["controller_file"]): cmd("/bin/bash "+self.settings["controller_file"]+" clean",\ "Clean failed.") touch(self.settings["autoresume_path"]+"remove") except: self.unbind() raise | 5438f9d5f24a1a920bb4f6e4a0c11670a1d2097c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/5438f9d5f24a1a920bb4f6e4a0c11670a1d2097c/generic_stage_target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
18,
4272,
18,
5332,
67,
856,
2932,
37,
1693,
8607,
30590,
7923,
521,
471,
1140,
18,
803,
18,
1808,
12,
2890,
18,
4272,
9614,
6079,
25158,
67,
803,
6,
3737,
6,
4479,
6,
4672,
1172,
315,
20911,
1634,
8316,
16,
14195,
1206,
1674,
7070,
469,
30,
309,
365,
18,
4272,
18,
5332,
67,
856,
12,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
6,
4672,
309,
618,
12,
2890,
18,
4272,
63,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
6,
5717,
631,
2352,
18,
780,
559,
30,
365,
18,
4272,
63,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
11929,
33,
2890,
18,
4272,
63,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
6,
8009,
4939,
1435,
364,
619,
316,
365,
18,
4272,
63,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
11929,
30,
468,
732,
4565,
8554,
358,
5972,
596,
364,
777,
4259,
24225,
5295,
16,
468,
1427,
732,
336,
12779,
4715,
5057,
1172,
315,
80,
427,
557,
72,
30,
9427,
13773,
92,
1140,
18,
4299,
2932,
8864,
300,
5809,
13773,
2890,
18,
4272,
9614,
343,
3085,
67,
803,
6,
3737,
92,
13,
775,
30,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
4272,
9614,
5723,
67,
768,
11929,
4672,
1797,
2932,
19,
4757,
19,
28734,
13773,
2890,
18,
4272,
9614,
5723,
67,
768,
6,
3737,
6,
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,
1206,
12,
2890,
4672,
309,
365,
18,
4272,
18,
5332,
67,
856,
2932,
37,
1693,
8607,
30590,
7923,
521,
471,
1140,
18,
803,
18,
1808,
12,
2890,
18,
4272,
9614,
6079,
25158,
67,
803,
6,
3737,
6,
4479,
6,
4672,
1172,
315,
20911,
1634,
8316,
16,
14195,
1206,
1674,
7070,
469,
30,
309,
365,
18,
4272,
18,
5332,
67,
856,
12,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
6,
4672,
309,
618,
12,
2890,
18,
4272,
63,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
6,
5717,
631,
2352,
18,
780,
559,
30,
365,
18,
4272,
63,
2890,
18,
4272,
9614,
2793,
67,
3239,
6,
3737,
6,
19,
8864,
2
] |
control.send("hatari-shortcut %s\n" % line) | hatari.trigger_shortcut(line) elif first in event_tokens: hatari.insert_event(line) elif first in debugger_tokens: hatari.debug_command(line) elif first in option_tokens: hatari.change_option(line) | def loop(self): try: line = raw_input("hatari-command: ") return line except EOFError: return "" | d5af29786f36313ce7c47a3b5fe963033faa2dd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/d5af29786f36313ce7c47a3b5fe963033faa2dd7/hatari-console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
2890,
4672,
775,
30,
980,
273,
1831,
67,
2630,
2932,
76,
8761,
77,
17,
3076,
30,
9369,
327,
980,
1335,
6431,
668,
30,
327,
1408,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
2890,
4672,
775,
30,
980,
273,
1831,
67,
2630,
2932,
76,
8761,
77,
17,
3076,
30,
9369,
327,
980,
1335,
6431,
668,
30,
327,
1408,
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
] |
if __debug__ and self.debug >= 5: _mesg('untagged_responses[%s] %s += %s' % (typ, len(ur.get(typ,'')), dat)) | if __debug__: if self.debug >= 5: _mesg('untagged_responses[%s] %s += ["%s"]' % (typ, len(ur.get(typ,'')), dat)) | def _append_untagged(self, typ, dat): | 7c42a4d8ae3bf54c1a8aa8875c15ffc51f6daabc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7c42a4d8ae3bf54c1a8aa8875c15ffc51f6daabc/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
318,
23023,
12,
2890,
16,
3815,
16,
1150,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
318,
23023,
12,
2890,
16,
3815,
16,
1150,
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,
-100
] |
log.warning('exclude parse', `exclude_parse`) log.warning('exclude introspect', `exclude_introspect`) | def main(options, names): # Set the debug flag, if '--debug' was specified. if options.debug: epydoc.DEBUG = True ## [XX] Did this serve a purpose? Commenting out for now: #if options.action == 'text': # if options.parse and options.introspect: # options.parse = False # Set up the logger if options.simple_term: TerminalController.FORCE_SIMPLE_TERM = True if options.action == 'text': logger = None # no logger for text output. elif options.verbosity > 1: logger = ConsoleLogger(options.verbosity) log.register_logger(logger) else: # Each number is a rough approximation of how long we spend on # that task, used to divide up the unified progress bar. stages = [40, # Building documentation 7, # Merging parsed & introspected information 1, # Linking imported variables 3, # Indexing documentation 30, # Parsing Docstrings 1, # Inheriting documentation 2] # Sorting & Grouping if options.load_pickle: stages = [30] # Loading pickled documentation if options.action == 'html': stages += [100] elif options.action == 'text': stages += [30] elif options.action == 'latex': stages += [60] elif options.action == 'dvi': stages += [60,30] elif options.action == 'ps': stages += [60,40] elif options.action == 'pdf': stages += [60,50] elif options.action == 'check': stages += [10] elif options.action == 'pickle': stages += [10] else: raise ValueError, '%r not supported' % options.action if options.parse and not options.introspect: del stages[1] # no merging if options.introspect and not options.parse: del stages[1:3] # no merging or linking logger = UnifiedProgressConsoleLogger(options.verbosity, stages) log.register_logger(logger) # check the output directory. if options.action not in ('text', 'check', 'pickle'): if os.path.exists(options.target): if not os.path.isdir(options.target): log.error("%s is not a directory" % options.target) sys.exit(1) # Set the default docformat from epydoc import docstringparser docstringparser.DEFAULT_DOCFORMAT = options.docformat # Set the dot path if options.dotpath: from epydoc.docwriter import dotgraph dotgraph.DOT_COMMAND = options.dotpath # Set the default graph font & size if options.graph_font: from epydoc.docwriter import dotgraph fontname = options.graph_font dotgraph.DotGraph.DEFAULT_NODE_DEFAULTS['fontname'] = fontname dotgraph.DotGraph.DEFAULT_EDGE_DEFAULTS['fontname'] = fontname if options.graph_font_size: from epydoc.docwriter import dotgraph fontsize = options.graph_font_size dotgraph.DotGraph.DEFAULT_NODE_DEFAULTS['fontsize'] = fontsize dotgraph.DotGraph.DEFAULT_EDGE_DEFAULTS['fontsize'] = fontsize # If the input name is a pickle file, then read the docindex that # it contains. Otherwise, build the docs for the input names. if options.load_pickle: assert len(names) == 1 log.start_progress('Deserializing') log.progress(0.1, 'Loading %r' % names[0]) t0 = time.time() unpickler = pickle.Unpickler(open(names[0], 'rb')) unpickler.persistent_load = pickle_persistent_load docindex = unpickler.load() log.debug('deserialization time: %.1f sec' % (time.time()-t0)) log.end_progress() else: # Build docs for the named values. from epydoc.docbuilder import build_doc_index exclude_parse = '|'.join(options.exclude_parse+options.exclude) exclude_introspect = '|'.join(options.exclude_introspect+ options.exclude) log.warning('exclude parse', `exclude_parse`) log.warning('exclude introspect', `exclude_introspect`) docindex = build_doc_index(names, options.introspect, options.parse, add_submodules=(options.action!='text'), exclude_introspect=exclude_introspect, exclude_parse=exclude_parse) if docindex is None: if log.ERROR in logger.reported_message_levels: sys.exit(1) else: return # docbuilder already logged an error. # Load profile information, if it was given. if options.pstat_files: try: import pstats except ImportError: log.error("Could not import pstats -- ignoring pstat files.") try: profile_stats = pstats.Stats(options.pstat_files[0]) for filename in options.pstat_files[1:]: profile_stats.add(filename) except KeyboardInterrupt: raise except Exception, e: log.error("Error reading pstat file: %s" % e) profile_stats = None if profile_stats is not None: docindex.read_profiling_info(profile_stats) # Perform the specified action. if options.action == 'html': write_html(docindex, options) elif options.action in ('latex', 'dvi', 'ps', 'pdf'): write_latex(docindex, options, options.action) elif options.action == 'text': write_text(docindex, options) elif options.action == 'check': check_docs(docindex, options) elif options.action == 'pickle': write_pickle(docindex, options) else: print >>sys.stderr, '\nUnsupported action %s!' % options.action # If we supressed docstring warnings, then let the user know. if logger is not None and logger.supressed_docstring_warning: if logger.supressed_docstring_warning == 1: prefix = '1 markup error was found' else: prefix = ('%d markup errors were found' % logger.supressed_docstring_warning) log.warning("%s while processing docstrings. Use the verbose " "switch (-v) to display markup errors." % prefix) # Basic timing breakdown: if options.verbosity >= 2 and logger is not None: logger.print_times() # If we encountered any message types that we were requested to # fail on, then exit with status 1. if options.fail_on is not None: max_reported_message_level = max(logger.reported_message_levels) if max_reported_message_level >= options.fail_on: sys.exit(1) | b3d5468f82afd474ea22bc3a0aaa29bd3992ad07 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/b3d5468f82afd474ea22bc3a0aaa29bd3992ad07/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
1257,
4672,
468,
1000,
326,
1198,
2982,
16,
309,
3534,
4148,
11,
1703,
1269,
18,
309,
702,
18,
4148,
30,
425,
2074,
2434,
18,
9394,
273,
1053,
225,
7541,
306,
5619,
65,
21148,
333,
12175,
279,
13115,
35,
225,
9821,
310,
596,
364,
2037,
30,
468,
430,
702,
18,
1128,
422,
296,
955,
4278,
468,
565,
309,
702,
18,
2670,
471,
702,
18,
474,
26170,
30,
468,
3639,
702,
18,
2670,
273,
1083,
225,
468,
1000,
731,
326,
1194,
309,
702,
18,
9647,
67,
6408,
30,
18778,
2933,
18,
27817,
67,
31669,
900,
67,
15176,
273,
1053,
309,
702,
18,
1128,
422,
296,
955,
4278,
1194,
273,
599,
468,
1158,
1194,
364,
977,
876,
18,
1327,
702,
18,
16629,
8807,
405,
404,
30,
1194,
273,
9657,
3328,
12,
2116,
18,
16629,
8807,
13,
613,
18,
4861,
67,
4901,
12,
4901,
13,
469,
30,
468,
8315,
1300,
353,
279,
23909,
24769,
434,
3661,
1525,
732,
17571,
603,
468,
716,
1562,
16,
1399,
358,
12326,
731,
326,
27136,
4007,
4653,
18,
20298,
273,
306,
7132,
16,
225,
468,
3998,
310,
7323,
2371,
16,
282,
468,
14940,
1998,
2707,
473,
18446,
1789,
1779,
404,
16,
282,
468,
4048,
310,
9101,
3152,
890,
16,
282,
468,
3340,
310,
7323,
5196,
16,
225,
468,
19761,
3521,
10219,
404,
16,
282,
468,
25953,
310,
7323,
576,
65,
282,
468,
5928,
310,
473,
3756,
310,
309,
702,
18,
945,
67,
20847,
30,
20298,
273,
306,
5082,
65,
468,
4444,
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,
12,
2116,
16,
1257,
4672,
468,
1000,
326,
1198,
2982,
16,
309,
3534,
4148,
11,
1703,
1269,
18,
309,
702,
18,
4148,
30,
425,
2074,
2434,
18,
9394,
273,
1053,
225,
7541,
306,
5619,
65,
21148,
333,
12175,
279,
13115,
35,
225,
9821,
310,
596,
364,
2037,
30,
468,
430,
702,
18,
1128,
422,
296,
955,
4278,
468,
565,
309,
702,
18,
2670,
471,
702,
18,
474,
26170,
30,
468,
3639,
702,
18,
2670,
273,
1083,
225,
468,
1000,
731,
326,
1194,
309,
702,
18,
9647,
67,
6408,
30,
18778,
2933,
18,
27817,
67,
31669,
900,
67,
15176,
273,
1053,
309,
702,
18,
1128,
422,
296,
955,
4278,
1194,
273,
599,
468,
1158,
1194,
364,
977,
876,
2
] |
|
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0040numeric(self): ''' Test Numeric. ''' numeric1_id = self.numeric.create({ 'numeric': Decimal('1.1'), }, CONTEXT) self.assert_(numeric1_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,
7132,
5246,
12,
2890,
4672,
9163,
7766,
16980,
18,
9163,
6389,
21,
67,
350,
273,
365,
18,
5246,
18,
2640,
12590,
296,
5246,
4278,
11322,
2668,
21,
18,
21,
19899,
19879,
13862,
13,
365,
18,
11231,
67,
12,
5246,
21,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7132,
5246,
12,
2890,
4672,
9163,
7766,
16980,
18,
9163,
6389,
21,
67,
350,
273,
365,
18,
5246,
18,
2640,
12590,
296,
5246,
4278,
11322,
2668,
21,
18,
21,
19899,
19879,
13862,
13,
365,
18,
11231,
67,
12,
5246,
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
] |
self.is_workable(task) | self.is_workable(task) and\ self.no_disabled_tag(task) | def workview(self,task,parameters=None): wv = self.active(task) and\ self.is_started(task) and\ self.is_workable(task) return wv | 2da38577b944d29dfbed060b32fd75e53748ae95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/2da38577b944d29dfbed060b32fd75e53748ae95/treefactory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
1945,
12,
2890,
16,
4146,
16,
3977,
33,
7036,
4672,
25819,
273,
365,
18,
3535,
12,
4146,
13,
471,
64,
365,
18,
291,
67,
14561,
12,
4146,
13,
471,
64,
365,
18,
291,
67,
1252,
429,
12,
4146,
13,
471,
64,
365,
18,
2135,
67,
9278,
67,
2692,
12,
4146,
13,
327,
25819,
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,
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
4146,
13,
471,
64,
365,
18,
291,
67,
1252,
429,
12,
4146,
13,
471,
64,
365,
18,
2135,
67,
9278,
67,
2692,
12,
4146,
13,
327,
25819,
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
] |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 884) else quickfix.DoubleField.__init__(self, 884, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
5193,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
5193,
16,
501,
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,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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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
5193,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
5193,
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
] |
print compress_file("aminon.par.par") | print compress_file("aminon.par") | def checkFile(name, comment): flag = os.path.exists(name) if not flag : print "ERROR: file %s is missing" %(name) print "ERROR: %s" %(comment) exit(2) | 17d70dd606eb3d3b7124da7ab2394efc9cc2045d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11088/17d70dd606eb3d3b7124da7ab2394efc9cc2045d/Attract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
812,
12,
529,
16,
2879,
4672,
2982,
273,
1140,
18,
803,
18,
1808,
12,
529,
13,
309,
225,
486,
2982,
294,
1172,
315,
3589,
30,
585,
738,
87,
353,
3315,
6,
8975,
529,
13,
1172,
315,
3589,
30,
738,
87,
6,
8975,
3469,
13,
2427,
12,
22,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
812,
12,
529,
16,
2879,
4672,
2982,
273,
1140,
18,
803,
18,
1808,
12,
529,
13,
309,
225,
486,
2982,
294,
1172,
315,
3589,
30,
585,
738,
87,
353,
3315,
6,
8975,
529,
13,
1172,
315,
3589,
30,
738,
87,
6,
8975,
3469,
13,
2427,
12,
22,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
text1 = _("Welcome in Getting Things Gnome!, your new task manager.") | text1 = _("Welcome to Getting Things Gnome!, your new task manager.") | def populate(): doc,root = cleanxml.emptydoc("project") #Task 0@1: Getting started with GTG title1 = _("Getting started with GTG") text1 = _("Welcome in Getting Things Gnome!, your new task manager.") text1 += "\n\n" text1 += _("In GTG, everything is a task. From building a bridge over the Pacific Ocean to changing a light bulb or organizing a party. When you edit a task, it is automatically saved.") text1 += "\n\n" text1 += _("Once a task is done, you can push the "Mark as done" button. If the task is not relevant any-more, simply press "Dismiss".") text1 += "\n\n" text1 += _("A task might be composed of multiple subtasks that appear as links in the description. Simply click on the following link:") text1 += "\n" text1 += "<subtask>1@1</subtask>\n" text1 += "\n\n" text1 += _("Don't forget to mark this subtask as done!") text1 += "\n\n" text1 += _("Other stuff you should read:") text1 += "\n" text1 += "<subtask>2@1</subtask>\n" text1 += "<subtask>3@1</subtask>\n" text1 += "<subtask>4@1</subtask>\n" text1 += "\n\n" text1 += _("We hope that you will appreciate GTG. Please send us bug reports and ideas for improvement using: ") text1 += "https://bugs.launchpad.net/gtg" text1 += "\n\n" text1 += _("Thank you for trying out GTG:-)") t1 = addtask(doc,"0@1",title1,text1,["1@1","2@1","3@1","4@1"]) root.appendChild(t1) #Task 1@1: Learn to use subtasks title2 = _("Learn to use subtasks") text2 = _("In the task description (this window), if you begin a line with "-", it will be considered as a "subtask", something that needs to be done in order to accomplish your task. Just try to write "- test subtask" on the next line and press enter.") text2 += "\n\n" text2 += _("You can also use the "insert subtask" button.") text2 += "\n\n\n" text2 += _("Task and subtasks can be re-organized by drag-n-drop in the tasks list.") text2 += "\n\n" text2 += _("Some concepts come with subtasks: for example, a subtask due date can never be after its parent due date.") text2 += "\n\n" text2 += _("Also, marking a parent as done will mark all the subtasks as done.") t2 = addtask(doc,"1@1",title2,text2,[]) root.appendChild(t2) #Task 2@1: Learn to use tags title3 = _("Learn to use tags") text3 = _("A tag is a simple word that begin with "@".") text3 += "\n\n" text3 += _("Try to type a word beginning with @ here:") text3 += "\n\n" text3 += _("It becomes yellow, it's a tag.") text3 += "\n\n" text3 += _("Tags are useful to sort your tasks. In the view menu, you can enable a sidebar which displays all the tags you are using so you can easily see tasks for a given tag. There's no limit to the number of tags a task can have.") text3 += "\n\n" text3 += _("If you right click on a tag in the sidebar you can also set its color. It will permit you to have a more colorful list of tasks, if you want it that way.") text3 += "\n\n" text3 += _("A new tag is only added to the current task. There's no recursivity and the tag is not applied to subtasks. But when you create a new subtask, this subtask will inherit the tags of its parent as a good primary default (it will also be the case if you add a tag to a parent just after creating a subtask). Of course, you can modify at any time the tags of this particular subtask. It will never be changed by the parent.") t3 = addtask(doc,"2@1",title3,text3,[]) root.appendChild(t3) #Task 3@1: Using the Workview title4 = _("Using the Workview") text4 = _("If you press the "Workview" button, only actionable tasks will be displayed.") text4 += "\n\n" text4 += _("What is an actionable task? It's a task you can do directly, right now.") text4 += "\n\n" text4 += _("It's a task that is already "start-able", i.e. the start date is already over.") text4 += "\n\n" text4 += _("It's a task that doesn't have open subtasks, i.e. you can do the task itself directly.") text4 += "\n\n" text4 += _("Thus, the workview will only show you tasks you should do right now.") text4 += "\n\n" text4 += _("If you use tags, you can right click on a tag in the sidebar and choose to not display tasks with this particular tag in the workview. It's very useful if you have a tag like "someday" that you use for tasks you would like to do but are not particularly urgent.") t4 = addtask(doc,"3@1",title4,text4,[]) root.appendChild(t4) #Task 4@1: Reporting bugs title5 = _("Reporting bugs") text5 = _("GTG is still very alpha software. We like it and use it everyday but you will encounter some bugs.") text5 += "\n\n" text5 += _("Please, report them on our Launchpad page:") text5 += "https://bugs.launchpad.net/gtg" text5 += "\n" text5 += _("We need you to make this software better. Any contribution, any idea is welcome.") text5 += "\n\n" text5 += _("If you have some trouble with GTG, we might be able to help you or to solve your problem really quickly.") t5 = addtask(doc,"4@1",title5,text5,[]) root.appendChild(t5) return doc | f978feac10a0a0bbe23ed71d2ade4d73e8fec185 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/f978feac10a0a0bbe23ed71d2ade4d73e8fec185/firstrun_tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
13332,
997,
16,
3085,
273,
2721,
2902,
18,
5531,
2434,
2932,
4406,
7923,
468,
2174,
374,
36,
21,
30,
26602,
5746,
598,
19688,
43,
2077,
21,
273,
389,
2932,
19213,
5746,
598,
19688,
43,
7923,
977,
21,
273,
389,
2932,
59,
16312,
358,
26602,
935,
899,
611,
82,
1742,
5,
16,
3433,
394,
1562,
3301,
1199,
13,
977,
21,
1011,
1548,
82,
64,
82,
6,
977,
21,
1011,
389,
2932,
382,
19688,
43,
16,
7756,
353,
279,
1562,
18,
6338,
10504,
279,
10105,
1879,
326,
453,
1077,
1507,
531,
31393,
358,
12770,
279,
9052,
30353,
70,
578,
15501,
6894,
279,
18285,
18,
5203,
1846,
3874,
279,
1562,
16,
518,
353,
6635,
5198,
1199,
13,
977,
21,
1011,
1548,
82,
64,
82,
6,
977,
21,
1011,
389,
2932,
12212,
279,
1562,
353,
2731,
16,
1846,
848,
1817,
326,
473,
9270,
31,
3882,
487,
2731,
10,
9270,
31,
3568,
18,
971,
326,
1562,
353,
486,
9368,
1281,
17,
10161,
16,
8616,
11779,
473,
9270,
31,
1669,
3105,
10,
9270,
31,
1199,
13,
977,
21,
1011,
1548,
82,
64,
82,
6,
977,
21,
1011,
389,
2932,
37,
1562,
4825,
506,
18673,
434,
3229,
720,
9416,
716,
9788,
487,
4716,
316,
326,
2477,
18,
9587,
1283,
4682,
603,
326,
3751,
1692,
2773,
13,
977,
21,
1011,
1548,
82,
6,
977,
21,
1011,
3532,
1717,
4146,
34,
21,
36,
21,
1757,
1717,
4146,
5333,
82,
6,
977,
21,
1011,
1548,
82,
64,
82,
6,
977,
21,
1011,
389,
2932,
22293,
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,
6490,
13332,
997,
16,
3085,
273,
2721,
2902,
18,
5531,
2434,
2932,
4406,
7923,
468,
2174,
374,
36,
21,
30,
26602,
5746,
598,
19688,
43,
2077,
21,
273,
389,
2932,
19213,
5746,
598,
19688,
43,
7923,
977,
21,
273,
389,
2932,
59,
16312,
358,
26602,
935,
899,
611,
82,
1742,
5,
16,
3433,
394,
1562,
3301,
1199,
13,
977,
21,
1011,
1548,
82,
64,
82,
6,
977,
21,
1011,
389,
2932,
382,
19688,
43,
16,
7756,
353,
279,
1562,
18,
6338,
10504,
279,
10105,
1879,
326,
453,
1077,
1507,
531,
31393,
358,
12770,
279,
9052,
30353,
70,
578,
15501,
6894,
279,
18285,
18,
5203,
1846,
3874,
279,
1562,
16,
518,
353,
6635,
5198,
1199,
13,
977,
21,
1011,
2
] |
return self.request(url, "PROPFIND", props, {'depth': depth}) | return self.request(url, "PROPFIND", props, {'depth': str(depth)}) | def propfind(self, url, props="", depth=0): """ Send a propfind request. | c2c3e6dfdf8d18d9002ecf6c284b4c79f90ae03a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7329/c2c3e6dfdf8d18d9002ecf6c284b4c79f90ae03a/davclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2270,
4720,
12,
2890,
16,
880,
16,
3458,
1546,
3113,
3598,
33,
20,
4672,
3536,
2479,
279,
2270,
4720,
590,
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
] |
["^lib/pdf_.*[.]ps$", "Interpreter (PDF)"], | ["^lib/pdf_.*[.]ps$", "PDF Interpreter"], | def ScanMakefileForSources(filename, dict, value): import re try: input = open(filename, 'r') except: try: input = open('gs/' + filename, 'r') except: print "Error: Unable to open " + filename return dict lines = input.readlines() input.close() pattern = re.compile("[a-zA-Z][a-zA-Z0-9_]+[.][ch]") for line in lines: found = pattern.search(line) if found != None: dict['src/' + found.group()] = value return dict | 5cec93699e31f70d9b2a3f6b3887539a2e04680a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/5cec93699e31f70d9b2a3f6b3887539a2e04680a/cvs2hist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8361,
6464,
768,
1290,
8628,
12,
3459,
16,
2065,
16,
460,
4672,
1930,
283,
225,
775,
30,
810,
273,
1696,
12,
3459,
16,
296,
86,
6134,
1335,
30,
775,
30,
810,
273,
1696,
2668,
564,
2473,
397,
1544,
16,
296,
86,
6134,
1335,
30,
1172,
315,
668,
30,
18640,
358,
1696,
315,
397,
1544,
327,
2065,
2362,
273,
810,
18,
896,
3548,
1435,
810,
18,
4412,
1435,
1936,
273,
283,
18,
11100,
2932,
63,
69,
17,
9600,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
67,
3737,
63,
18,
6362,
343,
4279,
13,
364,
980,
316,
2362,
30,
1392,
273,
1936,
18,
3072,
12,
1369,
13,
309,
1392,
480,
599,
30,
2065,
3292,
4816,
2473,
397,
1392,
18,
1655,
1435,
65,
273,
460,
327,
2065,
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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564,
2473,
397,
1544,
16,
296,
86,
6134,
1335,
30,
1172,
315,
668,
30,
18640,
358,
1696,
315,
397,
1544,
327,
2065,
2362,
273,
810,
18,
896,
3548,
1435,
810,
18,
4412,
1435,
1936,
273,
283,
18,
11100,
2932,
63,
69,
17,
9600,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
67,
3737,
63,
18,
6362,
343,
4279,
13,
364,
980,
316,
2362,
30,
1392,
273,
1936,
18,
3072,
12,
1369,
13,
309,
1392,
480,
599,
30,
2065,
3292,
4816,
2473,
2
] |
if worked: w.set() | def fin(worked, errormsg, ev = ev, w = w): ev.set() if worked: w.set() | a2057bf631daf4cf3b36500fd1ff79fb7c7a987e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/a2057bf631daf4cf3b36500fd1ff79fb7c7a987e/btdownloadlibrary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
574,
12,
1252,
329,
16,
393,
23250,
16,
2113,
273,
2113,
16,
341,
273,
341,
4672,
2113,
18,
542,
1435,
309,
28613,
30,
341,
18,
542,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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250,
16,
2113,
273,
2113,
16,
341,
273,
341,
4672,
2113,
18,
542,
1435,
309,
28613,
30,
341,
18,
542,
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
] |
|
if File.Ext == '.h': | if File.Ext.lower() == '.h': | def _GetSourceFiles(self): if self._Sources == None: self._Sources = [] RecordList = self._RawData[MODEL_EFI_SOURCE_FILE, self._Arch, self._Platform] Macros = {"EDK_SOURCE":GlobalData.gEcpSource, "EFI_SOURCE":GlobalData.gEfiSource, 'PROCESSOR':self._Arch} Macros.update(self._Macros) for Record in RecordList: Record = ReplaceMacros(Record, GlobalData.gEdkGlobal, False) LineNo = Record[-1] ToolChainFamily = Record[1] TagName = Record[2] ToolCode = Record[3] FeatureFlag = Record[4] if self._AutoGenVersion < 0x00010005: # old module source files (R8) File = PathClass(NormPath(Record[0], Macros), self._ModuleDir, self._SourceOverridePath, '', False, self._Arch, ToolChainFamily, '', TagName, ToolCode) # check the file validation ErrorCode, ErrorInfo = File.Validate(CaseSensitive=False) if ErrorCode != 0: if File.Ext == '.h': EdkLogger.warn('build', 'Include file not found', ExtraData=ErrorInfo, File=self.MetaFile, Line=LineNo) continue else: EdkLogger.error('build', ErrorCode, ExtraData=File, File=self.MetaFile, Line=LineNo) else: File = PathClass(NormPath(Record[0], Macros), self._ModuleDir, '', '', False, self._Arch, ToolChainFamily, '', TagName, ToolCode) # check the file validation ErrorCode, ErrorInfo = File.Validate() if ErrorCode != 0: EdkLogger.error('build', ErrorCode, ExtraData=ErrorInfo, File=self.MetaFile, Line=LineNo) | 87fa61742285ff8a7d5259309c26e00c35b2d972 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/87fa61742285ff8a7d5259309c26e00c35b2d972/WorkspaceDatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
1830,
2697,
12,
2890,
4672,
309,
365,
6315,
8628,
422,
599,
30,
365,
6315,
8628,
273,
5378,
5059,
682,
273,
365,
6315,
31733,
63,
17391,
67,
41,
1653,
67,
6537,
67,
3776,
16,
365,
6315,
12269,
16,
365,
6315,
8201,
65,
13217,
6973,
273,
12528,
2056,
47,
67,
6537,
6877,
5160,
751,
18,
75,
41,
4057,
1830,
16,
315,
41,
1653,
67,
6537,
6877,
5160,
751,
18,
75,
41,
22056,
1830,
16,
296,
16560,
916,
4278,
2890,
6315,
12269,
97,
13217,
6973,
18,
2725,
12,
2890,
6315,
9990,
6973,
13,
364,
5059,
316,
5059,
682,
30,
5059,
273,
6910,
9990,
6973,
12,
2115,
16,
8510,
751,
18,
75,
2671,
79,
5160,
16,
1083,
13,
5377,
2279,
273,
5059,
18919,
21,
65,
13288,
3893,
9203,
273,
5059,
63,
21,
65,
4034,
461,
273,
5059,
63,
22,
65,
13288,
1085,
273,
5059,
63,
23,
65,
7881,
4678,
273,
5059,
63,
24,
65,
309,
365,
6315,
4965,
7642,
1444,
411,
374,
92,
13304,
3784,
25,
30,
468,
1592,
1605,
1084,
1390,
261,
54,
28,
13,
1387,
273,
2666,
797,
12,
14624,
743,
12,
2115,
63,
20,
6487,
13217,
6973,
3631,
365,
6315,
3120,
1621,
16,
365,
6315,
1830,
6618,
743,
16,
10226,
1083,
16,
365,
6315,
12269,
16,
13288,
3893,
9203,
16,
10226,
4034,
461,
16,
13288,
1085,
13,
468,
866,
326,
585,
3379,
13218,
16,
1068,
966,
273,
1387,
18,
4270,
12,
2449,
14220,
33,
8381,
13,
309,
13218,
480,
374,
30,
309,
1387,
18,
2482,
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,
967,
1830,
2697,
12,
2890,
4672,
309,
365,
6315,
8628,
422,
599,
30,
365,
6315,
8628,
273,
5378,
5059,
682,
273,
365,
6315,
31733,
63,
17391,
67,
41,
1653,
67,
6537,
67,
3776,
16,
365,
6315,
12269,
16,
365,
6315,
8201,
65,
13217,
6973,
273,
12528,
2056,
47,
67,
6537,
6877,
5160,
751,
18,
75,
41,
4057,
1830,
16,
315,
41,
1653,
67,
6537,
6877,
5160,
751,
18,
75,
41,
22056,
1830,
16,
296,
16560,
916,
4278,
2890,
6315,
12269,
97,
13217,
6973,
18,
2725,
12,
2890,
6315,
9990,
6973,
13,
364,
5059,
316,
5059,
682,
30,
5059,
273,
6910,
9990,
6973,
12,
2115,
16,
8510,
751,
18,
75,
2671,
79,
5160,
16,
1083,
13,
5377,
2279,
2
] |
r.log("debug", "test message", 5) self.assertEquals(r.logger[0], (r,"debug","test message",5), | r.log("debug", "test message %d", 5) self.assertEquals(r.logger[0], (r,"debug","test message %d",5), | def test_log(self): r = Router() r.logger = MockLogger() r.log("debug", "test message", 5) self.assertEquals(r.logger[0], (r,"debug","test message",5), "log() calls self.logger.write()") | ff5a44e9749f2f997d14e29666fefb1759df39cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/ff5a44e9749f2f997d14e29666fefb1759df39cb/test_router.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1330,
12,
2890,
4672,
436,
273,
9703,
1435,
436,
18,
4901,
273,
7867,
3328,
1435,
436,
18,
1330,
2932,
4148,
3113,
315,
3813,
883,
738,
72,
3113,
1381,
13,
365,
18,
11231,
8867,
12,
86,
18,
4901,
63,
20,
6487,
261,
86,
10837,
4148,
15937,
3813,
883,
738,
72,
3113,
25,
3631,
315,
1330,
1435,
4097,
365,
18,
4901,
18,
2626,
1435,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1330,
12,
2890,
4672,
436,
273,
9703,
1435,
436,
18,
4901,
273,
7867,
3328,
1435,
436,
18,
1330,
2932,
4148,
3113,
315,
3813,
883,
738,
72,
3113,
1381,
13,
365,
18,
11231,
8867,
12,
86,
18,
4901,
63,
20,
6487,
261,
86,
10837,
4148,
15937,
3813,
883,
738,
72,
3113,
25,
3631,
315,
1330,
1435,
4097,
365,
18,
4901,
18,
2626,
1435,
7923,
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
] |
'remaining_hours': fields.float('Remaining Hours', digits=(16,2), help="Total remaining time, can be re-estimated periodically by the assignee of the task."), | 'remaining_hours': fields.float('Remaining Hours', digits=(16,4), help="Total remaining time, can be re-estimated periodically by the assignee of the task."), | def copy_data(self, cr, uid, id, default={},context={}): default = default or {} default['work_ids'] = [] return super(task, self).copy_data(cr, uid, id, default, context) | d536112575d7f71320089485f19dd0a8c6f3323e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d536112575d7f71320089485f19dd0a8c6f3323e/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
28793,
2472,
12938,
4672,
805,
273,
805,
578,
2618,
805,
3292,
1252,
67,
2232,
3546,
273,
5378,
327,
2240,
12,
4146,
16,
365,
2934,
3530,
67,
892,
12,
3353,
16,
4555,
16,
612,
16,
805,
16,
819,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
28793,
2472,
12938,
4672,
805,
273,
805,
578,
2618,
805,
3292,
1252,
67,
2232,
3546,
273,
5378,
327,
2240,
12,
4146,
16,
365,
2934,
3530,
67,
892,
12,
3353,
16,
4555,
16,
612,
16,
805,
16,
819,
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
] |
slices = d.keys() slices.sort() for slice in slices: num = d[slice] | max_requests = 0 for slice in range(min, max, resolution): num = d.get(slice, 0) | def timewrite(requests, start, end, resolution): max_requests = 0 print "Start: %s End: %s Resolution: %d secs" % \ (tick2str(start), tick2str(end), resolution) print "-" * 78 print print "Date/Time #requests requests/second" d = {} for r in requests: t = r.start slice = getTimeslice(resolution,t) if d.has_key(slice): d[slice] = d[slice] + 1 else: d[slice] = 1 num = 0 hits = 0 avg_requests = None slices = d.keys() slices.sort() for slice in slices: num = d[slice] if num>max_requests: max_requests = num hits = hits + num if avg_requests is None: avg_requests = num else: avg_requests = (avg_requests + num) / 2 s = tick2str(slice) s = s + " %6d %4.2lf" % (num,num*1.0/resolution) print s print '='*78 print " Peak: %6d %4.2lf" % \ (max_requests,max_requests*1.0/resolution) print " Avg: %6d %4.2lf" % \ (avg_requests,avg_requests*1.0/resolution) print "Total: %6d n/a " % (hits) | 76070c7cdc68bf22cdf41234ce64835eb149b1ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/76070c7cdc68bf22cdf41234ce64835eb149b1ae/requestprofiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1658,
12341,
12,
11420,
16,
787,
16,
679,
16,
7861,
4672,
943,
67,
11420,
273,
374,
225,
1172,
315,
1685,
30,
738,
87,
565,
4403,
30,
738,
87,
282,
24933,
30,
738,
72,
18043,
6,
738,
521,
261,
6470,
22,
701,
12,
1937,
3631,
4024,
22,
701,
12,
409,
3631,
7861,
13,
1172,
7514,
380,
22860,
1172,
1172,
315,
1626,
19,
950,
7734,
468,
11420,
3285,
19,
8538,
6,
225,
302,
273,
2618,
364,
436,
316,
3285,
30,
268,
273,
436,
18,
1937,
2788,
273,
3181,
4485,
2008,
12,
19182,
16,
88,
13,
309,
302,
18,
5332,
67,
856,
12,
6665,
4672,
302,
63,
6665,
65,
273,
302,
63,
6665,
65,
397,
404,
469,
30,
302,
63,
6665,
65,
273,
404,
225,
818,
273,
374,
11076,
273,
374,
11152,
67,
11420,
273,
599,
943,
67,
11420,
273,
374,
364,
2788,
316,
1048,
12,
1154,
16,
943,
16,
7861,
4672,
818,
273,
302,
18,
588,
12,
6665,
16,
374,
13,
309,
818,
34,
1896,
67,
11420,
30,
943,
67,
11420,
273,
818,
11076,
273,
11076,
397,
818,
225,
309,
11152,
67,
11420,
353,
599,
30,
11152,
67,
11420,
273,
818,
469,
30,
11152,
67,
11420,
273,
261,
14141,
67,
11420,
397,
818,
13,
342,
576,
225,
272,
273,
4024,
22,
701,
12,
6665,
13,
272,
273,
272,
397,
315,
377,
738,
26,
72,
540,
738,
24,
18,
22,
20850,
6,
738,
261,
2107,
16,
2107,
14,
21,
18,
20,
19,
19182,
13,
1172,
272,
225,
1172,
5214,
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,
1658,
12341,
12,
11420,
16,
787,
16,
679,
16,
7861,
4672,
943,
67,
11420,
273,
374,
225,
1172,
315,
1685,
30,
738,
87,
565,
4403,
30,
738,
87,
282,
24933,
30,
738,
72,
18043,
6,
738,
521,
261,
6470,
22,
701,
12,
1937,
3631,
4024,
22,
701,
12,
409,
3631,
7861,
13,
1172,
7514,
380,
22860,
1172,
1172,
315,
1626,
19,
950,
7734,
468,
11420,
3285,
19,
8538,
6,
225,
302,
273,
2618,
364,
436,
316,
3285,
30,
268,
273,
436,
18,
1937,
2788,
273,
3181,
4485,
2008,
12,
19182,
16,
88,
13,
309,
302,
18,
5332,
67,
856,
12,
6665,
4672,
302,
63,
6665,
65,
273,
302,
63,
6665,
65,
397,
404,
469,
30,
302,
63,
6665,
2
] |
self.objectChoice = wxChoice(self.panel_1, self.objectChoiceId , choices=["vtkImageThreshold"]) | self.objectChoice = wxChoice(self.panel_1, self.objectChoiceId , choices=["vtkImageReader"]) | def __init__(self, *args, **kwds): # begin wxGlade: rawVolumeRDRViewFrame.__init__ kwds["style"] = wxCAPTION|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxSYSTEM_MENU|wxRESIZE_BORDER wxFrame.__init__(self, *args, **kwds) self.panel_1 = wxPanel(self, -1) self.label_1 = wxStaticText(self.panel_1, -1, "Filename") self.filenameText = wxTextCtrl(self.panel_1, -1, "") self.browseButtonId = wxNewId() self.button_1 = wxButton(self.panel_1, self.browseButtonId , "Browse") self.label_3 = wxStaticText(self.panel_1, -1, "Data type") self.dataTypeChoice = wxChoice(self.panel_1, -1, choices=["choice 1"]) self.endiannessRadioBox = wxRadioBox(self.panel_1, -1, "Endianness", choices=["Little (LSB at lowest address)", "Big (MSB at lowest address)"], majorDimension=2, style=wxRA_SPECIFY_COLS) self.label_2 = wxStaticText(self.panel_1, -1, "Header size (bytes)") self.headerSizeText = wxTextCtrl(self.panel_1, -1, "0") self.label_4 = wxStaticText(self.panel_1, -1, "Extent (x0, x1, y0, y1, z0, z1)") self.extentText = wxTextCtrl(self.panel_1, -1, "") self.label_5 = wxStaticText(self.panel_1, -1, "Spacing (Sx, Sy, Sz)") self.spacingText = wxTextCtrl(self.panel_1, -1, "") self.label_1_copy_1 = wxStaticText(self.panel_1, -1, "Examine the") self.objectChoiceId = wxNewId() self.objectChoice = wxChoice(self.panel_1, self.objectChoiceId , choices=["vtkImageThreshold"]) self.label_2_copy_1 = wxStaticText(self.panel_1, -1, "or") self.pipelineButtonId = wxNewId() self.pipelineButton = wxButton(self.panel_1, self.pipelineButtonId , "Pipeline") self.cancel_button = wxButton(self.panel_1, wxID_CANCEL, "Cancel") self.SYNC_ID = wxNewId() self.sync_button = wxButton(self.panel_1, self.SYNC_ID , "Sync") self.APPLY_ID = wxNewId() self.apply_button = wxButton(self.panel_1, self.APPLY_ID , "Apply") self.EXECUTE_ID = wxNewId() self.execute_button = wxButton(self.panel_1, self.EXECUTE_ID , "Execute") self.ok_button = wxButton(self.panel_1, wxID_OK, "OK") | 8e1e8d7123d97787a978f4db4b7e4b02e0046f1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/8e1e8d7123d97787a978f4db4b7e4b02e0046f1d/rawVolumeRDRViewFrame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
468,
2376,
7075,
21308,
2486,
30,
1831,
4545,
54,
6331,
1767,
3219,
16186,
2738,
972,
17149,
9614,
4060,
11929,
273,
7075,
3587,
3725,
96,
27226,
6236,
3445,
15641,
67,
16876,
96,
27226,
6694,
3445,
15641,
67,
16876,
96,
27226,
14318,
67,
29227,
96,
27226,
862,
4574,
67,
38,
7954,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
13,
365,
18,
13916,
67,
21,
273,
7075,
5537,
12,
2890,
16,
300,
21,
13,
365,
18,
1925,
67,
21,
273,
7075,
5788,
1528,
12,
2890,
18,
13916,
67,
21,
16,
300,
21,
16,
315,
5359,
7923,
365,
18,
3459,
1528,
273,
7075,
1528,
12418,
12,
2890,
18,
13916,
67,
21,
16,
300,
21,
16,
1408,
13,
365,
18,
25731,
3616,
548,
225,
273,
225,
7075,
1908,
548,
1435,
365,
18,
5391,
67,
21,
273,
7075,
3616,
12,
2890,
18,
13916,
67,
21,
16,
365,
18,
25731,
3616,
548,
269,
315,
27304,
7923,
365,
18,
1925,
67,
23,
273,
7075,
5788,
1528,
12,
2890,
18,
13916,
67,
21,
16,
300,
21,
16,
315,
751,
618,
7923,
365,
18,
892,
559,
10538,
273,
7075,
10538,
12,
2890,
18,
13916,
67,
21,
16,
300,
21,
16,
7246,
33,
9614,
11569,
404,
6,
5717,
365,
18,
409,
77,
1072,
403,
19984,
3514,
273,
7075,
19984,
3514,
12,
2890,
18,
13916,
67,
21,
16,
300,
21,
16,
315,
1638,
77,
1072,
403,
3113,
7246,
33,
9614,
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,
380,
1968,
16,
2826,
25577,
4672,
468,
2376,
7075,
21308,
2486,
30,
1831,
4545,
54,
6331,
1767,
3219,
16186,
2738,
972,
17149,
9614,
4060,
11929,
273,
7075,
3587,
3725,
96,
27226,
6236,
3445,
15641,
67,
16876,
96,
27226,
6694,
3445,
15641,
67,
16876,
96,
27226,
14318,
67,
29227,
96,
27226,
862,
4574,
67,
38,
7954,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
13,
365,
18,
13916,
67,
21,
273,
7075,
5537,
12,
2890,
16,
300,
21,
13,
365,
18,
1925,
67,
21,
273,
7075,
5788,
1528,
12,
2890,
18,
13916,
67,
21,
16,
300,
21,
16,
315,
5359,
7923,
365,
18,
3459,
1528,
273,
7075,
1528,
2
] |
@rtype: C{string} | def _write_navbar(self, public, private, where=None, top=0): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: An identifier indicating what page we're creating a navigation bar for. This is either a UID (for an object documentation page); or one of the strings C{'tree'}, C{'index'}, and C{'help'}. @type where: C{UID} or C{string} @param top: Whether this is the navigation bar at the top of the page. @type top: C{boolean} """ sio = StringIO() sio.write(self._start_of('Navbar')) sio.write('<table class="navbar" border="0" width="100%"') sio.write(' cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">\n') sio.write(' <tr valign="center">\n') | dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
11589,
3215,
12,
2890,
16,
1071,
16,
3238,
16,
1625,
33,
7036,
16,
1760,
33,
20,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
10394,
4653,
603,
326,
864,
618,
434,
1363,
18,
225,
1021,
10394,
4653,
14755,
10192,
3007,
2866,
225,
306,
7508,
5924,
1659,
4902,
3340,
11288,
308,
225,
632,
891,
1625,
30,
1922,
2756,
11193,
4121,
1363,
732,
4565,
4979,
279,
10394,
4653,
364,
18,
225,
1220,
353,
3344,
279,
10034,
261,
1884,
392,
733,
7323,
1363,
1769,
578,
1245,
434,
326,
2064,
385,
27828,
3413,
11,
5779,
385,
27828,
1615,
11,
5779,
471,
385,
27828,
5201,
11,
5496,
632,
723,
1625,
30,
385,
95,
3060,
97,
578,
385,
95,
1080,
97,
632,
891,
1760,
30,
17403,
333,
353,
326,
10394,
4653,
622,
326,
1760,
434,
326,
1363,
18,
632,
723,
1760,
30,
385,
95,
6494,
97,
3536,
272,
1594,
273,
15777,
1435,
272,
1594,
18,
2626,
12,
2890,
6315,
1937,
67,
792,
2668,
12599,
3215,
26112,
272,
1594,
18,
2626,
2668,
32,
2121,
667,
1546,
11589,
3215,
6,
5795,
1546,
20,
6,
1835,
1546,
6625,
9,
5187,
13,
272,
1594,
18,
2626,
2668,
2484,
9598,
1546,
20,
6,
31509,
1546,
7,
69,
20,
71,
20,
1403,
6,
2484,
14080,
1546,
20,
6,
5333,
82,
6134,
272,
1594,
18,
2626,
2668,
225,
411,
313,
1244,
724,
1546,
5693,
6,
5333,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
11589,
3215,
12,
2890,
16,
1071,
16,
3238,
16,
1625,
33,
7036,
16,
1760,
33,
20,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
10394,
4653,
603,
326,
864,
618,
434,
1363,
18,
225,
1021,
10394,
4653,
14755,
10192,
3007,
2866,
225,
306,
7508,
5924,
1659,
4902,
3340,
11288,
308,
225,
632,
891,
1625,
30,
1922,
2756,
11193,
4121,
1363,
732,
4565,
4979,
279,
10394,
4653,
364,
18,
225,
1220,
353,
3344,
279,
10034,
261,
1884,
392,
733,
7323,
1363,
1769,
578,
1245,
434,
326,
2064,
385,
27828,
3413,
11,
5779,
385,
27828,
1615,
11,
5779,
471,
385,
27828,
5201,
11,
5496,
632,
723,
1625,
30,
385,
95,
3060,
97,
578,
385,
95,
2
] |
|
self.waitingToRunningRatio = gConfig.getValue('LocalSite/waitingToRunningRatio', WAITING_TO_RUNNING_RATIO) self.maxWaitingJobs = gConfig.getValue('LocalSite/maxWaitingJobs', MAX_WAITING_JOBS) self.maxNumberJobs = gConfig.getValue('LocalSite/maxNumberJobs', MAX_NUMBER_JOBS) PilotDirector.__init__( self, submitPool ) | self.sharedArea = gConfig.getValue('LocalSite/SharedArea') if not self.sharedArea: self.log.error(' Con not run DIRAC Director without Shared Area') sys.exit() self.waitingToRunningRatio = gConfig.getValue('LocalSite/WaitingToRunningRatio', WAITING_TO_RUNNING_RATIO) self.maxWaitingJobs = gConfig.getValue('LocalSite/MaxWaitingJobs', MAX_WAITING_JOBS) self.maxNumberJobs = gConfig.getValue('LocalSite/MaxNumberJobs', MAX_NUMBER_JOBS) self.httpProxy = gConfig.getValue('LocalSite/HttpProxy', '') | def __init__( self, submitPool ): """ Define some defaults and call parent __init__ """ self.gridMiddleware = 'DIRAC' | d4abebe0f52eb23d65894d6e3e3c5d75eba9084e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/d4abebe0f52eb23d65894d6e3e3c5d75eba9084e/DIRACPilotDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
4879,
2864,
262,
30,
3536,
13184,
2690,
3467,
471,
745,
982,
1001,
2738,
972,
3536,
365,
18,
5222,
9410,
565,
273,
296,
4537,
2226,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
4879,
2864,
262,
30,
3536,
13184,
2690,
3467,
471,
745,
982,
1001,
2738,
972,
3536,
365,
18,
5222,
9410,
565,
273,
296,
4537,
2226,
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
] |
re.sub(r'\r?\n', CRLF, data)) | re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data)) | def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\n' into Internet CRLF end-of-line.""" return re.sub(r'(?m)^\.', '..', re.sub(r'\r?\n', CRLF, data)) | 9cc6c7b00f7761dd722ad6a9440a98985710edf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9cc6c7b00f7761dd722ad6a9440a98985710edf2/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9298,
396,
12,
892,
4672,
3536,
10257,
501,
364,
2699,
18,
225,
3698,
7676,
2611,
16,
471,
2549,
9480,
9472,
2337,
82,
11,
1368,
21352,
21791,
679,
17,
792,
17,
1369,
12123,
327,
283,
18,
1717,
12,
86,
11,
3680,
81,
13,
17134,
1093,
16,
11597,
2187,
283,
18,
1717,
12,
86,
11,
15599,
86,
64,
82,
8960,
82,
8960,
86,
19306,
64,
82,
3719,
2187,
21791,
16,
501,
3719,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9298,
396,
12,
892,
4672,
3536,
10257,
501,
364,
2699,
18,
225,
3698,
7676,
2611,
16,
471,
2549,
9480,
9472,
2337,
82,
11,
1368,
21352,
21791,
679,
17,
792,
17,
1369,
12123,
327,
283,
18,
1717,
12,
86,
11,
3680,
81,
13,
17134,
1093,
16,
11597,
2187,
283,
18,
1717,
12,
86,
11,
15599,
86,
64,
82,
8960,
82,
8960,
86,
19306,
64,
82,
3719,
2187,
21791,
16,
501,
3719,
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
] |
num_lamd = int(os.popen('pgrep -u www-data lamd | wc').readline().split()[0]) | num_lamd = int(os.popen('pgrep -u www lamd | wc').readline().split()[0]) | def my_queue(MAX_NUM_PROCS, runningProcs = runningProcs, ADD_PROCS = 1, CHECK_QUEUE = 23, MAX_DURATION_TRY = 25 * 3600): """ Wait here until the number of processes is smaller than MAX_NUM_PROCS and number of slaves smaller than MAX_NUM_PROCS + ADD_PROCS (so we allow for other apps. launching lamd). But only wait for MAX_DURATION. Check every CHECK_QUEUE seconds. If able to find an opening, return OK, otherwise return Failed""" out_value = 'OK' startTime = time.time() while True: killedlamandr = os.system('/http/mpi.log/killOldLamAllMachines.py') issue_echo(' inside my_queue ', tmpDir) if (time.time() - startTime) > MAX_DURATION_TRY: out_value = 'Failed' break num_lamd = int(os.popen('pgrep -u www-data lamd | wc').readline().split()[0]) num_sentinel = int(len(glob.glob(''.join([runningProcs, 'sentinel.lam.*'])))) if (num_lamd < (MAX_NUM_PROCS + ADD_PROCS)) and (num_sentinel < MAX_NUM_PROCS): issue_echo(' OK; num_lamd = ' + str(num_lamd) + \ '; num_sentinel = ' + str(num_sentinel), tmpDir) break else: issue_echo(' wait: num_lamd = ' + str(num_lamd) + \ '; num_sentinel = ' + str(num_sentinel), tmpDir) time.sleep(CHECK_QUEUE + random.uniform(0.1, 5)) return out_value | 7c83e1121eff8acfee80e4a2e52e0cef582c214f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6463/7c83e1121eff8acfee80e4a2e52e0cef582c214f/runAndCheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
4000,
12,
6694,
67,
6069,
67,
3373,
4596,
16,
3549,
626,
2143,
273,
3549,
626,
2143,
16,
11689,
67,
3373,
4596,
273,
404,
16,
14565,
67,
19533,
273,
10213,
16,
4552,
67,
24951,
67,
17805,
273,
6969,
380,
12396,
4672,
3536,
5838,
2674,
3180,
326,
1300,
434,
8488,
353,
10648,
2353,
4552,
67,
6069,
67,
3373,
4596,
471,
1300,
434,
30403,
10648,
2353,
4552,
67,
6069,
67,
3373,
4596,
397,
11689,
67,
3373,
4596,
261,
2048,
732,
1699,
364,
1308,
8279,
18,
8037,
310,
17310,
72,
2934,
12484,
1338,
2529,
364,
4552,
67,
24951,
18,
2073,
3614,
14565,
67,
19533,
3974,
18,
971,
7752,
358,
1104,
392,
10890,
16,
327,
7791,
16,
3541,
327,
11175,
8395,
596,
67,
1132,
273,
296,
3141,
11,
8657,
273,
813,
18,
957,
1435,
1323,
1053,
30,
24859,
28448,
464,
86,
273,
1140,
18,
4299,
2668,
19,
2505,
19,
1291,
77,
18,
1330,
19,
16418,
7617,
48,
301,
1595,
25222,
18,
2074,
6134,
5672,
67,
12946,
2668,
377,
4832,
3399,
67,
4000,
2265,
22521,
13,
309,
261,
957,
18,
957,
1435,
300,
8657,
13,
405,
4552,
67,
24951,
67,
17805,
30,
596,
67,
1132,
273,
296,
2925,
11,
898,
818,
67,
28448,
72,
273,
509,
12,
538,
18,
84,
3190,
2668,
8365,
14462,
300,
89,
8765,
17310,
72,
571,
14310,
16063,
896,
1369,
7675,
4939,
1435,
63,
20,
5717,
818,
67,
7569,
12927,
273,
509,
12,
1897,
12,
10581,
18,
10581,
2668,
10332,
5701,
3816,
8704,
626,
2143,
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,
3399,
67,
4000,
12,
6694,
67,
6069,
67,
3373,
4596,
16,
3549,
626,
2143,
273,
3549,
626,
2143,
16,
11689,
67,
3373,
4596,
273,
404,
16,
14565,
67,
19533,
273,
10213,
16,
4552,
67,
24951,
67,
17805,
273,
6969,
380,
12396,
4672,
3536,
5838,
2674,
3180,
326,
1300,
434,
8488,
353,
10648,
2353,
4552,
67,
6069,
67,
3373,
4596,
471,
1300,
434,
30403,
10648,
2353,
4552,
67,
6069,
67,
3373,
4596,
397,
11689,
67,
3373,
4596,
261,
2048,
732,
1699,
364,
1308,
8279,
18,
8037,
310,
17310,
72,
2934,
12484,
1338,
2529,
364,
4552,
67,
24951,
18,
2073,
3614,
14565,
67,
19533,
3974,
18,
971,
7752,
358,
1104,
392,
10890,
16,
327,
7791,
16,
3541,
327,
11175,
8395,
2
] |
d = np.absolute(np.arctanh(x)/np.arctan(1j*x).imag - 1) | z = (1j*x).astype(dtype) d = np.absolute(np.arctanh(x)/np.arctan(z).imag - 1) | def check(x, rtol): d = np.absolute(np.arcsinh(x)/np.arcsinh(x+0j).real - 1) assert np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(), 'arcsinh') | a122b90e7b952dd4a1cbf1753aaf753d53f29487 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/a122b90e7b952dd4a1cbf1753aaf753d53f29487/test_umath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
92,
16,
436,
3490,
4672,
302,
273,
1130,
18,
12547,
12,
6782,
18,
297,
2143,
267,
76,
12,
92,
13176,
6782,
18,
297,
2143,
267,
76,
12,
92,
15,
20,
78,
2934,
7688,
300,
404,
13,
1815,
1130,
18,
454,
12,
72,
411,
436,
3490,
3631,
261,
6782,
18,
3175,
1896,
12,
72,
3631,
619,
63,
6782,
18,
3175,
1896,
12,
72,
13,
6487,
302,
18,
1896,
9334,
296,
297,
2143,
267,
76,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
12,
92,
16,
436,
3490,
4672,
302,
273,
1130,
18,
12547,
12,
6782,
18,
297,
2143,
267,
76,
12,
92,
13176,
6782,
18,
297,
2143,
267,
76,
12,
92,
15,
20,
78,
2934,
7688,
300,
404,
13,
1815,
1130,
18,
454,
12,
72,
411,
436,
3490,
3631,
261,
6782,
18,
3175,
1896,
12,
72,
3631,
619,
63,
6782,
18,
3175,
1896,
12,
72,
13,
6487,
302,
18,
1896,
9334,
296,
297,
2143,
267,
76,
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
] |
- bw + 5, self._unitsize - bh, | - bw + rad, self._unitsize - bh, | def visitShelf(self, shelf): # e is our shelf e = self._image.createElement("g") title = self._image.createElement("title") title.appendChild(self._image.createTextNode("Shelf 1U")) e.appendChild(title) | 864e40830e50f320c5491647f8febfe0c8a58ee7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5639/864e40830e50f320c5491647f8febfe0c8a58ee7/rackview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
1555,
19079,
12,
2890,
16,
699,
19079,
4672,
468,
425,
353,
3134,
699,
19079,
425,
273,
365,
6315,
2730,
18,
2640,
1046,
2932,
75,
7923,
2077,
273,
365,
6315,
2730,
18,
2640,
1046,
2932,
2649,
7923,
2077,
18,
6923,
1763,
12,
2890,
6315,
2730,
18,
2640,
17299,
2932,
1555,
19079,
404,
57,
6,
3719,
425,
18,
6923,
1763,
12,
2649,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
1555,
19079,
12,
2890,
16,
699,
19079,
4672,
468,
425,
353,
3134,
699,
19079,
425,
273,
365,
6315,
2730,
18,
2640,
1046,
2932,
75,
7923,
2077,
273,
365,
6315,
2730,
18,
2640,
1046,
2932,
2649,
7923,
2077,
18,
6923,
1763,
12,
2890,
6315,
2730,
18,
2640,
17299,
2932,
1555,
19079,
404,
57,
6,
3719,
425,
18,
6923,
1763,
12,
2649,
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
] |
self.game.turned.accept(card) del self.cards[-1] card.showface() def bottomhandler(self, event): cards = self.game.turned.cards cards.reverse() for card in cards: card.showback() self.accept(card) self.game.turned.reset() class MovingStack(Stack): thecards = None theindex = None def clickhandler(self, event): self.thecards = self.theindex = None tags = self.game.canvas.gettags('current') if not tags: | if not card.face_shown: self.userclickhandler() | def releasehandler(self, event): | 20ce2dd6aa77ea628b49c0c6b820d66211a9a61d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/20ce2dd6aa77ea628b49c0c6b820d66211a9a61d/solitaire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
4176,
12,
2890,
16,
871,
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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
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,
3992,
4176,
12,
2890,
16,
871,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
recurrent_dates = map(lambda x:x.strftime('%Y-%m-%d %H:%M:%S'), re_dates) | recurrent_dates = map(lambda x:x.strftime('%Y-%m-%d %H:%M:%S', timezone=True), re_dates) | def get_recurrent_dates(self, rrulestring, exdate, startdate=None): todate = parser.parse if not startdate: startdate = datetime.now() else: startdate = todate(startdate) rset1 = rrulestr(rrulestring, dtstart=startdate, forceset=True) for date in exdate: datetime_obj = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") | 04513f20a49d82a07a44f95c0c1589a0bb666538 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/04513f20a49d82a07a44f95c0c1589a0bb666538/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
266,
2972,
67,
9683,
12,
2890,
16,
436,
7482,
371,
16,
431,
712,
16,
787,
712,
33,
7036,
4672,
358,
712,
273,
2082,
18,
2670,
309,
486,
787,
712,
30,
787,
712,
273,
3314,
18,
3338,
1435,
469,
30,
787,
712,
273,
358,
712,
12,
1937,
712,
13,
436,
542,
21,
273,
436,
7482,
313,
12,
523,
1513,
371,
16,
3681,
1937,
33,
1937,
712,
16,
26376,
278,
33,
5510,
13,
364,
1509,
316,
431,
712,
30,
3314,
67,
2603,
273,
3314,
18,
701,
10650,
12,
712,
16,
2213,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
266,
2972,
67,
9683,
12,
2890,
16,
436,
7482,
371,
16,
431,
712,
16,
787,
712,
33,
7036,
4672,
358,
712,
273,
2082,
18,
2670,
309,
486,
787,
712,
30,
787,
712,
273,
3314,
18,
3338,
1435,
469,
30,
787,
712,
273,
358,
712,
12,
1937,
712,
13,
436,
542,
21,
273,
436,
7482,
313,
12,
523,
1513,
371,
16,
3681,
1937,
33,
1937,
712,
16,
26376,
278,
33,
5510,
13,
364,
1509,
316,
431,
712,
30,
3314,
67,
2603,
273,
3314,
18,
701,
10650,
12,
712,
16,
2213,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
in parentheses and allows for multiple entries in one record separated by punctuation marks. | in parentheses. """ def getMatchFunction(self, searchStr): regex = re.compile('/' + '(\s+|\([^\)]+\))*' + re.escape(searchStr) + '(\s+|\([^\)]+\))*' + '/') return lambda translation: regex.search(translation) is not None class HanDeDictTranslationSearchStrategy(ExactTranslationSearchStrategy): """ HanDeDict translation based search strategy. Takes into account additions put in parentheses and allows for multiple entries in one record separated by punctuation marks. | def getMatchFunction(self, searchStr): """ Gets a function that returns C{True} if the entry's translation matches the search string. | 39762be9d5e0f7b44fdb58a0b67534d6ef5db03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/39762be9d5e0f7b44fdb58a0b67534d6ef5db03b/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2060,
2083,
12,
2890,
16,
1623,
1585,
4672,
3536,
11881,
279,
445,
716,
1135,
385,
95,
5510,
97,
309,
326,
1241,
1807,
4794,
1885,
326,
1623,
533,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2060,
2083,
12,
2890,
16,
1623,
1585,
4672,
3536,
11881,
279,
445,
716,
1135,
385,
95,
5510,
97,
309,
326,
1241,
1807,
4794,
1885,
326,
1623,
533,
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
] |
cmd = self.command("mkdir", "-m", "This directory will host the upstream sources") svnmkdir = ExternalCommand(command=cmd) svnmkdir.execute(self.repository + self.module) if svnmkdir.exit_status: raise TargetInitializationFailure("Was not able to create the " "module %r, maybe more than " "one level directory?" % self.module) | cmd = self.command("ls") svnls = ExternalCommand(command=cmd) svnls.execute(self.repository + self.module) if svnls.exit_status: cmd = self.command("mkdir", "-m", "This directory will host the upstream sources") svnmkdir = ExternalCommand(command=cmd) svnmkdir.execute(self.repository + self.module) if svnmkdir.exit_status: raise TargetInitializationFailure("Was not able to create the " "module %r, maybe more than " "one level directory?" % self.module) | def create(self): """ Create a local SVN repository, if it does not exist. """ | 1e833688f62dea2c16103820dfa0564339607601 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5981/1e833688f62dea2c16103820dfa0564339607601/svn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
4672,
3536,
1788,
279,
1191,
29537,
50,
3352,
16,
309,
518,
1552,
486,
1005,
18,
3536,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
4672,
3536,
1788,
279,
1191,
29537,
50,
3352,
16,
309,
518,
1552,
486,
1005,
18,
3536,
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
] |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 15) else quickfix.StringField.__init__(self, 15, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
4711,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
4711,
16,
501,
13,
2,
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
] | [
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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
4711,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
4711,
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,
-100,
-100
] |
net = self.bayes[bone] | if bone in self.bayes: net = self.bayes[bone] | def combine(self, bones, items, position=0, current=[], current_probability=1.0): """Recusively create combinatoric successors. | 6652b10df9e0e6d4d24a474c0c99a679f8fce877 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/6652b10df9e0e6d4d24a474c0c99a679f8fce877/Interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
12,
2890,
16,
324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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
12,
2890,
16,
324,
5322,
16,
1516,
16,
1754,
33,
20,
16,
783,
22850,
6487,
783,
67,
22390,
33,
21,
18,
20,
4672,
3536,
5650,
407,
4492,
752,
3894,
4240,
335,
25190,
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
] |
resp, lines = self.longcmd('XOVER ' + start + '-' + end) | resp, lines = self.longcmd('XOVER ' + start + '-' + end, file) | def xover(self,start,end): """Process an XOVER command (optional server extension) Arguments: - start: start of range - end: end of range Returns: - resp: server response if successful - list: list of (art-nr, subject, poster, date, id, references, size, lines)""" | f8c3072b3a95680a34ccbad8c83642b197b6aad9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f8c3072b3a95680a34ccbad8c83642b197b6aad9/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
1643,
12,
2890,
16,
1937,
16,
409,
4672,
3536,
2227,
392,
1139,
12959,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
787,
30,
787,
434,
1048,
300,
679,
30,
679,
434,
1048,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
666,
30,
666,
434,
261,
485,
17,
11611,
16,
3221,
16,
1603,
264,
16,
1509,
16,
612,
16,
5351,
16,
963,
16,
2362,
15574,
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,
619,
1643,
12,
2890,
16,
1937,
16,
409,
4672,
3536,
2227,
392,
1139,
12959,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
787,
30,
787,
434,
1048,
300,
679,
30,
679,
434,
1048,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
666,
30,
666,
434,
261,
485,
17,
11611,
16,
3221,
16,
1603,
264,
16,
1509,
16,
612,
16,
5351,
16,
963,
16,
2362,
15574,
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
] |
for payload in cataloginfo.get('payloads',[]): | for payload in cataloginfo.get('payloads', []): | def getAdobeCatalogInfo(mountpoint, pkgname=""): '''Used by makepkginfo to build pkginfo data for Adobe installers/updaters''' # look for AdobeDeploymentManager (AAMEE installer) deploymentmanager = findAdobeDeploymentManager(mountpoint) if deploymentmanager: dirpath = os.path.dirname(deploymentmanager) cataloginfo = getAdobePackageInfo(dirpath) if cataloginfo: # add some more data cataloginfo['name'] = \ cataloginfo['display_name'].replace(" ",'') cataloginfo['uninstallable'] = True cataloginfo['uninstall_method'] = "AdobeCS5AAMEEPackage" cataloginfo['installer_type'] = "AdobeCS5AAMEEPackage" cataloginfo['minimum_os_version'] = "10.5.0" cataloginfo['adobe_install_info'] = getAdobeInstallInfo( installdir=dirpath) mediasignature = cataloginfo['adobe_install_info'].get( "media_signature") if mediasignature: # make a default <key>installs</key> entry uninstalldir = "/Library/Application Support/Adobe/Uninstall" signaturefile = mediasignature + ".db" filepath = os.path.join(uninstalldir, signaturefile) installs = [] installitem = {} installitem['path'] = filepath installitem['type'] = 'file' installs.append(installitem) cataloginfo['installs'] = installs return cataloginfo # Look for Install.app (Bare metal CS5 install) # we don't handle this type, but we'll report it # back so makepkginfo can provide an error message installapp = findInstallApp(mountpoint) if installapp: cataloginfo = {} cataloginfo['installer_type'] = "AdobeCS5Installer" return cataloginfo # Look for AdobePatchInstaller.app (CS5 updater) installapp = findAdobePatchInstallerApp(mountpoint) if os.path.exists(installapp): # this is a CS5 updater disk image cataloginfo = getAdobePackageInfo(mountpoint) if cataloginfo: # add some more data cataloginfo['name'] = \ cataloginfo['display_name'].replace(" ",'') cataloginfo['uninstallable'] = False cataloginfo['installer_type'] = "AdobeCS5PatchInstaller" if pkgname: cataloginfo['package_path'] = pkgname # make some installs items from the payloads installs = [] uninstalldir = "/Library/Application Support/Adobe/Uninstall" for payload in cataloginfo.get('payloads',[]): if 'AdobeCode' in payload: dbfile = payload['AdobeCode'] + ".db" filepath = os.path.join(uninstalldir, dbfile) installitem = {} installitem['path'] = filepath installitem['type'] = 'file' installs.append(installitem) cataloginfo['installs'] = installs return cataloginfo # Look for AdobeUberInstaller items (CS4 install) pkgroot = os.path.join(mountpoint, pkgname) adobeinstallxml = os.path.join(pkgroot, "AdobeUberInstaller.xml") if os.path.exists(adobeinstallxml): # this is a CS4 Enterprise Deployment package cataloginfo = getAdobePackageInfo(pkgroot) if cataloginfo: # add some more data cataloginfo['name'] = \ cataloginfo['display_name'].replace(" ",'') cataloginfo['uninstallable'] = True cataloginfo['uninstall_method'] = "AdobeUberUninstaller" cataloginfo['installer_type'] = "AdobeUberInstaller" if pkgname: cataloginfo['package_path'] = pkgname return cataloginfo # maybe this is an Adobe update DMG or CS3 installer # look for Adobe Setup.app setuppath = findSetupApp(mountpoint) if setuppath: cataloginfo = getAdobeSetupInfo(mountpoint) if cataloginfo: # add some more data cataloginfo['name'] = \ cataloginfo['display_name'].replace(" ",'') cataloginfo['installer_type'] = "AdobeSetup" if cataloginfo.get('AdobeSetupType') == "ProductInstall": cataloginfo['uninstallable'] = True cataloginfo['uninstall_method'] = "AdobeSetup" else: cataloginfo['description'] = "Adobe updater" cataloginfo['uninstallable'] = False cataloginfo['update_for'] = ["PleaseEditMe-1.0.0.0.0"] return cataloginfo # maybe this is an Adobe Acrobat 9 Pro patcher? acrobatpatcherapp = findAcrobatPatchApp(mountpoint) if acrobatpatcherapp: cataloginfo = {} cataloginfo['installer_type'] = "AdobeAcrobatUpdater" cataloginfo['uninstallable'] = False pl = getBundleInfo(acrobatpatcherapp) cataloginfo['version'] = munkicommon.getVersionString(pl) cataloginfo['name'] = "AcrobatPro9Update" cataloginfo['display_name'] = "Adobe Acrobat Pro Update" cataloginfo['update_for'] = ["AcrobatPro9"] cataloginfo['RestartAction'] = 'RequireLogout' cataloginfo['requires'] = [] cataloginfo['installs'] = \ [{'CFBundleIdentifier': 'com.adobe.Acrobat.Pro', 'CFBundleName': 'Acrobat', 'CFBundleShortVersionString': cataloginfo['version'], 'path': '/Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app', 'type': 'application'}] return cataloginfo # didn't find any Adobe installers/updaters we understand return None | d017f8be802d57d1f1e35025b468e64fd1d43ce9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/d017f8be802d57d1f1e35025b468e64fd1d43ce9/adobeutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1871,
947,
73,
9769,
966,
12,
4778,
1153,
16,
29348,
1546,
6,
4672,
9163,
6668,
635,
29796,
881,
14931,
1376,
358,
1361,
3475,
1376,
501,
364,
4052,
947,
73,
3799,
414,
19,
416,
3404,
414,
26418,
225,
468,
2324,
364,
4052,
947,
73,
6733,
1318,
261,
37,
1642,
41,
16050,
13,
6314,
4181,
273,
1104,
1871,
947,
73,
6733,
1318,
12,
4778,
1153,
13,
309,
6314,
4181,
30,
17803,
273,
1140,
18,
803,
18,
12287,
12,
21704,
4181,
13,
6222,
1376,
273,
336,
1871,
947,
73,
2261,
966,
12,
1214,
803,
13,
309,
6222,
1376,
30,
468,
527,
2690,
1898,
501,
6222,
1376,
3292,
529,
3546,
273,
521,
6222,
1376,
3292,
5417,
67,
529,
29489,
2079,
2932,
3104,
11,
6134,
6222,
1376,
3292,
28872,
429,
3546,
273,
1053,
6222,
1376,
3292,
28872,
67,
2039,
3546,
273,
315,
1871,
947,
73,
4596,
25,
37,
1642,
41,
2261,
6,
6222,
1376,
3292,
20163,
67,
723,
3546,
273,
315,
1871,
947,
73,
4596,
25,
37,
1642,
41,
2261,
6,
6222,
1376,
3292,
15903,
67,
538,
67,
1589,
3546,
273,
315,
2163,
18,
25,
18,
20,
6,
6222,
1376,
3292,
361,
947,
73,
67,
5425,
67,
1376,
3546,
273,
336,
1871,
947,
73,
6410,
966,
12,
3799,
1214,
33,
1214,
803,
13,
6735,
1795,
724,
1231,
273,
6222,
1376,
3292,
361,
947,
73,
67,
5425,
67,
1376,
29489,
588,
12,
315,
5829,
67,
8195,
7923,
309,
6735,
1795,
724,
1231,
30,
468,
1221,
279,
805,
411,
856,
34,
5425,
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,
1871,
947,
73,
9769,
966,
12,
4778,
1153,
16,
29348,
1546,
6,
4672,
9163,
6668,
635,
29796,
881,
14931,
1376,
358,
1361,
3475,
1376,
501,
364,
4052,
947,
73,
3799,
414,
19,
416,
3404,
414,
26418,
225,
468,
2324,
364,
4052,
947,
73,
6733,
1318,
261,
37,
1642,
41,
16050,
13,
6314,
4181,
273,
1104,
1871,
947,
73,
6733,
1318,
12,
4778,
1153,
13,
309,
6314,
4181,
30,
17803,
273,
1140,
18,
803,
18,
12287,
12,
21704,
4181,
13,
6222,
1376,
273,
336,
1871,
947,
73,
2261,
966,
12,
1214,
803,
13,
309,
6222,
1376,
30,
468,
527,
2690,
1898,
501,
6222,
1376,
3292,
529,
3546,
273,
521,
6222,
1376,
3292,
5417,
67,
529,
29489,
2079,
2932,
2
] |
dnode=None | dnode = None metakey = '' | def parse_text(request, page, text): pagename = page.page_name from copy import copy newreq = copy(request) newreq.cfg = copy(request.cfg) newreq.page = lcpage = LinkCollectingPage(newreq, pagename, text) newreq.theme = copy(request.theme) newreq.theme.request = newreq newreq.theme.cfg = newreq.cfg parserclass = importPlugin(request.cfg, "parser", 'link_collect', "Parser") import MoinMoin.wikiutil as wikiutil myformatter = wikiutil.importPlugin(request.cfg, "formatter", 'nullformatter', "Formatter") lcpage.formatter = myformatter(newreq) lcpage.formatter.page = lcpage p = parserclass(lcpage.get_raw_body(), newreq, formatter=lcpage.formatter) lcpage.parser = p lcpage.format(p) # These are the match types that really should be noted linktypes = ["wikiname_bracket", "word", "interwiki", "url", "url_bracket"] new_data = {} # Add the page categories as links too categories, _, _ = parse_categories(request, text) # Process ACL:s pi, _ = get_processing_instructions(text) for verb, args in pi: if verb == u'acl': # Add all ACL:s on multiple lines to an one-lines acls = new_data.get(pagename, dict()).get('acl', '') acls = acls.strip() + args new_data.setdefault(pagename, dict())['acl'] = acls for metakey, value in p.definitions.iteritems(): for type, item in value: # print metakey, type, item dnode=None if type in ['url', 'wikilink', 'interwiki', 'email']: dnode = item[1] hit = item[0] elif type == 'category': # print "adding cat", item, repr(categories) dnode = item hit = item if item in categories: add_link(new_data, pagename, dnode, u"gwikicategory") elif type == 'meta': add_meta(new_data, pagename, (metakey, item)) elif type == 'include': # No support for regexp includes, for now! if not item[0].startswith("^"): dnode = wikiutil.AbsPageName(pagename, item[0]) metakey = 'gwikiinclude' if dnode: add_link(new_data, pagename, dnode, metakey) return new_data | 5234004c3db3b197814e7217821897ae9cf97cb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/5234004c3db3b197814e7217821897ae9cf97cb4/savegraphdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
955,
12,
2293,
16,
1363,
16,
977,
4672,
4262,
1069,
273,
1363,
18,
2433,
67,
529,
225,
628,
1610,
1930,
1610,
394,
3658,
273,
1610,
12,
2293,
13,
394,
3658,
18,
7066,
273,
1610,
12,
2293,
18,
7066,
13,
394,
3658,
18,
2433,
273,
9109,
2433,
273,
4048,
10808,
310,
1964,
12,
2704,
3658,
16,
4262,
1069,
16,
977,
13,
394,
3658,
18,
7997,
273,
1610,
12,
2293,
18,
7997,
13,
394,
3658,
18,
7997,
18,
2293,
273,
394,
3658,
394,
3658,
18,
7997,
18,
7066,
273,
394,
3658,
18,
7066,
2082,
1106,
273,
1930,
3773,
12,
2293,
18,
7066,
16,
315,
4288,
3113,
296,
1232,
67,
14676,
2187,
315,
2678,
7923,
1930,
490,
885,
49,
885,
18,
13044,
1367,
487,
9050,
1367,
3399,
12354,
273,
9050,
1367,
18,
5666,
3773,
12,
2293,
18,
7066,
16,
315,
12354,
3113,
296,
2011,
12354,
2187,
315,
5074,
7923,
9109,
2433,
18,
12354,
273,
3399,
12354,
12,
2704,
3658,
13,
9109,
2433,
18,
12354,
18,
2433,
273,
9109,
2433,
293,
273,
2082,
1106,
12,
17704,
2433,
18,
588,
67,
1899,
67,
3432,
9334,
394,
3658,
16,
4453,
33,
17704,
2433,
18,
12354,
13,
9109,
2433,
18,
4288,
273,
293,
9109,
2433,
18,
2139,
12,
84,
13,
225,
468,
8646,
854,
326,
845,
1953,
716,
8654,
1410,
506,
486,
329,
1692,
2352,
273,
8247,
11999,
267,
339,
67,
21025,
3113,
315,
1095,
3113,
315,
2761,
13044,
3113,
315,
718,
3113,
315,
718,
67,
21025,
11929,
225,
394,
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,
1109,
67,
955,
12,
2293,
16,
1363,
16,
977,
4672,
4262,
1069,
273,
1363,
18,
2433,
67,
529,
225,
628,
1610,
1930,
1610,
394,
3658,
273,
1610,
12,
2293,
13,
394,
3658,
18,
7066,
273,
1610,
12,
2293,
18,
7066,
13,
394,
3658,
18,
2433,
273,
9109,
2433,
273,
4048,
10808,
310,
1964,
12,
2704,
3658,
16,
4262,
1069,
16,
977,
13,
394,
3658,
18,
7997,
273,
1610,
12,
2293,
18,
7997,
13,
394,
3658,
18,
7997,
18,
2293,
273,
394,
3658,
394,
3658,
18,
7997,
18,
7066,
273,
394,
3658,
18,
7066,
2082,
1106,
273,
1930,
3773,
12,
2293,
18,
7066,
16,
315,
4288,
3113,
296,
1232,
67,
14676,
2187,
315,
2678,
7923,
1930,
490,
885,
49,
2
] |
self.notify.debug("delayDeleteCount for doId %s now 0" % (self.doId)) | assert(self.notify.debug("delayDeleteCount for doId %s now 0" % (self.doId))) | def delayDelete(self, flag): # Flag should be 0 or 1, meaning increment or decrement count # Also see DelayDelete.py | 4661ac427c38464e5c9cefaa283687baf3f33af3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/4661ac427c38464e5c9cefaa283687baf3f33af3/DistributedObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4624,
2613,
12,
2890,
16,
2982,
4672,
468,
9960,
1410,
506,
374,
578,
404,
16,
12256,
5504,
578,
15267,
1056,
468,
8080,
2621,
20165,
2613,
18,
2074,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4624,
2613,
12,
2890,
16,
2982,
4672,
468,
9960,
1410,
506,
374,
578,
404,
16,
12256,
5504,
578,
15267,
1056,
468,
8080,
2621,
20165,
2613,
18,
2074,
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
] |
length = len(self.lines) - self.hei - 1 | length = len(self.lines) - self.hei | def move(self, relative=0, absolute=None, pages=False): i = self.scroll_begin if isinstance(absolute, int): i = absolute | c0602b62bb3e097172e19f78a7429b8205acd799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/c0602b62bb3e097172e19f78a7429b8205acd799/pager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
3632,
33,
20,
16,
4967,
33,
7036,
16,
4689,
33,
8381,
4672,
277,
273,
365,
18,
12033,
67,
10086,
309,
1549,
12,
12547,
16,
509,
4672,
277,
273,
4967,
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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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,
3635,
12,
2890,
16,
3632,
33,
20,
16,
4967,
33,
7036,
16,
4689,
33,
8381,
4672,
277,
273,
365,
18,
12033,
67,
10086,
309,
1549,
12,
12547,
16,
509,
4672,
277,
273,
4967,
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
] |
oldTime = date.LIGOTimeGPS(trigger.end_time,trigger.end_time_ns) ringIdx = rings.find(oldTime) ring = rings[ringIdx] if ringIdx == len(rings): print >> sys.stderr, "DireErrorAboutRounding" sys.exit(1) assert trigger.end_time in ring newTime = slideTimeOnRing(oldTime, shifts[trigger.ifo], ring) trigger.end_time = newTime.seconds trigger.end_time_ns = newTime.nanoseconds | end_time = trigger.get_end() trigger.set_end(slideTimeOnRing(end_time, shifts[trigger.ifo], rings[rings.find(end_time)])) | def slideTriggersOnRings(triggerList, rings, shifts): """ In-place modify trigger_list so that triggers are slid by appropriate value of shifts along their enclosing ring segment by the algorithm given in XXX. This function calls the function slideTimeOnRing @param triggerList: a SnglInspiralTable @param rings: sorted segment list of possible rings @param shifts: a dictionary of the time-shifts keyed by IFO """ for trigger in triggerList: oldTime = date.LIGOTimeGPS(trigger.end_time,trigger.end_time_ns) ringIdx = rings.find(oldTime) ring = rings[ringIdx] # check that trigger was represented in rings, actually if ringIdx == len(rings): print >> sys.stderr, "DireErrorAboutRounding" sys.exit(1) # algorithm sanity check: trigger in chosen ring assert trigger.end_time in ring newTime = slideTimeOnRing(oldTime, shifts[trigger.ifo], ring) trigger.end_time = newTime.seconds trigger.end_time_ns = newTime.nanoseconds | 0940c03f9577a1fa78504cf2da9aedf1e61e59a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/0940c03f9577a1fa78504cf2da9aedf1e61e59a8/SnglInspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12701,
15114,
1398,
54,
899,
12,
10668,
682,
16,
26537,
16,
27552,
4672,
3536,
657,
17,
964,
5612,
3080,
67,
1098,
1427,
716,
11752,
854,
2020,
350,
635,
5505,
460,
434,
27552,
7563,
3675,
16307,
9221,
3267,
635,
326,
4886,
864,
316,
11329,
18,
1220,
445,
4097,
326,
445,
12701,
950,
1398,
10369,
225,
632,
891,
3080,
682,
30,
279,
348,
3368,
80,
382,
1752,
481,
287,
1388,
632,
891,
26537,
30,
4202,
3115,
3267,
666,
434,
3323,
26537,
632,
891,
27552,
30,
1377,
279,
3880,
434,
326,
813,
17,
4012,
87,
17408,
635,
467,
3313,
3536,
364,
3080,
316,
3080,
682,
30,
1592,
950,
273,
1509,
18,
2053,
16387,
950,
28983,
12,
10668,
18,
409,
67,
957,
16,
10668,
18,
409,
67,
957,
67,
2387,
13,
9221,
4223,
273,
26537,
18,
4720,
12,
1673,
950,
13,
9221,
273,
26537,
63,
8022,
4223,
65,
225,
468,
866,
716,
3080,
1703,
10584,
316,
26537,
16,
6013,
309,
9221,
4223,
422,
562,
12,
86,
899,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
40,
577,
668,
24813,
11066,
310,
6,
2589,
18,
8593,
12,
21,
13,
468,
4886,
16267,
866,
30,
3080,
316,
10447,
9221,
1815,
3080,
18,
409,
67,
957,
316,
9221,
225,
394,
950,
273,
12701,
950,
1398,
10369,
12,
1673,
950,
16,
27552,
63,
10668,
18,
20299,
6487,
9221,
13,
3080,
18,
409,
67,
957,
273,
394,
950,
18,
7572,
3080,
18,
409,
67,
957,
67,
2387,
273,
394,
950,
18,
13569,
23272,
282,
2,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12701,
15114,
1398,
54,
899,
12,
10668,
682,
16,
26537,
16,
27552,
4672,
3536,
657,
17,
964,
5612,
3080,
67,
1098,
1427,
716,
11752,
854,
2020,
350,
635,
5505,
460,
434,
27552,
7563,
3675,
16307,
9221,
3267,
635,
326,
4886,
864,
316,
11329,
18,
1220,
445,
4097,
326,
445,
12701,
950,
1398,
10369,
225,
632,
891,
3080,
682,
30,
279,
348,
3368,
80,
382,
1752,
481,
287,
1388,
632,
891,
26537,
30,
4202,
3115,
3267,
666,
434,
3323,
26537,
632,
891,
27552,
30,
1377,
279,
3880,
434,
326,
813,
17,
4012,
87,
17408,
635,
467,
3313,
3536,
364,
3080,
316,
3080,
682,
30,
1592,
950,
273,
1509,
18,
2053,
16387,
950,
28983,
12,
10668,
18,
409,
67,
957,
2
] |
tmp = [os.path.join(root, file) for file in files \ if datafile_re.match(file, 1)] | tmp = [os.path.join(root, file) for file in files if datafile_re.match(file, 1)] | def setup(**kwargs): if kwargs.has_key("classifiers"): del kwargs["classifiers"] _setup(**kwargs) | 1b1718d095f7d460c310af35df3dca3ad640296c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/1b1718d095f7d460c310af35df3dca3ad640296c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
636,
4333,
4672,
309,
1205,
18,
5332,
67,
856,
2932,
1106,
3383,
6,
4672,
1464,
1205,
9614,
1106,
3383,
11929,
389,
8401,
12,
636,
4333,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
636,
4333,
4672,
309,
1205,
18,
5332,
67,
856,
2932,
1106,
3383,
6,
4672,
1464,
1205,
9614,
1106,
3383,
11929,
389,
8401,
12,
636,
4333,
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
] |
node.appendChild(doc.createTextNode(str(self.__dict__[attr]))) | node.appendChild(doc.createTextNode(str(value))) | def toxml(self): doc = getDOMImplementation().createDocument(None, 'person', None) person = doc.documentElement #person.setAttribute('xmlns', "FIXME") for attr in attributes: if attr == 'friends': friends = doc.createElement(attr) person.appendChild(friends) for friend in self.__dict__[attr]: node = doc.createElement('friend') node.appendChild(doc.createTextNode(friend)) friends.appendChild(node) else: node = doc.createElement(attr) node.appendChild(doc.createTextNode(str(self.__dict__[attr]))) person.appendChild(node) return doc | 9d0c9f8bcde0ddb05b911961b6e66feb2ebcfaf4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2682/9d0c9f8bcde0ddb05b911961b6e66feb2ebcfaf4/foaf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
2902,
12,
2890,
4672,
997,
225,
273,
2343,
1872,
13621,
7675,
2640,
2519,
12,
7036,
16,
296,
12479,
2187,
599,
13,
6175,
273,
997,
18,
5457,
1046,
468,
12479,
18,
542,
1499,
2668,
16741,
2187,
315,
25810,
7923,
225,
364,
1604,
316,
1677,
30,
309,
1604,
422,
296,
74,
22259,
4278,
284,
22259,
273,
997,
18,
2640,
1046,
12,
1747,
13,
6175,
18,
6923,
1763,
12,
74,
22259,
13,
364,
24271,
316,
365,
16186,
1576,
972,
63,
1747,
14542,
756,
273,
997,
18,
2640,
1046,
2668,
74,
7522,
6134,
756,
18,
6923,
1763,
12,
2434,
18,
2640,
17299,
12,
74,
7522,
3719,
284,
22259,
18,
6923,
1763,
12,
2159,
13,
469,
30,
756,
273,
997,
18,
2640,
1046,
12,
1747,
13,
756,
18,
6923,
1763,
12,
2434,
18,
2640,
17299,
12,
701,
12,
1132,
20349,
6175,
18,
6923,
1763,
12,
2159,
13,
225,
327,
997,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
2902,
12,
2890,
4672,
997,
225,
273,
2343,
1872,
13621,
7675,
2640,
2519,
12,
7036,
16,
296,
12479,
2187,
599,
13,
6175,
273,
997,
18,
5457,
1046,
468,
12479,
18,
542,
1499,
2668,
16741,
2187,
315,
25810,
7923,
225,
364,
1604,
316,
1677,
30,
309,
1604,
422,
296,
74,
22259,
4278,
284,
22259,
273,
997,
18,
2640,
1046,
12,
1747,
13,
6175,
18,
6923,
1763,
12,
74,
22259,
13,
364,
24271,
316,
365,
16186,
1576,
972,
63,
1747,
14542,
756,
273,
997,
18,
2640,
1046,
2668,
74,
7522,
6134,
756,
18,
6923,
1763,
12,
2434,
18,
2640,
17299,
12,
74,
7522,
3719,
284,
22259,
18,
6923,
1763,
12,
2159,
13,
469,
30,
756,
273,
997,
18,
2640,
2
] |
class _Nothing: pass | def getAdapter(obj, interfaceClass, default=_default, adapterClassLocator=None): """Return an object that implements the given interface. The result will be a wrapper around the object passed as a paramter, or the parameter itself if it already implements the interface. If no adapter can be found, the 'default' parameter will be returned. """ if hasattr(obj, '__class__'): klas = obj.__class__ else: klas = type(obj) if implements(obj, interfaceClass): return obj adapterClass = ( adapterClassLocator or getAdapterClass )( klas, interfaceClass, None ) if adapterClass is None: if default is _default: raise NotImplementedError('%s instance does not implement %s, and ' 'there is no registered adapter.' % (obj, interfaceClass)) return default else: return adapterClass(obj) | 3e2d62bace8f4775ead23ef736309a0e08f49caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3e2d62bace8f4775ead23ef736309a0e08f49caf/components.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16679,
12,
2603,
16,
1560,
797,
16,
805,
33,
67,
1886,
16,
4516,
797,
5786,
33,
7036,
4672,
3536,
990,
392,
733,
716,
4792,
326,
864,
1560,
18,
225,
1021,
563,
903,
506,
279,
4053,
6740,
326,
733,
2275,
487,
279,
579,
387,
16,
578,
326,
1569,
6174,
309,
518,
1818,
4792,
326,
1560,
18,
971,
1158,
4516,
848,
506,
1392,
16,
326,
296,
1886,
11,
1569,
903,
506,
2106,
18,
3536,
309,
3859,
12,
2603,
16,
4940,
1106,
7250,
4672,
417,
9521,
273,
1081,
16186,
1106,
972,
469,
30,
417,
9521,
273,
618,
12,
2603,
13,
225,
309,
4792,
12,
2603,
16,
1560,
797,
4672,
327,
1081,
4516,
797,
273,
225,
261,
4516,
797,
5786,
578,
16679,
797,
262,
12,
417,
9521,
16,
1560,
797,
16,
599,
262,
309,
4516,
797,
353,
599,
30,
309,
805,
353,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16679,
12,
2603,
16,
1560,
797,
16,
805,
33,
67,
1886,
16,
4516,
797,
5786,
33,
7036,
4672,
3536,
990,
392,
733,
716,
4792,
326,
864,
1560,
18,
225,
1021,
563,
903,
506,
279,
4053,
6740,
326,
733,
2275,
487,
279,
579,
387,
16,
578,
326,
1569,
6174,
309,
518,
1818,
4792,
326,
1560,
18,
971,
1158,
4516,
848,
506,
1392,
16,
326,
296,
1886,
11,
1569,
903,
506,
2106,
18,
3536,
309,
3859,
12,
2603,
16,
4940,
1106,
7250,
4672,
417,
9521,
273,
1081,
16186,
1106,
972,
469,
30,
417,
9521,
273,
618,
12,
2603,
13,
225,
309,
4792,
12,
2603,
16,
1560,
797,
4672,
327,
1081,
4516,
797,
273,
225,
261,
4516,
797,
5786,
578,
16679,
2
] |
|
else: self.actualFeed.update() finally: self.endRead() | finally: self.endRead() self.actualFeed.update() | def update(self): self.beginRead() try: if self.loading: return elif self.errorState: self.loading = True self.errorState = False self.beginChange() self.endChange() thread = Thread(target=lambda: self.generateFeed()) thread.setDaemon(False) thread.start() return else: self.actualFeed.update() finally: self.endRead() | 9a02e48f266b55f9dbcff07583f864988f8778a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/9a02e48f266b55f9dbcff07583f864988f8778a0/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
365,
18,
10086,
1994,
1435,
775,
30,
309,
365,
18,
15174,
30,
327,
1327,
365,
18,
1636,
1119,
30,
365,
18,
15174,
273,
1053,
365,
18,
1636,
1119,
273,
1083,
365,
18,
10086,
3043,
1435,
365,
18,
409,
3043,
1435,
2650,
273,
4884,
12,
3299,
33,
14661,
30,
365,
18,
7163,
8141,
10756,
2650,
18,
542,
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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,
1089,
12,
2890,
4672,
365,
18,
10086,
1994,
1435,
775,
30,
309,
365,
18,
15174,
30,
327,
1327,
365,
18,
1636,
1119,
30,
365,
18,
15174,
273,
1053,
365,
18,
1636,
1119,
273,
1083,
365,
18,
10086,
3043,
1435,
365,
18,
409,
3043,
1435,
2650,
273,
4884,
12,
3299,
33,
14661,
30,
365,
18,
7163,
8141,
10756,
2650,
18,
542,
12858,
12,
8381,
13,
2650,
18,
1937,
1435,
327,
469,
30,
365,
18,
18672,
8141,
18,
2725,
1435,
3095,
30,
365,
18,
409,
1994,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.