rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
jia = argmax(abs(c[inact_set])) j = inact_set[jia] C = c[j]
|
def lars(X, y): # n is the number of variables, p is the number of "predictors" or # basis vectors # the predictors are assumed to be standardized and y is centered. # in the example of the prostate data n would be the number n,p = X.shape mu = zeros(n) act_set = [] inact_set = range(p) k = 0 vs = 0 nvs = min(n-1,p) beta = zeros((2*nvs,p)) maxiter = nvs * 8 # initial cholesky decomposition of the gram matrix R = zeros((0,0)) while vs < nvs and k < maxiter: print "new iteration: vs = ", vs, " nvs = ", nvs, " k = ", k print "mu.shape = ", mu.shape #print "mu = ", mu # compute correlation with inactive set # and element that has the maximum correlation c = dot(X.T, y - mu) #c = c.reshape(1,len(c)) jia = argmax(abs(c[inact_set])) j = inact_set[jia] C = c[j] print "predictor ", j, " max corr with w/ current residual: ", C print "adding ", j, " to active set" print "R shape before insert: ", R.shape # add the most correlated predictor to the active set R = cholinsert(R,X[:,j],X[:,act_set]) act_set.append(j) inact_set.remove(j) vs += 1 print "R shape after insert ", R.shape print "active set = ", act_set print "inactive set = ", inact_set # get the signs of the correlations s = sign(c[act_set]) s = s.reshape(len(s),1) #print "R.shape = ", R.shape #print "s.shape = ", s.shape # move in the direction of the least squares solution GA1 = solve(R,solve(R.T, s)) AA = 1/sqrt(sum(GA1 * s)) w = AA * GA1 # equiangular direction - this should be a unit vector print "X[:,act_set].shape = ",X[:,act_set].shape #print "w.shape = ",w.shape u = dot(X[:,act_set], w).reshape(-1) #print "norm of u = ", norm(u) #print "u.shape = ", u.shape # if this is the last iteration i.e. all variables are in the # active set, then set the step toward the full least squares # solution if vs == nvs: print "last variable going all the way to least squares solution" gamma = C / AA else: a = dot(X.T,u) a = a.reshape((len(a),)) tmp = r_[(C - c[inact_set])/(AA - a[inact_set]), (C + c[inact_set])/(AA + a[inact_set])] gamma = min(r_[tmp[tmp > 0], array([C/AA]).reshape(-1)]) mu = mu + gamma * u if beta.shape[0] < k: beta = c_[beta, zeros((beta.shape[0],))] beta[k+1,act_set] = beta[k,act_set] + gamma*w.T.reshape(-1) k += 1 return beta
|
0db785b39c36b490ef6940e674e6c7ea9ebc6107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14601/0db785b39c36b490ef6940e674e6c7ea9ebc6107/lars.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5604,
87,
12,
60,
16,
677,
4672,
468,
290,
353,
326,
1300,
434,
3152,
16,
293,
353,
326,
1300,
434,
315,
14491,
1383,
6,
578,
468,
10853,
10046,
225,
468,
326,
7810,
1383,
854,
12034,
358,
506,
4529,
1235,
471,
677,
353,
25340,
18,
225,
468,
316,
326,
3454,
434,
326,
450,
2019,
501,
290,
4102,
506,
326,
1300,
290,
16,
84,
273,
1139,
18,
4867,
225,
4129,
273,
4922,
12,
82,
13,
1328,
67,
542,
273,
5378,
316,
621,
67,
542,
273,
1048,
12,
84,
13,
225,
417,
273,
374,
6195,
273,
374,
290,
6904,
273,
1131,
12,
82,
17,
21,
16,
84,
13,
225,
6796,
273,
4922,
12443,
22,
14,
82,
6904,
16,
84,
3719,
225,
25743,
273,
290,
6904,
380,
1725,
225,
468,
2172,
462,
9112,
18465,
26288,
434,
326,
24663,
3148,
534,
273,
4922,
12443,
20,
16,
20,
3719,
225,
1323,
6195,
411,
290,
6904,
471,
417,
411,
25743,
30,
1172,
315,
2704,
6532,
30,
6195,
273,
3104,
6195,
16,
315,
290,
6904,
273,
3104,
290,
6904,
16,
315,
417,
273,
3104,
417,
1172,
315,
13297,
18,
4867,
273,
3104,
4129,
18,
4867,
468,
1188,
315,
13297,
273,
3104,
4129,
225,
468,
3671,
12603,
598,
16838,
444,
468,
471,
930,
716,
711,
326,
4207,
12603,
276,
273,
3928,
12,
60,
18,
56,
16,
677,
300,
4129,
13,
468,
71,
273,
276,
18,
1955,
1273,
12,
21,
16,
1897,
12,
71,
3719,
1172,
315,
14491,
280,
3104,
525,
16,
315,
943,
19480,
598,
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,
5604,
87,
12,
60,
16,
677,
4672,
468,
290,
353,
326,
1300,
434,
3152,
16,
293,
353,
326,
1300,
434,
315,
14491,
1383,
6,
578,
468,
10853,
10046,
225,
468,
326,
7810,
1383,
854,
12034,
358,
506,
4529,
1235,
471,
677,
353,
25340,
18,
225,
468,
316,
326,
3454,
434,
326,
450,
2019,
501,
290,
4102,
506,
326,
1300,
290,
16,
84,
273,
1139,
18,
4867,
225,
4129,
273,
4922,
12,
82,
13,
1328,
67,
542,
273,
5378,
316,
621,
67,
542,
273,
1048,
12,
84,
13,
225,
417,
273,
374,
6195,
273,
374,
290,
6904,
273,
1131,
12,
82,
17,
21,
16,
84,
13,
225,
6796,
273,
4922,
12443,
22,
14,
82,
6904,
16,
84,
3719,
225,
2
] |
|
makedirs(head, mode)
|
try: makedirs(head, mode) except OSError, e: if e.errno != EEXIST: raise
|
def makedirs(name, mode=0777): """makedirs(path [, mode=0777]) Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmost) will be created if it does not exist. This is recursive. """ head, tail = path.split(name) if not tail: head, tail = path.split(head) if head and tail and not path.exists(head): makedirs(head, mode) if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists return mkdir(name, mode)
|
13c3e26f5044f63c940ac463612ee9161b2be422 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/13c3e26f5044f63c940ac463612ee9161b2be422/os.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12151,
12,
529,
16,
1965,
33,
20,
14509,
4672,
3536,
81,
9477,
10539,
12,
803,
306,
16,
1965,
33,
20,
14509,
5717,
225,
14845,
17,
26686,
31,
752,
279,
7839,
1867,
471,
777,
12110,
5945,
18,
4147,
87,
3007,
6535,
16,
1335,
716,
1281,
12110,
589,
3267,
261,
902,
2537,
326,
2145,
10329,
13,
903,
506,
2522,
309,
518,
1552,
486,
1005,
18,
225,
1220,
353,
5904,
18,
225,
3536,
910,
16,
5798,
273,
589,
18,
4939,
12,
529,
13,
309,
486,
5798,
30,
910,
16,
5798,
273,
589,
18,
4939,
12,
1978,
13,
309,
910,
471,
5798,
471,
486,
589,
18,
1808,
12,
1978,
4672,
775,
30,
12151,
12,
1978,
16,
1965,
13,
1335,
10002,
16,
425,
30,
225,
309,
425,
18,
19088,
480,
512,
11838,
30,
1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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,
12151,
12,
529,
16,
1965,
33,
20,
14509,
4672,
3536,
81,
9477,
10539,
12,
803,
306,
16,
1965,
33,
20,
14509,
5717,
225,
14845,
17,
26686,
31,
752,
279,
7839,
1867,
471,
777,
12110,
5945,
18,
4147,
87,
3007,
6535,
16,
1335,
716,
1281,
12110,
589,
3267,
261,
902,
2537,
326,
2145,
10329,
13,
903,
506,
2522,
309,
518,
1552,
486,
1005,
18,
225,
1220,
353,
5904,
18,
225,
3536,
910,
16,
5798,
273,
589,
18,
4939,
12,
529,
13,
309,
486,
5798,
30,
910,
16,
5798,
273,
589,
18,
4939,
12,
1978,
13,
309,
910,
471,
5798,
471,
486,
589,
18,
1808,
12,
1978,
4672,
775,
30,
12151,
12,
1978,
16,
1965,
13,
1335,
10002,
16,
425,
2
] |
'unknown reason: %s' % e)
|
'unknown reason: %s' % str(e))
|
def initialize(self): """ Gets path of kvm_stat and verifies if debugfs needs to be mounted. """ self.stat_path = os_dep.command('kvm_stat') try: utils.system_output("%s --batch" % self.stat_path) except error.CmdError, e: if 'debugfs' in e: utils.system('mount -t debugfs debugfs /sys/kernel/debug') else: raise error.AutotestError('kvm_stat failed due to an ' 'unknown reason: %s' % e)
|
36f6c3fa12f1665f8c599360237beeadf4820d20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/36f6c3fa12f1665f8c599360237beeadf4820d20/kvm_stat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
3536,
11881,
589,
434,
417,
3489,
67,
5642,
471,
20761,
309,
1198,
2556,
4260,
358,
506,
20919,
18,
3536,
365,
18,
5642,
67,
803,
273,
1140,
67,
15037,
18,
3076,
2668,
79,
3489,
67,
5642,
6134,
775,
30,
2990,
18,
4299,
67,
2844,
27188,
87,
1493,
5303,
6,
738,
365,
18,
5642,
67,
803,
13,
1335,
555,
18,
5931,
668,
16,
425,
30,
309,
296,
4148,
2556,
11,
316,
425,
30,
2990,
18,
4299,
2668,
4778,
300,
88,
1198,
2556,
1198,
2556,
342,
9499,
19,
8111,
19,
4148,
6134,
469,
30,
1002,
555,
18,
7150,
352,
395,
668,
2668,
79,
3489,
67,
5642,
2535,
6541,
358,
392,
296,
296,
8172,
3971,
30,
738,
87,
11,
738,
425,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
3536,
11881,
589,
434,
417,
3489,
67,
5642,
471,
20761,
309,
1198,
2556,
4260,
358,
506,
20919,
18,
3536,
365,
18,
5642,
67,
803,
273,
1140,
67,
15037,
18,
3076,
2668,
79,
3489,
67,
5642,
6134,
775,
30,
2990,
18,
4299,
67,
2844,
27188,
87,
1493,
5303,
6,
738,
365,
18,
5642,
67,
803,
13,
1335,
555,
18,
5931,
668,
16,
425,
30,
309,
296,
4148,
2556,
11,
316,
425,
30,
2990,
18,
4299,
2668,
4778,
300,
88,
1198,
2556,
1198,
2556,
342,
9499,
19,
8111,
19,
4148,
6134,
469,
30,
1002,
555,
18,
7150,
352,
395,
668,
2668,
79,
3489,
67,
5642,
2535,
6541,
358,
392,
296,
296,
8172,
3971,
30,
738,
87,
2
] |
elif algorithm == 'bober':
|
if not k is None: raise ValueError, "only the GAP algorithm works if k is specified." if algorithm == 'default' and k is None: return partitions_ext.number_of_partitions(n) elif algorithm == 'bober' and k is None:
|
def number_of_partitions(n,k=None, algorithm='bober'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'bober') 'bober' -- use Jonathon Bober's implementation (*very* fast, but new and not well tested yet). 'gap' -- use GAP (VERY *slow*) 'pari' -- use PARI. Speed seems the same as GAP until $n$ is in the thousands, in which case PARI is faster. *But* PARI has a bug, e.g., on 64-bit Linux PARI-2.3.2 outputs numbpart(147007)%1000 as 536, but it should be 533!. So do not use this option. IMPLEMENTATION: Wraps GAP's NrPartitions or PARI's numbpart function. Use the function \code{partitions(n)} to return a generator over all partitions of $n$. It is possible to associate with every partition of the integer n a conjugacy class of permutations in the symmetric group on n points and vice versa. Therefore p(n) = NrPartitions(n) is the number of conjugacy classes of the symmetric group on n points. EXAMPLES: sage: v = list(partitions(5)); v [(1, 1, 1, 1, 1), (1, 1, 1, 2), (1, 2, 2), (1, 1, 3), (2, 3), (1, 4), (5,)] sage: len(v) 7 sage: number_of_partitions(5, algorithm='gap') 7 sage: number_of_partitions(5, algorithm='pari') 7 sage: number_of_partitions(5, algorithm='bober') 7 The input must be a nonnegative integer or a ValueError is raised. sage: number_of_partitions(-5) Traceback (most recent call last): ... ValueError: n (=-5) must be a nonnegative integer sage: number_of_partitions(10,2) 5 sage: number_of_partitions(10) 42 sage: number_of_partitions(3) 3 sage: number_of_partitions(10) 42 sage: number_of_partitions(3, algorithm='pari') 3 sage: number_of_partitions(10, algorithm='pari') 42 sage: number_of_partitions(40) 37338 sage: number_of_partitions(100) 190569292 A generating function for p(n) is given by the reciprocal of Euler's function: \[ \sum_{n=0}^\infty p(n)x^n = \prod_{k=1}^\infty \left(\frac {1}{1-x^k} \right). \] We use SAGE to verify that the first several coefficients do instead agree: sage: q = PowerSeriesRing(QQ, 'q', default_prec=9).gen() sage: prod([(1-q^k)^(-1) for k in range(1,9)]) ## partial product of 1 + q + 2*q^2 + 3*q^3 + 5*q^4 + 7*q^5 + 11*q^6 + 15*q^7 + 22*q^8 + O(q^9) sage: [number_of_partitions(k) for k in range(2,10)] [2, 3, 5, 7, 11, 15, 22, 30] REFERENCES: http://en.wikipedia.org/wiki/Partition_%28number_theory%29 """ n = ZZ(n) if n < 0: raise ValueError, "n (=%s) must be a nonnegative integer"%n elif n == 0: return ZZ(1) if algorithm == 'gap': if k==None: ans=gap.eval("NrPartitions(%s)"%(ZZ(n))) else: ans=gap.eval("NrPartitions(%s,%s)"%(ZZ(n),ZZ(k))) return ZZ(ans) elif algorithm == 'bober': return partitions_ext.number_of_partitions(n) elif algorithm == 'pari': if not k is None: raise ValueError, "cannot specify second argument k if the algorithm is PARI" return ZZ(pari(ZZ(n)).numbpart()) raise ValueError, "unknown algorithm '%s'"%algorithm
|
6fc233ff2f5f18427811c02a46bab2f018e15c3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/6fc233ff2f5f18427811c02a46bab2f018e15c3f/combinat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
792,
67,
21275,
12,
82,
16,
79,
33,
7036,
16,
4886,
2218,
1075,
744,
11,
4672,
436,
8395,
2860,
326,
963,
434,
10060,
67,
1098,
12,
82,
16,
79,
2934,
225,
12943,
30,
290,
1493,
392,
3571,
417,
1493,
261,
1886,
30,
599,
1769,
309,
1269,
16,
3560,
1135,
326,
14379,
434,
326,
444,
434,
777,
261,
318,
9885,
13,
10060,
434,
326,
6895,
3571,
290,
1368,
26608,
598,
417,
2142,
889,
87,
18,
4886,
1493,
261,
1886,
30,
296,
1075,
744,
6134,
296,
1075,
744,
11,
1493,
999,
804,
265,
29900,
17980,
744,
1807,
4471,
261,
14,
3242,
14,
4797,
16,
1496,
394,
471,
486,
5492,
18432,
4671,
2934,
296,
14048,
11,
1493,
999,
611,
2203,
261,
17529,
380,
87,
821,
12437,
296,
1065,
77,
11,
1493,
999,
3939,
45,
18,
225,
348,
5868,
12001,
326,
1967,
487,
611,
2203,
3180,
271,
82,
8,
353,
316,
326,
286,
24810,
16,
316,
1492,
648,
3939,
45,
353,
12063,
18,
380,
31167,
14,
3939,
45,
711,
279,
7934,
16,
425,
18,
75,
12990,
603,
5178,
17,
3682,
13318,
3939,
45,
17,
22,
18,
23,
18,
22,
6729,
818,
70,
2680,
12,
3461,
26874,
27,
13,
9,
18088,
487,
1381,
5718,
16,
1496,
518,
1410,
506,
1381,
3707,
5,
18,
225,
6155,
741,
486,
999,
333,
1456,
18,
225,
15694,
7618,
2689,
30,
678,
7506,
611,
2203,
1807,
423,
86,
13738,
578,
3939,
45,
1807,
818,
70,
2680,
445,
18,
225,
2672,
326,
445,
521,
710,
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,
1300,
67,
792,
67,
21275,
12,
82,
16,
79,
33,
7036,
16,
4886,
2218,
1075,
744,
11,
4672,
436,
8395,
2860,
326,
963,
434,
10060,
67,
1098,
12,
82,
16,
79,
2934,
225,
12943,
30,
290,
1493,
392,
3571,
417,
1493,
261,
1886,
30,
599,
1769,
309,
1269,
16,
3560,
1135,
326,
14379,
434,
326,
444,
434,
777,
261,
318,
9885,
13,
10060,
434,
326,
6895,
3571,
290,
1368,
26608,
598,
417,
2142,
889,
87,
18,
4886,
1493,
261,
1886,
30,
296,
1075,
744,
6134,
296,
1075,
744,
11,
1493,
999,
804,
265,
29900,
17980,
744,
1807,
4471,
261,
14,
3242,
14,
4797,
16,
1496,
394,
471,
486,
5492,
18432,
4671,
2934,
296,
14048,
11,
1493,
999,
611,
2
] |
args = (type(self).__name__, self._testMethodName, self._event_count, event_count)
|
args = (type(self).__name__, self.testname, self._event_count, event_count)
|
def tearDown(self): if hasattr(self, '_timer'): self._timer.cancel() hub = gevent.hub.get_hub() if self._switch_count is not None and hasattr(hub, 'switch_count'): msg = '' if hub.switch_count < self._switch_count: msg = 'hub.switch_count decreased?\n' elif hub.switch_count == self._switch_count: if self.switch_expected: msg = '%s.%s did not switch\n' % (type(self).__name__, self.testname) elif hub.switch_count > self._switch_count: if not self.switch_expected: msg = '%s.%s switched but expected not to\n' % (type(self).__name__, self.testname) if msg: print >> sys.stderr, 'WARNING: ' + msg
|
810431d1aaac434cccd2b8252045cab1089b5cbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/810431d1aaac434cccd2b8252045cab1089b5cbb/greentest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
2070,
12542,
11,
4672,
365,
6315,
12542,
18,
10996,
1435,
11891,
273,
314,
2575,
18,
14986,
18,
588,
67,
14986,
1435,
309,
365,
6315,
9610,
67,
1883,
353,
486,
599,
471,
3859,
12,
14986,
16,
296,
9610,
67,
1883,
11,
4672,
1234,
273,
875,
309,
11891,
18,
9610,
67,
1883,
411,
365,
6315,
9610,
67,
1883,
30,
1234,
273,
296,
14986,
18,
9610,
67,
1883,
23850,
8905,
10936,
82,
11,
1327,
11891,
18,
9610,
67,
1883,
422,
365,
6315,
9610,
67,
1883,
30,
309,
365,
18,
9610,
67,
3825,
30,
1234,
273,
1995,
87,
7866,
87,
5061,
486,
1620,
64,
82,
11,
738,
261,
723,
12,
2890,
2934,
972,
529,
972,
16,
365,
18,
3813,
529,
13,
1327,
11891,
18,
9610,
67,
1883,
405,
365,
6315,
9610,
67,
1883,
30,
309,
486,
365,
18,
9610,
67,
3825,
30,
1234,
273,
1995,
87,
7866,
87,
31665,
1496,
2665,
486,
358,
64,
82,
11,
738,
261,
723,
12,
2890,
2934,
972,
529,
972,
16,
365,
18,
3813,
529,
13,
309,
1234,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
9511,
30,
296,
397,
1234,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
2070,
12542,
11,
4672,
365,
6315,
12542,
18,
10996,
1435,
11891,
273,
314,
2575,
18,
14986,
18,
588,
67,
14986,
1435,
309,
365,
6315,
9610,
67,
1883,
353,
486,
599,
471,
3859,
12,
14986,
16,
296,
9610,
67,
1883,
11,
4672,
1234,
273,
875,
309,
11891,
18,
9610,
67,
1883,
411,
365,
6315,
9610,
67,
1883,
30,
1234,
273,
296,
14986,
18,
9610,
67,
1883,
23850,
8905,
10936,
82,
11,
1327,
11891,
18,
9610,
67,
1883,
422,
365,
6315,
9610,
67,
1883,
30,
309,
365,
18,
9610,
67,
3825,
30,
1234,
273,
1995,
87,
7866,
87,
5061,
486,
1620,
64,
82,
11,
738,
261,
723,
12,
2890,
2
] |
sys.stderr.write("""Error: Unable to create a ALEPH MARC to manipulate a record for which SYS is unknown! """ \
|
sys.stderr.write("""Error: Unable to create ALEPH MARC to manipulate a record for which SYS is unknown! """ \
|
def recxml2recmarc(xmltext, options): """The function that processes creating the records from an XML string, and prints these records to the standard output stream. @param xmltext: An XML MARC record in string form. @param options: Various options about the record to be created, as passed from the command line. @return: Nothing. """ ## create internal record structure from xmltext: if xmltext.find("<collection") != -1: ## this is a collection of records: try: ## parse XML into internal records structure records = create_records(xmltext, 1, 1) except: ## xml parsing failed: sys.stderr.write("""Error: Unable to parse xml file.\n""") sys.exit(1) ## now loop through each record, get its sysno, and convert it: for record in records: sysno = _get_sysno(record=record[0], options=options) if sysno is None: if options["text-marc"] == 1: ## cannot create text-marc for a record with no 001 (recid)! sys.stderr.write("""Error: Unable to correctly determine recid (001) - record skipped.\n""") continue elif options["aleph-marc"] == 1 and 1 in (options["append-mode"], options["delete-mode"], \ options["modify-mode"], options["replace-mode"]): ## cannot create ALEPH MARC to manipulate a record when SYS is unknown! sys.stderr.write("""Error: Unable to create a ALEPH MARC to manipulate a record for which SYS is unknown! """\ """Record skipped.\n""") continue elif options["aleph-marc"] == 1 and type(sysno) in (list, tuple): ## multiple values for SYS in aleph-mode - not permitted sys.stderr.write("""Error: Multiple values for SYS (970__a) are not permitted when running in ALEPH MARC mode. """ \ """Record skipped.\n""") continue sys.stdout.write("""%s""" % (print_record(record=record[0], sysno=sysno, options=options),)) else: ## assuming that this is just a single record - not encapsulated by collection tags: try: ## parse XML into internal record structure (record, st, e) = create_record(xmltext, 1, 1) except: ## xml parsing failed: sys.stderr.write("""Error: Unable to parse xml file.\n""") sys.exit(1) if record is None: ## there was no record: sys.stderr.write("""Error: Unable to read record from xml file.\n""") sys.exit(1) ## now get the sysno for the record: sysno = _get_sysno(record=record, options=options) if sysno is None: if options["text-marc"] == 1: ## cannot create text-marc for a record with no 001 (recid)! sys.stderr.write("""Error: Unable to correctly determine recid (001) - record skipped.\n""") sys.exit(1) elif options["aleph-marc"] == 1 and 1 in (options["append-mode"], options["delete-mode"], \ options["modify-mode"], options["replace-mode"]): ## cannot create ALEPH MARC to manipulate a record when SYS is unknown! sys.stderr.write("""Error: Unable to create a ALEPH MARC to manipulate a record for which SYS is unknown! """ \ """Record skipped.\n""") sys.exit(1) elif options["aleph-marc"] == 1 and type(sysno) in (list, tuple): ## multiple values for SYS in aleph-mode - not permitted sys.stderr.write("""Error: Multiple values for SYS (970__a) are not permitted when running in ALEPH MARC mode. """ \ """Record skipped.\n""") sys.exit(1) sys.stdout.write("""%s""" % (print_record(record=record, sysno=sysno, options=options),))
|
aad09aa6fd02fc35e3bf444ede78fbba6c92f680 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/aad09aa6fd02fc35e3bf444ede78fbba6c92f680/xmlmarc2textmarclib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1950,
2902,
22,
3927,
3684,
71,
12,
2902,
955,
16,
702,
4672,
3536,
1986,
445,
716,
8488,
4979,
326,
3853,
628,
392,
3167,
533,
16,
471,
14971,
4259,
3853,
358,
326,
4529,
876,
1407,
18,
632,
891,
2025,
955,
30,
1922,
3167,
490,
27206,
1409,
316,
533,
646,
18,
632,
891,
702,
30,
11487,
1481,
702,
2973,
326,
1409,
358,
506,
2522,
16,
487,
2275,
628,
326,
1296,
980,
18,
632,
2463,
30,
13389,
18,
3536,
7541,
752,
2713,
1409,
3695,
628,
2025,
955,
30,
309,
2025,
955,
18,
4720,
2932,
32,
5548,
7923,
480,
300,
21,
30,
7541,
333,
353,
279,
1849,
434,
3853,
30,
775,
30,
7541,
1109,
3167,
1368,
2713,
3853,
3695,
3853,
273,
752,
67,
7094,
12,
2902,
955,
16,
404,
16,
404,
13,
1335,
30,
7541,
2025,
5811,
2535,
30,
2589,
18,
11241,
18,
2626,
2932,
3660,
668,
30,
18640,
358,
1109,
2025,
585,
8403,
82,
3660,
7923,
2589,
18,
8593,
12,
21,
13,
7541,
2037,
2798,
3059,
1517,
1409,
16,
336,
2097,
2589,
2135,
16,
471,
1765,
518,
30,
364,
1409,
316,
3853,
30,
2589,
2135,
273,
389,
588,
67,
9499,
2135,
12,
3366,
33,
3366,
63,
20,
6487,
702,
33,
2116,
13,
309,
2589,
2135,
353,
599,
30,
309,
702,
9614,
955,
17,
3684,
71,
11929,
422,
404,
30,
7541,
2780,
752,
977,
17,
3684,
71,
364,
279,
1409,
598,
1158,
374,
1611,
261,
3927,
350,
13,
5,
2589,
18,
11241,
18,
2626,
2932,
3660,
668,
30,
18640,
358,
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,
1950,
2902,
22,
3927,
3684,
71,
12,
2902,
955,
16,
702,
4672,
3536,
1986,
445,
716,
8488,
4979,
326,
3853,
628,
392,
3167,
533,
16,
471,
14971,
4259,
3853,
358,
326,
4529,
876,
1407,
18,
632,
891,
2025,
955,
30,
1922,
3167,
490,
27206,
1409,
316,
533,
646,
18,
632,
891,
702,
30,
11487,
1481,
702,
2973,
326,
1409,
358,
506,
2522,
16,
487,
2275,
628,
326,
1296,
980,
18,
632,
2463,
30,
13389,
18,
3536,
7541,
752,
2713,
1409,
3695,
628,
2025,
955,
30,
309,
2025,
955,
18,
4720,
2932,
32,
5548,
7923,
480,
300,
21,
30,
7541,
333,
353,
279,
1849,
434,
3853,
30,
775,
30,
7541,
1109,
3167,
1368,
2713,
3853,
3695,
3853,
273,
752,
2
] |
gLogger.error("LFCvsSEAgent.execute: Failed to get metadata.","%s %s" % (pfn,res['Value']['Failed'][pfn]))
|
gLogger.error( "LFCvsSEAgent.execute: Failed to get metadata.", "%s %s" % ( pfn, res['Value']['Failed'][pfn] ) )
|
def execute(self):
|
ff946fabd16f68b844021b4c5e84a27f3c288165 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ff946fabd16f68b844021b4c5e84a27f3c288165/LFCvsSEAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Actor.notify.debug("couldn't find anim: %s" % (animName))
|
assert Actor.notify.debug("couldn't find anim: %s" % (animName)) pass
|
def getAnimControl(self, animName, partName, lodName="lodRoot"): """getAnimControl(self, string, string, string="lodRoot") Search the animControl dictionary indicated by lodName for a given anim and part. Return the animControl if present, or None otherwise """ partDict = self.__animControlDict.get(lodName) # if this assertion fails, named lod was not present assert partDict != None
|
08e9d1026e0fc70706f5e423dfa8e307b4d8c0e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/08e9d1026e0fc70706f5e423dfa8e307b4d8c0e8/Actor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20892,
3367,
12,
2890,
16,
10536,
461,
16,
1087,
461,
16,
328,
369,
461,
1546,
80,
369,
2375,
6,
4672,
3536,
588,
20892,
3367,
12,
2890,
16,
533,
16,
533,
16,
533,
1546,
80,
369,
2375,
7923,
5167,
326,
10536,
3367,
3880,
17710,
635,
328,
369,
461,
364,
279,
864,
10536,
471,
1087,
18,
2000,
326,
10536,
3367,
309,
3430,
16,
578,
599,
3541,
3536,
1087,
5014,
273,
365,
16186,
304,
381,
3367,
5014,
18,
588,
12,
80,
369,
461,
13,
468,
309,
333,
11240,
6684,
16,
4141,
328,
369,
1703,
486,
3430,
1815,
1087,
5014,
480,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20892,
3367,
12,
2890,
16,
10536,
461,
16,
1087,
461,
16,
328,
369,
461,
1546,
80,
369,
2375,
6,
4672,
3536,
588,
20892,
3367,
12,
2890,
16,
533,
16,
533,
16,
533,
1546,
80,
369,
2375,
7923,
5167,
326,
10536,
3367,
3880,
17710,
635,
328,
369,
461,
364,
279,
864,
10536,
471,
1087,
18,
2000,
326,
10536,
3367,
309,
3430,
16,
578,
599,
3541,
3536,
1087,
5014,
273,
365,
16186,
304,
381,
3367,
5014,
18,
588,
12,
80,
369,
461,
13,
468,
309,
333,
11240,
6684,
16,
4141,
328,
369,
1703,
486,
3430,
1815,
1087,
5014,
480,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.startfile == mac_start
|
os.startfile = mac_start
|
def bootstrap(renpy_base): global renpy # Get a working name for the game. name = os.path.basename(sys.argv[0]) if name.find(".") != -1: name = name[:name.find(".")] op = optparse.OptionParser() op.add_option('--arg', dest='args', default=[], action='append', help='Append an argument to a list that can be accessed as config.args.') op.add_option('--version', dest='version', default=False, action='store_true', help="Display the version of Ren'Py") op.add_option('--game', dest='game', default=None, help='The directory the game is in.') op.add_option("--savedir", dest='savedir', default=None, action='store', help='The directory in which to save data. Defaults to the saves directory under the game directory.') op.add_option('--lock', dest='lock', default=None, action='store', help=optparse.SUPPRESS_HELP) op.add_option('--python', dest='python', default=None, help=optparse.SUPPRESS_HELP) op.add_option('--compile', dest='compile', default=False, action='store_true', help="Causes Ren'Py to compile all .rpy files to .rpyc files, and then quit.") op.add_option('--lint', dest='lint', default=False, action='store_true', help='Run a number of expensive tests, to try to detect errors in the script.') op.add_option('--profile', dest='profile', action='store_true', default=False, help='Causes the amount of time it takes to draw the screen to be profiled.') op.add_option('--trace', dest='trace', action='count', default=0, help='Dump internal trace data to trace.txt. Use twice to dump in absurd detail.') op.add_option('--leak', dest='leak', action='store_true', default=False, help=optparse.SUPPRESS_HELP) op.add_option('--warp', dest='warp', default=None, help='This takes as an argument a filename:linenumber pair, and tries to warp to the statement before that line number.') op.add_option('--remote', dest='remote', action='store_true', help="Allows Ren'Py to be fed commands on stdin.") op.add_option('--rmpersistent', dest='rmpersistent', action='store_true', help="Deletes the persistent data, and exits.") op.add_option('--presplash', dest='presplash', default=None, help="Used internally to display the presplash screen.") options, args = op.parse_args() if options.presplash: import renpy.display.presplash renpy.display.presplash.show(options.presplash) if options.trace: enable_trace(options.trace) if options.python: import __main__ sys.argv = [ options.python ] + args execfile(options.python, __main__.__dict__, __main__.__dict__) sys.exit(0) args = list(args) if len(args) >= 1: basedir = os.path.abspath(args[0]) else: basedir = renpy_base # If we made it this far, we will be running the game, or at least # doing a lint. # os.chdir(renpy_base) # Look for the game directory. if options.game: gamedir = options.game else: gamedirs = [ name ] game_name = name while game_name: prefix = game_name[0] game_name = game_name[1:] if prefix == ' ' or prefix == '_': gamedirs.append(game_name) gamedirs.extend([ 'game', 'data',]) for i in gamedirs: if i == "renpy": continue gamedir = basedir + "/" + i if os.path.isdir(gamedir): break else: gamedir = basedir sys.path.insert(0, basedir) # Force windib on windows, unless the user explicitly overrides. if hasattr(sys, 'winver') and not 'SDL_VIDEODRIVER' in os.environ: os.environ['SDL_VIDEODRIVER'] = 'windib' # Show the presplash. if not options.lint and not options.compile and not options.version and not options.rmpersistent: import renpy.display.presplash renpy.display.presplash.start(gamedir) # This is a hack that makes garbage collection go in the right order, # hopefully. import subprocess subprocess.Popen.__sys = sys # If we're on a mac, install our own os.start. if sys.platform == "darwin": os.startfile == mac_start # Load up all of Ren'Py, in the right order. import renpy renpy.import_all() if options.version: print renpy.version sys.exit(0) keep_running = True report_error = None while keep_running: try: renpy.game.options = options renpy.config.renpy_base = renpy_base renpy.config.basedir = basedir renpy.config.gamedir = gamedir renpy.config.args = options.args renpy.main.main() keep_running = False except KeyboardInterrupt: break except renpy.game.UtterRestartException: # Only works after a full restart. report_error = renpy.display.error.ReportError() # On an UtterRestart, reload Ren'Py. renpy.reload_all() continue except renpy.game.ParseErrorException: if report_error and report_error.report('a parse error'): renpy.reload_all() keep_running = True else: keep_running = False except Exception, e: report_exception(e) if report_error and report_error.report('an exception'): renpy.reload_all() keep_running = True else: keep_running = False if options.leak: memory_profile() sys.exit(0)
|
b087b29a22f684d43c55f6b7621c26b7f06f27e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10962/b087b29a22f684d43c55f6b7621c26b7f06f27e6/bootstrap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7065,
12,
1187,
2074,
67,
1969,
4672,
225,
2552,
1654,
2074,
225,
468,
968,
279,
5960,
508,
364,
326,
7920,
18,
508,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
225,
309,
508,
18,
4720,
2932,
1199,
13,
480,
300,
21,
30,
508,
273,
508,
10531,
529,
18,
4720,
2932,
1199,
25887,
225,
1061,
273,
2153,
2670,
18,
1895,
2678,
1435,
225,
1061,
18,
1289,
67,
3482,
2668,
413,
3175,
2187,
1570,
2218,
1968,
2187,
805,
22850,
6487,
1301,
2218,
6923,
2187,
2809,
2218,
5736,
392,
1237,
358,
279,
666,
716,
848,
506,
15539,
487,
642,
18,
1968,
1093,
13,
225,
1061,
18,
1289,
67,
3482,
2668,
413,
1589,
2187,
1570,
2218,
1589,
2187,
805,
33,
8381,
16,
1301,
2218,
2233,
67,
3767,
2187,
2809,
1546,
4236,
326,
1177,
434,
25921,
11,
9413,
7923,
225,
1061,
18,
1289,
67,
3482,
2668,
413,
13957,
2187,
1570,
2218,
13957,
2187,
805,
33,
7036,
16,
2809,
2218,
1986,
1867,
326,
7920,
353,
316,
1093,
13,
225,
1061,
18,
1289,
67,
3482,
2932,
413,
14077,
481,
3113,
1570,
2218,
14077,
481,
2187,
805,
33,
7036,
16,
1301,
2218,
2233,
2187,
2809,
2218,
1986,
1867,
316,
1492,
358,
1923,
501,
18,
14159,
358,
326,
14649,
1867,
3613,
326,
7920,
1867,
1093,
13,
225,
1061,
18,
1289,
67,
3482,
2668,
413,
739,
2187,
1570,
2218,
739,
2187,
805,
33,
7036,
16,
1301,
2218,
2233,
2187,
2809,
33,
3838,
2670,
18,
13272,
22526,
67,
27396,
13,
225,
1061,
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,
7065,
12,
1187,
2074,
67,
1969,
4672,
225,
2552,
1654,
2074,
225,
468,
968,
279,
5960,
508,
364,
326,
7920,
18,
508,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
225,
309,
508,
18,
4720,
2932,
1199,
13,
480,
300,
21,
30,
508,
273,
508,
10531,
529,
18,
4720,
2932,
1199,
25887,
225,
1061,
273,
2153,
2670,
18,
1895,
2678,
1435,
225,
1061,
18,
1289,
67,
3482,
2668,
413,
3175,
2187,
1570,
2218,
1968,
2187,
805,
22850,
6487,
1301,
2218,
6923,
2187,
2809,
2218,
5736,
392,
1237,
358,
279,
666,
716,
848,
506,
15539,
487,
642,
18,
1968,
1093,
13,
225,
1061,
18,
1289,
67,
3482,
2668,
413,
1589,
2187,
1570,
2218,
1589,
2
] |
security.declareProtected(CMFCorePermissions.View, 'modified')
|
security.declareProtected(permissions.View, 'modified')
|
def created(self): """Dublin Core element - date resource created, returned as DateTime. """ # allow for non-existent creation_date, existed always created = self.getField('creation_date').get(self) return created is None and FLOOR_DATE or created
|
bffbf06ccb0e344dcf82f7addf15838da46c2ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/bffbf06ccb0e344dcf82f7addf15838da46c2ba5/ExtensibleMetadata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2522,
12,
2890,
4672,
3536,
40,
29056,
4586,
930,
300,
1509,
1058,
2522,
16,
2106,
487,
3716,
18,
3536,
468,
1699,
364,
1661,
17,
19041,
6710,
67,
712,
16,
20419,
3712,
2522,
273,
365,
18,
588,
974,
2668,
17169,
67,
712,
16063,
588,
12,
2890,
13,
327,
2522,
353,
599,
471,
478,
1502,
916,
67,
4594,
578,
2522,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2522,
12,
2890,
4672,
3536,
40,
29056,
4586,
930,
300,
1509,
1058,
2522,
16,
2106,
487,
3716,
18,
3536,
468,
1699,
364,
1661,
17,
19041,
6710,
67,
712,
16,
20419,
3712,
2522,
273,
365,
18,
588,
974,
2668,
17169,
67,
712,
16063,
588,
12,
2890,
13,
327,
2522,
353,
599,
471,
478,
1502,
916,
67,
4594,
578,
2522,
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
] |
def sub(w_bigint1, w_bigint2): if w_bigint1.sign < 0: if w_bigint2.sign < 0: result = _x_sub(w_bigint1, w_bigint2)
|
def sub(self, other): if self.sign < 0: if other.sign < 0: result = _x_sub(self, other)
|
def sub(w_bigint1, w_bigint2): if w_bigint1.sign < 0: if w_bigint2.sign < 0: result = _x_sub(w_bigint1, w_bigint2) else: result = _x_add(w_bigint1, w_bigint2) result.sign = -result.sign else: if w_bigint2.sign < 0: result = _x_add(w_bigint1, w_bigint2) else: result = _x_sub(w_bigint1, w_bigint2) result._normalize() return result
|
87da397eba037ce53e8c5847c7c4b29acfda97b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/87da397eba037ce53e8c5847c7c4b29acfda97b2/rbigint.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
12,
2890,
16,
1308,
4672,
309,
365,
18,
2977,
411,
374,
30,
309,
1308,
18,
2977,
411,
374,
30,
563,
273,
389,
92,
67,
1717,
12,
2890,
16,
1308,
13,
469,
30,
563,
273,
389,
92,
67,
1289,
12,
91,
67,
14002,
474,
21,
16,
341,
67,
14002,
474,
22,
13,
563,
18,
2977,
273,
300,
2088,
18,
2977,
469,
30,
309,
341,
67,
14002,
474,
22,
18,
2977,
411,
374,
30,
563,
273,
389,
92,
67,
1289,
12,
91,
67,
14002,
474,
21,
16,
341,
67,
14002,
474,
22,
13,
469,
30,
563,
273,
389,
92,
67,
1717,
12,
91,
67,
14002,
474,
21,
16,
341,
67,
14002,
474,
22,
13,
563,
6315,
12237,
1435,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
326,
981,
30,
1652,
720,
12,
2890,
16,
1308,
4672,
309,
365,
18,
2977,
411,
374,
30,
309,
1308,
18,
2977,
411,
374,
30,
563,
273,
389,
92,
67,
1717,
12,
2890,
16,
1308,
13,
469,
30,
563,
273,
389,
92,
67,
1289,
12,
91,
67,
14002,
474,
21,
16,
341,
67,
14002,
474,
22,
13,
563,
18,
2977,
273,
300,
2088,
18,
2977,
469,
30,
309,
341,
67,
14002,
474,
22,
18,
2977,
411,
374,
30,
563,
273,
389,
92,
67,
1289,
12,
91,
67,
14002,
474,
21,
16,
341,
67,
14002,
474,
22,
13,
469,
30,
563,
273,
389,
92,
67,
1717,
12,
91,
67,
14002,
474,
21,
16,
341,
67,
14002,
474,
22,
13,
563,
6315,
12237,
1435,
327,
2
] |
return sorted(list(_assumptions))
|
return list(_assumptions)
|
def assumptions(): """ List all current symbolic assumptions. EXAMPLES:: sage: var('x,y,z, w') (x, y, z, w) sage: forget() sage: assume(x^2+y^2 > 0) sage: assumptions() [x^2 + y^2 > 0] sage: forget(x^2+y^2 > 0) sage: assumptions() [] sage: assume(x > y) sage: assume(z > w) sage: list(sorted(assumptions(), lambda x,y:cmp(str(x),str(y)))) [x > y, z > w] sage: forget() sage: assumptions() [] """ return sorted(list(_assumptions))
|
0683a10fc6842244e7c7d2df27a712df1e127839 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/0683a10fc6842244e7c7d2df27a712df1e127839/assumptions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6287,
573,
13332,
3536,
987,
777,
783,
16754,
6287,
573,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
569,
2668,
92,
16,
93,
16,
94,
16,
341,
6134,
261,
92,
16,
677,
16,
998,
16,
341,
13,
272,
410,
30,
13776,
1435,
272,
410,
30,
6750,
12,
92,
66,
22,
15,
93,
66,
22,
405,
374,
13,
272,
410,
30,
6287,
573,
1435,
306,
92,
66,
22,
397,
677,
66,
22,
405,
374,
65,
272,
410,
30,
13776,
12,
92,
66,
22,
15,
93,
66,
22,
405,
374,
13,
272,
410,
30,
6287,
573,
1435,
5378,
272,
410,
30,
6750,
12,
92,
405,
677,
13,
272,
410,
30,
6750,
12,
94,
405,
341,
13,
272,
410,
30,
666,
12,
10350,
12,
428,
379,
573,
9334,
3195,
619,
16,
93,
30,
9625,
12,
701,
12,
92,
3631,
701,
12,
93,
3719,
3719,
306,
92,
405,
677,
16,
998,
405,
341,
65,
272,
410,
30,
13776,
1435,
272,
410,
30,
6287,
573,
1435,
5378,
3536,
327,
666,
24899,
428,
379,
573,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6287,
573,
13332,
3536,
987,
777,
783,
16754,
6287,
573,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
569,
2668,
92,
16,
93,
16,
94,
16,
341,
6134,
261,
92,
16,
677,
16,
998,
16,
341,
13,
272,
410,
30,
13776,
1435,
272,
410,
30,
6750,
12,
92,
66,
22,
15,
93,
66,
22,
405,
374,
13,
272,
410,
30,
6287,
573,
1435,
306,
92,
66,
22,
397,
677,
66,
22,
405,
374,
65,
272,
410,
30,
13776,
12,
92,
66,
22,
15,
93,
66,
22,
405,
374,
13,
272,
410,
30,
6287,
573,
1435,
5378,
272,
410,
30,
6750,
12,
92,
405,
677,
13,
272,
410,
30,
6750,
12,
94,
405,
341,
13,
272,
410,
2
] |
if value: self.elementstack[-1][2].append(value) self.pop('license')
|
attrsD = FeedParserDict() attrsD['rel']='license' if value: attrsD['href']=value context.setdefault('links', []).append(attrsD)
|
def _start_cc_license(self, attrsD): self.push('license', 1) value = self._getAttribute(attrsD, 'rdf:resource') if value: self.elementstack[-1][2].append(value) self.pop('license')
|
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
952,
67,
12687,
12,
2890,
16,
3422,
40,
4672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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
952,
67,
12687,
12,
2890,
16,
3422,
40,
4672,
365,
18,
6206,
2668,
12687,
2187,
404,
13,
460,
273,
365,
6315,
588,
1499,
12,
7039,
40,
16,
296,
19299,
30,
3146,
6134,
309,
460,
30,
365,
18,
2956,
3772,
18919,
21,
6362,
22,
8009,
6923,
12,
1132,
13,
365,
18,
5120,
2668,
12687,
6134,
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
] |
scopes.pop()
|
closeScope(scopes)
|
#enddef - closes a scope
|
8ef90f9a112ed379de9d5ae4b3e974c09cd6ae77 /local1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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
409,
536,
300,
13445,
279,
2146,
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,
-100
] |
thumbNailFilter = etree.XPath('.//div[@class="episodethumb"]/img') descFilter = etree.XPath('.//div[@class="episodecontent"]/p') linkFilter = etree.XPath('.//div[@class="episodecontent"]/p//a[@href!="javascript:;"]')
|
thumbNailFilter = etree.XPath('.//div[@class="overlay_thumb_area"]//img') textFilter = etree.XPath('.//div[@class="overlay-bg-middle"]/p') titleFilter = etree.XPath('.//div[@class="overlay_thumb_area"]//a[@title!=""]/@title') descFilter = etree.XPath('.//div[@class="overlay-bg-middle"]/p[@class="overlay_extra overlay_spacer_top"]/text()') linkFilter = etree.XPath('.//div[@class="overlay_thumb_area"]//a[@title!=""]/@href')
|
def searchTitle(self, title, pagenumber, pagelen, ignoreError=False): '''Key word video search of the TheWB web site return an array of matching item elements return ''' orgURL = self.thewb_config.find('searchURLS').xpath(".//href")[0].text
|
6f6daa366b2cfd2b5bb891ffe90ce1e7c399c2ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/6f6daa366b2cfd2b5bb891ffe90ce1e7c399c2ad/thewb_api.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
4247,
12,
2890,
16,
2077,
16,
4262,
21998,
16,
4262,
292,
275,
16,
2305,
668,
33,
8381,
4672,
9163,
653,
2076,
6191,
1623,
434,
326,
1021,
59,
38,
3311,
2834,
327,
392,
526,
434,
3607,
761,
2186,
327,
9163,
2358,
1785,
273,
365,
18,
451,
359,
70,
67,
1425,
18,
4720,
2668,
3072,
1785,
55,
16063,
18644,
2932,
18,
759,
7547,
7923,
63,
20,
8009,
955,
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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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,
1623,
4247,
12,
2890,
16,
2077,
16,
4262,
21998,
16,
4262,
292,
275,
16,
2305,
668,
33,
8381,
4672,
9163,
653,
2076,
6191,
1623,
434,
326,
1021,
59,
38,
3311,
2834,
327,
392,
526,
434,
3607,
761,
2186,
327,
9163,
2358,
1785,
273,
365,
18,
451,
359,
70,
67,
1425,
18,
4720,
2668,
3072,
1785,
55,
16063,
18644,
2932,
18,
759,
7547,
7923,
63,
20,
8009,
955,
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
] |
print "DEBUG fyi: rotateAboutPointTemporaryCommand(%r) returning early since command stack locked" % isChecked
|
def rotateAboutPointTemporaryCommand(self, isChecked = False): """ @see: self.moveFromToTemporaryMode """ #@TODO: clean this up. This was written just after Rattlesnake rc2 #for FNANO presentation -- Ninad 2008-04-17
|
91fc4409cac345d57880216dd1ec61f151584b1e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/91fc4409cac345d57880216dd1ec61f151584b1e/Move_Command.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
24813,
2148,
11685,
2189,
12,
2890,
16,
31041,
273,
1083,
4672,
3536,
632,
5946,
30,
365,
18,
8501,
1265,
774,
11685,
2309,
3536,
468,
36,
6241,
30,
2721,
333,
731,
18,
1220,
1703,
5941,
2537,
1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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,
8534,
24813,
2148,
11685,
2189,
12,
2890,
16,
31041,
273,
1083,
4672,
3536,
632,
5946,
30,
365,
18,
8501,
1265,
774,
11685,
2309,
3536,
468,
36,
6241,
30,
2721,
333,
731,
18,
1220,
1703,
5941,
2537,
1839,
534,
4558,
1040,
82,
911,
4519,
22,
468,
1884,
27103,
1258,
51,
22525,
1493,
423,
267,
361,
4044,
28,
17,
3028,
17,
4033,
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
] |
|
parser = OptionParser() parser.add_option("--delhba", action="callback", callback=tcm_delhba, nargs=1, type="string", dest="HBA", help="Delete TCM Host Bus Adapter (HBA)") parser.add_option("--createdev", action="callback", callback=tcm_createvirtdev, nargs=2, type="string", dest="HBA/DEV <params>", help="Create TCM Storage Object") parser.add_option("--freedev", action="callback", callback=tcm_freevirtdev, nargs=1, type="string", dest="HBA/DEV", help="Free TCM Storage Object") parser.add_option("--listhbas", action="callback", callback=tcm_list_hbas, nargs=0, help="List TCM Host Bus Adapters (HBAs)") parser.add_option("--pr", action="callback", callback=tcm_show_persistent_reserve_info, nargs=1, type="string", dest="HBA/DEV", help="Show Persistent Reservation info") parser.add_option("--setudevpath", action="callback", callback=tcm_set_udev_path, nargs=2, type="string", dest="HBA/DEV <udev_path>", help="Set UDEV Path Information, only used when --createdev did not contain <udev_path> as parameter") parser.add_option("--setunitserial", action="callback", callback=tcm_set_wwn_unit_serial, nargs=2, type="string", dest="HBA/DEV <unit_serial>", help="Set T10 EVPD Unit Serial Information") parser.add_option("--unload", action="callback", callback=tcm_unload, nargs=0, help="Unload target_core_mod") parser.add_option("--version", action="callback", callback=tcm_version, nargs=0, help="Display target_core_mod version information") parser.add_option("--wwn", action="callback", callback=tcm_show_wwn_info, nargs=1, type="string", dest="HBA/DEV", help="Show WWN info") parser.parse_args()
|
def main(): parser = OptionParser() parser.add_option("--delhba", action="callback", callback=tcm_delhba, nargs=1, type="string", dest="HBA", help="Delete TCM Host Bus Adapter (HBA)") parser.add_option("--createdev", action="callback", callback=tcm_createvirtdev, nargs=2, type="string", dest="HBA/DEV <params>", help="Create TCM Storage Object") parser.add_option("--freedev", action="callback", callback=tcm_freevirtdev, nargs=1, type="string", dest="HBA/DEV", help="Free TCM Storage Object") parser.add_option("--listhbas", action="callback", callback=tcm_list_hbas, nargs=0, help="List TCM Host Bus Adapters (HBAs)") parser.add_option("--pr", action="callback", callback=tcm_show_persistent_reserve_info, nargs=1, type="string", dest="HBA/DEV", help="Show Persistent Reservation info") parser.add_option("--setudevpath", action="callback", callback=tcm_set_udev_path, nargs=2, type="string", dest="HBA/DEV <udev_path>", help="Set UDEV Path Information, only used when --createdev did not contain <udev_path> as parameter") parser.add_option("--setunitserial", action="callback", callback=tcm_set_wwn_unit_serial, nargs=2, type="string", dest="HBA/DEV <unit_serial>", help="Set T10 EVPD Unit Serial Information") parser.add_option("--unload", action="callback", callback=tcm_unload, nargs=0, help="Unload target_core_mod") parser.add_option("--version", action="callback", callback=tcm_version, nargs=0, help="Display target_core_mod version information") parser.add_option("--wwn", action="callback", callback=tcm_show_wwn_info, nargs=1, type="string", dest="HBA/DEV", help="Show WWN info") (options, args) = parser.parse_args() if len(sys.argv) == 1: parser.print_help() sys.exit(0) elif not re.search('--', sys.argv[1]): tcm_err("Unknown CLI option: " + sys.argv[1]) if __name__ == "__main__": main()
|
def tcm_version(option, opt_str, value, parser): os.system("cat /sys/kernel/config/target/version") return
|
591c5bbced2ccfcf8854d626b12d8b465487d577 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/591c5bbced2ccfcf8854d626b12d8b465487d577/tcm_node.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1715,
81,
67,
1589,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
225,
1140,
18,
4299,
2932,
2574,
342,
9499,
19,
8111,
19,
1425,
19,
3299,
19,
1589,
7923,
327,
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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,
67,
701,
16,
460,
16,
2082,
4672,
225,
1140,
18,
4299,
2932,
2574,
342,
9499,
19,
8111,
19,
1425,
19,
3299,
19,
1589,
7923,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = prefixes[node.type] + compress(node[0]) elif type in postfixes:
|
def compress(node): type = node.type result = None if type in simple: result = type elif type in prefixes: result = prefixes[node.type] + compress(node[0]) elif type in postfixes: if getattr(node, "postfix", False): result = postfixes[node.type] + compress(node[0]) else: result = compress(node[0]) + postfixes[node.type] elif type in dividers: result = dividers[node.type].join(map(compress, node)) else: try: result = globals()["__" + type](node) except KeyError: print("Compressor does not support type '%s' from line %s in file %s" % (type, node.line, node.getFileName())) print(node.toJson()) sys.exit(1) if getattr(node, "parenthesized", None): return "(%s)" % result else: return result
|
755336729025479a4bfd68188acd5ca861fbbe4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/755336729025479a4bfd68188acd5ca861fbbe4e/Compressor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8099,
12,
2159,
4672,
618,
273,
756,
18,
723,
563,
273,
599,
225,
309,
618,
316,
4143,
30,
563,
273,
618,
1327,
618,
316,
9419,
30,
309,
3869,
12,
2159,
16,
315,
2767,
904,
3113,
1083,
4672,
563,
273,
18923,
281,
63,
2159,
18,
723,
65,
397,
8099,
12,
2159,
63,
20,
5717,
469,
30,
563,
273,
8099,
12,
2159,
63,
20,
5717,
397,
18923,
281,
63,
2159,
18,
723,
65,
225,
1327,
618,
316,
3739,
24290,
30,
563,
273,
3739,
24290,
63,
2159,
18,
723,
8009,
5701,
12,
1458,
12,
14706,
16,
756,
3719,
469,
30,
775,
30,
563,
273,
10941,
1435,
9614,
14437,
397,
618,
29955,
2159,
13,
1335,
4999,
30,
1172,
2932,
16552,
280,
1552,
486,
2865,
618,
1995,
87,
11,
628,
980,
738,
87,
316,
585,
738,
87,
6,
738,
261,
723,
16,
756,
18,
1369,
16,
756,
18,
588,
4771,
1435,
3719,
1172,
12,
2159,
18,
869,
3185,
10756,
2589,
18,
8593,
12,
21,
13,
225,
309,
3869,
12,
2159,
16,
315,
13012,
7915,
1235,
3113,
599,
4672,
327,
7751,
9,
87,
2225,
738,
563,
469,
30,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8099,
12,
2159,
4672,
618,
273,
756,
18,
723,
563,
273,
599,
225,
309,
618,
316,
4143,
30,
563,
273,
618,
1327,
618,
316,
9419,
30,
309,
3869,
12,
2159,
16,
315,
2767,
904,
3113,
1083,
4672,
563,
273,
18923,
281,
63,
2159,
18,
723,
65,
397,
8099,
12,
2159,
63,
20,
5717,
469,
30,
563,
273,
8099,
12,
2159,
63,
20,
5717,
397,
18923,
281,
63,
2159,
18,
723,
65,
225,
1327,
618,
316,
3739,
24290,
30,
563,
273,
3739,
24290,
63,
2159,
18,
723,
8009,
5701,
12,
1458,
12,
14706,
16,
756,
3719,
469,
30,
775,
30,
563,
273,
10941,
1435,
9614,
14437,
397,
618,
29955,
2159,
13,
1335,
4999,
30,
1172,
2932,
16552,
280,
1552,
2
] |
|
TEST_EXCEPTION = RuntimeError("test exception")
|
def setUp(self): self.TEST_EXCEPTION = RuntimeError("test exception")
|
def shouldThrow(): with ExitThrows(): pass
|
ba21f618a301a36b13a25c2d51e74562363c6d67 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ba21f618a301a36b13a25c2d51e74562363c6d67/test_with.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
8282,
13332,
598,
9500,
21845,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else
|
else:
|
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 224) else quickfix.StringField.__init__(self, 224, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
576,
3247,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
576,
3247,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
576,
3247,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
576,
3247,
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
] |
res = self.__openDirectory(path)
|
res = self.__openDirectory( path )
|
def __getDirectoryContents(self,path,verbose=False): """ Returns a dictionary containing all of the contents of a directory. This includes the metadata associated to files (replicas, size, guid, status) and the subdirectories found. """ # First check that the directory exists res = self.__executeOperation(path,'exists') if not res['OK']: return res if not res['Value']: return S_ERROR('No such file or directory')
|
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2853,
6323,
12,
2890,
16,
803,
16,
11369,
33,
8381,
4672,
3536,
2860,
279,
3880,
4191,
777,
434,
326,
2939,
434,
279,
1867,
18,
1220,
6104,
326,
1982,
3627,
358,
1390,
261,
266,
10528,
16,
963,
16,
9875,
16,
1267,
13,
471,
326,
31220,
1392,
18,
3536,
468,
5783,
866,
716,
326,
1867,
1704,
400,
273,
365,
16186,
8837,
2988,
12,
803,
11189,
1808,
6134,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
30,
327,
348,
67,
3589,
2668,
2279,
4123,
585,
578,
1867,
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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12,
2890,
16,
803,
16,
11369,
33,
8381,
4672,
3536,
2860,
279,
3880,
4191,
777,
434,
326,
2939,
434,
279,
1867,
18,
1220,
6104,
326,
1982,
3627,
358,
1390,
261,
266,
10528,
16,
963,
16,
9875,
16,
1267,
13,
471,
326,
31220,
1392,
18,
3536,
468,
5783,
866,
716,
326,
1867,
1704,
400,
273,
365,
16186,
8837,
2988,
12,
803,
11189,
1808,
6134,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
30,
327,
348,
67,
3589,
2668,
2279,
4123,
585,
578,
1867,
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
] |
"""Extracts a value from the xml string""" nodes = node.getElementsByTagName(name) if len(nodes): if nodes[index].firstChild: return _unescape_htmlentity(nodes[index].firstChild.data.strip()) else: return None
|
"""Extracts a value from the xml string""" nodes = node.getElementsByTagName(name) if len(nodes): if nodes[index].firstChild: return _unescape_htmlentity(nodes[index].firstChild.data.strip()) else: return None
|
def _extract(node, name, index = 0): """Extracts a value from the xml string""" nodes = node.getElementsByTagName(name) if len(nodes): if nodes[index].firstChild: return _unescape_htmlentity(nodes[index].firstChild.data.strip()) else: return None
|
312230e30b9a32836e57d3014b7461a466a3dbed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/312230e30b9a32836e57d3014b7461a466a3dbed/pylast.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
12,
2159,
16,
508,
16,
770,
273,
374,
4672,
3536,
12809,
279,
460,
628,
326,
2025,
533,
8395,
225,
2199,
273,
756,
18,
588,
3471,
10401,
12,
529,
13,
225,
309,
562,
12,
4690,
4672,
309,
2199,
63,
1615,
8009,
3645,
1763,
30,
327,
389,
318,
6939,
67,
2620,
1096,
12,
4690,
63,
1615,
8009,
3645,
1763,
18,
892,
18,
6406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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
12,
2159,
16,
508,
16,
770,
273,
374,
4672,
3536,
12809,
279,
460,
628,
326,
2025,
533,
8395,
225,
2199,
273,
756,
18,
588,
3471,
10401,
12,
529,
13,
225,
309,
562,
12,
4690,
4672,
309,
2199,
63,
1615,
8009,
3645,
1763,
30,
327,
389,
318,
6939,
67,
2620,
1096,
12,
4690,
63,
1615,
8009,
3645,
1763,
18,
892,
18,
6406,
10756,
469,
30,
327,
599,
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
] |
if len(station_list)!=1:
|
if len(station_list) != 1:
|
def getStationPAZ(network_id, station_id, datetime): """ """ # request station information station_list = client.station.getList(network_id=network_id, station_id=station_id, datetime=datetime) if len(station_list)!=1: return {} # request station resource res = client.station.getXMLResource(station_list[0]['resource_name']) # get poles node = res.station_control_header.response_poles_and_zeros poles_real = node.complex_pole.real_pole[:] poles_imag = node.complex_pole.imaginary_pole[:] poles = zip(poles_real, poles_imag) poles = [p[0] + p[1]*1j for p in poles] # get zeros node = res.station_control_header.response_poles_and_zeros zeros_real = node.complex_zero.real_zero[:][:] zeros_imag = node.complex_zero.imaginary_zero[:][:] zeros = zip(zeros_real, zeros_imag) zeros = [p[0] + p[1]*1j for p in zeros] # get gain # XXX: not sure about that! node = res.station_control_header gains = node.xpath('channel_sensitivity_gain/sensitivity_gain') gain = gains[-1] return {'poles': poles, 'zeroes': zeros, 'gain': gain}
|
eaae164587ff3e53e5bb057afc519a3a6dac28e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/eaae164587ff3e53e5bb057afc519a3a6dac28e5/eventcluster.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
16672,
4066,
62,
12,
5185,
67,
350,
16,
13282,
67,
350,
16,
3314,
4672,
3536,
3536,
468,
590,
13282,
1779,
13282,
67,
1098,
273,
1004,
18,
17894,
18,
588,
682,
12,
5185,
67,
350,
33,
5185,
67,
350,
16,
13282,
67,
350,
33,
17894,
67,
350,
16,
3314,
33,
6585,
13,
309,
562,
12,
17894,
67,
1098,
13,
480,
404,
30,
327,
2618,
468,
590,
13282,
1058,
400,
273,
1004,
18,
17894,
18,
588,
4201,
1420,
12,
17894,
67,
1098,
63,
20,
23962,
3146,
67,
529,
19486,
468,
336,
2952,
281,
756,
273,
400,
18,
17894,
67,
7098,
67,
3374,
18,
2740,
67,
3915,
281,
67,
464,
67,
22008,
2952,
281,
67,
7688,
273,
756,
18,
14259,
67,
84,
790,
18,
7688,
67,
84,
790,
10531,
65,
2952,
281,
67,
15374,
273,
756,
18,
14259,
67,
84,
790,
18,
15374,
2101,
67,
84,
790,
10531,
65,
2952,
281,
273,
3144,
12,
3915,
281,
67,
7688,
16,
2952,
281,
67,
15374,
13,
2952,
281,
273,
306,
84,
63,
20,
65,
397,
293,
63,
21,
5772,
21,
78,
364,
293,
316,
2952,
281,
65,
468,
336,
4922,
756,
273,
400,
18,
17894,
67,
7098,
67,
3374,
18,
2740,
67,
3915,
281,
67,
464,
67,
22008,
4922,
67,
7688,
273,
756,
18,
14259,
67,
7124,
18,
7688,
67,
7124,
10531,
6362,
26894,
4922,
67,
15374,
273,
756,
18,
14259,
67,
7124,
18,
15374,
2101,
67,
7124,
10531,
6362,
26894,
4922,
273,
3144,
12,
22008,
67,
7688,
16,
4922,
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,
16672,
4066,
62,
12,
5185,
67,
350,
16,
13282,
67,
350,
16,
3314,
4672,
3536,
3536,
468,
590,
13282,
1779,
13282,
67,
1098,
273,
1004,
18,
17894,
18,
588,
682,
12,
5185,
67,
350,
33,
5185,
67,
350,
16,
13282,
67,
350,
33,
17894,
67,
350,
16,
3314,
33,
6585,
13,
309,
562,
12,
17894,
67,
1098,
13,
480,
404,
30,
327,
2618,
468,
590,
13282,
1058,
400,
273,
1004,
18,
17894,
18,
588,
4201,
1420,
12,
17894,
67,
1098,
63,
20,
23962,
3146,
67,
529,
19486,
468,
336,
2952,
281,
756,
273,
400,
18,
17894,
67,
7098,
67,
3374,
18,
2740,
67,
3915,
281,
67,
464,
67,
22008,
2952,
281,
67,
7688,
273,
756,
18,
14259,
2
] |
[['dom', 'int'],
|
[['dom', 'str'],
|
def op_pincpu(self, _, req): fn = FormFn(self.xd.domain_pincpu, [['dom', 'int'], ['vcpu', 'str'], ['cpumap', 'str']]) val = fn(req.args, {'dom': self.dom.domid}) return val
|
545cb431bdc40df334149b0b016457b69bd8b4df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6195/545cb431bdc40df334149b0b016457b69bd8b4df/SrvDomain.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
67,
13097,
11447,
12,
2890,
16,
389,
16,
1111,
4672,
2295,
273,
2748,
5372,
12,
2890,
18,
7669,
18,
4308,
67,
13097,
11447,
16,
306,
3292,
9859,
2187,
296,
701,
17337,
10228,
90,
11447,
2187,
296,
701,
17337,
10228,
4057,
379,
438,
2187,
296,
701,
3546,
5717,
1244,
273,
2295,
12,
3658,
18,
1968,
16,
13666,
9859,
4278,
365,
18,
9859,
18,
9859,
350,
6792,
327,
1244,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
67,
13097,
11447,
12,
2890,
16,
389,
16,
1111,
4672,
2295,
273,
2748,
5372,
12,
2890,
18,
7669,
18,
4308,
67,
13097,
11447,
16,
306,
3292,
9859,
2187,
296,
701,
17337,
10228,
90,
11447,
2187,
296,
701,
17337,
10228,
4057,
379,
438,
2187,
296,
701,
3546,
5717,
1244,
273,
2295,
12,
3658,
18,
1968,
16,
13666,
9859,
4278,
365,
18,
9859,
18,
9859,
350,
6792,
327,
1244,
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
] |
(ComboProcessor, "IDC_ACTION_UNSURE", "Filter.unsure_action"),
|
(ComboProcessor, "IDC_ACTION_UNSURE", "Filter.unsure_action", _("Untouched,Moved,Copied")),
|
def WizardTrainer(mgr, config, progress): import os, manager, train bayes_base = os.path.join(mgr.data_directory, "$sbwiz$default_bayes_database") mdb_base = os.path.join(mgr.data_directory, "$sbwiz$default_message_database") fnames = [] for ext in ".pck", ".db": fnames.append(bayes_base+ext) fnames.append(mdb_base+ext) config.wizard.temp_training_names = fnames # determine which db manager to use, and create it. ManagerClass = manager.GetStorageManagerClass() db_manager = ManagerClass(bayes_base, mdb_base) classifier_data = manager.ClassifierData(db_manager, mgr) classifier_data.InitNew() rescore = config.training.rescore if rescore: stages = (_("Training"), .3), (_("Saving"), .1), (_("Scoring"), .6) else: stages = (_("Training"), .9), (_("Saving"), .1) progress.set_stages(stages) train.real_trainer(classifier_data, config, mgr.message_store, progress) # xxx - more hacks - we should pass the classifier data in. orig_classifier_data = mgr.classifier_data mgr.classifier_data = classifier_data # temporary try: progress.tick() if rescore: # Setup the "filter now" config to what we want. now_config = config.filter_now now_config.only_unread = False now_config.only_unseen = False now_config.action_all = False now_config.folder_ids = config.training.ham_folder_ids + \ config.training.spam_folder_ids now_config.include_sub = config.training.ham_include_sub or \ config.training.spam_include_sub import filter filter.filterer(mgr, config, progress) bayes = classifier_data.bayes progress.set_status(_("Completed training with %d spam and %d good messages") \ % (bayes.nspam, bayes.nham)) finally: mgr.wizard_classifier_data = classifier_data mgr.classifier_data = orig_classifier_data
|
10491db4e7a3a059160ec55848768e52fb920909 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9857/10491db4e7a3a059160ec55848768e52fb920909/dialog_map.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
13412,
1609,
14522,
12,
13552,
16,
642,
16,
4007,
4672,
1930,
1140,
16,
3301,
16,
4691,
324,
528,
281,
67,
1969,
273,
1140,
18,
803,
18,
5701,
12,
13552,
18,
892,
67,
5149,
16,
4662,
18366,
91,
452,
8,
1886,
67,
70,
528,
281,
67,
6231,
7923,
31923,
67,
1969,
273,
1140,
18,
803,
18,
5701,
12,
13552,
18,
892,
67,
5149,
16,
4662,
18366,
91,
452,
8,
1886,
67,
2150,
67,
6231,
7923,
25294,
273,
5378,
364,
1110,
316,
3552,
84,
363,
3113,
3552,
1966,
6877,
25294,
18,
6923,
12,
70,
528,
281,
67,
1969,
15,
408,
13,
25294,
18,
6923,
12,
27574,
67,
1969,
15,
408,
13,
642,
18,
31837,
18,
5814,
67,
17584,
67,
1973,
273,
25294,
468,
4199,
1492,
1319,
3301,
358,
999,
16,
471,
752,
518,
18,
8558,
797,
273,
3301,
18,
967,
3245,
1318,
797,
1435,
1319,
67,
4181,
273,
8558,
797,
12,
70,
528,
281,
67,
1969,
16,
31923,
67,
1969,
13,
14622,
67,
892,
273,
3301,
18,
13860,
751,
12,
1966,
67,
4181,
16,
13333,
13,
14622,
67,
892,
18,
2570,
1908,
1435,
225,
400,
3644,
273,
642,
18,
17584,
18,
455,
3644,
225,
309,
400,
3644,
30,
20298,
273,
261,
67,
2932,
14527,
6,
3631,
263,
23,
3631,
261,
67,
2932,
24660,
6,
3631,
263,
21,
3631,
261,
67,
2932,
1541,
6053,
6,
3631,
263,
26,
13,
469,
30,
20298,
273,
261,
67,
2932,
14527,
6,
3631,
263,
29,
3631,
261,
67,
2932,
24660,
6,
3631,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
13412,
1609,
14522,
12,
13552,
16,
642,
16,
4007,
4672,
1930,
1140,
16,
3301,
16,
4691,
324,
528,
281,
67,
1969,
273,
1140,
18,
803,
18,
5701,
12,
13552,
18,
892,
67,
5149,
16,
4662,
18366,
91,
452,
8,
1886,
67,
70,
528,
281,
67,
6231,
7923,
31923,
67,
1969,
273,
1140,
18,
803,
18,
5701,
12,
13552,
18,
892,
67,
5149,
16,
4662,
18366,
91,
452,
8,
1886,
67,
2150,
67,
6231,
7923,
25294,
273,
5378,
364,
1110,
316,
3552,
84,
363,
3113,
3552,
1966,
6877,
25294,
18,
6923,
12,
70,
528,
281,
67,
1969,
15,
408,
13,
25294,
18,
6923,
12,
27574,
67,
1969,
15,
408,
13,
642,
18,
31837,
18,
5814,
67,
17584,
67,
2
] |
input = f.read(512) if input == "": break
|
input = f.read(size = 512, waitForBytes = 512)
|
def __response__(self): """ Read the response sent back by the LSCsegFindServer. Parse out the return code with 0 for success and non-zero for error, and then the list of strings representing the returned result(s).
|
ee57ec4f852f4cbebc6c10f7aa39cc148f6ab013 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/ee57ec4f852f4cbebc6c10f7aa39cc148f6ab013/LSCsegFindClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2740,
972,
12,
2890,
4672,
3536,
2720,
326,
766,
3271,
1473,
635,
326,
511,
2312,
5680,
3125,
2081,
18,
2884,
596,
326,
327,
981,
598,
374,
364,
2216,
471,
1661,
17,
7124,
364,
555,
16,
471,
1508,
326,
666,
434,
2064,
5123,
326,
2106,
563,
12,
87,
2934,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2740,
972,
12,
2890,
4672,
3536,
2720,
326,
766,
3271,
1473,
635,
326,
511,
2312,
5680,
3125,
2081,
18,
2884,
596,
326,
327,
981,
598,
374,
364,
2216,
471,
1661,
17,
7124,
364,
555,
16,
471,
1508,
326,
666,
434,
2064,
5123,
326,
2106,
563,
12,
87,
2934,
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
] |
order_by, tables, clause = obj._order_calc(cursor, user, field_name, otype, context=context)
|
order_by, tables, tables_args = obj._order_calc(cursor, user, field_name, otype, context=context)
|
def _order_calc(self, cursor, user, field, otype, context=None): order_by = [] tables = [] field_name = None table_name = None link_field = None clause = ''
|
151ca4d00596ae2adeea6a9a25f559f6b8e7f729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/151ca4d00596ae2adeea6a9a25f559f6b8e7f729/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1019,
67,
12448,
12,
2890,
16,
3347,
16,
729,
16,
652,
16,
320,
723,
16,
819,
33,
7036,
4672,
1353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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1019,
67,
12448,
12,
2890,
16,
3347,
16,
729,
16,
652,
16,
320,
723,
16,
819,
33,
7036,
4672,
1353,
67,
1637,
273,
5378,
4606,
273,
5378,
652,
67,
529,
273,
599,
1014,
67,
529,
273,
599,
1692,
67,
1518,
273,
599,
6591,
273,
875,
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
] |
p.plot = 1
|
if plot: p.plot = 1 else: p.plot = 0
|
def df(cur_u): """The gradient of the cost function. NOT USED right now. """ if gradient_u is not None and \ max(gradient_u - cur_u) < GRADIENT_THRESHOLD: print "Using existing gradient" else: print "Recalculating gradient" f(cur_u) return gradient
|
f13fa0823b3e7cf20d4468ee3fab52c74faf6bb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f13fa0823b3e7cf20d4468ee3fab52c74faf6bb9/shooting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3013,
12,
1397,
67,
89,
4672,
3536,
1986,
10292,
434,
326,
6991,
445,
18,
225,
4269,
14988,
40,
2145,
2037,
18,
3536,
309,
10292,
67,
89,
353,
486,
599,
471,
521,
943,
12,
20219,
67,
89,
300,
662,
67,
89,
13,
411,
15228,
17708,
2222,
67,
23840,
30,
1172,
315,
7736,
2062,
10292,
6,
469,
30,
1172,
315,
426,
12780,
1776,
10292,
6,
284,
12,
1397,
67,
89,
13,
225,
327,
10292,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3013,
12,
1397,
67,
89,
4672,
3536,
1986,
10292,
434,
326,
6991,
445,
18,
225,
4269,
14988,
40,
2145,
2037,
18,
3536,
309,
10292,
67,
89,
353,
486,
599,
471,
521,
943,
12,
20219,
67,
89,
300,
662,
67,
89,
13,
411,
15228,
17708,
2222,
67,
23840,
30,
1172,
315,
7736,
2062,
10292,
6,
469,
30,
1172,
315,
426,
12780,
1776,
10292,
6,
284,
12,
1397,
67,
89,
13,
225,
327,
10292,
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
] |
setup( name = "roundup", version = __version__, description = "A simple-to-use and -install issue-tracking system"
|
setup_args = { 'name': "roundup", 'version': __version__, 'description': "A simple-to-use and -install issue-tracking system"
|
def main(): # build list of scripts from their implementation modules roundup_scripts = map(scriptname, glob('roundup/scripts/[!_]*.py')) # template munching packagelist = [ 'roundup', 'roundup.cgi', 'roundup.cgi.PageTemplates', 'roundup.cgi.TAL', 'roundup.cgi.ZTUtils', 'roundup.backends', 'roundup.scripts', ] installdatafiles = [ ('share/roundup/cgi-bin', ['cgi-bin/roundup.cgi']), ] py_modules = ['roundup.demo',] # install man pages on POSIX platforms if os.name == 'posix': installdatafiles.append(('man/man1', ['doc/roundup-admin.1', 'doc/roundup-mailgw.1', 'doc/roundup-server.1', 'doc/roundup-demo.1'])) # add the templates to the data files lists from roundup.init import listTemplates templates = [t['path'] for t in listTemplates('templates').values()] for tdir in templates: # scan for data files for idir in '. detectors extensions html'.split(): idir = os.path.join(tdir, idir) if not os.path.isdir(idir): continue tfiles = [] for f in os.listdir(idir): if f.startswith('.'): continue ifile = os.path.join(idir, f) if os.path.isfile(ifile): tfiles.append(ifile) installdatafiles.append( (os.path.join('share', 'roundup', idir), tfiles) ) # add message files for (_dist_file, _mo_file) in list_message_files(): installdatafiles.append((os.path.dirname(_mo_file), [os.path.join("build", _mo_file)])) # perform the setup action from roundup import __version__ setup( name = "roundup", version = __version__, description = "A simple-to-use and -install issue-tracking system" " with command-line, web and e-mail interfaces. Highly" " customisable.", long_description =
|
b1533aef4e5285c30f61b0d75ffc8403a1945ebe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b1533aef4e5285c30f61b0d75ffc8403a1945ebe/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1361,
666,
434,
8873,
628,
3675,
4471,
4381,
3643,
416,
67,
12827,
273,
852,
12,
4263,
529,
16,
4715,
2668,
2260,
416,
19,
12827,
19,
63,
5,
67,
5772,
18,
2074,
26112,
225,
468,
1542,
312,
4384,
310,
2298,
346,
5449,
273,
306,
296,
2260,
416,
2187,
296,
2260,
416,
18,
19062,
2187,
296,
2260,
416,
18,
19062,
18,
1964,
8218,
2187,
296,
2260,
416,
18,
19062,
18,
20849,
2187,
296,
2260,
416,
18,
19062,
18,
62,
56,
1989,
2187,
296,
2260,
416,
18,
823,
5839,
2187,
296,
2260,
416,
18,
12827,
2187,
308,
3799,
892,
2354,
273,
306,
7707,
14419,
19,
2260,
416,
19,
19062,
17,
4757,
2187,
10228,
19062,
17,
4757,
19,
2260,
416,
18,
19062,
3546,
3631,
308,
2395,
67,
6400,
273,
10228,
2260,
416,
18,
27928,
2187,
65,
225,
468,
3799,
3161,
4689,
603,
13803,
31773,
17422,
309,
1140,
18,
529,
422,
296,
24463,
4278,
3799,
892,
2354,
18,
6923,
12,
2668,
4728,
19,
4728,
21,
2187,
10228,
2434,
19,
2260,
416,
17,
3666,
18,
21,
2187,
296,
2434,
19,
2260,
416,
17,
4408,
28500,
18,
21,
2187,
296,
2434,
19,
2260,
416,
17,
3567,
18,
21,
2187,
296,
2434,
19,
2260,
416,
17,
27928,
18,
21,
3546,
3719,
225,
468,
527,
326,
5539,
358,
326,
501,
1390,
6035,
628,
3643,
416,
18,
2738,
1930,
666,
8218,
5539,
273,
306,
88,
3292,
803,
3546,
364,
268,
316,
666,
8218,
2668,
8502,
16063,
2372,
1435,
65,
364,
268,
1214,
316,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1361,
666,
434,
8873,
628,
3675,
4471,
4381,
3643,
416,
67,
12827,
273,
852,
12,
4263,
529,
16,
4715,
2668,
2260,
416,
19,
12827,
19,
63,
5,
67,
5772,
18,
2074,
26112,
225,
468,
1542,
312,
4384,
310,
2298,
346,
5449,
273,
306,
296,
2260,
416,
2187,
296,
2260,
416,
18,
19062,
2187,
296,
2260,
416,
18,
19062,
18,
1964,
8218,
2187,
296,
2260,
416,
18,
19062,
18,
20849,
2187,
296,
2260,
416,
18,
19062,
18,
62,
56,
1989,
2187,
296,
2260,
416,
18,
823,
5839,
2187,
296,
2260,
416,
18,
12827,
2187,
308,
3799,
892,
2354,
273,
306,
7707,
14419,
19,
2260,
416,
19,
19062,
17,
4757,
2187,
10228,
19062,
17,
4757,
19,
2260,
2
] |
library_dirs=[dblib_dir], runtime_library_dirs=[dblib_dir],
|
library_dirs=dblib_dir, runtime_library_dirs=dblib_dir,
|
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
c6b4ea30c40d923a15612c5713674d94e2efc1fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c6b4ea30c40d923a15612c5713674d94e2efc1fe/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.filter = 1 self.rsz = 'large' self.safe = 'off'
|
self.filter = FILTER_ON self.rsz = RSZ_LARGE self.safe = SAFE_OFF
|
def __init__(self,query,pages=10): self.pages = pages #Number of pages. default 10 self.query = query self.filter = 1 #Controls turning on or off the duplicate content filter. On = 1. self.rsz = 'large' #Results per page. small = 4 /large = 8 self.safe = 'off' #SafeBrowsing - active/moderate/off
|
52bde302eb267a4f6ed28911af4539771bc8e9c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7667/52bde302eb267a4f6ed28911af4539771bc8e9c0/pygoogle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2271,
16,
7267,
33,
2163,
4672,
365,
18,
7267,
273,
4689,
1850,
468,
1854,
434,
4689,
18,
805,
1728,
365,
18,
2271,
273,
843,
365,
18,
2188,
273,
404,
2398,
468,
16795,
7005,
310,
603,
578,
3397,
326,
6751,
913,
1034,
18,
2755,
273,
404,
18,
365,
18,
5453,
94,
273,
296,
14095,
11,
1850,
468,
3447,
1534,
1363,
18,
5264,
273,
1059,
342,
14095,
273,
1725,
365,
18,
4626,
273,
296,
3674,
11,
6647,
468,
9890,
38,
492,
2470,
300,
225,
2695,
19,
1711,
12600,
19,
3674,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2271,
16,
7267,
33,
2163,
4672,
365,
18,
7267,
273,
4689,
1850,
468,
1854,
434,
4689,
18,
805,
1728,
365,
18,
2271,
273,
843,
365,
18,
2188,
273,
404,
2398,
468,
16795,
7005,
310,
603,
578,
3397,
326,
6751,
913,
1034,
18,
2755,
273,
404,
18,
365,
18,
5453,
94,
273,
296,
14095,
11,
1850,
468,
3447,
1534,
1363,
18,
5264,
273,
1059,
342,
14095,
273,
1725,
365,
18,
4626,
273,
296,
3674,
11,
6647,
468,
9890,
38,
492,
2470,
300,
225,
2695,
19,
1711,
12600,
19,
3674,
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
] |
msg = redmsg("The simulator dynamic library [sim.so on Mac or Linux, in " + self.dylib_path +
|
msg = redmsg("The simulator dynamic library [sim.so or sim.dll, in " + self.dylib_path +
|
def set_options_errQ(self): #e maybe split further into several setup methods? #bruce 051115 removed unused 'options' arg """Set movie alist (from simaspect or entire part); debug-msg if it was already set (and always ignore old value). Figure out and set filenames, including sim executable path. All inputs and outputs are self attrs or globals or other obj attrs... except, return error code if sim executable missing or on other errors detected by subrs. old docstring: Caller should specify the options for this simulator run (including the output file name); these might affect the input file we write for it and/or the arguments given to the simulator executable. Temporary old-code compatibility: use self._movie for simsetup params and other needed params, and store new ones into it. """ part = self.part movie = self._movie
|
1b271c6587937f68aea28be8430dee01969ca7a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1b271c6587937f68aea28be8430dee01969ca7a4/runSim.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2116,
67,
370,
53,
12,
2890,
4672,
468,
73,
6944,
1416,
9271,
1368,
11392,
3875,
2590,
35,
468,
2848,
3965,
15331,
2499,
3600,
3723,
10197,
296,
2116,
11,
1501,
3536,
694,
21360,
524,
376,
261,
2080,
3142,
23579,
578,
7278,
1087,
1769,
1198,
17,
3576,
309,
518,
1703,
1818,
444,
261,
464,
3712,
2305,
1592,
460,
2934,
18818,
596,
471,
444,
9066,
16,
6508,
3142,
9070,
589,
18,
4826,
4540,
471,
6729,
854,
365,
3422,
578,
10941,
578,
1308,
1081,
3422,
2777,
1335,
16,
327,
555,
981,
309,
3142,
9070,
3315,
578,
603,
1308,
1334,
8316,
635,
720,
5453,
18,
225,
1592,
14525,
30,
20646,
1410,
4800,
326,
702,
364,
333,
3142,
11775,
1086,
261,
31348,
326,
876,
585,
508,
1769,
4259,
4825,
13418,
326,
810,
585,
732,
1045,
364,
518,
471,
19,
280,
326,
1775,
864,
358,
326,
3142,
11775,
9070,
18,
22791,
1592,
17,
710,
8926,
30,
999,
365,
6315,
8683,
13120,
364,
3142,
8401,
859,
471,
1308,
3577,
859,
16,
471,
1707,
394,
5945,
1368,
518,
18,
3536,
1087,
273,
365,
18,
2680,
21360,
273,
365,
6315,
8683,
13120,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2116,
67,
370,
53,
12,
2890,
4672,
468,
73,
6944,
1416,
9271,
1368,
11392,
3875,
2590,
35,
468,
2848,
3965,
15331,
2499,
3600,
3723,
10197,
296,
2116,
11,
1501,
3536,
694,
21360,
524,
376,
261,
2080,
3142,
23579,
578,
7278,
1087,
1769,
1198,
17,
3576,
309,
518,
1703,
1818,
444,
261,
464,
3712,
2305,
1592,
460,
2934,
18818,
596,
471,
444,
9066,
16,
6508,
3142,
9070,
589,
18,
4826,
4540,
471,
6729,
854,
365,
3422,
578,
10941,
578,
1308,
1081,
3422,
2777,
1335,
16,
327,
555,
981,
309,
3142,
9070,
3315,
578,
603,
1308,
1334,
8316,
635,
720,
5453,
18,
225,
1592,
14525,
30,
20646,
1410,
4800,
326,
702,
364,
333,
3142,
11775,
1086,
261,
31348,
2
] |
f.write(" CFR="+str(round(s.circ_from_rate,2))+" ") f.write(" CTR="+str(round(s.circ_to_rate,2))+" ") f.write(" CBR="+str(round(s.circ_bi_rate,2))+" ") f.write(" CFE="+str(round(s.avg_first_ext,2))+" ") f.write(" SBW="+str(round(s.sbw,2))+" ") f.write(" FBW="+str(round(s.filt_sbw,2))+" ") f.write(" PR="+str(round(s.percentile,1))+"\n")
|
f.write(" CFR="+str(cvt(s.circ_from_rate,2))+" ") f.write(" CTR="+str(cvt(s.circ_to_rate,2))+" ") f.write(" CBR="+str(cvt(s.circ_bi_rate,2))+" ") f.write(" CFE="+str(cvt(s.avg_first_ext,2))+" ") f.write(" SBW="+str(cvt(s.sbw,2))+" ") f.write(" FBW="+str(cvt(s.filt_sbw,2))+" ") f.write(" PR="+str(cvt(s.percentile,1))+"\n") f.flush()
|
def write_stats(f, pct_low=0, pct_high=100, order_by=None, recompute=False, stat_clause=None, filter_clause=None): ratio_key = """SQLSupport Statistics: SR=Stream avg ratio AR=Advertised bw ratio BRR=Adv. bw avg ratio CSR=Circ suspect ratio CFR=Circ Fail Ratio SSR=Stream suspect ratio SFR=Stream fail ratio CC=Circuit Count SC=Stream Count P=Percentile Rank U=Uptime (h)\n"""
|
c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce/SQLSupport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
5296,
12,
74,
16,
19857,
67,
821,
33,
20,
16,
19857,
67,
8766,
33,
6625,
16,
1353,
67,
1637,
33,
7036,
16,
30067,
33,
8381,
16,
610,
67,
18128,
33,
7036,
16,
1034,
67,
18128,
33,
7036,
4672,
7169,
67,
856,
273,
3536,
3997,
6289,
22964,
30,
19145,
33,
1228,
11152,
7169,
377,
6052,
33,
1871,
1097,
5918,
12986,
7169,
565,
605,
17950,
33,
28915,
18,
12986,
11152,
7169,
26942,
33,
10887,
71,
11375,
1181,
7169,
225,
6123,
54,
33,
10887,
71,
8911,
534,
4197,
4202,
348,
10090,
33,
1228,
11375,
1181,
7169,
348,
9981,
33,
1228,
2321,
7169,
282,
16525,
33,
21719,
6974,
1850,
8795,
33,
1228,
6974,
453,
33,
8410,
398,
534,
2304,
4202,
587,
33,
57,
10650,
261,
76,
5153,
82,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
5296,
12,
74,
16,
19857,
67,
821,
33,
20,
16,
19857,
67,
8766,
33,
6625,
16,
1353,
67,
1637,
33,
7036,
16,
30067,
33,
8381,
16,
610,
67,
18128,
33,
7036,
16,
1034,
67,
18128,
33,
7036,
4672,
7169,
67,
856,
273,
3536,
3997,
6289,
22964,
30,
19145,
33,
1228,
11152,
7169,
377,
6052,
33,
1871,
1097,
5918,
12986,
7169,
565,
605,
17950,
33,
28915,
18,
12986,
11152,
7169,
26942,
33,
10887,
71,
11375,
1181,
7169,
225,
6123,
54,
33,
10887,
71,
8911,
534,
4197,
4202,
348,
10090,
33,
1228,
11375,
1181,
7169,
348,
9981,
33,
1228,
2321,
7169,
282,
16525,
33,
21719,
6974,
1850,
8795,
33,
1228,
6974,
453,
33,
8410,
398,
534,
2304,
4202,
2
] |
self.lbfgsinit = 0 self.ITR = 1
|
self.ITR = None
|
def initialize(self): self.lbfgsinit = 0 self.ITR = 1 self.f_old = None self.r_old = None
|
758df1e6225a0ea14ea8cf66ffcf1e4073732124 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/758df1e6225a0ea14ea8cf66ffcf1e4073732124/lbfgs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
225,
365,
18,
1285,
54,
273,
599,
365,
18,
74,
67,
1673,
273,
599,
365,
18,
86,
67,
1673,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"resultsLog", "workspace", "displayInfo"
|
"resultsLog", "workspace", "displayInfo", "infoLineEdit"
|
def import_to_global(modname, attrs=None, math=False): """ import_to_global(modname, (a,b,c,...), math): like "from modname import a,b,c,...", but imports to global namespace (__main__). If math==True, also registers functions with QtiPlot's math function list. """ import sys import os sys.path.append(os.path.dirname(__file__)) mod = __import__(modname) for submod in modname.split(".")[1:]: mod = getattr(mod, submod) if attrs==None: attrs=dir(mod) for name in attrs: f = getattr(mod, name) setattr(__main__, name, f) # make functions available in QtiPlot's math function list if math and callable(f): qti.mathFunctions[name] = f
|
228a6c50f2986e8b378eca1bd5adcb7a2f00cad3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2185/228a6c50f2986e8b378eca1bd5adcb7a2f00cad3/qtiplotrc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
3422,
33,
7036,
16,
4233,
33,
8381,
4672,
3536,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
261,
69,
16,
70,
16,
71,
16,
2777,
3631,
4233,
4672,
3007,
315,
2080,
16037,
1930,
279,
16,
70,
16,
71,
16,
7070,
16,
1496,
10095,
358,
2552,
1981,
261,
972,
5254,
972,
2934,
971,
4233,
631,
5510,
16,
2546,
10285,
4186,
598,
29074,
11532,
1807,
4233,
445,
666,
18,
3536,
1930,
2589,
1930,
1140,
2589,
18,
803,
18,
6923,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3719,
681,
273,
1001,
5666,
972,
12,
1711,
529,
13,
364,
720,
1711,
316,
16037,
18,
4939,
2932,
1199,
25146,
21,
30,
14542,
681,
273,
3869,
12,
1711,
16,
720,
1711,
13,
309,
3422,
631,
7036,
30,
3422,
33,
1214,
12,
1711,
13,
364,
508,
316,
3422,
30,
284,
273,
3869,
12,
1711,
16,
508,
13,
9241,
12,
972,
5254,
972,
16,
508,
16,
284,
13,
468,
1221,
4186,
2319,
316,
29074,
11532,
1807,
4233,
445,
666,
309,
4233,
471,
4140,
12,
74,
4672,
1043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,
1711,
529,
16,
3422,
33,
7036,
16,
4233,
33,
8381,
4672,
3536,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
261,
69,
16,
70,
16,
71,
16,
2777,
3631,
4233,
4672,
3007,
315,
2080,
16037,
1930,
279,
16,
70,
16,
71,
16,
7070,
16,
1496,
10095,
358,
2552,
1981,
261,
972,
5254,
972,
2934,
971,
4233,
631,
5510,
16,
2546,
10285,
4186,
598,
29074,
11532,
1807,
4233,
445,
666,
18,
3536,
1930,
2589,
1930,
1140,
2589,
18,
803,
18,
6923,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3719,
681,
273,
1001,
5666,
972,
12,
1711,
529,
13,
364,
720,
1711,
316,
16037,
18,
4939,
2932,
1199,
25146,
21,
2
] |
setattr(self, prefix+varname, init_locals[varname])
|
setattr(self, prefix+varname, tmp[varname])
|
def adopt_init_args(exclusions=[], prefix="", frames_back=0): frame = sys._getframe(frames_back+1) varnames = frame.f_code.co_varnames exclusions.append(varnames[0]) # self init_locals = frame.f_locals self = init_locals[varnames[0]] for varname in varnames: if (varname not in exclusions): setattr(self, prefix+varname, init_locals[varname]) if ("__init__varnames__" not in exclusions): setattr(self, "__init__varnames__", varnames)
|
4ea04b9447f6225f2694da1930c74e645f579721 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/4ea04b9447f6225f2694da1930c74e645f579721/introspection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1261,
3838,
67,
2738,
67,
1968,
12,
338,
25364,
22850,
6487,
1633,
1546,
3113,
7793,
67,
823,
33,
20,
4672,
2623,
273,
2589,
6315,
588,
3789,
12,
10278,
67,
823,
15,
21,
13,
569,
1973,
273,
2623,
18,
74,
67,
710,
18,
2894,
67,
90,
1303,
753,
29523,
18,
6923,
12,
90,
1303,
753,
63,
20,
5717,
468,
365,
1208,
67,
17977,
273,
2623,
18,
74,
67,
17977,
365,
273,
1208,
67,
17977,
63,
90,
1303,
753,
63,
20,
13563,
364,
15434,
316,
569,
1973,
30,
309,
261,
1401,
529,
486,
316,
29523,
4672,
9241,
12,
2890,
16,
1633,
15,
1401,
529,
16,
1853,
63,
1401,
529,
5717,
309,
7566,
972,
2738,
972,
90,
1303,
753,
14437,
486,
316,
29523,
4672,
9241,
12,
2890,
16,
10425,
2738,
972,
90,
1303,
753,
972,
3113,
569,
1973,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1261,
3838,
67,
2738,
67,
1968,
12,
338,
25364,
22850,
6487,
1633,
1546,
3113,
7793,
67,
823,
33,
20,
4672,
2623,
273,
2589,
6315,
588,
3789,
12,
10278,
67,
823,
15,
21,
13,
569,
1973,
273,
2623,
18,
74,
67,
710,
18,
2894,
67,
90,
1303,
753,
29523,
18,
6923,
12,
90,
1303,
753,
63,
20,
5717,
468,
365,
1208,
67,
17977,
273,
2623,
18,
74,
67,
17977,
365,
273,
1208,
67,
17977,
63,
90,
1303,
753,
63,
20,
13563,
364,
15434,
316,
569,
1973,
30,
309,
261,
1401,
529,
486,
316,
29523,
4672,
9241,
12,
2890,
16,
1633,
15,
1401,
529,
16,
1853,
63,
1401,
529,
5717,
309,
7566,
972,
2738,
972,
90,
1303,
753,
14437,
486,
2
] |
def get_printer(self):
|
def get_printer(self, set_horz_margins=False):
|
def get_printer(self): printer = get_pdf_printer() printer.setPaperSize(QSizeF(self.size[0] * 10, self.size[1] * 10), QPrinter.Millimeter) printer.setPageMargins(0, 0, 0, 0, QPrinter.Point) printer.setOrientation(orientation(self.opts.orientation)) printer.setOutputFormat(QPrinter.PdfFormat) printer.setFullPage(True) return printer
|
779dad005ec6600f9fca3ab5772540ce84f2c87f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/779dad005ec6600f9fca3ab5772540ce84f2c87f/writer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
30439,
12,
2890,
16,
444,
67,
76,
280,
94,
67,
10107,
87,
33,
8381,
4672,
12539,
273,
336,
67,
7699,
67,
30439,
1435,
12539,
18,
542,
27339,
1225,
12,
53,
1225,
42,
12,
2890,
18,
1467,
63,
20,
65,
380,
1728,
16,
365,
18,
1467,
63,
21,
65,
380,
1728,
3631,
2238,
12149,
18,
49,
737,
28051,
13,
12539,
18,
542,
1964,
28528,
12,
20,
16,
374,
16,
374,
16,
374,
16,
2238,
12149,
18,
2148,
13,
12539,
18,
542,
14097,
12,
19235,
12,
2890,
18,
4952,
18,
19235,
3719,
12539,
18,
542,
1447,
1630,
12,
53,
12149,
18,
18562,
1630,
13,
12539,
18,
542,
5080,
1964,
12,
5510,
13,
327,
12539,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
30439,
12,
2890,
16,
444,
67,
76,
280,
94,
67,
10107,
87,
33,
8381,
4672,
12539,
273,
336,
67,
7699,
67,
30439,
1435,
12539,
18,
542,
27339,
1225,
12,
53,
1225,
42,
12,
2890,
18,
1467,
63,
20,
65,
380,
1728,
16,
365,
18,
1467,
63,
21,
65,
380,
1728,
3631,
2238,
12149,
18,
49,
737,
28051,
13,
12539,
18,
542,
1964,
28528,
12,
20,
16,
374,
16,
374,
16,
374,
16,
2238,
12149,
18,
2148,
13,
12539,
18,
542,
14097,
12,
19235,
12,
2890,
18,
4952,
18,
19235,
3719,
12539,
18,
542,
1447,
1630,
12,
53,
12149,
18,
18562,
1630,
13,
12539,
18,
542,
5080,
1964,
12,
5510,
13,
327,
12539,
2,
-100,
-100,
-100,
-100
] |
LOG('XWFMailingList', INFO, 'found individual moderation: %s, %s' % (msg.sender, moderatedlist))
|
m = '%s (%s): found individual moderation <%s> %s' % \ (self.getProperty('title', ''), self.getId(), msg.sender, moderatedlist) log.info(m)
|
def processModeration(self, REQUEST): # a hook for handling the moderation stage of processing the email mailString = getMailFromRequest(REQUEST) # TODO: erradicate splitMail usage (header, body) = MailBoxerTools.splitMail(mailString)
|
022876f88e927316bd924ded9b9dc1cbc88f4167 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/022876f88e927316bd924ded9b9dc1cbc88f4167/XWFMailingList.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1739,
7067,
12,
2890,
16,
12492,
4672,
468,
279,
3953,
364,
5057,
326,
681,
7067,
6009,
434,
4929,
326,
2699,
4791,
780,
273,
31991,
25074,
12,
5519,
13,
225,
468,
2660,
30,
6445,
6012,
2659,
1416,
6759,
4084,
261,
3374,
16,
1417,
13,
273,
11542,
3514,
264,
10348,
18,
4939,
6759,
12,
4408,
780,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1739,
7067,
12,
2890,
16,
12492,
4672,
468,
279,
3953,
364,
5057,
326,
681,
7067,
6009,
434,
4929,
326,
2699,
4791,
780,
273,
31991,
25074,
12,
5519,
13,
225,
468,
2660,
30,
6445,
6012,
2659,
1416,
6759,
4084,
261,
3374,
16,
1417,
13,
273,
11542,
3514,
264,
10348,
18,
4939,
6759,
12,
4408,
780,
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
] |
amsplot_file.write("\t\tif (!(" + mincut + minop + "Event.fHeader." + splitvar[1] + ")) return;\n")
|
amsplot_file.write("\t\tif (!(" + mincut + minop + "Event.fHeader." + splitvar[1] + ")) continue;\n")
|
def make_amsplot_file(filearray, options, full_variable): root_h = os.environ["AMSDir"] + "/include/root.h" if os.path.exists(root_h): root_h_file = file(root_h,"r") else: print "Header file \"" + root_h + "\" does not exist; EXIT" sys.exit() amsplot_file = file("amsplot.C","w") amsplot_file.write("int amsplot() {\n") amsplot_file.write("\tgROOT->Reset();\n") amsplot_file.write("\tgSystem->Load(\"$AMSDir/lib/linux/icc/ntuple.so\");\n") amsplot_file.write("\n\tTChain chain(\"AMSRoot\");\n") for filename in filearray: if "--list" in options: filelist = file(filename,"r") for rootfile in filelist.readlines(): rootfile = rootfile.rstrip() amsplot_file.write("\tchain.Add(\"" + rootfile + "\");\n") filelist.close() else: amsplot_file.write("\tchain.Add(\"" + filename +"\");\n") amsplot_file.write("\tchain.SetMakeClass(1);\n") amsplot_file.write("\n\tAMSEventR Event;\n") amsplot_file.write("\tEvent.SetBranchA(&chain);\n") match1 = re.search(r'^([^<>!=]+)([<>=!]+)(\w+[^<>!=]+)([<>=!]+)([^<>=!]+)$',full_variable) match2 = re.search(r'^(\w+[^<>!=]+)([<>=!]+)([^<>=!]+)$',full_variable) match3 = re.search(r'^([^<>!=]+)([<>=!]+)(\w+[^<>!=]+)$',full_variable) if match1: # print "min<var<max: " + match.group(1:) mincut = process_cut(match1.group(1)) minop = process_operator(match1.group(2)) variable = process_variable(match1.group(3),root_h_file) maxop = process_operator(match1.group(4)) maxcut = process_cut(match1.group(5)) elif match2: # print "var<max: " + match.group(1:) mincut = False minop = False variable = process_variable(match2.group(1),root_h_file) maxop = process_operator(match2.group(2)) maxcut = process_cut(match2.group(3)) elif match3: # print "min<var: " + match.group(1:) mincut = process_cut(match3.group(1)) minop = process_operator(match3.group(2)) variable = process_variable(match3.group(3),root_h_file) maxop = False maxcut = False else: # print "Only var: " + full_variable mincut = False minop = False variable = process_variable(full_variable,root_h_file) maxop = False maxcut = False splitvar = variable.split(".") amsplot_file.write("\n\th_test = new TH1F(\"h_test\",\"" + full_variable + "\",100,0.,0.);\n\n") amsplot_file.write("\tfor (int entry=0; entry<chain.GetEntries(); entry++) {\n") amsplot_file.write("\t\tchain.GetEntry(entry);\n") if len(splitvar)>1: if splitvar[0]!="Header": amsplot_file.write("\t\tfor (int i=0; i<Event.n" + splitvar[0] + "(); i++){\n" ) if mincut: amsplot_file.write("\t\t\tif (!(" + mincut + minop + "Event." + splitvar[0] + "(i)." + splitvar[1] + ")) continue;\n") if maxcut: amsplot_file.write("\t\t\tif (!(Event." + splitvar[0] + "(i)." + splitvar[1] + maxop + maxcut + ")) continue;\n") amsplot_file.write("\t\t\th_test->Fill(Event." + splitvar[0] + "(i)." + splitvar[1] + ");\n") amsplot_file.write("\t\t}\n") else: if mincut: amsplot_file.write("\t\tif (!(" + mincut + minop + "Event.fHeader." + splitvar[1] + ")) return;\n") if maxcut: amsplot_file.write("\t\tif (!(Event.fHeader." + splitvar[1] + maxop + maxcut + ")) return;\n") amsplot_file.write("\t\th_test->Fill(Event.fHeader." + splitvar[1] + ");\n") else: if mincut: amsplot_file.write("\t\tif (!(" + mincut + minop + "Event.n" + splitvar[0] + "())) return;\n") if maxcut: amsplot_file.write("\t\tif (!(Event.n" + splitvar[0] + "()" + maxop + maxcut + ")) return;\n") amsplot_file.write("\t\th_test->Fill(Event.n" + splitvar[0] + "());\n") amsplot_file.write("\t}\n\n" ) amsplot_file.write("\th_test->Draw();\n") amsplot_file.write("}\n\n") amsplot_file.close()
|
9689e764b8b8e7923f8b5c34efc8c3a521914646 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6657/9689e764b8b8e7923f8b5c34efc8c3a521914646/amsplot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
301,
87,
4032,
67,
768,
12,
768,
1126,
16,
702,
16,
1983,
67,
6105,
4672,
1365,
67,
76,
273,
1140,
18,
28684,
9614,
2192,
55,
1621,
11929,
397,
2206,
6702,
19,
3085,
18,
76,
6,
309,
1140,
18,
803,
18,
1808,
12,
3085,
67,
76,
4672,
1365,
67,
76,
67,
768,
273,
585,
12,
3085,
67,
76,
10837,
86,
7923,
469,
30,
1172,
315,
1864,
585,
11843,
397,
1365,
67,
76,
397,
7023,
1552,
486,
1005,
31,
28407,
6,
2589,
18,
8593,
1435,
225,
279,
959,
4032,
67,
768,
273,
585,
2932,
301,
87,
4032,
18,
39,
15937,
91,
7923,
225,
279,
959,
4032,
67,
768,
18,
2626,
2932,
474,
279,
959,
4032,
1435,
18890,
82,
7923,
279,
959,
4032,
67,
768,
18,
2626,
31458,
88,
75,
9185,
2122,
7013,
5621,
64,
82,
7923,
279,
959,
4032,
67,
768,
18,
2626,
31458,
88,
75,
3163,
2122,
2563,
23031,
8,
2192,
55,
1621,
19,
2941,
19,
20132,
19,
335,
71,
19,
496,
2268,
18,
2048,
2412,
20472,
82,
7923,
279,
959,
4032,
67,
768,
18,
2626,
31458,
82,
64,
88,
56,
3893,
2687,
23031,
2192,
55,
2375,
2412,
20472,
82,
7923,
225,
364,
1544,
316,
585,
1126,
30,
309,
5238,
1098,
6,
316,
702,
30,
26204,
273,
585,
12,
3459,
10837,
86,
7923,
364,
1365,
768,
316,
26204,
18,
896,
3548,
13332,
1365,
768,
273,
1365,
768,
18,
86,
6406,
1435,
279,
959,
4032,
67,
768,
18,
2626,
31458,
88,
5639,
18,
986,
12,
8530,
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,
1221,
67,
301,
87,
4032,
67,
768,
12,
768,
1126,
16,
702,
16,
1983,
67,
6105,
4672,
1365,
67,
76,
273,
1140,
18,
28684,
9614,
2192,
55,
1621,
11929,
397,
2206,
6702,
19,
3085,
18,
76,
6,
309,
1140,
18,
803,
18,
1808,
12,
3085,
67,
76,
4672,
1365,
67,
76,
67,
768,
273,
585,
12,
3085,
67,
76,
10837,
86,
7923,
469,
30,
1172,
315,
1864,
585,
11843,
397,
1365,
67,
76,
397,
7023,
1552,
486,
1005,
31,
28407,
6,
2589,
18,
8593,
1435,
225,
279,
959,
4032,
67,
768,
273,
585,
2932,
301,
87,
4032,
18,
39,
15937,
91,
7923,
225,
279,
959,
4032,
67,
768,
18,
2626,
2932,
474,
279,
959,
4032,
1435,
18890,
82,
2
] |
or cmp(x.sortorder, y.sortorder))
|
or cmp(x.sortorder, y.sortorder))
|
def sorted_news_listing(self, p_objects=[], skey='', rkey=0): """Return sorted events""" results = [] if not skey or skey == 'news_date': p_objects.sort(lambda x,y: cmp(y.news_date, x.news_date) \ or cmp(x.sortorder, y.sortorder)) if not rkey: p_objects.reverse() results.extend(p_objects) else: if rkey: rkey=1 l_objects = utSortObjsByLocaleAttr(p_objects, skey, rkey, self.gl_get_selected_language()) results.extend(l_objects) return results
|
ffeb211164a19371c4ffa202b70c9aa9c9628d54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/ffeb211164a19371c4ffa202b70c9aa9c9628d54/SEMIDESite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3115,
67,
18443,
67,
21228,
12,
2890,
16,
293,
67,
6911,
22850,
6487,
272,
856,
2218,
2187,
436,
856,
33,
20,
4672,
3536,
990,
3115,
2641,
8395,
1686,
273,
5378,
309,
486,
272,
856,
578,
272,
856,
422,
296,
18443,
67,
712,
4278,
293,
67,
6911,
18,
3804,
12,
14661,
619,
16,
93,
30,
9411,
12,
93,
18,
18443,
67,
712,
16,
619,
18,
18443,
67,
712,
13,
521,
578,
9411,
12,
92,
18,
29068,
16,
677,
18,
29068,
3719,
309,
486,
436,
856,
30,
293,
67,
6911,
18,
9845,
1435,
1686,
18,
14313,
12,
84,
67,
6911,
13,
469,
30,
309,
436,
856,
30,
436,
856,
33,
21,
328,
67,
6911,
273,
5218,
4416,
2675,
87,
858,
3916,
3843,
12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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3115,
67,
18443,
67,
21228,
12,
2890,
16,
293,
67,
6911,
22850,
6487,
272,
856,
2218,
2187,
436,
856,
33,
20,
4672,
3536,
990,
3115,
2641,
8395,
1686,
273,
5378,
309,
486,
272,
856,
578,
272,
856,
422,
296,
18443,
67,
712,
4278,
293,
67,
6911,
18,
3804,
12,
14661,
619,
16,
93,
30,
9411,
12,
93,
18,
18443,
67,
712,
16,
619,
18,
18443,
67,
712,
13,
521,
578,
9411,
12,
92,
18,
29068,
16,
677,
18,
29068,
3719,
309,
486,
436,
856,
30,
293,
67,
6911,
18,
9845,
1435,
1686,
18,
14313,
12,
84,
67,
6911,
13,
469,
30,
309,
436,
856,
30,
436,
856,
33,
21,
328,
67,
6911,
273,
5218,
4416,
2675,
87,
858,
2
] |
if note[0].GetValue() is '':
|
if not note[0].GetValue():
|
def OnNotes(self, event): full = True for note in self.annotations: if note[0].GetValue() is '': full = False if note[1].GetValue() is '': full = False if full: name = wx.TextCtrl(self.panel, -1, '') value = wx.TextCtrl(self.panel, -1, '') self.notebox.SetRows(self.notebox.GetRows()+1) self.notebox.Add(name) self.notebox.Add(value) self.annotations.append((name,value)) self.Bind(wx.EVT_TEXT, self.OnNotes, name) self.Bind(wx.EVT_TEXT, self.OnNotes, value) self.SendSizeEvent()
|
0e4b71c28f452e890aac550085597534729bddfd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9486/0e4b71c28f452e890aac550085597534729bddfd/AnnotateFrame.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
18063,
12,
2890,
16,
871,
4672,
1983,
273,
1053,
364,
4721,
316,
365,
18,
14670,
30,
309,
486,
4721,
63,
20,
8009,
967,
620,
13332,
1983,
273,
1083,
309,
4721,
63,
21,
8009,
967,
620,
1435,
353,
875,
30,
1983,
273,
1083,
309,
1983,
30,
508,
273,
7075,
18,
1528,
12418,
12,
2890,
18,
13916,
16,
300,
21,
16,
28707,
460,
273,
7075,
18,
1528,
12418,
12,
2890,
18,
13916,
16,
300,
21,
16,
28707,
365,
18,
7652,
2147,
18,
694,
4300,
12,
2890,
18,
7652,
2147,
18,
967,
4300,
1435,
15,
21,
13,
365,
18,
7652,
2147,
18,
986,
12,
529,
13,
365,
18,
7652,
2147,
18,
986,
12,
1132,
13,
365,
18,
14670,
18,
6923,
12443,
529,
16,
1132,
3719,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
5151,
16,
365,
18,
1398,
18063,
16,
508,
13,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
5151,
16,
365,
18,
1398,
18063,
16,
460,
13,
365,
18,
3826,
1225,
1133,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
18063,
12,
2890,
16,
871,
4672,
1983,
273,
1053,
364,
4721,
316,
365,
18,
14670,
30,
309,
486,
4721,
63,
20,
8009,
967,
620,
13332,
1983,
273,
1083,
309,
4721,
63,
21,
8009,
967,
620,
1435,
353,
875,
30,
1983,
273,
1083,
309,
1983,
30,
508,
273,
7075,
18,
1528,
12418,
12,
2890,
18,
13916,
16,
300,
21,
16,
28707,
460,
273,
7075,
18,
1528,
12418,
12,
2890,
18,
13916,
16,
300,
21,
16,
28707,
365,
18,
7652,
2147,
18,
694,
4300,
12,
2890,
18,
7652,
2147,
18,
967,
4300,
1435,
15,
21,
13,
365,
18,
7652,
2147,
18,
986,
12,
529,
13,
365,
18,
7652,
2147,
18,
986,
12,
1132,
13,
365,
18,
14670,
18,
6923,
2
] |
'matchingRules':MatchingRule
|
'matchingRules':MatchingRule, 'matchingRulesUse':MatchingRuleUse,
|
def __init__(self,sub_schema,entry={}): ldap.cidict.cidict.__init__(self) for k,v in entry.items(): try: self[sub_schema.name2oid[AttributeType][k]] = v except KeyError: self[k] = v
|
b6f41870b706b7c894e5e073f60e00eafe2e147f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/b6f41870b706b7c894e5e073f60e00eafe2e147f/schema.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1717,
67,
4821,
16,
4099,
12938,
4672,
8079,
18,
13478,
933,
18,
13478,
933,
16186,
2738,
972,
12,
2890,
13,
364,
417,
16,
90,
316,
1241,
18,
3319,
13332,
775,
30,
365,
63,
1717,
67,
4821,
18,
529,
22,
839,
63,
19529,
6362,
79,
13563,
273,
331,
1335,
4999,
30,
365,
63,
79,
65,
273,
331,
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,
1001,
2738,
972,
12,
2890,
16,
1717,
67,
4821,
16,
4099,
12938,
4672,
8079,
18,
13478,
933,
18,
13478,
933,
16186,
2738,
972,
12,
2890,
13,
364,
417,
16,
90,
316,
1241,
18,
3319,
13332,
775,
30,
365,
63,
1717,
67,
4821,
18,
529,
22,
839,
63,
19529,
6362,
79,
13563,
273,
331,
1335,
4999,
30,
365,
63,
79,
65,
273,
331,
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
] |
content += unicode(s, charset)
|
if charset is not None: content += unicode(s, charset) else: content += unicode(s)
|
def process_incoming_mail(self, msg): to = self.get_email_address_ident(msg, 'To') reply_to = self.get_email_address_ident(msg, 'In-Reply-To') if not reply_to: print >>sys.stderr, 'This is not a reply (no Reply-To field)' return 1
|
f5cf4795eb8ea05d8c450ce39e465c0c1db98a29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/f5cf4795eb8ea05d8c450ce39e465c0c1db98a29/monboob.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
31033,
67,
4408,
12,
2890,
16,
1234,
4672,
358,
273,
365,
18,
588,
67,
3652,
67,
2867,
67,
6392,
12,
3576,
16,
296,
774,
6134,
4332,
67,
869,
273,
365,
18,
588,
67,
3652,
67,
2867,
67,
6392,
12,
3576,
16,
296,
382,
17,
7817,
17,
774,
6134,
309,
486,
4332,
67,
869,
30,
1172,
1671,
9499,
18,
11241,
16,
296,
2503,
353,
486,
279,
4332,
261,
2135,
16202,
17,
774,
652,
2506,
327,
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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3652,
67,
2867,
67,
6392,
12,
3576,
16,
296,
774,
6134,
4332,
67,
869,
273,
365,
18,
588,
67,
3652,
67,
2867,
67,
6392,
12,
3576,
16,
296,
382,
17,
7817,
17,
774,
6134,
309,
486,
4332,
67,
869,
30,
1172,
1671,
9499,
18,
11241,
16,
296,
2503,
353,
486,
279,
4332,
261,
2135,
16202,
17,
774,
652,
2506,
327,
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
] |
return apply (os.path.join, tail)
|
if tail: return apply (os.path.join, tail) else: return ''
|
def get_package_dir (self, package): """Return the directory, relative to the top of the source distribution, where package 'package' should be found (at least according to the 'package_dir' option, if any)."""
|
4258e786196ec9ba5005ca7bb37cde23cf56bf21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4258e786196ec9ba5005ca7bb37cde23cf56bf21/build_py.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5610,
67,
1214,
261,
2890,
16,
2181,
4672,
3536,
990,
326,
1867,
16,
3632,
358,
326,
1760,
434,
326,
1084,
7006,
16,
1625,
2181,
296,
5610,
11,
1410,
506,
1392,
261,
270,
4520,
4888,
358,
326,
296,
5610,
67,
1214,
11,
1456,
16,
309,
1281,
13,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5610,
67,
1214,
261,
2890,
16,
2181,
4672,
3536,
990,
326,
1867,
16,
3632,
358,
326,
1760,
434,
326,
1084,
7006,
16,
1625,
2181,
296,
5610,
11,
1410,
506,
1392,
261,
270,
4520,
4888,
358,
326,
296,
5610,
67,
1214,
11,
1456,
16,
309,
1281,
13,
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
] |
tst = gdaltest.GDALTest('BSB', file_to_test, 1, 54674, filename_absolute = 1 )
|
tst = gdaltest.GDALTest('BSB', file_to_test, 1, 63005, filename_absolute = 1 )
|
def bsb_online_1(): if not gdaltest.download_file('http://www.charts.noaa.gov/RNCs/14850.zip', '14850.zip'): return 'skip' try: os.stat('tmp/cache/14850_1.KAP') file_to_test = 'tmp/cache/14850_1.KAP' except: try: print 'Uncompressing ZIP file...' import zipfile zfobj = zipfile.ZipFile('tmp/cache/14850.zip') outfile = open('tmp/cache/14850_1.KAP', 'wb') outfile.write(zfobj.read('BSB_ROOT/14850/14850_1.KAP')) outfile.close() file_to_test = 'tmp/cache/14850_1.KAP' except: print 'Reading BSB from ZIP file (slow)...' file_to_test = '/vsizip/tmp/cache/14850.zip/BSB_ROOT/14850/14850_1.KAP' tst = gdaltest.GDALTest('BSB', file_to_test, 1, 54674, filename_absolute = 1 ) return tst.testOpen()
|
d89761938acb7a6a80ead2ce303f3a04d01c3f28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/d89761938acb7a6a80ead2ce303f3a04d01c3f28/bsb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
70,
67,
21026,
67,
21,
13332,
225,
309,
486,
15551,
2390,
395,
18,
7813,
67,
768,
2668,
2505,
2207,
5591,
18,
11563,
87,
18,
2135,
7598,
18,
75,
1527,
19,
54,
10346,
87,
19,
25005,
3361,
18,
4450,
2187,
296,
25005,
3361,
18,
4450,
11,
4672,
327,
296,
7457,
11,
225,
775,
30,
1140,
18,
5642,
2668,
5645,
19,
2493,
19,
25005,
3361,
67,
21,
18,
47,
2203,
6134,
585,
67,
869,
67,
3813,
273,
296,
5645,
19,
2493,
19,
25005,
3361,
67,
21,
18,
47,
2203,
11,
1335,
30,
775,
30,
1172,
296,
984,
14706,
310,
18277,
585,
7821,
1930,
18823,
998,
27936,
273,
18823,
18,
29394,
2668,
5645,
19,
2493,
19,
25005,
3361,
18,
4450,
6134,
8756,
273,
1696,
2668,
5645,
19,
2493,
19,
25005,
3361,
67,
21,
18,
47,
2203,
2187,
296,
9464,
6134,
8756,
18,
2626,
12,
94,
27936,
18,
896,
2668,
12692,
38,
67,
9185,
19,
25005,
3361,
19,
25005,
3361,
67,
21,
18,
47,
2203,
26112,
8756,
18,
4412,
1435,
585,
67,
869,
67,
3813,
273,
296,
5645,
19,
2493,
19,
25005,
3361,
67,
21,
18,
47,
2203,
11,
1335,
30,
1172,
296,
15714,
605,
14541,
628,
18277,
585,
261,
87,
821,
13,
7821,
585,
67,
869,
67,
3813,
273,
1173,
6904,
452,
625,
19,
5645,
19,
2493,
19,
25005,
3361,
18,
4450,
19,
12692,
38,
67,
9185,
19,
25005,
3361,
19,
25005,
3361,
67,
21,
18,
47,
2203,
11,
225,
268,
334,
273,
15551,
2390,
395,
18,
27338,
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,
7081,
70,
67,
21026,
67,
21,
13332,
225,
309,
486,
15551,
2390,
395,
18,
7813,
67,
768,
2668,
2505,
2207,
5591,
18,
11563,
87,
18,
2135,
7598,
18,
75,
1527,
19,
54,
10346,
87,
19,
25005,
3361,
18,
4450,
2187,
296,
25005,
3361,
18,
4450,
11,
4672,
327,
296,
7457,
11,
225,
775,
30,
1140,
18,
5642,
2668,
5645,
19,
2493,
19,
25005,
3361,
67,
21,
18,
47,
2203,
6134,
585,
67,
869,
67,
3813,
273,
296,
5645,
19,
2493,
19,
25005,
3361,
67,
21,
18,
47,
2203,
11,
1335,
30,
775,
30,
1172,
296,
984,
14706,
310,
18277,
585,
7821,
1930,
18823,
998,
27936,
273,
18823,
18,
29394,
2668,
5645,
19,
2493,
19,
25005,
3361,
18,
4450,
2
] |
if lower(HTTP_AUTHORIZATION[:6]) != 'basic ': return None
|
if lower(HTTP_AUTHORIZATION[:6]) != 'basic ': if roles is None: return '' return None
|
def old_validation(groups, HTTP_AUTHORIZATION, roles=UNSPECIFIED_ROLES): global base64 if base64 is None: import base64 if lower(HTTP_AUTHORIZATION[:6]) != 'basic ': return None [name,password] = string.splitfields( base64.decodestring( split(HTTP_AUTHORIZATION)[-1]), ':') if roles is None: return name keys=None try: keys=groups.keys except: try: groups=groups() # Maybe it was a method defining a group keys=groups.keys except: pass if keys is not None: # OK, we have a named group, so apply the roles to the named # group. if roles is UNSPECIFIED_ROLES: roles=keys() g=[] for role in roles: if groups.has_key(role): g.append(groups[role]) groups=g for d in groups: if d.has_key(name) and d[name]==password: return name if keys is None: # Not a named group, so don't go further raise 'Forbidden', ( """<strong>You are not authorized to access this resource""") return None
|
ce36b9e307df69ea62df6d1e120ffd941cc06920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/ce36b9e307df69ea62df6d1e120ffd941cc06920/Publish.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1592,
67,
8685,
12,
4650,
16,
2239,
67,
17866,
2689,
16,
4900,
33,
2124,
13847,
13519,
67,
30797,
4672,
2552,
1026,
1105,
309,
1026,
1105,
353,
599,
30,
1930,
1026,
1105,
225,
309,
2612,
12,
3693,
67,
17866,
2689,
10531,
26,
5717,
480,
296,
13240,
4290,
309,
4900,
353,
599,
30,
327,
875,
327,
599,
306,
529,
16,
3664,
65,
273,
533,
18,
4939,
2821,
12,
1026,
1105,
18,
4924,
1145,
371,
12,
1416,
12,
3693,
67,
17866,
2689,
13,
18919,
21,
65,
3631,
3921,
13,
225,
309,
4900,
353,
599,
30,
327,
508,
225,
1311,
33,
7036,
775,
30,
1311,
33,
4650,
18,
2452,
1335,
30,
775,
30,
3252,
33,
4650,
1435,
468,
14024,
518,
1703,
279,
707,
9364,
279,
1041,
1311,
33,
4650,
18,
2452,
1335,
30,
1342,
225,
309,
1311,
353,
486,
599,
30,
468,
7791,
16,
732,
1240,
279,
4141,
1041,
16,
1427,
2230,
326,
4900,
358,
326,
4141,
468,
1041,
18,
309,
4900,
353,
26049,
10106,
13519,
67,
30797,
30,
4900,
33,
2452,
1435,
314,
33,
8526,
364,
2478,
316,
4900,
30,
309,
3252,
18,
5332,
67,
856,
12,
4615,
4672,
314,
18,
6923,
12,
4650,
63,
4615,
5717,
3252,
33,
75,
225,
364,
302,
316,
3252,
30,
309,
302,
18,
5332,
67,
856,
12,
529,
13,
471,
302,
63,
529,
65,
631,
3664,
30,
327,
508,
225,
309,
1311,
353,
599,
30,
468,
2288,
279,
4141,
1041,
16,
1427,
2727,
1404,
1960,
9271,
1002,
296,
16553,
2187,
261,
3536,
32,
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,
1592,
67,
8685,
12,
4650,
16,
2239,
67,
17866,
2689,
16,
4900,
33,
2124,
13847,
13519,
67,
30797,
4672,
2552,
1026,
1105,
309,
1026,
1105,
353,
599,
30,
1930,
1026,
1105,
225,
309,
2612,
12,
3693,
67,
17866,
2689,
10531,
26,
5717,
480,
296,
13240,
4290,
309,
4900,
353,
599,
30,
327,
875,
327,
599,
306,
529,
16,
3664,
65,
273,
533,
18,
4939,
2821,
12,
1026,
1105,
18,
4924,
1145,
371,
12,
1416,
12,
3693,
67,
17866,
2689,
13,
18919,
21,
65,
3631,
3921,
13,
225,
309,
4900,
353,
599,
30,
327,
508,
225,
1311,
33,
7036,
775,
30,
1311,
33,
4650,
18,
2452,
1335,
30,
775,
30,
3252,
33,
4650,
1435,
468,
14024,
518,
1703,
279,
2
] |
m[0] = '3' m[PAGESIZE +3: PAGESIZE +3+3] = 'bar'
|
m[0] = b'3' m[PAGESIZE +3: PAGESIZE +3+3] = b'bar'
|
def test_basic(self): # Test mmap module on Unix systems and Windows
|
d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
12,
2890,
4672,
468,
7766,
30749,
1605,
603,
9480,
14908,
471,
8202,
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
] |
print 'Mopath: no valid curves in file: %s' % filename
|
print 'Mopath: no valid curves in file.'
|
def loadNodePath(self, nodePath, fReset = 1): if fReset: self.reset()
|
0c5dcd0b66c13f81753fbb2d6b00d42e7ffe2c25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/0c5dcd0b66c13f81753fbb2d6b00d42e7ffe2c25/Mopath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
907,
743,
12,
2890,
16,
20758,
16,
284,
7013,
273,
404,
4672,
309,
284,
7013,
30,
365,
18,
6208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1262,
907,
743,
12,
2890,
16,
20758,
16,
284,
7013,
273,
404,
4672,
309,
284,
7013,
30,
365,
18,
6208,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bc.apply(printer)
|
def test_beziercurve2d(): bc = BezierCurve2D([(0,0,0),(4,2,0),(2,4,0),(4,6,0),(0,8,0)]) bc.apply(printer) eval_code(bc)
|
5af742fb7bba9aa7cc5692e378c2cd775320b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/799/5af742fb7bba9aa7cc5692e378c2cd775320b880/test_pyprinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2196,
18377,
16683,
22,
72,
13332,
6533,
273,
4823,
18377,
9423,
22,
40,
3816,
12,
20,
16,
20,
16,
20,
3631,
12,
24,
16,
22,
16,
20,
3631,
12,
22,
16,
24,
16,
20,
3631,
12,
24,
16,
26,
16,
20,
3631,
12,
20,
16,
28,
16,
20,
13,
5717,
5302,
67,
710,
12,
13459,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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12,
24,
16,
22,
16,
20,
3631,
12,
22,
16,
24,
16,
20,
3631,
12,
24,
16,
26,
16,
20,
3631,
12,
20,
16,
28,
16,
20,
13,
5717,
5302,
67,
710,
12,
13459,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
@authorize(h.auth.has_planetfeed_role)
|
@authorize(h.auth.has_organiser_role)
|
def partners_programme(self): """ List of partners programme contacts [Partners Programme] """ partners_list = meta.Session.query(Product).filter(Product.category.has(name = 'Partners Programme')).all() c.text = "*Checkin and checkout dates aren't an accurate source." c.columns = ['Partner Type', 'Qty', 'Registration Name', 'Registration e-mail', 'Partners name', 'Partners e-mail', 'Partners mobile', 'Checkin*', 'Checkout*'] c.data = [] for item in partners_list: for invoice_item in item.invoice_items: if invoice_item.invoice.paid() and not invoice_item.invoice.is_void(): c.data.append([item.description, invoice_item.qty, invoice_item.invoice.person.firstname + " " + invoice_item.invoice.person.lastname, invoice_item.invoice.person.email_address, invoice_item.invoice.person.registration.partner_name, invoice_item.invoice.person.registration.partner_email, invoice_item.invoice.person.registration.partner_mobile, invoice_item.invoice.person.registration.checkin, invoice_item.invoice.person.registration.checkout ]) return table_response()
|
1e9c9c895105fc6397c08b702746c3e45ec1364c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12856/1e9c9c895105fc6397c08b702746c3e45ec1364c/admin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1087,
9646,
67,
12890,
3501,
12,
2890,
4672,
3536,
987,
434,
1087,
9646,
5402,
3501,
14841,
306,
1988,
9646,
13586,
3501,
65,
3536,
1087,
9646,
67,
1098,
273,
2191,
18,
2157,
18,
2271,
12,
4133,
2934,
2188,
12,
4133,
18,
4743,
18,
5332,
12,
529,
273,
296,
1988,
9646,
13586,
3501,
6134,
2934,
454,
1435,
276,
18,
955,
273,
15902,
1564,
267,
471,
13926,
7811,
11526,
1404,
392,
22380,
1084,
1199,
276,
18,
5112,
273,
10228,
1988,
1224,
1412,
2187,
296,
53,
4098,
2187,
296,
7843,
1770,
2187,
296,
7843,
425,
17,
4408,
2187,
296,
1988,
9646,
508,
2187,
296,
1988,
9646,
425,
17,
4408,
2187,
296,
1988,
9646,
13411,
2187,
296,
1564,
267,
14,
2187,
296,
18581,
14,
3546,
276,
18,
892,
273,
5378,
364,
761,
316,
1087,
9646,
67,
1098,
30,
364,
9179,
67,
1726,
316,
761,
18,
16119,
67,
3319,
30,
309,
9179,
67,
1726,
18,
16119,
18,
29434,
1435,
471,
486,
9179,
67,
1726,
18,
16119,
18,
291,
67,
6459,
13332,
276,
18,
892,
18,
6923,
3816,
1726,
18,
3384,
16,
9179,
67,
1726,
18,
85,
4098,
16,
9179,
67,
1726,
18,
16119,
18,
12479,
18,
26576,
397,
315,
315,
397,
9179,
67,
1726,
18,
16119,
18,
12479,
18,
27410,
16,
9179,
67,
1726,
18,
16119,
18,
12479,
18,
3652,
67,
2867,
16,
9179,
67,
1726,
18,
16119,
18,
12479,
18,
14170,
18,
31993,
67,
529,
16,
9179,
67,
1726,
18,
16119,
18,
12479,
18,
14170,
18,
31993,
67,
3652,
16,
9179,
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,
1087,
9646,
67,
12890,
3501,
12,
2890,
4672,
3536,
987,
434,
1087,
9646,
5402,
3501,
14841,
306,
1988,
9646,
13586,
3501,
65,
3536,
1087,
9646,
67,
1098,
273,
2191,
18,
2157,
18,
2271,
12,
4133,
2934,
2188,
12,
4133,
18,
4743,
18,
5332,
12,
529,
273,
296,
1988,
9646,
13586,
3501,
6134,
2934,
454,
1435,
276,
18,
955,
273,
15902,
1564,
267,
471,
13926,
7811,
11526,
1404,
392,
22380,
1084,
1199,
276,
18,
5112,
273,
10228,
1988,
1224,
1412,
2187,
296,
53,
4098,
2187,
296,
7843,
1770,
2187,
296,
7843,
425,
17,
4408,
2187,
296,
1988,
9646,
508,
2187,
296,
1988,
9646,
425,
17,
4408,
2187,
296,
1988,
9646,
13411,
2187,
296,
1564,
267,
14,
2187,
296,
18581,
2
] |
updated_acl_entry = self.doclist.Put(
|
updated_acl_entry = self.editClient.Put(
|
def testCreateAndUpdateAndDeleteAcl(self): # Add new ACL scope = gdata.docs.Scope(value=self.EMAIL, type=self.SCOPE_TYPE) role = gdata.docs.Role(value=self.ROLE_VALUE)
|
6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69/service_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1684,
1876,
1891,
1876,
2613,
13538,
12,
2890,
4672,
468,
1436,
394,
10098,
2146,
273,
314,
892,
18,
8532,
18,
3876,
12,
1132,
33,
2890,
18,
14686,
16,
618,
33,
2890,
18,
19444,
67,
2399,
13,
2478,
273,
314,
892,
18,
8532,
18,
2996,
12,
1132,
33,
2890,
18,
16256,
67,
4051,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1684,
1876,
1891,
1876,
2613,
13538,
12,
2890,
4672,
468,
1436,
394,
10098,
2146,
273,
314,
892,
18,
8532,
18,
3876,
12,
1132,
33,
2890,
18,
14686,
16,
618,
33,
2890,
18,
19444,
67,
2399,
13,
2478,
273,
314,
892,
18,
8532,
18,
2996,
12,
1132,
33,
2890,
18,
16256,
67,
4051,
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
] |
(status, o) = self.call ('GET', '/objects', query=query)
|
(status, o) = self.call('GET', '/objects', query=query)
|
def query (self, query): """Runs the query to get the IDs of objects satisfying the query. If the query is successful, the list of ids is returned, as a list; otherwise, an error code is returned. """ (status, o) = self.call ('GET', '/objects', query=query) return status if status != STATUS.OK else o['ids']
|
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
261,
2890,
16,
843,
4672,
3536,
9361,
326,
843,
358,
336,
326,
7115,
434,
2184,
9281,
14946,
326,
843,
18,
971,
326,
843,
353,
6873,
16,
326,
666,
434,
3258,
353,
2106,
16,
487,
279,
666,
31,
3541,
16,
392,
555,
981,
353,
2106,
18,
3536,
261,
2327,
16,
320,
13,
273,
365,
18,
1991,
2668,
3264,
2187,
1173,
6911,
2187,
843,
33,
2271,
13,
327,
1267,
309,
1267,
480,
7136,
18,
3141,
469,
320,
3292,
2232,
3546,
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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,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
261,
2890,
16,
843,
4672,
3536,
9361,
326,
843,
358,
336,
326,
7115,
434,
2184,
9281,
14946,
326,
843,
18,
971,
326,
843,
353,
6873,
16,
326,
666,
434,
3258,
353,
2106,
16,
487,
279,
666,
31,
3541,
16,
392,
555,
981,
353,
2106,
18,
3536,
261,
2327,
16,
320,
13,
273,
365,
18,
1991,
2668,
3264,
2187,
1173,
6911,
2187,
843,
33,
2271,
13,
327,
1267,
309,
1267,
480,
7136,
18,
3141,
469,
320,
3292,
2232,
3546,
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
] |
pkg_count = _pkg_count(packages)
|
pkg_count = len(packages)
|
def _sync(self): (self.options, self.args) = self.parser.parse_args() if not self.options.label: print("repo label required. Try --help") sys.exit(0) try: status = self.pconn.sync(self.options.label) if status: packages = self.pconn.packages(self.options.label) pkg_count = _pkg_count(packages) print _(" Sync Successful. Repo [ %s ] now has a total of [ %s ] packages" % (self.options.label, pkg_count)) except RestlibException, re: log.error("Error: %s" % re) systemExit(re.code, re.msg) except Exception, e: log.error("Error: %s" % e) raise
|
da073711866ef56507833c3a029ea1448c2ef911 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/da073711866ef56507833c3a029ea1448c2ef911/pulpcli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8389,
12,
2890,
4672,
261,
2890,
18,
2116,
16,
365,
18,
1968,
13,
273,
365,
18,
4288,
18,
2670,
67,
1968,
1435,
309,
486,
365,
18,
2116,
18,
1925,
30,
1172,
2932,
7422,
1433,
1931,
18,
6161,
1493,
5201,
7923,
2589,
18,
8593,
12,
20,
13,
775,
30,
1267,
273,
365,
18,
84,
4646,
18,
8389,
12,
2890,
18,
2116,
18,
1925,
13,
309,
1267,
30,
5907,
273,
225,
365,
18,
84,
4646,
18,
10308,
12,
2890,
18,
2116,
18,
1925,
13,
3475,
67,
1883,
273,
562,
12,
10308,
13,
1172,
389,
2932,
9721,
11958,
2706,
18,
15118,
306,
738,
87,
308,
2037,
711,
279,
2078,
434,
306,
738,
87,
308,
5907,
6,
738,
261,
2890,
18,
2116,
18,
1925,
16,
3475,
67,
1883,
3719,
1335,
6320,
2941,
503,
16,
283,
30,
613,
18,
1636,
2932,
668,
30,
738,
87,
6,
738,
283,
13,
2619,
6767,
12,
266,
18,
710,
16,
283,
18,
3576,
13,
1335,
1185,
16,
425,
30,
613,
18,
1636,
2932,
668,
30,
738,
87,
6,
738,
425,
13,
1002,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8389,
12,
2890,
4672,
261,
2890,
18,
2116,
16,
365,
18,
1968,
13,
273,
365,
18,
4288,
18,
2670,
67,
1968,
1435,
309,
486,
365,
18,
2116,
18,
1925,
30,
1172,
2932,
7422,
1433,
1931,
18,
6161,
1493,
5201,
7923,
2589,
18,
8593,
12,
20,
13,
775,
30,
1267,
273,
365,
18,
84,
4646,
18,
8389,
12,
2890,
18,
2116,
18,
1925,
13,
309,
1267,
30,
5907,
273,
225,
365,
18,
84,
4646,
18,
10308,
12,
2890,
18,
2116,
18,
1925,
13,
3475,
67,
1883,
273,
562,
12,
10308,
13,
1172,
389,
2932,
9721,
11958,
2706,
18,
15118,
306,
738,
87,
308,
2037,
711,
279,
2078,
434,
306,
738,
87,
308,
5907,
6,
738,
261,
2890,
18,
2
] |
self.control = os.path.abspath(control)
|
self.control = os.path.realpath(control) self._is_continuation = cont
|
def __init__(self, control, jobtag, cont, harness_type=None, use_external_logging = False, drop_caches=True): """ control The control file (pathname of) jobtag The job tag string (eg "default") cont If this is the continuation of this job harness_type An alternative server harness """ self.drop_caches = drop_caches if self.drop_caches: print "Dropping caches" autotest_utils.drop_caches()
|
d8f5b4be8c249feab4668edd5afd3af180dd0809 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/d8f5b4be8c249feab4668edd5afd3af180dd0809/job.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3325,
16,
1719,
2692,
16,
466,
16,
366,
1303,
403,
67,
723,
33,
7036,
16,
999,
67,
9375,
67,
11167,
273,
1083,
16,
3640,
67,
17703,
281,
33,
5510,
4672,
3536,
3325,
1021,
3325,
585,
261,
28336,
434,
13,
1719,
2692,
1021,
1719,
1047,
533,
261,
1332,
315,
1886,
7923,
466,
971,
333,
353,
326,
17378,
434,
333,
1719,
366,
1303,
403,
67,
723,
1922,
10355,
1438,
366,
1303,
403,
3536,
365,
18,
7285,
67,
17703,
281,
273,
3640,
67,
17703,
281,
309,
365,
18,
7285,
67,
17703,
281,
30,
1172,
315,
7544,
1382,
12535,
6,
2059,
352,
395,
67,
5471,
18,
7285,
67,
17703,
281,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3325,
16,
1719,
2692,
16,
466,
16,
366,
1303,
403,
67,
723,
33,
7036,
16,
999,
67,
9375,
67,
11167,
273,
1083,
16,
3640,
67,
17703,
281,
33,
5510,
4672,
3536,
3325,
1021,
3325,
585,
261,
28336,
434,
13,
1719,
2692,
1021,
1719,
1047,
533,
261,
1332,
315,
1886,
7923,
466,
971,
333,
353,
326,
17378,
434,
333,
1719,
366,
1303,
403,
67,
723,
1922,
10355,
1438,
366,
1303,
403,
3536,
365,
18,
7285,
67,
17703,
281,
273,
3640,
67,
17703,
281,
309,
365,
18,
7285,
67,
17703,
281,
30,
1172,
315,
7544,
1382,
12535,
6,
2059,
352,
395,
67,
5471,
18,
7285,
67,
17703,
281,
1435,
2,
-100,
-100,
-100,
-100,
-100
] |
self.treeviewEpisodes.append_column( gtk.TreeViewColumn( '', toggle_cell, active=self.COLUMN_TOGGLE))
|
toggle_column = gtk.TreeViewColumn('', toggle_cell, active=self.COLUMN_TOGGLE) toggle_column.set_clickable(True) self.treeviewEpisodes.append_column(toggle_column)
|
def new( self): self._config.connect_gtk_window(self.gPodderEpisodeSelector, 'episode_selector', True) if not hasattr( self, 'callback'): self.callback = None
|
efb1f147f09c18fcf2f7b3878a6ac07f267cf038 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/efb1f147f09c18fcf2f7b3878a6ac07f267cf038/episodeselector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
365,
4672,
365,
6315,
1425,
18,
3612,
67,
4521,
79,
67,
5668,
12,
2890,
18,
75,
5800,
765,
18918,
11802,
4320,
16,
296,
29687,
67,
9663,
2187,
1053,
13,
309,
486,
3859,
12,
365,
16,
296,
3394,
11,
4672,
365,
18,
3394,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
75,
5800,
765,
18918,
11802,
4320,
16,
296,
29687,
67,
9663,
2187,
1053,
13,
309,
486,
3859,
12,
365,
16,
296,
3394,
11,
4672,
365,
18,
3394,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not (replicas.has_key(se) and (replicas[se] == pfn)): return S_ERROR("This LFN is already registered with another SE/PFN") return S_OK(False)
|
if not ( replicas.has_key( se ) and ( replicas[se] == pfn ) ): return S_ERROR( "This LFN is already registered with another SE/PFN" ) return S_OK( False )
|
def __checkAddFile(self,lfn,pfn,size,se,guid,checksum): res = self.__getPathStat(lfn) if not res['OK']: if res['Message'] != 'No such file or directory': return S_ERROR("Failed to find pre-existance of LFN") else: fstat = res['Value'] if fstat.guid != guid: return S_ERROR("This LFN is already registered with another GUID") if fstat.filesize != size: return S_ERROR("This LFN is already registered with another size") if fstat.csumvalue != checksum: return S_ERROR("This LFN is already registered with another adler32") res = self.__getFileReplicas(lfn,True) if not res['OK']: return S_ERROR("Failed to obtain replicas for existing LFN") replicas = res['Value'] if not (replicas.has_key(se) and (replicas[se] == pfn)): return S_ERROR("This LFN is already registered with another SE/PFN") return S_OK(False) try: size = long(size) except: return S_ERROR("The size of the file must be an 'int','long' or 'string'") if not se: return S_ERROR("The SE for the file was not supplied.") if not pfn: return S_ERROR("The PFN for the file was not supplied.") if not lfn: return S_ERROR("The LFN for the file was not supplied.") if not guid: return S_ERROR("The GUID for the file was not supplied.") if not checksum: return S_ERROR("The adler32 for the file was not supplied.") return S_OK(True)
|
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
986,
812,
12,
2890,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
15149,
4672,
400,
273,
365,
16186,
588,
743,
5000,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
309,
400,
3292,
1079,
3546,
480,
296,
2279,
4123,
585,
578,
1867,
4278,
327,
348,
67,
3589,
2932,
2925,
358,
1104,
675,
17,
7398,
1359,
434,
18803,
50,
7923,
469,
30,
284,
5642,
273,
400,
3292,
620,
3546,
309,
284,
5642,
18,
14066,
480,
9875,
30,
327,
348,
67,
3589,
2932,
2503,
18803,
50,
353,
1818,
4104,
598,
4042,
20322,
7923,
309,
284,
5642,
18,
25511,
480,
963,
30,
327,
348,
67,
3589,
2932,
2503,
18803,
50,
353,
1818,
4104,
598,
4042,
963,
7923,
309,
284,
5642,
18,
71,
1364,
1132,
480,
6697,
30,
327,
348,
67,
3589,
2932,
2503,
18803,
50,
353,
1818,
4104,
598,
4042,
1261,
749,
1578,
7923,
400,
273,
365,
16186,
29925,
17248,
12,
80,
4293,
16,
5510,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
348,
67,
3589,
2932,
2925,
358,
7161,
21545,
364,
2062,
18803,
50,
7923,
21545,
273,
400,
3292,
620,
3546,
309,
486,
261,
21545,
18,
5332,
67,
856,
12,
695,
262,
471,
261,
21545,
63,
307,
65,
422,
293,
4293,
262,
262,
30,
327,
348,
67,
3589,
12,
315,
2503,
18803,
50,
353,
1818,
4104,
598,
4042,
3174,
19,
52,
19793,
6,
262,
327,
348,
67,
3141,
12,
1083,
262,
775,
30,
963,
273,
1525,
12,
1467,
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,
1893,
986,
812,
12,
2890,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
15149,
4672,
400,
273,
365,
16186,
588,
743,
5000,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
309,
400,
3292,
1079,
3546,
480,
296,
2279,
4123,
585,
578,
1867,
4278,
327,
348,
67,
3589,
2932,
2925,
358,
1104,
675,
17,
7398,
1359,
434,
18803,
50,
7923,
469,
30,
284,
5642,
273,
400,
3292,
620,
3546,
309,
284,
5642,
18,
14066,
480,
9875,
30,
327,
348,
67,
3589,
2932,
2503,
18803,
50,
353,
1818,
4104,
598,
4042,
20322,
7923,
309,
284,
5642,
18,
25511,
480,
963,
30,
327,
348,
67,
3589,
2932,
2503,
18803,
50,
353,
1818,
2
] |
csc.dtype.char = csc.data.dtype.char
|
csc.dtype = csc.data.dtype
|
def _imag(self): csc = self.tocsc() csc.data = imag(csc.data) csc.dtype.char = csc.data.dtype.char csc.ftype = _transtabl[csc.dtype.char] return csc
|
755141cd47edbf647cfcd8d09fd47ede3320459c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/755141cd47edbf647cfcd8d09fd47ede3320459c/sparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15374,
12,
2890,
4672,
276,
1017,
273,
365,
18,
1391,
1017,
1435,
276,
1017,
18,
892,
273,
8902,
12,
71,
1017,
18,
892,
13,
276,
1017,
18,
8972,
273,
276,
1017,
18,
892,
18,
8972,
276,
1017,
18,
74,
723,
273,
389,
13171,
334,
9237,
63,
71,
1017,
18,
8972,
18,
3001,
65,
327,
276,
1017,
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,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18,
892,
13,
276,
1017,
18,
8972,
273,
276,
1017,
18,
892,
18,
8972,
276,
1017,
18,
74,
723,
273,
389,
13171,
334,
9237,
63,
71,
1017,
18,
8972,
18,
3001,
65,
327,
276,
1017,
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
] |
self.setTabOrder(self.display_compass_checkbox,self.display_origin_axis_checkbox)
|
self.setTabOrder(self.display_compass_checkbox,self.display_compass_labels_checkbox) self.setTabOrder(self.display_compass_labels_checkbox,self.display_origin_axis_checkbox)
|
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
|
c76684571da81fcba257f890746ab0f891e8a720 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c76684571da81fcba257f890746ab0f891e8a720/UserPrefsDialog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
17638,
273,
374,
16,
2242,
273,
374,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
17638,
16,
2242,
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,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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,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
17638,
273,
374,
16,
2242,
273,
374,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
17638,
16,
2242,
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
] |
som1=hlr_test.generate_som()
|
som1 = hlr_test.generate_som()
|
def frequency_to_energy(obj,**kwargs): """ This function converts a primary axis of a SOM or SO from frequency to energy. The frequency axis for a SOM must be in units of THz. The primary axis of a SO is assumed to be in units of THz. A tuple of [frequency, frequency_err2] (assumed to be in units of THz) can be converted to [energy, energy_err2]. Parameters: ---------- -> obj is the SOM, SO or tuple to be converted -> kwargs is a list of key word arguments that the function accepts: units= a string containing the expected units for this function. The default for this function is THz Return: ------ <- A SOM or SO with a primary axis in energy or a tuple converted to energy Exceptions: ---------- <- TypeError is raised if the incoming object is not a type the function recognizes <- RuntimeError is raised if the SOM x-axis units are not THz """ # import the helper functions import hlr_utils # set up for working through data (result,res_descr)=hlr_utils.empty_result(obj) (o_descr,d_descr)=hlr_utils.get_descr(obj) # Setup keyword arguments try: units = kwargs["units"] except KeyError: units = "THz" # Primary axis for transformation. If a SO is passed, the function, will # assume the axis for transformation is at the 0 position if o_descr == "SOM": axis = hlr_utils.hlr_1D_units(obj, units) else: axis = 0 result=hlr_utils.copy_som_attr(result,res_descr,obj,o_descr) if o_descr == "SOM": result = hlr_utils.hlr_force_units(result, "meV", axis) result.setAxisLabel(axis, "energy transfer") result.setYUnits("Counts/meV") result.setYLabel("Intensity") else: pass # iterate through the values import axis_manip for i in range(hlr_utils.get_length(obj)): val = hlr_utils.get_value(obj,i,o_descr,"x",axis) err2 = hlr_utils.get_err2(obj,i,o_descr,"x",axis) value=axis_manip.frequency_to_energy(val, err2) map_so = hlr_utils.get_map_so(obj,None,i) hlr_utils.result_insert(result,res_descr,value,map_so,"x",axis) return result
|
a236c851290ad512721cd258e386f61f2599d46c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/a236c851290ad512721cd258e386f61f2599d46c/hlr_frequency_to_energy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8670,
67,
869,
67,
15358,
12,
2603,
16,
636,
4333,
4672,
3536,
1220,
445,
7759,
279,
3354,
2654,
434,
279,
348,
1872,
578,
7460,
628,
8670,
358,
12929,
18,
1021,
8670,
2654,
364,
279,
348,
1872,
1297,
506,
316,
4971,
434,
7662,
94,
18,
1021,
3354,
2654,
434,
279,
7460,
353,
12034,
358,
506,
316,
4971,
434,
7662,
94,
18,
432,
3193,
434,
306,
14092,
16,
8670,
67,
370,
22,
65,
261,
428,
379,
329,
358,
506,
316,
4971,
434,
7662,
94,
13,
848,
506,
5970,
358,
306,
15358,
16,
12929,
67,
370,
22,
8009,
225,
7012,
30,
12181,
317,
1081,
353,
326,
348,
1872,
16,
7460,
578,
3193,
358,
506,
5970,
317,
1205,
353,
279,
666,
434,
498,
2076,
1775,
716,
326,
445,
8104,
30,
4971,
33,
279,
533,
4191,
326,
2665,
4971,
364,
333,
445,
18,
1021,
805,
364,
333,
445,
353,
7662,
94,
225,
2000,
30,
31913,
3290,
432,
348,
1872,
578,
7460,
598,
279,
3354,
2654,
316,
12929,
578,
279,
3193,
5970,
358,
12929,
225,
12781,
30,
12181,
3290,
3580,
353,
11531,
309,
326,
6935,
733,
353,
486,
279,
618,
326,
445,
14603,
3128,
3290,
7265,
353,
11531,
309,
326,
348,
1872,
619,
17,
4890,
4971,
854,
486,
7662,
94,
3536,
225,
468,
1930,
326,
4222,
4186,
1930,
366,
10826,
67,
5471,
225,
468,
444,
731,
364,
5960,
3059,
501,
261,
2088,
16,
455,
67,
28313,
13,
33,
76,
10826,
67,
5471,
18,
5531,
67,
2088,
12,
2603,
13,
261,
83,
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,
8670,
67,
869,
67,
15358,
12,
2603,
16,
636,
4333,
4672,
3536,
1220,
445,
7759,
279,
3354,
2654,
434,
279,
348,
1872,
578,
7460,
628,
8670,
358,
12929,
18,
1021,
8670,
2654,
364,
279,
348,
1872,
1297,
506,
316,
4971,
434,
7662,
94,
18,
1021,
3354,
2654,
434,
279,
7460,
353,
12034,
358,
506,
316,
4971,
434,
7662,
94,
18,
432,
3193,
434,
306,
14092,
16,
8670,
67,
370,
22,
65,
261,
428,
379,
329,
358,
506,
316,
4971,
434,
7662,
94,
13,
848,
506,
5970,
358,
306,
15358,
16,
12929,
67,
370,
22,
8009,
225,
7012,
30,
12181,
317,
1081,
353,
326,
348,
1872,
16,
7460,
578,
3193,
358,
506,
5970,
317,
1205,
353,
279,
666,
434,
2
] |
self.Report=MetarReport lines=self.Report.fullreport.split("\n")
|
self.Report = MetarReport lines = self.Report.fullreport.split("\n")
|
def ParseReport(self, MetarReport=None): """Take report with raw info only and return it with in parsed values filled in. Note: This function edits the WeatherReport object you supply!""" if self.Report is None and MetarReport is None: raise EmptyReportException, \ "No report given on init and ParseReport()." elif MetarReport is not None: self.Report=MetarReport
|
fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4602/fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8/pymetar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
326,
1660,
4806,
4820,
733,
1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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
326,
1660,
4806,
4820,
733,
1846,
14467,
5,
8395,
309,
365,
18,
4820,
353,
599,
471,
21604,
297,
4820,
353,
599,
30,
1002,
8953,
4820,
503,
16,
521,
315,
2279,
2605,
864,
603,
1208,
471,
2884,
4820,
1435,
1199,
1327,
21604,
297,
4820,
353,
486,
599,
30,
365,
18,
4820,
33,
12244,
297,
4820,
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
] |
entriesbygid.setdefault(e.gr_gid, []).append(e) entriesbyname.setdefault(e.gr_name, []).append(e)
|
def test_values(self): entries = grp.getgrall() entriesbygid = {} entriesbyname = {}
|
10712bf02edf9dc6453a644a1361efdd2ba7215a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/10712bf02ed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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
3222,
1637,
15780,
273,
2618,
3222,
1637,
529,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
m=param_re.match(challenge)
|
m=_param_re.match(challenge)
|
def _final_challenge(self,challenge): """Process the second challenge from the server and return the response. :Parameters: - `challenge`: the challenge from server. :Types: - `challenge`: `str` :return: the response or a failure indicator. :returntype: `sasl.Response` or `sasl.Failure`""" if self.rspauth_checked: return Failure("extra-challenge") challenge=challenge.split('\x00')[0] rspauth=None while challenge: m=param_re.match(challenge) if not m: self.__logger.debug("Challenge syntax error: %r" % (challenge,)) return Failure("bad-challenge") challenge=m.group("rest") var=m.group("var") val=m.group("val") self.__logger.debug("%r: %r" % (var,val)) if var=="rspauth": rspauth=val if not rspauth: self.__logger.debug("Final challenge without rspauth") return Failure("bad-success") if rspauth==self.response_auth: self.rspauth_checked=1 return Response("") else: self.__logger.debug("Wrong rspauth value - peer is cheating?") self.__logger.debug("my rspauth: %r" % (self.response_auth,)) return Failure("bad-success")
|
1e1db4225095c220966b09e2e9bd16f3ebaf7760 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/1e1db4225095c220966b09e2e9bd16f3ebaf7760/digest_md5.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6385,
67,
25092,
12,
2890,
16,
25092,
4672,
3536,
2227,
326,
2205,
12948,
628,
326,
1438,
471,
327,
326,
766,
18,
225,
294,
2402,
30,
300,
1375,
25092,
68,
30,
326,
12948,
628,
1438,
18,
294,
2016,
30,
300,
1375,
25092,
68,
30,
1375,
701,
68,
225,
294,
2463,
30,
326,
766,
578,
279,
5166,
10664,
18,
294,
2463,
723,
30,
1375,
29361,
80,
18,
1064,
68,
578,
1375,
29361,
80,
18,
5247,
68,
8395,
309,
365,
18,
86,
1752,
1944,
67,
4532,
30,
327,
13436,
2932,
7763,
17,
25092,
7923,
12948,
33,
25092,
18,
4939,
2668,
64,
92,
713,
6134,
63,
20,
65,
12049,
1944,
33,
7036,
1323,
12948,
30,
312,
33,
67,
891,
67,
266,
18,
1916,
12,
25092,
13,
309,
486,
312,
30,
365,
16186,
4901,
18,
4148,
2932,
18359,
6279,
555,
30,
738,
86,
6,
738,
261,
25092,
16,
3719,
327,
13436,
2932,
8759,
17,
25092,
7923,
12948,
33,
81,
18,
1655,
2932,
8792,
7923,
569,
33,
81,
18,
1655,
2932,
1401,
7923,
1244,
33,
81,
18,
1655,
2932,
1125,
7923,
365,
16186,
4901,
18,
4148,
27188,
86,
30,
738,
86,
6,
738,
261,
1401,
16,
1125,
3719,
309,
569,
31713,
86,
1752,
1944,
6877,
12049,
1944,
33,
1125,
309,
486,
12049,
1944,
30,
365,
16186,
4901,
18,
4148,
2932,
7951,
12948,
2887,
12049,
1944,
7923,
327,
13436,
2932,
8759,
17,
4768,
7923,
309,
12049,
1944,
631,
2890,
18,
2740,
67,
1944,
30,
365,
18,
86,
1752,
1944,
67,
4532,
33,
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,
6385,
67,
25092,
12,
2890,
16,
25092,
4672,
3536,
2227,
326,
2205,
12948,
628,
326,
1438,
471,
327,
326,
766,
18,
225,
294,
2402,
30,
300,
1375,
25092,
68,
30,
326,
12948,
628,
1438,
18,
294,
2016,
30,
300,
1375,
25092,
68,
30,
1375,
701,
68,
225,
294,
2463,
30,
326,
766,
578,
279,
5166,
10664,
18,
294,
2463,
723,
30,
1375,
29361,
80,
18,
1064,
68,
578,
1375,
29361,
80,
18,
5247,
68,
8395,
309,
365,
18,
86,
1752,
1944,
67,
4532,
30,
327,
13436,
2932,
7763,
17,
25092,
7923,
12948,
33,
25092,
18,
4939,
2668,
64,
92,
713,
6134,
63,
20,
65,
12049,
1944,
33,
7036,
1323,
12948,
30,
312,
33,
67,
891,
67,
266,
2
] |
self.file=file self.path=path
|
self.file = file self.path = path
|
def __init__(self, file, path):
|
b7e7a72c1344601dbf61dee6f050b0b59093e02b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b7e7a72c1344601dbf61dee6f050b0b59093e02b/tempfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
16,
589,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
16,
589,
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
] |
'\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\\begin{document}\n\\begin{center}{\\Large\\bf Why was six afraid of seven?}\\end{center}\n\\vspace{40mm}\\[7\\]\n\n\\vfill\\hrule\\vfill\n\n\\[8\\]\n\n\\vfill\\hrule\\vfill\n\n\\[9\\]\n\\end{document}' """
|
'\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\n\\newcommand{\\ZZ}{\\mathbf{Z}}\n\\newcommand{\\RR}{\\mathbf{R}}\n\\newcommand{\\CC}{\\mathbf{C}}\n\\newcommand{\\QQ}{\\mathbf{Q}}\n\\newcommand{\\QQbar}{\\overline{\\mathbf{Q}}}\n\\newcommand{\\GF}[1]{\\mathbf{F}_{ """ from sage.misc.latex_macros import sage_latex_macros MACROS="\n" + "\n".join(sage_latex_macros) + "\n"
|
def _latex_file_(objects, title='SAGE', debug=False, \ sep='', tiny=False, math_left='\\[', math_right='\\]', extra_preamble=''): r"""nodetex Produce a string to be used as a LaTeX file, containing a representation of each object in objects. INPUT: - ``objects`` - list (or object) - ``title`` - string (default: 'Sage'): title for the document - ``math_left`` - string (default: '\\['), left delimiter for math mode - ``math_right`` - string (default: '\\]'), right delimiter for math mode - ``debug`` - bool (default: False): print verbose output - ``sep`` - string (default: ''): separator between math objects - ``tiny`` - bool (default: False): use 'tiny' font. - ``extra_preamble`` - string (default: ''): extra LaTeX commands, inserted before "\\begin{document}" This creates a string intended to be a LaTeX file containing the LaTeX representations of objects. It contains the following: - a header (with documentclass and usepackage commands) - ``extra_preamble`` - the title (centered) - a size specification if ``tiny`` is True - LaTeX representation of the first element of ``objects``, surrounded by ``math_left`` and ``math_right`` Then if ``objects`` contains more than one element, for each remaining element: - the string ``sep``: you can use this, for example, to add vertical space between objects with ``sep='\\vspace{15mm}'``, or to add a horizontal line between objects with ``sep='\\hrule'``, or to insert a page break between objects with ``sep='\\newpage'``. - the LaTeX representation of the element The string ends with '\\end{document}'. EXAMPLES:: sage: from sage.misc.latex import _latex_file_ sage: _latex_file_(3, title="The number three") '\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\\begin{document}\n\\begin{center}{\\Large\\bf The number three}\\end{center}\n\\vspace{40mm}\\[3\\]\n\\end{document}' sage: _latex_file_([7, 8, 9], title="Why was six afraid of seven?", sep='\\vfill\\hrule\\vfill') '\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\\begin{document}\n\\begin{center}{\\Large\\bf Why was six afraid of seven?}\\end{center}\n\\vspace{40mm}\\[7\\]\n\n\\vfill\\hrule\\vfill\n\n\\[8\\]\n\n\\vfill\\hrule\\vfill\n\n\\[9\\]\n\\end{document}' """ process = True if hasattr(objects, '_latex_'): objects = [objects] if hasattr(objects, '__doc__') and hasattr(objects, 'func_name'): process = False title = "\\begin{verbatim}%s\\end{verbatim}"%objects.func_name objects = [objects.__doc__] if not isinstance(objects, list): objects = [objects] if tiny: size='\\tiny\n' else: size='' s = LATEX_HEADER s += '%s\n\\begin{document}\n\\begin{center}{\\Large\\bf %s}\\end{center}\n%s'%( extra_preamble, title, size) #s += "(If something is missing it may be on the next page or there may be errors in the latex. Use view with {\\tt debug=True}.)\\vfill" s += '\\vspace{40mm}' if process: for i in range(len(objects)): x = objects[i] L = latex(x) if not '\\begin{verbatim}' in L: s += '%s%s%s'%(math_left, latex(x), math_right) else: s += '%s'%latex(x) if i < len(objects)-1: s += '\n\n%s\n\n'%sep else: s += "\n\n".join([str(x) for x in objects]) s += '\n\\end{document}' if debug: print s return s
|
91af508cdde1069384f708697df18a9a4ea2968c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/91af508cdde1069384f708697df18a9a4ea2968c/latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
63,
2187,
4233,
67,
4083,
2218,
1695,
65,
2187,
2870,
67,
84,
793,
7119,
2218,
11,
4672,
436,
8395,
19888,
278,
338,
23278,
279,
533,
358,
506,
1399,
487,
279,
21072,
21575,
60,
585,
16,
4191,
279,
4335,
434,
1517,
733,
316,
2184,
18,
225,
12943,
30,
282,
300,
225,
12176,
6911,
10335,
300,
666,
261,
280,
733,
13,
225,
300,
225,
12176,
2649,
10335,
300,
533,
261,
1886,
30,
296,
55,
410,
11,
4672,
2077,
364,
326,
1668,
225,
300,
225,
12176,
15949,
67,
4482,
10335,
300,
533,
261,
1886,
30,
3718,
3292,
3631,
2002,
5654,
364,
4233,
1965,
225,
300,
225,
12176,
15949,
67,
4083,
10335,
300,
533,
261,
1886,
30,
3718,
3864,
3631,
2145,
5654,
364,
4233,
1965,
225,
300,
225,
12176,
4148,
10335,
300,
1426,
261,
1886,
30,
1083,
4672,
1172,
3988,
876,
225,
300,
225,
12176,
10814,
10335,
300,
533,
261,
1886,
30,
875,
4672,
4182,
3086,
4233,
2184,
225,
300,
225,
12176,
88,
11652,
10335,
300,
1426,
261,
1886,
30,
1083,
4672,
999,
296,
88,
11652,
11,
3512,
18,
225,
300,
225,
12176,
7763,
67,
84,
793,
7119,
10335,
300,
533,
261,
1886,
30,
875,
4672,
2870,
21072,
21575,
60,
4364,
16,
9564,
1865,
8422,
10086,
95,
5457,
1532,
225,
1220,
3414,
279,
533,
12613,
358,
506,
279,
21072,
21575,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
63,
2187,
4233,
67,
4083,
2218,
1695,
65,
2187,
2870,
67,
84,
793,
7119,
2218,
11,
4672,
436,
8395,
19888,
278,
338,
23278,
279,
533,
358,
506,
1399,
487,
279,
21072,
21575,
60,
585,
16,
4191,
279,
4335,
434,
1517,
733,
316,
2184,
18,
225,
12943,
30,
282,
300,
225,
12176,
6911,
10335,
300,
666,
261,
280,
733,
13,
225,
300,
225,
12176,
2649,
10335,
300,
533,
261,
1886,
30,
296,
55,
410,
11,
4672,
2077,
364,
326,
1668,
225,
300,
225,
12176,
15949,
67,
4482,
10335,
300,
2
] |
self.action['domain'] or '[]')
|
self.action['pyson_domain'])
|
def __init__(self, window, attrs=None): self.act_id = int(attrs['name']) self._window = window self.screen = None self.tree = None
|
eeb0c8c8fb0f2e1e50e9efcf641ff30642e4e8fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9151/eeb0c8c8fb0f2e1e50e9efcf641ff30642e4e8fa/action.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2742,
16,
3422,
33,
7036,
4672,
365,
18,
621,
67,
350,
273,
509,
12,
7039,
3292,
529,
19486,
365,
6315,
5668,
273,
2742,
365,
18,
9252,
273,
599,
365,
18,
3413,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2742,
16,
3422,
33,
7036,
4672,
365,
18,
621,
67,
350,
273,
509,
12,
7039,
3292,
529,
19486,
365,
6315,
5668,
273,
2742,
365,
18,
9252,
273,
599,
365,
18,
3413,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
t1 = QCanvasText (str(dist[ind][v]), self)
|
t1 = QCanvasText ("%i (%2.1f %%)" % (dist[ind][v], 100*dist[ind][v]/(len(data) or 1)), self)
|
def displayStat(self, data, ind, dist): if not data: return attr = data.domain[ind] attr_name = QCanvasText (attr.name, self) attr_name.move(10, 10) attr_name.show() title_str = "Category" if attr.varType == orange.VarTypes.Continuous: title_str = "Values" category = QCanvasText (title_str, self) category.move(self.hbias-20, 30) category.setTextFlags(Qt.AlignRight) category.show()
|
f6689f5082dfc572890d208ac104a0f4c27d0fec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/f6689f5082dfc572890d208ac104a0f4c27d0fec/OWAttributeStatistics.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
5000,
12,
2890,
16,
501,
16,
1547,
16,
2411,
4672,
309,
486,
501,
30,
327,
225,
1604,
273,
501,
18,
4308,
63,
728,
65,
1604,
67,
529,
273,
2238,
12971,
1528,
261,
1747,
18,
529,
16,
365,
13,
1604,
67,
529,
18,
8501,
12,
2163,
16,
1728,
13,
1604,
67,
529,
18,
4500,
1435,
2077,
67,
701,
273,
315,
4457,
6,
309,
1604,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
26509,
30,
2077,
67,
701,
273,
315,
1972,
6,
3150,
273,
2238,
12971,
1528,
261,
2649,
67,
701,
16,
365,
13,
3150,
18,
8501,
12,
2890,
18,
76,
13931,
17,
3462,
16,
5196,
13,
3150,
18,
542,
1528,
5094,
12,
23310,
18,
10044,
4726,
13,
3150,
18,
4500,
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,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
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
5000,
12,
2890,
16,
501,
16,
1547,
16,
2411,
4672,
309,
486,
501,
30,
327,
225,
1604,
273,
501,
18,
4308,
63,
728,
65,
1604,
67,
529,
273,
2238,
12971,
1528,
261,
1747,
18,
529,
16,
365,
13,
1604,
67,
529,
18,
8501,
12,
2163,
16,
1728,
13,
1604,
67,
529,
18,
4500,
1435,
2077,
67,
701,
273,
315,
4457,
6,
309,
1604,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
26509,
30,
2077,
67,
701,
273,
315,
1972,
6,
3150,
273,
2238,
12971,
1528,
261,
2649,
67,
701,
16,
365,
13,
3150,
18,
8501,
12,
2890,
18,
76,
13931,
17,
3462,
16,
5196,
13,
3150,
18,
542,
1528,
5094,
12,
23310,
18,
10044,
4726,
2
] |
ca.pluralequation ='(n != 1)'
|
ca.pluralequation = '(n != 1)'
|
def create_default_languages(): from pootle_app.core import Language af = Language(code="af") af.fullname = u"Afrikaans" af.specialchars = u"ëïêôûáéíóúý" af.nplurals = '2' af.pluralequation = "(n != 1)" af.save()
|
705dd9e8bba1245496893550d0b060f0049a0893 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/705dd9e8bba1245496893550d0b060f0049a0893/initdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1886,
67,
14045,
13332,
628,
293,
1632,
298,
67,
2910,
18,
3644,
1930,
9889,
225,
10073,
273,
9889,
12,
710,
1546,
1727,
7923,
10073,
18,
21885,
273,
582,
6,
12664,
566,
7282,
634,
6,
10073,
18,
12924,
273,
582,
6,
132,
109,
132,
112,
132,
108,
132,
117,
132,
124,
132,
99,
132,
107,
132,
260,
132,
116,
132,
123,
132,
126,
6,
10073,
18,
82,
412,
17645,
273,
296,
22,
11,
10073,
18,
15203,
14298,
367,
273,
7751,
82,
480,
404,
2225,
10073,
18,
5688,
1435,
225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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,
752,
67,
1886,
67,
14045,
13332,
628,
293,
1632,
298,
67,
2910,
18,
3644,
1930,
9889,
225,
10073,
273,
9889,
12,
710,
1546,
1727,
7923,
10073,
18,
21885,
273,
582,
6,
12664,
566,
7282,
634,
6,
10073,
18,
12924,
273,
582,
6,
132,
109,
132,
112,
132,
108,
132,
117,
132,
124,
132,
99,
132,
107,
132,
260,
132,
116,
132,
123,
132,
126,
6,
10073,
18,
82,
412,
17645,
273,
296,
22,
11,
10073,
18,
15203,
14298,
367,
273,
7751,
82,
480,
404,
2225,
10073,
18,
5688,
1435,
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
] |
self.log.exception("Failed to schedule or activate %s" % (inst.name))
|
if (inst.name not in muffle): self.log.exception("Failed to schedule or activate %s" % (inst.name)) muffle[inst.name] = True
|
def start(self): oldInstances = {} muffle = {} while True: try: # Generate a list of VMs/host hosts = {} load = {} for h in self.client.getHosts(): hosts[h.id] = h load[h.id] = [] load[None] = [] _instances = self.client.getInstances() instances = {} for i in _instances: instances[i.id] = i for i in instances.itervalues(): if (i.hostId or i.state == InstanceState.Pending): load[i.hostId] = load[i.hostId] + [i.id] # Check for VMs that have exited for i in oldInstances: if (i not in instances): for hook in self.hooks: hook.postDestroy(oldInstances[i]) # Schedule new VMs oldInstances = instances if (len(load.get(None, [])) > 0): for i in load[None]: inst = instances[i] try: minMax = None minMaxHost = None targetHost = inst.hints.get("targetHost", None) try: allowElsewhere = boolean(inst.hints.get("allowElsewhere", "False")) except Exception, e: allowElsewhere = False if (targetHost != None): for h in hosts.values(): if ((str(h.id) == targetHost or h.name == targetHost)): if (h.up == True and h.state == HostState.Normal): memUsage = reduce(lambda x, y: x + instances[y].memory, load[h.id], inst.memory) coreUsage = reduce(lambda x, y: x + instances[y].cores, load[h.id], inst.cores) if (memUsage <= h.memory and coreUsage <= h.cores): minMax = len(load[h.id]) minMaxHost = h if ((targetHost == None or allowElsewhere) and minMaxHost == None): for h in hosts.values(): if (h.up == True and h.state == HostState.Normal): if (minMax is None or (self.densePack and len(load[h.id]) > minMax) or (not self.densePack and len(load[h.id]) < minMax)): memUsage = reduce(lambda x, y: x + instances[y].memory, load[h.id], inst.memory) coreUsage = reduce(lambda x, y: x + instances[y].cores, load[h.id], inst.cores) if (memUsage <= h.memory and coreUsage <= h.cores): minMax = len(load[h.id]) minMaxHost = h if (minMaxHost): if (not inst.hints.get("__resume_source", None)): for hook in self.hooks: hook.preCreate(inst) self.log.info("Scheduling instance %s (%d mem, %d cores, %d uid) on host %s" % (inst.name, inst.memory, inst.cores, inst.userId, minMaxHost.name)) self.client.activateVm(i, minMaxHost) load[minMaxHost.id] = load[minMaxHost.id] + [i] muffle.clear() else: if (inst.name not in muffle): self.log.info("Failed to find a suitable place to schedule %s" % (inst.name)) muffle[inst.name] = True except Exception, e: self.log.exception("Failed to schedule or activate %s" % (inst.name)) time.sleep(self.scheduleDelay) except TashiException, e: self.log.exception("Tashi exception") time.sleep(self.scheduleDelay) except Exception, e: self.log.exception("General exception") time.sleep(self.scheduleDelay)
|
be978030818815145cb6b6415a050f79d76ced19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/be978030818815145cb6b6415a050f79d76ced19/primitive.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
1592,
5361,
273,
2618,
312,
10148,
273,
2618,
1323,
1053,
30,
775,
30,
468,
6654,
279,
666,
434,
776,
6947,
19,
2564,
7206,
273,
2618,
1262,
273,
2618,
364,
366,
316,
365,
18,
2625,
18,
588,
12172,
13332,
7206,
63,
76,
18,
350,
65,
273,
366,
1262,
63,
76,
18,
350,
65,
273,
5378,
1262,
63,
7036,
65,
273,
5378,
389,
10162,
273,
365,
18,
2625,
18,
588,
5361,
1435,
3884,
273,
2618,
364,
277,
316,
389,
10162,
30,
3884,
63,
77,
18,
350,
65,
273,
277,
364,
277,
316,
3884,
18,
2165,
2372,
13332,
309,
261,
77,
18,
2564,
548,
578,
277,
18,
2019,
422,
5180,
1119,
18,
8579,
4672,
1262,
63,
77,
18,
2564,
548,
65,
273,
1262,
63,
77,
18,
2564,
548,
65,
397,
306,
77,
18,
350,
65,
468,
2073,
364,
776,
6947,
716,
1240,
21590,
364,
277,
316,
1592,
5361,
30,
309,
261,
77,
486,
316,
3884,
4672,
364,
3953,
316,
365,
18,
10468,
30,
3953,
18,
2767,
10740,
12,
1673,
5361,
63,
77,
5717,
468,
10674,
394,
776,
6947,
1592,
5361,
273,
3884,
309,
261,
1897,
12,
945,
18,
588,
12,
7036,
16,
5378,
3719,
405,
374,
4672,
364,
277,
316,
1262,
63,
7036,
14542,
1804,
273,
3884,
63,
77,
65,
775,
30,
1131,
2747,
273,
599,
1131,
2747,
2594,
273,
599,
1018,
2594,
273,
1804,
18,
24598,
18,
588,
2932,
3299,
2594,
3113,
599,
13,
775,
30,
1699,
12427,
6051,
273,
1250,
12,
8591,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
1592,
5361,
273,
2618,
312,
10148,
273,
2618,
1323,
1053,
30,
775,
30,
468,
6654,
279,
666,
434,
776,
6947,
19,
2564,
7206,
273,
2618,
1262,
273,
2618,
364,
366,
316,
365,
18,
2625,
18,
588,
12172,
13332,
7206,
63,
76,
18,
350,
65,
273,
366,
1262,
63,
76,
18,
350,
65,
273,
5378,
1262,
63,
7036,
65,
273,
5378,
389,
10162,
273,
365,
18,
2625,
18,
588,
5361,
1435,
3884,
273,
2618,
364,
277,
316,
389,
10162,
30,
3884,
63,
77,
18,
350,
65,
273,
277,
364,
277,
316,
3884,
18,
2165,
2372,
13332,
309,
261,
77,
18,
2564,
548,
578,
277,
18,
2019,
422,
5180,
1119,
18,
8579,
4672,
1262,
63,
77,
2
] |
for (oldPath, newPath) in self.renames:
|
for (oldPath, newPath, msg) in self.renames:
|
def apply(self):
|
9e9969f45daafddcbb99e4e9dc5b3d6042825259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9e9969f45daafddcbb99e4e9dc5b3d6042825259/update.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
edges = Set()
|
edges = set()
|
def import_graph(modules, docindex, linker, context=None, **options): graph = DotGraph('Import Graph for %s' % name_list(modules), node_defaults={'shape':'box', 'width': 0, 'height': 0}, edge_defaults={'sametail':True}) # Options if options.get('dir', 'RL') != 'TB': # default: right-to-left. graph.body += 'rankdir=%s\n' % options.get('dir', 'RL') # Add a node for each module. nodes = add_valdoc_nodes(graph, modules, linker, context) # Edges. edges = Set() for dst in modules: if dst.imports in (None, UNKNOWN): continue for var_name in dst.imports: for i in range(len(var_name), 0, -1): val_doc = docindex.get_valdoc(DottedName(*var_name[:i])) if isinstance(val_doc, ModuleDoc): if val_doc in nodes and dst in nodes: edges.add((nodes[val_doc], nodes[dst])) break graph.edges = [DotGraphEdge(src,dst) for (src,dst) in edges] return graph
|
8ef87f79a31bd78539934474395f14d31c533ab2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8ef87f79a31bd78539934474395f14d31c533ab2/dotgraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
4660,
12,
6400,
16,
997,
1615,
16,
28058,
16,
819,
33,
7036,
16,
2826,
2116,
4672,
2667,
273,
17502,
4137,
2668,
5010,
5601,
364,
738,
87,
11,
738,
508,
67,
1098,
12,
6400,
3631,
756,
67,
7606,
5899,
11,
4867,
11,
2497,
2147,
2187,
296,
2819,
4278,
374,
16,
296,
4210,
4278,
374,
5779,
3591,
67,
7606,
5899,
11,
20353,
1641,
4278,
5510,
6792,
225,
468,
5087,
309,
702,
18,
588,
2668,
1214,
2187,
296,
54,
48,
6134,
480,
296,
25730,
4278,
468,
805,
30,
2145,
17,
869,
17,
4482,
18,
2667,
18,
3432,
1011,
296,
11500,
1214,
5095,
87,
64,
82,
11,
738,
702,
18,
588,
2668,
1214,
2187,
296,
54,
48,
6134,
225,
468,
1436,
279,
756,
364,
1517,
1605,
18,
2199,
273,
527,
67,
1125,
2434,
67,
4690,
12,
4660,
16,
4381,
16,
28058,
16,
819,
13,
225,
468,
6651,
2852,
18,
5231,
273,
444,
1435,
364,
3046,
316,
4381,
30,
309,
3046,
18,
21350,
316,
261,
7036,
16,
13598,
4672,
1324,
364,
569,
67,
529,
316,
3046,
18,
21350,
30,
364,
277,
316,
1048,
12,
1897,
12,
1401,
67,
529,
3631,
374,
16,
300,
21,
4672,
1244,
67,
2434,
273,
997,
1615,
18,
588,
67,
1125,
2434,
12,
10412,
2344,
461,
30857,
1401,
67,
529,
10531,
77,
22643,
309,
1549,
12,
1125,
67,
2434,
16,
5924,
1759,
4672,
309,
1244,
67,
2434,
316,
2199,
471,
3046,
316,
2199,
30,
5231,
18,
1289,
12443,
4690,
63,
1125,
67,
2434,
6487,
2199,
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,
1930,
67,
4660,
12,
6400,
16,
997,
1615,
16,
28058,
16,
819,
33,
7036,
16,
2826,
2116,
4672,
2667,
273,
17502,
4137,
2668,
5010,
5601,
364,
738,
87,
11,
738,
508,
67,
1098,
12,
6400,
3631,
756,
67,
7606,
5899,
11,
4867,
11,
2497,
2147,
2187,
296,
2819,
4278,
374,
16,
296,
4210,
4278,
374,
5779,
3591,
67,
7606,
5899,
11,
20353,
1641,
4278,
5510,
6792,
225,
468,
5087,
309,
702,
18,
588,
2668,
1214,
2187,
296,
54,
48,
6134,
480,
296,
25730,
4278,
468,
805,
30,
2145,
17,
869,
17,
4482,
18,
2667,
18,
3432,
1011,
296,
11500,
1214,
5095,
87,
64,
82,
11,
738,
702,
18,
588,
2668,
1214,
2187,
296,
54,
48,
6134,
225,
468,
2
] |
return map(lambda element: element[5:], commands)
|
return map(self._get_cmd_name, commands)
|
def _get_cmd_list(self): """Returns a list of all known commands""" # find all command functions commands = filter(lambda element: element.startswith('_cmd_'), ConsoleIFace.__dict__.keys()) # strip the prefix from command functions return map(lambda element: element[5:], commands)
|
f24f12b48a571183e88090f9b172a58c7473e935 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/f24f12b48a571183e88090f9b172a58c7473e935/tel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4172,
67,
1098,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
777,
4846,
4364,
8395,
468,
1104,
777,
1296,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4172,
67,
1098,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
777,
4846,
4364,
8395,
468,
1104,
777,
1296,
4186,
4364,
273,
1034,
12,
14661,
930,
30,
930,
18,
17514,
1918,
2668,
67,
4172,
4623,
3631,
9657,
5501,
623,
16186,
1576,
25648,
2452,
10756,
468,
2569,
326,
1633,
628,
1296,
4186,
327,
852,
12,
14661,
930,
30,
930,
63,
25,
30,
6487,
4364,
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
] |
if 'debugcount' not in form: raise ValueError('You must provide a debugcount parameter') debugcount = form.pop('debugcount') try: debugcount = int(debugcount) except ValueError: raise ValueError('Bad value for debugcount') if debugcount not in self.debug_infos: raise ValueError( 'Debug %s no longer found (maybe it has expired?)' % debugcount) debug_info = self.debug_infos[debugcount] return func(self, debug_info=debug_info, **form) except ValueError, e: form['headers']['status'] = '500 Server Error' return '<html>There was an error: %s</html>' % html_quote(e)
|
debugcount = int(debugcount) except ValueError: raise ValueError('Bad value for debugcount') if debugcount not in self.debug_infos: raise ValueError( 'Debug %s no longer found (maybe it has expired?)' % debugcount) debug_info = self.debug_infos[debugcount] return func(self, debug_info=debug_info, **form)
|
def debug_info_replacement(self, **form): try: if 'debugcount' not in form: raise ValueError('You must provide a debugcount parameter') debugcount = form.pop('debugcount') try: debugcount = int(debugcount) except ValueError: raise ValueError('Bad value for debugcount') if debugcount not in self.debug_infos: raise ValueError( 'Debug %s no longer found (maybe it has expired?)' % debugcount) debug_info = self.debug_infos[debugcount] return func(self, debug_info=debug_info, **form) except ValueError, e: form['headers']['status'] = '500 Server Error' return '<html>There was an error: %s</html>' % html_quote(e)
|
bfceb7aa266724f818b7696526816d18411f0d39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12946/bfceb7aa266724f818b7696526816d18411f0d39/middleware.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
67,
1376,
67,
24394,
12,
2890,
16,
2826,
687,
4672,
775,
30,
309,
296,
4148,
1883,
11,
486,
316,
646,
30,
1002,
2068,
2668,
6225,
1297,
5615,
279,
1198,
1883,
1569,
6134,
1198,
1883,
273,
646,
18,
5120,
2668,
4148,
1883,
6134,
775,
30,
1198,
1883,
273,
509,
12,
4148,
1883,
13,
1335,
2068,
30,
1002,
2068,
2668,
6434,
460,
364,
1198,
1883,
6134,
309,
1198,
1883,
486,
316,
365,
18,
4148,
67,
18227,
30,
1002,
2068,
12,
296,
2829,
738,
87,
1158,
7144,
1392,
261,
19133,
518,
711,
7708,
28897,
738,
1198,
1883,
13,
1198,
67,
1376,
273,
365,
18,
4148,
67,
18227,
63,
4148,
1883,
65,
327,
1326,
12,
2890,
16,
1198,
67,
1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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
67,
1376,
67,
24394,
12,
2890,
16,
2826,
687,
4672,
775,
30,
309,
296,
4148,
1883,
11,
486,
316,
646,
30,
1002,
2068,
2668,
6225,
1297,
5615,
279,
1198,
1883,
1569,
6134,
1198,
1883,
273,
646,
18,
5120,
2668,
4148,
1883,
6134,
775,
30,
1198,
1883,
273,
509,
12,
4148,
1883,
13,
1335,
2068,
30,
1002,
2068,
2668,
6434,
460,
364,
1198,
1883,
6134,
309,
1198,
1883,
486,
316,
365,
18,
4148,
67,
18227,
30,
1002,
2068,
12,
296,
2829,
738,
87,
1158,
7144,
1392,
261,
19133,
518,
711,
7708,
28897,
738,
1198,
1883,
13,
1198,
67,
1376,
273,
365,
18,
4148,
67,
18227,
63,
4148,
1883,
65,
327,
1326,
12,
2890,
16,
1198,
67,
1376,
33,
2
] |
def copy(self): """ Returns an instance of Database with default mutable=True. """ new_loc = tmp_filename() + '.db' os.system('cp '+ self.__dblocation__ + ' ' + new_loc) D = SQLDatabase(filename=new_loc, skeleton=copy(self.__skeleton__)) return D def save(self, filename): """ ROBERT : Read the following e.g.'s carefully. You might want to change them before distributing (i.e. os.system('rm '+save_loc)) But this should be a good intro to a bunch of functionality. (I mostly put it in for you). It covers creating a mutable db, saving it and opening it as an immutable db. Then it shows modification and the new awesome show method. (This is my most recent example - the show method is probably better than getting a cursor each time for the doctests so I wanted to put it in since I typically did that the other way -- i.e.: delete_rows method examples). EXAMPLES: sage: from sage.databases.db import DB_HOME sage: save_loc = DB_HOME + 'simon.db' sage: DB = SQLDatabase() sage: DB.create_table('simon',{'a1':{'sql':'bool','primary_key':False}, 'b2':{'sql':'int', 'primary_key':False}}) sage: DB.add_data('simon',[(0,0),(1,1),(1,2)]) sage: DB.save(save_loc) sage: immut = GenericSQLDatabase(save_loc) sage: immut.show('simon') a1 b2 ---------------------------------------- 0 0 1 1 1 2 sage: DB.show('simon') a1 b2 ---------------------------------------- 0 0 1 1 1 2 sage: p = SQLQuery(DB, {'table_name':'simon', 'display_cols':'b2', 'dillhole':['b2','>', 0]}) sage: DB.delete_rows(p) sage: DB.show('simon') a1 b2 ---------------------------------------- 0 0 sage: immut.show('simon') a1 b2 ---------------------------------------- 0 0 1 1 1 2 sage: import os sage: os.system('rm ' + save_loc) """ try: self.__connection__.execute('commit') except: pass os.system('cp ' + self.__dblocation__ + ' ' + filename)
|
def copy(self): """ Returns an instance of Database with default mutable=True. """ # copy .db file new_loc = tmp_filename() + '.db' os.system('cp '+ self.__dblocation__ + ' ' + new_loc) D = SQLDatabase(filename=new_loc, skeleton=copy(self.__skeleton__)) return D
|
12098d45ba68813e42a6a22032a2f2e6d360e158 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/12098d45ba68813e42a6a22032a2f2e6d360e158/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
3536,
2860,
392,
791,
434,
5130,
598,
805,
16074,
33,
5510,
18,
3536,
468,
1610,
263,
1966,
585,
394,
67,
1829,
273,
1853,
67,
3459,
1435,
397,
2418,
1966,
11,
1140,
18,
4299,
2668,
4057,
15126,
365,
16186,
1966,
3562,
972,
397,
296,
296,
397,
394,
67,
1829,
13,
463,
273,
3063,
4254,
12,
3459,
33,
2704,
67,
1829,
16,
17761,
33,
3530,
12,
2890,
16186,
7771,
12143,
972,
3719,
327,
463,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
3536,
2860,
392,
791,
434,
5130,
598,
805,
16074,
33,
5510,
18,
3536,
468,
1610,
263,
1966,
585,
394,
67,
1829,
273,
1853,
67,
3459,
1435,
397,
2418,
1966,
11,
1140,
18,
4299,
2668,
4057,
15126,
365,
16186,
1966,
3562,
972,
397,
296,
296,
397,
394,
67,
1829,
13,
463,
273,
3063,
4254,
12,
3459,
33,
2704,
67,
1829,
16,
17761,
33,
3530,
12,
2890,
16186,
7771,
12143,
972,
3719,
327,
463,
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
] |
|
r = self.readline(msg + ' ')
|
r = self._readline(msg + ' ')
|
def prompt(self, msg, pat=None, default="y", matchflags=0): if not self.interactive: return default try: r = self.readline(msg + ' ') if not pat or re.match(pat, r, matchflags): return r else: self.write(_("unrecognized response\n")) except EOFError: raise util.Abort(_('response expected'))
|
7a409e54e91b9b7ffcdf89aef215de5470295aeb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/7a409e54e91b9b7ffcdf89aef215de5470295aeb/ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2890,
16,
1234,
16,
9670,
33,
7036,
16,
805,
1546,
93,
3113,
845,
7133,
33,
20,
4672,
309,
486,
365,
18,
24761,
30,
327,
805,
775,
30,
436,
273,
365,
6315,
896,
1369,
12,
3576,
397,
296,
8624,
309,
486,
9670,
578,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2890,
16,
1234,
16,
9670,
33,
7036,
16,
805,
1546,
93,
3113,
845,
7133,
33,
20,
4672,
309,
486,
365,
18,
24761,
30,
327,
805,
775,
30,
436,
273,
365,
6315,
896,
1369,
12,
3576,
397,
296,
8624,
309,
486,
9670,
578,
283,
18,
1916,
12,
16330,
16,
436,
16,
845,
7133,
4672,
327,
436,
469,
30,
365,
18,
2626,
24899,
2932,
318,
12916,
766,
64,
82,
6,
3719,
1335,
6431,
668,
30,
1002,
1709,
18,
13572,
24899,
2668,
2740,
2665,
26112,
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
] |
data[rownum] = tuple(line)
|
first_list.append(line)
|
def genfromdta(fname, excludelist=None, missing_flt=-999., missing_str=""): """ Returns an ndarray from a Stata .dta file. Parameters ---------- fname missing_values excludelist missing_flt missing_str """
|
73ad5e7974b9a18985ca336431deb4d3086d92a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12658/73ad5e7974b9a18985ca336431deb4d3086d92a7/io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
2080,
72,
2351,
12,
12749,
16,
4687,
1100,
5449,
33,
7036,
16,
3315,
67,
31864,
29711,
11984,
12990,
3315,
67,
701,
1546,
6,
4672,
3536,
2860,
392,
8304,
628,
279,
934,
396,
263,
72,
2351,
585,
18,
225,
7012,
12181,
5299,
3315,
67,
2372,
4687,
1100,
5449,
3315,
67,
31864,
3315,
67,
701,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3157,
2080,
72,
2351,
12,
12749,
16,
4687,
1100,
5449,
33,
7036,
16,
3315,
67,
31864,
29711,
11984,
12990,
3315,
67,
701,
1546,
6,
4672,
3536,
2860,
392,
8304,
628,
279,
934,
396,
263,
72,
2351,
585,
18,
225,
7012,
12181,
5299,
3315,
67,
2372,
4687,
1100,
5449,
3315,
67,
31864,
3315,
67,
701,
225,
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
] |
fullname_last_dot_postition = fullname.rfind(".")
|
if fullname.endswith(".gz"): fullname_last_dot_postition = fullname[:-3].rfind(".") else: fullname_last_dot_postition = fullname.rfind(".")
|
def BuildFileList(self): """lists all files attached to the bibdoc""" self.docfiles = [] if os.path.exists(self.basedir): for fil in os.listdir(self.basedir): if fil != ".recid" and fil != ".docid" and fil != "." and fil != "..": filepath = "%s/%s" % (self.basedir,fil) fileversion = re.sub(".*;","",fil) fullname = fil.replace(";%s" % fileversion,"") fullname_last_dot_postition = fullname.rfind(".") if fullname_last_dot_postition == -1: fullname_basename = fullname fullname_extension = "" else: fullname_basename = fullname[:fullname_last_dot_postition] fullname_extension = fullname[fullname_last_dot_postition+1:] self.docfiles.append(BibDocFile(filepath,self.type,fileversion,fullname_basename,fullname_extension,self.id))
|
3e557930fa96c3176d96cb62b226f318f8de6ff8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/3e557930fa96c3176d96cb62b226f318f8de6ff8/file.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
26098,
12,
2890,
4672,
3536,
9772,
777,
1390,
7495,
358,
326,
25581,
2434,
8395,
365,
18,
2434,
2354,
273,
5378,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
31722,
4672,
364,
661,
316,
1140,
18,
1098,
1214,
12,
2890,
18,
31722,
4672,
309,
661,
480,
3552,
3927,
350,
6,
471,
661,
480,
3552,
2434,
350,
6,
471,
661,
480,
4585,
471,
661,
480,
315,
838,
6877,
3608,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
31722,
16,
7540,
13,
585,
1589,
273,
283,
18,
1717,
2932,
4509,
31,
15937,
3113,
7540,
13,
13321,
273,
661,
18,
2079,
2932,
31,
9,
87,
6,
738,
585,
1589,
16,
3660,
13,
225,
309,
13321,
18,
5839,
1918,
2932,
18,
9764,
6,
4672,
225,
13321,
67,
2722,
67,
9811,
67,
2767,
608,
273,
13321,
10531,
17,
23,
8009,
86,
4720,
2932,
1199,
13,
469,
30,
13321,
67,
2722,
67,
9811,
67,
2767,
608,
273,
13321,
18,
86,
4720,
2932,
1199,
13,
309,
13321,
67,
2722,
67,
9811,
67,
2767,
608,
422,
300,
21,
30,
13321,
67,
13909,
273,
13321,
13321,
67,
6447,
273,
1408,
469,
30,
13321,
67,
13909,
273,
13321,
10531,
21885,
67,
2722,
67,
9811,
67,
2767,
608,
65,
13321,
67,
6447,
273,
13321,
63,
21885,
67,
2722,
67,
9811,
67,
2767,
608,
15,
21,
26894,
365,
18,
2434,
2354,
18,
6923,
12,
38,
495,
1759,
812,
12,
10561,
16,
2890,
18,
723,
16,
768,
1589,
16,
21885,
67,
13909,
16,
21885,
67,
6447,
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,
3998,
26098,
12,
2890,
4672,
3536,
9772,
777,
1390,
7495,
358,
326,
25581,
2434,
8395,
365,
18,
2434,
2354,
273,
5378,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
31722,
4672,
364,
661,
316,
1140,
18,
1098,
1214,
12,
2890,
18,
31722,
4672,
309,
661,
480,
3552,
3927,
350,
6,
471,
661,
480,
3552,
2434,
350,
6,
471,
661,
480,
4585,
471,
661,
480,
315,
838,
6877,
3608,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
31722,
16,
7540,
13,
585,
1589,
273,
283,
18,
1717,
2932,
4509,
31,
15937,
3113,
7540,
13,
13321,
273,
661,
18,
2079,
2932,
31,
9,
87,
6,
738,
585,
1589,
16,
3660,
13,
225,
309,
13321,
18,
5839,
1918,
2
] |
self._trackPathCache[path] = track self._trackPathList.append(path)
|
if path not in self._trackPathCache: self._trackPathCache[path] = track self._trackPathList.append(path) else: assert track is self._trackPathCache[path]
|
def addTrackToCache(self, track): self._logger.debug("Adding track to cache.") if len(self._trackCache) > 10000: del self._trackCache[self._trackIDList.pop(0)] id = track.getID() self._trackCache[id] = track self._trackIDList.append(id)
|
13ec90dbe732a7182949fb565abae8ffbcffc86e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/13ec90dbe732a7182949fb565abae8ffbcffc86e/Track.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4402,
774,
1649,
12,
2890,
16,
3298,
4672,
365,
6315,
4901,
18,
4148,
2932,
13962,
3298,
358,
1247,
1199,
13,
309,
562,
12,
2890,
6315,
4101,
1649,
13,
405,
12619,
30,
1464,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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,
527,
4402,
774,
1649,
12,
2890,
16,
3298,
4672,
365,
6315,
4901,
18,
4148,
2932,
13962,
3298,
358,
1247,
1199,
13,
309,
562,
12,
2890,
6315,
4101,
1649,
13,
405,
12619,
30,
1464,
365,
6315,
4101,
1649,
63,
2890,
6315,
4101,
24583,
18,
5120,
12,
20,
25887,
612,
273,
3298,
18,
588,
734,
1435,
365,
6315,
4101,
1649,
63,
350,
65,
273,
3298,
365,
6315,
4101,
24583,
18,
6923,
12,
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
] |
EXAMPLES:: indirect doctest sage: for z in FormalSum([(1,2), (5, 'a'), (-3, 7)]): print z (5, 'a')
|
EXAMPLES:: sage: for z in FormalSum([(1,2), (5, 1000), (-3, 7)]): print z
|
def __iter__(self): """ EXAMPLES:: indirect doctest
|
f694767c840c72be7302e5a460f8f17135b3051a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f694767c840c72be7302e5a460f8f17135b3051a/formal_sum.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
2866,
4202,
16807,
31263,
395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
2866,
4202,
16807,
31263,
395,
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
] |
<body bgcolor=" <body bgcolor="
|
<body bgcolor=" <body bgcolor="
|
def reset(): """Return a string that resets the CGI and browser to a known state.""" return '''<!--: spam
|
09029ec15c2b61a0aa506286a6bb485f468ac920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/09029ec15c2b61a0aa506286a6bb485f468ac920/cgitb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
13332,
3536,
990,
279,
533,
716,
20063,
326,
385,
13797,
471,
4748,
358,
279,
4846,
919,
12123,
327,
9163,
5586,
413,
30,
24824,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
13332,
3536,
990,
279,
533,
716,
20063,
326,
385,
13797,
471,
4748,
358,
279,
4846,
919,
12123,
327,
9163,
5586,
413,
30,
24824,
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
] |
shutil.rmtree(os.path.join(destdir, modname, 'build')) shutil.rmtree(os.path.join(destdir, modname, modname+'.egg-info'))
|
shutil.rmtree(os.path.join(pkgdir, modname, 'build')) shutil.rmtree(os.path.join(pkgdir, modname, modname+'.egg-info'))
|
def mod2egg(argv, groups= { 'openmdao.component': Component, 'openmdao.driver': Driver, #'openmdao.case_iterator': CaseIterator, #'openmdao.resource_allocator': ResourceAllocator, 'openmdao.trait': TraitType }): parser = OptionParser() parser.usage = "mod2egg.py [options] <module_name>" parser.add_option("-v","--version", action="store", type="string", dest="version", help="specify the version number (label) for the egg") parser.add_option("-d","--dest", action="store", type="string", dest="dest", help="specify the destination directory for the egg") parser.add_option("","--desc", action="store", type="string", dest="desc", help="specify a description for the egg") parser.add_option("-a","--author", action="store", type="string", dest="author", help="specify the author of the egg") parser.add_option("-e","--email", action="store", type="string", dest="author_email", help="specify a contact email for the egg") parser.add_option("-i","--install_dir", action="store", type="string", dest="install_dir", help="install the egg in the specified directory") parser.add_option("-l","--license", action="store", type="string", dest="license", help="specify a license for all files in the egg") parser.add_option("-u","--url", action="store", type="string", dest="url", help="specify URL of the web page for the egg") parser.add_option("-z","--zipped_egg", action="store_true", dest="zipped", default=False, help="egg is zip safe") parser.add_option("","--verbose", action="store_true", dest="verbose", default=False, help="generate verbose output while building") parser.add_option("-k","--keep", action="store_true", dest="keep", default=False, help="keep the package directory structure used to build the egg") parser.add_option("-n","--noegg", action="store_true", dest="noegg", default=False, help="don't actually build an egg") (options, args) = parser.parse_args(argv) if len(args) == 0: raise Mod2EggError('No module specified', parser) elif len(args) > 1: raise Mod2EggError('Only one module is allowed', parser) if not os.path.exists(args[0]): raise Mod2EggError("module %s does not exist" % args[0], parser) if not args[0].endswith('.py'): raise Mod2EggError("%s is not a python module" % args[0], parser) if not options.version: raise Mod2EggError("distribution version has not been specified", parser) modname = os.path.basename(os.path.splitext(args[0])[0]) modpath = os.path.abspath(os.path.dirname(args[0])) old_sys_path = copy.copy(sys.path) old_sys_modules = sys.modules.copy() sys.path = [modpath]+sys.path if options.install_dir: if not os.path.isdir(options.install_dir): raise Mod2EggError("install directory %s does not exist\n" % options.install_dir) ename = _find_egg([options.install_dir], modname, options.version) # be a little extra paranoid about accidental overwriting of an # egg without updating its version if ename: raise Mod2EggError("egg %s already exists in directory %s" %\ (ename, os.path.abspath(options.install_dir))) if os.path.isabs(options.install_dir): idir_abs = options.install_dir else: idir_abs = os.path.join(os.getcwd(), options.install_dir) else: idir_abs = None destdir = options.dest or os.getcwd() destdir = os.path.abspath(destdir) if options.keep: pkgdir = destdir else: pkgdir = tempfile.mkdtemp() ename = _find_egg([destdir], modname, options.version) # be a little extra paranoid about accidental overwriting of an # egg without updating its version if ename: raise Mod2EggError("egg %s already exists in directory %s" %\ (ename, os.path.abspath(destdir))) mod = __import__(modname) plugins = groups.copy() for name in plugins.keys(): plugins[name] = [] othermods = set() # find any classes in the module so we can see if they're # OpenMDAO plugin types for name, val in inspect.getmembers(mod): valmod = inspect.getmodule(val) if inspect.isclass(val): if valmod is mod: for gname, klass in groups.items(): if issubclass(val, klass): plugins[gname].append(name) if valmod is not None and valmod is not mod and valmod.__name__ is not None: othermods.add(valmod.__name__) # for each module imported by our module, find the distrib that contains it depends = set() for omod in othermods: found = False for dist in pkg_resources.working_set: path = omod.replace('.','/') for ext in ['.py','.pyc','.pyd']: fname = path+ext try: if dist.has_resource(fname): depends.add(str(dist.as_requirement())) found = True break except AttributeError: pass # some stdlib dists barf when has_resource is called if found: break # now put sys.path and sys.modules back to the way they were sys.path = old_sys_path sys.modules = old_sys_modules orig_dir = os.getcwd() # create package dir os.makedirs(os.path.join(pkgdir, modname, modname)) os.chdir(os.path.join(pkgdir, modname)) # create the entry point dict entrypts = {} try: for group,pulist in plugins.items(): if len(pulist) > 0: if group not in entrypts: entrypts[group] = [] for pu in pulist: entrypts[group].append('%s = %s:%s' % (pu,modname,pu)) setup_template = '''
|
503a7075cfdfdc284e9773abbfacdb036627556e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/503a7075cfdfdc284e9773abbfacdb036627556e/mod2egg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
681,
22,
23171,
12,
19485,
16,
3252,
33,
288,
296,
3190,
1264,
6033,
18,
4652,
4278,
5435,
16,
296,
3190,
1264,
6033,
18,
7407,
4278,
9396,
16,
25767,
3190,
1264,
6033,
18,
3593,
67,
9838,
4278,
12605,
3198,
16,
25767,
3190,
1264,
6033,
18,
3146,
67,
9853,
639,
4278,
2591,
21156,
16,
296,
3190,
1264,
6033,
18,
22513,
4278,
2197,
305,
559,
289,
4672,
2082,
273,
18862,
1435,
2082,
18,
9167,
273,
315,
1711,
22,
23171,
18,
2074,
306,
2116,
65,
411,
2978,
67,
529,
2984,
2082,
18,
1289,
67,
3482,
2932,
17,
90,
15937,
413,
1589,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
1589,
3113,
2809,
1546,
2793,
1164,
326,
1177,
1300,
261,
1925,
13,
364,
326,
25144,
7923,
225,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
15937,
413,
10488,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
10488,
3113,
2809,
1546,
2793,
1164,
326,
2929,
1867,
364,
326,
25144,
7923,
225,
2082,
18,
1289,
67,
3482,
2932,
15937,
413,
5569,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
5569,
3113,
2809,
1546,
2793,
1164,
279,
2477,
364,
326,
25144,
7923,
225,
2082,
18,
1289,
67,
3482,
2932,
17,
69,
15937,
413,
4161,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
4161,
3113,
2809,
1546,
2793,
1164,
326,
2869,
434,
326,
25144,
7923,
225,
2082,
18,
1289,
67,
3482,
2932,
17,
73,
15937,
413,
3652,
3113,
1301,
1546,
2233,
3113,
618,
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,
681,
22,
23171,
12,
19485,
16,
3252,
33,
288,
296,
3190,
1264,
6033,
18,
4652,
4278,
5435,
16,
296,
3190,
1264,
6033,
18,
7407,
4278,
9396,
16,
25767,
3190,
1264,
6033,
18,
3593,
67,
9838,
4278,
12605,
3198,
16,
25767,
3190,
1264,
6033,
18,
3146,
67,
9853,
639,
4278,
2591,
21156,
16,
296,
3190,
1264,
6033,
18,
22513,
4278,
2197,
305,
559,
289,
4672,
2082,
273,
18862,
1435,
2082,
18,
9167,
273,
315,
1711,
22,
23171,
18,
2074,
306,
2116,
65,
411,
2978,
67,
529,
2984,
2082,
18,
1289,
67,
3482,
2932,
17,
90,
15937,
413,
1589,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
1589,
3113,
2809,
1546,
2793,
1164,
326,
1177,
1300,
261,
2
] |
return get_node_title('event_types', id)
|
return self.get_node_title('event_types', id)
|
def getEventTypeTitle(self, id): """ Return the title of an item for the selection list for event types. """ return get_node_title('event_types', id)
|
ac0f3b2c1a95eeb647ea1882afc24b29bb2fd23a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/ac0f3b2c1a95eeb647ea1882afc24b29bb2fd23a/NySite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9832,
559,
4247,
12,
2890,
16,
612,
4672,
3536,
2000,
326,
2077,
434,
392,
761,
364,
326,
4421,
666,
364,
871,
1953,
18,
3536,
327,
336,
67,
2159,
67,
2649,
2668,
2575,
67,
2352,
2187,
612,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9832,
559,
4247,
12,
2890,
16,
612,
4672,
3536,
2000,
326,
2077,
434,
392,
761,
364,
326,
4421,
666,
364,
871,
1953,
18,
3536,
327,
336,
67,
2159,
67,
2649,
2668,
2575,
67,
2352,
2187,
612,
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
] |
this = apply(_quickfix.new_AllocTransType, args)
|
this = _quickfix.new_AllocTransType(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_AllocTransType, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
1429,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
1429,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
"ATSFont.pxd",
|
def generate_c_from_pyrex(extension, build_dir): if not sys.platform == 'darwin': print 'No %s will be built for this platform.' % (extension.name) return from distutils.dep_util import newer_group name = extension.name.split('.')[-1] source = extension.depends[0] target = os.path.join(build_dir, name+'.c')
|
c8ed45735db9c743732e9ddf1cf4aaab9d1495c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/c8ed45735db9c743732e9ddf1cf4aaab9d1495c2/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
71,
67,
2080,
67,
2074,
266,
92,
12,
6447,
16,
1361,
67,
1214,
4672,
309,
486,
2589,
18,
9898,
422,
296,
28076,
4278,
1172,
296,
2279,
738,
87,
903,
506,
6650,
364,
333,
4072,
1093,
738,
261,
6447,
18,
529,
13,
327,
628,
2411,
5471,
18,
15037,
67,
1367,
1930,
16069,
67,
1655,
508,
273,
2710,
18,
529,
18,
4939,
2668,
1093,
13,
18919,
21,
65,
1084,
273,
2710,
18,
27360,
63,
20,
65,
1018,
273,
1140,
18,
803,
18,
5701,
12,
3510,
67,
1214,
16,
508,
6797,
18,
71,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
71,
67,
2080,
67,
2074,
266,
92,
12,
6447,
16,
1361,
67,
1214,
4672,
309,
486,
2589,
18,
9898,
422,
296,
28076,
4278,
1172,
296,
2279,
738,
87,
903,
506,
6650,
364,
333,
4072,
1093,
738,
261,
6447,
18,
529,
13,
327,
628,
2411,
5471,
18,
15037,
67,
1367,
1930,
16069,
67,
1655,
508,
273,
2710,
18,
529,
18,
4939,
2668,
1093,
13,
18919,
21,
65,
1084,
273,
2710,
18,
27360,
63,
20,
65,
1018,
273,
1140,
18,
803,
18,
5701,
12,
3510,
67,
1214,
16,
508,
6797,
18,
71,
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
] |
|
"ALTER TABLE ir_module_module ADD demo BOOLEAN DEFAULT False",
|
"ALTER TABLE ir_module_module ADD demo BOOLEAN", "ALTER TABLE ir_module_module SET demo DEFAULT False",
|
def change_column(cr, table, column, new_type, copy): commands = [ "ALTER TABLE %s RENAME COLUMN %s TO temp_column" % (table, column), "ALTER TABLE %s ADD COLUMN %s %s" % (table, column, new_type), "ALTER TABLE %s DROP COLUMN temp_column" % table ] if copy: commands.insert( 2, "UPDATE %s SET %s=temp_column::%s" % (table, column, new_type)) for command in commands: cr.execute(command)
|
e09b89697412035328e4bb3fbf63d815e7af5b7d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/e09b89697412035328e4bb3fbf63d815e7af5b7d/pre.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
2827,
12,
3353,
16,
1014,
16,
1057,
16,
394,
67,
723,
16,
1610,
4672,
4364,
273,
306,
315,
18843,
7567,
738,
87,
534,
21150,
13473,
738,
87,
8493,
1906,
67,
2827,
6,
738,
261,
2121,
16,
1057,
3631,
315,
18843,
7567,
738,
87,
11689,
13473,
738,
87,
738,
87,
6,
738,
261,
2121,
16,
1057,
16,
394,
67,
723,
3631,
315,
18843,
7567,
738,
87,
25736,
13473,
1906,
67,
2827,
6,
738,
1014,
308,
309,
1610,
30,
4364,
18,
6387,
12,
576,
16,
315,
8217,
738,
87,
7855,
738,
87,
33,
5814,
67,
2827,
2866,
9,
87,
6,
738,
261,
2121,
16,
1057,
16,
394,
67,
723,
3719,
225,
364,
1296,
316,
4364,
30,
4422,
18,
8837,
12,
3076,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
2827,
12,
3353,
16,
1014,
16,
1057,
16,
394,
67,
723,
16,
1610,
4672,
4364,
273,
306,
315,
18843,
7567,
738,
87,
534,
21150,
13473,
738,
87,
8493,
1906,
67,
2827,
6,
738,
261,
2121,
16,
1057,
3631,
315,
18843,
7567,
738,
87,
11689,
13473,
738,
87,
738,
87,
6,
738,
261,
2121,
16,
1057,
16,
394,
67,
723,
3631,
315,
18843,
7567,
738,
87,
25736,
13473,
1906,
67,
2827,
6,
738,
1014,
308,
309,
1610,
30,
4364,
18,
6387,
12,
576,
16,
315,
8217,
738,
87,
7855,
738,
87,
33,
5814,
67,
2827,
2866,
9,
87,
6,
738,
261,
2121,
16,
1057,
16,
394,
67,
723,
3719,
225,
364,
1296,
316,
4364,
30,
4422,
18,
2
] |
if extra_chrome_flags is not None:
|
if extra_chrome_flags:
|
def __init__(self, methodName='runTest', extra_chrome_flags=None): """Initialize PyUITest.
|
1c7ab112b8fd89fc71616f789ad0474489b02d18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/1c7ab112b8fd89fc71616f789ad0474489b02d18/pyauto.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4918,
2218,
2681,
4709,
2187,
2870,
67,
343,
10896,
67,
7133,
33,
7036,
4672,
3536,
7520,
4707,
57,
1285,
395,
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,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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,
1001,
2738,
972,
12,
2890,
16,
4918,
2218,
2681,
4709,
2187,
2870,
67,
343,
10896,
67,
7133,
33,
7036,
4672,
3536,
7520,
4707,
57,
1285,
395,
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
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 788) else quickfix.IntField.__init__(self, 788, 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,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
5482,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
5482,
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
] |
[
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,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
5482,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
5482,
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
] |
['docutils/writers/latex2e/latex2e.tex']),
|
['docutils/writers/latex2e/default.tex', 'docutils/writers/latex2e/titlepage.tex',]),
|
def do_setup(): kwargs = package_data.copy() extras = get_extras() if extras: kwargs['py_modules'] = extras kwargs['classifiers'] = classifiers # Install data files properly. Note that we use a different # hack for Python 2.2, which does not *always* work, though; # see # <http://article.gmane.org/gmane.text.docutils.user/2867>. # So for Python 2.3+, we prefer this hack. kwargs['cmdclass'] = {'install_data': smart_install_data, 'build_py': build_py, 'build_data': build_data} dist = setup(**kwargs) return dist
|
4b019d43bdea1a1fbb171f3b195bd92da54fd902 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/4b019d43bdea1a1fbb171f3b195bd92da54fd902/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8401,
13332,
1205,
273,
2181,
67,
892,
18,
3530,
1435,
11875,
273,
336,
67,
23687,
1435,
309,
11875,
30,
1205,
3292,
2074,
67,
6400,
3546,
273,
11875,
1205,
3292,
1106,
3383,
3546,
273,
667,
3383,
468,
10284,
501,
1390,
8214,
18,
225,
3609,
716,
732,
999,
279,
3775,
468,
11769,
364,
6600,
576,
18,
22,
16,
1492,
1552,
486,
380,
17737,
14,
1440,
16,
11376,
31,
468,
2621,
468,
411,
2505,
2207,
11480,
18,
75,
4728,
73,
18,
3341,
19,
75,
4728,
73,
18,
955,
18,
2434,
5471,
18,
1355,
19,
22,
5292,
27,
18652,
468,
6155,
364,
6600,
576,
18,
23,
15,
16,
732,
13256,
333,
11769,
18,
1205,
3292,
4172,
1106,
3546,
273,
13666,
5425,
67,
892,
4278,
13706,
67,
5425,
67,
892,
16,
296,
3510,
67,
2074,
4278,
1361,
67,
2074,
16,
296,
3510,
67,
892,
4278,
1361,
67,
892,
97,
2411,
273,
3875,
12,
636,
4333,
13,
327,
2411,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8401,
13332,
1205,
273,
2181,
67,
892,
18,
3530,
1435,
11875,
273,
336,
67,
23687,
1435,
309,
11875,
30,
1205,
3292,
2074,
67,
6400,
3546,
273,
11875,
1205,
3292,
1106,
3383,
3546,
273,
667,
3383,
468,
10284,
501,
1390,
8214,
18,
225,
3609,
716,
732,
999,
279,
3775,
468,
11769,
364,
6600,
576,
18,
22,
16,
1492,
1552,
486,
380,
17737,
14,
1440,
16,
11376,
31,
468,
2621,
468,
411,
2505,
2207,
11480,
18,
75,
4728,
73,
18,
3341,
19,
75,
4728,
73,
18,
955,
18,
2434,
5471,
18,
1355,
19,
22,
5292,
27,
18652,
468,
6155,
364,
6600,
576,
18,
23,
15,
16,
732,
13256,
333,
11769,
18,
1205,
3292,
4172,
1106,
3546,
273,
13666,
2
] |
self.body.append(self.comment('depart_field_list'))
|
self.dedent('depart_field_list')
|
def depart_field_list(self, node): self.body.append(self.comment('depart_field_list'))
|
33fb604531cb0884e8062b15ab6fc530c3335af8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/33fb604531cb0884e8062b15ab6fc530c3335af8/manpage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
1518,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
3469,
2668,
323,
2680,
67,
1518,
67,
1098,
26112,
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,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
stream.seek(stream.tell() - block_size + idx - len(prefix))
|
pos = stream.tell() - actual_block_size + idx - len(prefix) stream.seek(pos)
|
def get_document_info(stream): """ Extract the \info block from an RTF file. Return the info block as a string and the position in the file at which it starts. @param stream: File like object pointing to the RTF file. """ block_size = 4096 stream.seek(0) found, block = False, "" while not found: prefix = block[-6:] block = prefix + stream.read(block_size) if len(block) == len(prefix): break idx = block.find(r'{\info') if idx >= 0: found = True stream.seek(stream.tell() - block_size + idx - len(prefix)) else: if block.find(r'\sect') > -1: break if not found: return None, 0 data, count, = cStringIO.StringIO(), 0 pos = stream.tell() while True: ch = stream.read(1) if ch == '\\': data.write(ch + stream.read(1)) continue if ch == '{': count += 1 elif ch == '}': count -= 1 data.write(ch) if count == 0: break return data.getvalue(), pos
|
547e984accf3e44b8b205ca5759481b9e249c475 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/547e984accf3e44b8b205ca5759481b9e249c475/rtf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5457,
67,
1376,
12,
3256,
4672,
3536,
8152,
326,
521,
1376,
1203,
628,
392,
13060,
42,
585,
18,
2000,
326,
1123,
1203,
487,
279,
533,
471,
326,
1754,
316,
326,
585,
622,
1492,
518,
2542,
18,
632,
891,
1407,
30,
1387,
3007,
733,
17022,
358,
326,
13060,
42,
585,
18,
3536,
1203,
67,
1467,
273,
16797,
1407,
18,
16508,
12,
20,
13,
1392,
16,
1203,
273,
1083,
16,
1408,
1323,
486,
1392,
30,
1633,
273,
1203,
18919,
26,
26894,
1203,
273,
1633,
397,
1407,
18,
896,
12,
2629,
67,
1467,
13,
309,
562,
12,
2629,
13,
422,
562,
12,
3239,
4672,
898,
2067,
273,
1203,
18,
4720,
12,
86,
19163,
64,
1376,
6134,
309,
2067,
1545,
374,
30,
1392,
273,
1053,
949,
273,
1407,
18,
88,
1165,
1435,
300,
3214,
67,
2629,
67,
1467,
397,
2067,
300,
562,
12,
3239,
13,
1407,
18,
16508,
12,
917,
13,
469,
30,
309,
1203,
18,
4720,
12,
86,
8314,
5709,
6134,
405,
300,
21,
30,
898,
309,
486,
1392,
30,
327,
599,
16,
374,
501,
16,
1056,
16,
273,
276,
780,
4294,
18,
780,
4294,
9334,
374,
949,
273,
1407,
18,
88,
1165,
1435,
1323,
1053,
30,
462,
273,
1407,
18,
896,
12,
21,
13,
309,
462,
422,
3718,
4278,
501,
18,
2626,
12,
343,
397,
1407,
18,
896,
12,
21,
3719,
1324,
309,
462,
422,
2292,
4278,
1056,
1011,
404,
1327,
462,
422,
9571,
30,
1056,
3947,
404,
501,
18,
2626,
12,
343,
13,
309,
1056,
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,
67,
5457,
67,
1376,
12,
3256,
4672,
3536,
8152,
326,
521,
1376,
1203,
628,
392,
13060,
42,
585,
18,
2000,
326,
1123,
1203,
487,
279,
533,
471,
326,
1754,
316,
326,
585,
622,
1492,
518,
2542,
18,
632,
891,
1407,
30,
1387,
3007,
733,
17022,
358,
326,
13060,
42,
585,
18,
3536,
1203,
67,
1467,
273,
16797,
1407,
18,
16508,
12,
20,
13,
1392,
16,
1203,
273,
1083,
16,
1408,
1323,
486,
1392,
30,
1633,
273,
1203,
18919,
26,
26894,
1203,
273,
1633,
397,
1407,
18,
896,
12,
2629,
67,
1467,
13,
309,
562,
12,
2629,
13,
422,
562,
12,
3239,
4672,
898,
2067,
273,
1203,
18,
4720,
12,
86,
19163,
64,
1376,
6134,
309,
2067,
1545,
2
] |
return min([s.size for s in self.snapshots])
|
return min(self.snapshots, key=snapshot_size)
|
def minimum(self): return min([s.size for s in self.snapshots])
|
00f6d858aea77b2669540778bf66324fc3ba45f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12624/00f6d858aea77b2669540778bf66324fc3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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5224,
12,
2890,
4672,
327,
1131,
3816,
87,
18,
1467,
364,
272,
316,
365,
18,
26918,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.response.out.write(template.render(path, ''))
|
self.response.out.write(template.render(path, {}))
|
def get(self): path = os.path.join(os.path.dirname(__file__), '..', 'views','session_timeout.html') self.response.out.write(template.render(path, ''))
|
a8fc2bb2266556635861bee40bbd7fe9979135e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/a8fc2bb2266556635861bee40bbd7fe9979135e4/route.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
589,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
11597,
2187,
296,
7061,
17023,
3184,
67,
4538,
18,
2620,
6134,
365,
18,
2740,
18,
659,
18,
2626,
12,
3202,
18,
5902,
12,
803,
16,
875,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2890,
4672,
589,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
11597,
2187,
296,
7061,
17023,
3184,
67,
4538,
18,
2620,
6134,
365,
18,
2740,
18,
659,
18,
2626,
12,
3202,
18,
5902,
12,
803,
16,
875,
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
] |
if not hasattr(fs,'list'): form['BODY']=other['BODY']=fs.value
|
if not hasattr(fs,'list') or fs.list is None: form['BODY']=other['BODY']=fs.value
|
def __init__(self,
|
5a194cb1e8ac4dfaf8df47395c0af4d00c62b4dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/5a194cb1e8ac4dfaf8df47395c0af4d00c62b4dc/Publish.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if isinstance(value, xobj.XObj): doc = xobj.Document() doc._xobj.elements.append(name) setattr(doc, name, value) return self.__class__(value.id, self._client, doc, parent=self)
|
return self._client.cache(value.id, self._client, value, parent=self)
|
def _getObj(self, name, value): # Wrap this instance with an rObj. if hasattr(value, 'id'): # Wrap the xobj in an xobj document so that it can be serialized # later. if isinstance(value, xobj.XObj): doc = xobj.Document() doc._xobj.elements.append(name) setattr(doc, name, value) return self.__class__(value.id, self._client, doc, parent=self)
|
3313d042df4985bef89ce45cecf597816a15faa9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7637/3313d042df4985bef89ce45cecf597816a15faa9/proxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2675,
12,
2890,
16,
508,
16,
460,
4672,
468,
4266,
333,
791,
598,
392,
436,
2675,
18,
309,
3859,
12,
1132,
16,
296,
350,
11,
4672,
468,
4266,
326,
619,
2603,
316,
392,
619,
2603,
1668,
1427,
716,
518,
848,
506,
5343,
468,
5137,
18,
309,
1549,
12,
1132,
16,
619,
2603,
18,
60,
2675,
4672,
997,
273,
619,
2603,
18,
2519,
1435,
997,
6315,
92,
2603,
18,
6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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2675,
12,
2890,
16,
508,
16,
460,
4672,
468,
4266,
333,
791,
598,
392,
436,
2675,
18,
309,
3859,
12,
1132,
16,
296,
350,
11,
4672,
468,
4266,
326,
619,
2603,
316,
392,
619,
2603,
1668,
1427,
716,
518,
848,
506,
5343,
468,
5137,
18,
309,
1549,
12,
1132,
16,
619,
2603,
18,
60,
2675,
4672,
997,
273,
619,
2603,
18,
2519,
1435,
997,
6315,
92,
2603,
18,
6274,
18,
6923,
12,
529,
13,
9241,
12,
2434,
16,
508,
16,
460,
13,
327,
365,
16186,
1106,
972,
12,
1132,
18,
350,
16,
365,
6315,
2625,
16,
997,
16,
982,
33,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
o.write("%s() {\n%s\n}\n" % (var, val))
|
o.write("%s() {\n%s\n}\n" % (varExpanded, val))
|
def emit_var(var, o=sys.__stdout__, d = init(), all=False): """Emit a variable to be sourced by a shell.""" if getVarFlag(var, "python", d): return 0 try: if all: oval = getVar(var, d, 0) val = getVar(var, d, 1) except KeyboardInterrupt: raise except: excname = str(sys.exc_info()[0]) if excname == "bb.build.FuncFailed": raise o.write('# expansion of %s threw %s\n' % (var, excname)) return 0 if all: o.write('# %s=%s\n' % (var, oval)) if type(val) is not types.StringType: return 0 if getVarFlag(var, 'matchesenv', d): return 0 if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: return 0 val.rstrip() if not val: return 0 if getVarFlag(var, "func", d):
|
8440c4c71d5e5db581f69a4c5331d520bbc87285 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/8440c4c71d5e5db581f69a4c5331d520bbc87285/data.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
67,
1401,
12,
1401,
16,
320,
33,
9499,
16186,
10283,
972,
16,
302,
273,
1208,
9334,
777,
33,
8381,
4672,
3536,
17982,
279,
2190,
358,
506,
1084,
72,
635,
279,
5972,
12123,
309,
22381,
4678,
12,
1401,
16,
315,
8103,
3113,
302,
4672,
327,
374,
225,
775,
30,
309,
777,
30,
320,
1125,
273,
22381,
12,
1401,
16,
302,
16,
374,
13,
1244,
273,
22381,
12,
1401,
16,
302,
16,
404,
13,
1335,
19424,
30,
1002,
1335,
30,
3533,
529,
273,
609,
12,
9499,
18,
10075,
67,
1376,
1435,
63,
20,
5717,
309,
3533,
529,
422,
315,
9897,
18,
3510,
18,
2622,
2925,
6877,
1002,
320,
18,
2626,
2668,
7,
17965,
434,
738,
87,
21146,
738,
87,
64,
82,
11,
738,
261,
1401,
16,
3533,
529,
3719,
327,
374,
225,
309,
777,
30,
320,
18,
2626,
2668,
7,
738,
87,
5095,
87,
64,
82,
11,
738,
261,
1401,
16,
320,
1125,
3719,
225,
309,
618,
12,
1125,
13,
353,
486,
1953,
18,
780,
559,
30,
327,
374,
225,
309,
22381,
4678,
12,
1401,
16,
296,
8436,
3074,
2187,
302,
4672,
327,
374,
225,
309,
261,
1401,
18,
4720,
2932,
17,
7923,
480,
300,
21,
578,
569,
18,
4720,
2932,
1199,
13,
480,
300,
21,
578,
569,
18,
4720,
2668,
95,
6134,
480,
300,
21,
578,
569,
18,
4720,
2668,
1713,
13,
480,
300,
21,
578,
569,
18,
4720,
2668,
15,
6134,
480,
300,
21,
13,
471,
486,
777,
30,
327,
374,
225,
1244,
18,
86,
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,
3626,
67,
1401,
12,
1401,
16,
320,
33,
9499,
16186,
10283,
972,
16,
302,
273,
1208,
9334,
777,
33,
8381,
4672,
3536,
17982,
279,
2190,
358,
506,
1084,
72,
635,
279,
5972,
12123,
309,
22381,
4678,
12,
1401,
16,
315,
8103,
3113,
302,
4672,
327,
374,
225,
775,
30,
309,
777,
30,
320,
1125,
273,
22381,
12,
1401,
16,
302,
16,
374,
13,
1244,
273,
22381,
12,
1401,
16,
302,
16,
404,
13,
1335,
19424,
30,
1002,
1335,
30,
3533,
529,
273,
609,
12,
9499,
18,
10075,
67,
1376,
1435,
63,
20,
5717,
309,
3533,
529,
422,
315,
9897,
18,
3510,
18,
2622,
2925,
6877,
1002,
320,
18,
2626,
2668,
7,
17965,
434,
738,
87,
21146,
738,
87,
2
] |
input = dialog_question(_("Return to default"), msg, button1=yes, button2=no) if input == yes:
|
if True:
|
def on_default(self): yes = _("Yes") no = _("No") msg = _("Would you reset all settings to default ?") input = dialog_question(_("Return to default"), msg, button1=yes, button2=no) if input == yes: cp = ConfigParser() cp.read(conf.conf_file) for tab in conf.settings: for setting in tab['settings']: if setting.has_key('group'): items = setting['group'] else: items = [ setting ] for item in items: cp.remove_option(item['sectid'], item['confid']) cp.write(open(conf.conf_file, "w")) reload(conf)
|
4805cf97272ac02671e3daa65d0346c781877dc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/4805cf97272ac02671e3daa65d0346c781877dc7/gui_pyqt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1886,
12,
2890,
4672,
12465,
273,
389,
2932,
22352,
7923,
1158,
225,
273,
389,
2932,
2279,
7923,
1234,
273,
389,
2932,
59,
1006,
1846,
2715,
777,
1947,
358,
805,
692,
7923,
225,
309,
1053,
30,
3283,
273,
25076,
1435,
3283,
18,
896,
12,
3923,
18,
3923,
67,
768,
13,
364,
3246,
316,
2195,
18,
4272,
30,
364,
3637,
316,
3246,
3292,
4272,
3546,
30,
309,
3637,
18,
5332,
67,
856,
2668,
1655,
11,
4672,
1516,
273,
3637,
3292,
1655,
3546,
469,
30,
1516,
273,
306,
3637,
308,
364,
761,
316,
1516,
30,
3283,
18,
4479,
67,
3482,
12,
1726,
3292,
5709,
350,
17337,
761,
3292,
3923,
350,
19486,
3283,
18,
2626,
12,
3190,
12,
3923,
18,
3923,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1886,
12,
2890,
4672,
12465,
273,
389,
2932,
22352,
7923,
1158,
225,
273,
389,
2932,
2279,
7923,
1234,
273,
389,
2932,
59,
1006,
1846,
2715,
777,
1947,
358,
805,
692,
7923,
225,
309,
1053,
30,
3283,
273,
25076,
1435,
3283,
18,
896,
12,
3923,
18,
3923,
67,
768,
13,
364,
3246,
316,
2195,
18,
4272,
30,
364,
3637,
316,
3246,
3292,
4272,
3546,
30,
309,
3637,
18,
5332,
67,
856,
2668,
1655,
11,
4672,
1516,
273,
3637,
3292,
1655,
3546,
469,
30,
1516,
273,
306,
3637,
308,
364,
761,
316,
1516,
30,
3283,
18,
4479,
67,
3482,
12,
1726,
3292,
5709,
350,
17337,
761,
3292,
3923,
350,
19486,
3283,
18,
2626,
12,
3190,
12,
3923,
18,
2
] |
print(fmt % tuple(['-'*15] * len(fields)))
|
print(fmt % tuple([ '-' * (w - 2) for w in widths ]))
|
def display_table(self, db, desc, sql, args = [], fields = []): """Display multirow query as a table."""
|
625ee69b6d4897932f15432d16840606be7bbdfd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/625ee69b6d4897932f15432d16840606be7bbdfd/adminscript.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
2121,
12,
2890,
16,
1319,
16,
3044,
16,
1847,
16,
833,
273,
5378,
16,
1466,
273,
5378,
4672,
3536,
4236,
3309,
492,
843,
487,
279,
1014,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
2121,
12,
2890,
16,
1319,
16,
3044,
16,
1847,
16,
833,
273,
5378,
16,
1466,
273,
5378,
4672,
3536,
4236,
3309,
492,
843,
487,
279,
1014,
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
] |
iter = difflinestates(states, prevstates)
|
iter = difflinestates(pstates, states)
|
def display(fn, rev, states, prevstates): datefunc = ui.quiet and util.shortdate or util.datestr found = False filerevmatches = {} r = prev.get(fn, -1) if opts.get('all'): iter = difflinestates(states, prevstates) else: iter = [('', l) for l in prevstates] for change, l in iter: cols = [fn, str(r)] if opts.get('line_number'): cols.append(str(l.linenum)) if opts.get('all'): cols.append(change) if opts.get('user'): cols.append(ui.shortuser(get(r)[1])) if opts.get('date'): cols.append(datefunc(get(r)[2])) if opts.get('files_with_matches'): c = (fn, r) if c in filerevmatches: continue filerevmatches[c] = 1 else: cols.append(l.line) ui.write(sep.join(cols), eol) found = True return found
|
3a9f0b4458b06c37a69f901f77dd0fd0cb66c628 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/3a9f0b4458b06c37a69f901f77dd0fd0cb66c628/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
1509,
644,
273,
5915,
18,
20380,
471,
1709,
18,
6620,
712,
578,
1709,
18,
9683,
313,
1392,
273,
1083,
661,
822,
90,
8436,
273,
2618,
436,
273,
2807,
18,
588,
12,
4293,
16,
300,
21,
13,
309,
1500,
18,
588,
2668,
454,
11,
4672,
1400,
273,
1901,
2242,
267,
395,
815,
12,
84,
7992,
16,
5493,
13,
469,
30,
1400,
273,
306,
2668,
2187,
328,
13,
364,
328,
316,
2807,
7992,
65,
364,
2549,
16,
328,
316,
1400,
30,
5347,
273,
306,
4293,
16,
609,
12,
86,
25887,
309,
1500,
18,
588,
2668,
1369,
67,
2696,
11,
4672,
5347,
18,
6923,
12,
701,
12,
80,
18,
7511,
7924,
3719,
309,
1500,
18,
588,
2668,
454,
11,
4672,
5347,
18,
6923,
12,
3427,
13,
309,
1500,
18,
588,
2668,
1355,
11,
4672,
5347,
18,
6923,
12,
4881,
18,
6620,
1355,
12,
588,
12,
86,
25146,
21,
22643,
309,
1500,
18,
588,
2668,
712,
11,
4672,
5347,
18,
6923,
12,
712,
644,
12,
588,
12,
86,
25146,
22,
22643,
309,
1500,
18,
588,
2668,
2354,
67,
1918,
67,
8436,
11,
4672,
276,
273,
261,
4293,
16,
436,
13,
309,
276,
316,
661,
822,
90,
8436,
30,
1324,
661,
822,
90,
8436,
63,
71,
65,
273,
404,
469,
30,
5347,
18,
6923,
12,
80,
18,
1369,
13,
5915,
18,
2626,
12,
10814,
18,
5701,
12,
6842,
3631,
14775,
13,
1392,
273,
1053,
327,
1392,
2,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
1509,
644,
273,
5915,
18,
20380,
471,
1709,
18,
6620,
712,
578,
1709,
18,
9683,
313,
1392,
273,
1083,
661,
822,
90,
8436,
273,
2618,
436,
273,
2807,
18,
588,
12,
4293,
16,
300,
21,
13,
309,
1500,
18,
588,
2668,
454,
11,
4672,
1400,
273,
1901,
2242,
267,
395,
815,
12,
84,
7992,
16,
5493,
13,
469,
30,
1400,
273,
306,
2668,
2187,
328,
13,
364,
328,
316,
2807,
7992,
65,
364,
2549,
16,
328,
316,
1400,
30,
5347,
273,
306,
4293,
16,
609,
12,
86,
25887,
309,
1500,
18,
588,
2668,
1369,
67,
2696,
11,
4672,
5347,
18,
6923,
12,
701,
12,
80,
18,
7511,
2
] |
sp = subprocess.Popen(cmd, cwd=cwd, stdout=stdout) output = sp.communicate()[0]
|
logging.debug(cmd) try: sp = subprocess.Popen(cmd, cwd=cwd, stdout=stdout) output = sp.communicate()[0] except OSError: raise gclient_utils.Error("git command '%s' failed to run." % ' '.join(cmd) + "\nCheck that you have git installed.")
|
def _Run(self, args, cwd=None, checkrc=True, redirect_stdout=True): # TODO(maruel): Merge with Capture? if cwd is None: cwd = self.checkout_path stdout=None if redirect_stdout: stdout=subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = [self.COMMAND] cmd.extend(args) sp = subprocess.Popen(cmd, cwd=cwd, stdout=stdout) output = sp.communicate()[0] if checkrc and sp.returncode: raise gclient_utils.Error('git command %s returned %d' % (args[0], sp.returncode)) if output is not None: return output.strip()
|
a28d87db49c30431f4bf81d5b8e787c72b26d72d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/a28d87db49c30431f4bf81d5b8e787c72b26d72d/gclient_scm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1997,
12,
2890,
16,
833,
16,
7239,
33,
7036,
16,
866,
1310,
33,
5510,
16,
3136,
67,
10283,
33,
5510,
4672,
468,
2660,
12,
3684,
20317,
4672,
8964,
598,
18477,
35,
309,
7239,
353,
599,
30,
7239,
273,
365,
18,
17300,
67,
803,
3909,
33,
7036,
309,
3136,
67,
10283,
30,
3909,
33,
1717,
2567,
18,
27602,
309,
7239,
422,
599,
30,
7239,
273,
365,
18,
17300,
67,
803,
1797,
273,
306,
2890,
18,
19104,
65,
1797,
18,
14313,
12,
1968,
13,
2907,
18,
4148,
12,
4172,
13,
775,
30,
1694,
273,
6652,
18,
52,
3190,
12,
4172,
16,
7239,
33,
11089,
16,
3909,
33,
10283,
13,
876,
273,
1694,
18,
5702,
318,
2659,
1435,
63,
20,
65,
1335,
10002,
30,
1002,
314,
2625,
67,
5471,
18,
668,
2932,
6845,
1296,
1995,
87,
11,
2535,
358,
1086,
1199,
738,
296,
2418,
5701,
12,
4172,
13,
397,
1548,
82,
1564,
716,
1846,
1240,
5071,
5876,
1199,
13,
309,
866,
1310,
471,
1694,
18,
2463,
710,
30,
1002,
314,
2625,
67,
5471,
18,
668,
2668,
6845,
1296,
738,
87,
2106,
738,
72,
11,
738,
261,
1968,
63,
20,
6487,
1694,
18,
2463,
710,
3719,
309,
876,
353,
486,
599,
30,
327,
876,
18,
6406,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1997,
12,
2890,
16,
833,
16,
7239,
33,
7036,
16,
866,
1310,
33,
5510,
16,
3136,
67,
10283,
33,
5510,
4672,
468,
2660,
12,
3684,
20317,
4672,
8964,
598,
18477,
35,
309,
7239,
353,
599,
30,
7239,
273,
365,
18,
17300,
67,
803,
3909,
33,
7036,
309,
3136,
67,
10283,
30,
3909,
33,
1717,
2567,
18,
27602,
309,
7239,
422,
599,
30,
7239,
273,
365,
18,
17300,
67,
803,
1797,
273,
306,
2890,
18,
19104,
65,
1797,
18,
14313,
12,
1968,
13,
2907,
18,
4148,
12,
4172,
13,
775,
30,
1694,
273,
6652,
18,
52,
3190,
12,
4172,
16,
7239,
33,
11089,
16,
3909,
33,
10283,
13,
876,
273,
1694,
18,
5702,
318,
2659,
1435,
63,
20,
2
] |
def generate_pattern_card(t, c, n, s, scale):
|
def generate_pattern_card(shape, color, number, fill, scale):
|
def generate_pattern_card(t, c, n, s, scale): svg = SVG() svg.set_scale(scale) svg.set_stroke_width(0.5) svg.set_colors([BLACK, COLOR_PAIRS[c][1]]) svg_string = svg.header() svg_string += svg.pattern_card(CARD_TYPES[t], COLOR_PAIRS[c], n+1, FILL_STYLES[s]) svg_string += svg.footer() return svg_string
|
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4951,
67,
3327,
12,
4867,
16,
2036,
16,
1300,
16,
3636,
16,
3159,
4672,
9804,
273,
11281,
1435,
9804,
18,
542,
67,
5864,
12,
5864,
13,
9804,
18,
542,
67,
16181,
67,
2819,
12,
20,
18,
25,
13,
9804,
18,
542,
67,
9724,
3816,
14618,
3649,
16,
15590,
67,
4066,
7937,
55,
63,
71,
6362,
21,
65,
5717,
9804,
67,
1080,
273,
9804,
18,
3374,
1435,
9804,
67,
1080,
1011,
9804,
18,
4951,
67,
3327,
12,
28760,
67,
10564,
63,
88,
6487,
15590,
67,
4066,
7937,
55,
63,
71,
6487,
290,
15,
21,
16,
8445,
48,
67,
882,
61,
11386,
63,
87,
5717,
9804,
67,
1080,
1011,
9804,
18,
14723,
1435,
327,
9804,
67,
1080,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4951,
67,
3327,
12,
4867,
16,
2036,
16,
1300,
16,
3636,
16,
3159,
4672,
9804,
273,
11281,
1435,
9804,
18,
542,
67,
5864,
12,
5864,
13,
9804,
18,
542,
67,
16181,
67,
2819,
12,
20,
18,
25,
13,
9804,
18,
542,
67,
9724,
3816,
14618,
3649,
16,
15590,
67,
4066,
7937,
55,
63,
71,
6362,
21,
65,
5717,
9804,
67,
1080,
273,
9804,
18,
3374,
1435,
9804,
67,
1080,
1011,
9804,
18,
4951,
67,
3327,
12,
28760,
67,
10564,
63,
88,
6487,
15590,
67,
4066,
7937,
55,
63,
71,
6487,
290,
15,
21,
16,
8445,
48,
67,
882,
61,
11386,
63,
87,
5717,
9804,
67,
1080,
1011,
9804,
18,
14723,
1435,
327,
9804,
67,
1080,
225,
2
] |
res = self._query(req)
|
res = self._query( req )
|
def getPrognosisProblematics(self,prognosis): """ Get all the active files with the given problematic """ req = "SELECT FileID,LFN,PFN,Size,SE,GUID,Prognosis FROM Problematics WHERE Prognosis = '%s' AND Status = 'New' ORDER BY Retries,LastUpdate;" % prognosis res = self._query(req) if not res['OK']: return res problematics = [] for fileid,lfn,pfn,size,se,guid,prognosis in res['Value']: problematics.append({'FileID':fileid,'LFN':lfn,'PFN':pfn,'Size':size,'SE':se,'GUID':guid,'Prognosis':prognosis}) return S_OK(problematics)
|
c0ad35468416f798369c9462d5f8a11a19686a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c0ad35468416f798369c9462d5f8a11a19686a43/DataIntegrityDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
1600,
538,
291,
13719,
270,
2102,
12,
2890,
16,
685,
1600,
538,
291,
4672,
3536,
968,
777,
326,
2695,
1390,
598,
326,
864,
6199,
2126,
3536,
1111,
273,
315,
4803,
1387,
734,
16,
9105,
50,
16,
52,
19793,
16,
1225,
16,
1090,
16,
17525,
16,
626,
1600,
538,
291,
4571,
21685,
270,
2102,
4852,
1186,
1600,
538,
291,
273,
1995,
87,
11,
4116,
2685,
273,
296,
1908,
11,
10205,
6953,
534,
9407,
16,
3024,
1891,
4868,
738,
450,
1600,
538,
291,
400,
273,
365,
6315,
2271,
12,
1111,
262,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
6199,
270,
2102,
273,
5378,
364,
585,
350,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
685,
1600,
538,
291,
316,
400,
3292,
620,
3546,
30,
6199,
270,
2102,
18,
6923,
12590,
11,
812,
734,
4278,
768,
350,
11189,
9105,
50,
4278,
80,
4293,
11189,
52,
19793,
4278,
84,
4293,
11189,
1225,
4278,
1467,
11189,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0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
1600,
538,
291,
13719,
270,
2102,
12,
2890,
16,
685,
1600,
538,
291,
4672,
3536,
968,
777,
326,
2695,
1390,
598,
326,
864,
6199,
2126,
3536,
1111,
273,
315,
4803,
1387,
734,
16,
9105,
50,
16,
52,
19793,
16,
1225,
16,
1090,
16,
17525,
16,
626,
1600,
538,
291,
4571,
21685,
270,
2102,
4852,
1186,
1600,
538,
291,
273,
1995,
87,
11,
4116,
2685,
273,
296,
1908,
11,
10205,
6953,
534,
9407,
16,
3024,
1891,
4868,
738,
450,
1600,
538,
291,
400,
273,
365,
6315,
2271,
12,
1111,
262,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
6199,
270,
2102,
273,
5378,
364,
585,
350,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.