rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
1.0000000000*I
|
1.0000000*I
|
def sqrt(self): """ EXAMPLES: sage: C, i = ComplexField(30).objgen() sage: i.sqrt() 0.70710678119 + 0.70710678119*I sage: (1+i).sqrt() 1.0986841135 + 0.45508986060*I sage: (C(-1)).sqrt() 1.0000000000*I sage: i = ComplexField(200).0 sage: i.sqrt() 0.70710678118654752440084436210484903928483593768847403658833981 + 0.70710678118654752440084436210484903928483593768847403658833981*I # 32-bit 0.70710678118654752440084436210484903928483593768847403658833981 + 0.70710678118654752440084436210484903928483593768847403658833981*I # 64-bit
|
0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5700,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
385,
16,
277,
273,
16060,
974,
12,
5082,
2934,
2603,
4507,
1435,
272,
410,
30,
277,
18,
24492,
1435,
374,
18,
7301,
27,
22135,
8285,
23635,
397,
374,
18,
7301,
27,
22135,
8285,
23635,
14,
45,
272,
410,
30,
261,
21,
15,
77,
2934,
24492,
1435,
404,
18,
5908,
5292,
5193,
2499,
4763,
397,
374,
18,
24,
2539,
20,
6675,
28,
4848,
4848,
14,
45,
272,
410,
30,
261,
39,
19236,
21,
13,
2934,
24492,
1435,
404,
18,
17877,
14,
45,
272,
410,
30,
277,
273,
16060,
974,
12,
6976,
2934,
20,
272,
410,
30,
277,
18,
24492,
1435,
374,
18,
7301,
27,
22135,
8285,
2499,
5292,
6564,
5877,
3247,
16010,
5193,
24,
5718,
22,
21869,
5193,
29,
4630,
9975,
5193,
28,
4763,
29,
6418,
9470,
5193,
5608,
4630,
9222,
5482,
3707,
10689,
21,
397,
374,
18,
7301,
27,
22135,
8285,
2499,
5292,
6564,
5877,
3247,
16010,
5193,
24,
5718,
22,
21869,
5193,
29,
4630,
9975,
5193,
28,
4763,
29,
6418,
9470,
5193,
5608,
4630,
9222,
5482,
3707,
10689,
21,
14,
45,
282,
468,
3847,
17,
3682,
374,
18,
7301,
27,
22135,
8285,
2499,
5292,
6564,
5877,
3247,
16010,
5193,
24,
5718,
22,
21869,
5193,
29,
4630,
9975,
5193,
28,
4763,
29,
6418,
9470,
5193,
5608,
4630,
9222,
5482,
3707,
10689,
21,
397,
374,
18,
7301,
27,
22135,
8285,
2499,
5292,
6564,
5877,
3247,
16010,
5193,
24,
5718,
22,
21869,
5193,
29,
4630,
9975,
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,
5700,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
385,
16,
277,
273,
16060,
974,
12,
5082,
2934,
2603,
4507,
1435,
272,
410,
30,
277,
18,
24492,
1435,
374,
18,
7301,
27,
22135,
8285,
23635,
397,
374,
18,
7301,
27,
22135,
8285,
23635,
14,
45,
272,
410,
30,
261,
21,
15,
77,
2934,
24492,
1435,
404,
18,
5908,
5292,
5193,
2499,
4763,
397,
374,
18,
24,
2539,
20,
6675,
28,
4848,
4848,
14,
45,
272,
410,
30,
261,
39,
19236,
21,
13,
2934,
24492,
1435,
404,
18,
17877,
14,
45,
272,
410,
30,
277,
273,
16060,
974,
12,
6976,
2934,
20,
272,
410,
30,
277,
18,
24492,
1435,
374,
18,
7301,
27,
22135,
8285,
2499,
2
] |
msg = msg + " List reduced from %r to %r due to restriction <%r>\n" % ( len(list), len(new_list), sel)
|
msg += " List reduced from %r to %r due to restriction <%r>\n" % ( len(list), len(new_list), sel)
|
def eval_print_amount(self, sel, list, msg): new_list = list if type(sel) == type(""): new_list = [] for func in list: if re.search(sel, func_std_string(func)): new_list.append(func) else: count = len(list) if type(sel) == type(1.0) and 0.0 <= sel < 1.0: count = int(count * sel + .5) new_list = list[:count] elif type(sel) == type(1) and 0 <= sel < count: count = sel new_list = list[:count] if len(list) != len(new_list): msg = msg + " List reduced from %r to %r due to restriction <%r>\n" % ( len(list), len(new_list), sel)
|
401c4c60c38ffdcfe94d253cbc3c890a8ec5830d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/401c4c60c38ffdcfe94d253cbc3c890a8ec5830d/pstats.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
67,
1188,
67,
8949,
12,
2890,
16,
357,
16,
666,
16,
1234,
4672,
394,
67,
1098,
273,
666,
309,
618,
12,
1786,
13,
422,
618,
2932,
6,
4672,
394,
67,
1098,
273,
5378,
364,
1326,
316,
666,
30,
309,
283,
18,
3072,
12,
1786,
16,
1326,
67,
5084,
67,
1080,
12,
644,
3719,
30,
394,
67,
1098,
18,
6923,
12,
644,
13,
469,
30,
1056,
273,
562,
12,
1098,
13,
309,
618,
12,
1786,
13,
422,
618,
12,
21,
18,
20,
13,
471,
374,
18,
20,
1648,
357,
411,
404,
18,
20,
30,
1056,
273,
509,
12,
1883,
380,
357,
397,
263,
25,
13,
394,
67,
1098,
273,
666,
10531,
1883,
65,
1327,
618,
12,
1786,
13,
422,
618,
12,
21,
13,
471,
374,
1648,
357,
411,
1056,
30,
1056,
273,
357,
394,
67,
1098,
273,
666,
10531,
1883,
65,
309,
562,
12,
1098,
13,
480,
562,
12,
2704,
67,
1098,
4672,
1234,
273,
1234,
397,
315,
282,
987,
13162,
628,
738,
86,
358,
738,
86,
6541,
358,
9318,
23930,
86,
5333,
82,
6,
738,
261,
562,
12,
1098,
3631,
562,
12,
2704,
67,
1098,
3631,
357,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
67,
1188,
67,
8949,
12,
2890,
16,
357,
16,
666,
16,
1234,
4672,
394,
67,
1098,
273,
666,
309,
618,
12,
1786,
13,
422,
618,
2932,
6,
4672,
394,
67,
1098,
273,
5378,
364,
1326,
316,
666,
30,
309,
283,
18,
3072,
12,
1786,
16,
1326,
67,
5084,
67,
1080,
12,
644,
3719,
30,
394,
67,
1098,
18,
6923,
12,
644,
13,
469,
30,
1056,
273,
562,
12,
1098,
13,
309,
618,
12,
1786,
13,
422,
618,
12,
21,
18,
20,
13,
471,
374,
18,
20,
1648,
357,
411,
404,
18,
20,
30,
1056,
273,
509,
12,
1883,
380,
357,
397,
263,
25,
13,
394,
67,
1098,
273,
666,
10531,
1883,
65,
1327,
618,
12,
1786,
13,
2
] |
sqlStr = """UPDATE rc_site SET is_active="false";""" Session.execute(sqlStr) return
|
sqlStr = """UPDATE rc_site SET is_active="false" WHERE site_name = "%s";""" % siteName Session.execute(sqlStr) return
|
def deactivate(self, siteName): """ _deactivate_
|
cc72b31eb57750d07bd97c4477de1aaa915f0478 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/cc72b31eb57750d07bd97c4477de1aaa915f0478/ResourceControlDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18790,
12,
2890,
16,
27712,
4672,
3536,
389,
323,
10014,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18790,
12,
2890,
16,
27712,
4672,
3536,
389,
323,
10014,
67,
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
] |
[x^2 + x + 1, [0, 1], -3, 1, [Mat([1, -0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I]), [1, 0.36602540378443864676372317075293618347; 1, -1.3660254037844386467637231707529361835], 0, [2, -1; -1, -1], [3, 2; 0, 1], [1, -1; -1, -2], [3, [2, -1; 1, 1]]], [-0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I], [1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, -1]]
|
[x^2 + x + 1, [0, 1], -3, 1, ... [1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, -1]]
|
def _pari_init_(self): """ Needed for conversion of number field to PARI. EXAMPLES: sage: k = NumberField(x^2 + x + 1, 'a') sage: k._pari_init_() 'nfinit(x^2 + x + 1)' sage: k._pari_() [x^2 + x + 1, [0, 1], -3, 1, [Mat([1, -0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I]), [1, 0.36602540378443864676372317075293618347; 1, -1.3660254037844386467637231707529361835], 0, [2, -1; -1, -1], [3, 2; 0, 1], [1, -1; -1, -2], [3, [2, -1; 1, 1]]], [-0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I], [1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, -1]] sage: pari(k) [x^2 + x + 1, [0, 1], -3, 1, [Mat([1, -0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I]), [1, 0.36602540378443864676372317075293618347; 1, -1.3660254037844386467637231707529361835], 0, [2, -1; -1, -1], [3, 2; 0, 1], [1, -1; -1, -2], [3, [2, -1; 1, 1]]], [-0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I], [1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, -1]] """ return 'nfinit(%s)'%self.pari_polynomial()
|
9a0a1023ff0ef803d398570b31bd9868dddcbc52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9a0a1023ff0ef803d398570b31bd9868dddcbc52/number_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1065,
77,
67,
2738,
67,
12,
2890,
4672,
3536,
26480,
364,
4105,
434,
1300,
652,
358,
3939,
45,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
417,
273,
3588,
974,
12,
92,
66,
22,
397,
619,
397,
404,
16,
296,
69,
6134,
272,
410,
30,
417,
6315,
1065,
77,
67,
2738,
67,
1435,
296,
82,
926,
305,
12,
92,
66,
22,
397,
619,
397,
404,
2506,
272,
410,
30,
417,
6315,
1065,
77,
67,
1435,
306,
92,
66,
22,
397,
619,
397,
404,
16,
306,
20,
16,
404,
6487,
300,
23,
16,
404,
16,
1372,
306,
21,
16,
619,
6487,
306,
21,
16,
374,
31,
374,
16,
404,
6487,
306,
21,
16,
374,
16,
374,
16,
300,
21,
31,
374,
16,
404,
16,
404,
16,
300,
21,
13563,
272,
410,
30,
779,
77,
12,
79,
13,
306,
92,
66,
22,
397,
619,
397,
404,
16,
306,
20,
16,
404,
6487,
300,
23,
16,
404,
16,
1372,
306,
21,
16,
619,
6487,
306,
21,
16,
374,
31,
374,
16,
404,
6487,
306,
21,
16,
374,
16,
374,
16,
300,
21,
31,
374,
16,
404,
16,
404,
16,
300,
21,
13563,
3536,
225,
327,
296,
82,
926,
305,
9275,
87,
2506,
9,
2890,
18,
1065,
77,
67,
3915,
13602,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1065,
77,
67,
2738,
67,
12,
2890,
4672,
3536,
26480,
364,
4105,
434,
1300,
652,
358,
3939,
45,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
417,
273,
3588,
974,
12,
92,
66,
22,
397,
619,
397,
404,
16,
296,
69,
6134,
272,
410,
30,
417,
6315,
1065,
77,
67,
2738,
67,
1435,
296,
82,
926,
305,
12,
92,
66,
22,
397,
619,
397,
404,
2506,
272,
410,
30,
417,
6315,
1065,
77,
67,
1435,
306,
92,
66,
22,
397,
619,
397,
404,
16,
306,
20,
16,
404,
6487,
300,
23,
16,
404,
16,
1372,
306,
21,
16,
619,
6487,
306,
21,
16,
374,
31,
374,
16,
404,
6487,
306,
21,
16,
374,
16,
374,
16,
2
] |
_call_seattlegeni_func(client.renew_vessels, vesselhandle_list)
|
_call_seattlegeni_func(client.renew_resources, vesselhandle_list)
|
def seattlegeni_renew_vessels(identity, vesselhandle_list): """ <Purpose> Renew vessels previously acquired from SeattleGENI. <Arguments> identity The identity to use for communicating with SeattleGENI. vesselhandle_list The vessels to be renewed. <Exceptions> The common SeattleGENI exceptions described in the module comments, as well as: SeattleGENINotEnoughCredits If the account is currently over its vessel credit limit, then vessels cannot be renewed until the account is no longer over its credit limit. <Side Effects> The expiration time of the vessels is is reset to the maximum. <Returns> None """ _validate_vesselhandle_list(vesselhandle_list) client = _get_seattlegeni_client(identity) _call_seattlegeni_func(client.renew_vessels, vesselhandle_list)
|
d178e43b24d57a152e73594bccc5aba379bf33bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/d178e43b24d57a152e73594bccc5aba379bf33bb/experimentlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
695,
4558,
1935,
275,
77,
67,
1187,
359,
67,
90,
403,
10558,
12,
10781,
16,
331,
403,
292,
4110,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
25921,
359,
331,
403,
10558,
7243,
20598,
628,
3265,
4558,
298,
16652,
45,
18,
411,
4628,
34,
4215,
1021,
4215,
358,
999,
364,
8391,
335,
1776,
598,
3265,
4558,
298,
16652,
45,
18,
331,
403,
292,
4110,
67,
1098,
1021,
331,
403,
10558,
358,
506,
15723,
329,
18,
411,
11416,
34,
1021,
2975,
3265,
4558,
298,
16652,
45,
4798,
11893,
316,
326,
1605,
5678,
16,
487,
5492,
487,
30,
3265,
4558,
298,
16652,
706,
352,
664,
4966,
24201,
1282,
971,
326,
2236,
353,
4551,
1879,
2097,
331,
403,
292,
12896,
1800,
16,
1508,
331,
403,
10558,
2780,
506,
15723,
329,
3180,
326,
2236,
353,
1158,
7144,
1879,
2097,
12896,
1800,
18,
411,
8895,
30755,
87,
34,
1021,
7686,
813,
434,
326,
331,
403,
10558,
353,
353,
2715,
358,
326,
4207,
18,
411,
1356,
34,
599,
3536,
389,
5662,
67,
90,
403,
292,
4110,
67,
1098,
12,
90,
403,
292,
4110,
67,
1098,
13,
225,
1004,
273,
389,
588,
67,
307,
4558,
1935,
275,
77,
67,
2625,
12,
10781,
13,
389,
1991,
67,
307,
4558,
1935,
275,
77,
67,
644,
12,
2625,
18,
1187,
359,
67,
4683,
16,
331,
403,
292,
4110,
67,
1098,
13,
1377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
695,
4558,
1935,
275,
77,
67,
1187,
359,
67,
90,
403,
10558,
12,
10781,
16,
331,
403,
292,
4110,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
25921,
359,
331,
403,
10558,
7243,
20598,
628,
3265,
4558,
298,
16652,
45,
18,
411,
4628,
34,
4215,
1021,
4215,
358,
999,
364,
8391,
335,
1776,
598,
3265,
4558,
298,
16652,
45,
18,
331,
403,
292,
4110,
67,
1098,
1021,
331,
403,
10558,
358,
506,
15723,
329,
18,
411,
11416,
34,
1021,
2975,
3265,
4558,
298,
16652,
45,
4798,
11893,
316,
326,
1605,
5678,
16,
487,
5492,
487,
30,
3265,
4558,
298,
16652,
706,
352,
664,
4966,
24201,
1282,
971,
326,
2236,
353,
4551,
1879,
2097,
331,
403,
292,
12896,
1800,
2
] |
then = datetime.utcfromtimestamp(time)
|
then = datetime.fromtimestamp(time)
|
def ago(self, time): then = datetime.utcfromtimestamp(time) delta = datetime.now() - then ago = '' if delta.days / 365: ago = '%s years' % (delta.days / 365) elif delta.days / 30: ago = '%s months' % (delta.days / 30) elif delta.days: ago = '%s days' % delta.days elif delta.seconds / 3600: ago = '%s hours' % (delta.seconds / 3600) elif delta.seconds / 60: ago = '%s minutes' % (delta.seconds / 60) else: ago = '%s seconds' % delta.seconds return ago
|
5cc236749cf5c92c539251575dcea135b4889320 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12048/5cc236749cf5c92c539251575dcea135b4889320/bzr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20325,
12,
2890,
16,
813,
4672,
1508,
273,
3314,
18,
2080,
5508,
12,
957,
13,
3622,
273,
3314,
18,
3338,
1435,
300,
1508,
20325,
273,
875,
309,
3622,
18,
9810,
342,
21382,
30,
20325,
273,
1995,
87,
11387,
11,
738,
261,
9878,
18,
9810,
342,
21382,
13,
1327,
3622,
18,
9810,
342,
5196,
30,
20325,
273,
1995,
87,
8846,
11,
738,
261,
9878,
18,
9810,
342,
5196,
13,
1327,
3622,
18,
9810,
30,
20325,
273,
1995,
87,
4681,
11,
738,
3622,
18,
9810,
1327,
3622,
18,
7572,
342,
12396,
30,
20325,
273,
1995,
87,
7507,
11,
738,
261,
9878,
18,
7572,
342,
12396,
13,
1327,
3622,
18,
7572,
342,
4752,
30,
20325,
273,
1995,
87,
6824,
11,
738,
261,
9878,
18,
7572,
342,
4752,
13,
469,
30,
20325,
273,
1995,
87,
3974,
11,
738,
3622,
18,
7572,
327,
20325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20325,
12,
2890,
16,
813,
4672,
1508,
273,
3314,
18,
2080,
5508,
12,
957,
13,
3622,
273,
3314,
18,
3338,
1435,
300,
1508,
20325,
273,
875,
309,
3622,
18,
9810,
342,
21382,
30,
20325,
273,
1995,
87,
11387,
11,
738,
261,
9878,
18,
9810,
342,
21382,
13,
1327,
3622,
18,
9810,
342,
5196,
30,
20325,
273,
1995,
87,
8846,
11,
738,
261,
9878,
18,
9810,
342,
5196,
13,
1327,
3622,
18,
9810,
30,
20325,
273,
1995,
87,
4681,
11,
738,
3622,
18,
9810,
1327,
3622,
18,
7572,
342,
12396,
30,
20325,
273,
1995,
87,
7507,
11,
738,
261,
9878,
18,
7572,
342,
12396,
13,
1327,
3622,
18,
7572,
342,
4752,
30,
20325,
273,
1995,
87,
6824,
11,
738,
2
] |
typename = u''.join(n.astext() for n in types[fieldarg])
|
def make_field(self, types, domain, items): fieldname = nodes.field_name('', self.label) listnode = self.list_type() for fieldarg, content in items: par = nodes.paragraph() par += self.make_xref(self.rolename, domain, fieldarg, nodes.strong) if fieldarg in types: typename = u''.join(n.astext() for n in types[fieldarg]) par += nodes.Text(' (') par += self.make_xref(self.typerolename, domain, typename) par += nodes.Text(')') par += nodes.Text(' -- ') par += content listnode += nodes.list_item('', par) fieldbody = nodes.field_body('', listnode) return nodes.field('', fieldname, fieldbody)
|
87487752ab19c216ac9c6cfce03c69081be094d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/87487752ab19c216ac9c6cfce03c69081be094d8/docfields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1518,
12,
2890,
16,
1953,
16,
2461,
16,
1516,
4672,
14680,
273,
2199,
18,
1518,
67,
529,
2668,
2187,
365,
18,
1925,
13,
666,
2159,
273,
365,
18,
1098,
67,
723,
1435,
364,
652,
3175,
16,
913,
316,
1516,
30,
779,
273,
2199,
18,
22445,
1435,
779,
1011,
365,
18,
6540,
67,
22044,
12,
2890,
18,
922,
1069,
16,
2461,
16,
652,
3175,
16,
2199,
18,
9110,
13,
309,
652,
3175,
316,
1953,
30,
779,
1011,
2199,
18,
1528,
2668,
261,
6134,
779,
1011,
365,
18,
6540,
67,
22044,
12,
2890,
18,
4098,
457,
355,
1069,
16,
2461,
16,
26735,
13,
779,
1011,
2199,
18,
1528,
2668,
2506,
13,
779,
1011,
2199,
18,
1528,
2668,
1493,
8624,
779,
1011,
913,
666,
2159,
1011,
2199,
18,
1098,
67,
1726,
2668,
2187,
779,
13,
652,
3432,
273,
2199,
18,
1518,
67,
3432,
2668,
2187,
666,
2159,
13,
327,
2199,
18,
1518,
2668,
2187,
14680,
16,
652,
3432,
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,
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680,
273,
2199,
18,
1518,
67,
529,
2668,
2187,
365,
18,
1925,
13,
666,
2159,
273,
365,
18,
1098,
67,
723,
1435,
364,
652,
3175,
16,
913,
316,
1516,
30,
779,
273,
2199,
18,
22445,
1435,
779,
1011,
365,
18,
6540,
67,
22044,
12,
2890,
18,
922,
1069,
16,
2461,
16,
652,
3175,
16,
2199,
18,
9110,
13,
309,
652,
3175,
316,
1953,
30,
779,
1011,
2199,
18,
1528,
2668,
261,
6134,
779,
1011,
365,
18,
6540,
67,
22044,
12,
2890,
18,
4098,
457,
355,
1069,
16,
2461,
16,
26735,
13,
779,
1011,
2199,
18,
1528,
2668,
2506,
13,
779,
1011,
2199,
18,
1528,
2668,
1493,
2
] |
|
`Example`::
|
**Example**:
|
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
|
d8198b8084c69bfb0e84293dcc1b4bcf7ead9311 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/d8198b8084c69bfb0e84293dcc1b4bcf7ead9311/polib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
24899,
2890,
16,
1308,
4672,
309,
389,
2890,
18,
3576,
350,
405,
1308,
18,
3576,
350,
30,
327,
404,
1327,
389,
2890,
18,
3576,
350,
411,
1308,
18,
3576,
350,
30,
327,
300,
21,
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,
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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,
9411,
24899,
2890,
16,
1308,
4672,
309,
389,
2890,
18,
3576,
350,
405,
1308,
18,
3576,
350,
30,
327,
404,
1327,
389,
2890,
18,
3576,
350,
411,
1308,
18,
3576,
350,
30,
327,
300,
21,
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
] |
Fixture.__init__(self)
|
AspyFixture.__init__(self)
|
def __init__(self): Fixture.__init__(self) self.title = "Music tests"
|
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
432,
30884,
26392,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2649,
273,
315,
49,
14894,
7434,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
432,
30884,
26392,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2649,
273,
315,
49,
14894,
7434,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
f.close()
|
if f: f.close()
|
def copy_scripts (self): """Copy each script listed in 'self.scripts'; if it's marked as a Python script in the Unix way (first line matches 'first_line_re', ie. starts with "\#!" and contains "python"), then adjust the first line to refer to the current Python interpreter as we copy. """ self.mkpath(self.build_dir) outfiles = [] for script in self.scripts: adjust = 0 script = convert_path(script) outfile = os.path.join(self.build_dir, os.path.basename(script)) outfiles.append(outfile)
|
27edd829d7673a642cf5b37c3011454ec33cb715 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/27edd829d7673a642cf5b37c3011454ec33cb715/build_scripts.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
261,
2890,
4672,
3536,
2951,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
13506,
309,
518,
1807,
9350,
487,
279,
6600,
2728,
316,
326,
9480,
4031,
261,
3645,
980,
1885,
296,
3645,
67,
1369,
67,
266,
2187,
9228,
18,
2542,
598,
1548,
7,
4442,
471,
1914,
315,
8103,
6,
3631,
1508,
5765,
326,
1122,
980,
358,
8884,
358,
326,
783,
6600,
16048,
487,
732,
1610,
18,
3536,
365,
18,
24816,
803,
12,
2890,
18,
3510,
67,
1214,
13,
596,
2354,
273,
5378,
364,
2728,
316,
365,
18,
12827,
30,
5765,
273,
374,
2728,
273,
1765,
67,
803,
12,
4263,
13,
8756,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3510,
67,
1214,
16,
1140,
18,
803,
18,
13909,
12,
4263,
3719,
596,
2354,
18,
6923,
12,
26050,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
261,
2890,
4672,
3536,
2951,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
13506,
309,
518,
1807,
9350,
487,
279,
6600,
2728,
316,
326,
9480,
4031,
261,
3645,
980,
1885,
296,
3645,
67,
1369,
67,
266,
2187,
9228,
18,
2542,
598,
1548,
7,
4442,
471,
1914,
315,
8103,
6,
3631,
1508,
5765,
326,
1122,
980,
358,
8884,
358,
326,
783,
6600,
16048,
487,
732,
1610,
18,
3536,
365,
18,
24816,
803,
12,
2890,
18,
3510,
67,
1214,
13,
596,
2354,
273,
5378,
364,
2728,
316,
365,
18,
12827,
30,
5765,
273,
374,
2728,
273,
1765,
67,
803,
12,
4263,
13,
8756,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3510,
67,
1214,
16,
1140,
2
] |
oldChange['oldvalue'] += " " + ticketChange['oldvalue']
|
oldChange['oldvalue'] += " " + ticketChange['oldvalue']
|
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue" # init Bugzilla environment print "Bugzilla MySQL('%s':'%s':'%s':'%s'): connecting..." % \ (_db, _host, _user, ("*" * len(_password))) mysql_con = MySQLdb.connect(host=_host, user=_user, passwd=_password, db=_db, compress=1, cursorclass=MySQLdb.cursors.DictCursor) mysql_cur = mysql_con.cursor() # init Trac environment print "Trac SQLite('%s'): connecting..." % (_env) trac = TracDatabase(_env) # force mode... if _force == 1: print "\nCleaning all tickets..." c = trac.db().cursor() c.execute("DELETE FROM ticket_change") trac.db().commit() c.execute("DELETE FROM ticket") trac.db().commit() c.execute("DELETE FROM attachment") attachments_dir = os.path.join(os.path.normpath(trac.env.path), "attachments") # Straight from the Python documentation. for root, dirs, files in os.walk(attachments_dir, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) if not os.stat(attachments_dir): os.mkdir(attachments_dir) trac.db().commit() print "All tickets cleaned..." print "\n0. Filtering products..." mysql_cur.execute("SELECT name FROM products") products = [] for line in mysql_cur.fetchall(): product = line['name'] if PRODUCTS and product not in PRODUCTS: continue if product in IGNORE_PRODUCTS: continue products.append(product) PRODUCTS[:] = products print " Using products", " ".join(PRODUCTS) print "\n1. Import severities..." trac.setSeverityList(SEVERITIES) print "\n2. Import components..." if not COMPONENTS_FROM_PRODUCTS: if BZ_VERSION >= 2180: sql = """SELECT DISTINCT c.name AS name, c.initialowner AS owner FROM components AS c, products AS p WHERE c.product_id = p.id AND""" sql += makeWhereClause('p.name', PRODUCTS) else: sql = "SELECT value AS name, initialowner AS owner FROM components" sql += " WHERE" + makeWhereClause('program', PRODUCTS) mysql_cur.execute(sql) components = mysql_cur.fetchall() for component in components: component['owner'] = trac.getLoginName(mysql_cur, component['owner']) trac.setComponentList(components, 'name') else: sql = """SELECT program AS product, value AS comp, initialowner AS owner FROM components""" sql += " WHERE" + makeWhereClause('program', PRODUCTS) mysql_cur.execute(sql) lines = mysql_cur.fetchall() all_components = {} # product -> components all_owners = {} # product, component -> owner for line in lines: product = line['product'] comp = line['comp'] owner = line['owner'] all_components.setdefault(product, []).append(comp) all_owners[(product, comp)] = owner component_list = [] for product, components in all_components.items(): # find best default owner default = None for comp in DEFAULT_COMPONENTS: if comp in components: default = comp break if default is None: default = components[0] owner = all_owners[(product, default)] owner_name = trac.getLoginName(mysql_cur, owner) component_list.append({'product': product, 'owner': owner_name}) trac.setComponentList(component_list, 'product') print "\n3. Import priorities..." trac.setPriorityList(PRIORITIES) print "\n4. Import versions..." if BZ_VERSION >= 2180: sql = """SELECT DISTINCTROW versions.value AS value FROM products, versions""" sql += " WHERE" + makeWhereClause('products.name', PRODUCTS) else: sql = "SELECT DISTINCTROW value FROM versions" sql += " WHERE" + makeWhereClause('program', PRODUCTS) mysql_cur.execute(sql) versions = mysql_cur.fetchall() trac.setVersionList(versions, 'value') print "\n5. Import milestones..." sql = "SELECT DISTINCT value FROM milestones" sql += " WHERE" + makeWhereClause('value', IGNORE_MILESTONES, negative=True) mysql_cur.execute(sql) milestones = mysql_cur.fetchall() trac.setMilestoneList(milestones, 'value') print "\n6. Retrieving bugs..." sql = """SELECT DISTINCT b.*, c.name AS component, p.name AS product FROM bugs AS b, components AS c, products AS p """ sql += " WHERE (" + makeWhereClause('p.name', PRODUCTS) sql += ") AND b.product_id = p.id" sql += " AND b.component_id = c.id" sql += " ORDER BY b.bug_id" mysql_cur.execute(sql) bugs = mysql_cur.fetchall() print "\n7. Import bugs and bug activity..." for bug in bugs: bugid = bug['bug_id'] ticket = {} keywords = [] ticket['id'] = bugid ticket['time'] = bug['creation_ts'] ticket['changetime'] = bug['delta_ts'] if COMPONENTS_FROM_PRODUCTS: ticket['component'] = bug['product'] else: ticket['component'] = bug['component'] ticket['severity'] = bug['bug_severity'] ticket['priority'] = bug['priority'].lower() ticket['owner'] = trac.getLoginName(mysql_cur, bug['assigned_to']) ticket['reporter'] = trac.getLoginName(mysql_cur, bug['reporter']) mysql_cur.execute("SELECT * FROM cc WHERE bug_id = %s", bugid) cc_records = mysql_cur.fetchall() cc_list = [] for cc in cc_records: cc_list.append(trac.getLoginName(mysql_cur, cc['who'])) cc_list = [cc for cc in cc_list if '@' in cc and cc not in IGNORE_CC] ticket['cc'] = string.join(cc_list, ', ') ticket['version'] = bug['version'] target_milestone = bug['target_milestone'] if target_milestone in IGNORE_MILESTONES: target_milestone = '' ticket['milestone'] = target_milestone bug_status = bug['bug_status'].lower() ticket['status'] = statusXlator[bug_status] ticket['resolution'] = bug['resolution'].lower() # a bit of extra work to do open tickets if bug_status == 'open': if owner != '': ticket['status'] = 'assigned' else: ticket['status'] = 'new' ticket['summary'] = bug['short_desc'] mysql_cur.execute("SELECT * FROM longdescs WHERE bug_id = %s" % bugid) longdescs = list(mysql_cur.fetchall()) # check for empty 'longdescs[0]' field... if len(longdescs) == 0: ticket['description'] = '' else: ticket['description'] = longdescs[0]['thetext'] del longdescs[0] for desc in longdescs: ignore = False for comment in IGNORE_COMMENTS: if re.match(comment, desc['thetext']): ignore = True if ignore: continue trac.addTicketComment(ticket=bugid, time = desc['bug_when'], author=trac.getLoginName(mysql_cur, desc['who']), value = desc['thetext']) mysql_cur.execute("""SELECT * FROM bugs_activity WHERE bug_id = %s ORDER BY bug_when""" % bugid) bugs_activity = mysql_cur.fetchall() resolution = '' ticketChanges = [] keywords = [] for activity in bugs_activity: field_name = trac.getFieldName(mysql_cur, activity['fieldid']).lower() removed = activity[activityFields['removed']] added = activity[activityFields['added']] # statuses and resolutions are in lowercase in trac if field_name == "resolution" or field_name == "bug_status": removed = removed.lower() added = added.lower() # remember most recent resolution, we need this later if field_name == "resolution": resolution = added.lower() add_keywords = [] remove_keywords = [] # convert bugzilla field names... if field_name == "bug_severity": field_name = "severity" elif field_name == "assigned_to": field_name = "owner" elif field_name == "bug_status": field_name = "status" if removed in STATUS_KEYWORDS: remove_keywords.append(STATUS_KEYWORDS[removed]) if added in STATUS_KEYWORDS: add_keywords.append(STATUS_KEYWORDS[added]) added = statusXlator[added] removed = statusXlator[removed] elif field_name == "short_desc": field_name = "summary" elif field_name == "product" and COMPONENTS_FROM_PRODUCTS: field_name = "component" elif ((field_name == "product" and not COMPONENTS_FROM_PRODUCTS) or (field_name == "component" and COMPONENTS_FROM_PRODUCTS)): if MAP_ALL_KEYWORDS or removed in KEYWORDS_MAPPING: kw = KEYWORDS_MAPPING.get(removed, removed) if kw: remove_keywords.append(kw) if MAP_ALL_KEYWORDS or added in KEYWORDS_MAPPING: kw = KEYWORDS_MAPPING.get(added, added) if kw: add_keywords.append(kw) if field_name == "component": # just keep the keyword change added = removed = "" elif field_name == "target_milestone": field_name = "milestone" if added in IGNORE_MILESTONES: added = "" if removed in IGNORE_MILESTONES: removed = "" ticketChange = {} ticketChange['ticket'] = bugid ticketChange['time'] = activity['bug_when'] ticketChange['author'] = trac.getLoginName(mysql_cur, activity['who']) ticketChange['field'] = field_name ticketChange['oldvalue'] = removed ticketChange['newvalue'] = added if add_keywords or remove_keywords: # ensure removed ones are in old old_keywords = keywords + [kw for kw in remove_keywords if kw not in keywords] # remove from new keywords = [kw for kw in keywords if kw not in remove_keywords] # add to new keywords += [kw for kw in add_keywords if kw not in keywords] if old_keywords != keywords: ticketChangeKw = ticketChange.copy() ticketChangeKw['field'] = "keywords" ticketChangeKw['oldvalue'] = ' '.join(old_keywords) ticketChangeKw['newvalue'] = ' '.join(keywords) ticketChanges.append(ticketChangeKw) if field_name in IGNORED_ACTIVITY_FIELDS: continue # Skip changes that have no effect (think translation!). if added == removed: continue # Bugzilla splits large summary changes into two records. for oldChange in ticketChanges: if (field_name == "summary" and oldChange['field'] == ticketChange['field'] and oldChange['time'] == ticketChange['time'] and oldChange['author'] == ticketChange['author']): oldChange['oldvalue'] += " " + ticketChange['oldvalue'] oldChange['newvalue'] += " " + ticketChange['newvalue'] break # cc sometime appear in different activities with same time if (field_name == "cc" \ and oldChange['time'] == ticketChange['time']): oldChange['newvalue'] += ", " + ticketChange['newvalue'] break else: ticketChanges.append (ticketChange) for ticketChange in ticketChanges: trac.addTicketChange (**ticketChange) # For some reason, bugzilla v2.11 seems to clear the resolution # when you mark a bug as closed. Let's remember it and restore # it if the ticket is closed but there's no resolution. if not ticket['resolution'] and ticket['status'] == "closed": ticket['resolution'] = resolution bug_status = bug['bug_status'] if bug_status in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[bug_status] if kw not in keywords: keywords.append(kw) product = bug['product'] if product in KEYWORDS_MAPPING and not COMPONENTS_FROM_PRODUCTS: kw = KEYWORDS_MAPPING.get(product, product) if kw and kw not in keywords: keywords.append(kw) component = bug['component'] if (COMPONENTS_FROM_PRODUCTS and \ (MAP_ALL_KEYWORDS or component in KEYWORDS_MAPPING)): kw = KEYWORDS_MAPPING.get(component, component) if kw and kw not in keywords: keywords.append(kw) ticket['keywords'] = string.join(keywords) ticketid = trac.addTicket(**ticket) mysql_cur.execute("SELECT * FROM attachments WHERE bug_id = %s" % bugid) attachments = mysql_cur.fetchall() for a in attachments: author = trac.getLoginName(mysql_cur, a['submitter_id']) trac.addAttachment(author, a) print "\n8. Importing users and passwords..." if BZ_VERSION >= 2180: mysql_cur.execute("SELECT login_name, cryptpassword FROM profiles") users = mysql_cur.fetchall() htpasswd = file("htpasswd", 'w') for user in users: if LOGIN_MAP.has_key(user['login_name']): login = LOGIN_MAP[user['login_name']] else: login = user['login_name'] htpasswd.write(login + ":" + user['cryptpassword'] + "\n") htpasswd.close() print " Bugzilla users converted to htpasswd format, see 'htpasswd'." print "\nAll tickets converted."
|
c27a48bc7d3e33e259dbb1bfcf7789acafcc80b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/c27a48bc7d3e33e259dbb1bfcf7789acafcc80b3/bugzilla2trac.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990,
1172,
315,
7736,
16907,
15990,
331,
9,
87,
1963,
1199,
738,
605,
62,
67,
5757,
309,
605,
62,
67,
5757,
422,
9035,
2163,
30,
5728,
2314,
3292,
14923,
3546,
273,
315,
1673,
1132,
6,
5728,
2314,
3292,
9665,
3546,
273,
315,
2704,
1132,
6,
225,
468,
1208,
16907,
15990,
3330,
1172,
315,
19865,
15990,
13485,
29909,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
4672,
14244,
7070,
738,
521,
261,
67,
1966,
16,
389,
2564,
16,
389,
1355,
16,
7566,
7388,
380,
562,
24899,
3664,
20349,
7219,
67,
591,
273,
13485,
1966,
18,
3612,
12,
2564,
33,
67,
2564,
16,
729,
33,
67,
1355,
16,
19093,
33,
67,
3664,
16,
1319,
33,
67,
1966,
16,
8099,
33,
21,
16,
3347,
1106,
33,
28723,
1966,
18,
2789,
1383,
18,
5014,
6688,
13,
7219,
67,
1397,
273,
7219,
67,
591,
18,
9216,
1435,
225,
468,
1208,
2197,
71,
3330,
1172,
315,
1609,
71,
16192,
29909,
87,
11,
4672,
14244,
7070,
738,
261,
67,
3074,
13,
1284,
71,
273,
2197,
71,
4254,
24899,
3074,
13,
225,
468,
2944,
1965,
2777,
309,
389,
5734,
422,
404,
30,
1172,
1548,
82,
7605,
310,
777,
24475,
7070,
276,
273,
1284,
71,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
6460,
4571,
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,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990,
1172,
315,
7736,
16907,
15990,
331,
9,
87,
1963,
1199,
738,
605,
62,
67,
5757,
309,
605,
62,
67,
5757,
422,
9035,
2163,
30,
5728,
2314,
3292,
14923,
3546,
273,
315,
1673,
1132,
6,
5728,
2314,
3292,
9665,
3546,
273,
315,
2704,
1132,
6,
225,
468,
1208,
16907,
15990,
3330,
1172,
315,
19865,
15990,
13485,
29909,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
4672,
14244,
7070,
738,
521,
261,
67,
1966,
16,
389,
2564,
16,
389,
1355,
2
] |
subsubgroup = Group(descr='desrc of subsubgroup', schema=[ Var(name='a', descr='descr a', default=3 ) ])
|
subsubgroup = Group(desc='desrc of subsubgroup', schema=[ Var(name='a', desc='desc a', default=3 ) ])
|
def load(self, filename): self._filename = filename regexp = re.compile('(([a-zA-Z0-9_]+)|(\[.*?\]))') f = open(filename) for line in f.readlines(): if line.find('#') >= 0: line = line[:line.find('#')] line = line.strip() if not line: continue if line.count('=') != 1: error = ('Unable to parse the line', line) if not error in self._bad_lines: self._bad_lines.append(error) continue key, value = line.split('=') try: keylist = [x[0] for x in regexp.findall(key.strip()) if x[0] ] object = self while len(keylist) > 1: key = keylist.pop(0) if key.startswith('['): object = object[key[1:-1]] else: object = getattr(object, key) key = keylist[0] value = value.strip() setattr(object, key, value) except Exception, e: error = (str(e), line) if not error in self._bad_lines: self._bad_lines.append(error) f.close() return len(self._bad_lines) == 0
|
513f97ca83b44ea792b8e169cb28ed0b3e8c402e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/513f97ca83b44ea792b8e169cb28ed0b3e8c402e/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
1544,
4672,
365,
6315,
3459,
273,
1544,
7195,
273,
283,
18,
11100,
2668,
12,
3816,
69,
17,
9600,
17,
62,
20,
17,
29,
67,
7941,
96,
4713,
63,
4509,
10936,
5717,
2506,
13,
284,
273,
1696,
12,
3459,
13,
364,
980,
316,
284,
18,
896,
3548,
13332,
309,
980,
18,
4720,
2668,
7,
6134,
1545,
374,
30,
980,
273,
980,
10531,
1369,
18,
4720,
2668,
7,
6134,
65,
980,
273,
980,
18,
6406,
1435,
309,
486,
980,
30,
1324,
309,
980,
18,
1883,
2668,
2218,
13,
480,
404,
30,
555,
273,
7707,
3370,
358,
1109,
326,
980,
2187,
980,
13,
309,
486,
555,
316,
365,
6315,
8759,
67,
3548,
30,
365,
6315,
8759,
67,
3548,
18,
6923,
12,
1636,
13,
1324,
498,
16,
460,
273,
980,
18,
4939,
2668,
2218,
13,
775,
30,
498,
1098,
273,
306,
92,
63,
20,
65,
364,
619,
316,
7195,
18,
4720,
454,
12,
856,
18,
6406,
10756,
309,
619,
63,
20,
65,
308,
733,
273,
365,
1323,
562,
12,
856,
1098,
13,
405,
404,
30,
498,
273,
498,
1098,
18,
5120,
12,
20,
13,
309,
498,
18,
17514,
1918,
2668,
3292,
4672,
733,
273,
733,
63,
856,
63,
21,
30,
17,
21,
13563,
469,
30,
733,
273,
3869,
12,
1612,
16,
498,
13,
498,
273,
498,
1098,
63,
20,
65,
460,
273,
460,
18,
6406,
1435,
9241,
12,
1612,
16,
498,
16,
460,
13,
1335,
1185,
16,
425,
30,
555,
273,
261,
701,
12,
73,
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,
1262,
12,
2890,
16,
1544,
4672,
365,
6315,
3459,
273,
1544,
7195,
273,
283,
18,
11100,
2668,
12,
3816,
69,
17,
9600,
17,
62,
20,
17,
29,
67,
7941,
96,
4713,
63,
4509,
10936,
5717,
2506,
13,
284,
273,
1696,
12,
3459,
13,
364,
980,
316,
284,
18,
896,
3548,
13332,
309,
980,
18,
4720,
2668,
7,
6134,
1545,
374,
30,
980,
273,
980,
10531,
1369,
18,
4720,
2668,
7,
6134,
65,
980,
273,
980,
18,
6406,
1435,
309,
486,
980,
30,
1324,
309,
980,
18,
1883,
2668,
2218,
13,
480,
404,
30,
555,
273,
7707,
3370,
358,
1109,
326,
980,
2187,
980,
13,
309,
486,
555,
316,
365,
6315,
8759,
67,
3548,
30,
365,
6315,
8759,
67,
2
] |
def wrpcap(filename, pkt): f=open(filename,"w") if isinstance(pkt,Packet): linktype = LLNumTypes.get(pkt.__class__,1) else: linktype = LLNumTypes.get(pkt[0].__class__,1) f.write(struct.pack("IHHIIII", 0xa1b2c3d4L, 2, 4, 0, 0, MTU, linktype)) for p in pkt: s = str(p) l = len(s) sec = int(p.time) usec = int((p.time-sec)*1000000) f.write(struct.pack("IIII", sec, usec, l, l)) f.write(s) f.close()
|
def wrpcap(filename, pkt, *args, **kargs): PcapWriter(filename, *args, **kargs).write(pkt)
|
def wrpcap(filename, pkt): f=open(filename,"w") if isinstance(pkt,Packet): linktype = LLNumTypes.get(pkt.__class__,1) else: linktype = LLNumTypes.get(pkt[0].__class__,1) f.write(struct.pack("IHHIIII", 0xa1b2c3d4L, 2, 4, 0, 0, MTU, linktype)) for p in pkt: s = str(p) l = len(s) sec = int(p.time) usec = int((p.time-sec)*1000000) f.write(struct.pack("IIII", sec, usec, l, l)) f.write(s) f.close()
|
c8bb4ffbf1fe5b0fc994675b25b0d3a55bdab83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/c8bb4ffbf1fe5b0fc994675b25b0d3a55bdab83d/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
7452,
438,
12,
3459,
16,
11536,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
453,
5909,
2289,
12,
3459,
16,
380,
1968,
16,
2826,
79,
1968,
2934,
2626,
12,
5465,
88,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
341,
7452,
438,
12,
3459,
16,
11536,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
453,
5909,
2289,
12,
3459,
16,
380,
1968,
16,
2826,
79,
1968,
2934,
2626,
12,
5465,
88,
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
] |
def __init__(self, p):
|
def __init__(self, p, max_entry=None):
|
def __init__(self, p): """ TESTS::
|
37d130246c10e7b0112af26e2825fcf33c637b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/37d130246c10e7b0112af26e2825fcf33c637b30/tableau.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
293,
16,
943,
67,
4099,
33,
7036,
4672,
3536,
22130,
55,
2866,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._writer.whole_element('th', name, {'class': 'col_status'}) self._writer.end_element('tr')
|
self._writer.element('th', name, {'class': 'col_status'}) self._writer.end('tr')
|
def _write_headers(self): self._writer.start_element('table') self._writer.start_element('tr') self._writer.whole_element('th', 'Name', {'class': 'col_name'}) for name in self.column_names: name = name.replace(self._get_prefix(self.column_names), '') self._writer.whole_element('th', name, {'class': 'col_status'}) self._writer.end_element('tr')
|
0020c6e16b761a9decca59b321b6f814057f5d3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/0020c6e16b761a9decca59b321b6f814057f5d3f/robotdiff.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2485,
12,
2890,
4672,
365,
6315,
6299,
18,
1937,
67,
2956,
2668,
2121,
6134,
365,
6315,
6299,
18,
1937,
67,
2956,
2668,
313,
6134,
365,
6315,
6299,
18,
3350,
790,
67,
2956,
2668,
451,
2187,
296,
461,
2187,
13666,
1106,
4278,
296,
1293,
67,
529,
11,
6792,
364,
508,
316,
365,
18,
2827,
67,
1973,
30,
508,
273,
508,
18,
2079,
12,
2890,
6315,
588,
67,
3239,
12,
2890,
18,
2827,
67,
1973,
3631,
28707,
365,
6315,
6299,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2485,
12,
2890,
4672,
365,
6315,
6299,
18,
1937,
67,
2956,
2668,
2121,
6134,
365,
6315,
6299,
18,
1937,
67,
2956,
2668,
313,
6134,
365,
6315,
6299,
18,
3350,
790,
67,
2956,
2668,
451,
2187,
296,
461,
2187,
13666,
1106,
4278,
296,
1293,
67,
529,
11,
6792,
364,
508,
316,
365,
18,
2827,
67,
1973,
30,
508,
273,
508,
18,
2079,
12,
2890,
6315,
588,
67,
3239,
12,
2890,
18,
2827,
67,
1973,
3631,
28707,
365,
6315,
6299,
18,
3350,
790,
67,
2956,
2668,
451,
2187,
508,
16,
13666,
1106,
4278,
296,
1293,
67,
2327,
11,
6792,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
313,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _checkquote(self, arg): if len(arg) >= 2 and (arg[0],arg[-1]) in (('(',')'),('"','"')): return arg if arg and self.mustquote.search(arg) is None: return arg return self._quote(arg)
|
def _new_tag(self):
|
3c9922f74849aad29d3c45e4c5972761e07825b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/3c9922f74849aad29d3c45e4c5972761e07825b9/imaplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
2692,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
2692,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"render:float:patch_minlevel:none":["Patch Min Level:", 1],
|
"render:float:patch_minlevel:none":["Patch Min Level:", 1, 1],
|
def loadProperties(self, xml): xmlTypes = { "int" : int, "str" : str, "list" : list, "dict": dict, "float" : float, "bool": bool } xmlProperties = xml.getElementsByTagName("property") # what I should really do is move the properties from the object's UI to the object adapter, since that's really where I control the data. for xmlProperty in xmlProperties: # each of these is a property element propertyName = xmlProperty.getAttribute("name").encode("ascii") xmlType = xmlProperty.getAttribute("type").encode("ascii") xmlValue= xmlProperty.getAttribute("value").encode("ascii") if xmlType == "bool": propertyValue = xmlTypes[xmlType](eval(xmlValue)) elif xmlType == "list": # print "Property Name: ", propertyName propertyValue = [float(eval(xmlProperty.getAttribute("red").encode("ascii"))), float(eval(xmlProperty.getAttribute("green").encode("ascii"))), float(eval(xmlProperty.getAttribute("blue").encode("ascii")))] # rebuild a pretty color! # print "Property Value: ", propertyValue else: propertyValue = xmlTypes[xmlType](xmlValue) self.editors[propertyName].setValue(propertyValue)
|
695ebc94fcea97afa089a3eef4f68b45fabfce6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/695ebc94fcea97afa089a3eef4f68b45fabfce6c/BtoRMain.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
2297,
12,
2890,
16,
2025,
4672,
2025,
2016,
273,
288,
315,
474,
6,
294,
509,
16,
315,
701,
6,
294,
609,
16,
315,
1098,
6,
294,
666,
16,
315,
1576,
6877,
2065,
16,
315,
5659,
6,
294,
1431,
16,
315,
6430,
6877,
1426,
289,
2025,
2297,
273,
2025,
18,
588,
3471,
10401,
2932,
4468,
7923,
468,
4121,
467,
1410,
8654,
741,
353,
3635,
326,
1790,
628,
326,
733,
1807,
6484,
358,
326,
733,
4516,
16,
3241,
716,
1807,
8654,
1625,
467,
3325,
326,
501,
18,
364,
2025,
1396,
316,
2025,
2297,
30,
468,
1517,
434,
4259,
353,
279,
1272,
930,
5470,
273,
2025,
1396,
18,
588,
1499,
2932,
529,
20387,
3015,
2932,
9184,
7923,
2025,
559,
273,
2025,
1396,
18,
588,
1499,
2932,
723,
20387,
3015,
2932,
9184,
7923,
2025,
620,
33,
2025,
1396,
18,
588,
1499,
2932,
1132,
20387,
3015,
2932,
9184,
7923,
309,
2025,
559,
422,
315,
6430,
6877,
12337,
273,
2025,
2016,
63,
2902,
559,
29955,
8622,
12,
2902,
620,
3719,
1327,
2025,
559,
422,
315,
1098,
6877,
468,
1172,
315,
1396,
1770,
30,
3104,
5470,
12337,
273,
306,
5659,
12,
8622,
12,
2902,
1396,
18,
588,
1499,
2932,
1118,
20387,
3015,
2932,
9184,
6,
3719,
3631,
1431,
12,
8622,
12,
2902,
1396,
18,
588,
1499,
2932,
11571,
20387,
3015,
2932,
9184,
6,
3719,
3631,
1431,
12,
8622,
12,
2902,
1396,
18,
588,
1499,
2932,
14081,
20387,
3015,
2932,
9184,
6,
20349,
65,
468,
13419,
279,
7517,
2036,
5,
468,
1172,
315,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
2297,
12,
2890,
16,
2025,
4672,
2025,
2016,
273,
288,
315,
474,
6,
294,
509,
16,
315,
701,
6,
294,
609,
16,
315,
1098,
6,
294,
666,
16,
315,
1576,
6877,
2065,
16,
315,
5659,
6,
294,
1431,
16,
315,
6430,
6877,
1426,
289,
2025,
2297,
273,
2025,
18,
588,
3471,
10401,
2932,
4468,
7923,
468,
4121,
467,
1410,
8654,
741,
353,
3635,
326,
1790,
628,
326,
733,
1807,
6484,
358,
326,
733,
4516,
16,
3241,
716,
1807,
8654,
1625,
467,
3325,
326,
501,
18,
364,
2025,
1396,
316,
2025,
2297,
30,
468,
1517,
434,
4259,
353,
279,
1272,
930,
5470,
273,
2025,
1396,
18,
588,
1499,
2932,
529,
20387,
3015,
2932,
9184,
7923,
2025,
559,
273,
2
] |
nlp_ipopt.opt_sim_ipopt_solve()
|
nlp_ipopt.opt_coll_ipopt_solve()
|
def compute_stationary(Tc_stat): init_model.set('Tc',Tc_stat) # Solve the DAE initialization system with Ipopt init_nlp_ipopt.init_opt_ipopt_solve() return (init_model.get('c'),init_model.get('T'))
|
f15e580d2bae75943c8377bebc2a954c73f27a0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/f15e580d2bae75943c8377bebc2a954c73f27a0d/cstr_mpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
17894,
814,
12,
56,
71,
67,
5642,
4672,
1208,
67,
2284,
18,
542,
2668,
56,
71,
2187,
56,
71,
67,
5642,
13,
468,
348,
5390,
326,
463,
16985,
10313,
2619,
598,
467,
1631,
337,
1208,
67,
24853,
67,
625,
3838,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
17894,
814,
12,
56,
71,
67,
5642,
4672,
1208,
67,
2284,
18,
542,
2668,
56,
71,
2187,
56,
71,
67,
5642,
13,
468,
348,
5390,
326,
463,
16985,
10313,
2619,
598,
467,
1631,
337,
1208,
67,
24853,
67,
625,
3838,
18,
2738,
67,
3838,
67,
625,
3838,
67,
24626,
1435,
327,
261,
2738,
67,
2284,
18,
588,
2668,
71,
19899,
2738,
67,
2284,
18,
588,
2668,
56,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.threadHighWater = 50
|
self.threadHighWater = 130
|
def __init__(self, query): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryMunger = None ## sqlparser.QueryMunger() self.db = Persistence() self.running = {} self.resultLock = threading.Lock() self.finished = {} self.threadHighWater = 50 pass
|
f8e07b73274f1980951622393154f7ae4a9b8230 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/f8e07b73274f1980951622393154f7ae4a9b8230/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
843,
4672,
365,
18,
2271,
1585,
273,
843,
18,
6406,
1435,
7,
14899,
7341,
7983,
468,
11889,
23682,
358,
5853,
330,
305,
340,
4322,
17,
5564,
20347,
309,
365,
18,
2271,
1585,
18919,
21,
65,
480,
11430,
30,
225,
468,
1436,
8651,
23682,
365,
18,
2271,
1585,
1011,
11430,
225,
365,
18,
2271,
49,
318,
693,
273,
599,
7541,
24885,
18,
1138,
49,
318,
693,
1435,
365,
18,
1966,
273,
13381,
1435,
365,
18,
8704,
273,
2618,
365,
18,
2088,
2531,
273,
17254,
18,
2531,
1435,
365,
18,
13527,
273,
2618,
365,
18,
5930,
8573,
24064,
273,
404,
5082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
843,
4672,
365,
18,
2271,
1585,
273,
843,
18,
6406,
1435,
7,
14899,
7341,
7983,
468,
11889,
23682,
358,
5853,
330,
305,
340,
4322,
17,
5564,
20347,
309,
365,
18,
2271,
1585,
18919,
21,
65,
480,
11430,
30,
225,
468,
1436,
8651,
23682,
365,
18,
2271,
1585,
1011,
11430,
225,
365,
18,
2271,
49,
318,
693,
273,
599,
7541,
24885,
18,
1138,
49,
318,
693,
1435,
365,
18,
1966,
273,
13381,
1435,
365,
18,
8704,
273,
2618,
365,
18,
2088,
2531,
273,
17254,
18,
2531,
1435,
365,
18,
13527,
273,
2618,
365,
18,
5930,
8573,
24064,
273,
404,
5082,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
friends = dict([(f.key().id(),1) for f in volunteer.friends()]) followers = dict([(f.key().id(),1) for f in volunteer.followers()]) following = dict([(f.key().id(),1) for f in volunteer.following()]) attendees_anonymous = [] attendees_friends = [] attendees_followers = [] attendees_following = [] attendees_unknown = [] for v in event.volunteers(): id = v.key().id() if id == volunteer.key().id(): continue if v.event_access(volunteer = volunteer): if id in friends: attendees_friends.append(v) elif id in followers: attendees_followers.append(v) elif id in following: attendees_following.append(v) else: attendees_unknown.append(v) else: attendees_anonymous.append(v)
|
friends = dict([(f.key().id(),1) for f in volunteer.friends()]) followers = dict([(f.key().id(),1) for f in volunteer.followers()]) following = dict([(f.key().id(),1) for f in volunteer.following()]) for v in event.volunteers(): id = v.key().id() if id == volunteer.key().id(): continue if v.event_access(volunteer = volunteer): if id in friends: attendees_friends.append(v) elif id in followers: attendees_followers.append(v) elif id in following: attendees_following.append(v) else: attendees_unknown.append(v) else: attendees_anonymous.append(v)
|
def show(self, event_id): volunteer = Authorize.login(self)
|
8b9cfac2f75f5caf615168de7e830d3b876d5a2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/8b9cfac2f75f5caf615168de7e830d3b876d5a2c/events.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
871,
67,
350,
4672,
6626,
318,
736,
264,
273,
23859,
18,
5819,
12,
2890,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
871,
67,
350,
4672,
6626,
318,
736,
264,
273,
23859,
18,
5819,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _make_invoice(self, cr, uid, order, lines):
|
def _make_invoice(self, cr, uid, order, lines, context={}):
|
def _make_invoice(self, cr, uid, order, lines): a = order.partner_id.property_account_receivable.id if order.payment_term: pay_term = order.payment_term.id else: pay_term = False for preinv in order.invoice_ids: if preinv.state in ('open','paid','proforma'): for preline in preinv.invoice_line: inv_line_id = self.pool.get('account.invoice.line').copy(cr, uid, preline.id, {'invoice_id':False, 'price_unit':-preline.price_unit}) lines.append(inv_line_id) inv = { 'name': order.client_order_ref or order.name, 'origin': order.name, 'type': 'out_invoice', 'reference': "P%dSO%d"%(order.partner_id.id,order.id), 'account_id': a, 'partner_id': order.partner_id.id, 'address_invoice_id': order.partner_invoice_id.id, 'address_contact_id': order.partner_invoice_id.id, 'invoice_line': [(6,0,lines)], 'currency_id' : order.pricelist_id.currency_id.id, 'comment': order.note, 'payment_term': pay_term, } inv_obj = self.pool.get('account.invoice') inv.update(self._inv_get(cr, uid, order)) inv_id = inv_obj.create(cr, uid, inv) data = inv_obj.onchange_payment_term_date_invoice(cr, uid, [inv_id], pay_term,time.strftime('%Y-%m-%d')) if data.get('value',False): inv_obj.write(cr, uid, [inv_id], inv.update(data['value']), context=context) inv_obj.button_compute(cr, uid, [inv_id]) return inv_id
|
6c58c27ae54d6d246eaf3ccd86d55dcf0ec0d3bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/6c58c27ae54d6d246eaf3ccd86d55dcf0ec0d3bd/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
16119,
12,
2890,
16,
4422,
16,
4555,
16,
1353,
16,
2362,
16,
819,
12938,
4672,
279,
273,
1353,
18,
31993,
67,
350,
18,
4468,
67,
4631,
67,
8606,
427,
429,
18,
350,
309,
1353,
18,
9261,
67,
6408,
30,
8843,
67,
6408,
273,
1353,
18,
9261,
67,
6408,
18,
350,
469,
30,
8843,
67,
6408,
273,
1083,
364,
675,
5768,
316,
1353,
18,
16119,
67,
2232,
30,
309,
675,
5768,
18,
2019,
316,
7707,
3190,
17023,
29434,
17023,
685,
687,
69,
11,
4672,
364,
675,
1369,
316,
675,
5768,
18,
16119,
67,
1369,
30,
2198,
67,
1369,
67,
350,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
1369,
16063,
3530,
12,
3353,
16,
4555,
16,
675,
1369,
18,
350,
16,
13666,
16119,
67,
350,
4278,
8381,
16,
296,
8694,
67,
4873,
4278,
17,
1484,
1369,
18,
8694,
67,
4873,
6792,
2362,
18,
6923,
12,
5768,
67,
1369,
67,
350,
13,
2198,
273,
288,
296,
529,
4278,
1353,
18,
2625,
67,
1019,
67,
1734,
578,
1353,
18,
529,
16,
296,
10012,
4278,
1353,
18,
529,
16,
296,
723,
4278,
296,
659,
67,
16119,
2187,
296,
6180,
4278,
315,
52,
9,
72,
3584,
9,
72,
6,
17105,
1019,
18,
31993,
67,
350,
18,
350,
16,
1019,
18,
350,
3631,
296,
4631,
67,
350,
4278,
279,
16,
296,
31993,
67,
350,
4278,
1353,
18,
31993,
67,
350,
18,
350,
16,
296,
2867,
67,
16119,
67,
350,
4278,
1353,
18,
31993,
67,
16119,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
16119,
12,
2890,
16,
4422,
16,
4555,
16,
1353,
16,
2362,
16,
819,
12938,
4672,
279,
273,
1353,
18,
31993,
67,
350,
18,
4468,
67,
4631,
67,
8606,
427,
429,
18,
350,
309,
1353,
18,
9261,
67,
6408,
30,
8843,
67,
6408,
273,
1353,
18,
9261,
67,
6408,
18,
350,
469,
30,
8843,
67,
6408,
273,
1083,
364,
675,
5768,
316,
1353,
18,
16119,
67,
2232,
30,
309,
675,
5768,
18,
2019,
316,
7707,
3190,
17023,
29434,
17023,
685,
687,
69,
11,
4672,
364,
675,
1369,
316,
675,
5768,
18,
16119,
67,
1369,
30,
2198,
67,
1369,
67,
350,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
1369,
16063,
3530,
12,
3353,
2
] |
print "IP Address is: " + wiface.GetIP(fast=True)
|
print "IP Address is: " + str(wiface.GetIP(fast=True))
|
def run(self): """ The main function of the connection thread.
|
9662012feff3ea47d11f20ce5eb10ca5bf6f6ff0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12280/9662012feff3ea47d11f20ce5eb10ca5bf6f6ff0/networking.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1021,
2774,
445,
434,
326,
1459,
2650,
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,
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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,
1086,
12,
2890,
4672,
3536,
1021,
2774,
445,
434,
326,
1459,
2650,
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
] |
handy.sendmail(msg)
|
sendmail(msg)
|
def sendError(self): SITE_MAIL = self.eng.globals["SITE_MAIL"] SITE_NAME = self.eng.globals["SITE_NAME"] assert SITE_MAIL is not None, "must define SITE_MAIL first!" hr = "-" * 50 + "\n" msg = trim( """ To: %s From: cgi <%s> Subject: uncaught exception in %s
|
520c8335a5a62f4c262820dd35143fd7894e9fca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/520c8335a5a62f4c262820dd35143fd7894e9fca/OutputDecorator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17538,
12,
2890,
4672,
23832,
67,
18191,
273,
365,
18,
24688,
18,
16227,
9614,
20609,
67,
18191,
11929,
23832,
67,
1985,
273,
365,
18,
24688,
18,
16227,
9614,
20609,
67,
1985,
11929,
1815,
23832,
67,
18191,
353,
486,
599,
16,
315,
11926,
4426,
23832,
67,
18191,
1122,
4442,
15407,
273,
7514,
380,
6437,
397,
1548,
82,
6,
1234,
273,
2209,
12,
3536,
2974,
30,
738,
87,
6338,
30,
276,
10052,
23930,
87,
34,
9912,
30,
6301,
16510,
1520,
316,
738,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17538,
12,
2890,
4672,
23832,
67,
18191,
273,
365,
18,
24688,
18,
16227,
9614,
20609,
67,
18191,
11929,
23832,
67,
1985,
273,
365,
18,
24688,
18,
16227,
9614,
20609,
67,
1985,
11929,
1815,
23832,
67,
18191,
353,
486,
599,
16,
315,
11926,
4426,
23832,
67,
18191,
1122,
4442,
15407,
273,
7514,
380,
6437,
397,
1548,
82,
6,
1234,
273,
2209,
12,
3536,
2974,
30,
738,
87,
6338,
30,
276,
10052,
23930,
87,
34,
9912,
30,
6301,
16510,
1520,
316,
738,
87,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
from mapnik import DatasourceCache DatasourceCache.instance().register_datasources('%s' % inputpluginspath) from mapnik import FontEngine from glob import glob fonts = glob('%s/*.ttf' % fontscollectionpath) if len( fonts ) == 0: print " else: map(FontEngine.instance().register_font, fonts)
|
def register_plugins(path=inputpluginspath): """Register plugins located by specified path""" DatasourceCache.instance().register_datasources(path) def register_fonts(path=fontscollectionpath): """Recursively register fonts using path argument as base directory""" for dirpath, _, filenames in os.walk(path): for filename in filenames: if os.path.splitext(filename)[1] == '.ttf': FontEngine.instance().register_font(os.path.join(dirpath, filename)) register_plugins() register_fonts()
|
def mapnik_version_string(): """Return the Mapnik version as a string.""" version = mapnik_version() patch_level = version % 100 minor_version = version / 100 % 1000 major_version = version / 100000 return '%s.%s.%s' % ( major_version, minor_version,patch_level)
|
476838d259fd9cf9eac46924354c61c0a33077cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12100/476838d259fd9cf9eac46924354c61c0a33077cf/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
82,
1766,
67,
1589,
67,
1080,
13332,
3536,
990,
326,
1635,
82,
1766,
1177,
487,
279,
533,
12123,
1177,
273,
852,
82,
1766,
67,
1589,
1435,
4729,
67,
2815,
273,
1177,
738,
2130,
8439,
67,
1589,
273,
1177,
342,
2130,
738,
4336,
7888,
67,
1589,
273,
1177,
342,
25259,
327,
1995,
87,
7866,
87,
7866,
87,
11,
738,
261,
7888,
67,
1589,
16,
8439,
67,
1589,
16,
2272,
67,
2815,
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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82,
1766,
67,
1589,
67,
1080,
13332,
3536,
990,
326,
1635,
82,
1766,
1177,
487,
279,
533,
12123,
1177,
273,
852,
82,
1766,
67,
1589,
1435,
4729,
67,
2815,
273,
1177,
738,
2130,
8439,
67,
1589,
273,
1177,
342,
2130,
738,
4336,
7888,
67,
1589,
273,
1177,
342,
25259,
327,
1995,
87,
7866,
87,
7866,
87,
11,
738,
261,
7888,
67,
1589,
16,
8439,
67,
1589,
16,
2272,
67,
2815,
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
] |
def SetFont( self, value ) : assert not value or isinstance( value, Font )
|
def SetFont(self, value): assert not value or isinstance(value, Font)
|
def SetFont( self, value ) : assert not value or isinstance( value, Font ) self.Font = value return self
|
13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
5711,
12,
2890,
16,
460,
4672,
1815,
486,
460,
578,
1549,
12,
1132,
16,
10063,
13,
365,
18,
5711,
273,
460,
327,
365,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
5711,
12,
2890,
16,
460,
4672,
1815,
486,
460,
578,
1549,
12,
1132,
16,
10063,
13,
365,
18,
5711,
273,
460,
327,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ret&0xff00:
|
if ret: self.compile_error = 1 if not os.path.isfile("abc.swf"):
|
def compile(self): ret,output = runcmd("./parser",[self.file],"/tmp/abctest.txt",wait=60) self.compile_error = 0 self.compile_output = output if ret&0xff00: self.compile_error = 1
|
62204b16ee0d3d7f0876471668a68b9382d332bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5722/62204b16ee0d3d7f0876471668a68b9382d332bb/runtests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
4672,
325,
16,
2844,
273,
436,
551,
1264,
2932,
18,
19,
4288,
3113,
63,
2890,
18,
768,
6487,
6,
19,
5645,
19,
378,
299,
395,
18,
5830,
3113,
7048,
33,
4848,
13,
365,
18,
11100,
67,
1636,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
4672,
325,
16,
2844,
273,
436,
551,
1264,
2932,
18,
19,
4288,
3113,
63,
2890,
18,
768,
6487,
6,
19,
5645,
19,
378,
299,
395,
18,
5830,
3113,
7048,
33,
4848,
13,
365,
18,
11100,
67,
1636,
273,
374,
365,
18,
11100,
67,
2844,
273,
876,
309,
325,
30,
365,
18,
11100,
67,
1636,
273,
404,
309,
486,
1140,
18,
803,
18,
291,
768,
2932,
18947,
18,
5328,
74,
6,
4672,
365,
18,
11100,
67,
1636,
273,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def characters (self, event, string):
|
def characters(self, event, string):
|
def characters (self, event, string): event.addresponse(human_join('U+%(code)s %(name)s' % self.info(c) for c in string))
|
8dac83005f048fe77ba0896fa6e27bc3611b49ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/8dac83005f048fe77ba0896fa6e27bc3611b49ba/conversions.py
|
[
1,
8585,
326,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3949,
12,
2890,
16,
871,
16,
533,
4672,
871,
18,
1289,
2740,
12,
24270,
67,
5701,
2668,
57,
15,
17105,
710,
13,
87,
8975,
529,
13,
87,
11,
738,
365,
18,
1376,
12,
71,
13,
364,
276,
316,
533,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
lists = os.listdir(mm_cfg.LIST_DATA_DIR)
|
lists = Utils.list_names()
|
def ProcessListsCmd(self, args, cmd, mail):
|
5551c37235c9c603bd7ae608093198c4c4d929f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/5551c37235c9c603bd7ae608093198c4c4d929f5/MailCommandHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
7432,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
7432,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
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
] |
All frames will share the same list, which makes sense since the debugging is controlled by class attributes.
|
This is a global plugin that is used to turn on or off debug printing for all the classes that subclass from L{debugmixin}.
|
def action(self, index=-1, multiplier=1): assert self.dprint("id=%x name=%s index=%s" % (id(self),self.name,str(index))) # force collection print "\nGARBAGE:" gc.collect()
|
56ac591d312ea693f3992735f261bc9a7c0cde45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/56ac591d312ea693f3992735f261bc9a7c0cde45/debug_classes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
1815,
365,
18,
72,
1188,
2932,
350,
5095,
92,
508,
5095,
87,
770,
5095,
87,
6,
738,
261,
350,
12,
2890,
3631,
2890,
18,
529,
16,
701,
12,
1615,
20349,
468,
2944,
1849,
1172,
1548,
82,
43,
20926,
2833,
2773,
8859,
18,
14676,
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,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33,
21,
4672,
1815,
365,
18,
72,
1188,
2932,
350,
5095,
92,
508,
5095,
87,
770,
5095,
87,
6,
738,
261,
350,
12,
2890,
3631,
2890,
18,
529,
16,
701,
12,
1615,
20349,
468,
2944,
1849,
1172,
1548,
82,
43,
20926,
2833,
2773,
8859,
18,
14676,
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
] |
self.widget = widget
|
def __init__(self, widget, parent, graph, autoSend = 0, buttons = (1, 4, 5, 0, 6, 7, 8)): QHButtonGroup.__init__(self, "Zoom / Select", parent) self.graph = graph # save graph. used to send signals self.functions = [type(f) == int and self.builtinFunctions[f] or f for f in buttons] for b, f in enumerate(self.functions): if not f: self.addSpace(10) else: button = createButton(self, f[0], lambda x=b: self.action(x), f[3], toggle = f[5]) setattr(self, f[1], button) if f[1] == "buttonSendSelections": button.setEnabled(not autoSend)
|
9a1fa34d647cd2978edc2ada5022d2478fe27fd1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a1fa34d647cd2978edc2ada5022d2478fe27fd1/OWToolbars.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3604,
16,
982,
16,
2667,
16,
3656,
3826,
273,
374,
16,
9502,
273,
261,
21,
16,
1059,
16,
1381,
16,
374,
16,
1666,
16,
2371,
16,
1725,
3719,
30,
2238,
44,
3616,
1114,
16186,
2738,
972,
12,
2890,
16,
315,
11497,
342,
6766,
3113,
982,
13,
225,
365,
18,
4660,
273,
2667,
468,
1923,
2667,
18,
1399,
358,
1366,
11505,
225,
365,
18,
10722,
273,
306,
723,
12,
74,
13,
422,
509,
471,
365,
18,
24553,
7503,
63,
74,
65,
578,
284,
364,
284,
316,
9502,
65,
364,
324,
16,
284,
316,
4241,
12,
2890,
18,
10722,
4672,
309,
486,
284,
30,
365,
18,
1289,
3819,
12,
2163,
13,
469,
30,
3568,
273,
752,
3616,
12,
2890,
16,
284,
63,
20,
6487,
3195,
619,
33,
70,
30,
365,
18,
1128,
12,
92,
3631,
284,
63,
23,
6487,
10486,
273,
284,
63,
25,
5717,
9241,
12,
2890,
16,
284,
63,
21,
6487,
3568,
13,
309,
284,
63,
21,
65,
422,
315,
5391,
3826,
29913,
6877,
3568,
18,
542,
1526,
12,
902,
3656,
3826,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3604,
16,
982,
16,
2667,
16,
3656,
3826,
273,
374,
16,
9502,
273,
261,
21,
16,
1059,
16,
1381,
16,
374,
16,
1666,
16,
2371,
16,
1725,
3719,
30,
2238,
44,
3616,
1114,
16186,
2738,
972,
12,
2890,
16,
315,
11497,
342,
6766,
3113,
982,
13,
225,
365,
18,
4660,
273,
2667,
468,
1923,
2667,
18,
1399,
358,
1366,
11505,
225,
365,
18,
10722,
273,
306,
723,
12,
74,
13,
422,
509,
471,
365,
18,
24553,
7503,
63,
74,
65,
578,
284,
364,
284,
316,
9502,
65,
364,
324,
16,
284,
316,
4241,
12,
2890,
18,
10722,
4672,
309,
486,
284,
30,
365,
18,
1289,
3819,
12,
2163,
13,
469,
30,
3568,
2
] |
|
assert (self._module_key_map.has_key(baseClass), ("Missing base class %s" % baseClass.__name__))
|
if not self._module_key_map.has_key(baseClass) : raise self.MissingBaseClass(baseClass)
|
def fetch(name, default): r = kwargs.get(name, default) try: del kwargs[name] except KeyError: pass return r
|
56525f791f78a6674194ae3bf8bac173f05ded8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/56525f791f78a6674194ae3bf8bac173f05ded8e/module_registry.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
529,
16,
805,
4672,
436,
273,
1205,
18,
588,
12,
529,
16,
805,
13,
775,
30,
1464,
1205,
63,
529,
65,
1335,
4999,
30,
1342,
327,
436,
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
] |
self.hboxlayout20.addWidget(self.bond_stretch_color_btn) self.gridlayout16.addLayout(self.hboxlayout20,2,1,1,1) self.hboxlayout21 = QtGui.QHBoxLayout() self.hboxlayout21.setMargin(0) self.hboxlayout21.setSpacing(6) self.hboxlayout21.setObjectName("hboxlayout21")
|
self.hboxlayout23.addWidget(self.bond_stretch_color_btn) self.gridlayout16.addLayout(self.hboxlayout23,2,1,1,1) self.hboxlayout24 = QtGui.QHBoxLayout() self.hboxlayout24.setMargin(0) self.hboxlayout24.setSpacing(6) self.hboxlayout24.setObjectName("hboxlayout24")
|
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
|
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
12,
20,
16,
20,
16,
4848,
29,
16,
1105,
22,
2934,
1467,
1435,
2934,
17336,
774,
12,
1299,
1386,
2556,
6353,
18,
15903,
1225,
7002,
1435,
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,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
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
12,
20,
16,
20,
16,
4848,
29,
16,
1105,
22,
2934,
1467,
1435,
2934,
17336,
774,
12,
1299,
1386,
2556,
6353,
18,
15903,
1225,
7002,
1435,
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
] |
why = os.strerror(err.errno)
|
why = _strerror(err)
|
def ftp_LIST(self, line): """Return a list of files in the specified directory to the client. Defaults to the current working directory. """ if line: # some FTP clients (like Konqueror or Nautilus) erroneously issue # /bin/ls-like LIST formats (e.g. "LIST -l", "LIST -al" and so # on...) instead of passing a directory as the argument. If we # receive such a command, just LIST the current working directory. if line.lower() in ("-a", "-l", "-al", "-la"): path = self.fs.translate(self.fs.cwd) line = self.fs.cwd # otherwise we assume the arg is a directory name else: path = self.fs.translate(line) line = self.fs.normalize(line) # no argument, fall back on cwd as default else: path = self.fs.translate(self.fs.cwd) line = self.fs.cwd
|
e155be2e9b3e40d9bd92788d2569c640df5f0b57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e155be2e9b3e40d9bd92788d2569c640df5f0b57/ftpserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
7085,
12,
2890,
16,
980,
4672,
3536,
990,
279,
666,
434,
1390,
316,
326,
1269,
1867,
358,
326,
1004,
18,
14159,
358,
326,
783,
5960,
1867,
18,
3536,
309,
980,
30,
468,
2690,
19324,
7712,
261,
5625,
1475,
265,
25734,
280,
578,
16350,
1367,
407,
13,
393,
476,
1481,
715,
5672,
468,
342,
4757,
19,
3251,
17,
5625,
15130,
6449,
261,
73,
18,
75,
18,
315,
7085,
300,
80,
3113,
315,
7085,
300,
287,
6,
471,
1427,
468,
603,
21846,
3560,
434,
9588,
279,
1867,
487,
326,
1237,
18,
971,
732,
468,
6798,
4123,
279,
1296,
16,
2537,
15130,
326,
783,
5960,
1867,
18,
309,
980,
18,
8167,
1435,
316,
7566,
17,
69,
3113,
3701,
80,
3113,
3701,
287,
3113,
3701,
11821,
6,
4672,
589,
273,
365,
18,
2556,
18,
13929,
12,
2890,
18,
2556,
18,
11089,
13,
980,
273,
365,
18,
2556,
18,
11089,
468,
3541,
732,
6750,
326,
1501,
353,
279,
1867,
508,
469,
30,
589,
273,
365,
18,
2556,
18,
13929,
12,
1369,
13,
980,
273,
365,
18,
2556,
18,
12237,
12,
1369,
13,
468,
1158,
1237,
16,
4159,
1473,
603,
7239,
487,
805,
469,
30,
589,
273,
365,
18,
2556,
18,
13929,
12,
2890,
18,
2556,
18,
11089,
13,
980,
273,
365,
18,
2556,
18,
11089,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
7085,
12,
2890,
16,
980,
4672,
3536,
990,
279,
666,
434,
1390,
316,
326,
1269,
1867,
358,
326,
1004,
18,
14159,
358,
326,
783,
5960,
1867,
18,
3536,
309,
980,
30,
468,
2690,
19324,
7712,
261,
5625,
1475,
265,
25734,
280,
578,
16350,
1367,
407,
13,
393,
476,
1481,
715,
5672,
468,
342,
4757,
19,
3251,
17,
5625,
15130,
6449,
261,
73,
18,
75,
18,
315,
7085,
300,
80,
3113,
315,
7085,
300,
287,
6,
471,
1427,
468,
603,
21846,
3560,
434,
9588,
279,
1867,
487,
326,
1237,
18,
971,
732,
468,
6798,
4123,
279,
1296,
16,
2537,
15130,
326,
783,
5960,
1867,
18,
309,
980,
18,
8167,
1435,
316,
7566,
17,
69,
3113,
3701,
80,
2
] |
debug('result handler got %s -- exiting', exc.__class__.__name__)
|
debug('result handler got %r -- exiting' % (exc, ))
|
def run(self): get = self.get outqueue = self.outqueue cache = self.cache putlock = self.putlock
|
409811c9c25cd86bffb6fbec5abbd7fce80b765f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/409811c9c25cd86bffb6fbec5abbd7fce80b765f/pool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
336,
273,
365,
18,
588,
596,
4000,
273,
365,
18,
659,
4000,
1247,
273,
365,
18,
2493,
1378,
739,
273,
365,
18,
458,
739,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
336,
273,
365,
18,
588,
596,
4000,
273,
365,
18,
659,
4000,
1247,
273,
365,
18,
2493,
1378,
739,
273,
365,
18,
458,
739,
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
] |
print fsize print config['BoundSandboxLimit']
|
def __check_and_prestage_inputfile__(self, file): '''Checks the given input file size and if it's size is over "BoundSandboxLimit", prestage it to a grid SE.
|
271ead6ffa5606f07c3482b129971b53f8f7312f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/271ead6ffa5606f07c3482b129971b53f8f7312f/CREAM.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
464,
67,
1484,
12869,
67,
2630,
768,
972,
12,
2890,
16,
585,
4672,
9163,
4081,
326,
864,
810,
585,
963,
471,
309,
518,
1807,
963,
353,
1879,
315,
3499,
17881,
3039,
3113,
675,
12869,
518,
358,
279,
3068,
3174,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
464,
67,
1484,
12869,
67,
2630,
768,
972,
12,
2890,
16,
585,
4672,
9163,
4081,
326,
864,
810,
585,
963,
471,
309,
518,
1807,
963,
353,
1879,
315,
3499,
17881,
3039,
3113,
675,
12869,
518,
358,
279,
3068,
3174,
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
] |
|
Format SAGE documentation for viewing with IPython.
|
Format Sage documentation ``s`` for viewing with IPython. This calls ``detex`` on ``s`` to convert LaTeX commands to plain text, and if ``s`` contains a string of the form "<<<obj>>>", then it replaces it with the docstring for "obj". INPUT: ``s`` - string OUTPUT: string EXAMPLES:: sage: from sage.misc.sagedoc import format sage: identity_matrix(2).rook_vector.__doc__[115:184] 'Let `A` be a general `m` by `n`\n (0,1)-matrix with `m \\le n`. ' sage: format(identity_matrix(2).rook_vector.__doc__[115:184]) 'Let `A` be a general `m` by `n`\n (0,1)-matrix with `m <= n`. ' If the first line of the string is 'nodetex', don't modify any TeX commands:: sage: format("nodetex\n`x \\geq y`") 'nodetex\n`x \\geq y`' Testing a string enclosed in triple angle brackets:: sage: format('<<<identity_matrix') '<<<identity_matrix' sage: format('identity_matrix>>>') 'identity_matrix>>>' sage: format('<<<identity_matrix>>>')[:28] '\nDefinition: identity_matrix'
|
def format(s): """ Format SAGE documentation for viewing with IPython. """ if not isinstance(s, str): raise TypeError, "s must be a string" # parse directives at beginning of docstring # currently, only 'nodetex' is supported # eventually, 'nodoctest' might be supported first_newline = s.find('\n') if first_newline > -1: first_line = s[:first_newline] else: first_line = s directives = [ d.lower() for d in first_line.split(',') ] import sage.all import sage.server.support docs = set([]) while True: i = s.find("<<<") if i == -1: break j = s[i+3:].find('>>>') if j == -1: break obj = s[i+3:i+3+j] if obj in docs: t = '' else: x = eval('sage.all.%s'%obj, locals()) t0 = sage.server.support.get_def(x, obj) t1 = my_getdoc(x) t = 'Definition: ' + t0 + '\n\n' + t1 docs.add(obj) s = s[:i] + '\n' + t + s[i+6+j:] if 'nodetex' not in directives: s = detex(s) return s
|
dcebe748f1ef8b1b2487c34467d71b3d3e2fcf7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dcebe748f1ef8b1b2487c34467d71b3d3e2fcf7d/sagedoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
87,
4672,
3536,
4077,
348,
410,
7323,
12176,
87,
10335,
364,
1476,
310,
598,
26085,
18,
225,
1220,
4097,
12176,
8238,
338,
10335,
603,
12176,
87,
10335,
358,
1765,
21072,
21575,
60,
4364,
358,
7351,
977,
16,
471,
309,
12176,
87,
10335,
1914,
279,
533,
434,
326,
646,
3532,
17685,
2603,
9778,
2984,
16,
1508,
518,
12878,
518,
598,
326,
14525,
364,
315,
2603,
9654,
225,
12943,
30,
12176,
87,
10335,
300,
533,
225,
11550,
30,
533,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
87,
11349,
504,
1930,
740,
272,
410,
30,
4215,
67,
5667,
12,
22,
2934,
303,
601,
67,
7737,
16186,
2434,
972,
63,
22062,
30,
29242,
65,
296,
24181,
1375,
37,
68,
506,
279,
7470,
1375,
81,
68,
635,
1375,
82,
68,
64,
82,
3639,
261,
20,
16,
21,
24950,
5667,
598,
1375,
81,
1736,
298,
290,
8338,
296,
272,
410,
30,
740,
12,
10781,
67,
5667,
12,
22,
2934,
303,
601,
67,
7737,
16186,
2434,
972,
63,
22062,
30,
29242,
5717,
296,
24181,
1375,
37,
68,
506,
279,
7470,
1375,
81,
68,
635,
1375,
82,
68,
64,
82,
3639,
261,
20,
16,
21,
24950,
5667,
598,
1375,
81,
1648,
290,
8338,
296,
225,
971,
326,
1122,
980,
434,
326,
533,
353,
296,
19888,
278,
338,
2187,
2727,
1404,
5612,
1281,
28602,
60,
4364,
2866,
225,
272,
410,
30,
740,
2932,
19888,
278,
338,
64,
82,
68,
92,
1736,
908,
85,
677,
68,
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,
740,
12,
87,
4672,
3536,
4077,
348,
410,
7323,
12176,
87,
10335,
364,
1476,
310,
598,
26085,
18,
225,
1220,
4097,
12176,
8238,
338,
10335,
603,
12176,
87,
10335,
358,
1765,
21072,
21575,
60,
4364,
358,
7351,
977,
16,
471,
309,
12176,
87,
10335,
1914,
279,
533,
434,
326,
646,
3532,
17685,
2603,
9778,
2984,
16,
1508,
518,
12878,
518,
598,
326,
14525,
364,
315,
2603,
9654,
225,
12943,
30,
12176,
87,
10335,
300,
533,
225,
11550,
30,
533,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
87,
11349,
504,
1930,
740,
272,
410,
30,
4215,
67,
5667,
12,
22,
2934,
303,
601,
67,
7737,
16186,
2434,
972,
63,
22062,
30,
2
] |
text = findAbout(path)
|
text = getAboutUTF8(path)
|
def open(reference, mode=None): path = str(reference.path) #dprint(str(reference)) text = findAbout(path) if text is None: raise IOError("[Errno 2] No such file or directory: '%s'" % reference) recurse_count = 100 mimetype = findMime(path) if mimetype.startswith("text") and text.find("%(") >= 0: updateDynamicSubstitutes() while text.find("%(") >= 0 and recurse_count>0: text = text % substitutes recurse_count -= 1 text = text.encode('utf-8') # FIXME: display error when recurse count is triggered??? fh=StringIO() fh.write(text) fh.seek(0)
|
16972011369bee6f6e5e388df682403af7d576ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/16972011369bee6f6e5e388df682403af7d576ab/about.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
6180,
16,
1965,
33,
7036,
4672,
589,
273,
609,
12,
6180,
18,
803,
13,
468,
72,
1188,
12,
701,
12,
6180,
3719,
977,
273,
4506,
70,
659,
5159,
28,
12,
803,
13,
309,
977,
353,
599,
30,
1002,
8340,
2932,
63,
2524,
2135,
576,
65,
2631,
4123,
585,
578,
1867,
30,
1995,
87,
4970,
738,
2114,
13,
11502,
67,
1883,
273,
2130,
12595,
273,
1104,
13320,
12,
803,
13,
309,
12595,
18,
17514,
1918,
2932,
955,
7923,
471,
977,
18,
4720,
27188,
2932,
13,
1545,
374,
30,
1089,
9791,
1676,
5223,
993,
1435,
1323,
977,
18,
4720,
27188,
2932,
13,
1545,
374,
471,
11502,
67,
1883,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
6180,
16,
1965,
33,
7036,
4672,
589,
273,
609,
12,
6180,
18,
803,
13,
468,
72,
1188,
12,
701,
12,
6180,
3719,
977,
273,
4506,
70,
659,
5159,
28,
12,
803,
13,
309,
977,
353,
599,
30,
1002,
8340,
2932,
63,
2524,
2135,
576,
65,
2631,
4123,
585,
578,
1867,
30,
1995,
87,
4970,
738,
2114,
13,
11502,
67,
1883,
273,
2130,
12595,
273,
1104,
13320,
12,
803,
13,
309,
12595,
18,
17514,
1918,
2932,
955,
7923,
471,
977,
18,
4720,
27188,
2932,
13,
1545,
374,
30,
1089,
9791,
1676,
5223,
993,
1435,
1323,
977,
18,
4720,
27188,
2932,
13,
1545,
374,
471,
11502,
67,
1883,
34,
20,
30,
977,
273,
977,
738,
7461,
993,
11502,
2
] |
count=0
|
count = 0
|
def check_assign(self, cr, uid, ids, context={}): done = [] count=0 pickings = {} for move in self.browse(cr, uid, ids): if move.product_id.type == 'consu': if move.state in ('confirmed', 'waiting'): done.append(move.id) pickings[move.picking_id.id] = 1 continue if move.state in ('confirmed','waiting'): res = self.pool.get('stock.location')._product_reserve(cr, uid, [move.location_id.id], move.product_id.id, move.product_qty, {'uom': move.product_uom.id}) if res: done.append(move.id) pickings[move.picking_id.id] = 1 r = res.pop(0) cr.execute('update stock_move set location_id=%s, product_qty=%s where id=%s', (r[1],r[0], move.id))
|
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
6145,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
2731,
273,
5378,
1056,
273,
374,
6002,
899,
273,
2618,
364,
3635,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
3635,
18,
5896,
67,
350,
18,
723,
422,
296,
8559,
89,
4278,
309,
3635,
18,
2019,
316,
7707,
21606,
2187,
296,
20241,
11,
4672,
2731,
18,
6923,
12,
8501,
18,
350,
13,
6002,
899,
63,
8501,
18,
11503,
310,
67,
350,
18,
350,
65,
273,
404,
1324,
309,
3635,
18,
2019,
316,
7707,
21606,
17023,
20241,
11,
4672,
400,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3562,
16063,
67,
5896,
67,
455,
6527,
12,
3353,
16,
4555,
16,
306,
8501,
18,
3562,
67,
350,
18,
350,
6487,
3635,
18,
5896,
67,
350,
18,
350,
16,
3635,
18,
5896,
67,
85,
4098,
16,
13666,
89,
362,
4278,
3635,
18,
5896,
67,
89,
362,
18,
350,
6792,
309,
400,
30,
2731,
18,
6923,
12,
8501,
18,
350,
13,
6002,
899,
63,
8501,
18,
11503,
310,
67,
350,
18,
350,
65,
273,
404,
436,
273,
400,
18,
5120,
12,
20,
13,
4422,
18,
8837,
2668,
2725,
12480,
67,
8501,
444,
2117,
67,
350,
5095,
87,
16,
3017,
67,
85,
4098,
5095,
87,
1625,
612,
5095,
87,
2187,
261,
86,
63,
21,
6487,
86,
63,
20,
6487,
3635,
18,
350,
3719,
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,
866,
67,
6145,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
2731,
273,
5378,
1056,
273,
374,
6002,
899,
273,
2618,
364,
3635,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
3635,
18,
5896,
67,
350,
18,
723,
422,
296,
8559,
89,
4278,
309,
3635,
18,
2019,
316,
7707,
21606,
2187,
296,
20241,
11,
4672,
2731,
18,
6923,
12,
8501,
18,
350,
13,
6002,
899,
63,
8501,
18,
11503,
310,
67,
350,
18,
350,
65,
273,
404,
1324,
309,
3635,
18,
2019,
316,
7707,
21606,
17023,
20241,
11,
4672,
400,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3562,
16063,
67,
5896,
67,
455,
6527,
12,
3353,
16,
4555,
2
] |
workflow = output[-5].strip().split()[1]
|
index = FindIndex(output,'Created') if index == -1 : print "No workflow was created by createProductionWorkflow_CSAi08Hack.py" sys.exit(1) workflow = output[index].split()[1].strip()
|
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection script - prepare local DBS query script required parameters --samples <textfile> : list of RelVal sample parameter-sets in plain text file, one sample per line, # marks comment --version <processing version> : processing version (v1, v2, ... ) --DBSURL <URL> : URL of the local DBS (http://cmsdbsprod.cern.ch/cms_dbs_prod_local_07/servlet/DBSServlet, http://cmssrv46.fnal.gov:8080/DBS126/servlet/DBSServlet) optional parameters : --lumi <number> : initial run for generation (default: 666666), set it to 777777 for high statistics samples --event <number> : initial event number --help (-h) : help --debug (-d) : debug statements """ # default try: version = os.environ.get("CMSSW_VERSION") except: print '' print 'CMSSW version cannot be determined from $CMSSW_VERSION' sys.exit(2) try: architecture = os.environ.get("SCRAM_ARCH") except: print '' print 'CMSSW architecture cannot be determined from $SCRAM_ARCH' sys.exit(2) samples = None processing_version = None initial_run = "666666" initial_event = None debug = 0 DBSURL = None try: opts, args = getopt.getopt(argv, "", ["help", "debug", "samples=", "version=", "DBSURL=", "event=", "lumi="]) except getopt.GetoptError: print main.__doc__ sys.exit(2) # check command line parameter for opt, arg in opts : if opt == "--help" : print main.__doc__ sys.exit() elif opt == "--debug" : debug = 1 elif opt == "--samples" : samples = arg elif opt == "--version" : processing_version = arg
|
47397be0ad25e900c8367cb1b05a7d6e187b915f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/47397be0ad25e900c8367cb1b05a7d6e187b915f/prepareRelValWorkflows.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
13,
294,
3536,
225,
2911,
1971,
3053,
13815,
87,
225,
2911,
31738,
364,
20269,
4929,
434,
4275,
3053,
5216,
225,
300,
1109,
585,
19918,
6166,
4668,
4364,
364,
404,
334,
471,
576,
4880,
6075,
300,
2911,
31738,
300,
2911,
11363,
19210,
30,
1210,
2728,
300,
2911,
11889,
6786,
2728,
300,
2911,
2383,
7303,
6574,
774,
5160,
2728,
300,
2911,
4360,
2056,
424,
12039,
2728,
300,
2911,
1191,
2383,
55,
843,
2728,
225,
1931,
1472,
1493,
7319,
411,
955,
768,
34,
6647,
294,
666,
434,
4275,
3053,
3296,
1569,
17,
4424,
316,
7351,
977,
585,
16,
1245,
3296,
1534,
980,
16,
468,
13999,
2879,
1493,
1589,
411,
10632,
1177,
34,
294,
4929,
1177,
261,
90,
21,
16,
331,
22,
16,
1372,
262,
1493,
2290,
55,
1785,
411,
1785,
34,
1171,
294,
1976,
434,
326,
1191,
2383,
55,
261,
2505,
2207,
6851,
23475,
17672,
18,
14770,
18,
343,
19,
6851,
67,
23475,
67,
17672,
67,
3729,
67,
8642,
19,
23231,
19,
2290,
55,
4745,
16,
1062,
2207,
6851,
20818,
8749,
18,
4293,
287,
18,
75,
1527,
30,
3672,
3672,
19,
2290,
55,
25452,
19,
23231,
19,
2290,
55,
4745,
13,
225,
3129,
1472,
5411,
294,
1493,
80,
30865,
411,
2696,
34,
7734,
294,
2172,
1086,
364,
9377,
261,
1886,
30,
1666,
6028,
25308,
3631,
444,
518,
358,
2371,
4700,
14509,
364,
3551,
7691,
5216,
1493,
2575,
411,
2696,
34,
9079,
294,
2172,
871,
1300,
1493,
5201,
24927,
76,
13,
10792,
294,
2809,
1493,
4148,
24927,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
13,
294,
3536,
225,
2911,
1971,
3053,
13815,
87,
225,
2911,
31738,
364,
20269,
4929,
434,
4275,
3053,
5216,
225,
300,
1109,
585,
19918,
6166,
4668,
4364,
364,
404,
334,
471,
576,
4880,
6075,
300,
2911,
31738,
300,
2911,
11363,
19210,
30,
1210,
2728,
300,
2911,
11889,
6786,
2728,
300,
2911,
2383,
7303,
6574,
774,
5160,
2728,
300,
2911,
4360,
2056,
424,
12039,
2728,
300,
2911,
1191,
2383,
55,
843,
2728,
225,
1931,
1472,
1493,
7319,
411,
955,
768,
34,
6647,
294,
666,
434,
4275,
3053,
3296,
1569,
17,
4424,
316,
7351,
977,
585,
16,
1245,
3296,
1534,
980,
16,
468,
13999,
2879,
1493,
1589,
411,
10632,
1177,
34,
294,
4929,
1177,
261,
90,
21,
2
] |
start = start + 1
|
def skip_leading_nodes(children, start, i): i = min(i, len(children)) while i > start: # skip over leading comments and whitespace: try: child = children[start] except IndexError: sys.stderr.write( "skip_leading_nodes() failed at index %d\n" % start) raise nodeType = child.nodeType if nodeType == xml.dom.core.COMMENT: start = start + 1 elif nodeType == xml.dom.core.TEXT: data = child.data shortened = string.lstrip(data) if shortened: if data != shortened: # break into two nodes: whitespace and non-whitespace child.splitText(len(data) - len(shortened)) return start + 1, i + 1 break # all whitespace, just skip start = start + 1 elif nodeType == xml.dom.core.ELEMENT: if child.tagName in PARA_LEVEL_ELEMENTS + PARA_LEVEL_PRECEEDERS: start = start + 1 else: break else: break return start, i
|
7dab6affba271fd9784c15fa0e867a8e91a45e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7dab6affba271fd9784c15fa0e867a8e91a45e83/docfixer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
67,
27200,
67,
4690,
12,
5906,
16,
787,
16,
277,
4672,
277,
273,
1131,
12,
77,
16,
562,
12,
5906,
3719,
1323,
277,
405,
787,
30,
468,
2488,
1879,
7676,
5678,
471,
7983,
30,
775,
30,
1151,
273,
2325,
63,
1937,
65,
1335,
10195,
30,
2589,
18,
11241,
18,
2626,
12,
315,
7457,
67,
27200,
67,
4690,
1435,
2535,
622,
770,
738,
72,
64,
82,
6,
738,
787,
13,
1002,
9507,
273,
1151,
18,
2159,
559,
309,
9507,
422,
2025,
18,
9859,
18,
3644,
18,
12200,
30,
1327,
9507,
422,
2025,
18,
9859,
18,
3644,
18,
5151,
30,
501,
273,
1151,
18,
892,
19651,
329,
273,
533,
18,
80,
6406,
12,
892,
13,
309,
19651,
329,
30,
309,
501,
480,
19651,
329,
30,
468,
898,
1368,
2795,
2199,
30,
7983,
471,
1661,
17,
18777,
1151,
18,
4939,
1528,
12,
1897,
12,
892,
13,
300,
562,
12,
6620,
275,
329,
3719,
327,
787,
397,
404,
16,
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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,
2488,
67,
27200,
67,
4690,
12,
5906,
16,
787,
16,
277,
4672,
277,
273,
1131,
12,
77,
16,
562,
12,
5906,
3719,
1323,
277,
405,
787,
30,
468,
2488,
1879,
7676,
5678,
471,
7983,
30,
775,
30,
1151,
273,
2325,
63,
1937,
65,
1335,
10195,
30,
2589,
18,
11241,
18,
2626,
12,
315,
7457,
67,
27200,
67,
4690,
1435,
2535,
622,
770,
738,
72,
64,
82,
6,
738,
787,
13,
1002,
9507,
273,
1151,
18,
2159,
559,
309,
9507,
422,
2025,
18,
9859,
18,
3644,
18,
12200,
30,
1327,
9507,
422,
2025,
18,
9859,
18,
3644,
18,
5151,
30,
501,
273,
1151,
18,
892,
19651,
329,
273,
533,
18,
80,
6406,
12,
892,
13,
309,
19651,
329,
30,
2
] |
|
make_classes('../../lps/include/mcrl2/modal_formula/state_formula.h', STATE_FORMULA_CLASSES, 'state_formula', generate_is_functions = True, superclass_aterm = 'StateFrm')
|
make_classes('../../lps/include/mcrl2/modal_formula/state_formula.h', STATE_FORMULA_CLASSES, 'state_formula', generate_is_functions = True)
|
def make_is_functions(filename, class_text, classname, namespace = 'core'): TERM_TRAITS_TEXT = r''' /// \\brief Test for a %s expression /// \\param t A term /// \\return True if it is a %s expression inline bool is_%s(const %s& t) { return %s::detail::gsIs%s(t); }
|
2811c4b39f217fa487af021799a1127a5407fc49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1522/2811c4b39f217fa487af021799a1127a5407fc49/generate_classes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
291,
67,
10722,
12,
3459,
16,
667,
67,
955,
16,
7479,
16,
1981,
273,
296,
3644,
11,
4672,
20772,
49,
67,
20060,
10158,
67,
5151,
273,
436,
26418,
18378,
1736,
25888,
7766,
364,
279,
738,
87,
2652,
18378,
1736,
891,
268,
432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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
291,
67,
10722,
12,
3459,
16,
667,
67,
955,
16,
7479,
16,
1981,
273,
296,
3644,
11,
4672,
20772,
49,
67,
20060,
10158,
67,
5151,
273,
436,
26418,
18378,
1736,
25888,
7766,
364,
279,
738,
87,
2652,
18378,
1736,
891,
268,
432,
2481,
18378,
1736,
2463,
1053,
309,
518,
353,
279,
738,
87,
2652,
6370,
1426,
353,
10185,
87,
12,
10248,
738,
87,
10,
268,
13,
288,
327,
738,
87,
2866,
8992,
2866,
564,
2520,
9,
87,
12,
88,
1769,
289,
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
] |
record['nat'] = 0
|
def connectback_result(self, result, downloadid, peerid, ip, port): record = self.downloads.get(downloadid, {}).get(peerid) if record is None or record['ip'] != ip or record['port'] != port: return if not record.has_key('nat'): record['nat'] = int(not result) if result: record['nat'] = 0 self.becache1.setdefault(downloadid,{})[peerid] = Bencached(bencode({'ip': ip, 'port': port, 'peer id': myid})) self.becache2.setdefault(downloadid,{})[peerid] = Bencached(bencode({'ip': ip, 'port': port}))
|
648808943e7e2648e1b386c8a3eac45606fd5987 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/648808943e7e2648e1b386c8a3eac45606fd5987/track.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
823,
67,
2088,
12,
2890,
16,
563,
16,
4224,
350,
16,
4261,
350,
16,
2359,
16,
1756,
4672,
1409,
273,
365,
18,
7813,
87,
18,
588,
12,
7813,
350,
16,
2618,
2934,
588,
12,
12210,
350,
13,
309,
1409,
353,
599,
578,
1409,
3292,
625,
3546,
480,
2359,
578,
1409,
3292,
655,
3546,
480,
1756,
30,
327,
309,
486,
1409,
18,
5332,
67,
856,
2668,
18757,
11,
4672,
1409,
3292,
18757,
3546,
273,
509,
12,
902,
563,
13,
309,
563,
30,
365,
18,
70,
557,
807,
21,
18,
542,
1886,
12,
7813,
350,
16,
2916,
25146,
12210,
350,
65,
273,
605,
1331,
2004,
12,
70,
3015,
12590,
11,
625,
4278,
2359,
16,
296,
655,
4278,
1756,
16,
296,
12210,
612,
4278,
3399,
350,
31700,
365,
18,
70,
557,
807,
22,
18,
542,
1886,
12,
7813,
350,
16,
2916,
25146,
12210,
350,
65,
273,
605,
1331,
2004,
12,
70,
3015,
12590,
11,
625,
4278,
2359,
16,
296,
655,
4278,
1756,
31700,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
823,
67,
2088,
12,
2890,
16,
563,
16,
4224,
350,
16,
4261,
350,
16,
2359,
16,
1756,
4672,
1409,
273,
365,
18,
7813,
87,
18,
588,
12,
7813,
350,
16,
2618,
2934,
588,
12,
12210,
350,
13,
309,
1409,
353,
599,
578,
1409,
3292,
625,
3546,
480,
2359,
578,
1409,
3292,
655,
3546,
480,
1756,
30,
327,
309,
486,
1409,
18,
5332,
67,
856,
2668,
18757,
11,
4672,
1409,
3292,
18757,
3546,
273,
509,
12,
902,
563,
13,
309,
563,
30,
365,
18,
70,
557,
807,
21,
18,
542,
1886,
12,
7813,
350,
16,
2916,
25146,
12210,
350,
65,
273,
605,
1331,
2004,
12,
70,
3015,
12590,
11,
625,
4278,
2359,
16,
296,
655,
4278,
1756,
16,
2
] |
|
offset = pa - bank.startaddr
|
if self.isSwitched(pa): offset = pa - bank.startaddr if self.isErasable(pa): offset += 01400 else: offset += 02000 else: offset = pa
|
def pseudoToSegmented(self, pa): retval = (None, None) if pa != None: bank = self._findBank(pa) if bank: offset = pa - bank.startaddr retval = (bank.banknum, offset) else: print >>sys.stderr, "Error, invalid pseudo address %06o" % pa return retval
|
4173d65e712f3cfe2f21ba1d06547791a8a51854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/4173d65e712f3cfe2f21ba1d06547791a8a51854/memory.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12454,
774,
4131,
329,
12,
2890,
16,
6790,
4672,
5221,
273,
261,
7036,
16,
599,
13,
309,
6790,
480,
599,
30,
11218,
273,
365,
6315,
4720,
16040,
12,
8774,
13,
309,
11218,
30,
309,
365,
18,
291,
10200,
329,
12,
8774,
4672,
1384,
273,
6790,
300,
11218,
18,
1937,
4793,
309,
365,
18,
291,
41,
21636,
429,
12,
8774,
4672,
1384,
1011,
374,
3461,
713,
469,
30,
1384,
1011,
374,
17172,
469,
30,
1384,
273,
6790,
5221,
273,
261,
10546,
18,
10546,
2107,
16,
1384,
13,
469,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
668,
16,
2057,
12454,
1758,
738,
7677,
83,
6,
738,
6790,
327,
5221,
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,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774,
4131,
329,
12,
2890,
16,
6790,
4672,
5221,
273,
261,
7036,
16,
599,
13,
309,
6790,
480,
599,
30,
11218,
273,
365,
6315,
4720,
16040,
12,
8774,
13,
309,
11218,
30,
309,
365,
18,
291,
10200,
329,
12,
8774,
4672,
1384,
273,
6790,
300,
11218,
18,
1937,
4793,
309,
365,
18,
291,
41,
21636,
429,
12,
8774,
4672,
1384,
1011,
374,
3461,
713,
469,
30,
1384,
1011,
374,
17172,
469,
30,
1384,
273,
6790,
5221,
273,
261,
10546,
18,
10546,
2107,
16,
1384,
13,
469,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
668,
16,
2057,
12454,
1758,
738,
7677,
83,
6,
738,
6790,
327,
5221,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return []
|
return (FALSE, 'no search string')
|
def findMatches(self, find=None): global guide
|
63bfc3ce0c1fe8f1831e173d6b472945a6f9c376 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/63bfc3ce0c1fe8f1831e173d6b472945a6f9c376/recordserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
6869,
12,
2890,
16,
1104,
33,
7036,
4672,
2552,
7343,
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,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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,
1104,
6869,
12,
2890,
16,
1104,
33,
7036,
4672,
2552,
7343,
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
] |
def prefs_hostentry_changed(self, entry, profile_combo): prefs_profile_num = profile_combo.get_active() self.config.host[prefs_profile_num] = entry.get_text()
|
def _hostentry_changed(self, entry, profile_combo): profile_num = profile_combo.get_active() self.config.host[profile_num] = entry.get_text()
|
def prefs_hostentry_changed(self, entry, profile_combo): prefs_profile_num = profile_combo.get_active() self.config.host[prefs_profile_num] = entry.get_text()
|
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2564,
4099,
67,
6703,
12,
2890,
16,
1241,
16,
3042,
67,
25053,
4672,
3042,
67,
2107,
273,
3042,
67,
25053,
18,
588,
67,
3535,
1435,
365,
18,
1425,
18,
2564,
63,
5040,
67,
2107,
65,
273,
1241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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,
389,
2564,
4099,
67,
6703,
12,
2890,
16,
1241,
16,
3042,
67,
25053,
4672,
3042,
67,
2107,
273,
3042,
67,
25053,
18,
588,
67,
3535,
1435,
365,
18,
1425,
18,
2564,
63,
5040,
67,
2107,
65,
273,
1241,
18,
588,
67,
955,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.pm = pm
|
def __init__(self, directories, permissions, handler, flags, pm):
|
cbf8ac7bd84b3bb262816fb16af2d4e9a7f5263e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10458/cbf8ac7bd84b3bb262816fb16af2d4e9a7f5263e/server.py
|
[
1,
8585,
326,
22398,
316,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6402,
16,
4371,
16,
1838,
16,
2943,
16,
7430,
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
] |
|
if holelists is not None: assert len(holelists) == len(facets)
|
if facet_holestarts is not None: assert len(facet_holestarts) == len(facets)
|
def set_facets_ex(self, facets, markers=None, holelists=None): """Set a list of complicated factes. Unlike L{set_facets}, C{set_facets_ex()} allows holes and multiple polygons per facet.
|
3ced297c55913885e4b6094b0c0e25c20e66ad10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11985/3ced297c55913885e4b6094b0c0e25c20e66ad10/tet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11639,
2413,
67,
338,
12,
2890,
16,
21681,
16,
11754,
33,
7036,
16,
366,
355,
292,
1486,
33,
7036,
4672,
3536,
694,
279,
666,
434,
31312,
5410,
281,
18,
25448,
511,
95,
542,
67,
11639,
2413,
5779,
385,
95,
542,
67,
11639,
2413,
67,
338,
17767,
5360,
26299,
471,
3229,
17294,
1534,
11082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11639,
2413,
67,
338,
12,
2890,
16,
21681,
16,
11754,
33,
7036,
16,
366,
355,
292,
1486,
33,
7036,
4672,
3536,
694,
279,
666,
434,
31312,
5410,
281,
18,
25448,
511,
95,
542,
67,
11639,
2413,
5779,
385,
95,
542,
67,
11639,
2413,
67,
338,
17767,
5360,
26299,
471,
3229,
17294,
1534,
11082,
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
] |
if len(sys.argv) >= 2 and sys.argv[1] == '-m'::
|
if len(sys.argv) >= 2 and sys.argv[1] == '-m':
|
def main(): """ <Purpose> Ping all the machines to see if they are up <Exceptions> none <Side Effects> Prints the ping result <Returns> None. """ # setup the gmail user/password to use when sending email success,explanation_str = send_gmail.init_gmail() if not success: log(explanation_str) sys.exit(0) log("pinging critical machines") #list of machines thats getting pinged pinglist = [] #list that contains all the ping results result_queue = [] #create a thread for each machine and ping them for host in machine_list: current_machine = ping(str(host), result_queue) pinglist.append(current_machine) current_machine.start() #join all the threads for ping_host in pinglist: ping_host.join() #variable that keeps track if any machines are down ALL_MACHINES_RUNNING = True error_message="WARNING: Seattle machines are down! Seattle developers please check on the machines.\n" error_message+="Displaying ping result:\n" #check to see if all the results were successful #on failures notify the admins and send a message to the irc for (success, result) in result_queue: if not success: ALL_MACHINES_RUNNING = False error_message += result+"\n" #if all machines were pinged successfully, notify on irc if option -m was used to run ping_machines.py if ALL_MACHINES_RUNNING: if len(sys.argv) >= 2 and sys.argv[1] == '-m':: irc_seattlebot.send_msg("The machines: "+str(machine_list)+" were pinged successfully") else: handle_exception(error_message) irc_seattlebot.send_msg(error_message) print time.ctime() + " : Done pinging all machiens." print "--------------------------------------------"
|
827decb1c668ba0009f1d951a832b6f658926972 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/827decb1c668ba0009f1d951a832b6f658926972/ping_machines.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
411,
10262,
4150,
34,
18214,
777,
326,
15942,
358,
2621,
309,
2898,
854,
731,
225,
411,
11416,
34,
6555,
225,
411,
8895,
30755,
87,
34,
3038,
87,
326,
10087,
563,
225,
411,
1356,
34,
599,
18,
3536,
225,
468,
3875,
326,
314,
4408,
729,
19,
3664,
358,
999,
1347,
5431,
2699,
2216,
16,
338,
15854,
67,
701,
273,
1366,
67,
75,
4408,
18,
2738,
67,
75,
4408,
1435,
309,
486,
2216,
30,
613,
12,
338,
15854,
67,
701,
13,
2589,
18,
8593,
12,
20,
13,
225,
613,
2932,
1382,
310,
11239,
15942,
7923,
225,
468,
1098,
434,
15942,
716,
87,
8742,
10087,
329,
10087,
1098,
273,
5378,
225,
468,
1098,
716,
1914,
777,
326,
10087,
1686,
563,
67,
4000,
273,
5378,
225,
468,
2640,
279,
2650,
364,
1517,
5228,
471,
10087,
2182,
364,
1479,
316,
5228,
67,
1098,
30,
783,
67,
9149,
273,
10087,
12,
701,
12,
2564,
3631,
563,
67,
4000,
13,
10087,
1098,
18,
6923,
12,
2972,
67,
9149,
13,
783,
67,
9149,
18,
1937,
1435,
225,
468,
5701,
777,
326,
7403,
364,
10087,
67,
2564,
316,
10087,
1098,
30,
10087,
67,
2564,
18,
5701,
1435,
225,
468,
6105,
716,
20948,
3298,
309,
1281,
15942,
854,
2588,
8061,
67,
5535,
1792,
3740,
55,
67,
29358,
273,
1053,
555,
67,
2150,
1546,
9511,
30,
3265,
4558,
298,
15942,
854,
2588,
5,
3265,
4558,
298,
21701,
9582,
866,
603,
326,
15942,
8403,
82,
6,
555,
67,
2150,
15,
1546,
4236,
310,
10087,
563,
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,
3536,
411,
10262,
4150,
34,
18214,
777,
326,
15942,
358,
2621,
309,
2898,
854,
731,
225,
411,
11416,
34,
6555,
225,
411,
8895,
30755,
87,
34,
3038,
87,
326,
10087,
563,
225,
411,
1356,
34,
599,
18,
3536,
225,
468,
3875,
326,
314,
4408,
729,
19,
3664,
358,
999,
1347,
5431,
2699,
2216,
16,
338,
15854,
67,
701,
273,
1366,
67,
75,
4408,
18,
2738,
67,
75,
4408,
1435,
309,
486,
2216,
30,
613,
12,
338,
15854,
67,
701,
13,
2589,
18,
8593,
12,
20,
13,
225,
613,
2932,
1382,
310,
11239,
15942,
7923,
225,
468,
1098,
434,
15942,
716,
87,
8742,
10087,
329,
10087,
1098,
273,
5378,
225,
468,
1098,
716,
1914,
777,
326,
10087,
2
] |
if parametric or polar:
|
if parametric:
|
def _plot(funcs, xrange, parametric=False, polar=False, fill=None, label='', randomize=True, **options): if not is_fast_float(funcs): funcs = fast_float(funcs, expect_one_var=True) #parametric_plot will be a list or tuple of two functions (f,g) #and will plotted as (f(x), g(x)) for all x in the given range if parametric: f, g = funcs #or we have only a single function to be plotted: else: f = funcs # xrange has to be either of the form (var, xmin, xmax) or (xmin, xmax) if not isinstance(xrange, (tuple, list)): raise TypeError, "xrange must be a tuple or list" if len(xrange) == 3: xmin, xmax = xrange[1], xrange[2] elif len(xrange) == 2: xmin, xmax = xrange[0], xrange[1] else: raise ValueError, "parametric value range must be a list or tuple of length 2 or 3." #check to see if funcs is a list of functions that will #be all plotted together. if isinstance(funcs, (list, tuple)) and not parametric: rainbow_colors = rainbow(len(funcs)) G = Graphics() for i, h in enumerate(funcs): if isinstance(fill, dict): if i in fill: fill_entry = fill[i] if isinstance(fill_entry, list): if fill_entry[0] < len(funcs): fill_temp = funcs[fill_entry[0]] else: fill_temp = None else: fill_temp = fill_entry else: fill_temp = None else: fill_temp = fill options_temp = options.copy() fillcolor_temp = options_temp.pop('fillcolor', 'automatic') if fillcolor_temp == 'automatic': fillcolor_temp = rainbow_colors[i] G += plot(h, (xmin, xmax), polar = polar, fill = fill_temp, \ fillcolor = fillcolor_temp, **options_temp) return G adaptive_tolerance = options.pop('adaptive_tolerance') adaptive_recursion = options.pop('adaptive_recursion') plot_points = int(options.pop('plot_points')) data = generate_plot_points(f, xrange, plot_points, adaptive_tolerance, adaptive_recursion, randomize) if parametric: data = [(fdata, g(x)) for x, fdata in data] G = Graphics() fillcolor = options.pop('fillcolor', 'automatic') fillalpha = options.pop('fillalpha', 0.5) # TODO: Use matplotlib's fill and fill_between commands. if fill is not None: if parametric or polar: filldata = data else: if fill == 'axis' or fill is True: base_level = 0 elif fill == 'min': base_level = min(t[1] for t in data) elif fill == 'max': base_level = max(t[1] for t in data) elif hasattr(fill, '__call__'): if fill == max or fill == min: if fill == max: fstr = 'max' else: fstr = 'min' msg = "WARNING: You use the built-in function %s for filling. You probably wanted the string '%s'." % (fstr, fstr) sage.misc.misc.verbose(msg, level=0) if not is_fast_float(fill): fill_f = fast_float(fill, expect_one_var=True) else: fill_f = fill filldata = generate_plot_points(fill_f, xrange, plot_points, adaptive_tolerance, \ adaptive_recursion, randomize) filldata.reverse() filldata += data else: try: base_level = float(fill) except TypeError: base_level = 0 if not hasattr(fill, '__call__') and polar: filldata = generate_plot_points(lambda x: base_level, xrange, plot_points, adaptive_tolerance, \ adaptive_recursion, randomize) filldata.reverse() filldata += data if not hasattr(fill, '__call__') and not polar: filldata = [(data[0][0], base_level)] + data + [(data[-1][0], base_level)] if fillcolor == 'automatic': fillcolor = (0.5, 0.5, 0.5) fill_options = {} fill_options['rgbcolor'] = fillcolor fill_options['alpha'] = fillalpha fill_options['thickness'] = 0 if polar: filldata = [(y*cos(x), y*sin(x)) for x, y in filldata] G += polygon(filldata, **fill_options) if polar: data = [(y*cos(x), y*sin(x)) for x, y in data] from sage.plot.all import line, text detect_poles = options.pop('detect_poles', False) if not (polar or parametric) and detect_poles != False: from sage.rings.all import RDF epsilon = 0.0001 startIndex = 0 pole_options = {} pole_options['linestyle'] = '--' pole_options['thickness'] = 1 pole_options['rgbcolor'] = '#ccc' for i in range(len(data)-1): x0, y0 = data[i] x1, y1 = data[i+1] if (y1 > 0 and y0 < 0) or (y1 < 0 and y0 > 0): # calculate the slope of the line segment dy = abs(y1-y0) dx = x1 - x0 alpha = (RDF(dy)/RDF(dx)).arctan() if alpha >= RDF(pi/2) - epsilon: G += line(data[startIndex:i], **options) if detect_poles == 'show': # draw a vertical asymptote G += line([(x0, y0), (x1, y1)], **pole_options) startIndex = i+2 G += line(data[startIndex:], **options) else: G += line(data, **options) # Label? if label: label = ' '+str(label) G += text(label, data[-1], horizontal_alignment='left', vertical_alignment='center') return G
|
8a7ee9547b531fbb172c26840ea7df4251b06f7a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/8a7ee9547b531fbb172c26840ea7df4251b06f7a/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
12,
17728,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
3636,
33,
7036,
16,
1433,
2218,
2187,
2744,
554,
33,
5510,
16,
2826,
2116,
4672,
309,
486,
353,
67,
8076,
67,
5659,
12,
17728,
4672,
15630,
273,
225,
4797,
67,
5659,
12,
17728,
16,
4489,
67,
476,
67,
1401,
33,
5510,
13,
225,
468,
891,
1591,
67,
4032,
903,
506,
279,
666,
578,
3193,
434,
2795,
4186,
261,
74,
16,
75,
13,
468,
464,
903,
3207,
2344,
487,
261,
74,
12,
92,
3631,
314,
12,
92,
3719,
364,
777,
619,
316,
326,
864,
1048,
309,
579,
1591,
30,
284,
16,
314,
273,
15630,
468,
280,
732,
1240,
1338,
279,
2202,
445,
358,
506,
3207,
2344,
30,
469,
30,
284,
273,
15630,
225,
468,
12314,
711,
358,
506,
3344,
434,
326,
646,
261,
1401,
16,
13777,
16,
14016,
13,
578,
261,
92,
1154,
16,
14016,
13,
309,
486,
1549,
12,
92,
3676,
16,
261,
8052,
16,
666,
3719,
30,
1002,
3580,
16,
315,
92,
3676,
1297,
506,
279,
3193,
578,
666,
6,
309,
562,
12,
92,
3676,
13,
422,
890,
30,
13777,
16,
14016,
273,
12314,
63,
21,
6487,
12314,
63,
22,
65,
1327,
562,
12,
92,
3676,
13,
422,
576,
30,
13777,
16,
14016,
273,
12314,
63,
20,
6487,
12314,
63,
21,
65,
469,
30,
1002,
2068,
16,
315,
891,
1591,
460,
1048,
1297,
506,
279,
666,
578,
3193,
434,
769,
576,
578,
890,
1199,
225,
468,
1893,
358,
2621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
12,
17728,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
3636,
33,
7036,
16,
1433,
2218,
2187,
2744,
554,
33,
5510,
16,
2826,
2116,
4672,
309,
486,
353,
67,
8076,
67,
5659,
12,
17728,
4672,
15630,
273,
225,
4797,
67,
5659,
12,
17728,
16,
4489,
67,
476,
67,
1401,
33,
5510,
13,
225,
468,
891,
1591,
67,
4032,
903,
506,
279,
666,
578,
3193,
434,
2795,
4186,
261,
74,
16,
75,
13,
468,
464,
903,
3207,
2344,
487,
261,
74,
12,
92,
3631,
314,
12,
92,
3719,
364,
777,
619,
316,
326,
864,
1048,
309,
579,
1591,
30,
284,
16,
314,
273,
15630,
468,
280,
732,
1240,
1338,
279,
2202,
445,
358,
2
] |
insert_connection = atom.service.AtomService._CreateConnection(self, uri,
|
insert_connection = self.handler._CreateConnection(self, uri,
|
def Post(self, data, uri, extra_headers=None, url_params=None, escape_params=True, redirects_remaining=4, media_source=None, converter=None): """Insert data into a GData service at the given URI.
|
2fc3c8b5e04f49e7854d86afdf5c528572665ee2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6580/2fc3c8b5e04f49e7854d86afdf5c528572665ee2/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5616,
12,
2890,
16,
501,
16,
2003,
16,
2870,
67,
2485,
33,
7036,
16,
880,
67,
2010,
33,
7036,
16,
4114,
67,
2010,
33,
5510,
16,
18064,
67,
17956,
33,
24,
16,
3539,
67,
3168,
33,
7036,
16,
6027,
33,
7036,
4672,
3536,
4600,
501,
1368,
279,
611,
751,
1156,
622,
326,
864,
3699,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5616,
12,
2890,
16,
501,
16,
2003,
16,
2870,
67,
2485,
33,
7036,
16,
880,
67,
2010,
33,
7036,
16,
4114,
67,
2010,
33,
5510,
16,
18064,
67,
17956,
33,
24,
16,
3539,
67,
3168,
33,
7036,
16,
6027,
33,
7036,
4672,
3536,
4600,
501,
1368,
279,
611,
751,
1156,
622,
326,
864,
3699,
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
] |
TESTS: We make sure that the trivial group gets handled correctly. ::
|
TESTS: We make sure that the trivial group gets handled correctly::
|
def gens(self): """ Return tuple of generators of this group. These need not be minimal, as they are the generators used in defining this group. EXAMPLES:: sage: G = PermutationGroup([[(1,2,3)], [(1,2)]]) sage: G.gens() [(1,2), (1,2,3)] Note that the generators need not be minimal though duplicates are removed. :: sage: G = PermutationGroup([[(1,2)], [(1,3)], [(2,3)], [(1,2)]]) sage: G.gens() [(2,3), (1,2), (1,3)] :: sage: G = PermutationGroup([[(1,2,3,4), (5,6)], [(1,2)]]) sage: g = G.gens() sage: g[0] (1,2) sage: g[1] (1,2,3,4)(5,6) TESTS: We make sure that the trivial group gets handled correctly. :: sage: SymmetricGroup(1).gens() [()] """ return self._gens
|
6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
4672,
3536,
2000,
3193,
434,
13327,
434,
333,
1041,
18,
8646,
1608,
486,
506,
16745,
16,
487,
2898,
854,
326,
13327,
1399,
316,
9364,
333,
1041,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
13,
6487,
306,
12,
21,
16,
22,
25887,
5717,
272,
410,
30,
611,
18,
23730,
1435,
306,
12,
21,
16,
22,
3631,
261,
21,
16,
22,
16,
23,
25887,
225,
3609,
716,
326,
13327,
1608,
486,
506,
16745,
11376,
11211,
854,
3723,
18,
225,
493,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
13,
6487,
306,
12,
21,
16,
23,
13,
6487,
306,
12,
22,
16,
23,
13,
6487,
306,
12,
21,
16,
22,
25887,
5717,
272,
410,
30,
611,
18,
23730,
1435,
306,
12,
22,
16,
23,
3631,
261,
21,
16,
22,
3631,
261,
21,
16,
23,
25887,
225,
493,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
16,
24,
3631,
261,
25,
16,
26,
13,
6487,
306,
12,
21,
16,
22,
25887,
5717,
272,
410,
30,
314,
273,
611,
18,
23730,
1435,
272,
410,
30,
314,
63,
20,
65,
261,
21,
16,
22,
13,
272,
410,
30,
314,
63,
21,
65,
261,
21,
16,
22,
16,
23,
16,
24,
21433,
25,
16,
26,
13,
225,
22130,
55,
30,
225,
1660,
1221,
3071,
716,
326,
433,
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,
314,
773,
12,
2890,
4672,
3536,
2000,
3193,
434,
13327,
434,
333,
1041,
18,
8646,
1608,
486,
506,
16745,
16,
487,
2898,
854,
326,
13327,
1399,
316,
9364,
333,
1041,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
13,
6487,
306,
12,
21,
16,
22,
25887,
5717,
272,
410,
30,
611,
18,
23730,
1435,
306,
12,
21,
16,
22,
3631,
261,
21,
16,
22,
16,
23,
25887,
225,
3609,
716,
326,
13327,
1608,
486,
506,
16745,
11376,
11211,
854,
3723,
18,
225,
493,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
13,
6487,
306,
12,
21,
2
] |
class BuildError(StandardError):
|
class BuildError(Exception):
|
def merge_strings(*args, **kwds): """Returns non empty string joined by sep The default separator is an empty string. """ sep = kwds.get('sep', '') return sep.join([s for s in args if s])
|
5ed962a58a84830cbe0f649aee7072426feb4c22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/5ed962a58a84830cbe0f649aee7072426feb4c22/msys_link_VC_2008_dlls.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
10219,
30857,
1968,
16,
2826,
25577,
4672,
3536,
1356,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
10219,
30857,
1968,
16,
2826,
25577,
4672,
3536,
1356,
1661,
1008,
533,
12114,
635,
5478,
225,
1021,
805,
4182,
353,
392,
1008,
533,
18,
3536,
225,
5478,
273,
17149,
18,
588,
2668,
10814,
2187,
28707,
327,
5478,
18,
5701,
3816,
87,
364,
272,
316,
833,
309,
272,
5717,
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
] |
self.cursor.execute(sql,(self.process_id,self.lfn_id,lfn,start,end))
|
self.cursor.execute(sql,(self.process_id,self.lfn_id[0],lfn,start,end))
|
def register_lfn(self,lfn,start=None,end=None): """ Start publishing state information for a new logical file name
|
1071b2ee9f2d46ed87b8bdc8bd346b42c1f9e524 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/1071b2ee9f2d46ed87b8bdc8bd346b42c1f9e524/statedb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
80,
4293,
12,
2890,
16,
80,
4293,
16,
1937,
33,
7036,
16,
409,
33,
7036,
4672,
3536,
3603,
23636,
919,
1779,
364,
279,
394,
6374,
585,
508,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
80,
4293,
12,
2890,
16,
80,
4293,
16,
1937,
33,
7036,
16,
409,
33,
7036,
4672,
3536,
3603,
23636,
919,
1779,
364,
279,
394,
6374,
585,
508,
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
] |
except RuntimeError:
|
except (RuntimeError, MacOS.Error):
|
def _mac_ver_lookup(selectors,default=None): from gestalt import gestalt l = [] append = l.append for selector in selectors: try: append(gestalt(selector)) except RuntimeError: append(default) return l
|
09d60c3702c7dda56f51eaa1bf12bf2d8b2bd88a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/09d60c3702c7dda56f51eaa1bf12bf2d8b2bd88a/platform.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5821,
67,
502,
67,
8664,
12,
29829,
16,
1886,
33,
7036,
4672,
225,
628,
314,
395,
2390,
1930,
314,
395,
2390,
328,
273,
5378,
714,
273,
328,
18,
6923,
364,
3451,
316,
11424,
30,
775,
30,
714,
12,
17592,
2390,
12,
9663,
3719,
1335,
261,
5576,
668,
16,
13217,
4618,
18,
668,
4672,
714,
12,
1886,
13,
327,
328,
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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,
314,
395,
2390,
328,
273,
5378,
714,
273,
328,
18,
6923,
364,
3451,
316,
11424,
30,
775,
30,
714,
12,
17592,
2390,
12,
9663,
3719,
1335,
261,
5576,
668,
16,
13217,
4618,
18,
668,
4672,
714,
12,
1886,
13,
327,
328,
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
] |
'''Store the content of the file in the database. The property may be
|
"""Store the content of the file in the database. The property may be
|
def storefile(self, classname, nodeid, property, content): '''Store the content of the file in the database. The property may be None, in which case the filename does not indicate which property is being saved. ''' # determine the name of the file to write to name = self.filename(classname, nodeid, property, create=1)
|
98d1077c4d91289eb72b2804a276c6206419fa5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1906/98d1077c4d91289eb72b2804a276c6206419fa5c/blobfiles.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
768,
12,
2890,
16,
7479,
16,
756,
350,
16,
1272,
16,
913,
4672,
3536,
2257,
326,
913,
434,
326,
585,
316,
326,
2063,
18,
1021,
1272,
2026,
506,
599,
16,
316,
1492,
648,
326,
1544,
1552,
486,
10768,
1492,
1272,
353,
3832,
5198,
18,
9163,
468,
4199,
326,
508,
434,
326,
585,
358,
1045,
358,
508,
273,
365,
18,
3459,
12,
18340,
16,
756,
350,
16,
1272,
16,
752,
33,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
768,
12,
2890,
16,
7479,
16,
756,
350,
16,
1272,
16,
913,
4672,
3536,
2257,
326,
913,
434,
326,
585,
316,
326,
2063,
18,
1021,
1272,
2026,
506,
599,
16,
316,
1492,
648,
326,
1544,
1552,
486,
10768,
1492,
1272,
353,
3832,
5198,
18,
9163,
468,
4199,
326,
508,
434,
326,
585,
358,
1045,
358,
508,
273,
365,
18,
3459,
12,
18340,
16,
756,
350,
16,
1272,
16,
752,
33,
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
] |
self.UpdateImage(base_image_path)
|
self._UpdateImageReportError(image_path)
|
def PrepareBase(self): """Auto-update to base image to prepare for test.""" self.UpdateImage(base_image_path)
|
969a67304525cae2d03af218137f445591964072 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/969a67304525cae2d03af218137f445591964072/cros_au_test_harness.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7730,
2171,
12,
2890,
4672,
3536,
4965,
17,
2725,
358,
1026,
1316,
358,
2911,
364,
1842,
12123,
365,
18,
1891,
2040,
12,
1969,
67,
2730,
67,
803,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7730,
2171,
12,
2890,
4672,
3536,
4965,
17,
2725,
358,
1026,
1316,
358,
2911,
364,
1842,
12123,
365,
18,
1891,
2040,
12,
1969,
67,
2730,
67,
803,
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
] |
file = unquote(file)
|
def open_local_file(self, url): import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: return addinfourl( open(url2pathname(file), 'rb'), headers, 'file:'+file) host, port = splitport(host) if not port and socket.gethostbyname(host) in ( localhost(), thishost()): file = unquote(file) return addinfourl( open(url2pathname(file), 'rb'), headers, 'file:'+file) raise IOError, ('local file error', 'not on local host')
|
90a3c0dd22d2ec83a9d90b50083d2d67c509c335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/90a3c0dd22d2ec83a9d90b50083d2d67c509c335/urllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
1930,
20369,
15180,
16,
20369,
278,
8192,
16,
15777,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
718,
25146,
20,
65,
1607,
273,
20369,
278,
8192,
18,
1079,
12,
780,
4294,
18,
780,
4294,
12,
296,
1350,
17,
559,
30,
738,
87,
64,
82,
11,
738,
261,
81,
723,
578,
296,
955,
19,
7446,
11,
20349,
1479,
16,
585,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
327,
527,
10625,
477,
80,
12,
1696,
12,
718,
22,
28336,
12,
768,
3631,
296,
6731,
19899,
1607,
16,
296,
768,
2497,
15,
768,
13,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
309,
486,
1756,
471,
2987,
18,
75,
546,
669,
1637,
529,
12,
2564,
13,
316,
261,
17365,
9334,
333,
2564,
1435,
4672,
327,
527,
10625,
477,
80,
12,
1696,
12,
718,
22,
28336,
12,
768,
3631,
296,
6731,
19899,
1607,
16,
296,
768,
2497,
15,
768,
13,
1002,
8340,
16,
7707,
3729,
585,
555,
2187,
296,
902,
603,
1191,
1479,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
1930,
20369,
15180,
16,
20369,
278,
8192,
16,
15777,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
718,
25146,
20,
65,
1607,
273,
20369,
278,
8192,
18,
1079,
12,
780,
4294,
18,
780,
4294,
12,
296,
1350,
17,
559,
30,
738,
87,
64,
82,
11,
738,
261,
81,
723,
578,
296,
955,
19,
7446,
11,
20349,
1479,
16,
585,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
327,
527,
10625,
477,
80,
12,
1696,
12,
718,
22,
28336,
12,
768,
3631,
296,
6731,
19899,
1607,
16,
296,
768,
2497,
15,
768,
13,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
309,
486,
1756,
2
] |
|
cputime = quotainfo[0] systime = quotainfo[1] childcputime = quotainfo[2] childsystime = quotainfo[3] clocktime = quotainfo[4] currenttime = quotainfo[5]
|
cputime = info[0] systime = info[1] childcputime = info[2] childsystime = info[3] clocktime = info[4] currenttime = info[5]
|
def get_time_and_cpu_percent(readfobj): global lastenforcedata global junkfirst cpudata = readfobj.readline().strip() # the child must have exited, I'll return so I can wait on them... if not cpudata: return (0.0, 0.0) quotainfo = eval(cpudata) # Give them a free pass the first time if not lastenforcedata: lastenforcedata = quotainfo junkfirst = quotainfo[4] return (0.0, 0.0) # The os.times() info is: (cpu, sys, child cpu, child sys, current time) # I think it makes the most sense to use the combined cpu/sys time as well # as the current time... cputime = quotainfo[0] systime = quotainfo[1] childcputime = quotainfo[2] childsystime = quotainfo[3] clocktime = quotainfo[4] # processor time (it's in the wrong units...) currenttime = quotainfo[5] usertime = cputime + systime # How can they have a child? if childcputime != 0.0 or childsystime != 0.0: raise Exception, "Non zero child time!: Cpu time '"+str(childcputime)+"' > Sys time '"+str(childsystime)+"'" oldusertime = lastenforcedata[0] + lastenforcedata[1] oldclocktime = lastenforcedata[4] oldcurrenttime = lastenforcedata[5] # NOTE: Processor time is going backwards... Is this possible? # Should do something nicer like ignore quota? if clocktime < oldclocktime: raise Exception, "Elapsed time '"+str(currenttime)+"' less than previous '"+str(oldcurrenttime)+"'" # user time is going backwards... I don't think this is possible if usertime < oldusertime: raise Exception, "User time '"+str(usertime)+"' at '"+str(currenttime)+"' less than user time '"+str(oldusertime)+"' at '"+str(oldcurrenttime)+"'" percentused = (usertime - oldusertime) / (clocktime - oldclocktime) lastenforcedata = quotainfo #print (usertime) / (clocktime - junkfirst), percentused, usertime, time.time() - junkstart #print percentused, usertime, oldusertime, clocktime, oldclocktime, clocktime-oldclocktime sys.stdout.flush() return (currenttime - oldcurrenttime, percentused)
|
da5157d89e6ffa97b6c3efbb3b8f84e5a8c9fbd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7272/da5157d89e6ffa97b6c3efbb3b8f84e5a8c9fbd7/nonportable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
957,
67,
464,
67,
11447,
67,
8849,
12,
896,
27936,
4672,
2552,
1142,
275,
5734,
892,
2552,
525,
1683,
3645,
225,
8326,
892,
273,
855,
27936,
18,
896,
1369,
7675,
6406,
1435,
282,
468,
326,
1151,
1297,
1240,
21590,
16,
467,
5614,
327,
1427,
467,
848,
2529,
603,
2182,
2777,
309,
486,
8326,
892,
30,
327,
261,
20,
18,
20,
16,
374,
18,
20,
13,
225,
4914,
28935,
273,
5302,
12,
11447,
892,
13,
225,
468,
22374,
2182,
279,
4843,
1342,
326,
1122,
813,
309,
486,
1142,
275,
5734,
892,
30,
1142,
275,
5734,
892,
273,
4914,
28935,
525,
1683,
3645,
273,
4914,
28935,
63,
24,
65,
327,
261,
20,
18,
20,
16,
374,
18,
20,
13,
282,
468,
1021,
1140,
18,
8293,
1435,
1123,
353,
30,
261,
11447,
16,
2589,
16,
1151,
8326,
16,
1151,
2589,
16,
783,
813,
13,
468,
467,
15507,
518,
7297,
326,
4486,
12764,
358,
999,
326,
8224,
8326,
19,
9499,
813,
487,
5492,
468,
487,
326,
783,
813,
2777,
276,
458,
494,
273,
4914,
28935,
63,
20,
65,
272,
1094,
494,
273,
4914,
28935,
63,
21,
65,
1151,
71,
458,
494,
273,
4914,
28935,
63,
22,
65,
21619,
1094,
494,
273,
4914,
28935,
63,
23,
65,
7268,
957,
273,
4914,
28935,
63,
24,
65,
225,
202,
7,
6659,
813,
261,
305,
1807,
316,
326,
7194,
4971,
21846,
783,
957,
273,
4914,
28935,
63,
25,
65,
225,
729,
957,
273,
276,
458,
494,
397,
272,
1094,
494,
225,
468,
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,
957,
67,
464,
67,
11447,
67,
8849,
12,
896,
27936,
4672,
2552,
1142,
275,
5734,
892,
2552,
525,
1683,
3645,
225,
8326,
892,
273,
855,
27936,
18,
896,
1369,
7675,
6406,
1435,
282,
468,
326,
1151,
1297,
1240,
21590,
16,
467,
5614,
327,
1427,
467,
848,
2529,
603,
2182,
2777,
309,
486,
8326,
892,
30,
327,
261,
20,
18,
20,
16,
374,
18,
20,
13,
225,
4914,
28935,
273,
5302,
12,
11447,
892,
13,
225,
468,
22374,
2182,
279,
4843,
1342,
326,
1122,
813,
309,
486,
1142,
275,
5734,
892,
30,
1142,
275,
5734,
892,
273,
4914,
28935,
525,
1683,
3645,
273,
4914,
28935,
63,
24,
65,
327,
261,
20,
18,
20,
16,
374,
18,
20,
2
] |
""" Form for student profiles """
|
""" Form for teacher profiles """
|
def __init__(self, *args, **kwargs): self.base_fields['year_finished'].widget.attrs['size'] = 4 self.base_fields['year_finished'].widget.attrs['maxlength'] = 4 self.base_fields['num_kids'].widget.attrs['size'] = 3 self.base_fields['num_kids'].widget.attrs['maxlength'] = 16 super(GuardianInfoForm, self).__init__(*args, **kwargs)
|
f6b42492073be7baa4b609cb9655e44bc2582d87 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/f6b42492073be7baa4b609cb9655e44bc2582d87/user_profile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
18,
1969,
67,
2821,
3292,
6874,
67,
13527,
29489,
6587,
18,
7039,
3292,
1467,
3546,
273,
1059,
365,
18,
1969,
67,
2821,
3292,
6874,
67,
13527,
29489,
6587,
18,
7039,
3292,
27875,
3546,
273,
1059,
365,
18,
1969,
67,
2821,
3292,
2107,
67,
79,
2232,
29489,
6587,
18,
7039,
3292,
1467,
3546,
273,
890,
365,
18,
1969,
67,
2821,
3292,
2107,
67,
79,
2232,
29489,
6587,
18,
7039,
3292,
27875,
3546,
273,
2872,
2240,
12,
16709,
2779,
966,
1204,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
18,
1969,
67,
2821,
3292,
6874,
67,
13527,
29489,
6587,
18,
7039,
3292,
1467,
3546,
273,
1059,
365,
18,
1969,
67,
2821,
3292,
6874,
67,
13527,
29489,
6587,
18,
7039,
3292,
27875,
3546,
273,
1059,
365,
18,
1969,
67,
2821,
3292,
2107,
67,
79,
2232,
29489,
6587,
18,
7039,
3292,
1467,
3546,
273,
890,
365,
18,
1969,
67,
2821,
3292,
2107,
67,
79,
2232,
29489,
6587,
18,
7039,
3292,
27875,
3546,
273,
2872,
2240,
12,
16709,
2779,
966,
1204,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_assertNumbersAre = lambda seq: self.assertNumbersAre(tdm, seq)
|
_assertNumbersAre = lambda seq: self.assertNumbersAre(tdm, seq)
|
def testLeafing(self): tdm = tdb.TabularDataModel(self.store, X, [X.number, X.textNumber, X.phoneticDigits], itemsPerPage=15) _assertNumbersAre = lambda seq: self.assertNumbersAre(tdm, seq) _assertNumbersAre(range(15)) tdm.nextPage() _assertNumbersAre(range(15, 30)) tdm.prevPage() _assertNumbersAre(range(15)) tdm.lastPage() # This next assert is kind of weak, because it is valid to have only a # few results on the last page, but right now the strategy is to # always keep the page full of results. No matter what though, the # last page should contain the last value. self.assertEquals(list(tdm.currentPage())[-1]['number'], 106) tdm.firstPage() _assertNumbersAre(range(15))
|
f503b031aca5d4d527623508220761db1ee30d2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6980/f503b031aca5d4d527623508220761db1ee30d2b/test_tdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
9858,
310,
12,
2890,
4672,
6655,
81,
273,
268,
1966,
18,
5661,
2490,
26349,
12,
2890,
18,
2233,
16,
1139,
16,
306,
60,
18,
2696,
16,
1139,
18,
955,
1854,
16,
1139,
18,
844,
265,
7943,
9537,
6487,
1516,
13005,
33,
3600,
13,
225,
389,
11231,
10072,
4704,
273,
3195,
3833,
30,
365,
18,
11231,
10072,
4704,
12,
4465,
81,
16,
3833,
13,
225,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
3719,
6655,
81,
18,
4285,
1964,
1435,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
16,
5196,
3719,
6655,
81,
18,
10001,
1964,
1435,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
3719,
6655,
81,
18,
2722,
1964,
1435,
468,
1220,
1024,
1815,
353,
3846,
434,
16046,
16,
2724,
518,
353,
923,
358,
1240,
1338,
279,
468,
11315,
1686,
603,
326,
1142,
1363,
16,
1496,
2145,
2037,
326,
6252,
353,
358,
468,
3712,
3455,
326,
1363,
1983,
434,
1686,
18,
225,
2631,
15177,
4121,
11376,
16,
326,
468,
1142,
1363,
1410,
912,
326,
1142,
460,
18,
365,
18,
11231,
8867,
12,
1098,
12,
4465,
81,
18,
2972,
1964,
10756,
18919,
21,
23962,
2696,
17337,
1728,
26,
13,
6655,
81,
18,
3645,
1964,
1435,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
9858,
310,
12,
2890,
4672,
6655,
81,
273,
268,
1966,
18,
5661,
2490,
26349,
12,
2890,
18,
2233,
16,
1139,
16,
306,
60,
18,
2696,
16,
1139,
18,
955,
1854,
16,
1139,
18,
844,
265,
7943,
9537,
6487,
1516,
13005,
33,
3600,
13,
225,
389,
11231,
10072,
4704,
273,
3195,
3833,
30,
365,
18,
11231,
10072,
4704,
12,
4465,
81,
16,
3833,
13,
225,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
3719,
6655,
81,
18,
4285,
1964,
1435,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
16,
5196,
3719,
6655,
81,
18,
10001,
1964,
1435,
389,
11231,
10072,
4704,
12,
3676,
12,
3600,
3719,
6655,
81,
18,
2722,
1964,
1435,
468,
1220,
1024,
1815,
353,
3846,
2
] |
print check_split_str("1,2,3,4,5:7,27,28:32,32:30") x = reduce_split_str("1") print x y= expand_split_str("1,2,3:7,27:33") print y
|
print check_split_str("1,2,3,4,5:7,27,28:32,32:30") x = reduce_split_str("1") print x y= expand_split_str("1,2,3:7,27:33") print y
|
def main(): print check_split_str("1,2,3,4,5:7,27,28:32,32:30") x = reduce_split_str("1") print x y= expand_split_str("1,2,3:7,27:33") print y
|
76bd12c9f0f970ec39e56fe35c8c6964ae612c86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/76bd12c9f0f970ec39e56fe35c8c6964ae612c86/indexsplit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1172,
866,
67,
4939,
67,
701,
2932,
21,
16,
22,
16,
23,
16,
24,
16,
25,
30,
27,
16,
5324,
16,
6030,
30,
1578,
16,
1578,
30,
5082,
7923,
619,
273,
5459,
67,
4939,
67,
701,
2932,
21,
7923,
1172,
619,
677,
33,
4542,
67,
4939,
67,
701,
2932,
21,
16,
22,
16,
23,
30,
27,
16,
5324,
30,
3707,
7923,
1172,
677,
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,
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,
677,
33,
4542,
67,
4939,
67,
701,
2932,
21,
16,
22,
16,
23,
30,
27,
16,
5324,
30,
3707,
7923,
1172,
677,
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
] |
user = _validate_and_get_geniuser(request)
|
try: user = _validate_and_get_geniuser(request) except LoggedInButFailedGetGeniUserError: return _show_failed_get_geniuser_page(request)
|
def get_resources(request): user = _validate_and_get_geniuser(request) # the request must be via POST. if not, bounce user back to My Vessels page if not request.method == 'POST': return myvessels(request) # try and grab form from POST. if it can't, bounce user back to My Vessels page get_form = forms.gen_get_form(user, request.POST) if get_form is None: return myvessels(request) action_summary = "" action_detail = "" if get_form.is_valid(): vessel_num = get_form.cleaned_data['num'] vessel_type = get_form.cleaned_data['env'] try: acquired_vessels = interface.acquire_vessels(user, vessel_num, vessel_type) except UnableToAcquireResourcesError, err: action_summary = "Couldn't acquire resources at this time." action_detail += str(err) except InsufficientUserResourcesError: action_summary = "You do not have enough vessel credits to fufill this request." # return a My Vessels page with the updated vessels/vessel acquire details/errors return myvessels(request, get_form, action_summary=action_summary, action_detail=action_detail)
|
e5569e220af41a91014bb58366ca4d59400c0284 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/e5569e220af41a91014bb58366ca4d59400c0284/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4683,
12,
2293,
4672,
775,
30,
729,
273,
389,
5662,
67,
464,
67,
588,
67,
4507,
77,
1355,
12,
2293,
13,
1335,
1827,
2423,
382,
31167,
2925,
967,
7642,
77,
1299,
668,
30,
327,
389,
4500,
67,
7307,
67,
588,
67,
4507,
77,
1355,
67,
2433,
12,
2293,
13,
225,
468,
326,
590,
1297,
506,
3970,
5485,
18,
309,
486,
16,
324,
8386,
729,
1473,
358,
8005,
776,
403,
10558,
1363,
309,
486,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3399,
90,
403,
10558,
12,
2293,
13,
225,
468,
775,
471,
11086,
646,
628,
5485,
18,
309,
518,
848,
1404,
16,
324,
8386,
729,
1473,
358,
8005,
776,
403,
10558,
1363,
336,
67,
687,
273,
10138,
18,
4507,
67,
588,
67,
687,
12,
1355,
16,
590,
18,
3798,
13,
309,
336,
67,
687,
353,
599,
30,
327,
3399,
90,
403,
10558,
12,
2293,
13,
225,
1301,
67,
7687,
273,
1408,
1301,
67,
8992,
273,
1408,
225,
309,
336,
67,
687,
18,
291,
67,
877,
13332,
331,
403,
292,
67,
2107,
273,
336,
67,
687,
18,
6200,
329,
67,
892,
3292,
2107,
3546,
331,
403,
292,
67,
723,
273,
336,
67,
687,
18,
6200,
329,
67,
892,
3292,
3074,
3546,
225,
775,
30,
20598,
67,
90,
403,
10558,
273,
1560,
18,
1077,
1039,
67,
90,
403,
10558,
12,
1355,
16,
331,
403,
292,
67,
2107,
16,
331,
403,
292,
67,
723,
13,
1335,
18640,
774,
27761,
3805,
668,
16,
393,
30,
1301,
67,
7687,
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,
4683,
12,
2293,
4672,
775,
30,
729,
273,
389,
5662,
67,
464,
67,
588,
67,
4507,
77,
1355,
12,
2293,
13,
1335,
1827,
2423,
382,
31167,
2925,
967,
7642,
77,
1299,
668,
30,
327,
389,
4500,
67,
7307,
67,
588,
67,
4507,
77,
1355,
67,
2433,
12,
2293,
13,
225,
468,
326,
590,
1297,
506,
3970,
5485,
18,
309,
486,
16,
324,
8386,
729,
1473,
358,
8005,
776,
403,
10558,
1363,
309,
486,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3399,
90,
403,
10558,
12,
2293,
13,
225,
468,
775,
471,
11086,
646,
628,
5485,
18,
309,
518,
848,
1404,
16,
324,
8386,
729,
1473,
358,
8005,
776,
403,
10558,
1363,
336,
67,
687,
273,
2
] |
sbox += self.inversion_polynomials(xi,wi,r*c*e) sbox += self.field_polynomials("x",i) sbox += self.field_polynomials("w",i)
|
sbox += self.inversion_polynomials(xi, wi, r*c*e) sbox += self.field_polynomials("x", i) sbox += self.field_polynomials("w", i)
|
def round_polynomials(self, i, plaintext = None, ciphertext = None): r""" Return list of polynomials for a given round $i$.
|
26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3643,
67,
3915,
13602,
87,
12,
2890,
16,
277,
16,
11917,
273,
599,
16,
12657,
273,
599,
4672,
436,
8395,
2000,
666,
434,
16991,
87,
364,
279,
864,
3643,
271,
77,
8,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3643,
67,
3915,
13602,
87,
12,
2890,
16,
277,
16,
11917,
273,
599,
16,
12657,
273,
599,
4672,
436,
8395,
2000,
666,
434,
16991,
87,
364,
279,
864,
3643,
271,
77,
8,
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
] |
raise PBPUsageError("do " + rest)
|
raise error.PBPUsageError("do " + rest)
|
def do_do(self, rest): """do <python_callable> [arguments...] Call Python code loaded with pyload. Arguments will be passed to the callable as function arguments. """ args = shlex_split(rest) try: name = args.pop(0) except IndexError: raise PBPUsageError("do " + rest) ret = self._resolvePyloadedName(name, *args) if ret is not None: self.tprintln(str(ret))
|
82a69cd8cb3fd75cfc003a6997b2926265fad80c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2493/82a69cd8cb3fd75cfc003a6997b2926265fad80c/pbpscript.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2896,
12,
2890,
16,
3127,
4672,
3536,
2896,
411,
8103,
67,
7293,
34,
306,
7099,
2777,
65,
3049,
6600,
981,
4203,
598,
2395,
945,
18,
225,
13599,
903,
506,
2275,
358,
326,
4140,
487,
445,
1775,
18,
3536,
833,
273,
27180,
67,
4939,
12,
8792,
13,
775,
30,
508,
273,
833,
18,
5120,
12,
20,
13,
1335,
10195,
30,
1002,
555,
18,
20724,
52,
5357,
668,
2932,
2896,
315,
397,
3127,
13,
325,
273,
365,
6315,
10828,
9413,
4230,
461,
12,
529,
16,
380,
1968,
13,
309,
325,
353,
486,
599,
30,
365,
18,
88,
8222,
12,
701,
12,
1349,
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,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
306,
7099,
2777,
65,
3049,
6600,
981,
4203,
598,
2395,
945,
18,
225,
13599,
903,
506,
2275,
358,
326,
4140,
487,
445,
1775,
18,
3536,
833,
273,
27180,
67,
4939,
12,
8792,
13,
775,
30,
508,
273,
833,
18,
5120,
12,
20,
13,
1335,
10195,
30,
1002,
555,
18,
20724,
52,
5357,
668,
2932,
2896,
315,
397,
3127,
13,
325,
273,
365,
6315,
10828,
9413,
4230,
461,
12,
529,
16,
380,
1968,
13,
309,
325,
353,
486,
599,
30,
365,
18,
88,
8222,
12,
701,
12,
1349,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_ip.magic('run -i "%s"'%preparse_file_named(F))
|
_ip.runlines('%%run -i "%s"'%preparse_file_named(F))
|
def do_prefilter_paste(line, continuation): """ Alternate prefilter for input. INPUT: line -- a single line; must *not* have any newlines in it continuation -- whether the input line is really part of the previous line, because of open parens or backslash. """ if '\n' in line: raise RuntimeError, "bug in function that calls do_prefilter_paste -- there can be no newlines in the input" global attached # This is so it's OK to have lots of blank space at the # beginning of any non-continuation line. if continuation: # strip ...'s that appear in examples L = line.lstrip() if L[:3] == '...': line = L[3:] else: line = line.lstrip() line = line.rstrip() if not line.startswith('attach ') and not line.startswith('load '): for F in attached.keys(): tm = attached[F] if os.path.exists(F) and os.path.getmtime(F) > tm: # Reload F. try: if F.endswith('.py'): _ip.magic('run -i "%s"'%F) elif F.endswith('.sage'): _ip.magic('run -i "%s"'%preparse_file_named(F)) elif F.endswith('.spyx') or F.endswith('.pyx'): X = load_cython(F) __IPYTHON__.push(X) else: line = 'load("%s")'%F t = os.path.getmtime(F) attached[F] = t except IOError: del attached[F] # Get rid of leading sage: so that pasting of examples from the documentation # works. This is like MAGMA's SetLinePrompt(false). for prompt in ['sage:', '>>>']: if not continuation: while True: strip = False if line[:3] == prompt: line = line[3:].lstrip() strip = True elif line[:5] == prompt: line = line[5:].lstrip() strip = True if not strip: break else: line = line.lstrip() # 'quit' alone on a line to quit. if line.lower() in ['quit', 'exit', 'quit;', 'exit;']: line = '%quit' ################################################################# # An interactive load command, like iload in MAGMA. ################################################################# if line[:6] == 'iload ': try: name = str(eval(line[6:])) except: name = str(line[6:].strip()) try: F = open(name) except IOError: raise ImportError, 'Could not open file "%s"'%name print 'Interactively loading "%s"'%name n = len(__IPYTHON__.input_hist) for L in F.readlines(): L = L.rstrip() Llstrip = L.lstrip() raw_input('sage: %s'%L.rstrip()) __IPYTHON__.input_hist_raw.append(L) if Llstrip[:5] == 'load ' or Llstrip[:7] == 'attach ' \ or Llstrip[:6] == 'iload ': log.offset -= 1 L = do_prefilter_paste(L, False) if len(L.strip()) > 0: _ip.magic(L) L = '' else: L = preparser_ipython.preparse_ipython(L, not continuation) __IPYTHON__.input_hist.append(L) __IPYTHON__.push(L) log.offset += 1 return '' ################################################################# # A "load" command, like \r file in PARI or load "file" in MAGMA ################################################################# if line[:5] == 'load ': # The -i so the file is run with the same environment, # e.g., including the "from sage import *" try: name = str(eval(line[5:])).strip() except: name = str(line[5:].strip()) if name.lower().startswith('http://'): name = remote_file.get_remote_file(name) if isinstance(name, str): if not os.path.exists(name): raise ImportError, "File '%s' not found (be sure to give .sage, .py, or .pyx extension)"%name elif name.endswith('.py'): try: line = '%run -i "' + name + '"' except IOError, s: print s raise ImportError, "Error loading '%s'"%name elif name.endswith('.sage'): try: line = '%run -i "' + preparse_file_named(name) + '"' except IOError, s: print s raise ImportError, "Error loading '%s'"%name line = "" elif name.endswith('.spyx') or name.endswith('.pyx'): line = load_cython(name) else: line = 'load("%s")'%name #raise ImportError, "Loading of '%s' not implemented (load .py, .pyx, and .sage files)"%name #line = '' elif line[:13] == 'save_session(': line = 'save_session(locals(), %s'%line[13:] elif line[:14] == 'save_session (': line = 'save_session (locals(), %s'%line[14:] elif line[:13] == 'load_session(': line = 'load_session(locals(), %s'%line[13:] elif line[:14] == 'load_session (': line = 'load_session (locals(), %s'%line[14:] elif ''.join(line.split()) == 'show_identifiers()': line = 'show_identifiers(locals())' # This is an attach command like in MAGMA. The file to attach is # any file that could be loaded. At attach time it is loaded as # above. It is put in a list that is a variable with scope this # interpreter.py file. Each time prefilter_paste is called and # continuation is False, check all attached file names and if any # have changed, compile the file, then use %run to load them again # as above. This is like the MAGMA attach, but in some ways # better. It is very nice for interactive code development. if line.startswith('attach '): # The -i so the file is run with the same environment, # e.g., including the "from sage import *" try: name = str(eval(line[7:])) except: name = str(line[7:].strip()) name = os.path.abspath(name) if not os.path.exists(name): raise ImportError, "File '%s' not found (be sure to give .sage, .py, or .pyx extension)."%name elif name.endswith('.py'): try: line = '%run -i "' + name + '"' attached[name] = os.path.getmtime(name) except IOError, OSError: raise ImportError, "File '%s' not found."%name elif name.endswith('.sage'): try: line = '%run -i "' + preparse_file_named(name) + '"' attached[name] = os.path.getmtime(name) except IOError, OSError: raise ImportError, "File '%s' not found."%name elif name.endswith('.pyx') or name.endswith('.spyx'): try: line = load_cython(name) attached[name] = os.path.getmtime(name) except IOError, OSError: raise ImportError, "File '%s' not found."%name line = '' else: #line = 'load("%s")'%name raise ImportError, "Attaching of '%s' not implemented (load .py, .pyx, and .sage files)"%name if len(line) > 0: line = preparser_ipython.preparse_ipython(line, not continuation) return line
|
99f1da1fd55b783a5e3c315a8be1e30a4bbcf883 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/99f1da1fd55b783a5e3c315a8be1e30a4bbcf883/interpreter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1484,
2188,
67,
29795,
12,
1369,
16,
17378,
4672,
3536,
21498,
340,
675,
2188,
364,
810,
18,
225,
12943,
30,
980,
1493,
279,
2202,
980,
31,
1297,
380,
902,
14,
1240,
1281,
19181,
316,
518,
17378,
1493,
2856,
326,
810,
980,
353,
8654,
1087,
434,
326,
2416,
980,
16,
2724,
434,
1696,
30821,
578,
23253,
18,
3536,
309,
2337,
82,
11,
316,
980,
30,
1002,
7265,
16,
315,
925,
316,
445,
716,
4097,
741,
67,
1484,
2188,
67,
29795,
1493,
1915,
848,
506,
1158,
19181,
316,
326,
810,
6,
225,
2552,
7495,
225,
468,
1220,
353,
1427,
518,
1807,
7791,
358,
1240,
328,
6968,
434,
7052,
3476,
622,
326,
468,
8435,
434,
1281,
1661,
17,
1213,
23946,
980,
18,
225,
309,
17378,
30,
468,
2569,
25956,
87,
716,
9788,
316,
10991,
511,
273,
980,
18,
80,
6406,
1435,
309,
511,
10531,
23,
65,
422,
20243,
30,
980,
273,
511,
63,
23,
26894,
469,
30,
980,
273,
980,
18,
80,
6406,
1435,
225,
980,
273,
980,
18,
86,
6406,
1435,
225,
309,
486,
980,
18,
17514,
1918,
2668,
7331,
8624,
471,
486,
980,
18,
17514,
1918,
2668,
945,
296,
4672,
364,
478,
316,
7495,
18,
2452,
13332,
6118,
273,
7495,
63,
42,
65,
309,
1140,
18,
803,
18,
1808,
12,
42,
13,
471,
1140,
18,
803,
18,
588,
10838,
12,
42,
13,
405,
6118,
30,
468,
23086,
478,
18,
775,
30,
309,
478,
18,
5839,
1918,
2668,
18,
2074,
11,
4672,
389,
625,
18,
11179,
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,
741,
67,
1484,
2188,
67,
29795,
12,
1369,
16,
17378,
4672,
3536,
21498,
340,
675,
2188,
364,
810,
18,
225,
12943,
30,
980,
1493,
279,
2202,
980,
31,
1297,
380,
902,
14,
1240,
1281,
19181,
316,
518,
17378,
1493,
2856,
326,
810,
980,
353,
8654,
1087,
434,
326,
2416,
980,
16,
2724,
434,
1696,
30821,
578,
23253,
18,
3536,
309,
2337,
82,
11,
316,
980,
30,
1002,
7265,
16,
315,
925,
316,
445,
716,
4097,
741,
67,
1484,
2188,
67,
29795,
1493,
1915,
848,
506,
1158,
19181,
316,
326,
810,
6,
225,
2552,
7495,
225,
468,
1220,
353,
1427,
518,
1807,
7791,
358,
1240,
328,
6968,
434,
7052,
3476,
622,
326,
468,
8435,
434,
1281,
1661,
17,
1213,
2
] |
properties = [p for p in properties if p.target().cls() == container.uid()]
|
cuid = container.uid() properties = [p for p in properties if p.target().cls() == cuid]
|
def _write_property_details(self, public, private, container, properties, heading='Variable Details'): """ Write HTML code for a properties details dection. This is used by L{_write_class} to describe the properties in a class. @param public: The output stream for the public version of the page. @param private: The output stream for the private version of the page. @param container: The or class that contains the properties. C{container} is used to group the functions. @param properties: The properties that should be included in the section. """ # Filter out properties that we have no docs for; these are # just listed in the summary table. docmap = self._docmap properties = [p for p in properties if docmap.has_key(p.target())]
|
b57986399a2595e7095d7d67227b7bcda199a18b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b57986399a2595e7095d7d67227b7bcda199a18b/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4468,
67,
6395,
12,
2890,
16,
1071,
16,
3238,
16,
1478,
16,
1790,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
2598,
3982,
981,
364,
279,
1790,
3189,
443,
349,
18,
225,
1220,
353,
1399,
635,
511,
95,
67,
2626,
67,
1106,
97,
358,
6401,
326,
1790,
316,
279,
667,
18,
632,
891,
1071,
30,
1021,
876,
1407,
364,
326,
1071,
1177,
434,
326,
1363,
18,
632,
891,
3238,
30,
1021,
876,
1407,
364,
326,
3238,
1177,
434,
326,
1363,
18,
632,
891,
1478,
30,
1021,
578,
667,
716,
1914,
326,
1790,
18,
385,
95,
3782,
97,
353,
1399,
358,
1041,
326,
4186,
18,
632,
891,
1790,
30,
1021,
1790,
716,
1410,
506,
5849,
316,
326,
2442,
18,
3536,
468,
4008,
596,
1790,
716,
732,
1240,
1158,
3270,
364,
31,
4259,
854,
468,
2537,
12889,
316,
326,
4916,
1014,
18,
997,
1458,
273,
365,
6315,
2434,
1458,
1790,
273,
306,
84,
364,
293,
316,
1790,
309,
997,
1458,
18,
5332,
67,
856,
12,
84,
18,
3299,
10756,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4468,
67,
6395,
12,
2890,
16,
1071,
16,
3238,
16,
1478,
16,
1790,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
2598,
3982,
981,
364,
279,
1790,
3189,
443,
349,
18,
225,
1220,
353,
1399,
635,
511,
95,
67,
2626,
67,
1106,
97,
358,
6401,
326,
1790,
316,
279,
667,
18,
632,
891,
1071,
30,
1021,
876,
1407,
364,
326,
1071,
1177,
434,
326,
1363,
18,
632,
891,
3238,
30,
1021,
876,
1407,
364,
326,
3238,
1177,
434,
326,
1363,
18,
632,
891,
1478,
30,
1021,
578,
667,
716,
1914,
326,
1790,
18,
385,
95,
3782,
97,
353,
1399,
358,
1041,
326,
4186,
18,
632,
891,
1790,
30,
1021,
1790,
716,
1410,
506,
5849,
316,
2
] |
actions.action_help()
|
actions.action_help()
|
def show_help(): print """Usage: benchmark.py [OPTION]... [PROJECT]...
|
c3b1836ef0182f28706671e776a50bdd03b5c845 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/c3b1836ef0182f28706671e776a50bdd03b5c845/benchmark.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
5201,
13332,
1172,
3536,
5357,
30,
14128,
18,
2074,
306,
7425,
65,
2777,
306,
17147,
65,
2777,
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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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
] |
will_read = num_frames_left if num_frames_left < frames_to_read else frames_to_read
|
def read_frames(self, frames_to_read): if self.has_broken_header and self.seekpoint + frames_to_read > self.num_frames / 2: raise IOError()
|
a7848c2fefe929b851b1aeb0a3462028d913cf20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12043/a7848c2fefe929b851b1aeb0a3462028d913cf20/wav2png.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10278,
12,
2890,
16,
7793,
67,
869,
67,
896,
4672,
309,
365,
18,
5332,
67,
70,
19906,
67,
3374,
471,
365,
18,
16508,
1153,
397,
7793,
67,
869,
67,
896,
405,
365,
18,
2107,
67,
10278,
342,
576,
30,
1002,
8340,
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,
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0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10278,
12,
2890,
16,
7793,
67,
869,
67,
896,
4672,
309,
365,
18,
5332,
67,
70,
19906,
67,
3374,
471,
365,
18,
16508,
1153,
397,
7793,
67,
869,
67,
896,
405,
365,
18,
2107,
67,
10278,
342,
576,
30,
1002,
8340,
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
] |
|
else: pass
|
def _waiter(self): while True: job, result, throw_args = self._queue.wait() if throw_args is None: job.event.send(result) else: if self._killerror is None: type = throw_args[0] self._killerror = JobGroupExit('Killed because of %s in the group' % type.__name__) self.kill_all(self._killerror) job.event.send_exception(*throw_args) # cannot exit here, as I need to deliver GreenExits else: # another exception, ignore it pass
|
2ea50a175781db413892ace970a0e6314607e240 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/2ea50a175781db413892ace970a0e6314607e240/coros.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7048,
264,
12,
2890,
4672,
1323,
1053,
30,
1719,
16,
563,
16,
604,
67,
1968,
273,
365,
6315,
4000,
18,
7048,
1435,
309,
604,
67,
1968,
353,
599,
30,
1719,
18,
2575,
18,
4661,
12,
2088,
13,
469,
30,
309,
365,
6315,
16418,
1636,
353,
599,
30,
618,
273,
604,
67,
1968,
63,
20,
65,
365,
6315,
16418,
1636,
273,
3956,
1114,
6767,
2668,
47,
13148,
2724,
434,
738,
87,
316,
326,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7048,
264,
12,
2890,
4672,
1323,
1053,
30,
1719,
16,
563,
16,
604,
67,
1968,
273,
365,
6315,
4000,
18,
7048,
1435,
309,
604,
67,
1968,
353,
599,
30,
1719,
18,
2575,
18,
4661,
12,
2088,
13,
469,
30,
309,
365,
6315,
16418,
1636,
353,
599,
30,
618,
273,
604,
67,
1968,
63,
20,
65,
365,
6315,
16418,
1636,
273,
3956,
1114,
6767,
2668,
47,
13148,
2724,
434,
738,
87,
316,
326,
1041,
11,
738,
618,
16186,
529,
972,
13,
365,
18,
16418,
67,
454,
12,
2890,
6315,
16418,
1636,
13,
1719,
18,
2575,
18,
4661,
67,
4064,
30857,
12849,
67,
1968,
13,
468,
2780,
2427,
2674,
16,
487,
467,
1608,
358,
11795,
17766,
424,
1282,
469,
2
] |
|
EnqueueCxx(ipath=IPATH, opts=['BUILDING_PPYTHONW'], src='ppython.cxx', obj='ppythonw.obj') EnqueueLink(opts=['WINUSER'], dll='ppythonw.exe', obj=['ppythonw.obj'])
|
def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2)) pandaversion_h = pandaversion_h.replace("VERSION3",str(version3)) pandaversion_h = pandaversion_h.replace("NVERSION",str(nversion)) checkpandaversion_cxx = CHECKPANDAVERSION_CXX.replace("VERSION1",str(version1)) checkpandaversion_cxx = checkpandaversion_cxx.replace("VERSION2",str(version2)) checkpandaversion_cxx = checkpandaversion_cxx.replace("VERSION3",str(version3)) checkpandaversion_cxx = checkpandaversion_cxx.replace("NVERSION",str(nversion)) checkpandaversion_h = CHECKPANDAVERSION_H.replace("VERSION1",str(version1)) checkpandaversion_h = checkpandaversion_h.replace("VERSION2",str(version2)) checkpandaversion_h = checkpandaversion_h.replace("VERSION3",str(version3)) checkpandaversion_h = checkpandaversion_h.replace("NVERSION",str(nversion)) ConditionalWriteFile('built/include/pandaVersion.h', pandaversion_h) ConditionalWriteFile('built/include/checkPandaVersion.cxx', checkpandaversion_cxx) ConditionalWriteFile('built/include/checkPandaVersion.h', checkpandaversion_h) if (OMIT.count("PYTHON")==0): ConditionalWriteFile("built/tmp/pythonversion", os.path.basename(PYTHONSDK)) ConditionalWriteFile("built/tmp/null.cxx","")
|
2e83eec6a5713df32f1cb4136016d899f0f7f37c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/2e83eec6a5713df32f1cb4136016d899f0f7f37c/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
464,
69,
1444,
2697,
13332,
1177,
21,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
20,
5717,
1177,
22,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
21,
5717,
1177,
23,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
22,
5717,
290,
1589,
33,
1589,
21,
14,
21,
9449,
15,
1589,
22,
14,
18088,
15,
1589,
23,
225,
293,
464,
842,
722,
67,
76,
273,
453,
4307,
37,
5757,
67,
44,
18,
2079,
2932,
5757,
21,
3113,
701,
12,
1589,
21,
3719,
293,
464,
842,
722,
67,
76,
273,
293,
464,
842,
722,
67,
76,
18,
2079,
2932,
5757,
22,
3113,
701,
12,
1589,
22,
3719,
293,
464,
842,
722,
67,
76,
273,
293,
464,
842,
722,
67,
76,
18,
2079,
2932,
5757,
23,
3113,
701,
12,
1589,
23,
3719,
293,
464,
842,
722,
67,
76,
273,
293,
464,
842,
722,
67,
76,
18,
2079,
2932,
50,
5757,
3113,
701,
12,
82,
1589,
3719,
225,
866,
84,
464,
842,
722,
67,
71,
5279,
273,
14565,
52,
4307,
37,
5757,
67,
39,
5619,
18,
2079,
2932,
5757,
21,
3113,
701,
12,
1589,
21,
3719,
866,
84,
464,
842,
722,
67,
71,
5279,
273,
866,
84,
464,
842,
722,
67,
71,
5279,
18,
2079,
2932,
5757,
22,
3113,
701,
12,
1589,
22,
3719,
866,
84,
464,
842,
722,
67,
71,
5279,
273,
866,
84,
464,
842,
722,
67,
71,
5279,
18,
2079,
2932,
5757,
23,
3113,
701,
12,
1589,
23,
3719,
866,
84,
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,
1788,
52,
464,
69,
1444,
2697,
13332,
1177,
21,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
20,
5717,
1177,
22,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
21,
5717,
1177,
23,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
22,
5717,
290,
1589,
33,
1589,
21,
14,
21,
9449,
15,
1589,
22,
14,
18088,
15,
1589,
23,
225,
293,
464,
842,
722,
67,
76,
273,
453,
4307,
37,
5757,
67,
44,
18,
2079,
2932,
5757,
21,
3113,
701,
12,
1589,
21,
3719,
293,
464,
842,
722,
67,
76,
273,
293,
464,
842,
722,
67,
76,
18,
2079,
2932,
5757,
22,
3113,
701,
12,
1589,
22,
3719,
293,
464,
842,
722,
67,
76,
273,
2
] |
|
filetag.tag().track = filetagnum - self.filetagnum + 1
|
filetag.tag().track = filetagnum - self.filetagnum
|
def editwindow_applyall(self, button, item, filetags, tag_changed, entries): filetagnum = 0 for filetag in filetags: filetagnum = filetagnum + 1 tag_changed[filetagnum-1][item] = True if item == "title": filetag.tag().title = entries[0].get_text() elif item == "album": filetag.tag().album = entries[2].get_text() elif item == "artist": filetag.tag().artist = entries[1].get_text() elif item == "year": if len(entries[3].get_text()) > 0: filetag.tag().year = int(entries[3].get_text()) else: filetag.tag().year = 0 elif item == "track": if filetagnum >= self.filetagnum: # Start the current song at track 1, as opposed to the first # song in the list. filetag.tag().track = filetagnum - self.filetagnum + 1 else: filetag.tag().track = 0 elif item == "genre": filetag.tag().genre = entries[5].get_text() elif item == "comment": filetag.tag().comment = entries[6].get_text() if item == "track": # Update the entry for the current song: entries[4].set_text(str(filetags[self.filetagnum].tag().track))
|
2e003d337e9f66a38f8a36b1d0af5904ec35cfa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/2e003d337e9f66a38f8a36b1d0af5904ec35cfa8/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
5668,
67,
9010,
454,
12,
2890,
16,
3568,
16,
761,
16,
661,
278,
1341,
16,
1047,
67,
6703,
16,
3222,
4672,
661,
20788,
2107,
273,
374,
364,
661,
20788,
316,
661,
278,
1341,
30,
661,
20788,
2107,
273,
661,
20788,
2107,
397,
404,
1047,
67,
6703,
63,
7540,
20788,
2107,
17,
21,
6362,
1726,
65,
273,
1053,
309,
761,
422,
315,
2649,
6877,
661,
20788,
18,
2692,
7675,
2649,
273,
3222,
63,
20,
8009,
588,
67,
955,
1435,
1327,
761,
422,
315,
25090,
6877,
661,
20788,
18,
2692,
7675,
25090,
273,
3222,
63,
22,
8009,
588,
67,
955,
1435,
1327,
761,
422,
315,
25737,
6877,
661,
20788,
18,
2692,
7675,
25737,
273,
3222,
63,
21,
8009,
588,
67,
955,
1435,
1327,
761,
422,
315,
6874,
6877,
309,
562,
12,
8219,
63,
23,
8009,
588,
67,
955,
10756,
405,
374,
30,
661,
20788,
18,
2692,
7675,
6874,
273,
509,
12,
8219,
63,
23,
8009,
588,
67,
955,
10756,
469,
30,
661,
20788,
18,
2692,
7675,
6874,
273,
374,
1327,
761,
422,
315,
4101,
6877,
309,
661,
20788,
2107,
1545,
365,
18,
7540,
20788,
2107,
30,
468,
3603,
326,
783,
17180,
622,
3298,
404,
16,
487,
1061,
7423,
358,
326,
1122,
468,
17180,
316,
326,
666,
18,
661,
20788,
18,
2692,
7675,
4101,
273,
661,
20788,
2107,
300,
365,
18,
7540,
20788,
2107,
469,
30,
661,
20788,
18,
2692,
7675,
4101,
273,
374,
1327,
761,
422,
315,
4507,
266,
6877,
661,
20788,
18,
2692,
7675,
4507,
266,
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,
3874,
5668,
67,
9010,
454,
12,
2890,
16,
3568,
16,
761,
16,
661,
278,
1341,
16,
1047,
67,
6703,
16,
3222,
4672,
661,
20788,
2107,
273,
374,
364,
661,
20788,
316,
661,
278,
1341,
30,
661,
20788,
2107,
273,
661,
20788,
2107,
397,
404,
1047,
67,
6703,
63,
7540,
20788,
2107,
17,
21,
6362,
1726,
65,
273,
1053,
309,
761,
422,
315,
2649,
6877,
661,
20788,
18,
2692,
7675,
2649,
273,
3222,
63,
20,
8009,
588,
67,
955,
1435,
1327,
761,
422,
315,
25090,
6877,
661,
20788,
18,
2692,
7675,
25090,
273,
3222,
63,
22,
8009,
588,
67,
955,
1435,
1327,
761,
422,
315,
25737,
6877,
661,
20788,
18,
2692,
7675,
25737,
273,
3222,
63,
21,
8009,
588,
2
] |
def get_tag_value_by_about (self, about, tag): """Gets the value of a tag on an object having the given about tag. Returns returns a 2-tuple, in which the first component is the status, and the second is either the tag value, if the return stats is STATUS.OK, or None otherwise. """ o = self.create_object (about=about) if type (o) == types.IntType: return o return self.get_tag_value_by_id (o.id, tag)
|
get_tag_value_by_about = by_about(get_tag_value_by_id)
|
def get_tag_value_by_about (self, about, tag): """Gets the value of a tag on an object having the given about tag.
|
a258ae866ad40d7092b84a6b1737df504976b56c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12637/a258ae866ad40d7092b84a6b1737df504976b56c/fdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2692,
67,
1132,
67,
1637,
67,
21071,
261,
2890,
16,
2973,
16,
1047,
4672,
3536,
3002,
326,
460,
434,
279,
1047,
603,
392,
733,
7999,
326,
864,
2973,
1047,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2692,
67,
1132,
67,
1637,
67,
21071,
261,
2890,
16,
2973,
16,
1047,
4672,
3536,
3002,
326,
460,
434,
279,
1047,
603,
392,
733,
7999,
326,
864,
2973,
1047,
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
] |
if hasattr(self, '_assoc'): G._assoc = {} for v in self._assoc: try: G._assoc[v] = self._assoc[v].copy() except: G._assoc[v] = copy(self._assoc[v]) if hasattr(self, '_embedding'): G._embedding = self._embedding
|
attributes_to_copy = ('_assoc', '_embedding') for attr in attributes_to_copy: if hasattr(self, attr): copy_attr = {} old_attr = getattr(self, attr) if isinstance(old_attr, dict): for v,value in old_attr.iteritems(): try: copy_attr[v] = value.copy() except AttributeError: copy_attr[v] = copy(value) setattr(G, attr, copy_attr) else: setattr(G, attr, copy(old_attr))
|
def copy(self, implementation='networkx', sparse=True): """ Creates a copy of the graph.
|
c3afb61f9d1def8f80a547062b5fe32e541084ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/c3afb61f9d1def8f80a547062b5fe32e541084ab/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
4471,
2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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
4471,
2218,
5185,
92,
2187,
9387,
33,
5510,
4672,
3536,
10210,
279,
1610,
434,
326,
2667,
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
] |
units_qs = unit.store.units
|
filter = request.GET.get('filter', DEFAULT_FILTER) units_qs = _filter_queryset(unit.store.units, filter)
|
def get_edit_unit(request, pootle_path, uid): """ Given a store path C{pootle_path} and unit id C{uid}, gathers all the necessary information to build the editing widget. @return: A templatised editing widget is returned within the C{editor} variable and paging information is also returned if the page number has changed. """ if pootle_path[0] != '/': pootle_path = '/' + pootle_path unit = get_object_or_404(Unit, id=uid, store__pootle_path=pootle_path) translation_project = unit.store.translation_project language = translation_project.language form_class = unit_form_factory(language, len(unit.source.strings)) form = form_class(instance=unit) store = unit.store directory = store.parent profile = get_profile(request.user) alt_src_langs = get_alt_src_langs(request, profile, translation_project) project = translation_project.project template_vars = {'unit': unit, 'form': form, 'store': store, 'profile': profile, 'user': request.user, 'language': language, 'source_language': translation_project.project.source_language, 'cantranslate': check_profile_permission(profile, "translate", directory), 'cansuggest': check_profile_permission(profile, "suggest", directory), 'canreview': check_profile_permission(profile, "review", directory), 'altsrcs': find_altsrcs(unit, alt_src_langs, store=store, project=project), 'suggestions': get_sugg_list(unit)} t = loader.get_template('unit/edit.html') c = RequestContext(request, template_vars) json = {'success': True, 'editor': t.render(c)} current_page = 'page' in request.GET and request.GET['page'] or 1 # TODO: Adapt units_qs once we allow filtering units_qs = unit.store.units unit_rows = profile.get_unit_rows() preceding = units_qs.filter(index__lt=unit.index).count() page = preceding / unit_rows + 1 if page != current_page: pager = paginate(request, units_qs, items=unit_rows, page=page) json["pager"] = _build_pager_dict(pager) response = simplejson.dumps(json) return HttpResponse(response, mimetype="application/json")
|
9f3ce7792a374c47521821bbf169d3f084c085c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/9f3ce7792a374c47521821bbf169d3f084c085c7/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4619,
67,
4873,
12,
2293,
16,
293,
1632,
298,
67,
803,
16,
4555,
4672,
3536,
16803,
279,
1707,
589,
385,
95,
1631,
352,
298,
67,
803,
97,
471,
2836,
612,
385,
95,
1911,
5779,
314,
29722,
777,
326,
4573,
1779,
358,
1361,
326,
15755,
3604,
18,
225,
632,
2463,
30,
432,
13988,
270,
5918,
15755,
3604,
353,
2106,
3470,
326,
385,
95,
9177,
97,
2190,
471,
17859,
1779,
353,
2546,
2106,
309,
326,
1363,
1300,
711,
3550,
18,
3536,
309,
293,
1632,
298,
67,
803,
63,
20,
65,
480,
2023,
30,
293,
1632,
298,
67,
803,
273,
2023,
397,
293,
1632,
298,
67,
803,
225,
2836,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
2802,
16,
612,
33,
1911,
16,
1707,
972,
1631,
352,
298,
67,
803,
33,
1631,
352,
298,
67,
803,
13,
4794,
67,
4406,
273,
2836,
18,
2233,
18,
10173,
67,
4406,
2653,
273,
4794,
67,
4406,
18,
4923,
646,
67,
1106,
273,
2836,
67,
687,
67,
6848,
12,
4923,
16,
562,
12,
4873,
18,
3168,
18,
10219,
3719,
646,
273,
646,
67,
1106,
12,
1336,
33,
4873,
13,
1707,
273,
2836,
18,
2233,
1867,
273,
1707,
18,
2938,
3042,
273,
336,
67,
5040,
12,
2293,
18,
1355,
13,
3770,
67,
4816,
67,
4936,
87,
273,
336,
67,
2390,
67,
4816,
67,
4936,
87,
12,
2293,
16,
3042,
16,
4794,
67,
4406,
13,
1984,
273,
4794,
67,
4406,
18,
4406,
1542,
67,
4699,
273,
13666,
4873,
4278,
2836,
16,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4619,
67,
4873,
12,
2293,
16,
293,
1632,
298,
67,
803,
16,
4555,
4672,
3536,
16803,
279,
1707,
589,
385,
95,
1631,
352,
298,
67,
803,
97,
471,
2836,
612,
385,
95,
1911,
5779,
314,
29722,
777,
326,
4573,
1779,
358,
1361,
326,
15755,
3604,
18,
225,
632,
2463,
30,
432,
13988,
270,
5918,
15755,
3604,
353,
2106,
3470,
326,
385,
95,
9177,
97,
2190,
471,
17859,
1779,
353,
2546,
2106,
309,
326,
1363,
1300,
711,
3550,
18,
3536,
309,
293,
1632,
298,
67,
803,
63,
20,
65,
480,
2023,
30,
293,
1632,
298,
67,
803,
273,
2023,
397,
293,
1632,
298,
67,
803,
225,
2836,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
2802,
2
] |
def fl_get_object_gravity(ob, nw, se): """ fl_get_object_gravity(ob, nw, se) """ _fl_get_object_gravity(ob, nw, se)
|
def fl_get_object_gravity(pObject, nw, se): """ fl_get_object_gravity(pObject, nw, se) """ _fl_get_object_gravity(pObject, nw, se)
|
def fl_get_object_gravity(ob, nw, se): """ fl_get_object_gravity(ob, nw, se) """ _fl_get_object_gravity(ob, nw, se)
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
1612,
67,
2752,
16438,
12,
84,
921,
16,
14376,
16,
695,
4672,
3536,
1183,
67,
588,
67,
1612,
67,
2752,
16438,
12,
84,
921,
16,
14376,
16,
695,
13,
3536,
225,
389,
2242,
67,
588,
67,
1612,
67,
2752,
16438,
12,
84,
921,
16,
14376,
16,
695,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
1612,
67,
2752,
16438,
12,
84,
921,
16,
14376,
16,
695,
4672,
3536,
1183,
67,
588,
67,
1612,
67,
2752,
16438,
12,
84,
921,
16,
14376,
16,
695,
13,
3536,
225,
389,
2242,
67,
588,
67,
1612,
67,
2752,
16438,
12,
84,
921,
16,
14376,
16,
695,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" assigns values given by a list to our attributes """
|
""" Assigns values given by a list to our attributes. """
|
def setValues(self, vallist): """ assigns values given by a list to our attributes """ attributes = ["quality", "siglevel", "nlevel", "updated"] assert len(vallist) == 4 for i in range(len(vallist)): setattr(self, attributes[i], vallist[i])
|
05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27466,
12,
2890,
16,
331,
454,
376,
4672,
3536,
12093,
87,
924,
864,
635,
279,
666,
358,
3134,
1677,
18,
3536,
1677,
273,
8247,
16495,
3113,
315,
7340,
2815,
3113,
315,
82,
2815,
3113,
315,
7007,
11929,
1815,
562,
12,
90,
454,
376,
13,
422,
1059,
225,
364,
277,
316,
1048,
12,
1897,
12,
90,
454,
376,
3719,
30,
9241,
12,
2890,
16,
1677,
63,
77,
6487,
331,
454,
376,
63,
77,
5717,
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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,
87,
924,
864,
635,
279,
666,
358,
3134,
1677,
18,
3536,
1677,
273,
8247,
16495,
3113,
315,
7340,
2815,
3113,
315,
82,
2815,
3113,
315,
7007,
11929,
1815,
562,
12,
90,
454,
376,
13,
422,
1059,
225,
364,
277,
316,
1048,
12,
1897,
12,
90,
454,
376,
3719,
30,
9241,
12,
2890,
16,
1677,
63,
77,
6487,
331,
454,
376,
63,
77,
5717,
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
] |
err_fields.append(fields[i])
|
err_fields.append((fields[i], expected_out[i], real_out[i]))
|
def do_test(inp, expected_out, testno, binary): fninp = make_tempname("cpuidin") fnoutp = make_tempname("cpuidout") f = open(fninp, "wt") f.writelines(map(lambda s: s + "\n", inp)) f.close() cmd = "%s --load=%s --outfile=%s %s" % (binary, fninp, fnoutp, " ".join(map(lambda s: "--" + s, fields))) os.system(cmd) os.unlink(fninp) real_out = [] try: f = open(fnoutp, "rt") real_out = map(lambda s: s.strip(), f.readlines()) f.close() os.unlink(fnoutp) except IOError: return "Exception" if len(real_out) != len(expected_out) or len(real_out) != len(fields): return "Unexpected number of records returned" err_fields = [] for i in range(len(real_out)): if real_out[i] != expected_out[i]: err_fields.append(fields[i]) if not err_fields: return "OK" else: return "Mismatch in fields %s" % str(err_fields)
|
a1395632fa632215795f8800dfdb457ae864a4ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7432/a1395632fa632215795f8800dfdb457ae864a4ae/run_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3813,
12,
31647,
16,
2665,
67,
659,
16,
1842,
2135,
16,
3112,
4672,
2295,
31647,
273,
1221,
67,
5814,
529,
2932,
4057,
1911,
267,
7923,
2295,
659,
84,
273,
1221,
67,
5814,
529,
2932,
4057,
1911,
659,
7923,
284,
273,
1696,
12,
4293,
31647,
16,
315,
6046,
7923,
284,
18,
5363,
14567,
12,
1458,
12,
14661,
272,
30,
272,
397,
1548,
82,
3113,
12789,
3719,
284,
18,
4412,
1435,
1797,
273,
2213,
87,
1493,
945,
5095,
87,
1493,
26050,
5095,
87,
738,
87,
6,
738,
261,
8578,
16,
2295,
31647,
16,
2295,
659,
84,
16,
315,
3552,
5701,
12,
1458,
12,
14661,
272,
30,
26306,
397,
272,
16,
1466,
20349,
1140,
18,
4299,
12,
4172,
13,
1140,
18,
318,
1232,
12,
4293,
31647,
13,
2863,
67,
659,
273,
5378,
775,
30,
284,
273,
1696,
12,
4293,
659,
84,
16,
315,
3797,
7923,
2863,
67,
659,
273,
852,
12,
14661,
272,
30,
272,
18,
6406,
9334,
284,
18,
896,
3548,
10756,
284,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
4293,
659,
84,
13,
1335,
8340,
30,
327,
315,
503,
6,
309,
562,
12,
7688,
67,
659,
13,
480,
562,
12,
3825,
67,
659,
13,
578,
562,
12,
7688,
67,
659,
13,
480,
562,
12,
2821,
4672,
327,
315,
7762,
1300,
434,
3853,
2106,
6,
393,
67,
2821,
273,
5378,
364,
277,
316,
1048,
12,
1897,
12,
7688,
67,
659,
3719,
30,
309,
2863,
67,
659,
63,
77,
65,
480,
2665,
67,
659,
63,
77,
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,
741,
67,
3813,
12,
31647,
16,
2665,
67,
659,
16,
1842,
2135,
16,
3112,
4672,
2295,
31647,
273,
1221,
67,
5814,
529,
2932,
4057,
1911,
267,
7923,
2295,
659,
84,
273,
1221,
67,
5814,
529,
2932,
4057,
1911,
659,
7923,
284,
273,
1696,
12,
4293,
31647,
16,
315,
6046,
7923,
284,
18,
5363,
14567,
12,
1458,
12,
14661,
272,
30,
272,
397,
1548,
82,
3113,
12789,
3719,
284,
18,
4412,
1435,
1797,
273,
2213,
87,
1493,
945,
5095,
87,
1493,
26050,
5095,
87,
738,
87,
6,
738,
261,
8578,
16,
2295,
31647,
16,
2295,
659,
84,
16,
315,
3552,
5701,
12,
1458,
12,
14661,
272,
30,
26306,
397,
272,
16,
1466,
20349,
1140,
18,
4299,
12,
4172,
13,
2
] |
def edit_categories(request, savetext, category_edit, catlist):
|
def edit_categories(request, savetext, action, catlist):
|
def edit_categories(request, savetext, category_edit, catlist): # Original code copied from PageEditor # Filter out anything that is not a category newcategories = wikiutil.filterCategoryPages(request, catlist) # If no categories to set or add, bail out now if not newcategories and not category_edit == 'del': return savetext # strip trailing whitespace savetext = savetext.rstrip() confirmed = [] # Add category separator if last non-empty line contains # non-categories. lines = filter(None, savetext.splitlines()) if lines: #TODO: this code is broken, will not work for extended links #categories, e.g ["category hebrew"] categories = lines[-1].split() if categories: confirmed = wikiutil.filterCategoryPages(request, categories) if len(confirmed) < len(categories): # This was not a categories line, if deleting, our job is done if category_edit == 'del': return savetext + u'\n' # otherwise add separator savetext += u'\n----\n' elif category_edit == 'set': # Delete existing when setting categories savetext = '\n'.join(savetext.split('\n')[:-1]) + u'\n' elif category_edit == 'del': # Delete existing and separator when deleting categories savetext = '\n'.join(savetext.split('\n')[:-2]) # Add is default if category_edit == 'set': # Delete existing categories confirmed = [] elif category_edit == 'del': # Just in case, do not add anything newcategories = [] if not lines: # add separator savetext += u'\n----\n' # Add categories for category in newcategories: if category in confirmed: continue if savetext and savetext[-1] != u'\n': savetext += ' ' savetext += category savetext += u'\n' # Should end with newline! return savetext
|
4e2010aaa060818029db2ad27412ff25742250ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/4e2010aaa060818029db2ad27412ff25742250ad/editing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
8995,
12,
2293,
16,
4087,
27830,
16,
3150,
67,
4619,
16,
6573,
1098,
4672,
468,
19225,
981,
9268,
628,
3460,
6946,
225,
468,
4008,
596,
6967,
716,
353,
486,
279,
3150,
394,
8995,
273,
9050,
1367,
18,
2188,
4457,
5716,
12,
2293,
16,
6573,
1098,
13,
468,
971,
1158,
6477,
358,
444,
578,
527,
16,
18422,
596,
2037,
309,
486,
394,
8995,
471,
486,
3150,
67,
4619,
422,
296,
3771,
4278,
327,
4087,
27830,
225,
468,
2569,
7341,
7983,
4087,
27830,
273,
4087,
27830,
18,
86,
6406,
1435,
225,
19979,
273,
5378,
225,
468,
1436,
3150,
4182,
309,
1142,
1661,
17,
5531,
980,
1914,
468,
1661,
17,
8995,
18,
2362,
273,
1034,
12,
7036,
16,
4087,
27830,
18,
4939,
3548,
10756,
309,
2362,
30,
468,
6241,
30,
333,
981,
353,
12933,
16,
903,
486,
1440,
364,
7021,
4716,
468,
8995,
16,
425,
18,
75,
8247,
4743,
3904,
6073,
91,
11929,
6477,
273,
2362,
18919,
21,
8009,
4939,
1435,
225,
309,
6477,
30,
19979,
273,
9050,
1367,
18,
2188,
4457,
5716,
12,
2293,
16,
6477,
13,
225,
309,
562,
12,
21606,
13,
411,
562,
12,
8995,
4672,
468,
1220,
1703,
486,
279,
6477,
980,
16,
309,
12993,
16,
3134,
1719,
353,
2731,
309,
3150,
67,
4619,
422,
296,
3771,
4278,
327,
4087,
27830,
397,
582,
8314,
82,
11,
225,
468,
3541,
527,
4182,
4087,
27830,
1011,
582,
8314,
82,
553,
64,
82,
11,
1327,
3150,
67,
4619,
422,
296,
542,
4278,
468,
2504,
2062,
1347,
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,
3874,
67,
8995,
12,
2293,
16,
4087,
27830,
16,
3150,
67,
4619,
16,
6573,
1098,
4672,
468,
19225,
981,
9268,
628,
3460,
6946,
225,
468,
4008,
596,
6967,
716,
353,
486,
279,
3150,
394,
8995,
273,
9050,
1367,
18,
2188,
4457,
5716,
12,
2293,
16,
6573,
1098,
13,
468,
971,
1158,
6477,
358,
444,
578,
527,
16,
18422,
596,
2037,
309,
486,
394,
8995,
471,
486,
3150,
67,
4619,
422,
296,
3771,
4278,
327,
4087,
27830,
225,
468,
2569,
7341,
7983,
4087,
27830,
273,
4087,
27830,
18,
86,
6406,
1435,
225,
19979,
273,
5378,
225,
468,
1436,
3150,
4182,
309,
1142,
1661,
17,
5531,
980,
1914,
468,
1661,
17,
8995,
18,
2362,
273,
1034,
12,
7036,
16,
4087,
2
] |
secret, format = id.rsplit(':', 1) user_subscriptions = self.context.subscriptions[secret] for_format = [s for s in user_subscriptions if s.metadata['format'] == format] for_format = for_format[0] user_subscriptions.remove(for_format)
|
key, format = id.rsplit('-', 1) subs = self.context.subscriptions.query(key=key, format=format) for subscription in subs: self.context.subscriptions.remove_subscription(subscription)
|
def remove(self, (id, item)): secret, format = id.rsplit(':', 1) user_subscriptions = self.context.subscriptions[secret] for_format = [s for s in user_subscriptions if s.metadata['format'] == format] #assert len(for_format) == 1 for_format = for_format[0] user_subscriptions.remove(for_format)
|
612955c63d795c26eaba7c24cea8d986b4c83abd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9843/612955c63d795c26eaba7c24cea8d986b4c83abd/channel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
261,
350,
16,
761,
3719,
30,
4001,
16,
740,
273,
612,
18,
86,
4939,
2668,
30,
2187,
404,
13,
729,
67,
19964,
273,
365,
18,
2472,
18,
19964,
63,
5875,
65,
364,
67,
2139,
273,
306,
87,
364,
272,
316,
729,
67,
19964,
309,
272,
18,
4165,
3292,
2139,
3546,
422,
740,
65,
468,
11231,
562,
12,
1884,
67,
2139,
13,
422,
404,
364,
67,
2139,
273,
364,
67,
2139,
63,
20,
65,
729,
67,
19964,
18,
4479,
12,
1884,
67,
2139,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
261,
350,
16,
761,
3719,
30,
4001,
16,
740,
273,
612,
18,
86,
4939,
2668,
30,
2187,
404,
13,
729,
67,
19964,
273,
365,
18,
2472,
18,
19964,
63,
5875,
65,
364,
67,
2139,
273,
306,
87,
364,
272,
316,
729,
67,
19964,
309,
272,
18,
4165,
3292,
2139,
3546,
422,
740,
65,
468,
11231,
562,
12,
1884,
67,
2139,
13,
422,
404,
364,
67,
2139,
273,
364,
67,
2139,
63,
20,
65,
729,
67,
19964,
18,
4479,
12,
1884,
67,
2139,
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
] |
sage: P, = E.gens()
|
sage: P = E([0,-1])
|
sage: def naive_height(P):
|
cd6219a64ace5987dd70fb915ac37e633f404e15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cd6219a64ace5987dd70fb915ac37e633f404e15/ell_point.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
28224,
67,
4210,
12,
52,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
28224,
67,
4210,
12,
52,
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
] |
os.system(mplex_cmd % (chapter.props.mpg_name, chapter.props.video_name, chapter.props.sound_name))
|
os.system(mplex_cmd % (chapter.mpg_name, chapter.video_name, chapter.sound_name))
|
def __check_mpg(self, chapter): mplex_cmd = "mplex -v 0 -f 4 -o '%s' '%s' '%s'" if os.access(chapter.props.mpg_name, os.F_OK): print "mpeg %s already exists" % chapter.props.mpg_name return
|
197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
1291,
75,
12,
2890,
16,
23580,
4672,
312,
7179,
67,
4172,
273,
315,
1291,
4149,
300,
90,
374,
300,
74,
1059,
300,
83,
1995,
87,
11,
1995,
87,
11,
1995,
87,
4970,
309,
1140,
18,
3860,
12,
31254,
18,
9693,
18,
1291,
75,
67,
529,
16,
1140,
18,
42,
67,
3141,
4672,
1172,
315,
19951,
738,
87,
1818,
1704,
6,
738,
23580,
18,
9693,
18,
1291,
75,
67,
529,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
1291,
75,
12,
2890,
16,
23580,
4672,
312,
7179,
67,
4172,
273,
315,
1291,
4149,
300,
90,
374,
300,
74,
1059,
300,
83,
1995,
87,
11,
1995,
87,
11,
1995,
87,
4970,
309,
1140,
18,
3860,
12,
31254,
18,
9693,
18,
1291,
75,
67,
529,
16,
1140,
18,
42,
67,
3141,
4672,
1172,
315,
19951,
738,
87,
1818,
1704,
6,
738,
23580,
18,
9693,
18,
1291,
75,
67,
529,
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
] |
swig = self.find_swig() swig_cmd = [swig, "-python", "-ISWIG"] if self.swig_cpp: swig_cmd.append("-c++") for source in swig_sources: target = swig_targets[source] self.announce("swigging %s to %s" % (source, target)) self.spawn(swig_cmd + ["-o", target, source]) return new_sources build_ext.build_ext.swig_sources = swig_sources
|
build_ext.build_ext.swig_sources = swig_sources
|
def swig_sources (self, sources): """Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """ new_sources = [] swig_sources = [] swig_targets = {} # XXX this drops generated C/C++ files into the source tree, which # is fine for developers who want to distribute the generated # source -- but there should be an option to put SWIG output in # the temp dir. if self.swig_cpp: target_ext = '.cpp' else: target_ext = '.c' for source in sources: (base, ext) = os.path.splitext(source) if ext == ".i": # SWIG interface file new_sources.append(base + target_ext) swig_sources.append(source) swig_targets[source] = new_sources[-1] else: new_sources.append(source) if not swig_sources: return new_sources swig = self.find_swig() swig_cmd = [swig, "-python", "-ISWIG"] if self.swig_cpp: swig_cmd.append("-c++") for source in swig_sources: target = swig_targets[source] self.announce("swigging %s to %s" % (source, target)) self.spawn(swig_cmd + ["-o", target, source]) return new_sources
|
a3445be2469ebc765311af9285429177182b14f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/a3445be2469ebc765311af9285429177182b14f6/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
261,
2890,
16,
5550,
4672,
225,
3536,
9463,
326,
666,
434,
1084,
1390,
316,
296,
10141,
2187,
7849,
364,
16392,
3047,
1560,
261,
18,
77,
13,
1390,
18,
225,
1939,
16392,
3047,
603,
777,
716,
854,
1392,
16,
471,
327,
279,
4358,
296,
10141,
11,
666,
598,
16392,
3047,
1084,
1390,
8089,
635,
326,
4374,
385,
261,
280,
385,
27245,
1390,
18,
3536,
225,
394,
67,
10141,
273,
5378,
1352,
360,
67,
10141,
273,
5378,
1352,
360,
67,
11358,
273,
2618,
225,
468,
11329,
333,
29535,
4374,
385,
19,
39,
9904,
1390,
1368,
326,
1084,
2151,
16,
1492,
468,
353,
11079,
364,
21701,
10354,
2545,
358,
25722,
326,
4374,
468,
1084,
1493,
1496,
1915,
1410,
506,
392,
1456,
358,
1378,
16392,
3047,
876,
316,
468,
326,
1906,
1577,
18,
225,
309,
365,
18,
5328,
360,
67,
4057,
84,
30,
1018,
67,
408,
273,
2418,
4057,
84,
11,
469,
30,
1018,
67,
408,
273,
2418,
71,
11,
225,
364,
1084,
316,
5550,
30,
261,
1969,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
3168,
13,
309,
1110,
422,
3552,
77,
6877,
2398,
468,
16392,
3047,
1560,
585,
394,
67,
10141,
18,
6923,
12,
1969,
397,
1018,
67,
408,
13,
1352,
360,
67,
10141,
18,
6923,
12,
3168,
13,
1352,
360,
67,
11358,
63,
3168,
65,
273,
394,
67,
10141,
18919,
21,
65,
469,
30,
394,
67,
10141,
18,
6923,
12,
3168,
13,
225,
309,
486,
1352,
360,
67,
10141,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
261,
2890,
16,
5550,
4672,
225,
3536,
9463,
326,
666,
434,
1084,
1390,
316,
296,
10141,
2187,
7849,
364,
16392,
3047,
1560,
261,
18,
77,
13,
1390,
18,
225,
1939,
16392,
3047,
603,
777,
716,
854,
1392,
16,
471,
327,
279,
4358,
296,
10141,
11,
666,
598,
16392,
3047,
1084,
1390,
8089,
635,
326,
4374,
385,
261,
280,
385,
27245,
1390,
18,
3536,
225,
394,
67,
10141,
273,
5378,
1352,
360,
67,
10141,
273,
5378,
1352,
360,
67,
11358,
273,
2618,
225,
468,
11329,
333,
29535,
4374,
385,
19,
39,
9904,
1390,
1368,
326,
1084,
2151,
16,
1492,
468,
353,
11079,
364,
21701,
10354,
2545,
358,
25722,
326,
4374,
468,
1084,
1493,
1496,
1915,
2
] |
_phrase_noop("fourtieth"),
|
_phrase_noop("fortieth"),
|
def _phrase_noop(str): return str
|
4691e1450edc2750b4ba8a6c340eeff4c7a53964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3136/4691e1450edc2750b4ba8a6c340eeff4c7a53964/EN.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9429,
67,
2135,
556,
12,
701,
4672,
327,
609,
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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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not is_valid_ip_address(localip): raise Exception("Local IP address is invalid.")
|
def recvmess(localip, localport, function): """ <Purpose> Registers a function as an event handler for incoming messages <Arguments> localip: The local IP or hostname to register the handler on localport: The port to listen on function: The function that messages should be delivered to. It should expect the following arguments: (remoteIP, remoteport, message, commhandle) <Exceptions> None. <Side Effects> Registers an event handler. <Returns> The commhandle for this event handler. """ if not localip or localip == '0.0.0.0': raise Exception("Must specify a local IP address") if not is_valid_ip_address(localip): raise Exception("Local IP address is invalid.") if not is_valid_network_port(localport): raise Exception("Local port number must be an integer, between 1 and 65535.") # Check that the user specified function exists and takes 4 arguments try: # Get the argument count arg_count = function.func_code.co_argcount # We need the function to take 4 parameters assert(arg_count == 4) except: # If this is not a function, an exception will be raised. raise Exception("Specified function must be valid, and take 4 parameters. See recvmess.") restrictions.assertisallowed('recvmess',localip,localport) nanny.tattle_check('messport',localport) # Armon: Check if the specified local ip is allowed if not ip_is_allowed(localip): raise Exception, "IP '"+localip+"' is not allowed." # check if I'm already listening on this port / ip # NOTE: I check as though there might be a socket open that is sending a # message. This is nonsense since sendmess doesn't result in a socket # persisting. This is done so that if sockets for sendmess are cached # later (as seems likely) the resulting code will not break. oldhandle = find_tipo_commhandle('UDP', localip, localport, False) if oldhandle: # if it was already there, update the function and return comminfo[oldhandle]['function'] = function return oldhandle handle = idhelper.getuniqueid() # we'll need to add it, so add a socket... nanny.tattle_add_item('insockets',handle) # get the socket try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind((localip,localport)) nonportable.preparesocket(s) except: try: s.close() except: pass nanny.tattle_remove_item('insockets',handle) raise # set up our table entry comminfo[handle] = {'type':'UDP','localip':localip, 'localport':localport,'function':function,'socket':s, 'outgoing':False} # start the selector if it's not running already check_selector() return handle
|
86d29537aa93ae6d463ba0845d7be285b0ad21e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/86d29537aa93ae6d463ba0845d7be285b0ad21e5/emulcomm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1950,
3489,
403,
12,
3729,
625,
16,
1191,
655,
16,
445,
4672,
3536,
411,
10262,
4150,
34,
2526,
6045,
279,
445,
487,
392,
871,
1838,
364,
6935,
2743,
225,
411,
4628,
34,
1191,
625,
30,
1021,
1191,
2971,
578,
5199,
358,
1744,
326,
1838,
603,
1191,
655,
30,
1021,
1756,
358,
6514,
603,
445,
30,
1021,
445,
716,
2743,
1410,
506,
22112,
358,
18,
282,
2597,
1410,
4489,
326,
3751,
1775,
30,
261,
7222,
2579,
16,
2632,
655,
16,
883,
16,
1543,
4110,
13,
225,
411,
11416,
34,
599,
18,
225,
411,
8895,
30755,
87,
34,
2526,
6045,
392,
871,
1838,
18,
225,
411,
1356,
34,
1021,
1543,
4110,
364,
333,
871,
1838,
18,
3536,
309,
486,
1191,
625,
578,
1191,
625,
422,
296,
20,
18,
20,
18,
20,
18,
20,
4278,
1002,
1185,
2932,
10136,
4800,
279,
1191,
2971,
1758,
7923,
1377,
309,
486,
353,
67,
877,
67,
5185,
67,
655,
12,
3729,
655,
4672,
1002,
1185,
2932,
2042,
1756,
1300,
1297,
506,
392,
3571,
16,
3086,
404,
471,
10147,
1199,
13,
225,
468,
2073,
716,
326,
729,
1269,
445,
1704,
471,
5530,
1059,
1775,
775,
30,
468,
968,
326,
1237,
1056,
1501,
67,
1883,
273,
445,
18,
644,
67,
710,
18,
2894,
67,
3175,
1883,
225,
468,
1660,
1608,
326,
445,
358,
4862,
1059,
1472,
1815,
12,
3175,
67,
1883,
422,
1059,
13,
1335,
30,
468,
971,
333,
353,
486,
279,
445,
16,
392,
1520,
903,
506,
11531,
18,
1002,
1185,
2932,
17068,
445,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1950,
3489,
403,
12,
3729,
625,
16,
1191,
655,
16,
445,
4672,
3536,
411,
10262,
4150,
34,
2526,
6045,
279,
445,
487,
392,
871,
1838,
364,
6935,
2743,
225,
411,
4628,
34,
1191,
625,
30,
1021,
1191,
2971,
578,
5199,
358,
1744,
326,
1838,
603,
1191,
655,
30,
1021,
1756,
358,
6514,
603,
445,
30,
1021,
445,
716,
2743,
1410,
506,
22112,
358,
18,
282,
2597,
1410,
4489,
326,
3751,
1775,
30,
261,
7222,
2579,
16,
2632,
655,
16,
883,
16,
1543,
4110,
13,
225,
411,
11416,
34,
599,
18,
225,
411,
8895,
30755,
87,
34,
2526,
6045,
392,
871,
1838,
18,
225,
411,
1356,
34,
1021,
1543,
4110,
364,
333,
871,
1838,
18,
3536,
309,
486,
1191,
2
] |
|
K = self.base_ring()._magma_init_(magma)
|
K = magma(self.base_ring())
|
def _magma_init_(self, magma): r""" EXAMPLES: We first coerce a square matrix. :: sage: magma(MatrixSpace(QQ,3)) # optional - magma Full Matrix Algebra of degree 3 over Rational Field :: sage: magma(MatrixSpace(Integers(8),2,3)) # optional - magma Full RMatrixSpace of 2 by 3 matrices over IntegerRing(8) """ K = self.base_ring()._magma_init_(magma) if self.__nrows == self.__ncols: s = 'MatrixAlgebra(%s,%s)'%(K, self.__nrows) else: s = 'RMatrixSpace(%s,%s,%s)'%(K, self.__nrows, self.__ncols) return s
|
1e2f368ad3ae5357b67ddd25abdbfeacbd204591 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1e2f368ad3ae5357b67ddd25abdbfeacbd204591/matrix_space.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4527,
2540,
67,
2738,
67,
12,
2890,
16,
4447,
2540,
4672,
436,
8395,
5675,
8900,
11386,
30,
1660,
1122,
12270,
279,
8576,
3148,
18,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
53,
53,
16,
23,
3719,
8227,
468,
3129,
300,
4447,
2540,
11692,
7298,
2262,
29087,
434,
10782,
890,
1879,
534,
8371,
2286,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
382,
736,
6215,
12,
28,
3631,
22,
16,
23,
3719,
6647,
468,
3129,
300,
4447,
2540,
11692,
534,
4635,
3819,
434,
576,
635,
890,
16415,
1879,
2144,
10369,
12,
28,
13,
3536,
1475,
273,
4447,
2540,
12,
2890,
18,
1969,
67,
8022,
10756,
309,
365,
16186,
82,
3870,
422,
365,
16186,
82,
6842,
30,
272,
273,
296,
4635,
1067,
29087,
9275,
87,
15529,
87,
2506,
17105,
47,
16,
365,
16186,
82,
3870,
13,
469,
30,
272,
273,
296,
54,
4635,
3819,
9275,
87,
15529,
87,
15529,
87,
2506,
17105,
47,
16,
365,
16186,
82,
3870,
16,
365,
16186,
82,
6842,
13,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4527,
2540,
67,
2738,
67,
12,
2890,
16,
4447,
2540,
4672,
436,
8395,
5675,
8900,
11386,
30,
1660,
1122,
12270,
279,
8576,
3148,
18,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
53,
53,
16,
23,
3719,
8227,
468,
3129,
300,
4447,
2540,
11692,
7298,
2262,
29087,
434,
10782,
890,
1879,
534,
8371,
2286,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
382,
736,
6215,
12,
28,
3631,
22,
16,
23,
3719,
6647,
468,
3129,
300,
4447,
2540,
11692,
534,
4635,
3819,
434,
576,
635,
890,
16415,
1879,
2144,
10369,
12,
28,
13,
3536,
1475,
273,
4447,
2540,
12,
2890,
18,
1969,
67,
8022,
10756,
309,
365,
16186,
82,
2
] |
d[u] = [v]
|
d[u] = {v:a}
|
def rauzy_graph(self, n): r""" Returns the Rauzy graph of the factors of length n of self.
|
2fac876941614005ebb088ac2802236608f8de31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2fac876941614005ebb088ac2802236608f8de31/word.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
767,
89,
21832,
67,
4660,
12,
2890,
16,
290,
4672,
436,
8395,
2860,
326,
534,
8377,
21832,
2667,
434,
326,
14490,
434,
769,
290,
434,
365,
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
] |
pilfilter = 0
|
pilfilter = PIL.Image.NEAREST
|
def scale(self,data,w,h): """ scale image (with material from ImageTag_Hotfix)""" #make sure we have valid int's keys = {'height':int(h), 'width':int(w)}
|
cbbe1b99524b56d21cfaf3809b9eb1252d3ea8a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/cbbe1b99524b56d21cfaf3809b9eb1252d3ea8a2/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
892,
16,
91,
16,
76,
4672,
3536,
3159,
1316,
261,
1918,
9390,
628,
3421,
1805,
67,
25270,
904,
15574,
468,
6540,
3071,
732,
1240,
923,
509,
1807,
1311,
273,
13666,
4210,
4278,
474,
12,
76,
3631,
296,
2819,
4278,
474,
12,
91,
16869,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
892,
16,
91,
16,
76,
4672,
3536,
3159,
1316,
261,
1918,
9390,
628,
3421,
1805,
67,
25270,
904,
15574,
468,
6540,
3071,
732,
1240,
923,
509,
1807,
1311,
273,
13666,
4210,
4278,
474,
12,
76,
3631,
296,
2819,
4278,
474,
12,
91,
16869,
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
] |
gst.debug('getting features for plugin %s' % plugin.get_name())
|
def output_plugin(plugin, indent=0): print "PLUGIN", plugin.get_name() version = plugin.get_version() elements = {} gst.debug('getting features for plugin %s' % plugin.get_name()) for feature in plugin.get_feature_list(): if isinstance(feature, gst.ElementFactory): elements[feature.get_name()] = feature gst.debug("got features") elementsoutput = [] keys = elements.keys() keys.sort() for name in keys: feature = elements[name] elementsoutput.append(output_element_factory(feature, indent + 2)) filename = plugin.get_filename() basename = filename if basename: basename = os.path.basename(basename) d = { 'name': xmlencode(plugin.get_name()), 'description': xmlencode(plugin.get_description()), 'filename': filename, 'basename': basename, 'version': version, 'license': xmlencode(plugin.get_license()), 'package': xmlencode(plugin.get_package()), 'origin': xmlencode(plugin.get_origin()), 'elements': "\n".join(elementsoutput), } block = PLUGIN_TEMPLATE % d offset = get_offset(indent) return offset + ("\n" + offset).join(block.split("\n"))
|
c14ef33a0707f6bb6ff1456696c14446178e182b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1022/c14ef33a0707f6bb6ff1456696c14446178e182b/gst-xmlinspect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
4094,
12,
4094,
16,
3504,
33,
20,
4672,
1172,
315,
19415,
3113,
1909,
18,
588,
67,
529,
1435,
1177,
273,
1909,
18,
588,
67,
1589,
1435,
225,
2186,
273,
2618,
225,
364,
2572,
316,
1909,
18,
588,
67,
7238,
67,
1098,
13332,
309,
1549,
12,
7238,
16,
314,
334,
18,
1046,
1733,
4672,
2186,
63,
7238,
18,
588,
67,
529,
1435,
65,
273,
2572,
314,
334,
18,
4148,
2932,
13212,
4467,
7923,
225,
2186,
2844,
273,
5378,
1311,
273,
2186,
18,
2452,
1435,
1311,
18,
3804,
1435,
364,
508,
316,
1311,
30,
2572,
273,
2186,
63,
529,
65,
2186,
2844,
18,
6923,
12,
2844,
67,
2956,
67,
6848,
12,
7238,
16,
3504,
397,
576,
3719,
225,
1544,
273,
1909,
18,
588,
67,
3459,
1435,
4882,
273,
1544,
309,
4882,
30,
4882,
273,
1140,
18,
803,
18,
13909,
12,
13909,
13,
302,
273,
288,
296,
529,
4278,
3639,
2025,
3015,
12,
4094,
18,
588,
67,
529,
1435,
3631,
296,
3384,
4278,
2025,
3015,
12,
4094,
18,
588,
67,
3384,
1435,
3631,
296,
3459,
4278,
565,
1544,
16,
296,
13909,
4278,
565,
4882,
16,
296,
1589,
4278,
377,
1177,
16,
296,
12687,
4278,
377,
2025,
3015,
12,
4094,
18,
588,
67,
12687,
1435,
3631,
296,
5610,
4278,
377,
2025,
3015,
12,
4094,
18,
588,
67,
5610,
1435,
3631,
296,
10012,
4278,
1377,
2025,
3015,
12,
4094,
18,
588,
67,
10012,
1435,
3631,
296,
6274,
4278,
1548,
82,
9654,
5701,
12,
6274,
2844,
3631,
289,
1203,
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,
876,
67,
4094,
12,
4094,
16,
3504,
33,
20,
4672,
1172,
315,
19415,
3113,
1909,
18,
588,
67,
529,
1435,
1177,
273,
1909,
18,
588,
67,
1589,
1435,
225,
2186,
273,
2618,
225,
364,
2572,
316,
1909,
18,
588,
67,
7238,
67,
1098,
13332,
309,
1549,
12,
7238,
16,
314,
334,
18,
1046,
1733,
4672,
2186,
63,
7238,
18,
588,
67,
529,
1435,
65,
273,
2572,
314,
334,
18,
4148,
2932,
13212,
4467,
7923,
225,
2186,
2844,
273,
5378,
1311,
273,
2186,
18,
2452,
1435,
1311,
18,
3804,
1435,
364,
508,
316,
1311,
30,
2572,
273,
2186,
63,
529,
65,
2186,
2844,
18,
6923,
12,
2844,
67,
2956,
67,
6848,
12,
7238,
16,
3504,
397,
576,
3719,
225,
2
] |
|
try: compile("1+*3", "filename", "exec") except SyntaxError, detail: if not detail.filename == "filename": raise TestFailed, "expected 'filename', got %r" % detail.filename
|
def comp_args((a, b)): return a,b self.assertEqual(comp_args((1, 2)), (1, 2))
|
exec 'def f(a, a): pass'
|
cfaee582698839a2f4c5a779f9a4b3f30c7efa67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cfaee582698839a2f4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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,
1196,
296,
536,
284,
12,
69,
16,
279,
4672,
1342,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for dict in self.dicts:
|
for i, dict in enumerate(self.dicts):
|
def drawEventMap(self): dM = self.dictMagnitude dO = self.dictOrigin if dO == {}: err = "Error: No hypocenter data!" self._write_err(err) return #toolbar.pan() #XXX self.figEventMap.canvas.widgetlock.release(toolbar) self.axEventMap = self.fig.add_subplot(111) axEM = self.axEventMap axEM.set_aspect('equal', adjustable="datalim") self.fig.subplots_adjust(bottom=0.07, top=0.95, left=0.07, right=0.98) axEM.scatter([dO['Longitude']], [dO['Latitude']], 30, color='red', marker='o') errLon, errLat = utlLonLat(dO['Longitude'], dO['Latitude'], dO['Longitude Error'], dO['Latitude Error']) errLon -= dO['Longitude'] errLat -= dO['Latitude'] ypos = 0.97 xpos = 0.03 axEM.text(xpos, ypos, '%7.3f +/- %0.2fkm\n' % \ (dO['Longitude'], dO['Longitude Error']) + \ '%7.3f +/- %0.2fkm\n' % \ (dO['Latitude'], dO['Latitude Error']) + \ ' %.1fkm +/- %.1fkm' % \ (dO['Depth'], dO['Depth Error']), va='top', ha='left', family='monospace', transform=axEM.transAxes) if 'Standarderror' in dO: axEM.text(xpos, ypos, "\n\n\n\n Residual: %.3f s" % \ dO['Standarderror'], va='top', ha='left', color=PHASE_COLORS['P'], transform=axEM.transAxes, family='monospace') if 'Magnitude' in dM and 'Uncertainty' in dM: self.netMagLabel = '\n\n\n\n\n %.2f (Var: %.2f)' % \ (dM['Magnitude'], dM['Uncertainty']) self.netMagText = axEM.text(xpos, ypos, self.netMagLabel, va='top', ha='left', transform=axEM.transAxes, color=PHASE_COLORS['Mag'], family='monospace') errorell = Ellipse(xy = [dO['Longitude'], dO['Latitude']], width=errLon, height=errLat, angle=0, fill=False) axEM.add_artist(errorell) self.scatterMagIndices = [] self.scatterMagLon = [] self.scatterMagLat = [] for dict in self.dicts: # determine which stations are used in location if 'Pres' in dict or 'Sres' in dict: stationColor = 'black' else: stationColor = 'gray' # plot stations at respective coordinates with names axEM.scatter([dict['StaLon']], [dict['StaLat']], s=300, marker='v', color='', edgecolor=stationColor) axEM.text(dict['StaLon'], dict['StaLat'], ' ' + dict['Station'], color=stationColor, va='top', family='monospace') if 'Pres' in dict: presinfo = '\n\n %+0.3fs' % dict['Pres'] if 'PPol' in dict: presinfo += ' %s' % dict['PPol'] axEM.text(dict['StaLon'], dict['StaLat'], presinfo, va='top', family='monospace', color=PHASE_COLORS['P']) if 'Sres' in dict: sresinfo = '\n\n\n %+0.3fs' % dict['Sres'] if 'SPol' in dict: sresinfo += ' %s' % dict['SPol'] axEM.text(dict['StaLon'], dict['StaLat'], sresinfo, va='top', family='monospace', color=PHASE_COLORS['S']) if 'Mag' in dict: self.scatterMagIndices.append(i) self.scatterMagLon.append(dict['StaLon']) self.scatterMagLat.append(dict['StaLat']) axEM.text(dict['StaLon'], dict['StaLat'], ' ' + dict['Station'], va='top', family='monospace') axEM.text(dict['StaLon'], dict['StaLat'], '\n\n\n\n %0.2f (%s)' % \ (dict['Mag'], dict['MagChannel']), va='top', family='monospace', color=PHASE_COLORS['Mag']) if len(self.scatterMagLon) > 0 : self.scatterMag = axEM.scatter(self.scatterMagLon, self.scatterMagLat, s=150, marker='v', color='', edgecolor='black', picker=10) axEM.set_xlabel('Longitude') axEM.set_ylabel('Latitude') time = dO['Time'] timestr = time.strftime("%Y-%m-%d %H:%M:%S") timestr += ".%02d" % (time.microsecond / 1e4 + 0.5) axEM.set_title(timestr) #####XXX disabled because it plots the wrong info if the event was ##### fetched from seishub #####lines = open(PROGRAMS['3dloc']['files']['out']).readlines() #####infoEvent = lines[0].rstrip() #####infoPicks = '' #####for line in lines[1:]: ##### infoPicks += line #####axEM.text(0.02, 0.95, infoEvent, transform = axEM.transAxes, ##### fontsize = 12, verticalalignment = 'top', ##### family = 'monospace') #####axEM.text(0.02, 0.90, infoPicks, transform = axEM.transAxes, ##### fontsize = 10, verticalalignment = 'top', ##### family = 'monospace') # save id to disconnect when switching back to stream dislay self.eventMapPickEvent = self.canv.mpl_connect('pick_event', self.selectMagnitudes) try: self.scatterMag.set_facecolors(self.eventMapColors) except: pass
|
2c1327481790c538265f81ea04dd0d01b722fbfc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/2c1327481790c538265f81ea04dd0d01b722fbfc/obspyck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1133,
863,
12,
2890,
4672,
302,
49,
273,
365,
18,
1576,
11372,
10754,
302,
51,
273,
365,
18,
1576,
7571,
309,
302,
51,
422,
16648,
393,
273,
315,
668,
30,
2631,
16117,
504,
2328,
501,
4442,
365,
6315,
2626,
67,
370,
12,
370,
13,
327,
468,
18849,
18,
7355,
1435,
468,
15639,
365,
18,
470,
1133,
863,
18,
15424,
18,
6587,
739,
18,
9340,
12,
18849,
13,
365,
18,
651,
1133,
863,
273,
365,
18,
470,
18,
1289,
67,
24523,
12,
20227,
13,
1740,
3375,
273,
365,
18,
651,
1133,
863,
1740,
3375,
18,
542,
67,
23579,
2668,
9729,
2187,
5765,
429,
1546,
72,
3145,
381,
7923,
365,
18,
470,
18,
1717,
13214,
67,
13362,
12,
9176,
33,
20,
18,
8642,
16,
1760,
33,
20,
18,
8778,
16,
2002,
33,
20,
18,
8642,
16,
2145,
33,
20,
18,
10689,
13,
1740,
3375,
18,
31320,
3816,
72,
51,
3292,
20179,
3546,
6487,
306,
72,
51,
3292,
16890,
3546,
6487,
5196,
16,
2036,
2218,
1118,
2187,
5373,
2218,
83,
6134,
393,
15927,
16,
393,
6607,
273,
5218,
80,
15927,
6607,
12,
72,
51,
3292,
20179,
17337,
302,
51,
3292,
16890,
17337,
302,
51,
3292,
20179,
1068,
17337,
302,
51,
3292,
16890,
1068,
19486,
393,
15927,
3947,
302,
51,
3292,
20179,
3546,
393,
6607,
3947,
302,
51,
3292,
16890,
3546,
30968,
273,
374,
18,
10580,
30031,
273,
374,
18,
4630,
1740,
3375,
18,
955,
12,
92,
917,
16,
30968,
16,
1995,
27,
18,
23,
74,
397,
19,
17,
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,
3724,
1133,
863,
12,
2890,
4672,
302,
49,
273,
365,
18,
1576,
11372,
10754,
302,
51,
273,
365,
18,
1576,
7571,
309,
302,
51,
422,
16648,
393,
273,
315,
668,
30,
2631,
16117,
504,
2328,
501,
4442,
365,
6315,
2626,
67,
370,
12,
370,
13,
327,
468,
18849,
18,
7355,
1435,
468,
15639,
365,
18,
470,
1133,
863,
18,
15424,
18,
6587,
739,
18,
9340,
12,
18849,
13,
365,
18,
651,
1133,
863,
273,
365,
18,
470,
18,
1289,
67,
24523,
12,
20227,
13,
1740,
3375,
273,
365,
18,
651,
1133,
863,
1740,
3375,
18,
542,
67,
23579,
2668,
9729,
2187,
5765,
429,
1546,
72,
3145,
381,
7923,
365,
18,
470,
18,
1717,
13214,
67,
13362,
12,
9176,
2
] |
bitesized_keyword='easy')
|
bitesized_keyword='easy', bug_project_name_format='{project}')
|
def __init__(self): TracBugTracker.__init__(self, project_name='I2P', base_url='http://trac.i2p2.de/', bitesized_keyword='easy') # Unconfirmed, there were no such bugs at the time
|
492ed0e9fe59cd560a17e8afa9f302c46097de7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/492ed0e9fe59cd560a17e8afa9f302c46097de7b/trac_instances.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2197,
71,
19865,
8135,
16186,
2738,
972,
12,
2890,
16,
1984,
67,
529,
2218,
45,
22,
52,
2187,
1026,
67,
718,
2218,
2505,
2207,
313,
1077,
18,
77,
22,
84,
22,
18,
323,
19,
2187,
2831,
281,
1235,
67,
11041,
2218,
73,
15762,
2187,
7934,
67,
4406,
67,
529,
67,
2139,
2218,
95,
4406,
1713,
13,
468,
1351,
21606,
16,
1915,
4591,
1158,
4123,
22398,
622,
326,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
4672,
2197,
71,
19865,
8135,
16186,
2738,
972,
12,
2890,
16,
1984,
67,
529,
2218,
45,
22,
52,
2187,
1026,
67,
718,
2218,
2505,
2207,
313,
1077,
18,
77,
22,
84,
22,
18,
323,
19,
2187,
2831,
281,
1235,
67,
11041,
2218,
73,
15762,
2187,
7934,
67,
4406,
67,
529,
67,
2139,
2218,
95,
4406,
1713,
13,
468,
1351,
21606,
16,
1915,
4591,
1158,
4123,
22398,
622,
326,
813,
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
] |
elif column in ['time', 'date','changetime', 'created', 'modified']:
|
elif column in ('time', 'date','changetime', 'created', 'modified'):
|
def _render_view(self, req, db, id): """ uses a user specified sql query to extract some information from the database and presents it as a html table. """ actions = {'create': 'REPORT_CREATE', 'delete': 'REPORT_DELETE', 'modify': 'REPORT_MODIFY'} for action in [k for k,v in actions.items() if req.perm.has_permission(v)]: req.hdf['report.can_' + action] = True req.hdf['report.href'] = self.env.href.report(id)
|
2a745aa87936e1e869b815421da626d392098904 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/2a745aa87936e1e869b815421da626d392098904/report.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
612,
4672,
3536,
4692,
279,
729,
1269,
1847,
843,
358,
2608,
2690,
1779,
628,
326,
2063,
471,
3430,
87,
518,
487,
279,
1729,
1014,
18,
3536,
4209,
273,
13666,
2640,
4278,
296,
22710,
67,
9344,
2187,
296,
3733,
4278,
296,
22710,
67,
6460,
2187,
296,
17042,
4278,
296,
22710,
67,
6720,
12096,
11,
97,
364,
1301,
316,
306,
79,
364,
417,
16,
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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,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
612,
4672,
3536,
4692,
279,
729,
1269,
1847,
843,
358,
2608,
2690,
1779,
628,
326,
2063,
471,
3430,
87,
518,
487,
279,
1729,
1014,
18,
3536,
4209,
273,
13666,
2640,
4278,
296,
22710,
67,
9344,
2187,
296,
3733,
4278,
296,
22710,
67,
6460,
2187,
296,
17042,
4278,
296,
22710,
67,
6720,
12096,
11,
97,
364,
1301,
316,
306,
79,
364,
417,
16,
90,
316,
4209,
18,
3319,
1435,
309,
1111,
18,
12160,
18,
5332,
67,
9827,
12,
90,
13,
14542,
1111,
18,
26428,
3292,
6006,
18,
4169,
4623,
397,
1301,
65,
273,
1053,
1111,
18,
26428,
3292,
6006,
18,
7547,
3546,
273,
365,
18,
3074,
18,
7547,
2
] |
page=wikipedia.Page(wikipedia.mylang,pagetitle)
|
page=wikipedia.Page(wikipedia.getSite(),pagetitle)
|
def asktoadd(pl): ctoshow = 500 print print("==%s==")%pl.title() while 1: answer = raw_input("y(es)/n(o)/i(gnore)/(o)ther options? ") if answer=='y': include(pl) break if answer=='c': include(pl,realinclude=False) break if answer=='z': if pl.exists(): if not pl.isRedirectPage(): linkterm = wikipedia.input(u"In what manner should it be alphabetized?") include(pl,linkterm=linkterm) break include(pl) break elif answer=='n': exclude(pl) break elif answer=='i': exclude(pl,real_exclude=False) break elif answer=='o': print("t: Give the beginning of the text of the page") print("z: Add under another title (as [[Category|Title]])") print("x: Add the page, but do not check links to and from it") print("c: Do not add the page, but do check links") print("a: Add another page") print("l: Give a list of the pages to check") elif answer=='a': pagetitle = raw_input("Specify page to add:") page=wikipedia.Page(wikipedia.mylang,pagetitle) if not page in checked.keys(): include(page) elif answer=='x': if pl.exists(): if pl.isRedirectPage(): print("Redirect page. Will be included normally.") pl2=wikipedia.Page(mysite,pl.getRedirectTarget()) checkprepare(pl2) else: include(pl,checklinks=False) else: print("Page does not exist; not added.") exclude(pl,real_exclude=False) break elif answer=='l': print("Number of pages still to check: %s")%len(tocheck) print("Pages to be checked:") print tocheck print("==%s==")%pl.title() elif answer=='t': print("==%s==")%pl.title() try: wikipedia.output(pl.get(get_redirect=True)[0:ctoshow]) except wikipedia.NoPage: print "Page does not exist." ctoshow += 500 else: print("Not understood.")
|
9b56e21b52260247fd79970eba6055a2da3ce295 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/9b56e21b52260247fd79970eba6055a2da3ce295/makecat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
869,
1289,
12,
412,
4672,
5691,
538,
13606,
273,
6604,
1172,
1172,
2932,
631,
9,
87,
631,
7923,
9,
412,
18,
2649,
1435,
1323,
404,
30,
5803,
273,
1831,
67,
2630,
2932,
93,
12,
281,
13176,
82,
12,
83,
13176,
77,
12,
1732,
13176,
12,
83,
13,
1136,
702,
35,
9369,
309,
5803,
18920,
93,
4278,
2341,
12,
412,
13,
898,
309,
5803,
18920,
71,
4278,
2341,
12,
412,
16,
7688,
6702,
33,
8381,
13,
898,
309,
5803,
18920,
94,
4278,
309,
886,
18,
1808,
13332,
309,
486,
886,
18,
291,
5961,
1964,
13332,
1692,
6408,
273,
21137,
18,
2630,
12,
89,
6,
382,
4121,
21296,
1410,
518,
506,
10877,
1235,
7225,
13,
2341,
12,
412,
16,
1232,
6408,
33,
1232,
6408,
13,
898,
2341,
12,
412,
13,
898,
1327,
5803,
18920,
82,
4278,
4433,
12,
412,
13,
898,
1327,
5803,
18920,
77,
4278,
4433,
12,
412,
16,
7688,
67,
10157,
33,
8381,
13,
898,
1327,
5803,
18920,
83,
4278,
1172,
2932,
88,
30,
22374,
326,
8435,
434,
326,
977,
434,
326,
1363,
7923,
1172,
2932,
94,
30,
1436,
3613,
4042,
2077,
261,
345,
12167,
4457,
96,
4247,
13563,
2225,
13,
1172,
2932,
92,
30,
1436,
326,
1363,
16,
1496,
741,
486,
866,
4716,
358,
471,
628,
518,
7923,
1172,
2932,
71,
30,
2256,
486,
527,
326,
1363,
16,
1496,
741,
866,
4716,
7923,
1172,
2932,
69,
30,
1436,
4042,
1363,
7923,
1172,
2932,
80,
30,
22374,
279,
666,
434,
326,
4689,
358,
866,
7923,
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,
6827,
869,
1289,
12,
412,
4672,
5691,
538,
13606,
273,
6604,
1172,
1172,
2932,
631,
9,
87,
631,
7923,
9,
412,
18,
2649,
1435,
1323,
404,
30,
5803,
273,
1831,
67,
2630,
2932,
93,
12,
281,
13176,
82,
12,
83,
13176,
77,
12,
1732,
13176,
12,
83,
13,
1136,
702,
35,
9369,
309,
5803,
18920,
93,
4278,
2341,
12,
412,
13,
898,
309,
5803,
18920,
71,
4278,
2341,
12,
412,
16,
7688,
6702,
33,
8381,
13,
898,
309,
5803,
18920,
94,
4278,
309,
886,
18,
1808,
13332,
309,
486,
886,
18,
291,
5961,
1964,
13332,
1692,
6408,
273,
21137,
18,
2630,
12,
89,
6,
382,
4121,
21296,
1410,
518,
506,
10877,
1235,
7225,
13,
2341,
12,
412,
16,
2
] |
return self._attrsNS[(namespaceURI, localName)]
|
return self._attrsNS.get((namespaceURI, localName))
|
def getAttributeNodeNS(self, namespaceURI, localName): return self._attrsNS[(namespaceURI, localName)]
|
9e1fe1ec675386a4be12471a8b785a385d326316 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9e1fe1ec675386a4be12471a8b785a385d326316/minidom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
907,
3156,
12,
2890,
16,
19421,
16,
11927,
4672,
327,
365,
6315,
7039,
3156,
63,
12,
4937,
3098,
16,
11927,
25887,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
907,
3156,
12,
2890,
16,
19421,
16,
11927,
4672,
327,
365,
6315,
7039,
3156,
63,
12,
4937,
3098,
16,
11927,
25887,
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.write(cr, uid, ids, {'state': 'running'}) return True
|
if not has_start and not has_signal_without_from: raise osv.except_osv(_("Error"), _("The campaign hasn't any starting activity nor any activity with a signal and no previous activity.")) return self.write(cr, uid, ids, {'state': 'running'})
|
def state_running_set(self, cr, uid, ids, *args): # TODO check that all subcampaigns are running campaign = self.browse(cr, uid, ids[0]) if not campaign.activity_ids : raise osv.except_osv("Error", "There is no activitity in the campaign") activity_ids = [ act_id.id for act_id in campaign.activity_ids] if not activity_ids: raise osv.except_osv(_("Error"), _("The campaign cannot be started : there are no activities in it")) act_obj = self.pool.get('marketing.campaign.activity') act_ids = act_obj.search(cr, uid, [('id', 'in', activity_ids), ('type', '=', 'email')]) for activity in act_obj.browse(cr, uid, act_ids): if not activity.email_template_id.enforce_from_account : raise osv.except_osv(_("Error"), _("The campaign cannot be started: an email account is missing in the email activity '%s'")%activity.name) if activity.email_template_id.enforce_from_account.state != 'approved' : raise osv.except_osv(_("Error"), _("The campaign cannot be started: the email account is not approved in the email activity '%s'")%activity.name) self.write(cr, uid, ids, {'state': 'running'}) return True
|
9f6839faa1900a1dc012884b012b4d0d255c1acc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9f6839faa1900a1dc012884b012b4d0d255c1acc/marketing_campaign.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
8704,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
468,
2660,
866,
716,
777,
720,
14608,
87,
854,
3549,
8965,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
309,
486,
8965,
18,
9653,
67,
2232,
294,
1002,
1140,
90,
18,
14137,
67,
538,
90,
2932,
668,
3113,
315,
9828,
353,
1158,
5981,
305,
560,
316,
326,
8965,
7923,
5728,
67,
2232,
273,
306,
1328,
67,
350,
18,
350,
364,
1328,
67,
350,
316,
8965,
18,
9653,
67,
2232,
65,
225,
309,
486,
5728,
67,
2232,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2932,
668,
6,
3631,
389,
2932,
1986,
8965,
2780,
506,
5746,
294,
1915,
854,
1158,
17259,
316,
518,
6,
3719,
225,
1328,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
3355,
21747,
18,
14608,
18,
9653,
6134,
1328,
67,
2232,
273,
1328,
67,
2603,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
350,
2187,
296,
267,
2187,
5728,
67,
2232,
3631,
7707,
723,
2187,
15196,
2187,
296,
3652,
6134,
5717,
364,
5728,
316,
1328,
67,
2603,
18,
25731,
12,
3353,
16,
4555,
16,
1328,
67,
2232,
4672,
309,
486,
5728,
18,
3652,
67,
3202,
67,
350,
18,
275,
5734,
67,
2080,
67,
4631,
294,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2932,
668,
6,
3631,
389,
2932,
1986,
8965,
2780,
506,
5746,
30,
392,
2699,
2236,
353,
3315,
316,
326,
2699,
5728,
1995,
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,
919,
67,
8704,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
468,
2660,
866,
716,
777,
720,
14608,
87,
854,
3549,
8965,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
309,
486,
8965,
18,
9653,
67,
2232,
294,
1002,
1140,
90,
18,
14137,
67,
538,
90,
2932,
668,
3113,
315,
9828,
353,
1158,
5981,
305,
560,
316,
326,
8965,
7923,
5728,
67,
2232,
273,
306,
1328,
67,
350,
18,
350,
364,
1328,
67,
350,
316,
8965,
18,
9653,
67,
2232,
65,
225,
309,
486,
5728,
67,
2232,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2932,
668,
6,
3631,
389,
2932,
1986,
8965,
2780,
506,
2
] |
for key, val in dict1:
|
for key, val in dict1.items():
|
def update(self, dict1): #bruce 050117 # note: unlike repeated setitem, this only opens and closes once. if _shelf: for key, val in dict1: #e (on one KeyError, should we store the rest?) #e (better, should we check all keys before storing anything?) self[key] = val #e could optimize, but at least this leaves it open else: try: _reopen() self.update(dict1) finally: _close() return
|
ec8a859d3ed011440577812b946ae82bd833326a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ec8a859d3ed011440577812b946ae82bd833326a/preferences.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
2065,
21,
4672,
468,
2848,
3965,
374,
9172,
4033,
468,
4721,
30,
640,
5625,
12533,
444,
1726,
16,
333,
1338,
10400,
471,
13445,
3647,
18,
309,
389,
674,
19079,
30,
364,
498,
16,
1244,
316,
2065,
21,
18,
3319,
13332,
468,
73,
261,
265,
1245,
4999,
16,
1410,
732,
1707,
326,
3127,
8535,
468,
73,
261,
70,
11214,
16,
1410,
732,
866,
777,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
2065,
21,
4672,
468,
2848,
3965,
374,
9172,
4033,
468,
4721,
30,
640,
5625,
12533,
444,
1726,
16,
333,
1338,
10400,
471,
13445,
3647,
18,
309,
389,
674,
19079,
30,
364,
498,
16,
1244,
316,
2065,
21,
18,
3319,
13332,
468,
73,
261,
265,
1245,
4999,
16,
1410,
732,
1707,
326,
3127,
8535,
468,
73,
261,
70,
11214,
16,
1410,
732,
866,
777,
1311,
1865,
15729,
6967,
8535,
365,
63,
856,
65,
273,
1244,
468,
73,
3377,
10979,
16,
1496,
622,
4520,
333,
15559,
518,
1696,
469,
30,
775,
30,
389,
266,
3190,
1435,
365,
18,
2725,
12,
1576,
21,
13,
3095,
30,
389,
4412,
1435,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.goodrevs = self.opener(self.good_path).read().splitlines() self.goodrevs = [hg.bin(x) for x in self.goodrevs]
|
self.goodnodes = self.opener(self.good_path).read().splitlines() self.goodnodes = [hg.bin(x) for x in self.goodnodes]
|
def __init__(self, ui, repo): self.repo = repo self.path = repo.join("bisect") self.opener = util.opener(self.path) self.ui = ui self.goodrevs = [] self.badrev = None self.good_path = "good" self.bad_path = "bad" self.is_reset = False
|
6919e042e934d02082016dfb73d7ed6ccac1b5b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/6919e042e934d02082016dfb73d7ed6ccac1b5b5/hbisect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
16,
3538,
4672,
365,
18,
7422,
273,
3538,
365,
18,
803,
273,
3538,
18,
5701,
2932,
70,
291,
386,
7923,
365,
18,
25098,
273,
1709,
18,
25098,
12,
2890,
18,
803,
13,
365,
18,
4881,
273,
5915,
365,
18,
19747,
266,
6904,
273,
5378,
365,
18,
8759,
9083,
273,
599,
365,
18,
19747,
67,
803,
273,
315,
19747,
6,
365,
18,
8759,
67,
803,
273,
315,
8759,
6,
365,
18,
291,
67,
6208,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
16,
3538,
4672,
365,
18,
7422,
273,
3538,
365,
18,
803,
273,
3538,
18,
5701,
2932,
70,
291,
386,
7923,
365,
18,
25098,
273,
1709,
18,
25098,
12,
2890,
18,
803,
13,
365,
18,
4881,
273,
5915,
365,
18,
19747,
266,
6904,
273,
5378,
365,
18,
8759,
9083,
273,
599,
365,
18,
19747,
67,
803,
273,
315,
19747,
6,
365,
18,
8759,
67,
803,
273,
315,
8759,
6,
365,
18,
291,
67,
6208,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.issue(SELECTION) def Update(self): pass
|
def position(self): if self.var_position.get()=='Аbsolute' and self.var_basepoint.get()=='USER': self.var_basepoint.set('C') self.Update()
|
def init_from_doc(self, *arg): self.Update() self.issue(SELECTION)
|
87283f38a0f6a4d331e6c9a23a665163b188fb52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/87283f38a0f6a4d331e6c9a23a665163b188fb52/move_plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
2080,
67,
2434,
12,
2890,
16,
380,
3175,
4672,
365,
18,
1891,
1435,
365,
18,
13882,
12,
1090,
15445,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
67,
2080,
67,
2434,
12,
2890,
16,
380,
3175,
4672,
365,
18,
1891,
1435,
365,
18,
13882,
12,
1090,
15445,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
8
|
4
|
def rank(self): """ Return the rank of the underlying lattice of self.
|
83d03c9b2d797a52ad4e3f2fe47728d1f93f64bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/83d03c9b2d797a52ad4e3f2fe47728d1f93f64bc/abvar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
4672,
3536,
2000,
326,
6171,
434,
326,
6808,
16690,
434,
365,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if isinstance(v, type):
|
if isinstance(v, (type, types.ClassType)):
|
def modify_for_nested_pickle(cls, name_prefix, module): r""" Modify the subclasses of the given class to be picklable, by giving them a mangled name and putting the mangled name in the module namespace. INPUTS: - ``cls`` - The class to modify. - ``name_prefix`` - The prefix to prepend to the class name. - ``module`` - The module object to modify with the mangled name. EXAMPLES:: sage: from sage.misc.misc import * sage: class A(object): ... class B(object): ... pass ... sage: module = sys.modules['__main__'] sage: A.B.__name__ 'B' sage: getattr(module, 'A.B', 'Not found') 'Not found' sage: modify_for_nested_pickle(A, 'A', sys.modules['__main__']) sage: A.B.__name__ 'A.B' sage: getattr(module, 'A.B', 'Not found') <class '__main__.A.B'> """ for (name, v) in cls.__dict__.iteritems(): if isinstance(v, type): if v.__name__ == name and v.__module__ == module.__name__ and getattr(module, name, None) is not v: # OK, probably this is a nested class. dotted_name = name_prefix + '.' + name v.__name__ = dotted_name setattr(module, dotted_name, v) modify_for_nested_pickle(v, dotted_name, module)
|
ac86f61b865afdf705efb925a67ef2bd7532736b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ac86f61b865afdf705efb925a67ef2bd7532736b/misc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
67,
1884,
67,
12985,
67,
20847,
12,
6429,
16,
508,
67,
3239,
16,
1605,
4672,
436,
8395,
9518,
326,
15320,
434,
326,
864,
667,
358,
506,
6002,
80,
429,
16,
635,
21057,
2182,
279,
29674,
1259,
508,
471,
29379,
326,
29674,
1259,
508,
316,
326,
1605,
1981,
18,
225,
12943,
55,
30,
225,
300,
12176,
6429,
10335,
300,
1021,
667,
358,
5612,
18,
225,
300,
12176,
529,
67,
3239,
10335,
300,
1021,
1633,
358,
8254,
358,
326,
667,
508,
18,
225,
300,
12176,
2978,
10335,
300,
1021,
1605,
733,
358,
5612,
598,
326,
29674,
1259,
508,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
23667,
1930,
380,
272,
410,
30,
667,
432,
12,
1612,
4672,
1372,
4202,
667,
605,
12,
1612,
4672,
1372,
6647,
1342,
1372,
272,
410,
30,
1605,
273,
2589,
18,
6400,
3292,
972,
5254,
972,
3546,
272,
410,
30,
432,
18,
38,
16186,
529,
972,
296,
38,
11,
272,
410,
30,
3869,
12,
2978,
16,
296,
37,
18,
38,
2187,
296,
1248,
1392,
6134,
296,
1248,
1392,
11,
272,
410,
30,
5612,
67,
1884,
67,
12985,
67,
20847,
12,
37,
16,
296,
37,
2187,
2589,
18,
6400,
3292,
972,
5254,
972,
19486,
272,
410,
30,
432,
18,
38,
16186,
529,
972,
296,
37,
18,
38,
11,
272,
410,
30,
3869,
12,
2978,
16,
296,
37,
18,
38,
2187,
296,
1248,
1392,
6134,
411,
1106,
4940,
5254,
25648,
37,
18,
38,
29256,
3536,
225,
364,
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,
5612,
67,
1884,
67,
12985,
67,
20847,
12,
6429,
16,
508,
67,
3239,
16,
1605,
4672,
436,
8395,
9518,
326,
15320,
434,
326,
864,
667,
358,
506,
6002,
80,
429,
16,
635,
21057,
2182,
279,
29674,
1259,
508,
471,
29379,
326,
29674,
1259,
508,
316,
326,
1605,
1981,
18,
225,
12943,
55,
30,
225,
300,
12176,
6429,
10335,
300,
1021,
667,
358,
5612,
18,
225,
300,
12176,
529,
67,
3239,
10335,
300,
1021,
1633,
358,
8254,
358,
326,
667,
508,
18,
225,
300,
12176,
2978,
10335,
300,
1021,
1605,
733,
358,
5612,
598,
326,
29674,
1259,
508,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
23667,
1930,
380,
272,
410,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.