rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
ignore1, ignore2, ignore3, final_time_free = self._jmim.opt_get_optimization_interval()
|
ignore1, ignore2, ignore3, final_time_free = self._m.jmimodel.opt_get_optimization_interval()
|
def isFreeFinalTime(self): ignore1, ignore2, ignore3, final_time_free = self._jmim.opt_get_optimization_interval() return final_time_free == 1
|
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
9194,
7951,
950,
12,
2890,
4672,
2305,
21,
16,
2305,
22,
16,
2305,
23,
16,
727,
67,
957,
67,
9156,
273,
365,
6315,
81,
18,
78,
81,
381,
1009,
18,
3838,
67,
588,
67,
16689,
1588,
67,
6624,
1435,
327,
727,
67,
957,
67,
9156,
422,
404,
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,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,
1588,
67,
6624,
1435,
327,
727,
67,
957,
67,
9156,
422,
404,
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
] |
sqlQuery = sqlQuery + " WHERE tsvector_street_housenumber_city @@ to_tsquery('" + tsquery + "')"
|
sqlQuery = sqlQuery + " WHERE tsvector_street_housenumber_city @@ to_tsquery('english','" + tsquery + "')"
|
def fullTextSearch(self,request): # addresses/fullTextSearch?fields=street,city,housenumber&query=ch%20du%2028&tolerance=0.005&easting=6.62379551&northing=46.51687241&limit=20&distinct=true # Read request parameters fields = request.params['fields']
|
b5802d22e5d41c8ddbbd831b4bcf601707da23a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4401/b5802d22e5d41c8ddbbd831b4bcf601707da23a8/addresses.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
1528,
2979,
12,
2890,
16,
2293,
4672,
468,
225,
6138,
19,
2854,
1528,
2979,
35,
2821,
33,
22424,
16,
14240,
16,
76,
1481,
21998,
10,
2271,
33,
343,
9,
3462,
2544,
9,
18212,
28,
10,
25456,
33,
20,
18,
28564,
10,
30318,
310,
33,
26,
18,
26,
4366,
7235,
2539,
21,
10,
29561,
4274,
33,
8749,
18,
25,
2313,
11035,
3247,
21,
10,
3595,
33,
3462,
10,
24592,
33,
3767,
468,
2720,
590,
1472,
1466,
273,
590,
18,
2010,
3292,
2821,
3546,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
1528,
2979,
12,
2890,
16,
2293,
4672,
468,
225,
6138,
19,
2854,
1528,
2979,
35,
2821,
33,
22424,
16,
14240,
16,
76,
1481,
21998,
10,
2271,
33,
343,
9,
3462,
2544,
9,
18212,
28,
10,
25456,
33,
20,
18,
28564,
10,
30318,
310,
33,
26,
18,
26,
4366,
7235,
2539,
21,
10,
29561,
4274,
33,
8749,
18,
25,
2313,
11035,
3247,
21,
10,
3595,
33,
3462,
10,
24592,
33,
3767,
468,
2720,
590,
1472,
1466,
273,
590,
18,
2010,
3292,
2821,
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
] |
p.set_objective( Sum( weight(l) * edge_used[(u,v)] for u,v,l in self.edges() ) )
|
p.set_objective( Sum(weight(l) * edge_used[(u,v)] for u, v, l in self.edges()))
|
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
|
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
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
] |
simu = simulator(pop, randomMating(sexParam=0.3, sexMode=MATE_ProbOfMale))
|
simu = simulator(pop, randomMating(sexMode=(ProbOfMale, 0.3)))
|
def testMateProbOfMale(self): '''Testing assigning offspring sex by probability''' pop = population(10000) simu = simulator(pop, randomMating(sexParam=0.3, sexMode=MATE_ProbOfMale)) simu.evolve( preOps = [initByFreq([0.5, 0.5])], ops = [ stat(numOfMale=True), # number of male should be variable, but not too much terminateIf('numOfMale < 2500 or numOfMale > 3500'), ], gen = 10 ) self.assertEqual(simu.gen(), 10)
|
dea4c91f42fa280e4e984c17ba3e6f321287e221 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/dea4c91f42fa280e4e984c17ba3e6f321287e221/test_05_matings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
49,
340,
9152,
951,
49,
5349,
12,
2890,
4672,
9163,
22218,
28639,
21174,
11638,
19631,
635,
11331,
26418,
1843,
273,
11209,
12,
23899,
13,
3142,
89,
273,
3142,
11775,
12,
5120,
16,
2744,
49,
1776,
12,
20909,
2309,
28657,
9152,
951,
49,
5349,
16,
374,
18,
23,
20349,
3142,
89,
18,
14965,
5390,
12,
675,
8132,
273,
306,
2738,
858,
14485,
3816,
20,
18,
25,
16,
374,
18,
25,
5717,
6487,
6727,
273,
306,
610,
12,
2107,
951,
49,
5349,
33,
5510,
3631,
468,
1300,
434,
312,
5349,
1410,
506,
2190,
16,
1496,
486,
4885,
9816,
10850,
2047,
2668,
2107,
951,
49,
5349,
411,
6969,
713,
578,
23153,
49,
5349,
405,
890,
12483,
19899,
308,
16,
3157,
273,
1728,
262,
365,
18,
11231,
5812,
12,
9812,
89,
18,
4507,
9334,
1728,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9152,
951,
49,
5349,
16,
374,
18,
23,
20349,
3142,
89,
18,
14965,
5390,
12,
675,
8132,
273,
306,
2738,
858,
14485,
3816,
20,
18,
25,
16,
374,
18,
25,
5717,
6487,
6727,
273,
306,
610,
12,
2107,
951,
49,
5349,
33,
5510,
3631,
468,
1300,
434,
312,
5349,
1410,
506,
2190,
16,
1496,
486,
4885,
9816,
10850,
2047,
2668,
2107,
951,
49,
5349,
411,
6969,
713,
578,
23153,
49,
5349,
405,
890,
12483,
19899,
308,
16,
3157,
2
] |
ValueError: j values must be integer or half integer and fulfil the triangle relation
|
ValueError: j values must be integer or half integer and fulfill the triangle relation
|
def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES:: sage: wigner_6j(3,3,3,3,3,3) -1/14 sage: wigner_6j(5,5,5,5,5,5) 1/52 sage: wigner_6j(6,6,6,6,6,6) 309/10868 sage: wigner_6j(8,8,8,8,8,8) -12219/965770 sage: wigner_6j(30,30,30,30,30,30) 36082186869033479581/87954851694828981714124 sage: wigner_6j(0.5,0.5,1,0.5,0.5,1) 1/6 sage: wigner_6j(200,200,200,200,200,200, prec=1000)*1.0 0.000155903212413242 It is an error to have arguments that are not integer or half integer values or do not fulfil the triangle relation:: sage: wigner_6j(2.5,2.5,2.5,2.5,2.5,2.5) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation sage: wigner_6j(0.5,0.5,1.1,0.5,0.5,1.1) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation NOTES: The Wigner 6j symbol is related to the Racah symbol but exhibits more symmetries as detailed below. .. math:: Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6) =(-1)^{j_1+j_2+j_4+j_5} W(j_1,j_2,j_5,j_4,j_3,j_6) The Wigner 6j symbol obeys the following symmetry rules: - Wigner $6j$ symbols are left invariant under any permutation of the columns: .. math:: Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6) =Wigner6j(j_3,j_1,j_2,j_6,j_4,j_5) =Wigner6j(j_2,j_3,j_1,j_5,j_6,j_4) =Wigner6j(j_3,j_2,j_1,j_6,j_5,j_4) =Wigner6j(j_1,j_3,j_2,j_4,j_6,j_5) =Wigner6j(j_2,j_1,j_3,j_5,j_4,j_6) - They are invariant under the exchange of the upper and lower arguments in each of any two columns, i. e. .. math:: Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6) =Wigner6j(j_1,j_5,j_6,j_4,j_2,j_3) =Wigner6j(j_4,j_2,j_6,j_1,j_5,j_3) =Wigner6j(j_4,j_5,j_3,j_1,j_2,j_6) - additional 6 symmetries [Regge59] giving rise to 144 symmetries in total - only non-zero if any triple of `j`'s fulfil a triangle relation ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 6j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Regge59] 'Symmetry Properties of Racah Coefficients', T. Regge, Nuovo Cimento, Volume 11, pp. 116 (1959) - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) """ res = (-1) ** (int(j_1 + j_2 + j_4 + j_5)) * \ racah(j_1, j_2, j_5, j_4, j_3, j_6, prec) return res
|
2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,
678,
724,
264,
1666,
78,
3273,
1375,
59,
724,
264,
26,
78,
12,
78,
67,
21,
16,
78,
67,
22,
16,
78,
67,
23,
16,
78,
67,
24,
16,
78,
67,
25,
16,
78,
67,
26,
13,
8338,
225,
12943,
30,
225,
300,
225,
12176,
78,
67,
21,
68,
9191,
1372,
16,
12176,
78,
67,
26,
10335,
300,
3571,
578,
8816,
3571,
225,
300,
225,
12176,
4036,
10335,
300,
6039,
16,
805,
30,
599,
18,
1186,
1246,
310,
279,
6039,
848,
302,
354,
334,
6478,
8632,
731,
326,
11096,
18,
225,
11550,
30,
225,
436,
8371,
1300,
4124,
326,
8576,
1365,
434,
279,
436,
8371,
1300,
261,
430,
13382,
33,
7036,
3631,
578,
2863,
1300,
309,
279,
6039,
353,
864,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
341,
724,
264,
67,
26,
78,
12,
23,
16,
23,
16,
23,
16,
23,
16,
23,
16,
23,
13,
300,
21,
19,
3461,
225,
272,
410,
30,
341,
724,
264,
67,
26,
78,
12,
25,
16,
25,
16,
25,
16,
25,
16,
25,
16,
25,
13,
404,
19,
9401,
225,
272,
410,
30,
341,
724,
264,
67,
26,
78,
12,
26,
16,
26,
16,
26,
16,
26,
16,
26,
16,
26,
13,
5196,
29,
19,
2163,
5292,
28,
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,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,
678,
724,
264,
1666,
78,
3273,
1375,
59,
724,
264,
26,
78,
12,
78,
67,
21,
16,
78,
67,
22,
16,
78,
67,
23,
16,
78,
67,
24,
16,
78,
67,
25,
16,
78,
67,
26,
13,
8338,
225,
12943,
30,
225,
300,
225,
12176,
78,
67,
21,
68,
9191,
1372,
16,
12176,
78,
67,
26,
10335,
300,
3571,
578,
8816,
3571,
225,
300,
225,
12176,
4036,
10335,
300,
6039,
16,
805,
30,
599,
18,
1186,
1246,
310,
279,
2
] |
"""
|
""")
|
def unpack(pkgfilename): '''unpack a tar[.gz|.bz2] source distribution package.''' if pkgfilename.endswith('.bz2'): d = 'j' elif pkgfilename.endswith('.gz'): d = 'z' shellCommand('tar ' + d + 'xf ' + pkgfilename) return os.path.basename(os.path.splitext(os.path.splitext(pkgfilename)[0]))
|
b4796f12253039e6a154e7c6028fd2f4e9ade2a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/b4796f12253039e6a154e7c6028fd2f4e9ade2a2/dws.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
12,
10657,
3459,
4672,
9163,
17309,
279,
8232,
63,
18,
9764,
96,
18,
25292,
22,
65,
1084,
7006,
2181,
1093,
6309,
309,
3475,
3459,
18,
5839,
1918,
2668,
18,
25292,
22,
11,
4672,
302,
273,
296,
78,
11,
1327,
3475,
3459,
18,
5839,
1918,
2668,
18,
9764,
11,
4672,
302,
273,
296,
94,
11,
5972,
2189,
2668,
11718,
296,
397,
302,
397,
296,
5841,
296,
397,
3475,
3459,
13,
327,
1140,
18,
803,
18,
13909,
12,
538,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
4939,
408,
12,
10657,
3459,
25146,
20,
22643,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
12,
10657,
3459,
4672,
9163,
17309,
279,
8232,
63,
18,
9764,
96,
18,
25292,
22,
65,
1084,
7006,
2181,
1093,
6309,
309,
3475,
3459,
18,
5839,
1918,
2668,
18,
25292,
22,
11,
4672,
302,
273,
296,
78,
11,
1327,
3475,
3459,
18,
5839,
1918,
2668,
18,
9764,
11,
4672,
302,
273,
296,
94,
11,
5972,
2189,
2668,
11718,
296,
397,
302,
397,
296,
5841,
296,
397,
3475,
3459,
13,
327,
1140,
18,
803,
18,
13909,
12,
538,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
4939,
408,
12,
10657,
3459,
25146,
20,
22643,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
branch = [b.lstrip('* ') for b in gitlog.stdout.split('\n')
|
branch = [b[2:] for b in gitlog.stdout.split('\n')
|
def get_branch(self, all=False, remote_tracking=False): """ Show the branches.
|
f4473f88d1e49fccfb1a6654c241ae8886c53120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/f4473f88d1e49fccfb1a6654c241ae8886c53120/git.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7500,
12,
2890,
16,
777,
33,
8381,
16,
2632,
67,
6440,
33,
8381,
4672,
3536,
9674,
326,
11483,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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483,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def createMessage(self, dir):
|
def createMessage(self, dir, mbox=False):
|
def createMessage(self, dir): t = int(time.time() % 1000000) pid = self._counter self._counter += 1 filename = os.extsep.join((str(t), str(pid), "myhostname", "mydomain")) tmpname = os.path.join(self._dir, "tmp", filename) newname = os.path.join(self._dir, dir, filename) fp = open(tmpname, "w") self._msgfiles.append(tmpname) fp.write(DUMMY_MESSAGE) fp.close() if hasattr(os, "link"): os.link(tmpname, newname) else: fp = open(newname, "w") fp.write(DUMMY_MESSAGE) fp.close() self._msgfiles.append(newname)
|
b868ddd858e12547d94ee46a40b7cb52fd3de21b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b868ddd858e12547d94ee46a40b7cb52fd3de21b/test_mailbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23836,
12,
2890,
16,
1577,
16,
312,
2147,
33,
8381,
4672,
268,
273,
509,
12,
957,
18,
957,
1435,
738,
15088,
13,
4231,
273,
365,
6315,
7476,
365,
6315,
7476,
1011,
404,
1544,
273,
1140,
18,
408,
10814,
18,
5701,
12443,
701,
12,
88,
3631,
609,
12,
6610,
3631,
315,
4811,
10358,
3113,
315,
4811,
4308,
6,
3719,
1853,
529,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
1214,
16,
315,
5645,
3113,
1544,
13,
26722,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
1214,
16,
1577,
16,
1544,
13,
4253,
273,
1696,
12,
5645,
529,
16,
315,
91,
7923,
365,
6315,
3576,
2354,
18,
6923,
12,
5645,
529,
13,
4253,
18,
2626,
12,
40,
2799,
22114,
67,
8723,
13,
4253,
18,
4412,
1435,
309,
3859,
12,
538,
16,
315,
1232,
6,
4672,
1140,
18,
1232,
12,
5645,
529,
16,
26722,
13,
469,
30,
4253,
273,
1696,
12,
2704,
529,
16,
315,
91,
7923,
4253,
18,
2626,
12,
40,
2799,
22114,
67,
8723,
13,
4253,
18,
4412,
1435,
365,
6315,
3576,
2354,
18,
6923,
12,
2704,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23836,
12,
2890,
16,
1577,
16,
312,
2147,
33,
8381,
4672,
268,
273,
509,
12,
957,
18,
957,
1435,
738,
15088,
13,
4231,
273,
365,
6315,
7476,
365,
6315,
7476,
1011,
404,
1544,
273,
1140,
18,
408,
10814,
18,
5701,
12443,
701,
12,
88,
3631,
609,
12,
6610,
3631,
315,
4811,
10358,
3113,
315,
4811,
4308,
6,
3719,
1853,
529,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
1214,
16,
315,
5645,
3113,
1544,
13,
26722,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
1214,
16,
1577,
16,
1544,
13,
4253,
273,
1696,
12,
5645,
529,
16,
315,
91,
7923,
365,
6315,
3576,
2354,
18,
6923,
12,
5645,
529,
13,
4253,
18,
2626,
12,
40,
2799,
2
] |
this = apply(_quickfix.new_EncodedHeadline, args)
|
this = _quickfix.new_EncodedHeadline(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_EncodedHeadline, 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,
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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
] |
[
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,
10397,
1414,
1369,
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
] |
'name': str(attach),
|
'name': str(attach)[:64],
|
def msg_new(self, msg): message = self.msg_body_get(msg) data = { 'name': self._decode_header(msg['Subject']), 'section_id': self.section_id, 'email_from': self._decode_header(msg['From']), 'email_cc': self._decode_header(msg['Cc'] or ''), 'canal_id': self.canal_id, 'user_id': False, 'history_line': [(0, 0, {'description': message['body'], 'email': msg['From'] })], } try: data.update(self.partner_get(self._decode_header(msg['From']))) except Exception, e: print e #end try
|
48ccd4e9897657b356f82c8cbff9b13e2ca2e8ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/48ccd4e9897657b356f82c8cbff9b13e2ca2e8ba/tinyerp-mailgate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1234,
67,
2704,
12,
2890,
16,
1234,
4672,
883,
273,
365,
18,
3576,
67,
3432,
67,
588,
12,
3576,
13,
501,
273,
288,
296,
529,
4278,
365,
6315,
3922,
67,
3374,
12,
3576,
3292,
6638,
3546,
3631,
296,
3464,
67,
350,
4278,
365,
18,
3464,
67,
350,
16,
296,
3652,
67,
2080,
4278,
365,
6315,
3922,
67,
3374,
12,
3576,
3292,
1265,
3546,
3631,
296,
3652,
67,
952,
4278,
365,
6315,
3922,
67,
3374,
12,
3576,
3292,
39,
71,
3546,
578,
875,
3631,
296,
4169,
287,
67,
350,
4278,
365,
18,
4169,
287,
67,
350,
16,
296,
1355,
67,
350,
4278,
1083,
16,
296,
8189,
67,
1369,
4278,
306,
12,
20,
16,
374,
16,
13666,
3384,
4278,
883,
3292,
3432,
17337,
296,
3652,
4278,
1234,
3292,
1265,
3546,
289,
13,
6487,
289,
775,
30,
501,
18,
2725,
12,
2890,
18,
31993,
67,
588,
12,
2890,
6315,
3922,
67,
3374,
12,
3576,
3292,
1265,
3546,
20349,
1335,
1185,
16,
425,
30,
1172,
425,
468,
409,
775,
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,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12,
3576,
13,
501,
273,
288,
296,
529,
4278,
365,
6315,
3922,
67,
3374,
12,
3576,
3292,
6638,
3546,
3631,
296,
3464,
67,
350,
4278,
365,
18,
3464,
67,
350,
16,
296,
3652,
67,
2080,
4278,
365,
6315,
3922,
67,
3374,
12,
3576,
3292,
1265,
3546,
3631,
296,
3652,
67,
952,
4278,
365,
6315,
3922,
67,
3374,
12,
3576,
3292,
39,
71,
3546,
578,
875,
3631,
296,
4169,
287,
67,
350,
4278,
365,
18,
4169,
287,
67,
350,
16,
296,
1355,
67,
350,
4278,
1083,
16,
296,
8189,
67,
1369,
4278,
306,
12,
20,
16,
374,
16,
13666,
3384,
4278,
883,
2
] |
print "Recieved a unknown command: ", netCommand
|
print "Recieved a unknown command: ", netCommand
|
def handle(self): # Read the incoming command. netCommand = self.rfile.read(4) # Skip the trailing NULL. self.rfile.read(1)
|
460fd94d4754a7dd61469b9205b010a7263269fe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13981/460fd94d4754a7dd61469b9205b010a7263269fe/wzmasterserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
468,
2720,
326,
6935,
1296,
18,
2901,
2189,
273,
365,
18,
86,
768,
18,
896,
12,
24,
13,
225,
468,
6611,
326,
7341,
3206,
18,
365,
18,
86,
768,
18,
896,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
468,
2720,
326,
6935,
1296,
18,
2901,
2189,
273,
365,
18,
86,
768,
18,
896,
12,
24,
13,
225,
468,
6611,
326,
7341,
3206,
18,
365,
18,
86,
768,
18,
896,
12,
21,
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
] |
self.reset_view_pixbuf()
|
self.size_observer.notify_all()
|
def set_zoom(self, zoom_factor): self.zoom_factor = zoom_factor if abs(self.zoom_factor-round(self.zoom_factor))<0.01: self.zoom_factor = round(self.zoom_factor) self.reset_view_pixbuf()
|
82c8e202dbf903ca748c1ef9293b6aee0f9fabf1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/704/82c8e202dbf903ca748c1ef9293b6aee0f9fabf1/goghview.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
14932,
12,
2890,
16,
7182,
67,
6812,
4672,
365,
18,
14932,
67,
6812,
273,
7182,
67,
6812,
309,
2417,
12,
2890,
18,
14932,
67,
6812,
17,
2260,
12,
2890,
18,
14932,
67,
6812,
3719,
32,
20,
18,
1611,
30,
365,
18,
14932,
67,
6812,
273,
3643,
12,
2890,
18,
14932,
67,
6812,
13,
365,
18,
1467,
67,
30971,
18,
12336,
67,
454,
1435,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
14932,
12,
2890,
16,
7182,
67,
6812,
4672,
365,
18,
14932,
67,
6812,
273,
7182,
67,
6812,
309,
2417,
12,
2890,
18,
14932,
67,
6812,
17,
2260,
12,
2890,
18,
14932,
67,
6812,
3719,
32,
20,
18,
1611,
30,
365,
18,
14932,
67,
6812,
273,
3643,
12,
2890,
18,
14932,
67,
6812,
13,
365,
18,
1467,
67,
30971,
18,
12336,
67,
454,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
startX = columnStart
|
startX = columnStart + 1
|
def DrawMonth(self, gc, dc, startDate, y, highlightDate, font, boldFont, clientWidth, clientHeight, transform): """ draw a single month return the updated value of y """
|
3bb7ec9ecbd5dca196c1156c6e4fdf5c9e39d32e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3bb7ec9ecbd5dca196c1156c6e4fdf5c9e39d32e/minical.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
5445,
12,
2890,
16,
8859,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
5445,
12,
2890,
16,
8859,
16,
6744,
16,
12572,
16,
677,
16,
8839,
1626,
16,
3512,
16,
13068,
5711,
16,
1004,
2384,
16,
1004,
2686,
16,
2510,
4672,
3536,
3724,
279,
2202,
3138,
327,
326,
3526,
460,
434,
677,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for filename in find_files(dir, '*.pt'):
|
for filename in find_files(dir, '*.pt', exclude=tuple(exclude)):
|
def write(self, s): pass
|
62c8758173e77db1c2eb56c52650f838fe49bbfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9527/62c8758173e77db1c2eb56c52650f838fe49bbfc/extract.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
272,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
272,
4672,
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,
-100
] |
self.selected_rows.append(self._realpath(tup[0]))
|
self.selected_rows.append(self._realpath(tup)[0])
|
def update_selection(self): selection = self.treeview.get_selection() (liststore, indexes) = selection.get_selected_rows()
|
628e2c521b98e88744088c81a82b41663a7683bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/628e2c521b98e88744088c81a82b41663a7683bc/widget.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
10705,
12,
2890,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
261,
1098,
2233,
16,
5596,
13,
273,
4421,
18,
588,
67,
8109,
67,
3870,
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,
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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
] |
while n > 0 and line[n-1] in (' ', '\t'):
|
while n > 0 and line[n-1] in " \t\r":
|
def decode(input, output): """Read 'input', apply quoted-printable decoding, and write to 'output'. 'input' and 'output' are files with readline() and write() methods.""" new = '' while 1: line = input.readline() if not line: break i, n = 0, len(line) if n > 0 and line[n-1] == '\n': partial = 0; n = n-1 # Strip trailing whitespace while n > 0 and line[n-1] in (' ', '\t'): n = n-1 else: partial = 1 while i < n: c = line[i] if c != ESCAPE: new = new + c; i = i+1 elif i+1 == n and not partial: partial = 1; break elif i+1 < n and line[i+1] == ESCAPE: new = new + ESCAPE; i = i+2 elif i+2 < n and ishex(line[i+1]) and ishex(line[i+2]): new = new + chr(unhex(line[i+1:i+3])); i = i+3 else: # Bad escape sequence -- leave it in new = new + c; i = i+1 if not partial: output.write(new + '\n') new = '' if new: output.write(new)
|
57a9d5cb91868f947cdaeff4900b6f918c440114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/57a9d5cb91868f947cdaeff4900b6f918c440114/quopri.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2630,
16,
876,
4672,
3536,
1994,
296,
2630,
2187,
2230,
9298,
17,
1188,
429,
13547,
16,
471,
1045,
358,
296,
2844,
10332,
225,
296,
2630,
11,
471,
296,
2844,
11,
854,
1390,
598,
12023,
1435,
471,
1045,
1435,
2590,
12123,
394,
273,
875,
1323,
404,
30,
980,
273,
810,
18,
896,
1369,
1435,
309,
486,
980,
30,
898,
277,
16,
290,
273,
374,
16,
562,
12,
1369,
13,
309,
290,
405,
374,
471,
980,
63,
82,
17,
21,
65,
422,
2337,
82,
4278,
4702,
273,
374,
31,
290,
273,
290,
17,
21,
468,
15589,
7341,
7983,
1323,
290,
405,
374,
471,
980,
63,
82,
17,
21,
65,
316,
315,
521,
88,
64,
86,
6877,
290,
273,
290,
17,
21,
469,
30,
4702,
273,
404,
1323,
277,
411,
290,
30,
276,
273,
980,
63,
77,
65,
309,
276,
480,
27933,
30,
394,
273,
394,
397,
276,
31,
277,
273,
277,
15,
21,
1327,
277,
15,
21,
422,
290,
471,
486,
4702,
30,
4702,
273,
404,
31,
898,
1327,
277,
15,
21,
411,
290,
471,
980,
63,
77,
15,
21,
65,
422,
27933,
30,
394,
273,
394,
397,
27933,
31,
277,
273,
277,
15,
22,
1327,
277,
15,
22,
411,
290,
471,
353,
7118,
12,
1369,
63,
77,
15,
21,
5717,
471,
353,
7118,
12,
1369,
63,
77,
15,
22,
65,
4672,
394,
273,
394,
397,
4513,
12,
318,
7118,
12,
1369,
63,
77,
15,
21,
30,
77,
15,
23,
5717,
1769,
277,
273,
277,
15,
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,
2495,
12,
2630,
16,
876,
4672,
3536,
1994,
296,
2630,
2187,
2230,
9298,
17,
1188,
429,
13547,
16,
471,
1045,
358,
296,
2844,
10332,
225,
296,
2630,
11,
471,
296,
2844,
11,
854,
1390,
598,
12023,
1435,
471,
1045,
1435,
2590,
12123,
394,
273,
875,
1323,
404,
30,
980,
273,
810,
18,
896,
1369,
1435,
309,
486,
980,
30,
898,
277,
16,
290,
273,
374,
16,
562,
12,
1369,
13,
309,
290,
405,
374,
471,
980,
63,
82,
17,
21,
65,
422,
2337,
82,
4278,
4702,
273,
374,
31,
290,
273,
290,
17,
21,
468,
15589,
7341,
7983,
1323,
290,
405,
374,
471,
980,
63,
82,
17,
21,
65,
316,
315,
521,
88,
64,
86,
6877,
290,
273,
2
] |
self.store_changes(user, asset, changes, meta)
|
self.store_changes(user, asset, changes, meta, previous)
|
def apply_changes(self, user, asset, changes={}, meta=()): """Apply a dictionary of changes to an asset. If anything in fact changed, this will create a record of those changes and save the asset.
|
8cd4ba9bf358476036b3b8b4dafd8dead6801f4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9478/8cd4ba9bf358476036b3b8b4dafd8dead6801f4e/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
6329,
12,
2890,
16,
729,
16,
3310,
16,
3478,
28793,
2191,
33,
1435,
4672,
3536,
7001,
279,
3880,
434,
3478,
358,
392,
3310,
18,
971,
6967,
316,
5410,
3550,
16,
333,
903,
752,
279,
1409,
434,
5348,
3478,
471,
1923,
326,
3310,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
67,
6329,
12,
2890,
16,
729,
16,
3310,
16,
3478,
28793,
2191,
33,
1435,
4672,
3536,
7001,
279,
3880,
434,
3478,
358,
392,
3310,
18,
971,
6967,
316,
5410,
3550,
16,
333,
903,
752,
279,
1409,
434,
5348,
3478,
471,
1923,
326,
3310,
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
] |
var = "do_" + func
|
if func[:3] != "do_": var = "do_" + func
|
text = "def %s(d):\n" % (funcname) + '\n'.join(__body__)
|
dbd66fc8080eacd6c20df9d6528a929b9070fe35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8123/dbd66fc8080eacd6c20df9d6528a929b9070fe35/BBHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
977,
273,
315,
536,
738,
87,
12,
72,
4672,
64,
82,
6,
738,
261,
644,
529,
13,
397,
2337,
82,
10332,
5701,
12,
972,
3432,
972,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
977,
273,
315,
536,
738,
87,
12,
72,
4672,
64,
82,
6,
738,
261,
644,
529,
13,
397,
2337,
82,
10332,
5701,
12,
972,
3432,
972,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return '''<script language="JavaScript"''' \
|
return '''<script language="JavaScript" ''' \
|
def create_html_mailto(email, subject=None, body=None, cc=None, bcc=None, link_label="%(email)s", linkattrd=None, escape_urlargd=True, escape_linkattrd=True, email_obfuscation_mode=CFG_WEBSTYLE_EMAIL_ADDRESSES_OBFUSCATION_MODE): """Creates a W3C compliant 'mailto' link. Encode/encrypt given email to reduce undesired automated email harvesting when embedded in a web page. NOTE: there is no ultimate solution to protect against email harvesting. All have drawbacks and can more or less be circumvented. There are other techniques to protect email adresses. We implement the less annoying one for users. @param email: the recipient of the email @param subject: a default subject for the email (must not contain line feeds) @param body: a default body for the email @param cc: the co-recipient(s) of the email @param bcc: the hidden co-recpient(s) of the email @param link_label: the label of this mailto link. String replacement is performed on key %(email)s with the email address if needed. @param linkattrd: dictionary of attributes (e.g. a={'class': 'img'}) @param escape_urlargd: boolean indicating if the function should escape arguments (e.g. < becomes < or " becomes ") @param escape_linkattrd: boolean indicating if the function should escape attributes (e.g. < becomes < or " becomes ") @param email_obfuscation_mode: the protection mode. See below: You can choose among several modes to protect emails. It is advised to keep the default CFG_MISCUTIL_EMAIL_HARVESTING_PROTECTION value, so that it is possible for an admin to change the policy globally. Available modes ([t] means "transparent" for the user): -1: hide all emails, excepted CFG_SITE_ADMIN_EMAIL and CFG_SITE_SUPPORT_EMAIL. [t] 0 : no protection, email returned as is. [email protected] => [email protected] 1 : basic email munging: replaces @ by [at] and . by [dot] [email protected] => foo [at] example [dot] com [t] 2 : transparent name mangling: characters are replaced by equivalent HTML entities. [email protected] => foo@example.com [t] 3 : javascript insertion. Requires Javascript enabled on client side. 4 : replaces @ and . characters by gif equivalents. [email protected] => foo<img src="at.gif" alt=" [at] ">example<img src="dot.gif" alt=" [dot] ">com """ # TODO: implement other protection modes to encode/encript email: # ## [t] 5 : form submission. User is redirected to a form that he can ## fills in to send the email (??Use webmessage??). ## Depending on WebAccess, ask to answer a question. ## ## [t] 6 : if user can see (controlled by WebAccess), display. Else ## ask to login to see email. If user cannot see, display ## form submission. if linkattrd is None: linkattrd = {} parameters = {} if subject: parameters["subject"] = subject if body: parameters["body"] = body.replace('\r\n', '\n').replace('\n', '\r\n') if cc: parameters["cc"] = cc if bcc: parameters["bcc"] = bcc # Preprocessing values for some modes if email_obfuscation_mode == 1: # Basic Munging email = email.replace("@", " [at] ").replace(".", " [dot] ") elif email_obfuscation_mode == 2: # Transparent name mangling email = string_to_numeric_char_reference(email) if '%(email)s' in link_label: link_label = link_label % {'email': email} mailto_link = create_html_link('mailto:' + email, parameters, link_label, linkattrd, escape_urlargd, escape_linkattrd) if email_obfuscation_mode == 0: # Return "as is" return mailto_link elif email_obfuscation_mode == 1: # Basic Munging return mailto_link elif email_obfuscation_mode == 2: # Transparent name mangling return mailto_link elif email_obfuscation_mode == 3: # Javascript-based return '''<script language="JavaScript"''' \ '''type="text/javascript">''' \ '''document.write('%s'.split("").reverse().join(""))''' \ '''</script>''' % \ mailto_link[::-1].replace("'", "\\'") elif email_obfuscation_mode == 4: # GIFs-based email = email.replace('.', '<img src="%s/img/dot.gif" alt=" [dot] " ' 'style="vertical-align:bottom" />' % CFG_SITE_URL) email = email.replace('@', '<img src="%s/img/at.gif" alt=" [at] " ' 'style="vertical-align:baseline" />' % CFG_SITE_URL) return email # All other cases, including mode -1: return ""
|
c3c928bcb282b68d609fca00ed44669066be1566 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1780/c3c928bcb282b68d609fca00ed44669066be1566/urlutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2620,
67,
4408,
869,
12,
3652,
16,
3221,
33,
7036,
16,
1417,
33,
7036,
16,
4946,
33,
7036,
16,
16915,
33,
7036,
16,
1692,
67,
1925,
11613,
12,
3652,
13,
87,
3113,
1692,
1747,
72,
33,
7036,
16,
4114,
67,
718,
3175,
72,
33,
5510,
16,
4114,
67,
1232,
1747,
72,
33,
5510,
16,
2699,
67,
947,
21935,
367,
67,
3188,
33,
19727,
67,
14778,
15066,
67,
14686,
67,
8355,
7031,
1090,
55,
67,
5704,
42,
57,
2312,
2689,
67,
7038,
4672,
225,
3536,
2729,
279,
678,
23,
39,
24820,
296,
4408,
869,
11,
1692,
18,
225,
6240,
19,
15890,
864,
2699,
358,
5459,
640,
30458,
18472,
690,
2699,
17895,
90,
10100,
1347,
7488,
316,
279,
3311,
1363,
18,
225,
5219,
30,
1915,
353,
1158,
225,
406,
4988,
6959,
358,
17151,
5314,
2699,
17895,
90,
10100,
18,
4826,
1240,
3724,
823,
87,
471,
848,
1898,
578,
5242,
506,
29951,
616,
329,
18,
6149,
854,
1308,
13878,
15834,
29896,
358,
17151,
2699,
1261,
15807,
18,
1660,
2348,
326,
5242,
14115,
14946,
1245,
364,
3677,
18,
225,
632,
891,
2699,
30,
326,
8027,
434,
326,
2699,
632,
891,
3221,
30,
279,
805,
3221,
364,
326,
2699,
261,
11926,
486,
912,
980,
27684,
13,
632,
891,
1417,
30,
279,
805,
1417,
364,
326,
2699,
632,
891,
4946,
30,
326,
1825,
17,
20367,
12,
87,
13,
434,
326,
2699,
632,
891,
16915,
30,
326,
5949,
1825,
17,
3927,
84,
1979,
12,
87,
13,
434,
326,
2699,
632,
891,
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,
752,
67,
2620,
67,
4408,
869,
12,
3652,
16,
3221,
33,
7036,
16,
1417,
33,
7036,
16,
4946,
33,
7036,
16,
16915,
33,
7036,
16,
1692,
67,
1925,
11613,
12,
3652,
13,
87,
3113,
1692,
1747,
72,
33,
7036,
16,
4114,
67,
718,
3175,
72,
33,
5510,
16,
4114,
67,
1232,
1747,
72,
33,
5510,
16,
2699,
67,
947,
21935,
367,
67,
3188,
33,
19727,
67,
14778,
15066,
67,
14686,
67,
8355,
7031,
1090,
55,
67,
5704,
42,
57,
2312,
2689,
67,
7038,
4672,
225,
3536,
2729,
279,
678,
23,
39,
24820,
296,
4408,
869,
11,
1692,
18,
225,
6240,
19,
15890,
864,
2699,
358,
5459,
640,
30458,
18472,
690,
2699,
17895,
90,
10100,
1347,
7488,
316,
279,
2
] |
user.permissions['global'].add('')
|
user.permissions['global'].add('repository.create')
|
def fill_perms(user): """ Fills user permission attribute with permissions taken from database @param user: """ sa = meta.Session user.permissions['repositories'] = {} user.permissions['global'] = set() #first fetch default permissions default_perms = sa.query(Repo2Perm, Repository, Permission)\ .join((Repository, Repo2Perm.repository_id == Repository.repo_id))\ .join((Permission, Repo2Perm.permission_id == Permission.permission_id))\ .filter(Repo2Perm.user_id == sa.query(User).filter(User.username == 'default').one().user_id).all() if user.is_admin: user.permissions['global'].add('hg.admin') #admin have all rights full for perm in default_perms: p = 'repository.admin' user.permissions['repositories'][perm.Repo2Perm.repository.repo_name] = p else: user.permissions['global'].add('') for perm in default_perms: if perm.Repository.private: #disable defaults for private repos, p = 'repository.none' elif perm.Repository.user_id == user.user_id: #set admin if owner p = 'repository.admin' else: p = perm.Permission.permission_name user.permissions['repositories'][perm.Repo2Perm.repository.repo_name] = p user_perms = sa.query(Repo2Perm, Permission, Repository)\ .join((Repository, Repo2Perm.repository_id == Repository.repo_id))\ .join((Permission, Repo2Perm.permission_id == Permission.permission_id))\ .filter(Repo2Perm.user_id == user.user_id).all() #overwrite userpermissions with defaults for perm in user_perms: #set write if owner if perm.Repository.user_id == user.user_id: p = 'repository.write' else: p = perm.Permission.permission_name user.permissions['repositories'][perm.Repo2Perm.repository.repo_name] = p meta.Session.remove() return user
|
1922a6efe7f48829bb47a30b614fd128c4d93778 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/1922a6efe7f48829bb47a30b614fd128c4d93778/auth.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
15969,
12,
1355,
4672,
3536,
14192,
87,
729,
4132,
1566,
598,
4371,
9830,
628,
2063,
632,
891,
729,
30,
3536,
225,
7864,
273,
2191,
18,
2157,
729,
18,
9612,
3292,
26626,
3546,
273,
2618,
729,
18,
9612,
3292,
6347,
3546,
273,
444,
1435,
225,
468,
3645,
2158,
805,
4371,
805,
67,
15969,
273,
7864,
18,
2271,
12,
8791,
22,
9123,
16,
6281,
16,
8509,
5153,
263,
5701,
12443,
3305,
16,
15118,
22,
9123,
18,
9071,
67,
350,
422,
6281,
18,
7422,
67,
350,
3719,
64,
263,
5701,
12443,
5041,
16,
15118,
22,
9123,
18,
9827,
67,
350,
422,
8509,
18,
9827,
67,
350,
3719,
64,
263,
2188,
12,
8791,
22,
9123,
18,
1355,
67,
350,
422,
7864,
18,
2271,
12,
1299,
2934,
2188,
12,
1299,
18,
5053,
422,
296,
1886,
16063,
476,
7675,
1355,
67,
350,
2934,
454,
1435,
225,
309,
729,
18,
291,
67,
3666,
30,
729,
18,
9612,
3292,
6347,
29489,
1289,
2668,
26981,
18,
3666,
6134,
468,
3666,
1240,
777,
14989,
1983,
364,
4641,
316,
805,
67,
15969,
30,
293,
273,
296,
9071,
18,
3666,
11,
729,
18,
9612,
3292,
26626,
3546,
63,
12160,
18,
8791,
22,
9123,
18,
9071,
18,
7422,
67,
529,
65,
273,
293,
225,
469,
30,
729,
18,
9612,
3292,
6347,
29489,
1289,
2668,
9071,
18,
2640,
6134,
364,
4641,
316,
805,
67,
15969,
30,
309,
4641,
18,
3305,
18,
1152,
30,
468,
8394,
3467,
364,
3238,
13686,
16,
293,
273,
296,
9071,
18,
6102,
11,
1327,
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,
3636,
67,
15969,
12,
1355,
4672,
3536,
14192,
87,
729,
4132,
1566,
598,
4371,
9830,
628,
2063,
632,
891,
729,
30,
3536,
225,
7864,
273,
2191,
18,
2157,
729,
18,
9612,
3292,
26626,
3546,
273,
2618,
729,
18,
9612,
3292,
6347,
3546,
273,
444,
1435,
225,
468,
3645,
2158,
805,
4371,
805,
67,
15969,
273,
7864,
18,
2271,
12,
8791,
22,
9123,
16,
6281,
16,
8509,
5153,
263,
5701,
12443,
3305,
16,
15118,
22,
9123,
18,
9071,
67,
350,
422,
6281,
18,
7422,
67,
350,
3719,
64,
263,
5701,
12443,
5041,
16,
15118,
22,
9123,
18,
9827,
67,
350,
422,
8509,
18,
9827,
67,
350,
3719,
64,
263,
2188,
12,
8791,
22,
9123,
18,
1355,
67,
350,
422,
2
] |
pdbFiles = [ T.absfile( f ) for f in pdbFiles ]
|
def align_for_modeller_inp( self, pdbFiles=None, fasta_templates=None, fasta_sequences=None, fasta_target=None, f_fast_tree=None, f_sequence_tree=None ): """ Prepare alignment commands for homology modeling.
|
06fb5a85071ba1d133175a7365d7f5e0eb313ad9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/06fb5a85071ba1d133175a7365d7f5e0eb313ad9/Aligner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5689,
67,
1884,
67,
2284,
749,
67,
31647,
12,
365,
16,
10892,
2697,
33,
7036,
16,
13104,
67,
8502,
33,
7036,
16,
13104,
67,
17190,
33,
7036,
16,
13104,
67,
3299,
33,
7036,
16,
284,
67,
8076,
67,
3413,
33,
7036,
16,
284,
67,
6178,
67,
3413,
33,
7036,
262,
30,
3536,
7730,
8710,
4364,
364,
13995,
4676,
938,
310,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5689,
67,
1884,
67,
2284,
749,
67,
31647,
12,
365,
16,
10892,
2697,
33,
7036,
16,
13104,
67,
8502,
33,
7036,
16,
13104,
67,
17190,
33,
7036,
16,
13104,
67,
3299,
33,
7036,
16,
284,
67,
8076,
67,
3413,
33,
7036,
16,
284,
67,
6178,
67,
3413,
33,
7036,
262,
30,
3536,
7730,
8710,
4364,
364,
13995,
4676,
938,
310,
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
] |
|
Generate restructured text markup for a comment heading in a HTML page.
|
Generate HTML markup for a comment heading in a HTML page.
|
def makeCommentHeading(self, page, subject, username, time, message_id=None,in_reply_to=None): """ Generate restructured text markup for a comment heading in a HTML page.
|
b3ccf52bc2c59dc982bc480175553907b601dcec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5225/b3ccf52bc2c59dc982bc480175553907b601dcec/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
4469,
21867,
12,
2890,
16,
1363,
16,
3221,
16,
2718,
16,
813,
16,
883,
67,
350,
33,
7036,
16,
267,
67,
10629,
67,
869,
33,
7036,
4672,
3536,
6654,
400,
8813,
2862,
977,
9813,
364,
279,
2879,
11053,
316,
279,
3982,
1363,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
4469,
21867,
12,
2890,
16,
1363,
16,
3221,
16,
2718,
16,
813,
16,
883,
67,
350,
33,
7036,
16,
267,
67,
10629,
67,
869,
33,
7036,
4672,
3536,
6654,
400,
8813,
2862,
977,
9813,
364,
279,
2879,
11053,
316,
279,
3982,
1363,
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
] |
if note not in self.noteList: self.noteList.append(note)
|
def saveNote(self,note): if note not in self.noteList: self.noteList.append(note)
|
be5fd71a59f94863e7f54998815958259544afa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2701/be5fd71a59f94863e7f54998815958259544afa6/notes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
8067,
12,
2890,
16,
7652,
4672,
309,
4721,
486,
316,
365,
18,
7652,
682,
30,
365,
18,
7652,
682,
18,
6923,
12,
7652,
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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,
682,
18,
6923,
12,
7652,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
result={}
|
result = {}
|
def dtp_last_modification_date(self, cr, uid, ids, field_name, arg, context={}): result={} for id in ids: sql = "select write_date,create_date from dm_offer where id = %d"%id cr.execute(sql) res = cr.fetchone() if res[0]: result[id]=res[0].split(' ')[0] else : result[id]=res[1].split(' ')[0] return result
|
85a1e7b7da9518beac3cb0935570916534cd57ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/85a1e7b7da9518beac3cb0935570916534cd57ee/dm_offer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3681,
84,
67,
2722,
67,
31064,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
12938,
4672,
563,
273,
2618,
364,
612,
316,
3258,
30,
1847,
273,
315,
4025,
1045,
67,
712,
16,
2640,
67,
712,
628,
9113,
67,
23322,
1625,
612,
273,
738,
72,
28385,
350,
4422,
18,
8837,
12,
4669,
13,
400,
273,
4422,
18,
5754,
476,
1435,
309,
400,
63,
20,
14542,
563,
63,
350,
65,
33,
455,
63,
20,
8009,
4939,
2668,
8624,
63,
20,
65,
469,
294,
563,
63,
350,
65,
33,
455,
63,
21,
8009,
4939,
2668,
8624,
63,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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,
3681,
84,
67,
2722,
67,
31064,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
12938,
4672,
563,
273,
2618,
364,
612,
316,
3258,
30,
1847,
273,
315,
4025,
1045,
67,
712,
16,
2640,
67,
712,
628,
9113,
67,
23322,
1625,
612,
273,
738,
72,
28385,
350,
4422,
18,
8837,
12,
4669,
13,
400,
273,
4422,
18,
5754,
476,
1435,
309,
400,
63,
20,
14542,
563,
63,
350,
65,
33,
455,
63,
20,
8009,
4939,
2668,
8624,
63,
20,
65,
469,
294,
563,
63,
350,
65,
33,
455,
63,
21,
8009,
4939,
2668,
8624,
63,
20,
65,
327,
563,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"%s cannot be child of %s" % (repr(newChild), repr(self) )
|
"%s cannot be child of %s" % (repr(newChild), repr(self))
|
def replaceChild(self, newChild, oldChild): if newChild.nodeType not in self.childNodeTypes: raise HierarchyRequestErr, \ "%s cannot be child of %s" % (repr(newChild), repr(self) ) if newChild.parentNode is not None: newChild.parentNode.removeChild(newChild) if newChild is oldChild: return index = self.childNodes.index(oldChild) self.childNodes[index] = newChild if self._makeParentNodes: newChild.parentNode = self oldChild.parentNode = None newChild.nextSibling = oldChild.nextSibling newChild.previousSibling = oldChild.previousSibling oldChild.nextSibling = None oldChild.previousSibling = None if newChild.previousSibling: newChild.previousSibling.nextSibling = newChild if newChild.nextSibling: newChild.nextSibling.previousSibling = newChild return oldChild
|
ec5905c95815205aa328f8b75324f1465ff85290 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ec5905c95815205aa328f8b75324f1465ff85290/minidom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
1763,
12,
2890,
16,
19783,
16,
1592,
1763,
4672,
309,
19783,
18,
2159,
559,
486,
316,
365,
18,
3624,
907,
2016,
30,
1002,
670,
6000,
691,
2524,
16,
521,
2213,
87,
2780,
506,
1151,
434,
738,
87,
6,
738,
261,
12715,
12,
2704,
1763,
3631,
8480,
12,
2890,
3719,
309,
19783,
18,
2938,
907,
353,
486,
599,
30,
19783,
18,
2938,
907,
18,
4479,
1763,
12,
2704,
1763,
13,
309,
19783,
353,
1592,
1763,
30,
327,
770,
273,
365,
18,
3624,
3205,
18,
1615,
12,
1673,
1763,
13,
365,
18,
3624,
3205,
63,
1615,
65,
273,
19783,
309,
365,
6315,
6540,
3054,
3205,
30,
19783,
18,
2938,
907,
273,
365,
1592,
1763,
18,
2938,
907,
273,
599,
19783,
18,
4285,
10291,
273,
1592,
1763,
18,
4285,
10291,
19783,
18,
11515,
10291,
273,
1592,
1763,
18,
11515,
10291,
1592,
1763,
18,
4285,
10291,
273,
599,
1592,
1763,
18,
11515,
10291,
273,
599,
309,
19783,
18,
11515,
10291,
30,
19783,
18,
11515,
10291,
18,
4285,
10291,
273,
19783,
309,
19783,
18,
4285,
10291,
30,
19783,
18,
4285,
10291,
18,
11515,
10291,
273,
19783,
327,
1592,
1763,
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,
1453,
1763,
12,
2890,
16,
19783,
16,
1592,
1763,
4672,
309,
19783,
18,
2159,
559,
486,
316,
365,
18,
3624,
907,
2016,
30,
1002,
670,
6000,
691,
2524,
16,
521,
2213,
87,
2780,
506,
1151,
434,
738,
87,
6,
738,
261,
12715,
12,
2704,
1763,
3631,
8480,
12,
2890,
3719,
309,
19783,
18,
2938,
907,
353,
486,
599,
30,
19783,
18,
2938,
907,
18,
4479,
1763,
12,
2704,
1763,
13,
309,
19783,
353,
1592,
1763,
30,
327,
770,
273,
365,
18,
3624,
3205,
18,
1615,
12,
1673,
1763,
13,
365,
18,
3624,
3205,
63,
1615,
65,
273,
19783,
309,
365,
6315,
6540,
3054,
3205,
30,
19783,
18,
2938,
907,
273,
365,
1592,
1763,
18,
2938,
907,
273,
599,
2
] |
h=hash(oid)%131 cache=self._miv_cache
|
h = hash(oid) % 131 cache = self._miv_cache
|
def modifiedInVersion(self, oid): h=hash(oid)%131 cache=self._miv_cache o=cache.get(h, None) if o and o[0]==oid: return o[1] v=self._storage.modifiedInVersion(oid) cache[h]=oid, v return v
|
3f5dc8adcf31c234935a3c71325d44bf2f319df0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3f5dc8adcf31c234935a3c71325d44bf2f319df0/DB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4358,
382,
1444,
12,
2890,
16,
7764,
4672,
366,
273,
1651,
12,
839,
13,
738,
5958,
21,
1247,
273,
365,
6315,
81,
427,
67,
2493,
320,
33,
2493,
18,
588,
12,
76,
16,
599,
13,
309,
320,
471,
320,
63,
20,
65,
631,
839,
30,
327,
320,
63,
21,
65,
331,
33,
2890,
6315,
5697,
18,
7342,
382,
1444,
12,
839,
13,
1247,
63,
76,
65,
33,
839,
16,
331,
327,
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,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
599,
13,
309,
320,
471,
320,
63,
20,
65,
631,
839,
30,
327,
320,
63,
21,
65,
331,
33,
2890,
6315,
5697,
18,
7342,
382,
1444,
12,
839,
13,
1247,
63,
76,
65,
33,
839,
16,
331,
327,
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
] |
res['id'] = fact.id
|
res['id'] = str(fact.id)
|
def _output_fact(self, fact): res = dict(zip(fact.keys(), fact.values())) res['id'] = fact.id return res
|
f3407c0c5c3b7b8c4dc2672f82f90b4a559669c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12941/f3407c0c5c3b7b8c4dc2672f82f90b4a559669c0/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2844,
67,
3493,
12,
2890,
16,
5410,
4672,
400,
273,
2065,
12,
4450,
12,
3493,
18,
2452,
9334,
5410,
18,
2372,
1435,
3719,
400,
3292,
350,
3546,
273,
609,
12,
3493,
18,
350,
13,
327,
400,
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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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2844,
67,
3493,
12,
2890,
16,
5410,
4672,
400,
273,
2065,
12,
4450,
12,
3493,
18,
2452,
9334,
5410,
18,
2372,
1435,
3719,
400,
3292,
350,
3546,
273,
609,
12,
3493,
18,
350,
13,
327,
400,
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
] |
exclude_coincs = None, include_only_coincs = None, sim_tag = 'ALLINJ'):
|
exclude_coincs = None, include_only_coincs = None, sim_tag = 'ALLINJ', verbose = False):
|
def create_filter( connection, tableName, param_name = None, param_ranges = None, exclude_coincs = None, include_only_coincs = None, sim_tag = 'ALLINJ'): """ Strings together param_name, param_ranges, exclude/include_only_coincs, and sim_tag options into a filter string that can be stuck in a sqlite WHERE clause. """ in_this_filter = '' # Get param and param-ranges if specified if param_name is not None: param_name = sqlutils.validate_option(param_name) param_filters = sqlutils.parse_param_ranges( tableName, param_name, param_ranges, verbose = verbose ).get_param_filters() # since want triggers that fall within all the parameters, concatenate # all param ranges param_filters = '\n\t\tOR '.join( param_filters ) in_this_filter = ''.join([ in_this_filter, '\n\tAND (\n\t\t', param_filters, '\n\t)' ]) # Get exclude_coincs list if specified if exclude_coincs is not None: exclude_coinc_filters = sqlutils.parse_coinc_options( exclude_coincs, verbose = verbose ).get_coinc_filters() # concatenate exclude_coinc_filters exclude_coinc_filters = '\n\t\tOR '.join( exclude_coinc_filters ) # add to in_this_filter in_this_filter = ''.join([ in_this_filter, '\n\tAND NOT (\n\t\t', exclude_coinc_filters, '\n\t)' ]) # Get include_only_coincs list if specified if include_only_coincs is not None: include_coinc_filters = sqlutils.parse_coinc_options( include_only_coincs, verbose = verbose ).get_coinc_filters() # concatenate include_coinc_filters include_coinc_filters = '\n\t\tOR '.join( include_coinc_filters ) # add to in_this_filter in_this_filter = ''.join([ in_this_filter, '\n\tAND (\n\t\t', include_coinc_filters, '\n\t)' ]) # if sim-tag specified add the sim-tag to the filter if sim_tag != 'ALLINJ': # create a map between sim_proc_id and sim-tag sim_map = sqlutils.sim_tag_proc_id_mapper( connection ) # check that sim_tag is in the the map sim_tag = sqlutils.validate_option(sim_tag, lower = False).upper() if sim_tag not in sim_map.tag_id_map.keys(): raise ValueError, "sim-tag %s not found in database" % sim_tag # create the filter connection.create_function( 'get_sim_tag', 1, sim_map.get_sim_tag ) sim_filter = ''.join(['get_sim_tag(experiment_summary.sim_proc_id) == "', sim_tag, '"' ]) # add to in_this_filter in_this_filter = ''.join([ in_this_filter, '\n\tAND ', sim_filter ]) return in_this_filter
|
e293574b9b8e058707476095932097d7b8a95a9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e293574b9b8e058707476095932097d7b8a95a9e/printutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2188,
12,
1459,
16,
4775,
16,
579,
67,
529,
273,
599,
16,
579,
67,
14530,
273,
599,
16,
4433,
67,
12645,
2143,
273,
599,
16,
2341,
67,
3700,
67,
12645,
2143,
273,
599,
16,
3142,
67,
2692,
273,
296,
4685,
706,
46,
2187,
3988,
273,
1083,
4672,
3536,
8139,
9475,
579,
67,
529,
16,
579,
67,
14530,
16,
4433,
19,
6702,
67,
3700,
67,
12645,
2143,
16,
471,
3142,
67,
2692,
702,
1368,
279,
1034,
533,
716,
848,
506,
384,
9031,
316,
279,
16184,
4852,
6591,
18,
3536,
316,
67,
2211,
67,
2188,
273,
875,
225,
468,
968,
579,
471,
579,
17,
14530,
309,
1269,
309,
579,
67,
529,
353,
486,
599,
30,
579,
67,
529,
273,
1847,
5471,
18,
5662,
67,
3482,
12,
891,
67,
529,
13,
579,
67,
6348,
273,
1847,
5471,
18,
2670,
67,
891,
67,
14530,
12,
4775,
16,
579,
67,
529,
16,
579,
67,
14530,
16,
3988,
273,
3988,
262,
18,
588,
67,
891,
67,
6348,
1435,
468,
3241,
2545,
11752,
716,
4159,
3470,
777,
326,
1472,
16,
11361,
468,
777,
579,
7322,
579,
67,
6348,
273,
2337,
82,
64,
88,
64,
88,
916,
2418,
5701,
12,
579,
67,
6348,
262,
316,
67,
2211,
67,
2188,
273,
875,
18,
5701,
3816,
316,
67,
2211,
67,
2188,
16,
2337,
82,
64,
88,
4307,
17938,
82,
64,
88,
64,
88,
2187,
579,
67,
6348,
16,
2337,
82,
64,
88,
2506,
308,
13,
225,
468,
968,
4433,
67,
12645,
2143,
666,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2188,
12,
1459,
16,
4775,
16,
579,
67,
529,
273,
599,
16,
579,
67,
14530,
273,
599,
16,
4433,
67,
12645,
2143,
273,
599,
16,
2341,
67,
3700,
67,
12645,
2143,
273,
599,
16,
3142,
67,
2692,
273,
296,
4685,
706,
46,
2187,
3988,
273,
1083,
4672,
3536,
8139,
9475,
579,
67,
529,
16,
579,
67,
14530,
16,
4433,
19,
6702,
67,
3700,
67,
12645,
2143,
16,
471,
3142,
67,
2692,
702,
1368,
279,
1034,
533,
716,
848,
506,
384,
9031,
316,
279,
16184,
4852,
6591,
18,
3536,
316,
67,
2211,
67,
2188,
273,
875,
225,
468,
968,
579,
471,
579,
17,
14530,
309,
1269,
309,
579,
67,
529,
353,
486,
599,
30,
579,
67,
529,
2
] |
m = re.search(restr, resp)
|
namelist_regex = '<meta name=description content="Google& m = re.search(namelist_regex, resp)
|
def update_languages(self): '''Naively try to determine if new languages are available by scraping http://translate.google.com''' restr = '<meta name="description" content="Google's free online language translation service instantly translates text and web pages. This translator supports: (.*?)">' resp = urllib2.urlopen(urllib2.Request('http://translate.google.com', None, {'User-Agent':'Traduisons/%s' % msg_VERSION})).read() m = re.search(restr, resp) d = {} if m: names = m.group(1).split(', ') for name in names: n = re.search('<option value="([^"]+)">%s[^<]*</option>' % name, resp) if n: d[name] = n.group(1) else: return False for k, v in [('Detect Language', 'auto'), ('Gaelic', 'ga'), ('Chinese (Traditional)', 'zh-TW'), ('Chinese (Simplified)', 'zh-CN')]: d[k] = v for k in self.dictLang: if not d.has_key(k): print k, ': Unavailable' self.dictLang = d else: print 'Unable to update_languages' return False
|
aa80d065d095c420e5ef14cb7c4c6f364c10ceea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/aa80d065d095c420e5ef14cb7c4c6f364c10ceea/traduisons.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
14045,
12,
2890,
4672,
9163,
24101,
4492,
775,
358,
4199,
309,
394,
8191,
854,
2319,
635,
888,
1266,
310,
1062,
2207,
13929,
18,
9536,
18,
832,
26418,
400,
313,
273,
2368,
3901,
508,
1546,
3384,
6,
913,
1546,
9639,
18642,
5520,
31,
87,
4843,
12365,
2653,
4794,
1156,
5934,
715,
2162,
815,
977,
471,
3311,
4689,
18,
1220,
8333,
6146,
30,
261,
23498,
2225,
1870,
1718,
273,
11527,
22,
18,
295,
18589,
12,
718,
2941,
22,
18,
691,
2668,
2505,
2207,
13929,
18,
9536,
18,
832,
2187,
599,
16,
13666,
1299,
17,
3630,
11,
2497,
1609,
2544,
4530,
87,
5258,
87,
11,
738,
1234,
67,
5757,
6792,
2934,
896,
1435,
225,
15135,
5449,
67,
7584,
273,
2368,
3901,
508,
33,
3384,
913,
1546,
9639,
10,
312,
273,
283,
18,
3072,
12,
17808,
5449,
67,
7584,
16,
1718,
13,
302,
273,
2618,
309,
312,
30,
1257,
273,
312,
18,
1655,
12,
21,
2934,
4939,
12,
2187,
8624,
364,
508,
316,
1257,
30,
290,
273,
283,
18,
3072,
2668,
32,
3482,
225,
460,
1546,
8178,
6,
3737,
2225,
9822,
87,
5969,
32,
5772,
1757,
3482,
1870,
738,
508,
16,
1718,
13,
309,
290,
30,
302,
63,
529,
65,
273,
290,
18,
1655,
12,
21,
13,
469,
30,
327,
1083,
364,
417,
16,
331,
316,
306,
2668,
12081,
9889,
2187,
296,
6079,
19899,
7707,
43,
69,
292,
335,
2187,
296,
15833,
19899,
7707,
782,
25331,
261,
1609,
1460,
287,
13,
2187,
296,
23121,
17,
18869,
19899,
7707,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
14045,
12,
2890,
4672,
9163,
24101,
4492,
775,
358,
4199,
309,
394,
8191,
854,
2319,
635,
888,
1266,
310,
1062,
2207,
13929,
18,
9536,
18,
832,
26418,
400,
313,
273,
2368,
3901,
508,
1546,
3384,
6,
913,
1546,
9639,
18642,
5520,
31,
87,
4843,
12365,
2653,
4794,
1156,
5934,
715,
2162,
815,
977,
471,
3311,
4689,
18,
1220,
8333,
6146,
30,
261,
23498,
2225,
1870,
1718,
273,
11527,
22,
18,
295,
18589,
12,
718,
2941,
22,
18,
691,
2668,
2505,
2207,
13929,
18,
9536,
18,
832,
2187,
599,
16,
13666,
1299,
17,
3630,
11,
2497,
1609,
2544,
4530,
87,
5258,
87,
11,
738,
1234,
67,
5757,
6792,
2934,
896,
1435,
225,
15135,
5449,
67,
7584,
273,
2
] |
self.scfvalues[0] = [self.scfvalues[0][1]] self.scftargets = self.scftargets[0]
|
self.scftargets = [[self.scftargets[0][0]]] if hasattr(self,"scfvalues"): self.scfvalues[0] = [[x[0]] for x in self.scfvalues[0]] geoopt = True else: self.scftargets.append([5E-5])
|
def parse(self,fupdate=0.05,cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename,"r") if self.progress: inputfile.seek(0,2) #go to end of file nstep=inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep=0
|
c113725d0fc482613d55fa90683477ac0ce24f35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/c113725d0fc482613d55fa90683477ac0ce24f35/jaguarparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
74,
2725,
33,
20,
18,
6260,
16,
71,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
10837,
86,
7923,
225,
309,
365,
18,
8298,
30,
225,
810,
768,
18,
16508,
12,
20,
16,
22,
13,
468,
3240,
358,
679,
434,
585,
290,
4119,
33,
2630,
768,
18,
88,
1165,
1435,
810,
768,
18,
16508,
12,
20,
13,
365,
18,
8298,
18,
11160,
12,
82,
4119,
13,
1592,
4119,
33,
20,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
74,
2725,
33,
20,
18,
6260,
16,
71,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
10837,
86,
7923,
225,
309,
365,
18,
8298,
30,
225,
810,
768,
18,
16508,
12,
20,
16,
22,
13,
468,
3240,
358,
679,
434,
585,
290,
4119,
33,
2630,
768,
18,
88,
1165,
1435,
810,
768,
18,
16508,
12,
20,
13,
365,
18,
8298,
18,
11160,
12,
82,
4119,
13,
1592,
4119,
33,
20,
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
] |
@type date: (L{dt.date}|L{str})
|
@type date: (date|str)
|
def __init__(self, date): """ @param date: The value of the object. @type date: (L{dt.date}|L{str}) @raise ValueError: When I{date} is invalid. """ if isinstance(date, dt.date): self.date = date return if isinstance(date, basestring): self.date = self.__parse(date) return raise ValueError, type(date)
|
1296a8afdb34c7fe4f2c53ba1950416906dd20f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5930/1296a8afdb34c7fe4f2c53ba1950416906dd20f2/date.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1509,
4672,
3536,
632,
891,
1509,
30,
1021,
460,
434,
326,
733,
18,
632,
723,
1509,
30,
261,
712,
96,
701,
13,
632,
11628,
2068,
30,
5203,
467,
95,
712,
97,
353,
2057,
18,
3536,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1509,
4672,
3536,
632,
891,
1509,
30,
1021,
460,
434,
326,
733,
18,
632,
723,
1509,
30,
261,
712,
96,
701,
13,
632,
11628,
2068,
30,
5203,
467,
95,
712,
97,
353,
2057,
18,
3536,
309,
1549,
12,
712,
16,
3681,
18,
712,
4672,
365,
18,
712,
273,
1509,
327,
309,
1549,
12,
712,
16,
10699,
4672,
365,
18,
712,
273,
365,
16186,
2670,
12,
712,
13,
327,
1002,
2068,
16,
618,
12,
712,
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
] |
f.close()
|
rv = f.close()
|
def _findLib_gcc(name): expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name) fdout, ccout = tempfile.mkstemp() os.close(fdout) cmd = 'if type gcc >/dev/null 2>&1; then CC=gcc; else CC=cc; fi;' \ '$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name try: f = os.popen(cmd) trace = f.read() f.close() finally: try: os.unlink(ccout) except OSError, e: if e.errno != errno.ENOENT: raise res = re.search(expr, trace) if not res: return None return res.group(0)
|
35bea17f6fa03092ffe374ab4a07e28a86b588dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/35bea17f6fa03092ffe374ab4a07e28a86b588dc/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
5664,
67,
75,
952,
12,
529,
4672,
3065,
273,
436,
11,
15441,
4713,
5153,
87,
5772,
2941,
9,
87,
5834,
15441,
4713,
5153,
87,
65,
4035,
738,
283,
18,
6939,
12,
529,
13,
5194,
659,
16,
4946,
659,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
659,
13,
1797,
273,
296,
430,
618,
314,
952,
405,
19,
5206,
19,
2011,
576,
22393,
21,
31,
1508,
16525,
33,
75,
952,
31,
469,
16525,
33,
952,
31,
7314,
4359,
521,
3365,
6743,
300,
59,
80,
16,
17,
88,
300,
83,
296,
397,
4946,
659,
397,
296,
576,
22393,
21,
300,
80,
11,
397,
508,
775,
30,
284,
273,
1140,
18,
84,
3190,
12,
4172,
13,
2606,
273,
284,
18,
896,
1435,
5633,
273,
284,
18,
4412,
1435,
3095,
30,
775,
30,
1140,
18,
318,
1232,
12,
952,
659,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
1157,
51,
2222,
30,
1002,
400,
273,
283,
18,
3072,
12,
8638,
16,
2606,
13,
309,
486,
400,
30,
327,
599,
327,
400,
18,
1655,
12,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4720,
5664,
67,
75,
952,
12,
529,
4672,
3065,
273,
436,
11,
15441,
4713,
5153,
87,
5772,
2941,
9,
87,
5834,
15441,
4713,
5153,
87,
65,
4035,
738,
283,
18,
6939,
12,
529,
13,
5194,
659,
16,
4946,
659,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
659,
13,
1797,
273,
296,
430,
618,
314,
952,
405,
19,
5206,
19,
2011,
576,
22393,
21,
31,
1508,
16525,
33,
75,
952,
31,
469,
16525,
33,
952,
31,
7314,
4359,
521,
3365,
6743,
300,
59,
80,
16,
17,
88,
300,
83,
296,
397,
4946,
659,
397,
296,
576,
22393,
21,
300,
80,
11,
397,
508,
775,
30,
284,
273,
1140,
18,
84,
3190,
12,
4172,
2
] |
self.count = 0
|
def __init__(self, hdf, prefix='changeset.diff'): self.count = 0 self.block = [] self.ttype = None self.p_block = [] self.p_type = None self.hdf = hdf self.prefix = prefix self.changeno = 0 self.blockno = 0
|
f61601fb44e716bee3966732212690b1eb07ed42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/f61601fb44e716bee3966732212690b1eb07ed42/Changeset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
24217,
16,
1633,
2218,
6329,
278,
18,
5413,
11,
4672,
365,
18,
2629,
273,
5378,
365,
18,
88,
723,
225,
273,
599,
365,
18,
84,
67,
2629,
273,
5378,
365,
18,
84,
67,
723,
225,
273,
599,
365,
18,
26428,
273,
24217,
365,
18,
3239,
273,
1633,
365,
18,
24083,
5764,
273,
374,
365,
18,
2629,
2135,
273,
374,
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,
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599,
365,
18,
84,
67,
2629,
273,
5378,
365,
18,
84,
67,
723,
225,
273,
599,
365,
18,
26428,
273,
24217,
365,
18,
3239,
273,
1633,
365,
18,
24083,
5764,
273,
374,
365,
18,
2629,
2135,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
colorbutton = gtk.ColorButton(self.bgcolor) colorbutton.connect('color-set', self.bgcolor_selected)
|
colorbutton = gtk.ColorButton(self.bgcolor) colorbutton.connect('color-set', self.bgcolor_selected)
|
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs:
|
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1484,
2556,
12,
2890,
16,
1301,
4672,
365,
18,
1484,
2556,
67,
12730,
273,
22718,
18,
6353,
12,
2649,
33,
67,
2932,
49,
481,
410,
28310,
6,
3631,
982,
33,
2890,
18,
5668,
13,
365,
18,
1484,
2556,
67,
12730,
18,
542,
67,
5332,
67,
11287,
12,
8381,
13,
365,
18,
1484,
2556,
67,
12730,
18,
542,
67,
455,
6934,
12,
8381,
13,
468,
1436,
315,
1358,
6,
15503,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
2405,
67,
1484,
2556,
12,
2890,
16,
1301,
4672,
365,
18,
1484,
2556,
67,
12730,
273,
22718,
18,
6353,
12,
2649,
33,
67,
2932,
49,
481,
410,
28310,
6,
3631,
982,
33,
2890,
18,
5668,
13,
365,
18,
1484,
2556,
67,
12730,
18,
542,
67,
5332,
67,
11287,
12,
8381,
13,
365,
18,
1484,
2556,
67,
12730,
18,
542,
67,
455,
6934,
12,
8381,
13,
468,
1436,
315,
1358,
6,
15503,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert "command" in res[0].name
|
assert "sum" in res[0].name
|
def test_search(): pkgman = PackageManager() pkgman.load_directory("./") assert 'Test' in pkgman res = pkgman.search_node("command") print res assert "command" in res[0].name # comment these 3 lines because system.command is not part # of any nodes anymore. #res = pkgman.search_node("system.command") #print res #assert "command" in res[0].name
|
552a713eebb4891da3d3268f07664089b7eeb9fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11338/552a713eebb4891da3d3268f07664089b7eeb9fb/test_packagemanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3072,
13332,
225,
3475,
4728,
273,
7508,
1318,
1435,
3475,
4728,
18,
945,
67,
5149,
2932,
18,
4898,
13,
225,
1815,
296,
4709,
11,
316,
3475,
4728,
225,
400,
273,
3475,
4728,
18,
3072,
67,
2159,
2932,
3076,
7923,
1172,
400,
1815,
315,
1364,
6,
316,
400,
63,
20,
8009,
529,
282,
468,
2879,
4259,
890,
2362,
2724,
2619,
18,
3076,
353,
486,
1087,
468,
434,
1281,
2199,
16828,
18,
468,
455,
273,
3475,
4728,
18,
3072,
67,
2159,
2932,
4299,
18,
3076,
7923,
468,
1188,
400,
468,
11231,
315,
1364,
6,
316,
400,
63,
20,
8009,
529,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3072,
13332,
225,
3475,
4728,
273,
7508,
1318,
1435,
3475,
4728,
18,
945,
67,
5149,
2932,
18,
4898,
13,
225,
1815,
296,
4709,
11,
316,
3475,
4728,
225,
400,
273,
3475,
4728,
18,
3072,
67,
2159,
2932,
3076,
7923,
1172,
400,
1815,
315,
1364,
6,
316,
400,
63,
20,
8009,
529,
282,
468,
2879,
4259,
890,
2362,
2724,
2619,
18,
3076,
353,
486,
1087,
468,
434,
1281,
2199,
16828,
18,
468,
455,
273,
3475,
4728,
18,
3072,
67,
2159,
2932,
4299,
18,
3076,
7923,
468,
1188,
400,
468,
11231,
315,
1364,
6,
316,
400,
63,
20,
8009,
529,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Parses a compact ISO weekdate (*yyyyWwwd*), and returns a tuple with year,
|
Parses a compact ISO weekdate (*yyyyWwwd*), and returns a tuple with year,
|
def compactweekdate(cls, date): """ "Parses a compact ISO weekdate (*yyyyWwwd*), and returns a tuple with year, week, and weekday. """
|
5ecfcebcb1224336a96144a10eaa65b4462fb24b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4181/5ecfcebcb1224336a96144a10eaa65b4462fb24b/iso.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6739,
10741,
712,
12,
6429,
16,
1509,
4672,
3536,
2280,
2420,
279,
6739,
9351,
4860,
712,
261,
14,
17722,
59,
3107,
72,
14,
3631,
471,
1135,
279,
3193,
598,
3286,
16,
4860,
16,
471,
7560,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6739,
10741,
712,
12,
6429,
16,
1509,
4672,
3536,
2280,
2420,
279,
6739,
9351,
4860,
712,
261,
14,
17722,
59,
3107,
72,
14,
3631,
471,
1135,
279,
3193,
598,
3286,
16,
4860,
16,
471,
7560,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return gnucap
|
return [gnucap, ""]
|
def to_gnucap_res(self, gnucap_name, node_id1, node_id2, gnucap_value): # Ignore the component if there is some unconnected nodes. for i in (node_id1, node_id2): node = self.nodes[i] if not node.get_wires(): gnucap = "* %s: component ignored: not connected\n" %(gnucap_name) return gnucap
|
13ee6c41f57e9506834260f5eae4b05b66b6faeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/13ee6c41f57e9506834260f5eae4b05b66b6faeb/electric.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1600,
5286,
438,
67,
455,
12,
2890,
16,
22908,
5286,
438,
67,
529,
16,
756,
67,
350,
21,
16,
756,
67,
350,
22,
16,
22908,
5286,
438,
67,
1132,
4672,
468,
8049,
326,
1794,
309,
1915,
353,
2690,
23980,
82,
828,
2199,
18,
364,
277,
316,
261,
2159,
67,
350,
21,
16,
756,
67,
350,
22,
4672,
756,
273,
365,
18,
4690,
63,
77,
65,
309,
486,
756,
18,
588,
67,
91,
2814,
13332,
22908,
5286,
438,
273,
15902,
738,
87,
30,
1794,
5455,
30,
486,
5840,
64,
82,
6,
8975,
1600,
5286,
438,
67,
529,
13,
327,
22908,
5286,
438,
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,
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350,
21,
16,
756,
67,
350,
22,
16,
22908,
5286,
438,
67,
1132,
4672,
468,
8049,
326,
1794,
309,
1915,
353,
2690,
23980,
82,
828,
2199,
18,
364,
277,
316,
261,
2159,
67,
350,
21,
16,
756,
67,
350,
22,
4672,
756,
273,
365,
18,
4690,
63,
77,
65,
309,
486,
756,
18,
588,
67,
91,
2814,
13332,
22908,
5286,
438,
273,
15902,
738,
87,
30,
1794,
5455,
30,
486,
5840,
64,
82,
6,
8975,
1600,
5286,
438,
67,
529,
13,
327,
22908,
5286,
438,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.writeoperation(convop, inputrepr, outputrepr): self.mark_release(tmp) else: if self.writeoperation(convop, inputrepr, outputrepr): tmp = Variable() self.hltypes[tmp] = outputtype self.llreprs[tmp] = outputrepr self.mark_release(tmp)
|
self.writeoperation(convop, inputrepr, outputrepr)
|
def convert(self, inputtype, inputrepr, outputtype, outputrepr=None): convop = self.getconversion(inputtype, outputtype) if outputrepr is None: tmp = Variable() self.makevar(tmp, hltype=outputtype) outputrepr = self.llreprs[tmp] if self.writeoperation(convop, inputrepr, outputrepr): self.mark_release(tmp) else: if self.writeoperation(convop, inputrepr, outputrepr): tmp = Variable() self.hltypes[tmp] = outputtype self.llreprs[tmp] = outputrepr self.mark_release(tmp) return outputrepr
|
842d71aa77f5a1dec4c16a6ec8790eb83ff69fa4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/842d71aa77f5a1dec4c16a6ec8790eb83ff69fa4/typer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2890,
16,
810,
723,
16,
810,
12715,
16,
876,
723,
16,
876,
12715,
33,
7036,
4672,
6292,
556,
273,
365,
18,
588,
20990,
12,
2630,
723,
16,
876,
723,
13,
309,
876,
12715,
353,
599,
30,
1853,
273,
7110,
1435,
365,
18,
6540,
1401,
12,
5645,
16,
16043,
723,
33,
2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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2890,
16,
810,
723,
16,
810,
12715,
16,
876,
723,
16,
876,
12715,
33,
7036,
4672,
6292,
556,
273,
365,
18,
588,
20990,
12,
2630,
723,
16,
876,
723,
13,
309,
876,
12715,
353,
599,
30,
1853,
273,
7110,
1435,
365,
18,
6540,
1401,
12,
5645,
16,
16043,
723,
33,
2844,
723,
13,
876,
12715,
273,
365,
18,
2906,
12715,
87,
63,
5645,
65,
365,
18,
2626,
7624,
12,
4896,
556,
16,
810,
12715,
16,
876,
12715,
13,
327,
876,
12715,
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
] |
= self._read_embedded_args_and_regexp(handlerdata.name)
|
= self._read_embedded_args_and_regexp(keyword.name)
|
def __init__(self, handlerdata, libname): if handlerdata.args: raise TypeError('Cannot have normal arguments') self.embedded_args, self.name_regexp \ = self._read_embedded_args_and_regexp(handlerdata.name) if not self.embedded_args: raise TypeError('Must have embedded arguments') UserKeywordHandler.__init__(self, handlerdata, libname)
|
525339e947a1628a32403e6e8c2f383ef8bbb6dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/525339e947a1628a32403e6e8c2f383ef8bbb6dc/userkeyword.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1838,
892,
16,
2561,
529,
4672,
309,
1838,
892,
18,
1968,
30,
1002,
3580,
2668,
4515,
1240,
2212,
1775,
6134,
365,
18,
20722,
67,
1968,
16,
365,
18,
529,
67,
17745,
521,
273,
365,
6315,
896,
67,
20722,
67,
1968,
67,
464,
67,
17745,
12,
11041,
18,
529,
13,
309,
486,
365,
18,
20722,
67,
1968,
30,
1002,
3580,
2668,
10136,
1240,
7488,
1775,
6134,
2177,
8736,
1503,
16186,
2738,
972,
12,
2890,
16,
1838,
892,
16,
2561,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1838,
892,
16,
2561,
529,
4672,
309,
1838,
892,
18,
1968,
30,
1002,
3580,
2668,
4515,
1240,
2212,
1775,
6134,
365,
18,
20722,
67,
1968,
16,
365,
18,
529,
67,
17745,
521,
273,
365,
6315,
896,
67,
20722,
67,
1968,
67,
464,
67,
17745,
12,
11041,
18,
529,
13,
309,
486,
365,
18,
20722,
67,
1968,
30,
1002,
3580,
2668,
10136,
1240,
7488,
1775,
6134,
2177,
8736,
1503,
16186,
2738,
972,
12,
2890,
16,
1838,
892,
16,
2561,
529,
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
] |
if value: element.attrib[utils.localname(name)] = css_to_xpath(value, prefix=prefix)
|
localname = utils.localname(name) if not value: element.attrib[localname] = "" continue if localname == 'content' and element.tag == '{%s}drop' % utils.namespaces['xdv']: prefix = '//'
|
def convert_css_selectors(rules, prefix='//'): """Convert css rules to xpath rules element tree in place """ #XXX: There is a :root pseudo-class - http://www.w3.org/TR/css3-selectors/#root-pseudo # We may wish to add support to lxml.cssselect for it some day. for element in rules.xpath("//@*[namespace-uri()='%s']/.." % utils.namespaces['css']): for name, value in element.attrib.items(): if name.startswith('{%s}' % utils.namespaces['css']): if value: element.attrib[utils.localname(name)] = css_to_xpath(value, prefix=prefix) else: element.attrib[utils.fullname(element.nsmap[element.prefix], utils.localname(name))] = "" return rules
|
35d9d586daf60d4e13a4bc23636938f5b9874bd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12188/35d9d586daf60d4e13a4bc23636938f5b9874bd3/cssrules.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
5212,
67,
29829,
12,
7482,
16,
1633,
2218,
759,
11,
4672,
3536,
2723,
3747,
2931,
358,
6748,
2931,
930,
2151,
316,
3166,
3536,
468,
15639,
30,
6149,
353,
279,
294,
3085,
12454,
17,
1106,
300,
1062,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
5212,
23,
17,
29829,
21067,
3085,
17,
26023,
468,
1660,
2026,
14302,
358,
527,
2865,
358,
328,
2902,
18,
5212,
4025,
364,
518,
2690,
2548,
18,
364,
930,
316,
2931,
18,
18644,
2932,
759,
36,
26625,
4937,
17,
1650,
1435,
28713,
87,
3546,
19,
18460,
738,
2990,
18,
16078,
3292,
5212,
3546,
4672,
364,
508,
16,
460,
316,
930,
18,
14588,
18,
3319,
13332,
309,
508,
18,
17514,
1918,
2668,
95,
9,
87,
1713,
738,
2990,
18,
16078,
3292,
5212,
3546,
4672,
1191,
529,
273,
2990,
18,
3729,
529,
12,
529,
13,
309,
486,
460,
30,
930,
18,
14588,
63,
3729,
529,
65,
273,
1408,
1324,
309,
1191,
529,
422,
296,
1745,
11,
471,
930,
18,
2692,
422,
2292,
9,
87,
97,
7285,
11,
738,
2990,
18,
16078,
3292,
7669,
90,
3546,
30,
1633,
273,
19696,
469,
30,
930,
18,
14588,
63,
5471,
18,
21885,
12,
2956,
18,
2387,
1458,
63,
2956,
18,
3239,
6487,
2990,
18,
3729,
529,
12,
529,
3719,
65,
273,
1408,
327,
2931,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
5212,
67,
29829,
12,
7482,
16,
1633,
2218,
759,
11,
4672,
3536,
2723,
3747,
2931,
358,
6748,
2931,
930,
2151,
316,
3166,
3536,
468,
15639,
30,
6149,
353,
279,
294,
3085,
12454,
17,
1106,
300,
1062,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
5212,
23,
17,
29829,
21067,
3085,
17,
26023,
468,
1660,
2026,
14302,
358,
527,
2865,
358,
328,
2902,
18,
5212,
4025,
364,
518,
2690,
2548,
18,
364,
930,
316,
2931,
18,
18644,
2932,
759,
36,
26625,
4937,
17,
1650,
1435,
28713,
87,
3546,
19,
18460,
738,
2990,
18,
16078,
3292,
5212,
3546,
4672,
364,
508,
16,
460,
316,
930,
18,
14588,
18,
3319,
13332,
309,
508,
18,
17514,
1918,
2668,
2
] |
warning("Interface %s: unkown address family (%i)"%(iff, addrfamily)) continue
|
addrfamily = struct.unpack("h",ifreq[16:18])[0] if addrfamily == socket.AF_INET: ifaddr = inet_ntoa(ifreq[20:24]) else: warning("Interface %s: unkown address family (%i)"%(iff, addrfamily)) continue
|
def read_routes(): f=open("/proc/net/route","r") routes = [] s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) ifreq = ioctl(s, SIOCGIFADDR,struct.pack("16s16x","lo")) addrfamily = struct.unpack("h",ifreq[16:18])[0] if addrfamily == socket.AF_INET: ifreq2 = ioctl(s, SIOCGIFNETMASK,struct.pack("16s16x","lo")) msk = struct.unpack("I",ifreq2[20:24])[0] dst = struct.unpack("I",ifreq[20:24])[0] & msk ifaddr = inet_ntoa(ifreq[20:24]) routes.append((dst, msk, "0.0.0.0", "lo", ifaddr)) else: warning("Interface lo: unkown address family (%i)"% addrfamily) for l in f.readlines()[1:]: iff,dst,gw,flags,x,x,x,msk,x,x,x = l.split() flags = int(flags,16) if flags & RTF_UP == 0: continue if flags & RTF_REJECT: continue ifreq = ioctl(s, SIOCGIFADDR,struct.pack("16s16x",iff)) addrfamily = struct.unpack("h",ifreq[16:18])[0] if addrfamily == socket.AF_INET: ifaddr = inet_ntoa(ifreq[20:24]) else: warning("Interface %s: unkown address family (%i)"%(iff, addrfamily)) continue routes.append((long(dst,16), long(msk,16), inet_ntoa(struct.pack("I",long(gw,16))), iff, ifaddr)) f.close() return routes
|
2affa8eef1ef85219745fd668c0d88ddf689804c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/2affa8eef1ef85219745fd668c0d88ddf689804c/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10854,
13332,
284,
33,
3190,
2932,
19,
9381,
19,
2758,
19,
5547,
15937,
86,
7923,
4912,
273,
5378,
272,
33,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
40,
15370,
13,
309,
3658,
273,
2527,
12930,
12,
87,
16,
348,
4294,
20585,
5501,
14142,
16,
1697,
18,
2920,
2932,
2313,
87,
2313,
92,
15937,
383,
6,
3719,
3091,
9309,
273,
1958,
18,
17309,
2932,
76,
3113,
430,
3658,
63,
2313,
30,
2643,
5717,
63,
20,
65,
309,
3091,
9309,
422,
2987,
18,
6799,
67,
18819,
30,
309,
3658,
22,
273,
2527,
12930,
12,
87,
16,
348,
4294,
20585,
5501,
14843,
11704,
16,
1697,
18,
2920,
2932,
2313,
87,
2313,
92,
15937,
383,
6,
3719,
4086,
79,
273,
1958,
18,
17309,
2932,
45,
3113,
430,
3658,
22,
63,
3462,
30,
3247,
5717,
63,
20,
65,
3046,
273,
1958,
18,
17309,
2932,
45,
3113,
430,
3658,
63,
3462,
30,
3247,
5717,
63,
20,
65,
473,
4086,
79,
309,
4793,
273,
17661,
67,
496,
11867,
12,
430,
3658,
63,
3462,
30,
3247,
5717,
4912,
18,
6923,
12443,
11057,
16,
4086,
79,
16,
315,
20,
18,
20,
18,
20,
18,
20,
3113,
315,
383,
3113,
309,
4793,
3719,
469,
30,
3436,
2932,
1358,
437,
30,
640,
79,
995,
1758,
6755,
6142,
77,
2225,
9,
3091,
9309,
13,
225,
364,
328,
316,
284,
18,
896,
3548,
1435,
63,
21,
30,
14542,
21437,
16,
11057,
16,
28500,
16,
7133,
16,
92,
16,
92,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10854,
13332,
284,
33,
3190,
2932,
19,
9381,
19,
2758,
19,
5547,
15937,
86,
7923,
4912,
273,
5378,
272,
33,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
40,
15370,
13,
309,
3658,
273,
2527,
12930,
12,
87,
16,
348,
4294,
20585,
5501,
14142,
16,
1697,
18,
2920,
2932,
2313,
87,
2313,
92,
15937,
383,
6,
3719,
3091,
9309,
273,
1958,
18,
17309,
2932,
76,
3113,
430,
3658,
63,
2313,
30,
2643,
5717,
63,
20,
65,
309,
3091,
9309,
422,
2987,
18,
6799,
67,
18819,
30,
309,
3658,
22,
273,
2527,
12930,
12,
87,
16,
348,
4294,
20585,
5501,
14843,
11704,
16,
1697,
18,
2920,
2932,
2313,
87,
2313,
2
] |
'''shouldn't normally be called directly'''
|
'''Perform actions required at beginning of page. shouldn't normally be called directly'''
|
def handle_pageBegin(self): '''shouldn't normally be called directly''' self.page = self.page + 1 self.pageTemplate.drawPage(self.canv,self) self.pageTemplate.onPage(self.canv,self) if hasattr(self,'_nextFrameIndex'): del self._nextFrameIndex self.frame = self.pageTemplate.frames[0] self.handle_frameBegin()
|
2308046a6bba89b2245e9e88a7b7491f6ed0d2d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2308046a6bba89b2245e9e88a7b7491f6ed0d2d7/doctemplate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2433,
8149,
12,
2890,
4672,
9163,
4990,
4209,
1931,
622,
8435,
434,
1363,
18,
12044,
1404,
15849,
506,
2566,
5122,
26418,
365,
18,
2433,
273,
365,
18,
2433,
397,
404,
365,
18,
2433,
2283,
18,
9446,
1964,
12,
2890,
18,
4169,
90,
16,
2890,
13,
365,
18,
2433,
2283,
18,
265,
1964,
12,
2890,
18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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2433,
8149,
12,
2890,
4672,
9163,
4990,
4209,
1931,
622,
8435,
434,
1363,
18,
12044,
1404,
15849,
506,
2566,
5122,
26418,
365,
18,
2433,
273,
365,
18,
2433,
397,
404,
365,
18,
2433,
2283,
18,
9446,
1964,
12,
2890,
18,
4169,
90,
16,
2890,
13,
365,
18,
2433,
2283,
18,
265,
1964,
12,
2890,
18,
4169,
90,
16,
2890,
13,
309,
3859,
12,
2890,
11189,
67,
4285,
3219,
1016,
11,
4672,
1464,
365,
6315,
4285,
3219,
1016,
365,
18,
3789,
273,
365,
18,
2433,
2283,
18,
10278,
63,
20,
65,
365,
18,
4110,
67,
3789,
8149,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pass
|
b, a = bilinear(b, a, fs=fs)
|
def butter(N, Wn, bandtype='band', analog=0, output=''): """Butterworth digital and analog filter design. Description: Design an Nth order lowpass digital Butterworth filter and return the filter coefficients in (B,A) form. Inputs: """ #pre-warp frequencies for digital filter design if not analog: warped = 2*fs*tan(pi*Wn/fs) else: warped = Wn # convert to low-pass prototype # Get analog lowpass prototype # transform to lowpass, bandpass, highpass, or bandstop # Find discrete equivalent if necessary if not analog: pass # Transform to proper out type (pole-zero, state-space, numer-denom) pass
|
52477d3d8b9098fa5178fb8886e5ea9d40db9bb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/52477d3d8b9098fa5178fb8886e5ea9d40db9bb3/filter_design.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1496,
387,
12,
50,
16,
678,
82,
16,
8937,
723,
2218,
12752,
2187,
25714,
33,
20,
16,
876,
2218,
11,
4672,
3536,
38,
18220,
91,
7825,
25615,
471,
25714,
1034,
8281,
18,
225,
6507,
30,
225,
29703,
392,
423,
451,
1353,
4587,
5466,
25615,
12484,
387,
91,
7825,
1034,
471,
327,
326,
1034,
14229,
316,
261,
38,
16,
37,
13,
646,
18,
225,
24472,
30,
225,
3536,
225,
468,
1484,
17,
905,
84,
18138,
364,
25615,
1034,
8281,
309,
486,
25714,
30,
21983,
1845,
273,
576,
14,
2556,
14,
88,
304,
12,
7259,
14,
59,
82,
19,
2556,
13,
469,
30,
21983,
1845,
273,
678,
82,
225,
468,
1765,
358,
4587,
17,
5466,
4409,
225,
468,
968,
25714,
4587,
5466,
4409,
225,
468,
2510,
358,
4587,
5466,
16,
8937,
5466,
16,
3551,
5466,
16,
578,
8937,
5681,
225,
468,
4163,
20035,
7680,
309,
4573,
309,
486,
25714,
30,
324,
16,
279,
273,
324,
12554,
297,
12,
70,
16,
279,
16,
2662,
33,
2556,
13,
225,
468,
11514,
358,
5338,
596,
618,
261,
84,
790,
17,
7124,
16,
919,
17,
2981,
16,
26511,
17,
13002,
362,
13,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1496,
387,
12,
50,
16,
678,
82,
16,
8937,
723,
2218,
12752,
2187,
25714,
33,
20,
16,
876,
2218,
11,
4672,
3536,
38,
18220,
91,
7825,
25615,
471,
25714,
1034,
8281,
18,
225,
6507,
30,
225,
29703,
392,
423,
451,
1353,
4587,
5466,
25615,
12484,
387,
91,
7825,
1034,
471,
327,
326,
1034,
14229,
316,
261,
38,
16,
37,
13,
646,
18,
225,
24472,
30,
225,
3536,
225,
468,
1484,
17,
905,
84,
18138,
364,
25615,
1034,
8281,
309,
486,
25714,
30,
21983,
1845,
273,
576,
14,
2556,
14,
88,
304,
12,
7259,
14,
59,
82,
19,
2556,
13,
469,
30,
21983,
1845,
273,
678,
82,
225,
468,
1765,
358,
4587,
17,
5466,
4409,
225,
468,
968,
25714,
2
] |
self.assertRaises(TypeError, list, ifilter(isEven, N(s)))
|
self.assertRaises(TypeError, ifilter, isEven, N(s))
|
def test_ifilter(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(ifilter(isEven, g(s))), filter(isEven, g(s))) self.assertRaises(TypeError, ifilter, isEven, X(s)) self.assertRaises(TypeError, list, ifilter(isEven, N(s))) self.assertRaises(ZeroDivisionError, list, ifilter(isEven, E(s)))
|
99670b07b3fb0f90717126730b9ee2d3f78261c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/99670b07b3fb0f90717126730b9ee2d3f78261c2/test_itertools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
430,
1088,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
364,
314,
316,
261,
43,
16,
467,
16,
467,
75,
16,
348,
16,
511,
16,
534,
4672,
365,
18,
11231,
5812,
12,
1098,
12,
430,
1088,
12,
291,
8321,
16,
314,
12,
87,
3719,
3631,
1034,
12,
291,
8321,
16,
314,
12,
87,
20349,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
16,
353,
8321,
16,
1139,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
16,
353,
8321,
16,
423,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
7170,
28223,
668,
16,
666,
16,
309,
1088,
12,
291,
8321,
16,
512,
12,
87,
20349,
2,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
430,
1088,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
364,
314,
316,
261,
43,
16,
467,
16,
467,
75,
16,
348,
16,
511,
16,
534,
4672,
365,
18,
11231,
5812,
12,
1098,
12,
430,
1088,
12,
291,
8321,
16,
314,
12,
87,
3719,
3631,
1034,
12,
291,
8321,
16,
314,
12,
87,
20349,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
16,
353,
8321,
16,
1139,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
16,
353,
8321,
16,
423,
12,
87,
3719,
2
] |
print "\nPARENT'S OFFSET = ",self.parent.xoffset,self.parent.yoffset
|
def paintOnDC(self, dc): """ Created: 06.10.2006, KP Description: Paint the annotations on a DC """ print "\nPARENT'S OFFSET = ",self.parent.xoffset,self.parent.yoffset self.parent.diagram.Redraw(dc)
|
4f55a5dca9f9faeeb6611f04a3dc12710a42321e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/4f55a5dca9f9faeeb6611f04a3dc12710a42321e/InteractivePanel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
1398,
5528,
12,
2890,
16,
6744,
4672,
3536,
12953,
30,
13026,
18,
2163,
18,
6976,
26,
16,
1475,
52,
6507,
30,
30001,
326,
5617,
603,
279,
21533,
3536,
225,
365,
18,
2938,
18,
12264,
1940,
18,
3715,
1899,
12,
7201,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
1398,
5528,
12,
2890,
16,
6744,
4672,
3536,
12953,
30,
13026,
18,
2163,
18,
6976,
26,
16,
1475,
52,
6507,
30,
30001,
326,
5617,
603,
279,
21533,
3536,
225,
365,
18,
2938,
18,
12264,
1940,
18,
3715,
1899,
12,
7201,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
out = BIO.openfile('p7.clear', 'w')
|
out = BIO.openfile('clear.p7', 'w')
|
def sign(): print 'test sign & save...', buf = makebuf() s = SMIME.SMIME() s.load_key('client.pem') p7 = s.sign(buf) out = BIO.openfile('p7.clear', 'w') out.write('To: [email protected]\n') out.write('From: [email protected]\n') out.write('Subject: testing\n') buf = makebuf() # Recreate buf, because sign() has consumed it. s.write(out, p7, buf) out.close() buf = makebuf() p7 = s.sign(buf) out = BIO.openfile('p7.opaque', 'w') out.write('To: [email protected]\n') out.write('From: [email protected]\n') out.write('Subject: testing\n') s.write(out, p7) out.close() print 'ok'
|
40431475922500ae7929b2bc6c49d3d58098e5cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/40431475922500ae7929b2bc6c49d3d58098e5cc/test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1573,
13332,
1172,
296,
3813,
1573,
473,
1923,
7821,
16,
1681,
273,
1221,
4385,
1435,
272,
273,
12014,
3114,
18,
7303,
3114,
1435,
272,
18,
945,
67,
856,
2668,
2625,
18,
20313,
6134,
293,
27,
273,
272,
18,
2977,
12,
4385,
13,
596,
273,
605,
4294,
18,
3190,
768,
2668,
8507,
18,
84,
27,
2187,
296,
91,
6134,
596,
18,
2626,
2668,
774,
30,
10944,
1121,
36,
2767,
21,
18,
832,
64,
82,
6134,
596,
18,
2626,
2668,
1265,
30,
312,
22,
18489,
36,
81,
22,
18489,
18,
3341,
64,
82,
6134,
596,
18,
2626,
2668,
6638,
30,
7769,
64,
82,
6134,
1681,
273,
1221,
4385,
1435,
468,
868,
2640,
1681,
16,
2724,
1573,
1435,
711,
12393,
518,
18,
272,
18,
2626,
12,
659,
16,
293,
27,
16,
1681,
13,
596,
18,
4412,
1435,
225,
1681,
273,
1221,
4385,
1435,
293,
27,
273,
272,
18,
2977,
12,
4385,
13,
596,
273,
605,
4294,
18,
3190,
768,
2668,
84,
27,
18,
556,
14886,
2187,
296,
91,
6134,
596,
18,
2626,
2668,
774,
30,
10944,
1121,
36,
2767,
21,
18,
832,
64,
82,
6134,
596,
18,
2626,
2668,
1265,
30,
312,
22,
18489,
36,
81,
22,
18489,
18,
3341,
64,
82,
6134,
596,
18,
2626,
2668,
6638,
30,
7769,
64,
82,
6134,
272,
18,
2626,
12,
659,
16,
293,
27,
13,
596,
18,
4412,
1435,
1172,
296,
601,
11,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1573,
13332,
1172,
296,
3813,
1573,
473,
1923,
7821,
16,
1681,
273,
1221,
4385,
1435,
272,
273,
12014,
3114,
18,
7303,
3114,
1435,
272,
18,
945,
67,
856,
2668,
2625,
18,
20313,
6134,
293,
27,
273,
272,
18,
2977,
12,
4385,
13,
596,
273,
605,
4294,
18,
3190,
768,
2668,
8507,
18,
84,
27,
2187,
296,
91,
6134,
596,
18,
2626,
2668,
774,
30,
10944,
1121,
36,
2767,
21,
18,
832,
64,
82,
6134,
596,
18,
2626,
2668,
1265,
30,
312,
22,
18489,
36,
81,
22,
18489,
18,
3341,
64,
82,
6134,
596,
18,
2626,
2668,
6638,
30,
7769,
64,
82,
6134,
1681,
273,
1221,
4385,
1435,
468,
868,
2640,
1681,
16,
2724,
1573,
1435,
711,
12393,
518,
2
] |
if not(isinstance(range_info, LocationParser.Range)):
|
elif not(isinstance(range_info, LocationParser.Range)):
|
def _get_location(self, range_info): """Return a (possibly fuzzy) location from a Range object.
|
1707d3b28d546c252f7d95b599cdf5b9993fba00 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/1707d3b28d546c252f7d95b599cdf5b9993fba00/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3562,
12,
2890,
16,
1048,
67,
1376,
4672,
3536,
990,
279,
261,
917,
8781,
21315,
13,
2117,
628,
279,
8086,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
"""Test wither one of the indexes belongs to the predefined set."""
|
"""Test wether one of the indexes belongs to the predefined set."""
|
def __call__(self, *test_indexes): """Test wither one of the indexes belongs to the predefined set.""" if self.filter_atoms is None: return True return len(self.filter_atoms.intersection(test_indexes)) > 0
|
c58b0e1dee304ebf71871e7a0ad0d130f2900bd7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11050/c58b0e1dee304ebf71871e7a0ad0d130f2900bd7/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
3813,
67,
11265,
4672,
3536,
4709,
341,
2437,
1245,
434,
326,
5596,
11081,
358,
326,
19555,
444,
12123,
309,
365,
18,
2188,
67,
14937,
353,
599,
30,
327,
1053,
327,
562,
12,
2890,
18,
2188,
67,
14937,
18,
30231,
12,
3813,
67,
11265,
3719,
405,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
3813,
67,
11265,
4672,
3536,
4709,
341,
2437,
1245,
434,
326,
5596,
11081,
358,
326,
19555,
444,
12123,
309,
365,
18,
2188,
67,
14937,
353,
599,
30,
327,
1053,
327,
562,
12,
2890,
18,
2188,
67,
14937,
18,
30231,
12,
3813,
67,
11265,
3719,
405,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
current_version=5
|
current_version=6
|
def check_dbversion(): cfg = Config.Config() current_version=5 try: dbversion=cfg.GetConfigItem("dbversion") except: print "WARNING: dbversion tag not found." print " : Check that your DB structure is up to date." return 0 dbversion=int(dbversion) if dbversion < current_version: print "WARNING: dbversion tag indicates your database is out of date. Updating..." update_dbversion() return 1
|
750b731c383a64a4ccc10cbdd682c7e77ea36207 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11694/750b731c383a64a4ccc10cbdd682c7e77ea36207/DBSync.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1966,
1589,
13332,
2776,
273,
1903,
18,
809,
1435,
783,
67,
1589,
33,
26,
225,
775,
30,
1319,
1589,
33,
7066,
18,
967,
809,
1180,
2932,
1966,
1589,
7923,
1335,
30,
1172,
315,
9511,
30,
1319,
1589,
1047,
486,
1392,
1199,
1172,
315,
4202,
294,
2073,
716,
3433,
2383,
3695,
353,
731,
358,
1509,
1199,
327,
374,
225,
1319,
1589,
33,
474,
12,
1966,
1589,
13,
225,
309,
1319,
1589,
411,
783,
67,
1589,
30,
1172,
315,
9511,
30,
1319,
1589,
1047,
8527,
3433,
2063,
353,
596,
434,
1509,
18,
27254,
1776,
7070,
1089,
67,
1966,
1589,
1435,
225,
327,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1966,
1589,
13332,
2776,
273,
1903,
18,
809,
1435,
783,
67,
1589,
33,
26,
225,
775,
30,
1319,
1589,
33,
7066,
18,
967,
809,
1180,
2932,
1966,
1589,
7923,
1335,
30,
1172,
315,
9511,
30,
1319,
1589,
1047,
486,
1392,
1199,
1172,
315,
4202,
294,
2073,
716,
3433,
2383,
3695,
353,
731,
358,
1509,
1199,
327,
374,
225,
1319,
1589,
33,
474,
12,
1966,
1589,
13,
225,
309,
1319,
1589,
411,
783,
67,
1589,
30,
1172,
315,
9511,
30,
1319,
1589,
1047,
8527,
3433,
2063,
353,
596,
434,
1509,
18,
27254,
1776,
7070,
1089,
67,
1966,
1589,
1435,
225,
327,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
singleDayTuples = [(str(minPartitionDate + dt.timedelta(x))[:10], str(minPartitionDate + dt.timedelta(x + 1))[:10]) for x in range(6)]
|
singleDayTuples = [(str(minPartitionDate + dt.timedelta(x))[:10], str(minPartitionDate + dt.timedelta(x + 1))[:10]) for x in range(7)]
|
def wrapperIter(): for x in list(dateRangeIterator())[::-1][:4]: yield x
|
a75ad7a47ea9ac630af873ab6d62af5175d4d29c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/a75ad7a47ea9ac630af873ab6d62af5175d4d29c/migrate_3.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
2360,
13332,
364,
619,
316,
666,
12,
712,
2655,
3198,
10756,
63,
2866,
17,
21,
6362,
30,
24,
14542,
2824,
619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4053,
2360,
13332,
364,
619,
316,
666,
12,
712,
2655,
3198,
10756,
63,
2866,
17,
21,
6362,
30,
24,
14542,
2824,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.channel.set_custom_title( self.entryTitle.get_text())
|
self.channel.set_custom_title(self.entryTitle.get_text())
|
def on_btnOK_clicked(self, widget, *args): entered_url = self.entryURL.get_text() channel_url = self.channel.url
|
54386f67bc60d9a7695fad74a7d75be57c17a98d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/54386f67bc60d9a7695fad74a7d75be57c17a98d/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
11898,
3141,
67,
7475,
329,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
16219,
67,
718,
273,
365,
18,
4099,
1785,
18,
588,
67,
955,
1435,
1904,
67,
718,
273,
365,
18,
4327,
18,
718,
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,
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
365,
18,
4327,
18,
718,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
item.itsKind = davItem.itsKind
|
def syncFromServer(item, davItem): item.itsKind = davItem.itsKind kind = davItem.itsKind for (name, attr) in kind.iterAttributes(True): value = davItem.getAttribute(attr) if not value: continue log.info('Getting: %s (%s)' % (name, attr.type.itsName)) # see if its an ItemRef or not if isinstance(attr.type, Kind): # time for some xml parsing! yum! nodes = nodesFromXml(value) if len(nodes) == 0: continue if attr.cardinality == 'list': # replaced by mergeList + continue #setfunc = item.addValue mergeList(item, name, nodes, True) continue elif attr.cardinality == 'single': node = nodes[0] try: otherItem = Dav.DAV(node.content).get() item.setAttributeValue(name, otherItem) except Dav.NotFound: log.warning('Cant access %s' % (node.content)) elif attr.cardinality == 'dict': # XXX implement me log.info('NOTIMPLEMENTED Trying to share cardinality dict attribute' % (node.content)) else: raise Exception else: if attr.cardinality == 'list': nodes = nodesFromXml(value) # mergeList replaces this code #for node in nodes: # item.addValue(name, node.content) # log.info('Got.....: ', value) mergeList(item, name, nodes, False) elif attr.cardinality == 'single': log.info('Got.....: %s' % (value)) item.setAttributeValue(name, attr.type.makeValue(value)) # # XXX refactor this code # if item.isItemOf(item.itsView.findPath('//parcels/osaf/contentmodel/ItemCollection')): value = davItem._getAttribute('results', '//special/case') nodes = nodesFromXml(value) serverCollectionResults = [] for node in nodes: otherItem = Dav.DAV(node.content).get() serverCollectionResults.append(otherItem) log.debug('Merging itemCollection') # for now, just sync with whatever the server gave us for i in serverCollectionResults: if i not in item: item.add(i) log.debug('adding %s to collection %s' % (i, item)) # XXX this should work but has some issues.. fixme! # for i in item: # if i not in serverCollectionResults: # item.remove(i) # log.debug('removing %s from collection %s' % (i, item)) # # End refactor # item.etag = davItem.etag #item.lastModified = davItem.lastModified item.sharedVersion = item._version # XXX should we commit first?
|
74eef4b9b8ed3dc891787afb7430831cfda48942 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/74eef4b9b8ed3dc891787afb7430831cfda48942/Sync.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1265,
2081,
12,
1726,
16,
302,
842,
1180,
4672,
3846,
273,
302,
842,
1180,
18,
1282,
5677,
225,
364,
261,
529,
16,
1604,
13,
316,
3846,
18,
2165,
2498,
12,
5510,
4672,
225,
460,
273,
302,
842,
1180,
18,
588,
1499,
12,
1747,
13,
309,
486,
460,
30,
1324,
225,
613,
18,
1376,
2668,
19213,
30,
738,
87,
6142,
87,
2506,
738,
261,
529,
16,
1604,
18,
723,
18,
1282,
461,
3719,
225,
468,
2621,
309,
2097,
392,
4342,
1957,
578,
486,
309,
1549,
12,
1747,
18,
723,
16,
5851,
4672,
468,
813,
364,
2690,
2025,
5811,
5,
677,
379,
5,
225,
2199,
273,
2199,
1265,
4432,
12,
1132,
13,
309,
562,
12,
4690,
13,
422,
374,
30,
1324,
225,
309,
1604,
18,
3327,
9232,
422,
296,
1098,
4278,
468,
8089,
635,
2691,
682,
397,
1324,
468,
542,
644,
273,
761,
18,
1289,
620,
2691,
682,
12,
1726,
16,
508,
16,
2199,
16,
1053,
13,
1324,
1327,
1604,
18,
3327,
9232,
422,
296,
7526,
4278,
756,
273,
2199,
63,
20,
65,
775,
30,
1308,
1180,
273,
463,
842,
18,
17735,
12,
2159,
18,
1745,
2934,
588,
1435,
761,
18,
542,
14942,
12,
529,
16,
1308,
1180,
13,
1335,
463,
842,
18,
2768,
30,
613,
18,
8551,
2668,
39,
970,
2006,
738,
87,
11,
738,
261,
2159,
18,
1745,
3719,
1327,
1604,
18,
3327,
9232,
422,
296,
1576,
4278,
468,
11329,
2348,
1791,
613,
18,
1376,
2668,
4400,
9883,
28485,
6404,
6161,
310,
358,
7433,
14379,
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,
3792,
1265,
2081,
12,
1726,
16,
302,
842,
1180,
4672,
3846,
273,
302,
842,
1180,
18,
1282,
5677,
225,
364,
261,
529,
16,
1604,
13,
316,
3846,
18,
2165,
2498,
12,
5510,
4672,
225,
460,
273,
302,
842,
1180,
18,
588,
1499,
12,
1747,
13,
309,
486,
460,
30,
1324,
225,
613,
18,
1376,
2668,
19213,
30,
738,
87,
6142,
87,
2506,
738,
261,
529,
16,
1604,
18,
723,
18,
1282,
461,
3719,
225,
468,
2621,
309,
2097,
392,
4342,
1957,
578,
486,
309,
1549,
12,
1747,
18,
723,
16,
5851,
4672,
468,
813,
364,
2690,
2025,
5811,
5,
677,
379,
5,
225,
2199,
273,
2199,
1265,
4432,
12,
1132,
13,
309,
562,
12,
4690,
13,
422,
374,
2
] |
|
cache_recid_data_dict_CERNBulletin(recid, issue_number, rule, order)
|
cache_recid_data_dict_CERNBulletin(recid, issue_number, rule, order)
|
def get_recid_from_order_CERNBulletin(order, rule, issue_number): """ same functionality as get_recid_from_order above, but extends it for the CERN Bulletin in a way so multiple entries for the first article are possible. parameters: order: the order at which the record appears in the journal as passed in the url rule: the defining rule of the journal record category issue_number: the issue number for which we are searching returns: recid: the recid of the ordered record """ # try to get it from cache recid_dict = {} recid_dict = get_cached_recid_data_dict_CERNBulletin(issue_number, rule) if recid_dict.has_key(order): recid = recid_dict[order] return recid alternative_issue_number = "00/0000" # get the id list if issue_number[0] == "0": alternative_issue_number = issue_number[1:] all_records = list(search_pattern(p="%s and 773__n:%s" % (rule, issue_number), f="&action_search=Search")) all_records += list(search_pattern(p="%s and 773__n:%s" % (rule, alternative_issue_number), f="&action_search=Search")) else: all_records = list(search_pattern(p="%s and 773__n:%s" % (rule, issue_number), f="&action_search=Search")) #raise repr(all_records) ordered_records = {} new_addition_records = [] for record in all_records: temp_rec = BibFormatObject(record) # todo: refactor with get_fieldValues from search_engine issue_numbers = temp_rec.fields('773__n') order_number = temp_rec.fields('773__c') #raise "%s:%s" % (repr(issue_numbers), repr(order_number)) # todo: fields for issue number and order number have to become generic n = 0 for temp_issue in issue_numbers: if temp_issue == issue_number or temp_issue == alternative_issue_number: try: order_number = int(order_number[n]) except: register_exception(stream="warning", suffix="There \ was an article in the journal that does not support \ a numbering scheme") order_number = -1000 n+=1 if order_number == -1000: ordered_records[max(ordered_records.keys()) + 1] = record elif order_number <= 1: new_addition_records.append(record) else: try: ordered_records[order_number] = record except: register_exception(stream='warning', suffix="There \ were double entries for an order in this journal.") # process the CERN Bulletin specific new additions if len(new_addition_records) > 1 and int(order) <= 1: # if we are dealing with a new addition (order number smaller 1) ordered_new_additions = {} for record in new_addition_records: #upload_date = run_sql("SELECT modification_date FROM bibrec WHERE id=%s", (record, ))[0][0] upload_date = run_sql("SELECT creation_date FROM bibrec WHERE id=%s", (record, ))[0][0] ordered_new_additions[int(time.mktime(upload_date.timetuple()))] = record i = 1 while len(ordered_new_additions) > 0: temp_key = pop_oldest_article_CERNBulletin(ordered_new_additions) record = ordered_new_additions.pop(int(temp_key)) ordered_records[i] = record i -=1 else: # if we have only one record on 1 just push it through ordered_records[1] = new_addition_records[0] try: recid = ordered_records[int(order)] except: register_exception() cache_recid_data_dict_CERNBulletin(recid, issue_number, rule, order) return recid
|
95302ea88121546ed68c8b38bb6cd6cf4b324cd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/95302ea88121546ed68c8b38bb6cd6cf4b324cd0/webjournal_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3927,
350,
67,
2080,
67,
1019,
67,
39,
654,
20626,
19994,
267,
12,
1019,
16,
1720,
16,
5672,
67,
2696,
4672,
3536,
1967,
14176,
487,
336,
67,
3927,
350,
67,
2080,
67,
1019,
5721,
16,
1496,
3231,
518,
364,
326,
385,
654,
50,
605,
19994,
267,
316,
279,
4031,
1427,
3229,
3222,
364,
326,
1122,
7559,
854,
3323,
18,
225,
1472,
30,
1353,
30,
225,
326,
1353,
622,
1492,
326,
1409,
14606,
316,
326,
13001,
487,
2275,
316,
326,
880,
1720,
30,
282,
326,
9364,
1720,
434,
326,
13001,
1409,
3150,
5672,
67,
2696,
30,
282,
326,
5672,
1300,
364,
1492,
732,
854,
15300,
225,
1135,
30,
1950,
350,
30,
225,
326,
1950,
350,
434,
326,
5901,
1409,
3536,
468,
775,
358,
336,
518,
628,
1247,
1950,
350,
67,
1576,
273,
2618,
1950,
350,
67,
1576,
273,
336,
67,
7097,
67,
3927,
350,
67,
892,
67,
1576,
67,
39,
654,
20626,
19994,
267,
12,
13882,
67,
2696,
16,
1720,
13,
309,
1950,
350,
67,
1576,
18,
5332,
67,
856,
12,
1019,
4672,
1950,
350,
273,
1950,
350,
67,
1576,
63,
1019,
65,
327,
1950,
350,
10355,
67,
13882,
67,
2696,
273,
315,
713,
19,
2787,
6,
468,
336,
326,
612,
666,
309,
5672,
67,
2696,
63,
20,
65,
422,
315,
20,
6877,
10355,
67,
13882,
67,
2696,
273,
5672,
67,
2696,
63,
21,
26894,
777,
67,
7094,
273,
666,
12,
3072,
67,
4951,
12,
84,
11613,
87,
471,
2371,
9036,
972,
82,
5319,
87,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3927,
350,
67,
2080,
67,
1019,
67,
39,
654,
20626,
19994,
267,
12,
1019,
16,
1720,
16,
5672,
67,
2696,
4672,
3536,
1967,
14176,
487,
336,
67,
3927,
350,
67,
2080,
67,
1019,
5721,
16,
1496,
3231,
518,
364,
326,
385,
654,
50,
605,
19994,
267,
316,
279,
4031,
1427,
3229,
3222,
364,
326,
1122,
7559,
854,
3323,
18,
225,
1472,
30,
1353,
30,
225,
326,
1353,
622,
1492,
326,
1409,
14606,
316,
326,
13001,
487,
2275,
316,
326,
880,
1720,
30,
282,
326,
9364,
1720,
434,
326,
13001,
1409,
3150,
5672,
67,
2696,
30,
282,
326,
5672,
1300,
364,
1492,
732,
854,
15300,
225,
1135,
30,
1950,
350,
30,
225,
326,
1950,
350,
434,
326,
2
] |
contents = re.sub(r'goog.exportSymbol\([^\)]*\);\n', '', contents)
|
contents = re.sub(r'goog.exportSymbol\([^\)]*\);', '', contents)
|
def BuildCompiledO3DJS(o3djs_files, externs_path, o3d_externs_js_path, compiled_o3djs_outpath): Execute([ _java_exe, '-jar', MakePath('../../o3d-internal/jscomp/JSCompiler_deploy.jar'), '--property_renaming', 'OFF', '--variable_renaming', 'LOCAL', '--strict', '--externs=%s' % externs_path, ('--externs=%s' % o3d_externs_js_path), ('--js_output_file=%s' % compiled_o3djs_outpath)] + ['-js=%s' % (x, ) for x in o3djs_files]); # strip out goog.exportSymbol and move o3djs.require to end file = open(compiled_o3djs_outpath, 'r') contents = file.read() file.close() contents = re.sub(r'goog.exportSymbol\([^\)]*\);\n', '', contents) requires = set(re.findall(r'o3djs.require\([^\)]*\);', contents)) contents = re.sub(r'o3djs.require\([^\)]*\);', '', contents) file = open(compiled_o3djs_outpath, 'w') file.write(_js_copyright) file.write(contents) file.write('\n') file.write('\n'.join(requires)) file.close()
|
9320f85bc4fcdb342288821697d0e988d4d670ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/9320f85bc4fcdb342288821697d0e988d4d670ed/build_docs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
20733,
51,
23,
40,
6479,
12,
83,
23,
72,
2924,
67,
2354,
16,
18885,
87,
67,
803,
16,
320,
23,
72,
67,
338,
798,
87,
67,
2924,
67,
803,
16,
7743,
67,
83,
23,
72,
2924,
67,
659,
803,
4672,
7903,
3816,
389,
6290,
67,
14880,
16,
2400,
11930,
2187,
4344,
743,
2668,
16644,
83,
23,
72,
17,
7236,
19,
2924,
2919,
19,
6479,
9213,
67,
12411,
18,
11930,
19899,
3534,
4468,
67,
1187,
7772,
2187,
296,
8797,
2187,
3534,
6105,
67,
1187,
7772,
2187,
296,
14922,
2187,
3534,
13948,
2187,
3534,
338,
798,
87,
5095,
87,
11,
738,
18885,
87,
67,
803,
16,
7707,
413,
338,
798,
87,
5095,
87,
11,
738,
320,
23,
72,
67,
338,
798,
87,
67,
2924,
67,
803,
3631,
7707,
413,
2924,
67,
2844,
67,
768,
5095,
87,
11,
738,
7743,
67,
83,
23,
72,
2924,
67,
659,
803,
25887,
397,
10228,
17,
2924,
5095,
87,
11,
738,
261,
92,
16,
262,
364,
619,
316,
320,
23,
72,
2924,
67,
2354,
19226,
225,
468,
2569,
596,
24759,
18,
6530,
5335,
471,
3635,
320,
23,
72,
2924,
18,
6528,
358,
679,
585,
273,
1696,
12,
19397,
67,
83,
23,
72,
2924,
67,
659,
803,
16,
296,
86,
6134,
2939,
273,
585,
18,
896,
1435,
585,
18,
4412,
1435,
2939,
273,
283,
18,
1717,
12,
86,
11,
3240,
717,
18,
6530,
5335,
64,
19042,
13,
27759,
1769,
2187,
10226,
2939,
13,
4991,
273,
444,
12,
266,
18,
4720,
454,
12,
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,
3998,
20733,
51,
23,
40,
6479,
12,
83,
23,
72,
2924,
67,
2354,
16,
18885,
87,
67,
803,
16,
320,
23,
72,
67,
338,
798,
87,
67,
2924,
67,
803,
16,
7743,
67,
83,
23,
72,
2924,
67,
659,
803,
4672,
7903,
3816,
389,
6290,
67,
14880,
16,
2400,
11930,
2187,
4344,
743,
2668,
16644,
83,
23,
72,
17,
7236,
19,
2924,
2919,
19,
6479,
9213,
67,
12411,
18,
11930,
19899,
3534,
4468,
67,
1187,
7772,
2187,
296,
8797,
2187,
3534,
6105,
67,
1187,
7772,
2187,
296,
14922,
2187,
3534,
13948,
2187,
3534,
338,
798,
87,
5095,
87,
11,
738,
18885,
87,
67,
803,
16,
7707,
413,
338,
798,
87,
5095,
87,
11,
738,
320,
23,
72,
67,
2
] |
(options, args) = parser.parse_args()
|
image.disable_undo() gimp.context_push()
|
def main(): parser = OptionParser() defaultThemeDir = os.path.normpath(os.path.join(os.getcwd(), "..", "theme")) parser.add_option("--theme-directory", dest="themedir", default=defaultThemeDir) (options, args) = parser.parse_args() smallSave = os.path.join(options.themedir, "default", "images") wideSave = os.path.join(options.themedir, "default-wide", "images") try: checkdirs = [ options.themedir, smallSave, wideSave ] for dir in checkdirs: if not (os.path.exists(dir) and os.path.isdir(dir)): raise DirError(dir) except DirError, e: print(e.name) print("Error: missing theme directory \"%s\"" % (str(e),)) sys.exit(1) images = [ { "name" : ("MythVideo-SearchSelect", "mv_results_popup.png"), "Small" : (387, 400), "Wide" : (592, 400), }, { "name" : ("MythVideo-ItemDetailPopup", "mv_itemdetail_popup.png"), "Small" : (720, 540), # 800x600 - 10% "Wide" : (1152, 648), # 1280x720 - 10% }, ] savepath = { "Small" : smallSave, "Wide" : wideSave, } for image in images: for size in [ "Small", "Wide" ]: name = "%s-%s" % (image['name'][0], size) xcfname = os.path.join(os.getcwd(), name) pngname = os.path.join(savepath[size], image['name'][1]) GIMPCreateDialog(xcfname, pngname, image[size][0], image[size][1])
|
e2c03d1fd04dc50dc4ad9ec4c41799301ff80998 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/e2c03d1fd04dc50dc4ad9ec4c41799301ff80998/mythvideofu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
1435,
805,
8335,
1621,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
315,
838,
3113,
315,
7997,
6,
3719,
2082,
18,
1289,
67,
3482,
2932,
413,
7997,
17,
5149,
3113,
1570,
1546,
451,
351,
23210,
3113,
805,
33,
1886,
8335,
1621,
13,
225,
1316,
18,
8394,
67,
31226,
1435,
314,
14532,
18,
2472,
67,
6206,
1435,
225,
5264,
4755,
273,
1140,
18,
803,
18,
5701,
12,
2116,
18,
451,
351,
23210,
16,
315,
1886,
3113,
315,
7369,
7923,
14812,
4755,
273,
1140,
18,
803,
18,
5701,
12,
2116,
18,
451,
351,
23210,
16,
315,
1886,
17,
26767,
3113,
315,
7369,
7923,
775,
30,
866,
8291,
273,
306,
702,
18,
451,
351,
23210,
16,
5264,
4755,
16,
14812,
4755,
308,
225,
364,
1577,
316,
866,
8291,
30,
309,
486,
261,
538,
18,
803,
18,
1808,
12,
1214,
13,
471,
1140,
18,
803,
18,
291,
1214,
12,
1214,
3719,
30,
1002,
8446,
668,
12,
1214,
13,
1335,
8446,
668,
16,
425,
30,
1172,
12,
73,
18,
529,
13,
1172,
2932,
668,
30,
3315,
5006,
1867,
22049,
87,
8530,
738,
261,
701,
12,
73,
3631,
3719,
2589,
18,
8593,
12,
21,
13,
225,
4602,
273,
306,
288,
315,
529,
6,
294,
7566,
12062,
451,
10083,
17,
2979,
3391,
3113,
315,
17509,
67,
4717,
67,
16086,
18,
6446,
6,
3631,
315,
19187,
6,
294,
261,
7414,
27,
16,
7409,
3631,
315,
11075,
6,
294,
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,
2082,
273,
18862,
1435,
805,
8335,
1621,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
315,
838,
3113,
315,
7997,
6,
3719,
2082,
18,
1289,
67,
3482,
2932,
413,
7997,
17,
5149,
3113,
1570,
1546,
451,
351,
23210,
3113,
805,
33,
1886,
8335,
1621,
13,
225,
1316,
18,
8394,
67,
31226,
1435,
314,
14532,
18,
2472,
67,
6206,
1435,
225,
5264,
4755,
273,
1140,
18,
803,
18,
5701,
12,
2116,
18,
451,
351,
23210,
16,
315,
1886,
3113,
315,
7369,
7923,
14812,
4755,
273,
1140,
18,
803,
18,
5701,
12,
2116,
18,
451,
351,
23210,
16,
315,
1886,
17,
26767,
3113,
315,
7369,
7923,
775,
2
] |
nParts = self._readAndUnpack(self.__SIGNED_INT, fp.read(4)) nPoints = self._readAndUnpack(self.__SIGNED_INT, fp.read(4)) if self._readAndUnpack(self.__SIGNED_INT, fp.read(4)) != 0: raise ValueError('ERROR: First part offset must be 0') counts = [] prev = 0 for i in xrange(nParts - 1): nextItem = self._readAndUnpack(self.__SIGNED_INT, fp.read(4)) counts.append(nextItem - prev) prev = nextItem counts.append(nPoints - prev)
|
nParts = self._readAndUnpack(self.__LE_SINT, fp.read(4)) nPoints = self._readAndUnpack(self.__LE_SINT, fp.read(4)) offsetParts = [] prevRec = 0 for idx in xrange(nParts): offsetParts.append(self._readAndUnpack(self.__LE_SINT, fp.read(4))) size = len(offsetParts) for i in xrange(size): offset = offsetParts[i] if i < (size - 1): offsetParts[i] = offsetParts[i + 1] - offset nPoints -= offsetParts[i] else: offsetParts[i] = nPoints
|
def _readRecordPolyLine(self, fp): shape = {'bounds': self._readBounds(fp)} nParts = self._readAndUnpack(self.__SIGNED_INT, fp.read(4)) nPoints = self._readAndUnpack(self.__SIGNED_INT, fp.read(4))
|
2abd3eddcba3d6741d32d051c14cabc4c6006a50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1821/2abd3eddcba3d6741d32d051c14cabc4c6006a50/shapefile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2115,
12487,
1670,
12,
2890,
16,
4253,
4672,
2179,
273,
13666,
10576,
4278,
365,
6315,
896,
5694,
12,
7944,
16869,
290,
4305,
273,
365,
6315,
896,
1876,
23649,
12,
2890,
16186,
21049,
67,
3217,
16,
4253,
18,
896,
12,
24,
3719,
290,
5636,
273,
365,
6315,
896,
1876,
23649,
12,
2890,
16186,
21049,
67,
3217,
16,
4253,
18,
896,
12,
24,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
896,
2115,
12487,
1670,
12,
2890,
16,
4253,
4672,
2179,
273,
13666,
10576,
4278,
365,
6315,
896,
5694,
12,
7944,
16869,
290,
4305,
273,
365,
6315,
896,
1876,
23649,
12,
2890,
16186,
21049,
67,
3217,
16,
4253,
18,
896,
12,
24,
3719,
290,
5636,
273,
365,
6315,
896,
1876,
23649,
12,
2890,
16186,
21049,
67,
3217,
16,
4253,
18,
896,
12,
24,
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
] |
p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) divsig = p.system.methodSignature('div') self.assertEqual(divsig, 'signatures not supported')
|
try: p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) divsig = p.system.methodSignature('div') self.assertEqual(divsig, 'signatures not supported') except xmlrpclib.ProtocolError, e: self.fail("%s\n%s" % (e, e.headers))
|
def test_introspection3(self): # the SimpleXMLRPCServer doesn't support signatures, but # at least check that we can try p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) divsig = p.system.methodSignature('div') self.assertEqual(divsig, 'signatures not supported')
|
095843808f6940bbcdf850b6544a8efc02ed14d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/095843808f6940bbcdf850b6544a8efc02ed14d6/test_xmlrpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
474,
26362,
23,
12,
2890,
4672,
468,
326,
4477,
4201,
8087,
2081,
3302,
1404,
2865,
14862,
16,
1496,
468,
622,
4520,
866,
716,
732,
848,
775,
293,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
2668,
2505,
2207,
13014,
5319,
72,
11,
738,
20987,
13,
3739,
7340,
273,
293,
18,
4299,
18,
2039,
5374,
2668,
2892,
6134,
365,
18,
11231,
5812,
12,
2892,
7340,
16,
296,
30730,
486,
3260,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
474,
26362,
23,
12,
2890,
4672,
468,
326,
4477,
4201,
8087,
2081,
3302,
1404,
2865,
14862,
16,
1496,
468,
622,
4520,
866,
716,
732,
848,
775,
293,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
2668,
2505,
2207,
13014,
5319,
72,
11,
738,
20987,
13,
3739,
7340,
273,
293,
18,
4299,
18,
2039,
5374,
2668,
2892,
6134,
365,
18,
11231,
5812,
12,
2892,
7340,
16,
296,
30730,
486,
3260,
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
] |
self.appendMessages(lines, keyedMessages[header], label) lines.append("""<tr><td></td><td></td><td align='center'> <br>
|
self.appendMessages(lines, keyedMessages[header], label, startAt, howMany) lines.append("""<tr><td></td><td></td><td align='center' colspan='4'> <br>
|
def onReview(self, params): """Present a list of message for (re)training.""" # Train/discard submitted messages. id = '' numTrained = 0 numDeferred = 0 for key, value in params.items(): if key.startswith('classify:'): id = key.split(':')[2] if value == 'spam': targetCorpus = state.spamCorpus elif value == 'ham': targetCorpus = state.hamCorpus elif value == 'discard': targetCorpus = None try: state.unknownCorpus.removeMessage(state.unknownCorpus[id]) except KeyError: pass # Must be a reload. else: # defer targetCorpus = None numDeferred += 1 if targetCorpus: try: targetCorpus.takeMessage(id, state.unknownCorpus) if numTrained == 0: self.push("<p><b>Training... ") self.push(" ") numTrained += 1 except KeyError: pass # Must be a reload.
|
d319917072174781f46b53caa571a8bdd023d80f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/d319917072174781f46b53caa571a8bdd023d80f/proxytrainer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
9159,
12,
2890,
16,
859,
4672,
3536,
6351,
279,
666,
434,
883,
364,
261,
266,
13,
17584,
12123,
468,
2197,
267,
19,
31992,
9638,
2743,
18,
612,
273,
875,
818,
1609,
1920,
273,
374,
818,
16886,
273,
374,
364,
498,
16,
460,
316,
859,
18,
3319,
13332,
309,
498,
18,
17514,
1918,
2668,
1106,
1164,
2497,
4672,
612,
273,
498,
18,
4939,
2668,
2497,
25146,
22,
65,
309,
460,
422,
296,
1752,
301,
4278,
1018,
6217,
9861,
273,
919,
18,
1752,
301,
6217,
9861,
1327,
460,
422,
296,
31698,
4278,
1018,
6217,
9861,
273,
919,
18,
31698,
6217,
9861,
1327,
460,
422,
296,
31992,
4278,
1018,
6217,
9861,
273,
599,
775,
30,
919,
18,
8172,
6217,
9861,
18,
4479,
1079,
12,
2019,
18,
8172,
6217,
9861,
63,
350,
5717,
1335,
4999,
30,
1342,
225,
468,
6753,
506,
279,
7749,
18,
469,
30,
468,
2220,
1018,
6217,
9861,
273,
599,
818,
16886,
1011,
404,
309,
1018,
6217,
9861,
30,
775,
30,
1018,
6217,
9861,
18,
22188,
1079,
12,
350,
16,
919,
18,
8172,
6217,
9861,
13,
309,
818,
1609,
1920,
422,
374,
30,
365,
18,
6206,
2932,
32,
84,
4438,
70,
34,
14527,
2777,
9369,
365,
18,
6206,
2932,
9369,
818,
1609,
1920,
1011,
404,
1335,
4999,
30,
1342,
225,
468,
6753,
506,
279,
7749,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
9159,
12,
2890,
16,
859,
4672,
3536,
6351,
279,
666,
434,
883,
364,
261,
266,
13,
17584,
12123,
468,
2197,
267,
19,
31992,
9638,
2743,
18,
612,
273,
875,
818,
1609,
1920,
273,
374,
818,
16886,
273,
374,
364,
498,
16,
460,
316,
859,
18,
3319,
13332,
309,
498,
18,
17514,
1918,
2668,
1106,
1164,
2497,
4672,
612,
273,
498,
18,
4939,
2668,
2497,
25146,
22,
65,
309,
460,
422,
296,
1752,
301,
4278,
1018,
6217,
9861,
273,
919,
18,
1752,
301,
6217,
9861,
1327,
460,
422,
296,
31698,
4278,
1018,
6217,
9861,
273,
919,
18,
31698,
6217,
9861,
1327,
460,
422,
296,
31992,
4278,
1018,
6217,
9861,
273,
599,
775,
30,
919,
18,
8172,
6217,
9861,
2
] |
contextHandlers = getattr(self, "contextHandlers", {}) for contextHandler in contextHandlers.values(): contextHandler.mergeBack(self) settings[contextHandler.localContextName] = contextHandler.globalContexts settings[contextHandler.localContextName+"Version"] = (contextStructureVersion, contextHandler.contextDataVersion)
|
def saveSettings(self, file = None): settings = self.getSettings()
|
c073ee3c75c0e0884437921ffc37e0d94b41cb79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/c073ee3c75c0e0884437921ffc37e0d94b41cb79/OWBaseWidget.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2628,
12,
2890,
16,
585,
273,
599,
4672,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2628,
12,
2890,
16,
585,
273,
599,
4672,
1947,
273,
365,
18,
588,
2628,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
try: if isinstance(self.socket, ssl.SSLSocket): if self.socket._sslobj is not None: self.socket.unwrap() finally: super(SSLConnection, self).close()
|
if (isinstance(self.socket, ssl.SSLSocket) and self.socket._sslobj is not None): self._do_ssl_shutdown()
|
def close(self): try: if isinstance(self.socket, ssl.SSLSocket): if self.socket._sslobj is not None: self.socket.unwrap() finally: super(SSLConnection, self).close()
|
1ad61af58377105e51758ab67f7315199e5d6064 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/1ad61af58377105e51758ab67f7315199e5d6064/test_ftplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
775,
30,
309,
1549,
12,
2890,
18,
7814,
16,
5832,
18,
1260,
25831,
4672,
309,
365,
18,
7814,
6315,
1049,
383,
441,
353,
486,
599,
30,
365,
18,
7814,
18,
318,
4113,
1435,
3095,
30,
2240,
12,
6745,
1952,
16,
365,
2934,
4412,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
775,
30,
309,
1549,
12,
2890,
18,
7814,
16,
5832,
18,
1260,
25831,
4672,
309,
365,
18,
7814,
6315,
1049,
383,
441,
353,
486,
599,
30,
365,
18,
7814,
18,
318,
4113,
1435,
3095,
30,
2240,
12,
6745,
1952,
16,
365,
2934,
4412,
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
] |
self.cache = []
|
self.input_cache = [] self.output_cache = []
|
def __init__(self, *args): pipeline.LigolwAddNode.__init__(self, *args) self.cache = []
|
a6f51cd0e257501ea4f0864483cd73ad05576b37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/a6f51cd0e257501ea4f0864483cd73ad05576b37/power.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
5873,
18,
48,
360,
355,
91,
986,
907,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
18,
2493,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
907,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
18,
2493,
273,
5378,
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
] |
rfs.close()
|
rfs.close(ctx)
|
def close(self, current = None):
|
ef5c48ac90cceda2e205d0636e0cbe67a972e6fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/ef5c48ac90cceda2e205d0636e0cbe67a972e6fb/tables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
783,
273,
599,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
783,
273,
599,
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
] |
return '<a href="%s"%s>%s</a>' % (url, css, label)
|
onclick = '' if ((isinstance(target, VariableDoc) and not target.is_public) or (isinstance(target, ValueDoc) and not isinstance(target, GenericValueDoc) and not self._val_is_public(target))): onclick = ' onclick="show_private();"' return '<a href="%s"%s%s>%s</a>' % (url, css, onclick, label)
|
def href(self, target, label=None, css_class=None, context=None): """ Return the HTML code for an HREF link to the given target (which can be a C{VariableDoc}, a C{ValueDoc}, or a C{DottedName}. If a C{NamespaceDoc} C{context} is specified, the target label is contextualized to it. """ assert isinstance(target, (APIDoc, DottedName))
|
dffa60555a5bb4f2cca0528fb11658f3760be525 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/dffa60555a5bb4f2cca0528fb11658f3760be525/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3897,
12,
2890,
16,
1018,
16,
1433,
33,
7036,
16,
3747,
67,
1106,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
2000,
326,
3982,
981,
364,
392,
670,
10771,
1692,
358,
326,
864,
1018,
261,
12784,
848,
506,
279,
385,
95,
3092,
1759,
5779,
279,
385,
95,
620,
1759,
5779,
578,
279,
385,
95,
10412,
2344,
461,
5496,
971,
279,
385,
95,
3402,
1759,
97,
385,
95,
2472,
97,
353,
1269,
16,
326,
1018,
1433,
353,
22724,
1235,
358,
518,
18,
3536,
1815,
1549,
12,
3299,
16,
261,
2203,
734,
504,
16,
17502,
2344,
461,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3897,
12,
2890,
16,
1018,
16,
1433,
33,
7036,
16,
3747,
67,
1106,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
2000,
326,
3982,
981,
364,
392,
670,
10771,
1692,
358,
326,
864,
1018,
261,
12784,
848,
506,
279,
385,
95,
3092,
1759,
5779,
279,
385,
95,
620,
1759,
5779,
578,
279,
385,
95,
10412,
2344,
461,
5496,
971,
279,
385,
95,
3402,
1759,
97,
385,
95,
2472,
97,
353,
1269,
16,
326,
1018,
1433,
353,
22724,
1235,
358,
518,
18,
3536,
1815,
1549,
12,
3299,
16,
261,
2203,
734,
504,
16,
17502,
2344,
461,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def get_entry(self, id): """ Returns a single entry if it can identify a model from the regex dict url_parts. """ model = self.queryset.get(**{self.queryset.model._meta.pk.name : id})
|
def get_entry(self, pk_value): """ Returns a single entry retrieved by filtering the collection queryset by primary key value. """ model = self.queryset.get(**{self.queryset.model._meta.pk.name : pk_value})
|
def get_entry(self, id): """ Returns a single entry if it can identify a model from the regex dict url_parts. """ model = self.queryset.get(**{self.queryset.model._meta.pk.name : id}) entry = self.entry_class(self, model) return entry
|
fbb9a95bc9ec8149401056b76f5ffa5076eb7beb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12520/fbb9a95bc9ec8149401056b76f5ffa5076eb7beb/model_resource.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4099,
12,
2890,
16,
2365,
67,
1132,
4672,
3536,
2860,
279,
2202,
1241,
10295,
635,
11346,
326,
1849,
11892,
635,
3354,
498,
460,
18,
3536,
938,
273,
365,
18,
21729,
18,
588,
12,
636,
95,
2890,
18,
21729,
18,
2284,
6315,
3901,
18,
5465,
18,
529,
294,
2365,
67,
1132,
6792,
1241,
273,
365,
18,
4099,
67,
1106,
12,
2890,
16,
938,
13,
327,
1241,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4099,
12,
2890,
16,
2365,
67,
1132,
4672,
3536,
2860,
279,
2202,
1241,
10295,
635,
11346,
326,
1849,
11892,
635,
3354,
498,
460,
18,
3536,
938,
273,
365,
18,
21729,
18,
588,
12,
636,
95,
2890,
18,
21729,
18,
2284,
6315,
3901,
18,
5465,
18,
529,
294,
2365,
67,
1132,
6792,
1241,
273,
365,
18,
4099,
67,
1106,
12,
2890,
16,
938,
13,
327,
1241,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
If at1 == at2, this is an error; print a warning and do nothing.
|
If a1 == a2, this is an error; print a warning and do nothing.
|
def bond_atoms_oldversion(at1,at2): #bruce 050502 renamed this from bond_atoms; it's called from the newer version of bond_atoms """Make a new bond between atoms at1 and at2 (and add it to their lists of bonds), if they are not already bonded; if they are already bonded do nothing. Return None. (The new bond object, if one is made, can't be found except by scanning the bonds of one of the atoms.) If at1 == at2, this is an error; print a warning and do nothing. This increases the number of bonds on each atom (when it makes a new bond) -- it never removes any singlets. Therefore it is mostly for low-level use. It could be called directly, but is usually called via the method molecule.bond, purely for historical reasons. """ # bruce 041109 split this out of molecule.bond. Since it's the only caller of # Bond.__init__, what it does to the atoms could (and probably should) be put # inside the constructor. However, it should not simply be replaced with calls # to the constructor, in case we someday want it to return the bond which it # either makes (as the constructor does) or doesn't make (when the atoms are # already bonded). The test for a prior bond makes more sense outside of the # Bond constructor. if at1 is at2: #bruce 041119, partial response to bug #203 print "BUG: bond_atoms was asked to bond %r to itself." % at1 print "Doing nothing (but further bugs may be caused by this)." print_compact_stack("stack when same-atom bond attempted: ") return b = Bond(at1,at2) # (this does all necessary invals) #bruce 041029 precautionary change -- I find in debugging that the bond # can be already in one but not the other of at1.bonds and at2.bonds, # as a result of prior bugs. To avoid worsening those bugs, we should # change this... but for now I'll just print a message about it. #bruce 041109: when this happens I'll now also remove the obsolete bond. if (b in at1.bonds) != (b in at2.bonds): print "fyi: debug: for new bond %r, (b in at1.bonds) != (b in at2.bonds); removing old bond" % b try: at1.bonds.remove(b) except: pass try: at2.bonds.remove(b) except: pass if not b in at2.bonds: at1.bonds += [b] at2.bonds += [b] else: # [bruce comment 041115: I don't know if this ever happens, # or if it's a good idea for it to be allowed, but it is allowed. # #e should it inval the old bond? I think so, but didn't add that. # later: it happens a lot when entering Extrude; guess: mol.copy copies # each internal bond twice (sounds right, but I did not verify this).] # # [addendum, bruce 051018: I added a message for when a new bond is equal to # an existing one, but entering Extrude does not print that, so either it's # been changed or mol.copy has or I misunderstand the above code (which # I predict would hit that message). Just to check, I'll print a debug message here (below); # that message is not happening either, so maybe this deprecated feature is no longer used at all. #k ####@@@@ # (Should also try reading a pdb file with the same bond listed twice... ###k) if platform.atom_debug: print "atom_debug: fyi (possible bug): bond_atoms_oldversion is a noop since an equal bond exists:", b pass return
|
5b1c4a788181169d53459e035454c6285af3fb7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5b1c4a788181169d53459e035454c6285af3fb7c/bonds.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8427,
67,
14937,
67,
1673,
1589,
12,
270,
21,
16,
270,
22,
4672,
468,
2848,
3965,
374,
3361,
25,
3103,
17657,
333,
628,
8427,
67,
14937,
31,
518,
1807,
2566,
628,
326,
16069,
1177,
434,
8427,
67,
14937,
3536,
6464,
279,
394,
8427,
3086,
9006,
622,
21,
471,
622,
22,
261,
464,
527,
518,
358,
3675,
6035,
434,
15692,
3631,
309,
2898,
854,
486,
1818,
324,
265,
785,
31,
309,
2898,
854,
1818,
324,
265,
785,
741,
5083,
18,
2000,
599,
18,
261,
1986,
394,
8427,
733,
16,
309,
1245,
353,
7165,
16,
848,
1404,
506,
1392,
1335,
635,
21138,
326,
15692,
434,
1245,
434,
326,
9006,
12998,
971,
279,
21,
422,
279,
22,
16,
333,
353,
392,
555,
31,
1172,
279,
3436,
471,
741,
5083,
18,
1220,
7033,
3304,
326,
1300,
434,
15692,
603,
1517,
3179,
261,
13723,
518,
7297,
279,
394,
8427,
13,
1493,
518,
5903,
7157,
1281,
4864,
17307,
18,
17189,
518,
353,
23958,
364,
4587,
17,
2815,
999,
18,
2597,
3377,
506,
2566,
5122,
16,
1496,
353,
11234,
2566,
3970,
326,
707,
13661,
18,
26425,
16,
16618,
715,
364,
23922,
14000,
18,
3536,
468,
5186,
3965,
374,
9803,
22267,
1416,
333,
596,
434,
13661,
18,
26425,
18,
7897,
518,
1807,
326,
1338,
4894,
434,
468,
605,
1434,
16186,
2738,
972,
16,
4121,
518,
1552,
358,
326,
9006,
3377,
261,
464,
8656,
1410,
13,
506,
1378,
468,
4832,
326,
3885,
18,
10724,
16,
518,
1410,
486,
8616,
506,
8089,
598,
4097,
468,
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,
8427,
67,
14937,
67,
1673,
1589,
12,
270,
21,
16,
270,
22,
4672,
468,
2848,
3965,
374,
3361,
25,
3103,
17657,
333,
628,
8427,
67,
14937,
31,
518,
1807,
2566,
628,
326,
16069,
1177,
434,
8427,
67,
14937,
3536,
6464,
279,
394,
8427,
3086,
9006,
622,
21,
471,
622,
22,
261,
464,
527,
518,
358,
3675,
6035,
434,
15692,
3631,
309,
2898,
854,
486,
1818,
324,
265,
785,
31,
309,
2898,
854,
1818,
324,
265,
785,
741,
5083,
18,
2000,
599,
18,
261,
1986,
394,
8427,
733,
16,
309,
1245,
353,
7165,
16,
848,
1404,
506,
1392,
1335,
635,
21138,
326,
15692,
434,
1245,
434,
326,
9006,
12998,
971,
279,
21,
422,
279,
22,
16,
333,
353,
392,
2
] |
if hasattr(self, 'pkgobjlist'):
|
if hasattr(self, 'pkgobjlist') and not self._pkgobjlist_dirty:
|
def __len__(self): # First check if everything is excluded all_excluded = True for (repo, cache) in self.primarydb.items(): if repo not in self._all_excludes: all_excluded = False break if all_excluded: return 0 exclude_num = 0 for repo in self.excludes: exclude_num += len(self.excludes[repo]) if hasattr(self, 'pkgobjlist'): return len(self.pkgobjlist) - exclude_num pkg_num = 0 sql = "SELECT count(pkgId) FROM packages" for repo in self.primarydb: pkg_num += self._sql_MD_pkg_num('primary', repo) return pkg_num - exclude_num
|
434679afead379a530d209af2bf3439d6c5ed0ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/434679afead379a530d209af2bf3439d6c5ed0ac/sqlitesack.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
468,
5783,
866,
309,
7756,
353,
8845,
777,
67,
24602,
273,
1053,
364,
261,
7422,
16,
1247,
13,
316,
365,
18,
8258,
1966,
18,
3319,
13332,
309,
3538,
486,
316,
365,
6315,
454,
67,
338,
8993,
30,
777,
67,
24602,
273,
1083,
898,
309,
777,
67,
24602,
30,
327,
374,
225,
4433,
67,
2107,
273,
374,
364,
3538,
316,
365,
18,
338,
8993,
30,
4433,
67,
2107,
1011,
562,
12,
2890,
18,
338,
8993,
63,
7422,
5717,
309,
3859,
12,
2890,
16,
296,
10657,
2603,
1098,
6134,
471,
486,
365,
6315,
10657,
2603,
1098,
67,
18013,
30,
327,
562,
12,
2890,
18,
10657,
2603,
1098,
13,
300,
4433,
67,
2107,
225,
3475,
67,
2107,
273,
374,
1847,
273,
315,
4803,
1056,
12,
10657,
548,
13,
4571,
5907,
6,
364,
3538,
316,
365,
18,
8258,
1966,
30,
3475,
67,
2107,
1011,
365,
6315,
4669,
67,
6188,
67,
10657,
67,
2107,
2668,
8258,
2187,
3538,
13,
327,
3475,
67,
2107,
300,
4433,
67,
2107,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
468,
5783,
866,
309,
7756,
353,
8845,
777,
67,
24602,
273,
1053,
364,
261,
7422,
16,
1247,
13,
316,
365,
18,
8258,
1966,
18,
3319,
13332,
309,
3538,
486,
316,
365,
6315,
454,
67,
338,
8993,
30,
777,
67,
24602,
273,
1083,
898,
309,
777,
67,
24602,
30,
327,
374,
225,
4433,
67,
2107,
273,
374,
364,
3538,
316,
365,
18,
338,
8993,
30,
4433,
67,
2107,
1011,
562,
12,
2890,
18,
338,
8993,
63,
7422,
5717,
309,
3859,
12,
2890,
16,
296,
10657,
2603,
1098,
6134,
471,
486,
365,
6315,
10657,
2603,
1098,
67,
18013,
30,
327,
562,
12,
2890,
18,
10657,
2603,
1098,
13,
300,
4433,
67,
2107,
225,
3475,
2
] |
lat_min=lat_min, lat_max=lat_max, lon_min=lon_max, lon_max=180.,
|
lat_min=lat_min, lat_max=lat_max, lon_min=lon_min, lon_max=180.,
|
def search_geo_clusters(self, meta_types=None, lat_min=None, lat_max=None, lon_min=None, lon_max=None, zoom_level=None, path='', geo_types=None, query='', approved=True, lat_center=None, lon_center=None, landscape_type=[], administrative_level=[], languages=None): """ Returns all the clusters that match the specified criteria. """ if zoom_level is None: zoom_level = 0 if lat_min is None or lat_min == '': lat_min = -90. if lat_max is None or lat_max == '': lat_max = 90. if lon_min is None or lon_min == '': lon_min = -180. if lon_max is None or lon_max == '': lon_max = 180. if lat_center is None or lat_center == '': lat_center = 0. if lon_center is None or lon_center == '': lon_center = 0. zoom_level = int(zoom_level) lat_min, lat_max = float(lat_min), float(lat_max) lon_min, lon_max = float(lon_min), float(lon_max) lat_center, lon_center = float(lat_center), float(lon_center)
|
02aa5efb4054ae6ee0d7425f004d619f77e60f16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/02aa5efb4054ae6ee0d7425f004d619f77e60f16/GeoMapTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
12376,
67,
16806,
12,
2890,
16,
2191,
67,
2352,
33,
7036,
16,
2516,
67,
1154,
33,
7036,
16,
2516,
67,
1896,
33,
7036,
16,
4281,
67,
1154,
33,
7036,
16,
4281,
67,
1896,
33,
7036,
16,
7182,
67,
2815,
33,
7036,
16,
589,
2218,
2187,
7856,
67,
2352,
33,
7036,
16,
843,
2218,
2187,
20412,
33,
5510,
16,
2516,
67,
5693,
33,
7036,
16,
4281,
67,
5693,
33,
7036,
16,
19193,
12476,
67,
723,
22850,
6487,
30162,
1535,
67,
2815,
22850,
6487,
8191,
33,
7036,
4672,
3536,
2860,
777,
326,
9566,
716,
845,
326,
1269,
3582,
18,
3536,
309,
7182,
67,
2815,
353,
599,
30,
7182,
67,
2815,
273,
374,
309,
2516,
67,
1154,
353,
599,
578,
2516,
67,
1154,
422,
875,
30,
2516,
67,
1154,
273,
300,
9349,
18,
309,
2516,
67,
1896,
353,
599,
578,
2516,
67,
1896,
422,
875,
30,
2516,
67,
1896,
273,
8566,
18,
309,
4281,
67,
1154,
353,
599,
578,
4281,
67,
1154,
422,
875,
30,
4281,
67,
1154,
273,
300,
18278,
18,
309,
4281,
67,
1896,
353,
599,
578,
4281,
67,
1896,
422,
875,
30,
4281,
67,
1896,
273,
9259,
18,
309,
2516,
67,
5693,
353,
599,
578,
2516,
67,
5693,
422,
875,
30,
2516,
67,
5693,
273,
374,
18,
309,
4281,
67,
5693,
353,
599,
578,
4281,
67,
5693,
422,
875,
30,
4281,
67,
5693,
273,
374,
18,
7182,
67,
2815,
273,
509,
12,
14932,
67,
2815,
13,
2516,
67,
1154,
16,
2516,
67,
1896,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
12376,
67,
16806,
12,
2890,
16,
2191,
67,
2352,
33,
7036,
16,
2516,
67,
1154,
33,
7036,
16,
2516,
67,
1896,
33,
7036,
16,
4281,
67,
1154,
33,
7036,
16,
4281,
67,
1896,
33,
7036,
16,
7182,
67,
2815,
33,
7036,
16,
589,
2218,
2187,
7856,
67,
2352,
33,
7036,
16,
843,
2218,
2187,
20412,
33,
5510,
16,
2516,
67,
5693,
33,
7036,
16,
4281,
67,
5693,
33,
7036,
16,
19193,
12476,
67,
723,
22850,
6487,
30162,
1535,
67,
2815,
22850,
6487,
8191,
33,
7036,
4672,
3536,
2860,
777,
326,
9566,
716,
845,
326,
1269,
3582,
18,
3536,
309,
7182,
67,
2815,
353,
599,
30,
7182,
67,
2815,
273,
374,
309,
2516,
67,
1154,
353,
599,
2
] |
globals().update( locals() ) self.log.writeln('local namespace is pushed into global ')
|
globals().update( locals() ) self.log.writeln('local namespace is pushed into global ')
|
def remoteBlast( self, seqFile, db, method, e=0.01, **kw ): """ Perform a remote BLAST search using the QBLAST server at NCBI. Uses Bio.Blast.NCBIWWW.qblast (Biopython) for the search @param seqFile: file name with search sequence as FASTA @type seqFile: str @param db: database(s) to search in, e.g. ['swissprot', 'pdb'] @type db: [str] @param method: search method, e.g. 'blastp', 'fasta' @type method: str @param e: expectation value cutoff @type e: float @param kw: optional keywords:: program BLASTP, BLASTN, BLASTX, TBLASTN, or TBLASTX. database Which database to search against. sequence The sequence to search. ncbi_gi TRUE/FALSE whether to give 'gi' identifier. (default: FALSE) descriptions Number of descriptions to show. Def 500. alignments Number of alignments to show. Def 500. expect An expect value cutoff. Def 10.0. matrix Specify an alt. matrix (PAM30, PAM70, BLOSUM80, BLOSUM45). filter 'none' turns off filtering. Default uses 'seg' or 'dust'. format_type 'HTML', 'Text', 'ASN.1', or 'XML'. Def. 'HTML @type kw: any
|
192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9/SequenceSearcher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
38,
2722,
12,
365,
16,
3833,
812,
16,
1319,
16,
707,
16,
425,
33,
20,
18,
1611,
16,
2826,
9987,
262,
30,
3536,
11217,
279,
2632,
605,
14378,
1623,
1450,
326,
2238,
38,
14378,
1438,
622,
423,
8876,
45,
18,
14854,
21209,
18,
38,
2722,
18,
50,
8876,
45,
19989,
59,
18,
85,
30901,
261,
18808,
1101,
3041,
13,
364,
326,
1623,
225,
632,
891,
3833,
812,
30,
585,
508,
598,
1623,
3102,
487,
24239,
37,
632,
723,
225,
3833,
812,
30,
609,
632,
891,
1319,
30,
2063,
12,
87,
13,
358,
1623,
316,
16,
425,
18,
75,
18,
10228,
5328,
1054,
11815,
2187,
296,
17414,
3546,
632,
723,
225,
1319,
30,
306,
701,
65,
632,
891,
707,
30,
1623,
707,
16,
425,
18,
75,
18,
296,
30901,
84,
2187,
296,
13294,
11,
632,
723,
225,
707,
30,
609,
632,
891,
425,
30,
17733,
460,
13383,
632,
723,
225,
425,
30,
1431,
632,
891,
5323,
30,
3129,
7093,
2866,
5402,
3639,
605,
14378,
52,
16,
605,
14378,
50,
16,
605,
14378,
60,
16,
399,
38,
14378,
50,
16,
578,
399,
38,
14378,
60,
18,
2063,
4202,
21918,
2063,
358,
1623,
5314,
18,
3102,
4202,
1021,
3102,
358,
1623,
18,
290,
7358,
77,
67,
10052,
3639,
5383,
19,
21053,
2856,
358,
8492,
296,
10052,
11,
2756,
18,
261,
1886,
30,
4934,
13,
15550,
282,
3588,
434,
15550,
358,
2405,
18,
225,
10922,
6604,
18,
28555,
377,
3588,
434,
28555,
358,
2405,
18,
225,
10922,
6604,
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,
2632,
38,
2722,
12,
365,
16,
3833,
812,
16,
1319,
16,
707,
16,
425,
33,
20,
18,
1611,
16,
2826,
9987,
262,
30,
3536,
11217,
279,
2632,
605,
14378,
1623,
1450,
326,
2238,
38,
14378,
1438,
622,
423,
8876,
45,
18,
14854,
21209,
18,
38,
2722,
18,
50,
8876,
45,
19989,
59,
18,
85,
30901,
261,
18808,
1101,
3041,
13,
364,
326,
1623,
225,
632,
891,
3833,
812,
30,
585,
508,
598,
1623,
3102,
487,
24239,
37,
632,
723,
225,
3833,
812,
30,
609,
632,
891,
1319,
30,
2063,
12,
87,
13,
358,
1623,
316,
16,
425,
18,
75,
18,
10228,
5328,
1054,
11815,
2187,
296,
17414,
3546,
632,
723,
225,
1319,
30,
306,
701,
65,
632,
891,
2
] |
"""Increase the xAstrom value in a Source object by frac. E.g
|
"""Increase the yAstrom value in a Source object by frac. E.g
|
def linearYDistort(src, frac=.001): """Increase the xAstrom value in a Source object by frac. E.g src.xAstrom = 1000 --> 1001 if frac=.001 Input: src A Source object frac How much to change X by Output: A deep copy of src, with the value of xAstrom changed """ out = afwDet.Source(src) out.setYAstrom( out.getYAstrom()*(1+frac) ) return out
|
e3ff0ee33638a13c21dd9bf76a147b6d958a4776 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6522/e3ff0ee33638a13c21dd9bf76a147b6d958a4776/genDistortedImage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9103,
61,
5133,
499,
12,
4816,
16,
12445,
33,
18,
11664,
4672,
3536,
382,
11908,
326,
677,
21385,
520,
460,
316,
279,
4998,
733,
635,
12445,
18,
512,
18,
75,
1705,
18,
92,
21385,
520,
273,
4336,
15431,
2130,
21,
309,
12445,
33,
18,
11664,
225,
2741,
30,
1705,
377,
432,
4998,
733,
12445,
565,
9017,
9816,
358,
2549,
1139,
635,
225,
3633,
30,
432,
4608,
1610,
434,
1705,
16,
598,
326,
460,
434,
619,
21385,
520,
3550,
3536,
225,
596,
273,
10073,
91,
4986,
18,
1830,
12,
4816,
13,
596,
18,
542,
61,
21385,
520,
12,
596,
18,
588,
61,
21385,
520,
1435,
21556,
21,
15,
22187,
13,
262,
327,
596,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9103,
61,
5133,
499,
12,
4816,
16,
12445,
33,
18,
11664,
4672,
3536,
382,
11908,
326,
677,
21385,
520,
460,
316,
279,
4998,
733,
635,
12445,
18,
512,
18,
75,
1705,
18,
92,
21385,
520,
273,
4336,
15431,
2130,
21,
309,
12445,
33,
18,
11664,
225,
2741,
30,
1705,
377,
432,
4998,
733,
12445,
565,
9017,
9816,
358,
2549,
1139,
635,
225,
3633,
30,
432,
4608,
1610,
434,
1705,
16,
598,
326,
460,
434,
619,
21385,
520,
3550,
3536,
225,
596,
273,
10073,
91,
4986,
18,
1830,
12,
4816,
13,
596,
18,
542,
61,
21385,
520,
12,
596,
18,
588,
61,
21385,
520,
1435,
21556,
21,
15,
22187,
13,
262,
327,
596,
282,
2,
-100,
-100,
-100,
-100,
-100
] |
author_list = '%s' % (single_list[0]) master_author_list=[(author_list, self.authors[0][1][0])] else: master_author_list = [] current_letter = self.authors[0][1][0].upper() current_author_list = [] for author in self.authors: if author[1][0] != current_letter: author_list = " • ".join(current_author_list) if len(current_author_list) == self.descriptionClip: author_list += " …" author_list = self.formatNCXText(author_list) master_author_list.append((author_list, current_letter)) current_letter = author[1][0].upper() current_author_list = [author[0]] else: if len(current_author_list) < self.descriptionClip: current_author_list.append(author[0]) author_list = " • ".join(current_author_list) if len(current_author_list) == self.descriptionClip: author_list += " …" author_list = self.formatNCXText(author_list) master_author_list.append((author_list, current_letter))
|
if len(current_author_list) < self.descriptionClip: current_author_list.append(author[0]) author_list = " • ".join(current_author_list) if len(current_author_list) == self.descriptionClip: author_list += " …" author_list = self.formatNCXText(author_list) if self.verbose: print " adding '%s' to master_author_list" % current_letter master_author_list.append((author_list, current_letter))
|
def generateNCXByAuthor(self, tocTitle, single_article_per_section=True):
|
073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
10346,
60,
858,
3594,
12,
2890,
16,
17919,
4247,
16,
2202,
67,
11480,
67,
457,
67,
3464,
33,
5510,
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
] |
if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':') for f in allfiles: if f[-4:] == '.slb': finfo = macfs.FSSpec(f).GetFInfo() if finfo.Flags & 0x8000: os.unlink(f) else: LibFiles.append(f)
|
def main(): # Ask the user for the plugins directory dir, ok = macfs.GetDirectory() if not ok: sys.exit(0) os.chdir(dir.as_pathname()) # Remove old .slb aliases and collect a list of .slb files if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':') for f in allfiles: if f[-4:] == '.slb': finfo = macfs.FSSpec(f).GetFInfo() if finfo.Flags & 0x8000: os.unlink(f) else: LibFiles.append(f) print LibFiles # Create the new aliases. if EasyDialogs.AskYesNoCancel('Proceed with creating new ones?') <= 0: sys.exit(0) for dst, src in goals: if src in LibFiles: mkalias(src, dst) else: EasyDialogs.Message(dst+' not created: '+src+' not found') EasyDialogs.Message('All done!')
|
d8eb8a79456555385185782df350c39233104341 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d8eb8a79456555385185782df350c39233104341/fixfiletypes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
25747,
326,
729,
364,
326,
4799,
1867,
1577,
16,
1529,
273,
5318,
2556,
18,
967,
2853,
1435,
309,
486,
1529,
30,
2589,
18,
8593,
12,
20,
13,
1140,
18,
343,
1214,
12,
1214,
18,
345,
67,
28336,
10756,
225,
468,
3581,
1592,
263,
2069,
70,
6900,
471,
3274,
279,
666,
434,
263,
2069,
70,
1390,
1172,
10560,
2697,
468,
1788,
326,
394,
6900,
18,
309,
29442,
11885,
14072,
18,
23663,
22352,
2279,
6691,
2668,
626,
5288,
598,
4979,
394,
5945,
4899,
13,
1648,
374,
30,
2589,
18,
8593,
12,
20,
13,
364,
3046,
16,
1705,
316,
1960,
1031,
30,
309,
1705,
316,
10560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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
25747,
326,
729,
364,
326,
4799,
1867,
1577,
16,
1529,
273,
5318,
2556,
18,
967,
2853,
1435,
309,
486,
1529,
30,
2589,
18,
8593,
12,
20,
13,
1140,
18,
343,
1214,
12,
1214,
18,
345,
67,
28336,
10756,
225,
468,
3581,
1592,
263,
2069,
70,
6900,
471,
3274,
279,
666,
434,
263,
2069,
70,
1390,
1172,
10560,
2697,
468,
1788,
326,
394,
6900,
18,
309,
29442,
11885,
14072,
18,
23663,
22352,
2279,
6691,
2668,
626,
5288,
598,
4979,
394,
5945,
4899,
13,
1648,
374,
30,
2589,
18,
8593,
12,
20,
13,
364,
3046,
16,
1705,
316,
1960,
1031,
30,
309,
1705,
316,
10560,
2697,
30,
5028,
4930,
12,
4816,
16,
3046,
13,
469,
30,
29442,
2
] |
|
if_modified_since = context.request.get_header('if-modified-since') if if_modified_since is None: return
|
def check_cache(cls, server, context): # Check for the request header If-Modified-Since if_modified_since = context.request.get_header('if-modified-since') if if_modified_since is None: return
|
06dfa808e5c9a65280a7d5f29118e45e67ef8936 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/06dfa808e5c9a65280a7d5f29118e45e67ef8936/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2493,
12,
6429,
16,
1438,
16,
819,
4672,
468,
2073,
364,
326,
590,
1446,
971,
17,
4575,
17,
9673,
309,
67,
7342,
67,
9256,
273,
819,
18,
2293,
18,
588,
67,
3374,
2668,
430,
17,
7342,
17,
9256,
6134,
309,
309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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2493,
12,
6429,
16,
1438,
16,
819,
4672,
468,
2073,
364,
326,
590,
1446,
971,
17,
4575,
17,
9673,
309,
67,
7342,
67,
9256,
273,
819,
18,
2293,
18,
588,
67,
3374,
2668,
430,
17,
7342,
17,
9256,
6134,
309,
309,
67,
7342,
67,
9256,
353,
599,
30,
327,
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
] |
|
self.obsolete = True
|
self.obsolete = True
|
def __init__(self, ontology, oboStanza = None, *args, **keywordArgs): object.__init__(self, *args, **keywordArgs) if not isinstance(ontology, Ontology.Ontology): raise ValueError, gettext('The first argument must be an Ontology instance') self.ontology = ontology self.oboStanza = oboStanza self.identifier = None self.name = None self.abbreviation = None self.partOf = None self.parts = [] self.obsolete = False if self.oboStanza is not None: self.identifier = self.oboStanza.id.value self.name = self.oboStanza.name.value # If this term has 'part-of' relationship then try to set the parent term. for relationship in self.oboStanza.relationship or []: if relationship.relationship == 'part_of': parentId = relationship.value if parentId in self.ontology: parentTerm = self.ontology[parentId] self.partOf = parentTerm parentTerm.parts.append(self) else: # The parent of this term has not been loaded yet. Store its ID and look it up later. self.partOf = parentId # Grab any abbreviation. for synonym in self.oboStanza.synonyms or []: if 'ABBREVIATION' in synonym.types: self.abbreviation = synonym.value # TODO: grab other synonyms? if self.oboStanza.definition is not None and self.oboStanza.definition.value == 'Obsolete.': self.obsolete = True
|
1fa538ab787e2830a0a53f69de475b64a0426a2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/1fa538ab787e2830a0a53f69de475b64a0426a2c/OntologyTerm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
21598,
16,
320,
1075,
510,
15214,
273,
599,
16,
380,
1968,
16,
2826,
11041,
2615,
4672,
733,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
11041,
2615,
13,
225,
309,
486,
1549,
12,
1580,
4676,
16,
29683,
18,
51,
19610,
4672,
1002,
2068,
16,
24972,
2668,
1986,
1122,
1237,
1297,
506,
392,
29683,
791,
6134,
225,
365,
18,
1580,
4676,
273,
21598,
365,
18,
947,
83,
510,
15214,
273,
320,
1075,
510,
15214,
365,
18,
5644,
273,
599,
365,
18,
529,
273,
599,
365,
18,
24904,
273,
599,
365,
18,
2680,
951,
273,
599,
365,
18,
6019,
273,
5378,
365,
18,
10992,
19513,
273,
1083,
225,
309,
365,
18,
947,
83,
510,
15214,
353,
486,
599,
30,
365,
18,
5644,
273,
365,
18,
947,
83,
510,
15214,
18,
350,
18,
1132,
365,
18,
529,
273,
365,
18,
947,
83,
510,
15214,
18,
529,
18,
1132,
225,
468,
971,
333,
2481,
711,
296,
2680,
17,
792,
11,
5232,
1508,
775,
358,
444,
326,
982,
2481,
18,
364,
5232,
316,
365,
18,
947,
83,
510,
15214,
18,
12873,
578,
5378,
30,
309,
5232,
18,
12873,
422,
296,
2680,
67,
792,
4278,
11582,
273,
5232,
18,
1132,
309,
11582,
316,
365,
18,
1580,
4676,
30,
982,
4065,
273,
365,
18,
1580,
4676,
63,
2938,
548,
65,
365,
18,
2680,
951,
273,
982,
4065,
982,
4065,
18,
6019,
18,
6923,
12,
2890,
13,
469,
30,
468,
1021,
982,
434,
333,
2481,
711,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
21598,
16,
320,
1075,
510,
15214,
273,
599,
16,
380,
1968,
16,
2826,
11041,
2615,
4672,
733,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
11041,
2615,
13,
225,
309,
486,
1549,
12,
1580,
4676,
16,
29683,
18,
51,
19610,
4672,
1002,
2068,
16,
24972,
2668,
1986,
1122,
1237,
1297,
506,
392,
29683,
791,
6134,
225,
365,
18,
1580,
4676,
273,
21598,
365,
18,
947,
83,
510,
15214,
273,
320,
1075,
510,
15214,
365,
18,
5644,
273,
599,
365,
18,
529,
273,
599,
365,
18,
24904,
273,
599,
365,
18,
2680,
951,
273,
599,
365,
18,
6019,
273,
5378,
365,
18,
10992,
19513,
273,
1083,
225,
309,
365,
18,
947,
2
] |
pseudo_emission = asarray(pseudo_emission)
|
pseudo_emission = numpy.asarray(pseudo_emission)
|
def train_visible(states, alphabet, training_data, pseudo_initial=None, pseudo_transition=None, pseudo_emission=None): """train_visible(states, alphabet, training_data[, pseudo_initial] [, pseudo_transition][, pseudo_emission]) -> MarkovModel Train a visible MarkovModel using maximum likelihoood estimates for each of the parameters. states is a list of strings that describe the names of each state. alphabet is a list of objects that indicate the allowed outputs. training_data is a list of (outputs, observed states) where outputs is a list of the emission from the alphabet, and observed states is a list of states from states. pseudo_initial, pseudo_transition, and pseudo_emission are optional parameters that you can use to assign pseudo-counts to different matrices. They should be matrices of the appropriate size that contain numbers to add to each parameter matrix """ N, M = len(states), len(alphabet) if pseudo_initial!=None: pseudo_initial = asarray(pseudo_initial) if pseudo_initial.shape != (N,): raise ValueError("pseudo_initial not shape len(states)") if pseudo_transition!=None: pseudo_transition = asarray(pseudo_transition) if pseudo_transition.shape != (N,N): raise ValueError("pseudo_transition not shape " + \ "len(states) X len(states)") if pseudo_emission!=None: pseudo_emission = asarray(pseudo_emission) if pseudo_emission.shape != (N,M): raise ValueError("pseudo_emission not shape " + \ "len(states) X len(alphabet)") # Training data is given as a list of members of the alphabet. # Replace those with indexes into the alphabet list for easier # computation. training_states, training_outputs = [], [] states_indexes = itemindex(states) outputs_indexes = itemindex(alphabet) for toutputs, tstates in training_data: if len(tstates) != len(toutputs): raise ValueError("states and outputs not aligned") training_states.append([states_indexes[x] for x in tstates]) training_outputs.append([outputs_indexes[x] for x in toutputs]) x = _mle(N, M, training_outputs, training_states, pseudo_initial, pseudo_transition, pseudo_emission) p_initial, p_transition, p_emission = x return MarkovModel(states, alphabet, p_initial, p_transition, p_emission)
|
c89840cf25ab64ca2eb9e3818dfc5a7a4e94f6ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/c89840cf25ab64ca2eb9e3818dfc5a7a4e94f6ef/MarkovModel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4691,
67,
8613,
12,
7992,
16,
10877,
16,
8277,
67,
892,
16,
12454,
67,
6769,
33,
7036,
16,
12454,
67,
14936,
33,
7036,
16,
12454,
67,
351,
19710,
33,
7036,
4672,
3536,
9754,
67,
8613,
12,
7992,
16,
10877,
16,
8277,
67,
892,
63,
16,
12454,
67,
6769,
65,
306,
16,
12454,
67,
14936,
6362,
16,
12454,
67,
351,
19710,
5717,
317,
6622,
1527,
1488,
225,
2197,
267,
279,
6021,
6622,
1527,
1488,
1450,
4207,
7906,
292,
7392,
83,
4773,
27585,
364,
1517,
434,
326,
1472,
18,
225,
5493,
353,
279,
666,
434,
2064,
716,
6401,
326,
1257,
434,
1517,
919,
18,
225,
10877,
353,
279,
666,
434,
2184,
716,
10768,
326,
2935,
6729,
18,
225,
8277,
67,
892,
353,
279,
666,
434,
261,
12295,
16,
12117,
5493,
13,
1625,
6729,
353,
279,
666,
434,
326,
801,
19710,
628,
326,
10877,
16,
471,
12117,
5493,
353,
279,
666,
434,
5493,
628,
5493,
18,
225,
12454,
67,
6769,
16,
12454,
67,
14936,
16,
471,
12454,
67,
351,
19710,
854,
3129,
1472,
716,
1846,
848,
999,
358,
2683,
12454,
17,
8008,
358,
3775,
16415,
18,
225,
16448,
1410,
506,
16415,
434,
326,
5505,
963,
716,
912,
5600,
358,
527,
358,
1517,
1569,
3148,
225,
3536,
423,
16,
490,
273,
562,
12,
7992,
3631,
562,
12,
287,
8907,
13,
309,
12454,
67,
6769,
5,
33,
7036,
30,
12454,
67,
6769,
273,
10455,
12,
26023,
67,
6769,
13,
309,
12454,
67,
6769,
18,
4867,
480,
261,
50,
16,
4672,
1002,
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,
4691,
67,
8613,
12,
7992,
16,
10877,
16,
8277,
67,
892,
16,
12454,
67,
6769,
33,
7036,
16,
12454,
67,
14936,
33,
7036,
16,
12454,
67,
351,
19710,
33,
7036,
4672,
3536,
9754,
67,
8613,
12,
7992,
16,
10877,
16,
8277,
67,
892,
63,
16,
12454,
67,
6769,
65,
306,
16,
12454,
67,
14936,
6362,
16,
12454,
67,
351,
19710,
5717,
317,
6622,
1527,
1488,
225,
2197,
267,
279,
6021,
6622,
1527,
1488,
1450,
4207,
7906,
292,
7392,
83,
4773,
27585,
364,
1517,
434,
326,
1472,
18,
225,
5493,
353,
279,
666,
434,
2064,
716,
6401,
326,
1257,
434,
1517,
919,
18,
225,
10877,
353,
279,
666,
434,
2184,
716,
10768,
326,
2935,
6729,
18,
225,
8277,
67,
2
] |
'to be a string or None, not %s'%repr(new_url) )
|
'to be a string or None, not %r' % new_url)
|
def change_response(status, headers, exc_info=None): status_code = status.split(' ') try: code = int(status_code[0]) except (ValueError, TypeError): raise Exception( 'StatusBasedForward middleware ' 'received an invalid status code %s'%repr(status_code[0]) ) message = ' '.join(status_code[1:]) new_url = self.mapper( code, message, environ, self.global_conf, **self.params ) if not (new_url == None or isinstance(new_url, str)): raise TypeError( 'Expected the url to internally ' 'redirect to in the StatusBasedForward mapper' 'to be a string or None, not %s'%repr(new_url) ) if new_url: url.append([new_url, status, headers]) else: return start_response(status, headers, exc_info)
|
be845c1a4de6aea43515c95e3095c238415e1607 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2097/be845c1a4de6aea43515c95e3095c238415e1607/errordocument.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
1267,
67,
710,
273,
1267,
18,
4939,
2668,
8624,
775,
30,
981,
273,
509,
12,
2327,
67,
710,
63,
20,
5717,
1335,
261,
23610,
16,
3580,
4672,
1002,
1185,
12,
296,
1482,
9802,
8514,
5827,
296,
296,
15213,
392,
2057,
1267,
981,
738,
87,
11,
9,
12715,
12,
2327,
67,
710,
63,
20,
5717,
262,
883,
273,
296,
2418,
5701,
12,
2327,
67,
710,
63,
21,
30,
5717,
394,
67,
718,
273,
365,
18,
13919,
12,
981,
16,
883,
16,
5473,
16,
365,
18,
6347,
67,
3923,
16,
2826,
2890,
18,
2010,
262,
309,
486,
261,
2704,
67,
718,
422,
599,
578,
1549,
12,
2704,
67,
718,
16,
609,
3719,
30,
1002,
3580,
12,
296,
6861,
326,
880,
358,
12963,
296,
296,
7590,
358,
316,
326,
2685,
9802,
8514,
5815,
11,
296,
869,
506,
279,
533,
578,
599,
16,
486,
738,
86,
11,
738,
394,
67,
718,
13,
309,
394,
67,
718,
30,
880,
18,
6923,
3816,
2704,
67,
718,
16,
1267,
16,
1607,
5717,
469,
30,
327,
787,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
1267,
67,
710,
273,
1267,
18,
4939,
2668,
8624,
775,
30,
981,
273,
509,
12,
2327,
67,
710,
63,
20,
5717,
1335,
261,
23610,
16,
3580,
4672,
1002,
1185,
12,
296,
1482,
9802,
8514,
5827,
296,
296,
15213,
392,
2057,
1267,
981,
738,
87,
11,
9,
12715,
12,
2327,
67,
710,
63,
20,
5717,
262,
883,
273,
296,
2418,
5701,
12,
2327,
67,
710,
63,
21,
30,
5717,
394,
67,
718,
273,
365,
18,
13919,
12,
981,
16,
883,
16,
5473,
16,
365,
18,
6347,
67,
3923,
16,
2826,
2890,
18,
2010,
262,
309,
486,
261,
2704,
67,
718,
422,
599,
578,
1549,
12,
2
] |
(mi.title, None, series_index, aus))
|
(title, None, series_index, aus))
|
def import_book(self, mi, formats, notify=True): series_index = 1 if mi.series_index is None else mi.series_index if not mi.authors: mi.authors = [_('Unknown')] aus = mi.author_sort if mi.author_sort else ', '.join(mi.authors) obj = self.conn.execute('INSERT INTO books(title, uri, series_index, author_sort) VALUES (?, ?, ?, ?)', (mi.title, None, series_index, aus)) id = obj.lastrowid self.data.books_added([id], self.conn) self.set_path(id, True) self.set_metadata(id, mi) for path in formats: ext = os.path.splitext(path)[1][1:].lower() if ext == 'opf': continue stream = open(path, 'rb') self.add_format(id, ext, stream, index_is_id=True) self.conn.commit() self.data.refresh_ids(self.conn, [id]) # Needed to update format list and size if notify: self.notify('add', [id])
|
2b4a4a31e362e03d5f6e1b1faafa349eb1792857 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/2b4a4a31e362e03d5f6e1b1faafa349eb1792857/database2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3618,
12,
2890,
16,
12837,
16,
6449,
16,
5066,
33,
5510,
4672,
4166,
67,
1615,
273,
404,
309,
12837,
18,
10222,
67,
1615,
353,
599,
469,
12837,
18,
10222,
67,
1615,
309,
486,
12837,
18,
19368,
30,
12837,
18,
19368,
273,
306,
67,
2668,
4874,
6134,
65,
279,
407,
273,
12837,
18,
4161,
67,
3804,
309,
12837,
18,
4161,
67,
3804,
469,
2265,
2418,
5701,
12,
9197,
18,
19368,
13,
1081,
273,
365,
18,
4646,
18,
8837,
2668,
11356,
12421,
6978,
87,
12,
2649,
16,
2003,
16,
4166,
67,
1615,
16,
2869,
67,
3804,
13,
13477,
13590,
16,
20033,
20033,
692,
13,
2187,
261,
2649,
16,
599,
16,
4166,
67,
1615,
16,
279,
407,
3719,
612,
273,
1081,
18,
2722,
492,
350,
365,
18,
892,
18,
12567,
67,
9665,
3816,
350,
6487,
365,
18,
4646,
13,
365,
18,
542,
67,
803,
12,
350,
16,
1053,
13,
365,
18,
542,
67,
4165,
12,
350,
16,
12837,
13,
364,
589,
316,
6449,
30,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
803,
25146,
21,
6362,
21,
30,
8009,
8167,
1435,
309,
1110,
422,
296,
556,
74,
4278,
1324,
1407,
273,
1696,
12,
803,
16,
296,
6731,
6134,
365,
18,
1289,
67,
2139,
12,
350,
16,
1110,
16,
1407,
16,
770,
67,
291,
67,
350,
33,
5510,
13,
365,
18,
4646,
18,
7371,
1435,
365,
18,
892,
18,
9144,
67,
2232,
12,
2890,
18,
4646,
16,
306,
350,
5717,
468,
26480,
358,
1089,
740,
666,
471,
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,
3618,
12,
2890,
16,
12837,
16,
6449,
16,
5066,
33,
5510,
4672,
4166,
67,
1615,
273,
404,
309,
12837,
18,
10222,
67,
1615,
353,
599,
469,
12837,
18,
10222,
67,
1615,
309,
486,
12837,
18,
19368,
30,
12837,
18,
19368,
273,
306,
67,
2668,
4874,
6134,
65,
279,
407,
273,
12837,
18,
4161,
67,
3804,
309,
12837,
18,
4161,
67,
3804,
469,
2265,
2418,
5701,
12,
9197,
18,
19368,
13,
1081,
273,
365,
18,
4646,
18,
8837,
2668,
11356,
12421,
6978,
87,
12,
2649,
16,
2003,
16,
4166,
67,
1615,
16,
2869,
67,
3804,
13,
13477,
13590,
16,
20033,
20033,
692,
13,
2187,
261,
2649,
16,
599,
16,
4166,
67,
1615,
16,
279,
407,
3719,
612,
2
] |
h1 = Numeric.zeros(N[0],'d') h2 = Numeric.zeros(N[1],'d')
|
h1 = zeros(N[0],'d') h2 = zeros(N[1],'d')
|
def hilbert2(x,N=None): """Return the '2-D' hilbert transform of x of length N. """ x = asarray(x) x = asarray(x) if N is None: N = x.shape if len(N) < 2: if N <=0: raise ValueError, "N must be positive." N = (N,N) if numpy.iscomplexobj(x): print "Warning: imaginary part of x ignored." x = numpy.real(x) print N Xf = fft2(x,N,axes=(0,1)) h1 = Numeric.zeros(N[0],'d') h2 = Numeric.zeros(N[1],'d') for p in range(2): h = eval("h%d"%(p+1)) N1 = N[p] if N1 % 2 == 0: h[0] = h[N1/2] = 1 h[1:N1/2] = 2 else: h[0] = 1 h[1:(N1+1)/2] = 2 exec("h%d = h" % (p+1), globals(), locals()) h = h1[:,NewAxis] * h2[NewAxis,:] k = len(x.shape) while k > 2: h = h[:,Numeric.NewAxis] k -= 1 x = ifft2(Xf*h,axes=(0,1)) return x
|
936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
330,
25925,
22,
12,
92,
16,
50,
33,
7036,
4672,
3536,
990,
326,
296,
22,
17,
40,
11,
366,
330,
25925,
2510,
434,
619,
434,
769,
423,
18,
3536,
619,
273,
10455,
12,
92,
13,
619,
273,
10455,
12,
92,
13,
309,
423,
353,
599,
30,
423,
273,
619,
18,
4867,
309,
562,
12,
50,
13,
411,
576,
30,
309,
423,
1648,
20,
30,
1002,
2068,
16,
315,
50,
1297,
506,
6895,
1199,
423,
273,
261,
50,
16,
50,
13,
309,
3972,
18,
291,
14259,
2603,
12,
92,
4672,
1172,
315,
6210,
30,
30852,
1087,
434,
619,
5455,
1199,
619,
273,
3972,
18,
7688,
12,
92,
13,
1172,
423,
1139,
74,
273,
15741,
22,
12,
92,
16,
50,
16,
10855,
28657,
20,
16,
21,
3719,
366,
21,
273,
4922,
12,
50,
63,
20,
6487,
11,
72,
6134,
366,
22,
273,
4922,
12,
50,
63,
21,
6487,
11,
72,
6134,
364,
293,
316,
1048,
12,
22,
4672,
366,
273,
5302,
2932,
76,
9,
72,
6,
17105,
84,
15,
21,
3719,
423,
21,
273,
423,
63,
84,
65,
309,
423,
21,
738,
576,
422,
374,
30,
366,
63,
20,
65,
273,
366,
63,
50,
21,
19,
22,
65,
273,
404,
366,
63,
21,
30,
50,
21,
19,
22,
65,
273,
576,
469,
30,
366,
63,
20,
65,
273,
404,
366,
63,
21,
30,
12,
50,
21,
15,
21,
13176,
22,
65,
273,
576,
1196,
2932,
76,
9,
72,
273,
366,
6,
738,
261,
84,
15,
21,
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,
366,
330,
25925,
22,
12,
92,
16,
50,
33,
7036,
4672,
3536,
990,
326,
296,
22,
17,
40,
11,
366,
330,
25925,
2510,
434,
619,
434,
769,
423,
18,
3536,
619,
273,
10455,
12,
92,
13,
619,
273,
10455,
12,
92,
13,
309,
423,
353,
599,
30,
423,
273,
619,
18,
4867,
309,
562,
12,
50,
13,
411,
576,
30,
309,
423,
1648,
20,
30,
1002,
2068,
16,
315,
50,
1297,
506,
6895,
1199,
423,
273,
261,
50,
16,
50,
13,
309,
3972,
18,
291,
14259,
2603,
12,
92,
4672,
1172,
315,
6210,
30,
30852,
1087,
434,
619,
5455,
1199,
619,
273,
3972,
18,
7688,
12,
92,
13,
1172,
423,
1139,
74,
273,
15741,
22,
12,
92,
16,
2
] |
utils.eprint(procRM.getMessage())
|
utils.eprint("%s\n\n" % procRM.getMessage())
|
def dlfs_rm(path, msg): procRM = se_utils.se_rm(path) if procRM.wait() != 0: print "\t\tUnable to remove %s!" % msg utils.eprint(procRM.getMessage())
|
45e0a8366ef09ad2b9900eb80d335aaa03af6bdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8443/45e0a8366ef09ad2b9900eb80d335aaa03af6bdc/downloadFromSE.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8910,
2556,
67,
8864,
12,
803,
16,
1234,
4672,
5418,
8717,
273,
695,
67,
5471,
18,
307,
67,
8864,
12,
803,
13,
309,
5418,
8717,
18,
7048,
1435,
480,
374,
30,
1172,
1548,
88,
64,
88,
3370,
358,
1206,
738,
87,
4442,
738,
1234,
2990,
18,
73,
1188,
27188,
87,
64,
82,
64,
82,
6,
738,
5418,
8717,
18,
24906,
10756,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8910,
2556,
67,
8864,
12,
803,
16,
1234,
4672,
5418,
8717,
273,
695,
67,
5471,
18,
307,
67,
8864,
12,
803,
13,
309,
5418,
8717,
18,
7048,
1435,
480,
374,
30,
1172,
1548,
88,
64,
88,
3370,
358,
1206,
738,
87,
4442,
738,
1234,
2990,
18,
73,
1188,
27188,
87,
64,
82,
64,
82,
6,
738,
5418,
8717,
18,
24906,
10756,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r'(?P<option>[-\w_.*,(){}]+)'
|
r'(?P<option>[]\-[\w_.*,(){}]+)'
|
def remove_section(self, section): """Remove a file section.""" if self.__sections.has_key(section): del self.__sections[section] return 1 else: return 0
|
bd3109add24d2e9ee3659bc3fa8c0c1329c8b9e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bd3109add24d2e9ee3659bc3fa8c0c1329c8b9e3/ConfigParser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
3464,
12,
2890,
16,
2442,
4672,
3536,
3288,
279,
585,
2442,
12123,
309,
365,
16186,
11657,
18,
5332,
67,
856,
12,
3464,
4672,
1464,
365,
16186,
11657,
63,
3464,
65,
327,
404,
469,
30,
327,
374,
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,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,
65,
327,
404,
469,
30,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print " Function evaluations: %d" % _powell_funcalls
|
print " Function evaluations: %d" % fcalls[0]
|
def fmin_powell(func, x0, args=(), xtol=1e-4, ftol=1e-4, maxiter=None, maxfun=None, full_output=0, disp=1, retall=0): """Minimize a function using modified Powell's method. Description: Uses a modification of Powell's method to find the minimum of a function of N variables Inputs: func -- the Python function or method to be minimized. x0 -- the initial guess. args -- extra arguments for func. Outputs: (xopt, {fopt, xi, direc, iter, funcalls, warnflag}, {allvecs}) xopt -- minimizer of function fopt -- value of function at minimum: fopt = func(xopt) direc -- current direction set iter -- number of iterations funcalls -- number of function calls warnflag -- Integer warning flag: 1 : 'Maximum number of function evaluations.' 2 : 'Maximum number of iterations.' allvecs -- a list of solutions at each iteration Additional Inputs: xtol -- line-search error tolerance. ftol -- acceptable relative error in func(xopt) for convergence. maxiter -- the maximum number of iterations to perform. maxfun -- the maximum number of function evaluations. full_output -- non-zero if fval and warnflag outputs are desired. disp -- non-zero to print convergence messages. retall -- non-zero to return a list of the solution at each iteration """ global _powell_funcalls x = asarray(x0) if retall: allvecs = [x] N = len(x) rank = len(x.shape) if not -1 < rank < 2: raise ValueError, "Initial guess must be a scalar or rank-1 sequence." if maxiter is None: maxiter = N * 1000 if maxfun is None: maxfun = N * 1000 direc = eye(N,typecode='d') fval = squeeze(apply(func, (x,)+args)) _powell_funcalls = 1 x1 = x.copy() iter = 0; ilist = range(N) while 1: fx = fval bigind = 0 delta = 0.0 for i in ilist: direc1 = direc[i] fx2 = fval fval, x, direc1 = _linesearch_powell(func, x, direc1, args=args, tol=xtol*100) if (fx2 - fval) > delta: delta = fx2 - fval bigind = i iter += 1 if retall: allvecs.append(x) if (2.0*(fx - fval) <= ftol*(abs(fx)+abs(fval))+1e-20): break if _powell_funcalls >= maxfun: break if iter >= maxiter: break # Construct the extrapolated point direc1 = x - x1 x2 = 2*x - x1 x1 = x.copy() fx2 = squeeze(apply(func, (x2,)+args)) _powell_funcalls +=1 if (fx > fx2): t = 2.0*(fx+fx2-2.0*fval) temp = (fx-fval-delta) t *= temp*temp temp = fx-fx2 t -= delta*temp*temp if t < 0.0: fval, x, direc1 = _linesearch_powell(func, x, direc1, args=args, tol=xtol*100) direc[bigind] = direc[-1] direc[-1] = direc1 warnflag = 0 if _powell_funcalls >= maxfun: warnflag = 1 if disp: print "Warning: Maximum number of function evaluations has "\ "been exceeded." elif iter >= maxiter: warnflag = 2 if disp: print "Warning: Maximum number of iterations has been exceeded" else: if disp: print "Optimization terminated successfully." print " Current function value: %f" % fval print " Iterations: %d" % iter print " Function evaluations: %d" % _powell_funcalls x = squeeze(x) if full_output: retlist = x, fval, direc, iter, _powell_funcalls, warnflag if retall: retlist += (allvecs,) else: retlist = x if retall: retlist = (x, allvecs) return retlist
|
926e615eebcd9f2ca3373b1887f74b532b10bda4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/926e615eebcd9f2ca3373b1887f74b532b10bda4/optimize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
23509,
1165,
12,
644,
16,
619,
20,
16,
833,
33,
9334,
619,
3490,
33,
21,
73,
17,
24,
16,
284,
3490,
33,
21,
73,
17,
24,
16,
25743,
33,
7036,
16,
943,
12125,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
4672,
3536,
2930,
10153,
279,
445,
1450,
4358,
28509,
1165,
1807,
707,
18,
225,
6507,
30,
225,
14854,
279,
11544,
434,
28509,
1165,
1807,
707,
358,
1104,
326,
5224,
434,
279,
445,
434,
423,
3152,
225,
24472,
30,
225,
1326,
1493,
326,
6600,
445,
578,
707,
358,
506,
18172,
1235,
18,
619,
20,
1493,
326,
2172,
7274,
18,
833,
1493,
2870,
1775,
364,
1326,
18,
225,
26168,
30,
261,
92,
3838,
16,
288,
617,
337,
16,
14087,
16,
302,
577,
71,
16,
1400,
16,
1326,
454,
87,
16,
1894,
6420,
5779,
288,
454,
27698,
6792,
225,
619,
3838,
1493,
18172,
1824,
434,
445,
225,
284,
3838,
225,
1493,
460,
434,
445,
622,
5224,
30,
284,
3838,
273,
1326,
12,
92,
3838,
13,
302,
577,
71,
1493,
783,
4068,
444,
1400,
1493,
1300,
434,
11316,
1326,
454,
87,
1493,
1300,
434,
445,
4097,
1894,
6420,
1493,
2144,
3436,
2982,
30,
404,
294,
296,
13528,
1300,
434,
445,
3765,
1012,
1093,
576,
294,
296,
13528,
1300,
434,
11316,
1093,
777,
27698,
1493,
279,
666,
434,
22567,
622,
1517,
6532,
225,
15119,
24472,
30,
225,
619,
3490,
1493,
980,
17,
3072,
555,
10673,
18,
284,
3490,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
23509,
1165,
12,
644,
16,
619,
20,
16,
833,
33,
9334,
619,
3490,
33,
21,
73,
17,
24,
16,
284,
3490,
33,
21,
73,
17,
24,
16,
25743,
33,
7036,
16,
943,
12125,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
4672,
3536,
2930,
10153,
279,
445,
1450,
4358,
28509,
1165,
1807,
707,
18,
225,
6507,
30,
225,
14854,
279,
11544,
434,
28509,
1165,
1807,
707,
358,
1104,
326,
5224,
434,
279,
445,
434,
423,
3152,
225,
24472,
30,
225,
1326,
1493,
326,
6600,
445,
578,
707,
358,
506,
18172,
1235,
18,
619,
20,
1493,
326,
2172,
7274,
18,
833,
1493,
2870,
1775,
364,
1326,
18,
2
] |
out = reduce(lambda x,y: audioop.add(x, y, 2), divsamples)
|
if divsamples: out = reduce(lambda x,y: audioop.add(x, y, 2), divsamples) else: out = ''
|
def mixAudio(self): import audioop self._audioOut = {} samples = self._audioIn.items() power = [ (audioop.rms(x[1],2),x[1], x[0]) for x in samples ] power.sort(); power.reverse() speakers = Set([x[2] for x in power[:self._maxSpeakers]]) # First we calculate the 'default' audio. Used for everyone who's # not a speaker in the room. samples = [ x[1] for x in power[:self._maxSpeakers] ] divsamples = [ audioop.mul(x, 2, len(samples)) for x in samples ] out = reduce(lambda x,y: audioop.add(x, y, 2), divsamples) self._audioOutDefault = out
|
df888c2bcc1eba4d7a46e8c2e8092107f6819ac6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/df888c2bcc1eba4d7a46e8c2e8092107f6819ac6/conferencing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6843,
12719,
12,
2890,
4672,
1930,
7447,
556,
365,
6315,
11509,
1182,
273,
2618,
5216,
273,
365,
6315,
11509,
382,
18,
3319,
1435,
7212,
273,
306,
261,
11509,
556,
18,
29716,
12,
92,
63,
21,
6487,
22,
3631,
92,
63,
21,
6487,
619,
63,
20,
5717,
364,
619,
316,
5216,
308,
7212,
18,
3804,
5621,
7212,
18,
9845,
1435,
272,
10244,
414,
273,
1000,
3816,
92,
63,
22,
65,
364,
619,
316,
7212,
10531,
2890,
6315,
1896,
31028,
414,
65,
5717,
468,
5783,
732,
4604,
326,
296,
1886,
11,
7447,
18,
10286,
364,
3614,
476,
10354,
1807,
468,
486,
279,
17785,
6388,
316,
326,
7725,
18,
5216,
273,
306,
619,
63,
21,
65,
364,
619,
316,
7212,
10531,
2890,
6315,
1896,
31028,
414,
65,
308,
3739,
7319,
273,
306,
7447,
556,
18,
16411,
12,
92,
16,
576,
16,
562,
12,
7319,
3719,
364,
619,
316,
5216,
308,
309,
3739,
7319,
30,
596,
273,
5459,
12,
14661,
619,
16,
93,
30,
7447,
556,
18,
1289,
12,
92,
16,
677,
16,
576,
3631,
3739,
7319,
13,
469,
30,
596,
273,
875,
365,
6315,
11509,
1182,
1868,
273,
596,
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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
3631,
92,
63,
21,
6487,
619,
63,
20,
5717,
364,
619,
316,
5216,
308,
7212,
18,
3804,
5621,
7212,
18,
9845,
1435,
272,
10244,
414,
273,
1000,
3816,
92,
63,
22,
65,
364,
619,
316,
7212,
10531,
2890,
6315,
1896,
31028,
414,
65,
5717,
468,
5783,
732,
4604,
326,
296,
1886,
11,
7447,
18,
10286,
364,
3614,
476,
10354,
1807,
468,
486,
279,
17785,
6388,
316,
326,
7725,
18,
5216,
273,
306,
619,
63,
21,
65,
364,
619,
316,
7212,
10531,
2
] |
self._checkme()
|
def peekvalue(self, index_from_top=0): index = self.valuestackdepth + ~index_from_top assert index >= 0, "peek past the bottom of the stack" return self.valuestack_w[index] self._checkme()
|
8fc109cbc472f1192978cdd91012f9fc407c486b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/8fc109cbc472f1192978cdd91012f9fc407c486b/pyframe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8032,
1132,
12,
2890,
16,
770,
67,
2080,
67,
3669,
33,
20,
4672,
770,
273,
365,
18,
4531,
395,
484,
5979,
397,
4871,
1615,
67,
2080,
67,
3669,
1815,
770,
1545,
374,
16,
315,
347,
3839,
8854,
326,
5469,
434,
326,
2110,
6,
327,
365,
18,
4531,
395,
484,
67,
91,
63,
1615,
65,
365,
6315,
1893,
3501,
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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
22398,
316,
326,
981,
30,
1652,
8032,
1132,
12,
2890,
16,
770,
67,
2080,
67,
3669,
33,
20,
4672,
770,
273,
365,
18,
4531,
395,
484,
5979,
397,
4871,
1615,
67,
2080,
67,
3669,
1815,
770,
1545,
374,
16,
315,
347,
3839,
8854,
326,
5469,
434,
326,
2110,
6,
327,
365,
18,
4531,
395,
484,
67,
91,
63,
1615,
65,
365,
6315,
1893,
3501,
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
] |
|
for (i = ss.length-1; i >= 0; --i) { if (ss[i].label == label)
|
i = len(ss)-1 while i >= 0: if ss[i].label == label:
|
def Statement(tokenizer, compilerContext): """Parses a Statement.""" tokenType = tokenizer.get(True) builder = compilerContext.builder # Cases for statements ending in a right curly return early, avoiding the # common semicolon insertion magic after this switch. if tokenType == FUNCTION: # DECLARED_FORM extends funDecls of compilerContext, STATEMENT_FORM doesn'tokenizer. if compilerContext.stmtStack.length > 1: kind = STATEMENT_FORM else: kind = DECLARED_FORM return FunctionDefinition(tokenizer, compilerContext, True, kind) elif tokenType == LEFT_CURLY: node = Statements(tokenizer, compilerContext) tokenizer.mustMatch(RIGHT_CURLY) return node elif tokenType == IF: node = builder.IF__build(tokenizer) builder.IF__setCondition(node, ParenExpression(tokenizer, compilerContext)) compilerContext.stmtStack.push(node) builder.IF__setThenPart(node, Statement(tokenizer, compilerContext)) if tokenizer.match(ELSE): builder.IF__setElsePart(node, Statement(tokenizer, compilerContext)) compilerContext.stmtStack.pop() builder.IF__finish(node) return node elif tokenType == SWITCH: # This allows CASEs after a DEFAULT, which is in the standard. node = builder.SWITCH__build(tokenizer) builder.SWITCH__setDiscriminant(node, ParenExpression(tokenizer, compilerContext)) compilerContext.stmtStack.push(node) tokenizer.mustMatch(LEFT_CURLY) tokenType = tokenizer.get() while tokenType != RIGHT_CURLY: if tokenType == DEFAULT: if node.defaultIndex >= 0: raise SyntaxError("More than one switch default", tokenizer) childNode = builder.DEFAULT__build(tokenizer) builder.SWITCH__setDefaultIndex(node, node.cases.length) tokenizer.mustMatch(COLON) builder.DEFAULT__initializeStatements(childNode, tokenizer) while ((tokenType=tokenizer.peek(True)) != CASE and tokenType != DEFAULT and tokenType != RIGHT_CURLY) builder.DEFAULT__addStatement(childNode, Statement(tokenizer, compilerContext)) builder.DEFAULT__finish(childNode) break elif tokenType == CASE: childNode = builder.CASE__build(tokenizer) builder.CASE__setLabel(childNode, Expression(tokenizer, compilerContext, COLON)) tokenizer.mustMatch(COLON) builder.CASE__initializeStatements(childNode, tokenizer) while ((tokenType=tokenizer.peek(True)) != CASE and tokenType != DEFAULT and tokenType != RIGHT_CURLY) builder.CASE__addStatement(childNode, Statement(tokenizer, compilerContext)) builder.CASE__finish(childNode) break else: raise SyntaxError("Invalid switch case", tokenizer) builder.SWITCH__addCase(node, childNode) tokenType = tokenizer.get() compilerContext.stmtStack.pop() builder.SWITCH__finish(node) return node elif tokenType == FOR: node = builder.FOR__build(tokenizer) if tokenizer.match(IDENTIFIER) and tokenizer.token.value == "each": builder.FOR__rebuildForEach(node) tokenizer.mustMatch(LEFT_PAREN) tokenType = tokenizer.peek() if tokenType != SEMICOLON: compilerContext.inForLoopInit = True if tokenType == VAR or tokenType == CONST: tokenizer.get() childNode = Variables(tokenizer, compilerContext) elif tokenType == LET: tokenizer.get() if tokenizer.peek() == LEFT_PAREN: childNode = LetBlock(tokenizer, compilerContext, False) else: # Let in for head, we need to add an implicit block # around the rest of the for. forBlock = builder.BLOCK__build(tokenizer, compilerContext.blockId++) compilerContext.stmtStack.push(forBlock) childNode = Variables(tokenizer, compilerContext, forBlock) else: childNode = Expression(tokenizer, compilerContext) compilerContext.inForLoopInit = False if childNode and tokenizer.match(IN): builder.FOR__rebuildForIn(node) builder.FOR__setObject(node, Expression(tokenizer, compilerContext), forBlock) if childNode.type == VAR or childNode.type == LET: if len(childNode) != 1: raise SyntaxError("Invalid for..in left-hand side", tokenizer) builder.FOR__setIterator(node, childNode[0], childNode, forBlock) else: builder.FOR__setIterator(node, childNode, null, forBlock) else: builder.FOR__setSetup(node, childNode) tokenizer.mustMatch(SEMICOLON) if node.isEach: raise SyntaxError("Invalid for each..in loop") builder.FOR__setCondition(node, (tokenizer.peek() == SEMICOLON) ? null : Expression(tokenizer, compilerContext)) tokenizer.mustMatch(SEMICOLON) builder.FOR__setUpdate(node, (tokenizer.peek() == RIGHT_PAREN) ? null : Expression(tokenizer, compilerContext)) tokenizer.mustMatch(RIGHT_PAREN) builder.FOR__setBody(node, nest(tokenizer, compilerContext, node, Statement)) if forBlock: builder.BLOCK__finish(forBlock) compilerContext.stmtStack.pop() builder.FOR__finish(node) return node elif tokenType == WHILE: node = builder.WHILE__build(tokenizer) builder.WHILE__setCondition(node, ParenExpression(tokenizer, compilerContext)) builder.WHILE__setBody(node, nest(tokenizer, compilerContext, node, Statement)) builder.WHILE__finish(node) return node elif tokenType == DO: node = builder.DO__build(tokenizer) builder.DO__setBody(node, nest(tokenizer, compilerContext, node, Statement, WHILE)) builder.DO__setCondition(node, ParenExpression(tokenizer, compilerContext)) builder.DO__finish(node) if not compilerContext.ecmaStrictMode: # <script language="JavaScript"> (without version hints) may need # automatic semicolon insertion without a newline after do-while. # See http://bugzilla.mozilla.org/show_bug.cgi?id=238945. tokenizer.match(SEMICOLON) return node # NO RETURN elif tokenType == BREAK or tokenType == CONTINUE: if tokenType == BREAK: node = builder.BREAK__build(tokenizer) else: node = builder.CONTINUE__build(tokenizer) if tokenizer.peekOnSameLine() == IDENTIFIER: tokenizer.get() if tokenType == BREAK: builder.BREAK__setLabel(node, tokenizer.token.value) else: builder.CONTINUE__setLabel(node, tokenizer.token.value) ss = compilerContext.stmtStack i = ss.length label = node.label if label: while True: i -= 1 if i < 0: raise SyntaxError("Label not found", tokenizer) if ss[i].label == label: break # # Both break and continue to label need to be handled specially # within a labeled loop, so that they target that loop. If not in # a loop, then break targets its labeled statement. Labels can be # nested so we skip all labels immediately enclosing the nearest # non-label statement. # while i < ss.length - 1 and ss[i+1].type == LABEL: i++ if i < ss.length - 1 and ss[i+1].isLoop: i++ elif tokenType == CONTINUE: raise SyntaxError("Invalid continue", tokenizer) else: while True: i -= 1 if i < 0: raise SyntaxError("Invalid " + ((tokenType == BREAK) ? "break" : "continue")) if ss[i].isLoop or (tokenType == BREAK and ss[i].type == SWITCH): break if tokenType == BREAK: builder.BREAK__setTarget(node, ss[i]) builder.BREAK__finish(node) else: builder.CONTINUE__setTarget(node, ss[i]) builder.CONTINUE__finish(node) # NO RETURN elif tokenType == TRY: node = builder.TRY__build(tokenizer) builder.TRY__setTryBlock(node, Block(tokenizer, compilerContext)) while tokenizer.match(CATCH): childNode = builder.CATCH__build(tokenizer) tokenizer.mustMatch(LEFT_PAREN) nextTokenType = tokenizer.get() if nextTokenType == LEFT_BRACKET or nextTokenType == LEFT_CURLY: # Destructured catch identifiers. tokenizer.unget() builder.CATCH__setVarName(childNode, DestructuringExpression(tokenizer, compilerContext, True)) elif nextTokenType == IDENTIFIER: builder.CATCH__setVarName(childNode, tokenizer.token.value) else: raise SyntaxError("Missing identifier in catch", tokenizer) if tokenizer.match(IF): if compilerContext.ecma3OnlyMode: raise SyntaxError("Illegal catch guard", tokenizer) if node.catchClauses.length and not node.catchClauses.top().guard: raise SyntaxError("Guarded catch after unguarded", tokenizer) builder.CATCH__setGuard(childNode, Expression(tokenizer, compilerContext)) else: builder.CATCH__setGuard(childNode, null) tokenizer.mustMatch(RIGHT_PAREN) builder.CATCH__setBlock(childNode, Block(tokenizer, compilerContext)) builder.CATCH__finish(childNode) builder.TRY__addCatch(node, childNode) builder.TRY__finishCatches(node) if tokenizer.match(FINALLY): builder.TRY__setFinallyBlock(node, Block(tokenizer, compilerContext)) if not node.catchClauses.length and not node.finallyBlock: raise SyntaxError("Invalid try statement", tokenizer) builder.TRY__finish(node) return node elif tokenType == CATCH or tokenType == FINALLY: raise SyntaxError(tokens[tokenType] + " without preceding try") elif tokenType == THROW: node = builder.THROW__build(tokenizer) builder.THROW__setException(node, Expression(tokenizer, compilerContext)) builder.THROW__finish(node) # NO RETURN elif tokenType == RETURN: node = returnOrYield(tokenizer, compilerContext) # NO RETURN elif tokenType == WITH: node = builder.WITH__build(tokenizer) builder.WITH__setObject(node, ParenExpression(tokenizer, compilerContext)) builder.WITH__setBody(node, nest(tokenizer, compilerContext, node, Statement)) builder.WITH__finish(node) return node elif tokenType == VAR or tokenType == CONST: node = Variables(tokenizer, compilerContext) # NO RETURN elif tokenType == LET: if tokenizer.peek() == LEFT_PAREN: node = LetBlock(tokenizer, compilerContext, True) else node = Variables(tokenizer, compilerContext) # NO RETURN elif tokenType == DEBUGGER: node = builder.DEBUGGER__build(tokenizer) # NO RETURN elif tokenType == NEWLINE or tokenType == SEMICOLON: node = builder.SEMICOLON__build(tokenizer) builder.SEMICOLON__setExpression(node, null) builder.SEMICOLON__finish(tokenizer) return node else: if tokenType == IDENTIFIER: tokenType = tokenizer.peek() # Labeled statement. if tokenType == COLON: label = tokenizer.token.value ss = compilerContext.stmtStack for (i = ss.length-1; i >= 0; --i) { if (ss[i].label == label) raise SyntaxError("Duplicate label") } tokenizer.get() node = builder.LABEL__build(tokenizer) builder.LABEL__setLabel(node, label) builder.LABEL__setStatement(node, nest(tokenizer, compilerContext, node, Statement)) builder.LABEL__finish(node) return node # Expression statement. # We unget the current token to parse the expression as a whole. node = builder.SEMICOLON__build(tokenizer) tokenizer.unget() builder.SEMICOLON__setExpression(node, Expression(tokenizer, compilerContext)) node.end = node.expression.end builder.SEMICOLON__finish(node) # NO RETURN MagicalSemicolon(tokenizer) return node
|
e84674e67dd665fd11d61644e7a7afffaad25771 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/e84674e67dd665fd11d61644e7a7afffaad25771/Parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8056,
12,
2316,
1824,
16,
5274,
1042,
4672,
3536,
6656,
279,
8056,
12123,
225,
22302,
273,
10123,
18,
588,
12,
5510,
13,
2089,
273,
5274,
1042,
18,
9574,
225,
468,
385,
3304,
364,
6317,
11463,
316,
279,
2145,
29270,
327,
11646,
16,
4543,
310,
326,
468,
2975,
23682,
12626,
8146,
1839,
333,
1620,
18,
225,
309,
22302,
422,
13690,
30,
468,
2030,
15961,
5879,
67,
4983,
3231,
9831,
1799,
3251,
434,
5274,
1042,
16,
7442,
3212,
67,
4983,
3302,
1404,
969,
1824,
18,
309,
5274,
1042,
18,
10589,
2624,
18,
2469,
405,
404,
30,
3846,
273,
7442,
3212,
67,
4983,
469,
30,
3846,
273,
2030,
15961,
5879,
67,
4983,
225,
327,
4284,
1852,
12,
2316,
1824,
16,
5274,
1042,
16,
1053,
16,
3846,
13,
282,
1327,
22302,
422,
9686,
67,
26314,
30,
756,
273,
28554,
12,
2316,
1824,
16,
5274,
1042,
13,
10123,
18,
11926,
2060,
12,
11847,
67,
26314,
13,
225,
327,
756,
282,
1327,
22302,
422,
11083,
30,
756,
273,
2089,
18,
5501,
972,
3510,
12,
2316,
1824,
13,
2089,
18,
5501,
972,
542,
3418,
12,
2159,
16,
453,
7892,
2300,
12,
2316,
1824,
16,
5274,
1042,
3719,
5274,
1042,
18,
10589,
2624,
18,
6206,
12,
2159,
13,
2089,
18,
5501,
972,
542,
20112,
1988,
12,
2159,
16,
8056,
12,
2316,
1824,
16,
5274,
1042,
3719,
225,
309,
10123,
18,
1916,
12,
2247,
1090,
4672,
2089,
18,
5501,
972,
542,
12427,
1988,
12,
2159,
16,
8056,
12,
2316,
1824,
16,
5274,
1042,
3719,
225,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8056,
12,
2316,
1824,
16,
5274,
1042,
4672,
3536,
6656,
279,
8056,
12123,
225,
22302,
273,
10123,
18,
588,
12,
5510,
13,
2089,
273,
5274,
1042,
18,
9574,
225,
468,
385,
3304,
364,
6317,
11463,
316,
279,
2145,
29270,
327,
11646,
16,
4543,
310,
326,
468,
2975,
23682,
12626,
8146,
1839,
333,
1620,
18,
225,
309,
22302,
422,
13690,
30,
468,
2030,
15961,
5879,
67,
4983,
3231,
9831,
1799,
3251,
434,
5274,
1042,
16,
7442,
3212,
67,
4983,
3302,
1404,
969,
1824,
18,
309,
5274,
1042,
18,
10589,
2624,
18,
2469,
405,
404,
30,
3846,
273,
7442,
3212,
67,
4983,
469,
30,
3846,
273,
2030,
15961,
5879,
67,
4983,
225,
327,
4284,
1852,
12,
2316,
1824,
16,
5274,
2
] |
callFromThread(self.buff.append,val)
|
callFromThread(self.buff.extend,val)
|
def process(self): ''' This is called in the 'source' thread, and just basically sucks the iterator, appending items back to the main thread. ''' from twisted.internet.reactor import callFromThread try: while 1: val = self.source.next() callFromThread(self.buff.append,val) except StopIteration: callFromThread(self.stop)
|
ba18f3b8e8bc43496892b7fe4507e1f8530cde36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ba18f3b8e8bc43496892b7fe4507e1f8530cde36/flow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
9163,
1220,
353,
2566,
316,
326,
296,
3168,
11,
2650,
16,
471,
2537,
23772,
1597,
363,
87,
326,
2775,
16,
19997,
1516,
1473,
358,
326,
2774,
2650,
18,
9163,
628,
2339,
25444,
18,
267,
14726,
18,
266,
3362,
1930,
745,
1265,
3830,
775,
30,
1323,
404,
30,
1244,
273,
365,
18,
3168,
18,
4285,
1435,
745,
1265,
3830,
12,
2890,
18,
20664,
18,
14313,
16,
1125,
13,
1335,
16179,
30,
745,
1265,
3830,
12,
2890,
18,
5681,
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,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,
9163,
1220,
353,
2566,
316,
326,
296,
3168,
11,
2650,
16,
471,
2537,
23772,
1597,
363,
87,
326,
2775,
16,
19997,
1516,
1473,
358,
326,
2774,
2650,
18,
9163,
628,
2339,
25444,
18,
267,
14726,
18,
266,
3362,
1930,
745,
1265,
3830,
775,
30,
1323,
404,
30,
1244,
273,
365,
18,
3168,
18,
4285,
1435,
745,
1265,
3830,
12,
2890,
18,
20664,
18,
14313,
16,
1125,
13,
1335,
16179,
30,
745,
1265,
3830,
12,
2890,
18,
5681,
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
] |
self.moviePlayerDashboard.setGeometry(QRect(0,19,1087,29))
|
self.moviePlayerDashboard.setGeometry(QRect(0,19,1084,29))
|
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
|
e860bf4c1454394fa1c8688dfa1029ac4ad0a5f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e860bf4c1454394fa1c8688dfa1029ac4ad0a5f8/MainWindowUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
2327,
5190,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
2327,
5190,
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
] |
mkdir -p $RPM_BUILD_ROOT/usr/lib/PYTHONV/lib-dynload mkdir -p $RPM_BUILD_ROOT/usr/lib/PYTHONV/site-packages
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/$PYTHONV/lib-dynload mkdir -p $RPM_BUILD_ROOT/usr/lib/$PYTHONV/site-packages
|
def printUsage(): sys.exit("usage: maketarball [version]")
|
436ae20d95e5984ad6e1c983024fc0d697d1fb0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/436ae20d95e5984ad6e1c983024fc0d697d1fb0b/maketarball.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
5357,
13332,
2589,
18,
8593,
2932,
9167,
30,
29796,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
5357,
13332,
2589,
18,
8593,
2932,
9167,
30,
29796,
278,
23846,
306,
1589,
4279,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 dotG.get_node(each_edge.get_destination()):
|
if not G.has_node(each_edge.get_destination()):
|
def read(string): """ Read a graph from a string in Dot language and return it. Nodes and edges specified in the input will be added to the current graph. @type string: string @param string: Input string in Dot format specifying a graph. @rtype: graph @return: Graph """ dotG = pydot.graph_from_dot_data(string) if (dotG.get_type() == "graph"): G = graph() elif (dotG.get_type() == "digraph"): G = digraph() elif (dotG.get_type() == "hypergraph"): return read_hypergraph(string) else: raise InvalidGraphType # Read nodes... # Note: If the nodes aren't explicitly listed, they need to be for each_node in dotG.get_nodes(): G.add_node(each_node.get_name()) for each_attr_key, each_attr_val in each_node.get_attributes().items(): G.add_node_attribute(each_node.get_name(), (each_attr_key, each_attr_val)) # Read edges... for each_edge in dotG.get_edges(): # Check if the nodes have been added if not dotG.get_node(each_edge.get_source()): G.add_node(each_edge.get_source()) if not dotG.get_node(each_edge.get_destination()): G.add_node(each_edge.get_destination()) # See if there's a weight if 'weight' in each_edge.get_attributes().keys(): _wt = each_edge.get_attributes()['weight'] else: _wt = 1 # See if there is a label if 'label' in each_edge.get_attributes().keys(): _label = each_edge.get_attributes()['label'] else: _label = '' G.add_edge((each_edge.get_source(), each_edge.get_destination()), wt = _wt, label = _label) for each_attr_key, each_attr_val in each_edge.get_attributes().items(): if not each_attr_key in ['weight', 'label']: G.add_edge_attribute((each_edge.get_source(), each_edge.get_destination()), \ (each_attr_key, each_attr_val)) return G
|
8291004b970248038af24e4dfc5dfd1d52821d79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4687/8291004b970248038af24e4dfc5dfd1d52821d79/dot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
1080,
4672,
3536,
2720,
279,
2667,
628,
279,
533,
316,
17502,
2653,
471,
327,
518,
18,
14037,
471,
5231,
1269,
316,
326,
810,
903,
506,
3096,
358,
326,
783,
2667,
18,
225,
632,
723,
225,
533,
30,
533,
632,
891,
533,
30,
2741,
533,
316,
17502,
740,
13664,
279,
2667,
18,
225,
632,
86,
723,
30,
2667,
632,
2463,
30,
5601,
3536,
225,
3928,
43,
273,
2395,
9811,
18,
4660,
67,
2080,
67,
9811,
67,
892,
12,
1080,
13,
225,
309,
261,
9811,
43,
18,
588,
67,
723,
1435,
422,
315,
4660,
6,
4672,
611,
273,
2667,
1435,
1327,
261,
9811,
43,
18,
588,
67,
723,
1435,
422,
315,
5606,
1483,
6,
4672,
611,
273,
3097,
1483,
1435,
1327,
261,
9811,
43,
18,
588,
67,
723,
1435,
422,
315,
17203,
4660,
6,
4672,
327,
855,
67,
17203,
4660,
12,
1080,
13,
469,
30,
1002,
1962,
4137,
559,
225,
468,
2720,
2199,
2777,
468,
3609,
30,
971,
326,
2199,
11526,
1404,
8122,
12889,
16,
2898,
1608,
358,
506,
364,
1517,
67,
2159,
316,
3928,
43,
18,
588,
67,
4690,
13332,
611,
18,
1289,
67,
2159,
12,
13798,
67,
2159,
18,
588,
67,
529,
10756,
364,
1517,
67,
1747,
67,
856,
16,
1517,
67,
1747,
67,
1125,
316,
1517,
67,
2159,
18,
588,
67,
4350,
7675,
3319,
13332,
611,
18,
1289,
67,
2159,
67,
4589,
12,
13798,
67,
2159,
18,
588,
67,
529,
9334,
261,
13798,
67,
1747,
67,
856,
16,
1517,
67,
1747,
67,
1125,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
1080,
4672,
3536,
2720,
279,
2667,
628,
279,
533,
316,
17502,
2653,
471,
327,
518,
18,
14037,
471,
5231,
1269,
316,
326,
810,
903,
506,
3096,
358,
326,
783,
2667,
18,
225,
632,
723,
225,
533,
30,
533,
632,
891,
533,
30,
2741,
533,
316,
17502,
740,
13664,
279,
2667,
18,
225,
632,
86,
723,
30,
2667,
632,
2463,
30,
5601,
3536,
225,
3928,
43,
273,
2395,
9811,
18,
4660,
67,
2080,
67,
9811,
67,
892,
12,
1080,
13,
225,
309,
261,
9811,
43,
18,
588,
67,
723,
1435,
422,
315,
4660,
6,
4672,
611,
273,
2667,
1435,
1327,
261,
9811,
43,
18,
588,
67,
723,
1435,
422,
315,
5606,
1483,
6,
4672,
611,
273,
3097,
2
] |
``level`` - (integer): the level. ``weight`` - (integer): the weight.
|
- ``level`` - (integer): the level. - ``weight`` - (integer): the weight.
|
def __repr__(self): """ String representation.
|
e265517a575a65b09b817a2b1feaf73c31f0ba93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e265517a575a65b09b817a2b1feaf73c31f0ba93/manin_symbols.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
514,
4335,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
msg = "The combination %s is not unique in the frame cache file" % str(key)
|
msg = "The combination %s is not unique in the frame cache file" \ % str(key)
|
def parse(self): """ Each line of the frame cache file is like the following:
|
a7bd5749d7e3884dc25892a5f5265bab9a159fab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a7bd5749d7e3884dc25892a5f5265bab9a159fab/pipeline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
3536,
8315,
980,
434,
326,
2623,
1247,
585,
353,
3007,
326,
3751,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
3536,
8315,
980,
434,
326,
2623,
1247,
585,
353,
3007,
326,
3751,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._active = active
|
self._active = (active < len(self._items) and [active] or [1])[0]
|
def _set_active(self, active): if active == self._active: return oldactive = self._active self._active = active self.emit("changed", oldactive) text, iconname = self._items[active] self.label.set_markup (self.markup[0] + text + self.markup[1]) if iconname != None: self.hbox.set_spacing(6) self.image.set_from_pixbuf(gtk.icon_theme_get_default().load_icon ( iconname, 12, gtk.ICON_LOOKUP_USE_BUILTIN)) else: self.hbox.set_spacing(0) self.image.clear()
|
a71c98b24e28db1cc4f2f8b451016507db2a40f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/a71c98b24e28db1cc4f2f8b451016507db2a40f1/ToggleComboBox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
3535,
12,
2890,
16,
2695,
4672,
309,
2695,
422,
365,
6315,
3535,
30,
327,
1592,
3535,
273,
365,
6315,
3535,
225,
365,
6315,
3535,
273,
261,
3535,
411,
562,
12,
2890,
6315,
3319,
13,
471,
306,
3535,
65,
578,
306,
21,
5717,
63,
20,
65,
365,
18,
18356,
2932,
6703,
3113,
1592,
3535,
13,
977,
16,
4126,
529,
273,
365,
6315,
3319,
63,
3535,
65,
365,
18,
1925,
18,
542,
67,
15056,
261,
2890,
18,
15056,
63,
20,
65,
397,
977,
397,
365,
18,
15056,
63,
21,
5717,
309,
4126,
529,
480,
599,
30,
365,
18,
76,
2147,
18,
542,
67,
14080,
12,
26,
13,
365,
18,
2730,
18,
542,
67,
2080,
67,
14861,
4385,
12,
4521,
79,
18,
3950,
67,
7997,
67,
588,
67,
1886,
7675,
945,
67,
3950,
261,
4126,
529,
16,
2593,
16,
22718,
18,
21745,
67,
1502,
31581,
67,
8001,
67,
3000,
2627,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
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,
542,
67,
3535,
12,
2890,
16,
2695,
4672,
309,
2695,
422,
365,
6315,
3535,
30,
327,
1592,
3535,
273,
365,
6315,
3535,
225,
365,
6315,
3535,
273,
261,
3535,
411,
562,
12,
2890,
6315,
3319,
13,
471,
306,
3535,
65,
578,
306,
21,
5717,
63,
20,
65,
365,
18,
18356,
2932,
6703,
3113,
1592,
3535,
13,
977,
16,
4126,
529,
273,
365,
6315,
3319,
63,
3535,
65,
365,
18,
1925,
18,
542,
67,
15056,
261,
2890,
18,
15056,
63,
20,
65,
397,
977,
397,
365,
18,
15056,
63,
21,
5717,
309,
4126,
529,
480,
599,
30,
365,
18,
76,
2147,
18,
542,
67,
14080,
12,
26,
13,
365,
18,
2730,
18,
542,
67,
2080,
67,
14861,
4385,
2
] |
else
|
else:
|
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 914) else quickfix.StringField.__init__(self, 914, 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,
2468,
3461,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
3461,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
3461,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
3461,
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
] |
'selection': ('selection', lambda s: [encode(e[1]) for e in (not callable(s) and s) or (callable(s) and s(None, cr, uid, {})) or [] ]),
|
'selection': ('selection', lambda s: [encode(e[1]) for e in ((not callable(s)) and s or [])] ),
|
for state_name, state_def in obj2.states.iteritems(): if 'result' in state_def: result = state_def['result'] if result['type'] != 'form': continue name = "%s,%s" % (encode(obj.wiz_name), state_name) def_params = { 'string': ('wizard_field', lambda s: [encode(s)]), 'selection': ('selection', lambda s: [encode(e[1]) for e in
|
d9460e53c6365d15bfe8d508e8a55f4d1b27e15f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d9460e53c6365d15bfe8d508e8a55f4d1b27e15f/translate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
364,
919,
67,
529,
16,
919,
67,
536,
316,
1081,
22,
18,
7992,
18,
2165,
3319,
13332,
309,
296,
2088,
11,
316,
919,
67,
536,
30,
563,
273,
919,
67,
536,
3292,
2088,
3546,
309,
563,
3292,
723,
3546,
480,
296,
687,
4278,
1324,
508,
273,
2213,
87,
15529,
87,
6,
738,
261,
3015,
12,
2603,
18,
91,
452,
67,
529,
3631,
919,
67,
529,
13,
225,
1652,
67,
2010,
273,
288,
296,
1080,
4278,
7707,
31837,
67,
1518,
2187,
3195,
272,
30,
306,
3015,
12,
87,
25887,
3631,
296,
10705,
4278,
7707,
10705,
2187,
3195,
272,
30,
306,
3015,
12,
73,
63,
21,
5717,
364,
425,
316,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
364,
919,
67,
529,
16,
919,
67,
536,
316,
1081,
22,
18,
7992,
18,
2165,
3319,
13332,
309,
296,
2088,
11,
316,
919,
67,
536,
30,
563,
273,
919,
67,
536,
3292,
2088,
3546,
309,
563,
3292,
723,
3546,
480,
296,
687,
4278,
1324,
508,
273,
2213,
87,
15529,
87,
6,
738,
261,
3015,
12,
2603,
18,
91,
452,
67,
529,
3631,
919,
67,
529,
13,
225,
1652,
67,
2010,
273,
288,
296,
1080,
4278,
7707,
31837,
67,
1518,
2187,
3195,
272,
30,
306,
3015,
12,
87,
25887,
3631,
296,
10705,
4278,
7707,
10705,
2187,
3195,
272,
30,
306,
3015,
12,
73,
63,
21,
5717,
364,
425,
316,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
flags = [] if _ignored_flags is None: _ignored_flags = [] if not isinstance(flags, dict): flags = dict([(s, int(s in flags)) for s in _signals]) del s if traps is not None and not isinstance(traps, dict): traps = dict([(s, int(s in traps)) for s in _signals]) del s for name, val in locals().items(): if val is None: setattr(self, name, _copy.copy(getattr(DefaultContext, name))) else: setattr(self, name, val) del self.self
|
self.flags = dict.fromkeys(_signals, 0) elif not isinstance(flags, dict): self.flags = dict((s, int(s in flags)) for s in _signals) else: self.flags = flags
|
def __init__(self, prec=None, rounding=None, traps=None, flags=None, Emin=None, Emax=None, capitals=None, _clamp=0, _ignored_flags=None): if flags is None: flags = [] if _ignored_flags is None: _ignored_flags = [] if not isinstance(flags, dict): flags = dict([(s, int(s in flags)) for s in _signals]) del s if traps is not None and not isinstance(traps, dict): traps = dict([(s, int(s in traps)) for s in _signals]) del s for name, val in locals().items(): if val is None: setattr(self, name, _copy.copy(getattr(DefaultContext, name))) else: setattr(self, name, val) del self.self
|
221364a82189c9c29de01bb6c571858154f431af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/221364a82189c9c29de01bb6c571858154f431af/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13382,
33,
7036,
16,
13885,
33,
7036,
16,
1284,
1121,
33,
7036,
16,
2943,
33,
7036,
16,
512,
1154,
33,
7036,
16,
512,
1896,
33,
7036,
16,
3523,
305,
1031,
33,
7036,
16,
389,
830,
931,
33,
20,
16,
389,
24055,
67,
7133,
33,
7036,
4672,
309,
2943,
353,
599,
30,
2943,
273,
5378,
309,
389,
24055,
67,
7133,
353,
599,
30,
389,
24055,
67,
7133,
273,
5378,
309,
486,
1549,
12,
7133,
16,
2065,
4672,
2943,
273,
2065,
3816,
12,
87,
16,
509,
12,
87,
316,
2943,
3719,
364,
272,
316,
389,
29659,
5717,
1464,
272,
309,
1284,
1121,
353,
486,
599,
471,
486,
1549,
12,
313,
6679,
16,
2065,
4672,
1284,
1121,
273,
2065,
3816,
12,
87,
16,
509,
12,
87,
316,
1284,
1121,
3719,
364,
272,
316,
389,
29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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13382,
33,
7036,
16,
13885,
33,
7036,
16,
1284,
1121,
33,
7036,
16,
2943,
33,
7036,
16,
512,
1154,
33,
7036,
16,
512,
1896,
33,
7036,
16,
3523,
305,
1031,
33,
7036,
16,
389,
830,
931,
33,
20,
16,
389,
24055,
67,
7133,
33,
7036,
4672,
309,
2943,
353,
599,
30,
2943,
273,
5378,
309,
389,
24055,
67,
7133,
353,
599,
30,
389,
24055,
67,
7133,
273,
5378,
309,
486,
1549,
12,
7133,
16,
2065,
4672,
2943,
273,
2065,
3816,
12,
87,
16,
509,
12,
87,
316,
2943,
3719,
364,
272,
316,
389,
29659,
5717,
1464,
272,
309,
1284,
1121,
353,
486,
599,
471,
486,
1549,
12,
313,
6679,
16,
2065,
4672,
2
] |
self.assertEquals("\x00\x00\x00\x00\x00\x11\x11\x00", ex.object)
|
self.assertEquals(b"\x00\x00\x00\x00\x00\x11\x11\x00", ex.object)
|
def test_decode_error_attributes(self): if sys.maxunicode > 0xffff: try: "\x00\x00\x00\x00\x00\x11\x11\x00".decode("unicode_internal") except UnicodeDecodeError as ex: self.assertEquals("unicode_internal", ex.encoding) self.assertEquals("\x00\x00\x00\x00\x00\x11\x11\x00", ex.object) self.assertEquals(4, ex.start) self.assertEquals(8, ex.end) else: self.fail()
|
092a225a4de9b168e541e3c57b1bee075f6382a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/092a225a4de9b168e541e3c57b1bee075f6382a8/test_codecs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3922,
67,
1636,
67,
4350,
12,
2890,
4672,
309,
2589,
18,
1896,
9124,
405,
374,
20431,
30,
775,
30,
1548,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
2499,
64,
92,
2499,
64,
92,
713,
9654,
3922,
2932,
9124,
67,
7236,
7923,
1335,
26311,
487,
431,
30,
365,
18,
11231,
8867,
2932,
9124,
67,
7236,
3113,
431,
18,
5999,
13,
365,
18,
11231,
8867,
12,
70,
12691,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
2499,
64,
92,
2499,
64,
92,
713,
3113,
431,
18,
1612,
13,
365,
18,
11231,
8867,
12,
24,
16,
431,
18,
1937,
13,
365,
18,
11231,
8867,
12,
28,
16,
431,
18,
409,
13,
469,
30,
365,
18,
6870,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3922,
67,
1636,
67,
4350,
12,
2890,
4672,
309,
2589,
18,
1896,
9124,
405,
374,
20431,
30,
775,
30,
1548,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
2499,
64,
92,
2499,
64,
92,
713,
9654,
3922,
2932,
9124,
67,
7236,
7923,
1335,
26311,
487,
431,
30,
365,
18,
11231,
8867,
2932,
9124,
67,
7236,
3113,
431,
18,
5999,
13,
365,
18,
11231,
8867,
12,
70,
12691,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
2499,
64,
92,
2499,
64,
92,
713,
3113,
431,
18,
1612,
13,
365,
18,
11231,
8867,
12,
24,
16,
431,
18,
1937,
13,
365,
18,
2
] |
company_vat = obj_cmpny.partner_id.vat
|
company_vat = obj_cmpny.partner_id.vat
|
def _create_xml(self, cr, uid, data, context): datas=[] # now wizard will use user->company instead of directly company from res.company
|
ae21cdb0eeaa8df585a2f1316935223d84ff3fe5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/ae21cdb0eeaa8df585a2f1316935223d84ff3fe5/partner_vat_listing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
5386,
33,
8526,
468,
2037,
24204,
903,
999,
729,
2122,
16840,
3560,
434,
5122,
9395,
628,
400,
18,
16840,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
5386,
33,
8526,
468,
2037,
24204,
903,
999,
729,
2122,
16840,
3560,
434,
5122,
9395,
628,
400,
18,
16840,
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
] |
@echo
|
def make_atomic_category(atom): return AtomicCategory(atom)
|
ba3220a2c6b52f045b539ed94d094a73aa2cc2b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8383/ba3220a2c6b52f045b539ed94d094a73aa2cc2b9/catlab.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
27718,
67,
4743,
12,
7466,
4672,
327,
11553,
4457,
12,
7466,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1221,
67,
27718,
67,
4743,
12,
7466,
4672,
327,
11553,
4457,
12,
7466,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
pass
|
ncvar2.assignValue(ncvar.getValue())
|
def delete_ncattdimvar(self,ncf,ncattrs=[],ncdims=[],ncvars=[]): ''' helper function to delete attributes, dimensions and variables in a netcdffile
|
24090606542c2371b096582dbd2f096326c13961 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/24090606542c2371b096582dbd2f096326c13961/jacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
3509,
1401,
12,
2890,
16,
82,
8522,
16,
14202,
7039,
22850,
6487,
14202,
8550,
22850,
6487,
14202,
4699,
33,
8526,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
5769,
471,
3152,
316,
279,
2901,
24799,
768,
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,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7039,
22850,
6487,
14202,
8550,
22850,
6487,
14202,
4699,
33,
8526,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
5769,
471,
3152,
316,
279,
2901,
24799,
768,
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
] |
... sage: print "Test finished !" Test finished !
|
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
|
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
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
] |
|
message = "I payed " + tr.toUser.nickname() + " $" + str(tr.amount)
|
message = "you payed " + tr.toUser.nickname() + " $" + str(tr.amount)
|
def get(self): # Get user, group and me user = users.get_current_user() group = Group.get(self.request.get("group")) goToHistoryTab = self.request.get("goToHistoryTab") me = Membership.gql("WHERE group = :1 AND user = :2", group, user)[0] # Calculate how much I owe or they owe me if me.balance != 0: if me.balance > 0: members = Membership.gql("WHERE group = :1 AND balance < 0 ORDER BY balance", group) sign = 1 else: members = Membership.gql("WHERE group = :1 AND balance > 0 ORDER BY balance DESC", group) sign = -1 balance = me.balance * sign result = [] for member in members: if balance <= 0: break result.append({'user': member.user, 'amount': min(balance, member.balance * -sign)}) balance -= member.balance * -sign else: sign = 0 result = [] # Get transaction history # TODO filtrar por grupo y por mi! try: transactionCount = int(self.request.get('transactionCount', default_value=10)) transactions_query_from = Transaction.gql("WHERE group = :1 AND fromUser = :2 ORDER BY date DESC", group, user) transactions_from = transactions_query_from.fetch(transactionCount) transactions_query_to = Transaction.gql("WHERE group = :1 AND toUser = :2 ORDER BY date DESC", group, user) transactions_to = transactions_query_to.fetch(transactionCount) transactions = transactions_from + transactions_to transactions.sort(cmp = compareTransactionsByDate) transactions = transactions[0:transactionCount] messages = [] for tr in transactions: if (tr.type == "debt"): if (tr.fromUser == user): message = "I owed " + tr.toUser.nickname() + " $" + str(tr.amount) else: message = tr.fromUser.nickname() + " owed me $" + str(tr.amount) if (tr.type == "payment"): if (tr.fromUser == user): message = "I payed " + tr.toUser.nickname() + " $" + str(tr.amount) else: message = tr.fromUser.nickname() + " payed me $" + str(tr.amount) if (tr.type == "rejectedDebt"): if (tr.fromUser == user): message = "I rejected from " + tr.toUser.nickname() + " a debt of $" + str(tr.amount) else: message = tr.fromUser.nickname() + " rejected you a debt of $" + str(tr.amount) if (tr.type == "rejectedPayment"): if (tr.fromUser == user): message = "I rejected from " + tr.toUser.nickname() + " a payment of $" + str(tr.amount) else: message = tr.fromUser.nickname() + " rejected you a payment of $" + str(tr.amount) if ( len(tr.reason) > 0 ): message = message + " due to " + tr.reason message = niceDate(tr.date) + " " + message messages.append(message) transactions = messages validationError = False validationMessage = '' except BaseException, e: transactionCount = 0 transactions = [] validationError = True validationMessage = '(This should be a number)' # Get all members members = Membership.gql("WHERE user != :1 AND group = :2", user, group) members = members.fetch(100000) hasMembers = len(members) > 0 template_values = { 'balance': me.balance * sign, 'balancePositive': sign > 0, 'balanceIsZero': sign == 0, 'result': result, 'currentUser': user, 'members': members, 'hasMembers': hasMembers, 'group': group, 'hasTransactions': len(transactions) > 0, 'transactionCount': transactionCount, 'transactions': transactions, 'validationError': validationError, 'validationMessage': validationMessage, 'groups': self.getGroups(user), 'message': self.request.get("msg"), 'goToHistoryTab': goToHistoryTab, 'signout_url': users.create_logout_url("/"), 'hasMoreThanOneItem': len(result) > 1 } path = os.path.join(os.path.dirname(__file__), 'group.html') self.response.out.write(template.render(path, template_values))
|
d0b6870ff1f7c3afd9b6c96525cfdbf2d1795c20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3133/d0b6870ff1f7c3afd9b6c96525cfdbf2d1795c20/groupHandlers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
468,
968,
729,
16,
1041,
471,
1791,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
1041,
273,
3756,
18,
588,
12,
2890,
18,
2293,
18,
588,
2932,
1655,
6,
3719,
1960,
774,
5623,
5661,
273,
365,
18,
2293,
18,
588,
2932,
3240,
774,
5623,
5661,
7923,
1791,
273,
28100,
18,
75,
1217,
2932,
12299,
1041,
273,
294,
21,
4116,
729,
273,
294,
22,
3113,
1041,
16,
729,
25146,
20,
65,
225,
468,
9029,
3661,
9816,
467,
320,
1814,
578,
2898,
320,
1814,
1791,
309,
1791,
18,
12296,
480,
374,
30,
309,
1791,
18,
12296,
405,
374,
30,
4833,
273,
28100,
18,
75,
1217,
2932,
12299,
1041,
273,
294,
21,
4116,
11013,
411,
374,
10205,
6953,
11013,
3113,
1041,
13,
1573,
273,
404,
469,
30,
4833,
273,
28100,
18,
75,
1217,
2932,
12299,
1041,
273,
294,
21,
4116,
11013,
405,
374,
10205,
6953,
11013,
14326,
3113,
1041,
13,
1573,
273,
300,
21,
225,
11013,
273,
1791,
18,
12296,
380,
1573,
563,
273,
5378,
225,
364,
3140,
316,
4833,
30,
309,
11013,
1648,
374,
30,
898,
563,
18,
6923,
12590,
11,
1355,
4278,
3140,
18,
1355,
16,
296,
8949,
4278,
1131,
12,
12296,
16,
3140,
18,
12296,
380,
300,
2977,
13,
6792,
11013,
3947,
3140,
18,
12296,
380,
300,
2977,
469,
30,
1573,
273,
374,
563,
273,
5378,
225,
468,
968,
2492,
4927,
468,
2660,
661,
313,
297,
22471,
3821,
416,
83,
677,
22471,
12837,
5,
775,
30,
2492,
1380,
273,
509,
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,
12,
2890,
4672,
468,
968,
729,
16,
1041,
471,
1791,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
1041,
273,
3756,
18,
588,
12,
2890,
18,
2293,
18,
588,
2932,
1655,
6,
3719,
1960,
774,
5623,
5661,
273,
365,
18,
2293,
18,
588,
2932,
3240,
774,
5623,
5661,
7923,
1791,
273,
28100,
18,
75,
1217,
2932,
12299,
1041,
273,
294,
21,
4116,
729,
273,
294,
22,
3113,
1041,
16,
729,
25146,
20,
65,
225,
468,
9029,
3661,
9816,
467,
320,
1814,
578,
2898,
320,
1814,
1791,
309,
1791,
18,
12296,
480,
374,
30,
309,
1791,
18,
12296,
405,
374,
30,
4833,
273,
28100,
18,
75,
1217,
2932,
12299,
1041,
273,
294,
21,
4116,
11013,
411,
2
] |
else:
|
elif type==2:
|
def getText(self,type=0,addparentheses=True): assert type>=0 and type<=2, 'Argument "type" must be 0 (identifier), 1 (short name) or 2 (long name).' if type==0 or type==1: # Return the short name of the object (optionally with slice specification). if type==0 and self.name!=None: res = self.name else: res = self.args[0].getName() if self.slice!=None: res += LazyExpression.slices2string(self.slice) return res else: # Return the long name of the object (optionally with slice specification). res = self.args[0].getLongName() if self.slice!=None: res += LazyExpression.slices2prettystring(self.slice,self.args[0].getDimensions()) return res
|
fd79e95faa47d373922744d73eedbf0df1db28c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/fd79e95faa47d373922744d73eedbf0df1db28c3/expressions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6701,
12,
2890,
16,
723,
33,
20,
16,
1289,
13012,
7915,
281,
33,
5510,
4672,
1815,
618,
34,
33,
20,
471,
618,
32,
33,
22,
16,
296,
1379,
315,
723,
6,
1297,
506,
374,
261,
5644,
3631,
404,
261,
6620,
508,
13,
578,
576,
261,
5748,
508,
14851,
309,
618,
631,
20,
578,
618,
631,
21,
30,
468,
2000,
326,
3025,
508,
434,
326,
733,
261,
3482,
1230,
598,
2788,
7490,
2934,
309,
618,
631,
20,
471,
365,
18,
529,
5,
33,
7036,
30,
400,
273,
365,
18,
529,
1327,
618,
631,
22,
30,
400,
273,
365,
18,
1968,
63,
20,
8009,
17994,
1435,
309,
365,
18,
6665,
5,
33,
7036,
30,
400,
1011,
12805,
2300,
18,
21562,
22,
1080,
12,
2890,
18,
6665,
13,
327,
400,
1327,
618,
631,
22,
30,
468,
2000,
326,
1525,
508,
434,
326,
733,
261,
3482,
1230,
598,
2788,
7490,
2934,
400,
273,
365,
18,
1968,
63,
20,
8009,
588,
3708,
461,
1435,
309,
365,
18,
6665,
5,
33,
7036,
30,
400,
1011,
12805,
2300,
18,
21562,
22,
19073,
1080,
12,
2890,
18,
6665,
16,
2890,
18,
1968,
63,
20,
8009,
588,
10796,
10756,
327,
400,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6701,
12,
2890,
16,
723,
33,
20,
16,
1289,
13012,
7915,
281,
33,
5510,
4672,
1815,
618,
34,
33,
20,
471,
618,
32,
33,
22,
16,
296,
1379,
315,
723,
6,
1297,
506,
374,
261,
5644,
3631,
404,
261,
6620,
508,
13,
578,
576,
261,
5748,
508,
14851,
309,
618,
631,
20,
578,
618,
631,
21,
30,
468,
2000,
326,
3025,
508,
434,
326,
733,
261,
3482,
1230,
598,
2788,
7490,
2934,
309,
618,
631,
20,
471,
365,
18,
529,
5,
33,
7036,
30,
400,
273,
365,
18,
529,
1327,
618,
631,
22,
30,
400,
273,
365,
18,
1968,
63,
20,
8009,
17994,
1435,
309,
365,
18,
6665,
5,
33,
7036,
30,
400,
1011,
12805,
2300,
18,
21562,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.