rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
sage: S == loads(dumps(S)) True
|
sage: TestSuite(S).run()
|
def __init__(self, s, k): """ TESTS:: sage: S = Subsets(3,2) sage: S == loads(dumps(S)) True sage: s = Subsets(Set([1])) sage: e = s.first() sage: isinstance(e, s.element_class) True """ self.s = Set(s) self.k = k
|
6dd43e2ae3a87c0f3bc63b742b30474be0cdba0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6dd43e2ae3a87c0f3bc63b742b30474be0cdba0f/subset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
16,
417,
4672,
3536,
22130,
55,
2866,
225,
272,
410,
30,
348,
273,
2592,
4424,
12,
23,
16,
22,
13,
272,
410,
30,
7766,
13587,
12,
55,
2934,
2681,
1435,
272,
410,
30,
272,
273,
2592,
4424,
12,
694,
3816,
21,
22643,
272,
410,
30,
425,
273,
272,
18,
3645,
1435,
272,
410,
30,
1549,
12,
73,
16,
272,
18,
2956,
67,
1106,
13,
1053,
3536,
365,
18,
87,
273,
1000,
12,
87,
13,
365,
18,
79,
273,
417,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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766,
13587,
12,
55,
2934,
2681,
1435,
272,
410,
30,
272,
273,
2592,
4424,
12,
694,
3816,
21,
22643,
272,
410,
30,
425,
273,
272,
18,
3645,
1435,
272,
410,
30,
1549,
12,
73,
16,
272,
18,
2956,
67,
1106,
13,
1053,
3536,
365,
18,
87,
273,
1000,
12,
87,
13,
365,
18,
79,
273,
417,
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
] |
one = theano._asarray(1, dtype=out_type.dtype)
|
out_dtype = out_type.dtype one = theano._asarray(1, dtype=out_dtype)
|
def mul_calculate(num, denum, aslist=False, out_type=None): if not num and not denum: # Smallest 1 possible. if aslist: return [] else: return N.int8(1) #return [] if aslist else N.int8(1) # Make sure we do not accidently upcast data types. if out_type is None: # TODO: remove this error-causing heuristic if num: first = num[0] else: first = denum[0] #first = num[0] if num else denum[0] one = N.asarray(first).dtype.type(1) else: one = theano._asarray(1, dtype=out_type.dtype) v = reduce(N.multiply, num, one) / reduce(N.multiply, denum, one) if aslist: if N.all(v == 1): return [] else: return [v] return v
|
90c455096498fd6610278a82e2f755e37d7030b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/90c455096498fd6610278a82e2f755e37d7030b4/opt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14064,
67,
11162,
12,
2107,
16,
5545,
379,
16,
487,
1098,
33,
8381,
16,
596,
67,
723,
33,
7036,
4672,
309,
486,
818,
471,
486,
5545,
379,
30,
468,
9425,
454,
395,
404,
3323,
18,
309,
487,
1098,
30,
327,
5378,
469,
30,
327,
423,
18,
474,
28,
12,
21,
13,
225,
468,
2463,
5378,
309,
487,
1098,
469,
423,
18,
474,
28,
12,
21,
13,
468,
4344,
3071,
732,
741,
486,
25961,
715,
731,
4155,
501,
1953,
18,
309,
596,
67,
723,
353,
599,
30,
468,
2660,
30,
1206,
333,
555,
17,
5353,
9940,
25833,
309,
818,
30,
1122,
273,
818,
63,
20,
65,
469,
30,
1122,
273,
5545,
379,
63,
20,
65,
468,
3645,
273,
818,
63,
20,
65,
309,
818,
469,
5545,
379,
63,
20,
65,
1245,
273,
423,
18,
345,
1126,
12,
3645,
2934,
8972,
18,
723,
12,
21,
13,
469,
30,
596,
67,
8972,
273,
596,
67,
723,
18,
8972,
1245,
273,
326,
31922,
6315,
345,
1126,
12,
21,
16,
3182,
33,
659,
67,
8972,
13,
225,
331,
273,
5459,
12,
50,
18,
7027,
1283,
16,
818,
16,
1245,
13,
342,
5459,
12,
50,
18,
7027,
1283,
16,
5545,
379,
16,
1245,
13,
309,
487,
1098,
30,
309,
423,
18,
454,
12,
90,
422,
404,
4672,
327,
5378,
469,
30,
327,
306,
90,
65,
327,
331,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14064,
67,
11162,
12,
2107,
16,
5545,
379,
16,
487,
1098,
33,
8381,
16,
596,
67,
723,
33,
7036,
4672,
309,
486,
818,
471,
486,
5545,
379,
30,
468,
9425,
454,
395,
404,
3323,
18,
309,
487,
1098,
30,
327,
5378,
469,
30,
327,
423,
18,
474,
28,
12,
21,
13,
225,
468,
2463,
5378,
309,
487,
1098,
469,
423,
18,
474,
28,
12,
21,
13,
468,
4344,
3071,
732,
741,
486,
25961,
715,
731,
4155,
501,
1953,
18,
309,
596,
67,
723,
353,
599,
30,
468,
2660,
30,
1206,
333,
555,
17,
5353,
9940,
25833,
309,
818,
30,
1122,
273,
818,
63,
20,
65,
469,
30,
1122,
273,
5545,
379,
63,
20,
65,
468,
3645,
273,
818,
2
] |
done = []
|
modules = [] if not opt.path: opt.path = ["."]
|
def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {}
|
1fb39798cc0f193ae4d0fbcff0534fc6832e59bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1fb39798cc0f193ae4d0fbcff0534fc6832e59bb/module_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
13117,
67,
2080,
67,
3384,
67,
768,
12,
2978,
4672,
3536,
294,
891,
1605,
30,
1021,
508,
434,
326,
1605,
261,
87,
5349,
16,
23701,
16,
1372,
13,
3536,
364,
1544,
316,
10228,
972,
25098,
84,
25648,
2074,
2187,
4940,
387,
84,
25648,
2074,
3546,
30,
2477,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2978,
16,
1544,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
3384,
67,
768,
4672,
327,
5302,
12,
768,
12,
3384,
67,
768,
2934,
896,
10756,
225,
327,
2618,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
13117,
67,
2080,
67,
3384,
67,
768,
12,
2978,
4672,
3536,
294,
891,
1605,
30,
1021,
508,
434,
326,
1605,
261,
87,
5349,
16,
23701,
16,
1372,
13,
3536,
364,
1544,
316,
10228,
972,
25098,
84,
25648,
2074,
2187,
4940,
387,
84,
25648,
2074,
3546,
30,
2477,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2978,
16,
1544,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
3384,
67,
768,
4672,
327,
5302,
12,
768,
12,
3384,
67,
768,
2934,
896,
10756,
225,
327,
2618,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for handler in self: if handler.resource.get_mtime() is not None: handler.save()
|
try: for handler in self: if handler.resource.get_mtime() is not None: handler.save() except: self.rollback() raise self.clear()
|
def commit(self): # Event: before commit for handler in list(self): if hasattr(handler, 'before_commit'): handler.before_commit()
|
bc7438f927f8166c7b5b1b7104305931f1f89b58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/bc7438f927f8166c7b5b1b7104305931f1f89b58/transactions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
4672,
468,
2587,
30,
1865,
3294,
364,
1838,
316,
666,
12,
2890,
4672,
309,
3859,
12,
4176,
16,
296,
5771,
67,
7371,
11,
4672,
1838,
18,
5771,
67,
7371,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3294,
12,
2890,
4672,
468,
2587,
30,
1865,
3294,
364,
1838,
316,
666,
12,
2890,
4672,
309,
3859,
12,
4176,
16,
296,
5771,
67,
7371,
11,
4672,
1838,
18,
5771,
67,
7371,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage.ext.sig.get_bad_sigs()
|
def my_sigfpe(x, n): sage.ext.sig.get_bad_sigs() raise RuntimeError, "A floating point exception occured."
|
c9e7a8fa29c41dff82f9568f58e31d8021d2b6be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c9e7a8fa29c41dff82f9568f58e31d8021d2b6be/get_sigs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
74,
347,
12,
92,
16,
290,
4672,
1002,
7265,
16,
315,
37,
13861,
1634,
1520,
16206,
1199,
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,
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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
] |
|
)
|
).all()
|
def id(self, collectionId): '''Return a page with information on a particular Collection ''' try: collectionId = int(collectionId) except ValueError: error = dict(status = False, title = self.appTitle + ' -- Invalid Collection Id', message = 'The collectionId you were linked to is not a' \ ' valid id. If you received this error from a' \ ' link on the fedoraproject.org website, please' \ ' report it.') if not ('tg_format' in request.params and request.params['tg_format'] == 'json'): error['tg_template'] = 'pkgdb.templates.errors' return error
|
ce4f49ecf1367a9a8cb2edc18256cbad76da4d1a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/ce4f49ecf1367a9a8cb2edc18256cbad76da4d1a/collections.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
16,
1849,
548,
4672,
9163,
990,
279,
1363,
598,
1779,
603,
279,
6826,
2200,
9163,
775,
30,
1849,
548,
273,
509,
12,
5548,
548,
2934,
454,
1435,
1335,
2068,
30,
555,
273,
2065,
12,
2327,
273,
1083,
16,
2077,
273,
365,
18,
2910,
4247,
397,
296,
1493,
1962,
2200,
3124,
2187,
883,
273,
296,
1986,
1849,
548,
1846,
4591,
8459,
358,
353,
486,
279,
11,
521,
296,
923,
612,
18,
225,
971,
1846,
5079,
333,
555,
628,
279,
11,
521,
296,
1692,
603,
326,
22572,
280,
438,
28290,
18,
3341,
12504,
16,
9582,
11,
521,
296,
2605,
518,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
16,
1849,
548,
4672,
9163,
990,
279,
1363,
598,
1779,
603,
279,
6826,
2200,
9163,
775,
30,
1849,
548,
273,
509,
12,
5548,
548,
2934,
454,
1435,
1335,
2068,
30,
555,
273,
2065,
12,
2327,
273,
1083,
16,
2077,
273,
365,
18,
2910,
4247,
397,
296,
1493,
1962,
2200,
3124,
2187,
883,
273,
296,
1986,
1849,
548,
1846,
4591,
8459,
358,
353,
486,
279,
11,
521,
296,
923,
612,
18,
225,
971,
1846,
5079,
333,
555,
628,
279,
11,
521,
296,
1692,
603,
326,
22572,
280,
438,
28290,
18,
3341,
12504,
16,
9582,
11,
521,
296,
2605,
518,
1093,
2934,
454,
1435,
309,
486,
7707,
88,
75,
67,
2139,
11,
316,
590,
18,
2010,
471,
2
] |
self.abortResponse(1, _('Constraint Error'), 'warning', _(self._sql_error[key]))
|
self.abortResponse(1, _('Constraint Error'), 'warning', tr(self._sql_error[key], 'sql_constraint'))
|
def wrapper(self, dbname, *args, **kwargs): try: if not pooler.get_pool(dbname)._ready: raise except_osv('Database not ready', 'Currently, this database is not fully loaded and can not be used.') return f(self, dbname, *args, **kwargs) except orm.except_orm, inst: if inst.name == 'AccessError': self.logger.debug("AccessError", exc_info=True) self.abortResponse(1, inst.name, 'warning', inst.value) except except_osv, inst: self.abortResponse(1, inst.name, inst.exc_type, inst.value) except IntegrityError, inst: for key in self._sql_error.keys(): if key in inst[0]: self.abortResponse(1, _('Constraint Error'), 'warning', _(self._sql_error[key])) if inst.pgcode in (errorcodes.NOT_NULL_VIOLATION, errorcodes.FOREIGN_KEY_VIOLATION, errorcodes.RESTRICT_VIOLATION): msg = _('The operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set') self.logger.debug("IntegrityError", exc_info=True) try: errortxt = inst.pgerror.replace('«','"').replace('»','"') if '"public".' in errortxt: context = errortxt.split('"public".')[1] model_name = table = context.split('"')[1] else: last_quote_end = errortxt.rfind('"') last_quote_begin = errortxt.rfind('"', 0, last_quote_end) model_name = table = errortxt[last_quote_begin+1:last_quote_end].strip() print "MODEL", last_quote_begin, last_quote_end, model_name model = table.replace("_",".") model_obj = self.get(model) if model_obj: model_name = model_obj._description or model_obj._name msg += _('\n\n[object with reference: %s - %s]') % (model_name, model) except Exception: pass self.abortResponse(1, _('Integrity Error'), 'warning', msg) else: self.abortResponse(1, _('Integrity Error'), 'warning', inst[0]) except Exception, e: self.logger.exception("Uncaught exception") raise
|
d0dee320199662492c3779deef06c412238eec73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d0dee320199662492c3779deef06c412238eec73/osv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
16,
18448,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
309,
486,
2845,
264,
18,
588,
67,
6011,
12,
20979,
2934,
67,
1672,
30,
1002,
1335,
67,
538,
90,
2668,
4254,
486,
5695,
2187,
296,
3935,
715,
16,
333,
2063,
353,
486,
7418,
4203,
471,
848,
486,
506,
1399,
1093,
13,
327,
284,
12,
2890,
16,
18448,
16,
380,
1968,
16,
2826,
4333,
13,
1335,
13969,
18,
14137,
67,
535,
16,
1804,
30,
309,
1804,
18,
529,
422,
296,
1862,
668,
4278,
365,
18,
4901,
18,
4148,
2932,
1862,
668,
3113,
3533,
67,
1376,
33,
5510,
13,
365,
18,
18623,
1064,
12,
21,
16,
1804,
18,
529,
16,
296,
8551,
2187,
1804,
18,
1132,
13,
1335,
1335,
67,
538,
90,
16,
1804,
30,
365,
18,
18623,
1064,
12,
21,
16,
1804,
18,
529,
16,
1804,
18,
10075,
67,
723,
16,
1804,
18,
1132,
13,
1335,
15285,
560,
668,
16,
1804,
30,
364,
498,
316,
365,
6315,
4669,
67,
1636,
18,
2452,
13332,
309,
498,
316,
1804,
63,
20,
14542,
365,
18,
18623,
1064,
12,
21,
16,
389,
2668,
5806,
1068,
19899,
296,
8551,
2187,
433,
12,
2890,
6315,
4669,
67,
1636,
63,
856,
6487,
296,
4669,
67,
13364,
26112,
309,
1804,
18,
8365,
710,
316,
261,
1636,
7000,
18,
4400,
67,
8560,
67,
4136,
1741,
2689,
16,
555,
7000,
18,
11701,
10452,
67,
3297,
67,
4136,
1741,
2689,
16,
555,
7000,
18,
12030,
2259,
1268,
67,
4136,
1741,
2689,
4672,
1234,
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,
4053,
12,
2890,
16,
18448,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
309,
486,
2845,
264,
18,
588,
67,
6011,
12,
20979,
2934,
67,
1672,
30,
1002,
1335,
67,
538,
90,
2668,
4254,
486,
5695,
2187,
296,
3935,
715,
16,
333,
2063,
353,
486,
7418,
4203,
471,
848,
486,
506,
1399,
1093,
13,
327,
284,
12,
2890,
16,
18448,
16,
380,
1968,
16,
2826,
4333,
13,
1335,
13969,
18,
14137,
67,
535,
16,
1804,
30,
309,
1804,
18,
529,
422,
296,
1862,
668,
4278,
365,
18,
4901,
18,
4148,
2932,
1862,
668,
3113,
3533,
67,
1376,
33,
5510,
13,
365,
18,
18623,
1064,
12,
21,
16,
1804,
18,
529,
16,
296,
8551,
2187,
1804,
18,
1132,
2
] |
class comment(Special, Invisible, PreBibliographic, TextElement): pass
|
class comment(Special, Invisible, PreBibliographic, FixedTextElement): pass
|
def astext(self): return self.get('delimiter', ' ') + TextElement.astext(self)
|
7bb8263582e31fd45f21b978e0692b20f92c3429 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/7bb8263582e31fd45f21b978e0692b20f92c3429/nodes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3364,
408,
12,
2890,
4672,
327,
365,
18,
588,
2668,
15751,
2187,
296,
8624,
397,
3867,
1046,
18,
689,
408,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3364,
408,
12,
2890,
4672,
327,
365,
18,
588,
2668,
15751,
2187,
296,
8624,
397,
3867,
1046,
18,
689,
408,
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
] |
start = stop - daysback * 86400
|
start = stop - (daysback + 1) * 86400
|
def render (self): self.perm.assert_permission(perm.TIMELINE_VIEW)
|
61f640d719225682dff5ae3e7bd7295a56ae1ab7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/61f640d719225682dff5ae3e7bd7295a56ae1ab7/Timeline.py
|
[
1,
8585,
326,
22398,
316,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
261,
2890,
4672,
365,
18,
12160,
18,
11231,
67,
9827,
12,
12160,
18,
4684,
5997,
67,
12145,
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
] |
formatted_tag_value (tag.name, tag.value)))
|
formatted_tag_value(tag.name, tag.value)))
|
def execute_tag_command(objs, db, tags, options): tags = form_tag_value_pairs(tags) actions = { 'id': db.tag_object_by_id, 'about': db.tag_object_by_about, } for obj in objs: description = describe_by_mode(obj.specifier, obj.mode) for tag in tags: o = actions[obj.mode](obj.specifier, tag.name, tag.value) if o == 0: if options.verbose: print ('Tagged object %s with %s' % (description, formatted_tag_value (tag.name, tag.value))) else: warning('Failed to tag object %s with %s' % (description, tag.name)) warning('Error code %d' % o)
|
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2692,
67,
3076,
12,
18093,
16,
1319,
16,
2342,
16,
702,
4672,
2342,
273,
646,
67,
2692,
67,
1132,
67,
11545,
12,
4156,
13,
4209,
273,
288,
296,
350,
4278,
1319,
18,
2692,
67,
1612,
67,
1637,
67,
350,
16,
296,
21071,
4278,
1319,
18,
2692,
67,
1612,
67,
1637,
67,
21071,
16,
289,
364,
1081,
316,
12721,
30,
2477,
273,
6401,
67,
1637,
67,
3188,
12,
2603,
18,
2793,
1251,
16,
1081,
18,
3188,
13,
364,
1047,
316,
2342,
30,
320,
273,
4209,
63,
2603,
18,
3188,
29955,
2603,
18,
2793,
1251,
16,
1047,
18,
529,
16,
1047,
18,
1132,
13,
309,
320,
422,
374,
30,
309,
702,
18,
11369,
30,
1172,
7707,
18674,
733,
738,
87,
598,
738,
87,
11,
738,
261,
3384,
16,
4955,
67,
2692,
67,
1132,
12,
2692,
18,
529,
16,
1047,
18,
1132,
20349,
469,
30,
3436,
2668,
2925,
358,
1047,
733,
738,
87,
598,
738,
87,
11,
738,
261,
3384,
16,
1047,
18,
529,
3719,
3436,
2668,
668,
981,
738,
72,
11,
738,
320,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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702,
4672,
2342,
273,
646,
67,
2692,
67,
1132,
67,
11545,
12,
4156,
13,
4209,
273,
288,
296,
350,
4278,
1319,
18,
2692,
67,
1612,
67,
1637,
67,
350,
16,
296,
21071,
4278,
1319,
18,
2692,
67,
1612,
67,
1637,
67,
21071,
16,
289,
364,
1081,
316,
12721,
30,
2477,
273,
6401,
67,
1637,
67,
3188,
12,
2603,
18,
2793,
1251,
16,
1081,
18,
3188,
13,
364,
1047,
316,
2342,
30,
320,
273,
4209,
63,
2603,
18,
3188,
29955,
2603,
18,
2793,
1251,
16,
1047,
18,
529,
16,
1047,
18,
1132,
13,
309,
320,
422,
374,
30,
309,
702,
18,
11369,
30,
1172,
7707,
18674,
733,
2
] |
def set_primary_key(self, person, commit = True): """ Set the primary key for a person
|
if self['key_type'] == 'ssh': good_ssh_key = r'^.*(?:ssh-dss|ssh-rsa)[ ]+[A-Za-z0-9+/=]+(?: .*)?$' if not re.match(good_ssh_key, key, re.IGNORECASE): raise PLCInvalidArgument, "Invalid SSH version 2 public key" def blacklist(self, commit = True): """ Permanently blacklist key (and all other identical keys), preventing it from ever being added again. Because this could affect multiple keys associated with multiple accounts, it should be admin only.
|
def set_primary_key(self, person, commit = True):
|
6a15f46cfce003d21ee8ba0bee213df66250e60e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/6a15f46cfce003d21ee8ba0bee213df66250e60e/Keys.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
8258,
67,
856,
12,
2890,
16,
6175,
16,
3294,
273,
1053,
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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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,
444,
67,
8258,
67,
856,
12,
2890,
16,
6175,
16,
3294,
273,
1053,
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
] |
def Schema(self): """Return a (wrapped) schema instance for this object instance.""" return ImplicitAcquisitionWrapper(self.schema, self) klass.Schema = Schema
|
klass.Schema = lambda self: \ ImplicitAcquisitionWrapper(self.schema, self)
|
def Schema(self): """Return a (wrapped) schema instance for this object instance.""" return ImplicitAcquisitionWrapper(self.schema, self)
|
32203e1b1de0c1244dd931df27856fa3c337e722 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/32203e1b1de0c1244dd931df27856fa3c337e722/ClassGen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4611,
12,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4611,
12,
2890,
4672,
3536,
990,
279,
261,
18704,
13,
1963,
791,
364,
333,
733,
791,
12123,
327,
26142,
9988,
22094,
3611,
12,
2890,
18,
4821,
16,
365,
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
] |
_cs_matrix.__add__(self, other, self.colind, other.colind, csrplcsr, csr_matrix)
|
if isscalarlike(other): raise NotImplementedError, 'adding a scalar to a CSR matrix ' \ 'is not yet supported' elif isspmatrix(other): other = other.tocsr() if (other.shape != self.shape): raise ValueError, "inconsistent shapes" indptr, colind, data = csrplcsr(self.shape[0], other.shape[1], \ self.indptr, self.colind, self.data, other.indptr, \ other.colind, other.data) return csr_matrix((data, colind, indptr), self.shape) elif isdense(other): return self.todense() + other else: raise TypeError, "unsupported type for sparse matrix addition" def __mul__(self, other): """ Scalar, vector, or matrix multiplication """ if isscalarlike(other): new = self.copy() new.data = other * new.data new.dtype = new.data.dtype new.ftype = _transtabl[new.dtype.char] return new else: return self.dot(other) def __rmul__(self, other): if isscalarlike(other): new = self.copy() new.data = other * new.data new.dtype = new.data.dtype new.ftype = _transtabl[new.dtype.char] return new else: try: tr = other.transpose() except AttributeError: tr = asarray(other).transpose() return self.transpose().dot(tr).transpose() def __neg__(self): new = self.copy() new.data *= -1 return new
|
def __add__(self, other): _cs_matrix.__add__(self, other, self.colind, other.colind, csrplcsr, csr_matrix)
|
68509c21665a282972955c9c541c98c796ab1d7d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/68509c21665a282972955c9c541c98c796ab1d7d/sparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
4672,
389,
2143,
67,
5667,
16186,
1289,
972,
12,
2890,
16,
1308,
16,
365,
18,
1293,
728,
16,
1308,
18,
1293,
728,
16,
13271,
412,
21653,
16,
13271,
67,
5667,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
4672,
389,
2143,
67,
5667,
16186,
1289,
972,
12,
2890,
16,
1308,
16,
365,
18,
1293,
728,
16,
1308,
18,
1293,
728,
16,
13271,
412,
21653,
16,
13271,
67,
5667,
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
] |
return {"href": dispatch.translate(request, request.path_info, view_mode='translate', item=item, match_names=[]),
|
return {"href": dispatch.translate(request, store.pootle_path, view_mode='translate', item=item, match_names=[]),
|
def get_edit_link(request, store, item): """gets a link to edit the given item, if the user has permission""" if check_permission("translate", request) or check_permission("suggest", request): # l10n: verb return {"href": dispatch.translate(request, request.path_info, view_mode='translate', item=item, match_names=[]), "linkid": "editlink%d" % item } else: return {}
|
8ad0d2bb47f229fa39aa69769fb87a0dcffcc06a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/8ad0d2bb47f229fa39aa69769fb87a0dcffcc06a/translate_page.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4619,
67,
1232,
12,
2293,
16,
1707,
16,
761,
4672,
3536,
14665,
279,
1692,
358,
3874,
326,
864,
761,
16,
309,
326,
729,
711,
4132,
8395,
309,
866,
67,
9827,
2932,
13929,
3113,
590,
13,
578,
866,
67,
9827,
2932,
87,
8679,
3113,
590,
4672,
468,
328,
2163,
82,
30,
6405,
2463,
12528,
7547,
6877,
3435,
18,
13929,
12,
2293,
16,
1707,
18,
1631,
352,
298,
67,
803,
16,
1476,
67,
3188,
2218,
13929,
2187,
761,
33,
1726,
16,
845,
67,
1973,
33,
8526,
3631,
315,
1232,
350,
6877,
315,
4619,
1232,
9,
72,
6,
738,
761,
289,
469,
30,
327,
2618,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4619,
67,
1232,
12,
2293,
16,
1707,
16,
761,
4672,
3536,
14665,
279,
1692,
358,
3874,
326,
864,
761,
16,
309,
326,
729,
711,
4132,
8395,
309,
866,
67,
9827,
2932,
13929,
3113,
590,
13,
578,
866,
67,
9827,
2932,
87,
8679,
3113,
590,
4672,
468,
328,
2163,
82,
30,
6405,
2463,
12528,
7547,
6877,
3435,
18,
13929,
12,
2293,
16,
1707,
18,
1631,
352,
298,
67,
803,
16,
1476,
67,
3188,
2218,
13929,
2187,
761,
33,
1726,
16,
845,
67,
1973,
33,
8526,
3631,
315,
1232,
350,
6877,
315,
4619,
1232,
9,
72,
6,
738,
761,
289,
469,
30,
327,
2618,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
newlist.append(dep_listcleanup(x))
|
newlist=newlist+dep_listcleanup(x)
|
def dep_listcleanup(deplist): "remove unnecessary clutter from deplists. Remove multiple list levels, empty lists" newlist=[] if (len(deplist)==1): #remove multiple-depth lists if (type(deplist[0])==types.ListType): for x in deplist[0]: if type(x)==types.ListType: if len(x)!=0: newlist.append(dep_listcleanup(x)) else: newlist.append(x) else: #unembed single nodes newlist.append(deplist[0]) else: for x in deplist: if type(x)==types.ListType: if len(x)==1: newlist.append(x[0]) elif len(x)!=0: newlist.append(dep_listcleanup(x)) else: newlist.append(x) return newlist
|
a8789037609a39bb6d8ae43c09ccb514fdb75a5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/a8789037609a39bb6d8ae43c09ccb514fdb75a5e/portage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5993,
67,
1098,
16732,
12,
323,
17842,
4672,
315,
4479,
19908,
927,
18220,
628,
443,
412,
1486,
18,
225,
3581,
3229,
666,
7575,
16,
1008,
6035,
6,
394,
1098,
33,
8526,
309,
261,
1897,
12,
323,
17842,
13,
631,
21,
4672,
468,
4479,
3229,
17,
5979,
6035,
309,
261,
723,
12,
323,
17842,
63,
20,
5717,
631,
2352,
18,
19366,
4672,
364,
619,
316,
443,
17842,
63,
20,
14542,
309,
618,
12,
92,
13,
631,
2352,
18,
19366,
30,
309,
562,
12,
92,
13,
5,
33,
20,
30,
394,
1098,
33,
2704,
1098,
15,
15037,
67,
1098,
16732,
12,
92,
13,
469,
30,
394,
1098,
18,
6923,
12,
92,
13,
469,
30,
468,
318,
8483,
2202,
2199,
394,
1098,
18,
6923,
12,
323,
17842,
63,
20,
5717,
469,
30,
364,
619,
316,
443,
17842,
30,
309,
618,
12,
92,
13,
631,
2352,
18,
19366,
30,
309,
562,
12,
92,
13,
631,
21,
30,
394,
1098,
18,
6923,
12,
92,
63,
20,
5717,
1327,
562,
12,
92,
13,
5,
33,
20,
30,
394,
1098,
33,
2704,
1098,
15,
15037,
67,
1098,
16732,
12,
92,
13,
469,
30,
394,
1098,
18,
6923,
12,
92,
13,
327,
394,
1098,
225,
2,
0,
0,
0,
0,
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
1008,
6035,
6,
394,
1098,
33,
8526,
309,
261,
1897,
12,
323,
17842,
13,
631,
21,
4672,
468,
4479,
3229,
17,
5979,
6035,
309,
261,
723,
12,
323,
17842,
63,
20,
5717,
631,
2352,
18,
19366,
4672,
364,
619,
316,
443,
17842,
63,
20,
14542,
309,
618,
12,
92,
13,
631,
2352,
18,
19366,
30,
309,
562,
12,
92,
13,
5,
33,
20,
30,
394,
1098,
33,
2704,
1098,
15,
15037,
67,
1098,
16732,
12,
92,
13,
469,
30,
394,
1098,
18,
6923,
12,
92,
13,
469,
30,
468,
318,
8483,
2202,
2199,
394,
2
] |
assert self._jmim._n_z.value != 0
|
assert self._m._n_z.value != 0
|
def getCostJacobian(self, independent_variables, mask=None): """ Returns the jacobian for the cost function with respect to the independent variable independent_variable. @param independent_variable: A mask consisting of the independent variables (JMI_DER_X etc.) requested. @todo: independent_variable should not be a mask. It is not pythonesque. @return: The cost gradient/jacobian. """ assert self._jmim._n_z.value != 0 if mask is None: mask = N.ones(self._jmim._n_z.value, dtype=int) n_cols, n_nz = self._jmim.opt_dJ_dim(JMI_DER_CPPAD, JMI_DER_DENSE_ROW_MAJOR, independent_variables, mask) jac = N.zeros(n_nz, dtype=c_jmi_real_t) self._jmim.opt_dJ(JMI_DER_CPPAD, JMI_DER_DENSE_ROW_MAJOR, independent_variables, jac) return jac.reshape( (1, len(jac)) )
|
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
669,
46,
1077,
26968,
12,
2890,
16,
14807,
67,
7528,
16,
3066,
33,
7036,
4672,
3536,
2860,
326,
20138,
26968,
364,
326,
6991,
445,
598,
8762,
358,
326,
14807,
2190,
14807,
67,
6105,
18,
225,
632,
891,
14807,
67,
6105,
30,
432,
3066,
23570,
434,
326,
14807,
3152,
261,
46,
7492,
67,
4179,
67,
60,
5527,
12998,
3764,
18,
632,
9012,
30,
14807,
67,
6105,
1410,
486,
506,
279,
3066,
18,
2597,
353,
486,
5790,
281,
1857,
18,
632,
2463,
30,
1021,
6991,
10292,
19,
31390,
26968,
18,
3536,
1815,
365,
6315,
81,
6315,
82,
67,
94,
18,
1132,
480,
374,
309,
3066,
353,
599,
30,
3066,
273,
423,
18,
5322,
12,
2890,
6315,
78,
81,
381,
6315,
82,
67,
94,
18,
1132,
16,
3182,
33,
474,
13,
225,
290,
67,
6842,
16,
290,
67,
82,
94,
273,
365,
6315,
78,
81,
381,
18,
3838,
67,
72,
46,
67,
3509,
12,
46,
7492,
67,
4179,
67,
4258,
17962,
16,
804,
7492,
67,
4179,
67,
13296,
1090,
67,
11226,
67,
26976,
916,
16,
14807,
67,
7528,
16,
3066,
13,
20138,
273,
423,
18,
22008,
12,
82,
67,
82,
94,
16,
3182,
33,
71,
67,
78,
9197,
67,
7688,
67,
88,
13,
225,
365,
6315,
78,
81,
381,
18,
3838,
67,
72,
46,
12,
46,
7492,
67,
4179,
67,
4258,
17962,
16,
804,
7492,
67,
4179,
67,
13296,
1090,
67,
11226,
67,
26976,
916,
16,
14807,
67,
7528,
16,
20138,
13,
327,
20138,
18,
1955,
1273,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
669,
46,
1077,
26968,
12,
2890,
16,
14807,
67,
7528,
16,
3066,
33,
7036,
4672,
3536,
2860,
326,
20138,
26968,
364,
326,
6991,
445,
598,
8762,
358,
326,
14807,
2190,
14807,
67,
6105,
18,
225,
632,
891,
14807,
67,
6105,
30,
432,
3066,
23570,
434,
326,
14807,
3152,
261,
46,
7492,
67,
4179,
67,
60,
5527,
12998,
3764,
18,
632,
9012,
30,
14807,
67,
6105,
1410,
486,
506,
279,
3066,
18,
2597,
353,
486,
5790,
281,
1857,
18,
632,
2463,
30,
1021,
6991,
10292,
19,
31390,
26968,
18,
3536,
1815,
365,
6315,
81,
6315,
82,
67,
94,
18,
1132,
480,
374,
309,
3066,
353,
599,
30,
3066,
273,
423,
18,
5322,
12,
2890,
6315,
78,
81,
381,
2
] |
else:
|
elif corpse or target.char.dead:
|
def bandage_response( char, args, target ): corpse = None if target.item: if validCorpseTarget( char, target.item ): corpse = target.item else: return elif target.char and not validCharTarget( char, target.char ): return elif not target.char: char.socket.sysmessage( 'You have to target either a corpse or a creature.' ) return if corpse and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ): char.socket.sysmessage( 'You are not skilled enough to resurrect.' ) return # Consume Bandages bandages = wolfpack.finditem( args[0] ) if not bandages: return baseid = bandages.id container = bandages.container if bandages.amount == 1: bandages.delete() else: bandages.amount -= 1 bandages.update() success = 0 # SkillCheck (0% to 80%) if not corpse: success = char.checkskill( HEALING, 0, 800 ) else: reschance = int( ( char.skill[ HEALING ] + char.skill[ ANATOMY ] ) * 0.17 ) rescheck = random.randint( 1, 100 ) if char.checkskill( HEALING, 800, 1000 ) and char.checkskill( ANATOMY, 800, 1000 ) and reschance < rescheck: success = 1 char.action( 0x09 ) if corpse: char.addtimer( random.randint( 2500, 5000 ), 'bandages.bandage_timer', [ 1, success, target.item.serial, baseid ] ) # It takes 5 seconds to bandage else: if char == target.char: char.socket.sysmessage( 'You start applying bandages on yourself' ) else: char.socket.sysmessage( 'You start applying bandages on %s' % target.char.name ) char.turnto( target.char ) char.addtimer( random.randint( 1500, 2500 ), 'bandages.bandage_timer', [ 0, success, target.char.serial, baseid ] ) # It takes 5 seconds to bandage char.socket.settag( 'using_bandages', 1 )
|
55626ceda289ce3b06a7a2cc2739b870afcb3658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/55626ceda289ce3b06a7a2cc2739b870afcb3658/bandages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8937,
410,
67,
2740,
12,
1149,
16,
833,
16,
1018,
262,
30,
1858,
84,
307,
273,
599,
225,
309,
1018,
18,
1726,
30,
309,
923,
6217,
84,
307,
2326,
12,
1149,
16,
1018,
18,
1726,
262,
30,
1858,
84,
307,
273,
1018,
18,
1726,
1327,
1858,
84,
307,
578,
1018,
18,
3001,
18,
22097,
30,
327,
225,
1327,
1018,
18,
3001,
471,
486,
923,
2156,
2326,
12,
1149,
16,
1018,
18,
3001,
262,
30,
327,
225,
1327,
486,
1018,
18,
3001,
30,
1149,
18,
7814,
18,
9499,
2150,
12,
296,
6225,
1240,
358,
1018,
3344,
279,
1858,
84,
307,
578,
279,
1519,
1231,
1093,
262,
327,
225,
309,
1858,
84,
307,
471,
261,
1149,
18,
7771,
737,
63,
4194,
1013,
1360,
308,
411,
1725,
713,
578,
1149,
18,
7771,
737,
63,
8175,
28146,
61,
308,
411,
1725,
713,
262,
30,
1149,
18,
7814,
18,
9499,
2150,
12,
296,
6225,
854,
486,
4343,
13148,
7304,
358,
400,
295,
2607,
1093,
262,
327,
225,
468,
20418,
27601,
1023,
8937,
1023,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
833,
63,
20,
65,
262,
225,
309,
486,
8937,
1023,
30,
327,
225,
1026,
350,
273,
8937,
1023,
18,
350,
1478,
273,
8937,
1023,
18,
3782,
225,
309,
8937,
1023,
18,
8949,
422,
404,
30,
8937,
1023,
18,
3733,
1435,
1327,
1858,
84,
307,
578,
1018,
18,
3001,
18,
22097,
30,
8937,
1023,
18,
8949,
3947,
404,
8937,
1023,
18,
2725,
1435,
225,
2216,
273,
374,
225,
468,
15821,
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,
8937,
410,
67,
2740,
12,
1149,
16,
833,
16,
1018,
262,
30,
1858,
84,
307,
273,
599,
225,
309,
1018,
18,
1726,
30,
309,
923,
6217,
84,
307,
2326,
12,
1149,
16,
1018,
18,
1726,
262,
30,
1858,
84,
307,
273,
1018,
18,
1726,
1327,
1858,
84,
307,
578,
1018,
18,
3001,
18,
22097,
30,
327,
225,
1327,
1018,
18,
3001,
471,
486,
923,
2156,
2326,
12,
1149,
16,
1018,
18,
3001,
262,
30,
327,
225,
1327,
486,
1018,
18,
3001,
30,
1149,
18,
7814,
18,
9499,
2150,
12,
296,
6225,
1240,
358,
1018,
3344,
279,
1858,
84,
307,
578,
279,
1519,
1231,
1093,
262,
327,
225,
309,
1858,
84,
307,
471,
261,
1149,
18,
7771,
737,
63,
2
] |
s = md5.new()
|
def dgst(file): import md5 BUFSIZE = 1024*1024 s = md5.new() f = open(file, 'r') while 1: buf = f.read(BUFSIZE) if not buf: break s.update(buf) return s.hexdigest() f.close()
|
c10ce4993b5e2520615e603402c626935a51ca6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3890/c10ce4993b5e2520615e603402c626935a51ca6d/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14938,
334,
12,
768,
4672,
1930,
3481,
25,
10937,
42,
4574,
273,
6250,
14,
2163,
3247,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
1323,
404,
30,
1681,
273,
284,
18,
896,
12,
3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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14938,
334,
12,
768,
4672,
1930,
3481,
25,
10937,
42,
4574,
273,
6250,
14,
2163,
3247,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
1323,
404,
30,
1681,
273,
284,
18,
896,
12,
3000,
42,
4574,
13,
309,
486,
1681,
30,
898,
272,
18,
2725,
12,
4385,
13,
327,
272,
18,
7118,
10171,
1435,
284,
18,
4412,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if allParam[-3] != '': for i in range(len(allParam[3])): summary.write('<th>TDT%d</th>'%(i+1))
|
if len(allParam[-8]) > 0: for p in allParam[-8]: summary.write('<th>%s:TDT</th>'%p)
|
def writeReport(content, allParam, results): ''' write a HTML file. The parts for each population has been written but we need a summary table. ''' print "Writing a report (saved in summary.htm )" try: summary = open(outputDir + "/summary.htm", 'w') except: raise exceptions.IOError("Can not open a summary file : " + outputDir + "/summary.htm to write") summary.write(''' <HTML> <HEAD> <TITLE>Summary of simulation</TITLE> <META NAME="description" CONTENT="summary of simulation"> <META NAME="keywords" CONTENT="simuPOP"> <META NAME="resource-type" CONTENT="document"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY > <h1>Output of %s</h1> <p><b>Time of simulation: </b> %s </p> <h2>Parameters </h2> <ul>''' % (sys.argv[0], time.asctime()) ) # write out parameters # start from options[1] for i in range(1, len(options)-1): # check type if options[i].has_key('configName'): if type( allParam[i-1]) in [types.TupleType, types.ListType]: summary.write('''<li><b>%s:</b> %s</li>\n''' % \ (options[i]['configName'], ', '.join( map(str, allParam[i-1])))) else: summary.write('''<li><b>%s:</b> %s</li>\n''' % \ (options[i]['configName'], str(allParam[i-1]))) # a table built from res which has # idx, muta, migr, rec, af?, Fst, Het, TDT? summary.write(''' </ul> <h2>Summary of datasets </h2> <p>The following table lists population id, mutation rate, migration rate, recombination rate, Fst, average heterozygosity, highest D' between a DSL and all surrounding markers (not necessarily its cloest marker), highest D' between a marker with its surrounding markers on a chromsome without DSL, allele frequency at DSL, -log10 p-values (TDT method) at all relevant DSL. </p> <table border="1"> <tr><th>id </th> <th>mu</th> <th>mi</th> <th>rec</th> <th>Fst</th> <th>Het</th> <th>D'(dsl)</th> <th>D'(non)</th> ''') for i in range(len(allParam[3])): summary.write('<th>allFrq%d</th>'%(i+1)) # # has TDT? if allParam[-3] != '': for i in range(len(allParam[3])): summary.write('<th>TDT%d</th>'%(i+1)) summary.write('</tr>') # end of headers, now result for res in results: summary.write('''<tr><td><a href="#pop_%d">%d</a></td> ''' \ % (res[0], res[0])) for i in range(1,len(res)): item = res[i] if type(item) == types.FloatType: summary.write('<td>%.3g</td>'% item) elif type(item) in [types.ListType, types.TupleType]: summary.write('<td>' + ', '.join(map(lambda x:'%.3g'%x, item))+'</td>') else: summary.write('<td>%s</td>' % str(item)) summary.write('''</tr>''') # the middle (big) and last piece) summary.write('''</table> %s <h2>Usage of %s</h2> <pre>%s </pre> </BODY></HTML> ''' % ( content, sys.argv[0], simuOpt.usage(options, __doc__))) summary.close()
|
e0cab91969e23e758e89e48147a21abfafa168f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/e0cab91969e23e758e89e48147a21abfafa168f7/simuComplexDisease.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
4820,
12,
1745,
16,
777,
786,
16,
1686,
4672,
9163,
1045,
279,
3982,
585,
18,
1021,
2140,
364,
1517,
11209,
711,
2118,
5941,
1496,
732,
1608,
279,
4916,
1014,
18,
9163,
1172,
315,
18835,
279,
2605,
261,
14077,
316,
4916,
18,
31180,
28796,
775,
30,
4916,
273,
1696,
12,
2844,
1621,
397,
2206,
7687,
18,
31180,
3113,
296,
91,
6134,
1335,
30,
1002,
4798,
18,
4294,
668,
2932,
2568,
486,
1696,
279,
4916,
585,
294,
315,
397,
21412,
397,
2206,
7687,
18,
31180,
358,
1045,
7923,
4916,
18,
2626,
2668,
6309,
411,
4870,
34,
411,
12458,
34,
411,
14123,
34,
4733,
434,
14754,
1757,
14123,
34,
411,
19294,
6048,
1546,
3384,
6,
12577,
1546,
7687,
434,
14754,
6441,
411,
19294,
6048,
1546,
11771,
6,
12577,
1546,
9812,
89,
30374,
6441,
411,
19294,
6048,
1546,
3146,
17,
723,
6,
12577,
1546,
5457,
6441,
411,
19294,
2239,
17,
41,
3500,
8188,
1546,
1350,
17,
559,
6,
12577,
1546,
955,
19,
2620,
31,
4856,
33,
9699,
17,
17258,
17,
21,
6441,
7765,
12458,
34,
411,
16691,
405,
411,
76,
21,
34,
1447,
434,
738,
87,
1757,
76,
21,
34,
411,
84,
4438,
70,
34,
950,
434,
14754,
30,
7765,
70,
34,
738,
87,
7765,
84,
34,
411,
76,
22,
34,
2402,
7765,
76,
22,
34,
411,
332,
1870,
6309,
738,
261,
9499,
18,
19485,
63,
20,
6487,
813,
18,
345,
21261,
10756,
262,
468,
1045,
596,
1472,
468,
787,
628,
702,
63,
21,
65,
364,
277,
316,
1048,
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,
1045,
4820,
12,
1745,
16,
777,
786,
16,
1686,
4672,
9163,
1045,
279,
3982,
585,
18,
1021,
2140,
364,
1517,
11209,
711,
2118,
5941,
1496,
732,
1608,
279,
4916,
1014,
18,
9163,
1172,
315,
18835,
279,
2605,
261,
14077,
316,
4916,
18,
31180,
28796,
775,
30,
4916,
273,
1696,
12,
2844,
1621,
397,
2206,
7687,
18,
31180,
3113,
296,
91,
6134,
1335,
30,
1002,
4798,
18,
4294,
668,
2932,
2568,
486,
1696,
279,
4916,
585,
294,
315,
397,
21412,
397,
2206,
7687,
18,
31180,
358,
1045,
7923,
4916,
18,
2626,
2668,
6309,
411,
4870,
34,
411,
12458,
34,
411,
14123,
34,
4733,
434,
14754,
1757,
14123,
34,
411,
19294,
6048,
1546,
3384,
6,
12577,
1546,
7687,
434,
14754,
2
] |
dest = os.path.dirname(os.path.join('share', mo))
|
dest = os.path.dirname(mo)
|
def _compile_po_files(self): i18nfiles = [] mo_files = glob.glob("share/locale/*/LC_MESSAGES/zero-install.mo") assert mo_files for mo in mo_files: dest = os.path.dirname(os.path.join('share', mo)) i18nfiles.append((dest, [mo])) return i18nfiles
|
1bb5a3e91b8190d26e3380dade1ffcf84b690e09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10543/1bb5a3e91b8190d26e3380dade1ffcf84b690e09/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
67,
1631,
67,
2354,
12,
2890,
4672,
277,
2643,
82,
2354,
273,
5378,
7344,
67,
2354,
273,
4715,
18,
10581,
2932,
14419,
19,
6339,
19,
5549,
13394,
67,
26195,
19,
7124,
17,
5425,
18,
8683,
7923,
1815,
7344,
67,
2354,
364,
7344,
316,
7344,
67,
2354,
30,
1570,
273,
1140,
18,
803,
18,
12287,
12,
8683,
13,
277,
2643,
82,
2354,
18,
6923,
12443,
10488,
16,
306,
8683,
22643,
327,
277,
2643,
82,
2354,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
67,
1631,
67,
2354,
12,
2890,
4672,
277,
2643,
82,
2354,
273,
5378,
7344,
67,
2354,
273,
4715,
18,
10581,
2932,
14419,
19,
6339,
19,
5549,
13394,
67,
26195,
19,
7124,
17,
5425,
18,
8683,
7923,
1815,
7344,
67,
2354,
364,
7344,
316,
7344,
67,
2354,
30,
1570,
273,
1140,
18,
803,
18,
12287,
12,
8683,
13,
277,
2643,
82,
2354,
18,
6923,
12443,
10488,
16,
306,
8683,
22643,
327,
277,
2643,
82,
2354,
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
] |
self._value[1] = 0
|
else: self._value[0] = 0 self._value[1] = 0
|
def increment(self): # Check if Minutes maxed out if self._value[1] == 59: # Check if Hours not maxed out if self._value[0] < 23: # Increment Hour, reset Minutes to 0 self._value[0] += 1 self._value[1] = 0 else: # Increment Minutes self._value[1] += 1 # Trigger change self.changed()
|
a4fd5bddb0f8c1b05b963cb8af9692f6c89f3dab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/a4fd5bddb0f8c1b05b963cb8af9692f6c89f3dab/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5504,
12,
2890,
4672,
468,
2073,
309,
5444,
993,
943,
329,
596,
309,
365,
6315,
1132,
63,
21,
65,
422,
14995,
30,
468,
2073,
309,
670,
4390,
486,
943,
329,
596,
309,
365,
6315,
1132,
63,
20,
65,
411,
10213,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5504,
12,
2890,
4672,
468,
2073,
309,
5444,
993,
943,
329,
596,
309,
365,
6315,
1132,
63,
21,
65,
422,
14995,
30,
468,
2073,
309,
670,
4390,
486,
943,
329,
596,
309,
365,
6315,
1132,
63,
20,
65,
411,
10213,
30,
468,
17883,
20268,
16,
2715,
5444,
993,
358,
374,
365,
6315,
1132,
63,
20,
65,
1011,
404,
469,
30,
365,
6315,
1132,
63,
20,
65,
273,
374,
365,
6315,
1132,
63,
21,
65,
273,
374,
469,
30,
468,
17883,
5444,
993,
365,
6315,
1132,
63,
21,
65,
1011,
404,
468,
11321,
2549,
365,
18,
6703,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
contentType=contentType, extraHeaders=extraHeaders)
|
contentType=contentType)
|
def _putItem(self, item): """ putItem should publish an item and return etag/date, etc. """
|
9407bec8d667ad0d61415abd978106b23f8daadc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9407bec8d667ad0d61415abd978106b23f8daadc/Sharing.py
|
[
1,
8585,
326,
22398,
316,
326,
981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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
1180,
12,
2890,
16,
761,
4672,
3536,
1378,
1180,
1410,
3808,
392,
761,
471,
327,
13655,
19,
712,
16,
5527,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
updatefiledate(dstfile);
|
updatefiledate(dstfile)
|
def CopyFile(dstfile,srcfile): if (dstfile[-1]=='/'): dstdir = dstfile fnl = srcfile.rfind("/") if (fnl < 0): fn = srcfile else: fn = srcfile[fnl+1:] dstfile = dstdir + fn; if (older(dstfile,srcfile)): global VERBOSE if VERBOSE >= 1: print "Copying "+srcfile+" -> "+dstfile+"..." WriteFile(dstfile,ReadFile(srcfile)) updatefiledate(dstfile); ALLTARGETS.append(dstfile)
|
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
812,
12,
11057,
768,
16,
4816,
768,
4672,
309,
261,
11057,
768,
18919,
21,
65,
18920,
2473,
4672,
3046,
1214,
273,
3046,
768,
2295,
80,
273,
1705,
768,
18,
86,
4720,
2932,
4898,
13,
309,
261,
4293,
80,
411,
374,
4672,
2295,
273,
1705,
768,
469,
30,
2295,
273,
1705,
768,
63,
4293,
80,
15,
21,
26894,
3046,
768,
273,
3046,
1214,
397,
2295,
31,
309,
261,
1498,
12,
11057,
768,
16,
4816,
768,
3719,
30,
2552,
27857,
309,
27857,
1545,
404,
30,
1172,
315,
2951,
310,
13773,
4816,
768,
9078,
317,
13773,
11057,
768,
9078,
7070,
24155,
12,
11057,
768,
16,
1994,
812,
12,
4816,
768,
3719,
1089,
768,
712,
12,
11057,
768,
13,
8061,
16374,
55,
18,
6923,
12,
11057,
768,
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,
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,
273,
1705,
768,
18,
86,
4720,
2932,
4898,
13,
309,
261,
4293,
80,
411,
374,
4672,
2295,
273,
1705,
768,
469,
30,
2295,
273,
1705,
768,
63,
4293,
80,
15,
21,
26894,
3046,
768,
273,
3046,
1214,
397,
2295,
31,
309,
261,
1498,
12,
11057,
768,
16,
4816,
768,
3719,
30,
2552,
27857,
309,
27857,
1545,
404,
30,
1172,
315,
2951,
310,
13773,
4816,
768,
9078,
317,
13773,
11057,
768,
9078,
7070,
24155,
12,
11057,
768,
16,
1994,
812,
12,
4816,
768,
3719,
1089,
768,
712,
12,
11057,
768,
13,
8061,
16374,
2
] |
size = event.GetSize()
|
size = self.GetClientSize()
|
def OnSize(self, event): if not wx.GetApp().ignoreSynchronizeWidget: size = event.GetSize() widthMinusLastColumn = 0
|
f21edc0009ce00e11db682294e1d907846620696 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f21edc0009ce00e11db682294e1d907846620696/ControlBlocks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1225,
12,
2890,
16,
871,
4672,
309,
486,
7075,
18,
967,
3371,
7675,
6185,
19298,
554,
4609,
30,
225,
963,
273,
365,
18,
967,
1227,
1225,
1435,
1835,
18434,
3024,
1494,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1225,
12,
2890,
16,
871,
4672,
309,
486,
7075,
18,
967,
3371,
7675,
6185,
19298,
554,
4609,
30,
225,
963,
273,
365,
18,
967,
1227,
1225,
1435,
1835,
18434,
3024,
1494,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
desc += '\nThanks,\n' + 'Project Manager\n' + (case_data.project_id and case_data.project_id.manager and case_data.project_id.manager.name or False)
|
desc += '\nThanks,\n' + 'Project Manager\n' + (case_data.project_id and case_data.project_id.manager and case_data.project_id.manager.name or False)
|
def write(self, cr, uid, ids, vals, context={}): res = super(crm_case, self).write(cr, uid, ids, vals, context={}) cr.commit() case_data = self.browse(cr, uid, ids[0], context) desc = '''Hello ,\n\n The case is updated for the project: %s\n\nModified Datas are:\n''' %(str(case_data.project_id.name),) for val in vals: if val.endswith('id') or val.endswith('ids'): continue desc += val + ':' + str(vals[val]) + "\n" if case_data.project_id: desc += '\nThanks,\n' + 'Project Manager\n' + (case_data.project_id and case_data.project_id.manager and case_data.project_id.manager.name or False) self.pool.get('project.project')._log_event(cr, uid, case_data.project_id.id, { 'res_id' : ids[0], 'name' : case_data.name or '', 'description' : desc, 'user_id': uid, 'action' : 'write', 'type' : 'case'}) return res
|
f8ec4f89689a756078255f7916fa988130b61f35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/f8ec4f89689a756078255f7916fa988130b61f35/portal_project.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
4672,
400,
273,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
13,
4422,
18,
7371,
1435,
648,
67,
892,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
6487,
819,
13,
3044,
273,
9163,
18601,
269,
64,
82,
64,
82,
225,
1021,
648,
353,
3526,
364,
326,
1984,
30,
738,
87,
64,
82,
64,
82,
4575,
6168,
345,
854,
5581,
82,
26418,
8975,
701,
12,
3593,
67,
892,
18,
4406,
67,
350,
18,
529,
3631,
13,
364,
1244,
316,
5773,
30,
309,
1244,
18,
5839,
1918,
2668,
350,
6134,
578,
1244,
18,
5839,
1918,
2668,
2232,
11,
4672,
1324,
3044,
1011,
1244,
397,
3921,
397,
609,
12,
4524,
63,
1125,
5717,
397,
1548,
82,
6,
225,
309,
648,
67,
892,
18,
4406,
67,
350,
30,
3044,
1011,
2337,
82,
1315,
19965,
17211,
82,
11,
397,
296,
4109,
8558,
64,
82,
11,
397,
261,
3593,
67,
892,
18,
4406,
67,
350,
471,
648,
67,
892,
18,
4406,
67,
350,
18,
4181,
471,
648,
67,
892,
18,
4406,
67,
350,
18,
4181,
18,
529,
578,
1083,
13,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4406,
16063,
67,
1330,
67,
2575,
12,
3353,
16,
4555,
16,
648,
67,
892,
18,
4406,
67,
350,
18,
350,
16,
288,
296,
455,
67,
350,
11,
294,
3258,
63,
20,
6487,
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,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
4672,
400,
273,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
13,
4422,
18,
7371,
1435,
648,
67,
892,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
6487,
819,
13,
3044,
273,
9163,
18601,
269,
64,
82,
64,
82,
225,
1021,
648,
353,
3526,
364,
326,
1984,
30,
738,
87,
64,
82,
64,
82,
4575,
6168,
345,
854,
5581,
82,
26418,
8975,
701,
12,
3593,
67,
892,
18,
4406,
67,
350,
18,
529,
3631,
13,
364,
1244,
316,
5773,
30,
309,
1244,
18,
5839,
1918,
2668,
350,
2
] |
self.nswindow = MiroWindow.alloc() self.nswindow.initWithContentRect_styleMask_backing_defer_(
|
self.nswindow = MiroWindow.alloc().initWithContentRect_styleMask_backing_defer_(
|
def __init__(self, title, rect): signals.SignalEmitter.__init__(self) self.create_signal('active-change') self.create_signal('will-close') self.create_signal('did-move') self.create_signal('key-press') self.create_signal('show') self.create_signal('hide') self.nswindow = MiroWindow.alloc() self.nswindow.initWithContentRect_styleMask_backing_defer_( rect.nsrect, self.get_style_mask(), NSBackingStoreBuffered, NO) self.nswindow.setTitle_(title) self.nswindow.setMinSize_(NSSize(800, 600)) self.content_view = FlippedView.alloc().initWithFrame_(rect.nsrect) self.content_view.setAutoresizesSubviews_(NO) self.nswindow.setContentView_(self.content_view) self.content_widget = None self.view_notifications = NotificationForwarder.create(self.content_view) self.view_notifications.connect(self.on_frame_change, 'NSViewFrameDidChangeNotification') self.window_notifications = NotificationForwarder.create(self.nswindow) self.window_notifications.connect(self.on_activate, 'NSWindowDidBecomeMainNotification') self.window_notifications.connect(self.on_deactivate, 'NSWindowDidResignMainNotification') self.window_notifications.connect(self.on_did_move, 'NSWindowDidMoveNotification') self.window_notifications.connect(self.on_will_close, 'NSWindowWillCloseNotification') wrappermap.add(self.nswindow, self) alive_windows.add(self)
|
f74389cbeb9da396207a408647cca07d2a36476b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/f74389cbeb9da396207a408647cca07d2a36476b/window.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
4917,
4672,
11505,
18,
11208,
13476,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2640,
67,
10420,
2668,
3535,
17,
3427,
6134,
365,
18,
2640,
67,
10420,
2668,
20194,
17,
4412,
6134,
365,
18,
2640,
67,
10420,
2668,
14044,
17,
8501,
6134,
365,
18,
2640,
67,
10420,
2668,
856,
17,
1028,
6134,
365,
18,
2640,
67,
10420,
2668,
4500,
6134,
365,
18,
2640,
67,
10420,
2668,
11248,
6134,
365,
18,
2387,
5668,
273,
490,
11373,
3829,
18,
9853,
7675,
2738,
1190,
1350,
6120,
67,
4060,
5796,
67,
823,
310,
67,
18974,
67,
12,
4917,
18,
2387,
2607,
16,
365,
18,
588,
67,
4060,
67,
4455,
9334,
11472,
2711,
310,
2257,
17947,
16,
3741,
13,
365,
18,
2387,
5668,
18,
542,
4247,
67,
12,
2649,
13,
365,
18,
2387,
5668,
18,
542,
2930,
1225,
67,
12,
3156,
1225,
12,
17374,
16,
14707,
3719,
365,
18,
1745,
67,
1945,
273,
478,
3169,
1845,
1767,
18,
9853,
7675,
2738,
1190,
3219,
67,
12,
2607,
18,
2387,
2607,
13,
365,
18,
1745,
67,
1945,
18,
542,
4965,
455,
3128,
1676,
7061,
67,
12,
3417,
13,
365,
18,
2387,
5668,
18,
542,
1350,
1767,
67,
12,
2890,
18,
1745,
67,
1945,
13,
365,
18,
1745,
67,
6587,
273,
599,
365,
18,
1945,
67,
15286,
273,
8050,
30839,
18,
2640,
12,
2890,
18,
1745,
67,
1945,
13,
365,
18,
1945,
67,
15286,
18,
3612,
12,
2890,
18,
265,
67,
3789,
67,
3427,
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,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
4917,
4672,
11505,
18,
11208,
13476,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2640,
67,
10420,
2668,
3535,
17,
3427,
6134,
365,
18,
2640,
67,
10420,
2668,
20194,
17,
4412,
6134,
365,
18,
2640,
67,
10420,
2668,
14044,
17,
8501,
6134,
365,
18,
2640,
67,
10420,
2668,
856,
17,
1028,
6134,
365,
18,
2640,
67,
10420,
2668,
4500,
6134,
365,
18,
2640,
67,
10420,
2668,
11248,
6134,
365,
18,
2387,
5668,
273,
490,
11373,
3829,
18,
9853,
7675,
2738,
1190,
1350,
6120,
67,
4060,
5796,
67,
823,
310,
67,
18974,
67,
12,
4917,
18,
2387,
2607,
16,
365,
18,
588,
67,
4060,
67,
4455,
9334,
11472,
2711,
310,
2257,
2
] |
if self.vsts_path == None or self.lcov_converter_path == None:
|
if self.tools_path == None: logging.error('Could not locate Visual Studio Team Server tools')
|
def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage.
|
bc410f64b906bf3a5ca7721d73b3632fcccaeae2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/bc410f64b906bf3a5ca7721d73b3632fcccaeae2/coverage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
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
] |
if self._norm is None: self._norm=sqrt(sum(self._ar*self._ar)) return self._norm
|
return sqrt(sum(self._ar*self._ar))
|
def norm(self): "Return vector norm" if self._norm is None: # Avoid expensive sqrts in future # calls of norm self._norm=sqrt(sum(self._ar*self._ar)) return self._norm
|
1361533b7b7846e8edc2806567abeb60f5403418 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/1361533b7b7846e8edc2806567abeb60f5403418/Vector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4651,
12,
2890,
4672,
315,
990,
3806,
4651,
6,
309,
365,
6315,
7959,
353,
599,
30,
468,
17843,
19326,
4744,
86,
3428,
316,
3563,
468,
4097,
434,
4651,
365,
6315,
7959,
33,
24492,
12,
1364,
12,
2890,
6315,
297,
14,
2890,
6315,
297,
3719,
327,
365,
6315,
7959,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
2890,
6315,
297,
14,
2890,
6315,
297,
3719,
327,
365,
6315,
7959,
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
] |
print ' -- Type definition %s' % (type_en,)
|
def _resolve (self): if self.isResolved(): return self
|
5e29b056ef2ca88b50949689acf08579a173ceff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/5e29b056ef2ca88b50949689acf08579a173ceff/structures.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10828,
261,
2890,
4672,
309,
365,
18,
291,
12793,
13332,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
389,
10828,
261,
2890,
4672,
309,
365,
18,
291,
12793,
13332,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return len(item.children) > 0
|
if item is nil: return len(self.model) > 0 else: return len(item.children) > 0
|
def outlineView_isItemExpandable_(self, view, item): return len(item.children) > 0
|
01824131141f410abd6bc17db9f3edc70d4e607f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/01824131141f410abd6bc17db9f3edc70d4e607f/tablemodel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16363,
1767,
67,
291,
1180,
12271,
429,
67,
12,
2890,
16,
1476,
16,
761,
4672,
327,
562,
12,
1726,
18,
5906,
13,
405,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16363,
1767,
67,
291,
1180,
12271,
429,
67,
12,
2890,
16,
1476,
16,
761,
4672,
327,
562,
12,
1726,
18,
5906,
13,
405,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gnOptList=[_("Geonames in EXIF keywords + HTML sumarize in IPTC caption"),
|
gnOptList=[_("Geonames in EXIF keywords + HTML summary in IPTC caption"),
|
def __init__(self,parent, title): """Initialize the main frame""" global bkg wx.Frame.__init__(self, parent, -1, title="GPicSync",size=(1000,600)) self.tcam_l="00:00:00" self.tgps_l="00:00:00" self.log=False self.stop=False self.interpolation=False self.picDir="" self.utcOffset="0" self.backup=True self.picDirDefault="" self.GMaps=False self.urlGMaps="" self.geonamesTags=False self.geoname_nearbyplace=True self.geoname_region=True self.geoname_country=True self.geoname_summary=True self.geoname_caption=True self.datesMustMatch=True self.geoname_userdefine="" self.maxTimeDifference="300" self.language="English" self.timeStamp=False self.defaultLat="0.000000" self.defaultLon="0.000000" # Search for an eventual gpicsync.conf file try: try: #fconf=open(os.path.expanduser("~/gpicsync.conf"),"r+") fconf=open(os.environ["USERPROFILE"]+"/gpicsync.conf","r+") except: try: #fconf=open(os.environ["USERPROFILE"]+"/gpicsync.conf","r+") fconf=open(os.path.expanduser("~/gpicsync.conf"),"r+") except: pass conf= ConfigParser.ConfigParser() conf.readfp(fconf) #parse the config file if conf.has_option("gpicsync","UTCOffset") == True: self.utcOffset=conf.get("gpicsync","utcoffset") if conf.has_option("gpicsync","backup") == True: self.backup=eval(conf.get("gpicsync","backup")) if conf.has_option("gpicsync","urlGMaps") == True: self.urlGMaps=conf.get("gpicsync","urlGMaps") if conf.has_option("gpicsync","geonamesTags") == True: self.geonamesTags=eval(conf.get("gpicsync","geonamesTags")) if conf.has_option("gpicsync","interpolation") == True: self.interpolation=eval(conf.get("gpicsync","interpolation")) if conf.has_option("gpicsync","datesMustMatch") == True: self.datesMustMatch=eval(conf.get("gpicsync","datesMustMatch")) if conf.has_option("gpicsync","log") == True: self.log=eval(conf.get("gpicsync","log")) if conf.has_option("gpicsync","GMaps") == True: self.GMaps=eval(conf.get("gpicsync","GMaps")) if conf.has_option("gpicsync","UTCOffset") == True: self.utcOffset=conf.get("gpicsync","UTCOffset") if conf.has_option("gpicsync","maxTimeDifference") == True: self.maxTimeDifference=conf.get("gpicsync","maxTimeDifference") if conf.has_option("gpicsync","language") == True: self.language=conf.get("gpicsync","language") if conf.has_option("gpicsync","geoname_nearbyplace") == True: self.geoname_nearbyplace=eval(conf.get("gpicsync","geoname_nearbyplace")) if conf.has_option("gpicsync","geoname_region") == True: self.geoname_region=eval(conf.get("gpicsync","geoname_region")) if conf.has_option("gpicsync","geoname_country") == True: self.geoname_country=eval(conf.get("gpicsync","geoname_country")) if conf.has_option("gpicsync","geoname_summary") == True: self.geoname_summary=eval(conf.get("gpicsync","geoname_summary")) if conf.has_option("gpicsync","geoname_userdefine") == True: self.geoname_userdefine=conf.get("gpicsync","geoname_userdefine") if conf.has_option("gpicsync","geoname_caption") == True: self.geoname_caption=eval(conf.get("gpicsync","geoname_caption")) if conf.has_option("gpicsync","geoname_IPTCsummary") == True: self.geoname_IPTCsummary=conf.get("gpicsync","geoname_IPTCsummary") print ">>>", self.geoname_IPTCsummary if conf.has_option("gpicsync","defaultdirectory") == True: self.picDir=conf.get("gpicsync","defaultdirectory") if conf.has_option("gpicsync","getimestamp") == True: self.timeStamp=eval(conf.get("gpicsync","getimestamp")) fconf.close()
|
524ce0d18ebeb0a911ad3d1f70bfa5f1de97911c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11453/524ce0d18ebeb0a911ad3d1f70bfa5f1de97911c/gpicsync-GUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
2077,
4672,
3536,
7520,
326,
2774,
2623,
8395,
2552,
324,
14931,
225,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
1546,
9681,
335,
4047,
3113,
1467,
28657,
18088,
16,
28133,
3719,
365,
18,
5111,
301,
67,
80,
1546,
713,
30,
713,
30,
713,
6,
365,
18,
88,
75,
1121,
67,
80,
1546,
713,
30,
713,
30,
713,
6,
365,
18,
1330,
33,
8381,
365,
18,
5681,
33,
8381,
365,
18,
18676,
367,
33,
8381,
365,
18,
20003,
1621,
1546,
6,
365,
18,
17892,
2335,
1546,
20,
6,
365,
18,
9572,
33,
5510,
365,
18,
20003,
1621,
1868,
1546,
6,
365,
18,
43,
8903,
33,
8381,
365,
18,
718,
43,
8903,
1546,
6,
365,
18,
908,
265,
753,
3453,
33,
8381,
365,
18,
908,
265,
339,
67,
27862,
1637,
964,
33,
5510,
365,
18,
908,
265,
339,
67,
6858,
33,
5510,
365,
18,
908,
265,
339,
67,
9082,
33,
5510,
365,
18,
908,
265,
339,
67,
7687,
33,
5510,
365,
18,
908,
265,
339,
67,
15386,
33,
5510,
365,
18,
9683,
10136,
2060,
33,
5510,
365,
18,
908,
265,
339,
67,
1355,
11255,
1546,
6,
365,
18,
1896,
950,
16220,
1546,
19249,
6,
365,
18,
4923,
1546,
664,
13740,
6,
365,
18,
957,
8860,
33,
8381,
365,
18,
1886,
6607,
1546,
20,
18,
9449,
6,
365,
18,
1886,
15927,
1546,
20,
18,
9449,
6,
225,
468,
5167,
364,
392,
871,
1462,
4178,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
2077,
4672,
3536,
7520,
326,
2774,
2623,
8395,
2552,
324,
14931,
225,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
1546,
9681,
335,
4047,
3113,
1467,
28657,
18088,
16,
28133,
3719,
365,
18,
5111,
301,
67,
80,
1546,
713,
30,
713,
30,
713,
6,
365,
18,
88,
75,
1121,
67,
80,
1546,
713,
30,
713,
30,
713,
6,
365,
18,
1330,
33,
8381,
365,
18,
5681,
33,
8381,
365,
18,
18676,
367,
33,
8381,
365,
18,
20003,
1621,
1546,
6,
365,
18,
17892,
2335,
1546,
20,
6,
365,
18,
9572,
33,
5510,
365,
18,
20003,
1621,
1868,
1546,
6,
365,
18,
43,
8903,
2
] |
def fl_set_xyplot_key(ob, id, key): """ fl_set_xyplot_key(ob, id, key) """ _fl_set_xyplot_key(ob, id, key)
|
def fl_set_xyplot_key(obj, id, key): """ fl_set_xyplot_key(obj, id, key) """ _fl_set_xyplot_key(obj, id, key)
|
def fl_set_xyplot_key(ob, id, key): """ fl_set_xyplot_key(ob, id, key) """ _fl_set_xyplot_key(ob, id, key)
|
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
856,
12,
2603,
16,
612,
16,
498,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
856,
12,
2603,
16,
612,
16,
498,
13,
3536,
225,
389,
2242,
67,
542,
67,
1698,
4032,
67,
856,
12,
2603,
16,
612,
16,
498,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
856,
12,
2603,
16,
612,
16,
498,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
856,
12,
2603,
16,
612,
16,
498,
13,
3536,
225,
389,
2242,
67,
542,
67,
1698,
4032,
67,
856,
12,
2603,
16,
612,
16,
498,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EMR_UNKNOWN.__init__(self)
|
_EMR_UNKNOWN.__init__(self)
|
def __init__(self): EMR_UNKNOWN.__init__(self)
|
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7141,
54,
67,
14737,
16186,
2738,
972,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7141,
54,
67,
14737,
16186,
2738,
972,
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,
-100,
-100,
-100
] |
print "AddSlice(%s)" % name, slice_id = AddSlice(admin, name, {'url': url, 'description': description})
|
slice_fields = random_slice() print "AddSlice", slice_id = AddSlice(admin, slice_fields)
|
def unicmp(a, b, encoding = "utf-8"): """ When connected directly to the DB, values are returned as raw 8-bit strings that may need to be decoded (as UTF-8 by default) in order to compare them against expected Python Unicode strings. """ is8bit = re.compile("[\x80-\xff]").search if isinstance(a, str) and is8bit(a): a = unicode(a, encoding) if isinstance(b, str) and is8bit(b): b = unicode(b, encoding) return a == b
|
f51dbe12c30f8473b083ea86b3dade41e56f4615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/f51dbe12c30f8473b083ea86b3dade41e56f4615/Test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
335,
1291,
12,
69,
16,
324,
16,
2688,
273,
315,
3158,
17,
28,
6,
4672,
3536,
5203,
5840,
5122,
358,
326,
2383,
16,
924,
854,
2106,
487,
1831,
1725,
17,
3682,
2064,
716,
2026,
1608,
358,
506,
6383,
261,
345,
6380,
17,
28,
635,
805,
13,
316,
1353,
358,
3400,
2182,
5314,
2665,
6600,
9633,
2064,
18,
3536,
225,
353,
28,
3682,
273,
283,
18,
11100,
2932,
7438,
92,
3672,
6943,
5297,
4279,
2934,
3072,
309,
1549,
12,
69,
16,
609,
13,
471,
353,
28,
3682,
12,
69,
4672,
279,
273,
5252,
12,
69,
16,
2688,
13,
309,
1549,
12,
70,
16,
609,
13,
471,
353,
28,
3682,
12,
70,
4672,
324,
273,
5252,
12,
70,
16,
2688,
13,
327,
279,
422,
324,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
335,
1291,
12,
69,
16,
324,
16,
2688,
273,
315,
3158,
17,
28,
6,
4672,
3536,
5203,
5840,
5122,
358,
326,
2383,
16,
924,
854,
2106,
487,
1831,
1725,
17,
3682,
2064,
716,
2026,
1608,
358,
506,
6383,
261,
345,
6380,
17,
28,
635,
805,
13,
316,
1353,
358,
3400,
2182,
5314,
2665,
6600,
9633,
2064,
18,
3536,
225,
353,
28,
3682,
273,
283,
18,
11100,
2932,
7438,
92,
3672,
6943,
5297,
4279,
2934,
3072,
309,
1549,
12,
69,
16,
609,
13,
471,
353,
28,
3682,
12,
69,
4672,
279,
273,
5252,
12,
69,
16,
2688,
13,
309,
1549,
12,
70,
16,
609,
13,
471,
353,
28,
3682,
12,
70,
4672,
324,
273,
5252,
12,
70,
16,
2
] |
if not Fatal and len(ResourceNodes) == 1: if not resource.IsWorkingCorrectly(ResourceNodes[0]): result.append("Resource " + repr(resource) + " not operating properly.")
|
if not self.CM.HasQuorum() and len(ResourceNodes) != 0: result.append("Resource " + repr(resource) + " active without Quorum: " + repr(ResourceNodes)) elif len(ResourceNodes) == 0 and self.CM.HasQuorum(): result.append("Resource " + repr(resource) + " not served anywhere.") elif len(ResourceNodes) > 1: result.append("Resource " + repr(resource) + " served too many times: " + repr(ResourceNodes)) self.CM.log("Resource " + repr(resource) + " served too many times: " + repr(ResourceNodes)) Fatal = 1 elif GrpServedBy == None: GrpServedBy = ResourceNodes elif GrpServedBy != ResourceNodes: result.append("Resource group" + repr(resource) + " served by different nodes: " + repr(ResourceNodes)+" vs "+repr(GrpServedBy)) self.CM.log("Resource " + repr(resource) + " served too many times: " + repr(ResourceNodes)+" vs "+repr(GrpServedBy)) Fatal = 1 if not Fatal and len(ResourceNodes) == 1: if not resource.IsWorkingCorrectly(ResourceNodes[0]): result.append("Resource " + repr(resource) + " not operating properly.")
|
def _doaudit(self): '''Check to see if all resources are running in exactly one place in the cluster.
|
fe96223aad24cf390affab7866cc7e4142055f84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5112/fe96223aad24cf390affab7866cc7e4142055f84/CTSaudits.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
17413,
12,
2890,
4672,
9163,
1564,
358,
2621,
309,
777,
2703,
854,
3549,
316,
8950,
1245,
3166,
316,
326,
2855,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
17413,
12,
2890,
4672,
9163,
1564,
358,
2621,
309,
777,
2703,
854,
3549,
316,
8950,
1245,
3166,
316,
326,
2855,
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
] |
par = ' : ' + ','.join(['%s:=%s'%(a,b) for a,b in params.items()])
|
par = ' : ' + ','.join(['%s:=%s'%(a,self(b)) for a,b in params.items()])
|
def function_call(self, function, args=[], params={}, nvals=1): if not isinstance(args, list): args = [args] for i in range(len(args)): if not isinstance(args[i], ExpectElement): args[i] = self(args[i]) nvals = int(nvals) if len(params) == 0: par = '' else: par = ' : ' + ','.join(['%s:=%s'%(a,b) for a,b in params.items()])
|
03798e397e86354a195fc0d72f8388f8dfbe54cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/03798e397e86354a195fc0d72f8388f8dfbe54cb/magma.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
309,
486,
1549,
12,
1968,
16,
666,
4672,
833,
273,
306,
1968,
65,
364,
277,
316,
1048,
12,
1897,
12,
1968,
3719,
30,
309,
486,
1549,
12,
1968,
63,
77,
6487,
15510,
1046,
4672,
833,
63,
77,
65,
273,
365,
12,
1968,
63,
77,
5717,
290,
4524,
273,
509,
12,
82,
4524,
13,
309,
562,
12,
2010,
13,
422,
374,
30,
779,
273,
875,
469,
30,
779,
273,
296,
294,
296,
397,
3316,
18,
5701,
12,
3292,
9,
87,
30,
5095,
87,
11,
17105,
69,
16,
70,
13,
364,
279,
16,
70,
316,
859,
18,
3319,
1435,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
309,
486,
1549,
12,
1968,
16,
666,
4672,
833,
273,
306,
1968,
65,
364,
277,
316,
1048,
12,
1897,
12,
1968,
3719,
30,
309,
486,
1549,
12,
1968,
63,
77,
6487,
15510,
1046,
4672,
833,
63,
77,
65,
273,
365,
12,
1968,
63,
77,
5717,
290,
4524,
273,
509,
12,
82,
4524,
13,
309,
562,
12,
2010,
13,
422,
374,
30,
779,
273,
875,
469,
30,
779,
273,
296,
294,
296,
397,
3316,
18,
5701,
12,
3292,
9,
87,
30,
5095,
87,
11,
17105,
69,
16,
70,
13,
364,
279,
16,
70,
316,
859,
18,
3319,
1435,
5717,
2,
-100,
-100
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 390) else quickfix.StringField.__init__(self, 390, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
9349,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
9349,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
9349,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
9349,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.name = name self.description = description self.value = value
|
self.name = _prelude.prelude_option_get_longopt(option) self.instantiable = bool(_prelude.prelude_option_get_flags(option) & _prelude.ALLOW_MULTIPLE_CALL) if self.name.find("[") != -1: self.instance = True m = re.compile("(\w+)\[(\w+)\]").match(self.name) self.instantiable_name = m.group(1) self.instance_name = m.group(2) else: self.instance = False self.boolean = _prelude.prelude_option_get_has_arg(option) == _prelude.no_argument self.value = _prelude.prelude_option_get_value(option) self.description = _prelude.prelude_option_get_description(option)
|
def __init__(self, parent, name, description, value): self.parent = parent self.name = name self.description = description self.value = value self.options = [ ] nodes = [ name ] while parent: nodes.insert(0, parent.name) parent = parent.parent self.path = ".".join(nodes)
|
cd1da66868e748e65faa498ebd346bf8a3a2b7a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11628/cd1da66868e748e65faa498ebd346bf8a3a2b7a7/prelude.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
508,
16,
2477,
16,
460,
4672,
365,
18,
2938,
273,
982,
365,
18,
529,
273,
389,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
5748,
3838,
12,
3482,
13,
365,
18,
24628,
2214,
273,
1426,
24899,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
7133,
12,
3482,
13,
473,
389,
1484,
80,
1317,
18,
13511,
67,
24683,
900,
67,
13730,
13,
309,
365,
18,
529,
18,
4720,
2932,
63,
7923,
480,
300,
21,
30,
365,
18,
1336,
273,
1053,
312,
273,
283,
18,
11100,
2932,
4713,
91,
14456,
63,
4713,
91,
14456,
4279,
2934,
1916,
12,
2890,
18,
529,
13,
365,
18,
24628,
2214,
67,
529,
273,
312,
18,
1655,
12,
21,
13,
365,
18,
1336,
67,
529,
273,
312,
18,
1655,
12,
22,
13,
469,
30,
365,
18,
1336,
273,
1083,
365,
18,
6494,
273,
389,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
5332,
67,
3175,
12,
3482,
13,
422,
389,
1484,
80,
1317,
18,
2135,
67,
3446,
365,
18,
1132,
273,
389,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
1132,
12,
3482,
13,
365,
18,
3384,
273,
389,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
3384,
12,
3482,
13,
365,
18,
2116,
273,
306,
308,
2199,
273,
306,
508,
308,
1323,
982,
30,
2199,
18,
6387,
12,
20,
16,
982,
18,
529,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
508,
16,
2477,
16,
460,
4672,
365,
18,
2938,
273,
982,
365,
18,
529,
273,
389,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
5748,
3838,
12,
3482,
13,
365,
18,
24628,
2214,
273,
1426,
24899,
1484,
80,
1317,
18,
1484,
80,
1317,
67,
3482,
67,
588,
67,
7133,
12,
3482,
13,
473,
389,
1484,
80,
1317,
18,
13511,
67,
24683,
900,
67,
13730,
13,
309,
365,
18,
529,
18,
4720,
2932,
63,
7923,
480,
300,
21,
30,
365,
18,
1336,
273,
1053,
312,
273,
283,
18,
11100,
2932,
4713,
91,
14456,
63,
4713,
91,
14456,
4279,
2934,
1916,
12,
2890,
18,
529,
13,
365,
18,
2
] |
self.SetBackgroundColour(group.colour) self.SetForegroundColour(wxBLACK)
|
def __init__(self, parent, cursor, tagSize, group, pnlStyle):# = wxSIMPLE_BORDER): wxPanel.__init__(self, parent, -1, size = wxSize(tagSize, tagSize), style = pnlStyle) self.Show(false) self.group = group self.SetBackgroundColour(group.colour) self.SetForegroundColour(wxBLACK) self.SetCursor(wxStockCursor(cursor)) self.selection = None self.position = wxSize(0, 0)
|
2dfc26470222dc7c48c18810d65dc6cd09f6688b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2dfc26470222dc7c48c18810d65dc6cd09f6688b/SelectionTags.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
3347,
16,
1047,
1225,
16,
1041,
16,
28861,
2885,
4672,
7,
273,
7075,
31669,
900,
67,
38,
7954,
4672,
7075,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
963,
273,
7075,
1225,
12,
2692,
1225,
16,
1047,
1225,
3631,
2154,
273,
28861,
2885,
13,
365,
18,
5706,
12,
5743,
13,
365,
18,
1655,
273,
1041,
365,
18,
694,
6688,
12,
27226,
17821,
6688,
12,
9216,
3719,
365,
18,
10705,
273,
599,
365,
18,
3276,
273,
7075,
1225,
12,
20,
16,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
3347,
16,
1047,
1225,
16,
1041,
16,
28861,
2885,
4672,
7,
273,
7075,
31669,
900,
67,
38,
7954,
4672,
7075,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
963,
273,
7075,
1225,
12,
2692,
1225,
16,
1047,
1225,
3631,
2154,
273,
28861,
2885,
13,
365,
18,
5706,
12,
5743,
13,
365,
18,
1655,
273,
1041,
365,
18,
694,
6688,
12,
27226,
17821,
6688,
12,
9216,
3719,
365,
18,
10705,
273,
599,
365,
18,
3276,
273,
7075,
1225,
12,
20,
16,
374,
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
] |
|
files = ['$(OPT)', config_c, frozen_c, frozenmain_c] + \ addfiles + libs + \
|
files = ['$(OPT)', config_c, frozen_c] + \ supp_sources + addfiles + libs + \
|
def main(): # overridable context prefix = PREFIX # settable with -p option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:') except getopt.error, msg: usage('getopt error: ' + str(msg)) # proces option arguments for o, a in opts: if o == '-e': extensions.append(a) if o == '-p': prefix = a # locations derived from options binlib = os.path.join(prefix, 'lib/python/lib') incldir = os.path.join(prefix, 'include/Py') config_c_in = os.path.join(binlib, 'config.c.in') frozenmain_c = os.path.join(binlib, 'frozenmain.c') makefile_in = os.path.join(binlib, 'Makefile') defines = ['-DHAVE_CONFIG_H', '-DUSE_FROZEN', '-DNO_MAIN', '-DPYTHONPATH=\\"$(PYTHONPATH)\\"'] includes = ['-I' + incldir, '-I' + binlib] # sanity check of directories and files for dir in [prefix, binlib, incldir] + extensions: if not os.path.exists(dir): usage('needed directory %s not found' % dir) if not os.path.isdir(dir): usage('%s: not a directory' % dir) for file in config_c_in, makefile_in, frozenmain_c: if not os.path.exists(file): usage('needed file %s not found' % file) if not os.path.isfile(file): usage('%s: not a plain file' % file) for dir in extensions: setup = os.path.join(dir, 'Setup') if not os.path.exists(setup): usage('needed file %s not found' % setup) if not os.path.isfile(setup): usage('%s: not a plain file' % setup) # check that enough arguments are passed if not args: usage('at least one filename argument required') # check that file arguments exist for arg in args: if not os.path.exists(arg): usage('argument %s not found' % arg) if not os.path.isfile(arg): usage('%s: not a plain file' % arg) # process non-option arguments scriptfile = args[0] modules = args[1:] # derive target name from script name base = os.path.basename(scriptfile) base, ext = os.path.splitext(base) if base: if base != scriptfile: target = base else: target = base + '.bin' # Actual work starts here... dict = findmodules.findmodules(scriptfile, modules, path) backup = frozen_c + '~' try: os.rename(frozen_c, backup) except os.error: backup = None outfp = open(frozen_c, 'w') try: makefreeze.makefreeze(outfp, dict) finally: outfp.close() if backup: if cmp.cmp(backup, frozen_c): sys.stderr.write('%s not changed, not written\n' % frozen_c) os.rename(backup, frozen_c) builtins = [] unknown = [] mods = dict.keys() mods.sort() for mod in mods: if dict[mod] == '<builtin>': builtins.append(mod) elif dict[mod] == '<unknown>': unknown.append(mod) addfiles = [] if unknown: addfiles, addmods = \ checkextensions.checkextensions(unknown, extensions) for mod in addmods: unknown.remove(mod) builtins = builtins + addmods if unknown: sys.stderr.write('Warning: unknown modules remain: %s\n' % string.join(unknown)) builtins.sort() infp = open(config_c_in) backup = config_c + '~' try: os.rename(config_c, backup) except os.error: backup = None outfp = open(config_c, 'w') try: makeconfig.makeconfig(infp, outfp, builtins) finally: outfp.close() infp.close() if backup: if cmp.cmp(backup, config_c): sys.stderr.write('%s not changed, not written\n' % config_c) os.rename(backup, config_c) cflags = defines + includes + ['$(OPT)'] libs = [] for n in 'Modules', 'Python', 'Objects', 'Parser': n = 'lib%s.a' % n n = os.path.join(binlib, n) libs.append(n) makevars = parsesetup.getmakevars(makefile_in) somevars = {} for key in makevars.keys(): somevars[key] = makevars[key] somevars['CFLAGS'] = string.join(cflags) # override files = ['$(OPT)', config_c, frozen_c, frozenmain_c] + \ addfiles + libs + \ ['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)'] backup = makefile + '~' try: os.rename(makefile, backup) except os.error: backup = None outfp = open(makefile, 'w') try: makemakefile.makemakefile(outfp, somevars, files, target) finally: outfp.close() if backup: if not cmp.cmp(backup, makefile): print 'previous Makefile saved as', backup else: sys.stderr.write('%s not changed, not written\n' % makefile) os.rename(backup, makefile) # Done! print 'Now run make to build the target:', target
|
150316ee2e7db3d0ad633f2dbe53a066add49e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/150316ee2e7db3d0ad633f2dbe53a066add49e45/freeze.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
17154,
1082,
202,
7,
444,
2121,
598,
300,
84,
1456,
4418,
273,
5378,
589,
273,
2589,
18,
803,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
202,
202,
7,
15849,
10379,
628,
2728,
508,
1221,
768,
273,
296,
6464,
768,
11,
225,
468,
1109,
1296,
980,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
73,
30,
84,
2497,
13,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
2668,
588,
3838,
555,
30,
296,
397,
609,
12,
3576,
3719,
225,
468,
450,
764,
1456,
1775,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
73,
4278,
4418,
18,
6923,
12,
69,
13,
309,
320,
422,
2400,
84,
4278,
1633,
273,
279,
225,
468,
7838,
10379,
628,
702,
4158,
2941,
273,
1140,
18,
803,
18,
5701,
12,
3239,
16,
296,
2941,
19,
8103,
19,
2941,
6134,
2823,
1214,
273,
1140,
18,
803,
18,
5701,
12,
3239,
16,
296,
6702,
19,
9413,
6134,
642,
67,
71,
67,
267,
273,
1140,
18,
803,
18,
5701,
12,
4757,
2941,
16,
296,
1425,
18,
71,
18,
267,
6134,
12810,
5254,
67,
71,
273,
1140,
18,
803,
18,
5701,
12,
4757,
2941,
16,
296,
28138,
5254,
18,
71,
6134,
1221,
768,
67,
267,
273,
1140,
18,
803,
18,
5701,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
17154,
1082,
202,
7,
444,
2121,
598,
300,
84,
1456,
4418,
273,
5378,
589,
273,
2589,
18,
803,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
202,
202,
7,
15849,
10379,
628,
2728,
508,
1221,
768,
273,
296,
6464,
768,
11,
225,
468,
1109,
1296,
980,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
73,
30,
84,
2497,
13,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
2668,
588,
3838,
555,
30,
296,
397,
609,
12,
2
] |
lastOnBranch = newVersion
|
lastOnBranch = version
|
def nextVersion(repos, troveName, versionStr, troveFlavor, currentBranch, binary = True, sourceName = None): """ Calculates the version to use for a newly built trove which is about to be added to the repository. @param repos: repository the trove will be part of @type repos: repository.AbstractRepository @param troveName: name of the trove being built @type troveName: str @param versionStr: version string from the recipe @type versionStr: string @param troveFlavor: flavor of the trove being built @type troveFlavor: deps.deps.DependencySet @param currentBranch: branch the new version should be on @type currentBranch: versions.Version @param binary: true if this version should use the binary build field @type binary: boolean @param sourceName: the name of the :source component related to this trove. The default is troveName + ':source' @type sourceName: string """ if binary: if sourceName is None: sourceName = troveName + ':source' # get the current source component (if any) try: sourceVersion = repos.getTroveLatestVersion(sourceName, currentBranch) except repository.repository.TroveMissing: sourceVersion = None else: sourceVersion = None currentVersions = repos.getTroveFlavorsLatestVersion(troveName, currentBranch) if not troveFlavor: troveFlavor = None # find the latest version of this trove and the latest version of # this flavor of this trove latestForFlavor = None latest = None # this works because currentVersions is sorted earliest to latest for (version, flavor) in currentVersions: if flavor == troveFlavor: latestForFlavor = version latest = version # if we have a sourceVersion, and its release is newer than the latest # binary on the branch, use it instead. if sourceVersion is not None: sourceTrailing = sourceVersion.trailingVersion() # if the upstream version part of the source component is the same # as what we're currently using, we can use the source version if versionStr == sourceTrailing.getVersion(): # if there isn't a latest, we can just use the source version # number after incrementing the build count if latest is None: latest = sourceVersion.copy() latest.incrementBuildCount() return latest # check to see if the source component release is newer # if so, use the source component. Otherwise, latest will # be used below and the build count will be incremented. latestTrailing = latest.trailingVersion() if latestTrailing.getRelease() < sourceTrailing.getRelease(): latest = sourceVersion.copy() latest.incrementBuildCount() return latest if latest is None or latest.trailingVersion().getVersion() != versionStr: # new package or package uses new upstream version newVersion = currentBranch.copy() newVersion.appendVersionRelease(versionStr, 1) newVersionBranch = newVersion.branch() # this is a good guess, but it could be wrong since the same version # can appear at discountinuous points in the tree. it would be # better if this search was done on the server (it could be much # more efficient), but this works for now allVersions = repos.getTroveVersionsByLabel([ troveName ], newVersionBranch.label()) lastOnBranch = None for version in allVersions[troveName]: if version.onBranch(newVersionBranch) and \ version.sameVersion(newVersion) and \ (not lastOnBranch or version.isAfter(lastOnBranch)): lastOnBranch = newVersion if lastOnBranch: newVersion = lastOnBranch.copy() if binary: newVersion.incrementBuildCount() else: newVersion.incrementRelease() elif binary: newVersion.incrementBuildCount() elif latestForFlavor != latest: # this is a flavor that does not exist at the latest # version on the branch. Reuse the latest version to sync up. newVersion = latest else: # This is new build of an existing version with the same flavor, # increment the build count or release accordingly newVersion = latest.copy() if binary: newVersion.incrementBuildCount() else: newVersion.incrementRelease() return newVersion
|
cc4b5c05e36be79b28349e09e7b35e426c335795 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/cc4b5c05e36be79b28349e09e7b35e426c335795/helper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
1444,
12,
15564,
16,
23432,
537,
461,
16,
1177,
1585,
16,
23432,
537,
2340,
9444,
16,
783,
7108,
16,
3112,
273,
1053,
16,
28337,
273,
599,
4672,
3536,
26128,
326,
1177,
358,
999,
364,
279,
10894,
6650,
23432,
537,
1492,
353,
2973,
358,
506,
3096,
358,
326,
3352,
18,
225,
632,
891,
13686,
30,
3352,
326,
23432,
537,
903,
506,
1087,
434,
632,
723,
13686,
30,
3352,
18,
7469,
3305,
632,
891,
23432,
537,
461,
30,
508,
434,
326,
23432,
537,
3832,
6650,
632,
723,
23432,
537,
461,
30,
609,
632,
891,
1177,
1585,
30,
1177,
533,
628,
326,
16100,
632,
723,
1177,
1585,
30,
533,
632,
891,
23432,
537,
2340,
9444,
30,
19496,
434,
326,
23432,
537,
3832,
6650,
632,
723,
23432,
537,
2340,
9444,
30,
8740,
18,
14877,
18,
7787,
694,
632,
891,
783,
7108,
30,
3803,
326,
394,
1177,
1410,
506,
603,
632,
723,
783,
7108,
30,
5244,
18,
1444,
632,
891,
3112,
30,
638,
309,
333,
1177,
1410,
999,
326,
3112,
1361,
652,
632,
723,
3112,
30,
1250,
632,
891,
28337,
30,
326,
508,
434,
326,
294,
3168,
1794,
3746,
358,
333,
23432,
537,
18,
225,
1021,
805,
353,
23432,
537,
461,
397,
4290,
3168,
11,
632,
723,
28337,
30,
533,
3536,
225,
309,
3112,
30,
309,
28337,
353,
599,
30,
28337,
273,
23432,
537,
461,
397,
4290,
3168,
11,
468,
336,
326,
783,
1084,
1794,
261,
430,
1281,
13,
775,
30,
1084,
1444,
273,
13686,
18,
588,
56,
303,
537,
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,
1024,
1444,
12,
15564,
16,
23432,
537,
461,
16,
1177,
1585,
16,
23432,
537,
2340,
9444,
16,
783,
7108,
16,
3112,
273,
1053,
16,
28337,
273,
599,
4672,
3536,
26128,
326,
1177,
358,
999,
364,
279,
10894,
6650,
23432,
537,
1492,
353,
2973,
358,
506,
3096,
358,
326,
3352,
18,
225,
632,
891,
13686,
30,
3352,
326,
23432,
537,
903,
506,
1087,
434,
632,
723,
13686,
30,
3352,
18,
7469,
3305,
632,
891,
23432,
537,
461,
30,
508,
434,
326,
23432,
537,
3832,
6650,
632,
723,
23432,
537,
461,
30,
609,
632,
891,
1177,
1585,
30,
1177,
533,
628,
326,
16100,
632,
723,
1177,
1585,
30,
533,
632,
891,
23432,
537,
2340,
9444,
30,
19496,
434,
326,
23432,
2
] |
result = jobDB.getJobAttributes(job,['JDL','Priority','Status'])
|
result = jobDB.getJobAttributes(job,['SystemPriority','Status'])
|
def findMatchInQueue (self, classAdAgent, queueID): """ Find the highest priority job in the Task Queue with queueID matching the classAdAgent requirements """
|
01ec48096a4898a90e8c548b22f6f8b762bc621c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/01ec48096a4898a90e8c548b22f6f8b762bc621c/MatcherHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2060,
382,
3183,
261,
2890,
16,
667,
1871,
3630,
16,
2389,
734,
4672,
3536,
225,
4163,
326,
9742,
4394,
1719,
316,
326,
3837,
7530,
598,
2389,
734,
3607,
326,
667,
1871,
3630,
8433,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2060,
382,
3183,
261,
2890,
16,
667,
1871,
3630,
16,
2389,
734,
4672,
3536,
225,
4163,
326,
9742,
4394,
1719,
316,
326,
3837,
7530,
598,
2389,
734,
3607,
326,
667,
1871,
3630,
8433,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def by_site(self, site=None):
|
def by_site(self, site=None, **kwargs):
|
def by_site(self, site=None): if not site: site = Site.objects.get_current() site = site.id
|
50b559d680a7cd213d3aee4406cb14f993d478d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/50b559d680a7cd213d3aee4406cb14f993d478d9/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
635,
67,
4256,
12,
2890,
16,
2834,
33,
7036,
16,
2826,
4333,
4672,
309,
486,
2834,
30,
2834,
273,
9063,
18,
6911,
18,
588,
67,
2972,
1435,
225,
2834,
273,
2834,
18,
350,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
635,
67,
4256,
12,
2890,
16,
2834,
33,
7036,
16,
2826,
4333,
4672,
309,
486,
2834,
30,
2834,
273,
9063,
18,
6911,
18,
588,
67,
2972,
1435,
225,
2834,
273,
2834,
18,
350,
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
] |
else: return "picture.py?ID=%s&size=%s" % (ID, size)
|
def link_picture(ID, size=None): 'return a link to a picture, optionally thumbnailed' if size: return "picture.py?ID=%s" % ID else: return "picture.py?ID=%s&size=%s" % (ID, size)
|
f983f2488d2484ba86f646cb0c65e3dd3e7b36bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/f983f2488d2484ba86f646cb0c65e3dd3e7b36bd/lib_link.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
21126,
12,
734,
16,
963,
33,
7036,
4672,
296,
2463,
279,
1692,
358,
279,
15406,
16,
8771,
11156,
82,
1708,
11,
309,
963,
30,
327,
315,
21126,
18,
2074,
35,
734,
5095,
87,
6,
738,
1599,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
21126,
12,
734,
16,
963,
33,
7036,
4672,
296,
2463,
279,
1692,
358,
279,
15406,
16,
8771,
11156,
82,
1708,
11,
309,
963,
30,
327,
315,
21126,
18,
2074,
35,
734,
5095,
87,
6,
738,
1599,
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
] |
|
return ''
|
return ''
|
def __str__(self): if not self.object._context: return self.name
|
f16cf978ff88ce3b744db58016d29e38fb92872c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f16cf978ff88ce3b744db58016d29e38fb92872c/report_sxw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
309,
486,
365,
18,
1612,
6315,
2472,
30,
327,
365,
18,
529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
309,
486,
365,
18,
1612,
6315,
2472,
30,
327,
365,
18,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if os.readlink(root).startswith(mp.root): pl.append( root[len('/proc/'):-len('/root')] )
|
try: if os.readlink(root).startswith(mp.root): pl.append( root[len('/proc/'):-len('/root')] ) except OSError, e: if e.errno == 2: continue
|
def umount(mp, mounts): if not mp in mounts: dbg("src=%s dest=%s root=%s not mounted" % (mp.src, mp.dest, mp.root)) return while mp in mounts: mounts.remove( mp ) fp = mp.root.pjoin(mp.dest) if cmd('umount %s' % fp, raise_exception=False) != 0: warn('Unmount of %s failed.' % fp) warn('Killing any processes still running in %s' % mp.root) pl = [] for root in glob.glob('/proc/[0-9][0-9]*/root'): if os.readlink(root).startswith(mp.root): pl.append( root[len('/proc/'):-len('/root')] ) _kill_pids(pl) if cmd('umount -f %s' % fp, raise_exception=False) != 0: err('Cound not unmount %s' % fp) return False if mp.rmdir: shutil.rmtree(fp) return True
|
215a58bcd254ecce7ab89250d01fafd46cdea24a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13627/215a58bcd254ecce7ab89250d01fafd46cdea24a/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9570,
592,
12,
1291,
16,
19399,
4672,
309,
486,
6749,
316,
19399,
30,
28966,
2932,
4816,
5095,
87,
1570,
5095,
87,
1365,
5095,
87,
486,
20919,
6,
738,
261,
1291,
18,
4816,
16,
6749,
18,
10488,
16,
6749,
18,
3085,
3719,
327,
225,
1323,
6749,
316,
19399,
30,
19399,
18,
4479,
12,
6749,
262,
225,
4253,
273,
6749,
18,
3085,
18,
84,
5701,
12,
1291,
18,
10488,
13,
309,
1797,
2668,
379,
592,
738,
87,
11,
738,
4253,
16,
1002,
67,
4064,
33,
8381,
13,
480,
374,
30,
1894,
2668,
984,
4778,
434,
738,
87,
2535,
1093,
738,
4253,
13,
1894,
2668,
47,
5789,
1281,
8488,
4859,
3549,
316,
738,
87,
11,
738,
6749,
18,
3085,
13,
886,
273,
5378,
364,
1365,
316,
4715,
18,
10581,
2668,
19,
9381,
19,
63,
20,
17,
29,
6362,
20,
17,
29,
65,
5549,
3085,
11,
4672,
775,
30,
309,
1140,
18,
896,
1232,
12,
3085,
2934,
17514,
1918,
12,
1291,
18,
3085,
4672,
886,
18,
6923,
12,
1365,
63,
1897,
2668,
19,
9381,
2473,
4672,
17,
1897,
2668,
19,
3085,
6134,
65,
262,
1335,
10002,
16,
425,
30,
225,
309,
425,
18,
19088,
422,
576,
30,
1324,
389,
16418,
67,
84,
2232,
12,
412,
13,
225,
309,
1797,
2668,
379,
592,
300,
74,
738,
87,
11,
738,
4253,
16,
1002,
67,
4064,
33,
8381,
13,
480,
374,
30,
393,
2668,
39,
772,
486,
25670,
738,
87,
11,
738,
4253,
13,
327,
1083,
309,
6749,
18,
8864,
1214,
30,
11060,
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,
9570,
592,
12,
1291,
16,
19399,
4672,
309,
486,
6749,
316,
19399,
30,
28966,
2932,
4816,
5095,
87,
1570,
5095,
87,
1365,
5095,
87,
486,
20919,
6,
738,
261,
1291,
18,
4816,
16,
6749,
18,
10488,
16,
6749,
18,
3085,
3719,
327,
225,
1323,
6749,
316,
19399,
30,
19399,
18,
4479,
12,
6749,
262,
225,
4253,
273,
6749,
18,
3085,
18,
84,
5701,
12,
1291,
18,
10488,
13,
309,
1797,
2668,
379,
592,
738,
87,
11,
738,
4253,
16,
1002,
67,
4064,
33,
8381,
13,
480,
374,
30,
1894,
2668,
984,
4778,
434,
738,
87,
2535,
1093,
738,
4253,
13,
1894,
2668,
47,
5789,
1281,
8488,
4859,
3549,
316,
738,
87,
11,
738,
6749,
18,
3085,
13,
886,
2
] |
return _has( op, values2, value1 )
|
values2 = values2.GetList( op, value1 ) for v in value1: if v not in values2: return 0 return 1
|
def _one_of( op, value1, values2, _has = _has ): return _has( op, values2, value1 ) #~ if __debug__: #~ if len( value1 ) != 1: #~ _Error("Must be a non-list option") #~ return value1[0] in values2.GetList( op, value1 )
|
1afeb62010e6e221e256dafff674f7c94958fce2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5931/1afeb62010e6e221e256dafff674f7c94958fce2/options.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
377,
389,
476,
67,
792,
12,
1061,
16,
460,
21,
16,
924,
22,
16,
389,
5332,
273,
389,
5332,
262,
30,
327,
389,
5332,
12,
1061,
16,
924,
22,
16,
460,
21,
262,
225,
468,
98,
309,
1001,
4148,
972,
30,
468,
98,
309,
562,
12,
460,
21,
262,
480,
404,
30,
468,
98,
389,
668,
2932,
10136,
506,
279,
1661,
17,
1098,
1456,
7923,
225,
468,
98,
327,
460,
21,
63,
20,
65,
316,
924,
22,
18,
967,
682,
12,
1061,
16,
460,
21,
262,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
389,
476,
67,
792,
12,
1061,
16,
460,
21,
16,
924,
22,
16,
389,
5332,
273,
389,
5332,
262,
30,
327,
389,
5332,
12,
1061,
16,
924,
22,
16,
460,
21,
262,
225,
468,
98,
309,
1001,
4148,
972,
30,
468,
98,
309,
562,
12,
460,
21,
262,
480,
404,
30,
468,
98,
389,
668,
2932,
10136,
506,
279,
1661,
17,
1098,
1456,
7923,
225,
468,
98,
327,
460,
21,
63,
20,
65,
316,
924,
22,
18,
967,
682,
12,
1061,
16,
460,
21,
262,
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
] |
errStr = "ReplicaManager.replicateAndRegister: Failed to get size registered for LFN."
|
errStr = "ReplicaManager.__initializeReplication: Failed to get size for LFN."
|
def __initializeReplication(self,lfn,destSE,): ########################################################### # Check that the destination storage element is sane and resolve its name destStorageElement = StorageElement(destSE) if not destStorageElement.isValid()['Value']: errStr = "ReplicaManager.replicateAndRegister: Failed to instantiate destination StorageElement." gLogger.error(errStr,destSE) return S_ERROR(errStr) destSE = storageElement.getStorageElementName()['Value'] ########################################################### # Get the LFN replicas from the file catalogue res = self.fileCatalogue.getReplicas(lfn) if not res['OK']: return res if not res['Value']['Successful'].has_key(lfn): errStr = "ReplicaManager.replicateAndRegister: Failed to get replicas for LFN." gLogger.error(errStr,"%s %s" % (lfn,res['Value']['Failed'][lfn])) return S_ERROR("%s %s" % (errStr,res['Value']['Failed'][lfn])) lfnReplicas = res['Value']['Successful'][lfn] ########################################################### # If the file catalogue size is zero fail the transfer res = self.fileCatalogue.getFileSize(lfn) if not res['OK']: return res if not res['Value']['Successful'].has_key(lfn): errStr = "ReplicaManager.replicateAndRegister: Failed to get size registered for LFN." gLogger.error(errStr,"%s %s" % (lfn,res['Value']['Failed'][lfn])) return S_ERROR("%s %s" % (errStr,res['Value']['Failed'][lfn])) catalogueSize = res['Value']['Successful'][lfn] if catalogueSize == 0: errStr = "ReplicaManager.replicateAndRegister: Registered file size is 0." gLogger.error(errStr,lfn) return S_ERROR(errStr) ########################################################### # Check whether the destination storage element is banned configStr = '/Resources/StorageElements/BannedTarget' bannedTargets = gConfig.getValue(configStr,[]) if destSE in bannedTargets: infoStr = "ReplicaManager.replicateAndRegister: Destination Storage Element is currently banned." gLogger.info(infoStr,destSE) return S_ERROR(infoStr) ########################################################### # Check whether the supplied source SE is sane configStr = '/Resources/StorageElements/BannedSource' bannedSources = gConfig.getValue(configStr,[]) if sourceSE: if not lfnReplicas.has_key(sourceSE): errStr = "ReplicaManager.replicateAndRegister: LFN does not exist at supplied source SE." gLogger.error(errStr,"%s %s" % (lfn,sourceSE)) return S_ERROR(errStr) elif sourceSE in bannedSources: infoStr = "ReplicaManager.replicateAndRegister: Supplied source Storage Element is currently banned." gLogger.info(infoStr,sourceSE) return S_ERROR(errStr) resDict = {'DestStorage':destStorageElement,'DestSE':destSE,'Replicas':lfnReplicas,'CatalogueSize':catalogueSize} return S_OK(resDict)
|
e8a6375e5f8805958dacbec0f1a4c6f0cfc1b690 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/e8a6375e5f8805958dacbec0f1a4c6f0cfc1b690/ReplicaManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11160,
8309,
12,
2890,
16,
80,
4293,
16,
10488,
1090,
16,
4672,
19709,
5516,
3228,
1189,
468,
2073,
716,
326,
2929,
2502,
930,
353,
30426,
471,
2245,
2097,
508,
1570,
3245,
1046,
273,
5235,
1046,
12,
10488,
1090,
13,
309,
486,
1570,
3245,
1046,
18,
26810,
1435,
3292,
620,
3546,
30,
393,
1585,
273,
315,
14222,
1318,
18,
266,
1780,
340,
1876,
3996,
30,
11175,
358,
10275,
2929,
5235,
1046,
1199,
314,
3328,
18,
1636,
12,
370,
1585,
16,
10488,
1090,
13,
327,
348,
67,
3589,
12,
370,
1585,
13,
1570,
1090,
273,
2502,
1046,
18,
588,
3245,
30584,
1435,
3292,
620,
3546,
19709,
5516,
3228,
1189,
468,
968,
326,
18803,
50,
21545,
628,
326,
585,
20833,
400,
273,
365,
18,
768,
9769,
344,
18,
588,
17248,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
21712,
14277,
29489,
5332,
67,
856,
12,
80,
4293,
4672,
393,
1585,
273,
315,
14222,
1318,
18,
266,
1780,
340,
1876,
3996,
30,
11175,
358,
336,
21545,
364,
18803,
50,
1199,
314,
3328,
18,
1636,
12,
370,
1585,
10837,
9,
87,
738,
87,
6,
738,
261,
80,
4293,
16,
455,
3292,
620,
21712,
2925,
3546,
63,
80,
4293,
22643,
327,
348,
67,
3589,
27188,
87,
738,
87,
6,
738,
261,
370,
1585,
16,
455,
3292,
620,
21712,
2925,
3546,
63,
80,
4293,
22643,
328,
4293,
17248,
273,
400,
3292,
620,
21712,
14277,
3546,
63,
80,
4293,
65,
19709,
5516,
3228,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11160,
8309,
12,
2890,
16,
80,
4293,
16,
10488,
1090,
16,
4672,
19709,
5516,
3228,
1189,
468,
2073,
716,
326,
2929,
2502,
930,
353,
30426,
471,
2245,
2097,
508,
1570,
3245,
1046,
273,
5235,
1046,
12,
10488,
1090,
13,
309,
486,
1570,
3245,
1046,
18,
26810,
1435,
3292,
620,
3546,
30,
393,
1585,
273,
315,
14222,
1318,
18,
266,
1780,
340,
1876,
3996,
30,
11175,
358,
10275,
2929,
5235,
1046,
1199,
314,
3328,
18,
1636,
12,
370,
1585,
16,
10488,
1090,
13,
327,
348,
67,
3589,
12,
370,
1585,
13,
1570,
1090,
273,
2502,
1046,
18,
588,
3245,
30584,
1435,
3292,
620,
3546,
19709,
5516,
3228,
1189,
468,
968,
326,
18803,
50,
21545,
628,
326,
585,
20833,
2
] |
f.write(command)
|
f.write(command.replace("%p", "$$.%p"))
|
def CreateBrowserWrapper(self, command, logfiles): """The program being run invokes Python or something else that can't stand to be valgrinded, and also invokes the Chrome browser. Set an environment variable to tell the program to prefix the Chrome commandline with a magic wrapper. Build the magic wrapper here. """ # We'll be storing the analyzed results of individual tests # in a temporary text file self._indirect_analyze_results_file = tempfile.mkstemp( dir=self.TMP_DIR, prefix="valgrind_analyze.", text=True)[1]
|
32f13524408684115e887b83166090e18418b679 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/32f13524408684115e887b83166090e18418b679/valgrind_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
9132,
3611,
12,
2890,
16,
1296,
16,
613,
2354,
4672,
3536,
1986,
5402,
3832,
1086,
18058,
6600,
578,
5943,
469,
716,
848,
1404,
12842,
358,
506,
1244,
3197,
267,
785,
16,
471,
2546,
18058,
326,
15159,
4748,
18,
225,
1000,
392,
3330,
2190,
358,
9276,
326,
5402,
358,
1633,
326,
15159,
28305,
598,
279,
8146,
4053,
18,
225,
3998,
326,
8146,
4053,
2674,
18,
3536,
468,
1660,
5614,
506,
15729,
326,
27465,
1686,
434,
7327,
7434,
468,
316,
279,
6269,
977,
585,
365,
6315,
728,
867,
67,
304,
9508,
67,
4717,
67,
768,
273,
13275,
18,
24816,
19781,
84,
12,
1577,
33,
2890,
18,
28259,
67,
4537,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
9132,
3611,
12,
2890,
16,
1296,
16,
613,
2354,
4672,
3536,
1986,
5402,
3832,
1086,
18058,
6600,
578,
5943,
469,
716,
848,
1404,
12842,
358,
506,
1244,
3197,
267,
785,
16,
471,
2546,
18058,
326,
15159,
4748,
18,
225,
1000,
392,
3330,
2190,
358,
9276,
326,
5402,
358,
1633,
326,
15159,
28305,
598,
279,
8146,
4053,
18,
225,
3998,
326,
8146,
4053,
2674,
18,
3536,
468,
1660,
5614,
506,
15729,
326,
27465,
1686,
434,
7327,
7434,
468,
316,
279,
6269,
977,
585,
365,
6315,
728,
867,
67,
304,
9508,
67,
4717,
67,
768,
273,
13275,
18,
24816,
19781,
84,
12,
1577,
33,
2890,
18,
28259,
67,
4537,
16,
1633,
1546,
1125,
3197,
728,
67,
304,
9508,
1199,
2
] |
stdout.write("Measuring shear2. Will write to '%s'\n" \
|
stdout.write("Measuring shear2. Will write to \n'%s'\n" \
|
def run_split(self): try: files=self.stat['output_files']
|
5484630f57054956277cf06d557bd0dfd8869220 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6617/5484630f57054956277cf06d557bd0dfd8869220/wlpipe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
4939,
12,
2890,
4672,
775,
30,
1390,
33,
2890,
18,
5642,
3292,
2844,
67,
2354,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
4939,
12,
2890,
4672,
775,
30,
1390,
33,
2890,
18,
5642,
3292,
2844,
67,
2354,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.is_total: print "%sLeft Team Goals Distribution:" % (header) for line in self.dump_score_map(indent, self.left_score_map) : print line print print "%sRight Team Goals Distribution:" % (header) for line in self.dump_score_map(indent, self.right_score_map) : print line print print "%sDiff Goals Distribution:" % (header) for line in self.dump_score_map(indent, self.diff_score_map) : print line print print
|
print "%sLeft Team Goals Distribution:" % (header) for line in self.dump_score_map(indent, self.left_score_map) : print line print print "%sRight Team Goals Distribution:" % (header) for line in self.dump_score_map(indent, self.right_score_map) : print line print print "%sDiff Goals Distribution:" % (header) for line in self.dump_score_map(indent, self.diff_score_map) : print line
|
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return
|
2de7dc9c2b01f64ae003edf0798f21745ad80d56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/2de7dc9c2b01f64ae003edf0798f21745ad80d56/process.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
3504,
4672,
309,
365,
18,
1883,
1648,
374,
30,
1172,
2213,
87,
1380,
30,
738,
72,
6,
738,
261,
3374,
16,
365,
18,
1883,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
3504,
4672,
309,
365,
18,
1883,
1648,
374,
30,
1172,
2213,
87,
1380,
30,
738,
72,
6,
738,
261,
3374,
16,
365,
18,
1883,
13,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Unselects any atom that has a bondpoint."\
|
"Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\
|
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThis( fileOpenText ) #### Save File #### fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)</b></p><br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) ############################################## # Edit Toolbar ############################################## #### Undo #### editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command to the active part. "\ "<b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) #### Redo #### editRedoText = "<u><b>Redo</b></u> (Ctrl + Y)</b></p><br> "\ "<p><img source=\"editRedo\"> <br>"\ "Re-applies the actions or commands on which you have used "\ "the Undo command. <b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) #### Cut #### editCutText = "<u><b>Cut</b></u> (Ctrl + X)</b></p><br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) #### Copy #### editCopyText = "<u><b>Copy</b></u> (Ctrl + C)</b></p><br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) #### Paste #### editPasteText = "<u><b>Paste</b></u> (Ctrl + V)</b></p><br> "\ "<p><img source=\"editPaste\"><br> "\ "When selecting this feature, you are placed in "\ "<b>Build Atom</b> mode where you may paste copies "\ "of clipboard objects into the model where ever you click."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) #### Delete #### editDeleteText = "<u><b>Delete</b></u> (DEL)</b></p><br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) ############################################## # View Toolbar ############################################## #### Home View #### setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) #### Fit to Window #### setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) #### Recenter #### setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) #### Zoom Tool #### setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) #### Pan Tool #### setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) #### Rotate Tool #### setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) #### Orthographic Projection #### setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) #### Perspective Projection #### setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) #### Normal To #### setViewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) #### Parallel To #### setViewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) #### Front View #### setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) #### Back View #### setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) #### Top View #### setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) #### Bottom View #### setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) #### Left View #### setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) #### Right View #### setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) #### Rotate View 180 #### setViewOppositeActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) #### Rotate View +90 #### setViewPlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) #### Rotate View -90 #### setViewMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) ############################################## # Grids Toolbar ############################################## #### Surface 100 #### orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) #### Surface 110 #### orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) #### Surface 111 #### orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) ############################################## # Molecular Display toolbar ############################################## #### Display Default #### dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>General</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) #### Display Invisible #### dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) #### Display Lines #### dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) #### Display Tubes #### dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) #### Display CPK #### dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode, also known as <b>\"Ball and Sticks\"</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) #### Display VdW #### dispVdWActionText = "<u><b>Display VdW</b></u><br>"\ "<p><img source=\"dispVdWAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Van der Waals</b> mode. Atoms are rendered as spheres with "\ "a size equal to the VdW radius. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>VdW</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispVdWAction", self.dispVdWAction.iconSet().pixmap() ) self.dispVdWAction.setWhatsThis(dispVdWActionText ) ############################################## # Select toolbar ############################################## #### Select All #### selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\ "<p><img source=\"selectAllAction\"><br> "\ "During <b>Select Atoms</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) #### Select None #### selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) #### Invert Selection #### selectInvertActionText = "<u><b>Invert Selection</b></u> <br> (Ctrl + Shift + I)</b></p><br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) #### Select Connected #### selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) #### Select Doubly #### selectDoublyActionText = "<u><b>Select Doubly</b></u></b></p><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection.</p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) #### Expand Selection #### selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)</b></p><br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) #### Contract Selection #### selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)</b></p><br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Unselects any atom that has a bondpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) ############################################## # Modify Toolbar ############################################## #### Minimize Selection #### modifyMinimizeSelActionText = "<u><b>Minimize Selection</b></u> (Ctrl + M)</b></p><br>"\ "<p><img source=\"modifyMinimizeSelAction\"><br> "\ "Arranges the atoms (<i>of the current selection</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeSelAction", self.modifyMinimizeSelAction.iconSet().pixmap() ) self.modifyMinimizeSelAction.setWhatsThis(modifyMinimizeSelActionText ) #### Minimize All #### modifyMinimizeAllActionText = "<u><b>Minimize All</b></u></p><br>"\ "<p><img source=\"modifyMinimizeAllAction\"><br> "\ "Arranges the atoms (<i>of the entire part</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeAllAction", self.modifyMinimizeAllAction.iconSet().pixmap() ) self.modifyMinimizeAllAction.setWhatsThis(modifyMinimizeAllActionText ) #### Hydrogenate #### modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> </b></p><br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) #### Dehydrogenate #### modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) #### Passivate #### modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)</b></p><br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) #### Stretch #### modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) #### Delete Bonds #### modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) #### Separate #### modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) #### Merge Chunks #### modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) #### Invert Chunks #### modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) #### Align to Common Axis #### modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) ############################################## # Tools Toolbar ############################################## #### Select Chunks #### toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) #### Select Atoms #### toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) #### Move Chunks #### toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) #### Build Atoms Tool #### toolsDepositAtomActionText = "<u><b>Build Tool</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Mode</b> allows you to build structures by depositing objects "\ "from the Molecular Modeling Kit, including atoms, clipboard objects and parts "\ "from the nanoENGINEER-1 Library.</p>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) #### Cookie Cutter #### toolsCookieCutActionText = "<u><b>Cookie Cutter Tool</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "Activates <b>Cookie Cutter</b> mode, allowing you to cut out 3-D shapes from a "\ "slab of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) #### Extrude Tool #### toolsExtrudeActionText = "<u><b>Extrude Tool</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) #### Fuse Chunks Tool #### toolsFuseChunksActionText = "<u><b>Fuse Chunks Tool</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two types of fusing are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints) "\ "of two or more chunks. Bonds are drawn (and undrawn) as chunks "\ "are moved together (and apart).<br><br>"\ "<b>Fuse Atoms</b> fuses overlapping atoms between chunks. Overlapping "\ "pairs of atoms are highlighted in green and blue to indicate which atoms "\ "will be fused.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) #### Fuse Atoms Tool #### toolsFuseAtomsActionText = "<u><b>Fuse Atoms Tool</b></u><!-- [[Feature:Fuse Atoms Mode]] (nim?) --><br>"\ "<p><img source=\" toolsFuseAtomsAction\"><br> "\ "<b>Fuse Atoms</b> fuses the overlapping atoms between two or more chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseAtomsAction", self. toolsFuseAtomsAction.iconSet().pixmap() ) self.toolsFuseAtomsAction.setWhatsThis( toolsFuseAtomsActionText ) #### Movie Player #### simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) #### Simulator #### simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) #### Plot Tool #### simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) ############################################## # Dashboard Buttons ############################################## #### Done #### toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) #### Cancel #### toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) #### Back up #### toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) #### Start Over #### toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) #### Add Layers #### ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) ############################################## # Jigs ############################################## #### Anchor #### jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches a <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Select Atoms</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) #### Rotary Motor #### jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) #### Linear Motor #### jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) #### Thermostat #### jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) #### Thermometer #### jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) #### ESP Image #### jigsESPImageActionText = "<u><b>ESP Image</b></u></b></p><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) #### Atom Set #### jigsAtomSetActionText = "<u><b>Atom Set</b></u></b></p><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Select Atoms</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) #### Measure Distance #### jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Select Atoms</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) #### Measure Angle #### jigsAngleActionText = "<u><b>Measure Angle Jig</b></u></b></p><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Select Atoms</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) #### Measure Dihedral #### jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Select Atoms</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) #### GAMESS Jig #### jigsGamessActionText = "<u><b>GAMESS Jig</b></u></b></p><br>"\ "<p><img source=\"jigsGamessAction\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Select Atoms</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGamessAction", self.jigsGamessAction.iconSet().pixmap() ) self.jigsGamessAction.setWhatsThis(jigsGamessActionText ) #### Grid Plane Jig #### jigsGridPlaneActionText = "<u><b>Grid Plane</b></u></b></p><br>"\ "<p><img source=\"jigsGridPlaneAction\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGridPlaneAction", self.jigsGridPlaneAction.iconSet().pixmap() ) self.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) ############################################## # Display ############################################## #### Display Object Color #### dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) #### Display Background Color #### dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) ############################################## # Help Toolbar ############################################## #### What's This #### helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) ############################################## # Datum Display Toolbar ############################################## #### Display Trihedron #### dispTrihedronText = "<u><b>Display Trihedron</b></u><br>"\ "<p><img source=\"dispTrihedron\"><br> "\ "Toggles the trihedron on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTrihedron", self.dispTrihedronAction.iconSet().pixmap() ) self.dispTrihedronAction.setWhatsThis(dispTrihedronText ) #### Display Csys #### dispCsysText = "<u><b>Display Csys Axis</b></u><br>"\ "<p><img source=\"dispCsys\"><br> "\ "Toggles the coordinate system axis on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCsys", self.dispCsysAction.iconSet().pixmap() ) self.dispCsysAction.setWhatsThis(dispCsysText ) #### Display Datum Lines #### dispDatumLinesText = "<u><b>Display Datum Lines</b></u><br>"\ "<p><img source=\"dispDatumLines\"><br> "\ "Toggles Datum Lines on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumLines", self.dispDatumLinesAction.iconSet().pixmap() ) self.dispDatumLinesAction.setWhatsThis(dispDatumLinesText ) #### Display Datum Planes #### dispDatumPlanesText = "<u><b>Display Datum Planes</b></u><br>"\ "<p><img source=\"dispDatumPlanes\"><br> "\ "Toggles Datum Planes on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumPlanes", self.dispDatumPlanesAction.iconSet().pixmap() ) self.dispDatumPlanesAction.setWhatsThis(dispDatumPlanesText ) #### Display Grid #### dispGridText = "<u><b>Display 3-D Grid</b></u><br>"\ "<p><img source=\"dispGrid\"><br> "\ "Toggles the 3-D grid on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispGrid", self.dispGridAction.iconSet().pixmap() ) self.dispGridAction.setWhatsThis(dispGridText )
|
a545a1b0d64dcd162d6904da8c5dd2bf4cfe4c7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a545a1b0d64dcd162d6904da8c5dd2bf4cfe4c7a/whatsthis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
34,
3678,
1387,
1757,
70,
4695,
89,
34,
565,
261,
12418,
397,
531,
13,
1757,
70,
4695,
84,
4438,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
768,
3190,
2412,
4438,
2848,
34,
1548,
315,
17778,
279,
394,
585,
1199,
64,
6823,
84,
2984,
225,
2238,
13320,
1830,
1733,
18,
1886,
1733,
7675,
542,
21816,
1458,
12,
315,
768,
3190,
3113,
365,
18,
768,
3678,
1803,
18,
3950,
694,
7675,
14861,
1458,
1435,
262,
225,
365,
18,
768,
3678,
1803,
18,
542,
2888,
2323,
2503,
12,
585,
3678,
1528,
262,
225,
11849,
7,
7074,
1387,
11849,
7,
225,
585,
4755,
1528,
273,
3532,
89,
4438,
70,
34,
4755,
1387,
1757,
70,
4695,
89,
34,
377,
261,
12418,
397,
348,
13,
1757,
70,
4695,
84,
4438,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
2354,
836,
2412,
4438,
2848,
34,
1548,
315,
13370,
326,
783,
585,
1199,
64,
6823,
84,
2984,
225,
2238,
13320,
1830,
1733,
18,
1886,
1733,
7675,
542,
21816,
1458,
12,
315,
2354,
836,
3113,
365,
18,
768,
4755,
1803,
18,
3950,
694,
7675,
14861,
1458,
1435,
262,
225,
365,
18,
768,
4755,
1803,
18,
542,
2888,
2323,
2503,
12,
585,
4755,
1528,
262,
225,
19709,
26487,
7,
468,
15328,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
34,
3678,
1387,
1757,
70,
4695,
89,
34,
565,
261,
12418,
397,
531,
13,
1757,
70,
4695,
84,
4438,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
768,
3190,
2412,
4438,
2848,
34,
1548,
315,
17778,
279,
394,
585,
1199,
64,
6823,
84,
2984,
225,
2238,
13320,
1830,
1733,
18,
1886,
1733,
7675,
542,
21816,
1458,
12,
315,
768,
3190,
3113,
365,
18,
768,
3678,
1803,
18,
3950,
694,
7675,
14861,
1458,
1435,
262,
225,
365,
18,
768,
3678,
1803,
18,
542,
2888,
2
] |
'illegal value in %-th argument of internal syev'%(-info)
|
'illegal value in %-th argument of internal syev'%(-info)
|
def eigh(a,lower=1,eigvals_only=0,overwrite_a=0): """ Solve real symmetric or complex hermitian eigenvalue problem. Inputs: a -- A hermitian N x N matrix. lower -- values in a are read from lower triangle [1: UPLO='L' (default) / 0: UPLO='U'] eigvals_only -- don't compute eigenvectors. overwrite_a -- content of a may be destroyed Outputs: w,v -- w: eigenvalues, v: eigenvectors [for eigvals_only == False] w -- eigenvalues [for eigvals_only == True (default)]. Definitions: a * v[:,i] = w[i] * vr[:,i] v.H * v = identity """ if eigvals_only or overwrite_a: a1 = asarray_chkfinite(a) overwrite_a = overwrite_a or (_datanotshared(a1,a)) else: a1 = array(a) if (a1.dtype.char in typecodes['AllFloat']) and not isfinite(a1).all(): raise ValueError, "array must not contain infs or NaNs" overwrite_a = 1 if len(a1.shape) != 2 or a1.shape[0] != a1.shape[1]: raise ValueError, 'expected square matrix' if a1.dtype.char in 'FD': heev, = get_lapack_funcs(('heev',),(a1,)) if heev.module_name[:7] == 'flapack': lwork = calc_lwork.heev(heev.prefix,a1.shape[0],lower) w,v,info = heev(a1,lwork = lwork, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) else: # 'clapack' w,v,info = heev(a1, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) if info<0: raise ValueError,\ 'illegal value in %-th argument of internal heev'%(-info) if info>0: raise LinAlgError,"eig algorithm did not converge" else: # a1.dtype.char in 'fd': syev, = get_lapack_funcs(('syev',),(a1,)) if syev.module_name[:7] == 'flapack': lwork = calc_lwork.syev(syev.prefix,a1.shape[0],lower) w,v,info = syev(a1,lwork = lwork, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) else: # 'clapack' w,v,info = syev(a1, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) if info<0: raise ValueError,\ 'illegal value in %-th argument of internal syev'%(-info) if info>0: raise LinAlgError,"eig algorithm did not converge" if eigvals_only: return w return w, v
|
cd400c1c2f5100b19fcf298f15e60d171a9932cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cd400c1c2f5100b19fcf298f15e60d171a9932cb/decomp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
2031,
12,
69,
16,
8167,
33,
21,
16,
22663,
4524,
67,
3700,
33,
20,
16,
19274,
67,
69,
33,
20,
4672,
3536,
348,
5390,
2863,
15108,
578,
7233,
366,
1035,
305,
2779,
16719,
1132,
6199,
18,
225,
24472,
30,
225,
279,
5411,
1493,
432,
366,
1035,
305,
2779,
423,
619,
423,
3148,
18,
2612,
3639,
1493,
924,
316,
279,
854,
855,
628,
2612,
15002,
306,
21,
30,
7376,
1502,
2218,
48,
11,
261,
1886,
13,
342,
374,
30,
7376,
1502,
2218,
57,
3546,
11043,
4524,
67,
3700,
1493,
2727,
1404,
3671,
11043,
29098,
18,
6156,
67,
69,
225,
1493,
913,
434,
279,
2026,
506,
17689,
225,
26168,
30,
225,
341,
16,
90,
377,
1493,
341,
30,
29831,
16,
331,
30,
11043,
29098,
306,
1884,
11043,
4524,
67,
3700,
422,
1083,
65,
341,
4202,
1493,
29831,
306,
1884,
11043,
4524,
67,
3700,
422,
1053,
261,
1886,
13,
8009,
225,
10849,
87,
30,
225,
279,
380,
331,
10531,
16,
77,
65,
273,
341,
63,
77,
65,
380,
16612,
10531,
16,
77,
65,
331,
18,
44,
380,
331,
273,
4215,
225,
3536,
309,
11043,
4524,
67,
3700,
578,
6156,
67,
69,
30,
279,
21,
273,
10455,
67,
27038,
9551,
12,
69,
13,
6156,
67,
69,
273,
6156,
67,
69,
578,
261,
67,
3404,
304,
352,
11574,
12,
69,
21,
16,
69,
3719,
469,
30,
279,
21,
273,
526,
12,
69,
13,
309,
261,
69,
21,
18,
8972,
18,
3001,
316,
618,
7000,
3292,
1595,
4723,
19486,
471,
486,
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,
425,
2031,
12,
69,
16,
8167,
33,
21,
16,
22663,
4524,
67,
3700,
33,
20,
16,
19274,
67,
69,
33,
20,
4672,
3536,
348,
5390,
2863,
15108,
578,
7233,
366,
1035,
305,
2779,
16719,
1132,
6199,
18,
225,
24472,
30,
225,
279,
5411,
1493,
432,
366,
1035,
305,
2779,
423,
619,
423,
3148,
18,
2612,
3639,
1493,
924,
316,
279,
854,
855,
628,
2612,
15002,
306,
21,
30,
7376,
1502,
2218,
48,
11,
261,
1886,
13,
342,
374,
30,
7376,
1502,
2218,
57,
3546,
11043,
4524,
67,
3700,
1493,
2727,
1404,
3671,
11043,
29098,
18,
6156,
67,
69,
225,
1493,
913,
434,
279,
2026,
506,
17689,
225,
26168,
30,
225,
341,
16,
90,
377,
1493,
341,
30,
29831,
2
] |
module = imp.new_module(name)
|
def bench_cache(import_, repeat, number): """Measure the time it takes to pull from sys.modules.""" name = '<benchmark import>' with util.uncache(name): module = imp.new_module(name) sys.modules[name] = module runs = [] for x in range(repeat): start_time = timeit.default_timer() for y in range(number): import_(name) end_time = timeit.default_timer() runs.append(end_time - start_time) return min(runs)
|
2b0aa4e1c6561dbe76219c072b52f2db13e0aa6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/2b0aa4e1c6561dbe76219c072b52f2db13e0aa6f/benchmark.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22499,
67,
2493,
12,
5666,
67,
16,
7666,
16,
1300,
4672,
3536,
7197,
326,
813,
518,
5530,
358,
6892,
628,
2589,
18,
6400,
12123,
508,
273,
2368,
70,
9737,
1930,
1870,
598,
1709,
18,
551,
807,
12,
529,
4672,
2589,
18,
6400,
63,
529,
65,
273,
1605,
7597,
273,
5378,
364,
619,
316,
1048,
12,
9374,
4672,
787,
67,
957,
273,
813,
305,
18,
1886,
67,
12542,
1435,
364,
677,
316,
1048,
12,
2696,
4672,
1930,
67,
12,
529,
13,
679,
67,
957,
273,
813,
305,
18,
1886,
67,
12542,
1435,
7597,
18,
6923,
12,
409,
67,
957,
300,
787,
67,
957,
13,
327,
1131,
12,
20152,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22499,
67,
2493,
12,
5666,
67,
16,
7666,
16,
1300,
4672,
3536,
7197,
326,
813,
518,
5530,
358,
6892,
628,
2589,
18,
6400,
12123,
508,
273,
2368,
70,
9737,
1930,
1870,
598,
1709,
18,
551,
807,
12,
529,
4672,
2589,
18,
6400,
63,
529,
65,
273,
1605,
7597,
273,
5378,
364,
619,
316,
1048,
12,
9374,
4672,
787,
67,
957,
273,
813,
305,
18,
1886,
67,
12542,
1435,
364,
677,
316,
1048,
12,
2696,
4672,
1930,
67,
12,
529,
13,
679,
67,
957,
273,
813,
305,
18,
1886,
67,
12542,
1435,
7597,
18,
6923,
12,
409,
67,
957,
300,
787,
67,
957,
13,
327,
1131,
12,
20152,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
path = path.replace('/', os.sep)
|
path = self._absnorm(path)
|
def should_not_exist(self, path, msg=None): """Fails if the given path (file or directory) exists.
|
4e92df2860c270b97129fb5577b1caec2faab8a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/4e92df2860c270b97129fb5577b1caec2faab8a2/OperatingSystem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
902,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
309,
326,
864,
589,
261,
768,
578,
1867,
13,
1704,
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,
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
3536,
30800,
309,
326,
864,
589,
261,
768,
578,
1867,
13,
1704,
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
] |
wx.CallAfter(self.slider.SetValue,(0,))
|
wx.CallAfter(self.slider.SetValue,0)
|
def SetItem(self, item, play = True): self.item = item if DEBUG: print >>sys.stderr,"embedplay: Telling player to play",item.getPath(),currentThread().getName() self.mediactrl.Load(item.getPath()) self.update = True wx.CallAfter(self.slider.SetValue,(0,)) if self.timer is None: self.timer = wx.Timer(self) self.Bind(wx.EVT_TIMER, self.updateSlider) self.timer.Start(200) if play: self.playtimer = DelayTimer(self)
|
3b83d07a1feca5b7d2c6ef220946520ac8c053be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/3b83d07a1feca5b7d2c6ef220946520ac8c053be/EmbeddedPlayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1180,
12,
2890,
16,
761,
16,
6599,
273,
1053,
4672,
365,
18,
1726,
273,
761,
309,
6369,
30,
1172,
1671,
9499,
18,
11241,
10837,
8483,
1601,
30,
29860,
310,
7291,
358,
6599,
3113,
1726,
18,
588,
743,
9334,
2972,
3830,
7675,
17994,
1435,
365,
18,
5660,
621,
1321,
18,
2563,
12,
1726,
18,
588,
743,
10756,
365,
18,
2725,
273,
1053,
7075,
18,
1477,
4436,
12,
2890,
18,
28372,
18,
694,
620,
16,
20,
13,
225,
309,
365,
18,
12542,
353,
599,
30,
365,
18,
12542,
273,
7075,
18,
6777,
12,
2890,
13,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
56,
31582,
16,
365,
18,
2725,
21824,
13,
365,
18,
12542,
18,
1685,
12,
6976,
13,
225,
309,
6599,
30,
365,
18,
1601,
12542,
273,
20165,
6777,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1180,
12,
2890,
16,
761,
16,
6599,
273,
1053,
4672,
365,
18,
1726,
273,
761,
309,
6369,
30,
1172,
1671,
9499,
18,
11241,
10837,
8483,
1601,
30,
29860,
310,
7291,
358,
6599,
3113,
1726,
18,
588,
743,
9334,
2972,
3830,
7675,
17994,
1435,
365,
18,
5660,
621,
1321,
18,
2563,
12,
1726,
18,
588,
743,
10756,
365,
18,
2725,
273,
1053,
7075,
18,
1477,
4436,
12,
2890,
18,
28372,
18,
694,
620,
16,
20,
13,
225,
309,
365,
18,
12542,
353,
599,
30,
365,
18,
12542,
273,
7075,
18,
6777,
12,
2890,
13,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
56,
31582,
16,
365,
18,
2725,
21824,
13,
365,
18,
12542,
18,
1685,
12,
6976,
2
] |
def report(types = [], notifyFunc = None, dConfigParam = []):
|
def report(types = [], prefix = '', notifyFunc = None, dConfigParam = []): """ This is a decorator generating function. Use is similar to a @decorator, except you must be sure to call it as a function. It actually returns the decorator which is then used to transform your decorated function. Confusing at first, I know. Decoration occurs at function definition time. If __dev__ is not defined, or resolves to False, this function has no effect and no wrapping/transform occurs. So in production, it's as if the report has been asserted out. Parameters:: types : A subset list of ['timeStamp', 'frameCount', 'avLocation'] This allows you to specify certain common bits of info. args: Prints the arguments as they were passed to this function. timeStamp: Adds the current frame time to the output. frameCount: Adds the current frame count to the output. Usually cleaner than the timeStamp output. avLocation: Adds the localAvatar's network location to the output. Useful for interest debugging. prefix: Optional string to prepend to output, just before the function. Allows for easy grepping. notifyFunc: A notify function such as info, debug, warning, etc. By default the report will be printed to stdout. This will allow you send the report to a designated 'notify' output. dConfigParams: A list of Config.prc string variables. By default the report will always print. If you specify this param, it will only print if one of the specified config strings resolve to True. """
|
def report(types = [], notifyFunc = None, dConfigParam = []): def decorator(f): return f try: if not __dev__: return decorator except NameError,e: return decorator def decorator(f): def wrap(*args,**kwargs): aargs = args kkwargs = kwargs rArgs = [`x`+', ' for x in args] + [ x + ' = ' + '%s, ' % `y` for x,y in kwargs.items()] if not rArgs: rArgs = '()' else: rArgs = '(' + reduce(str.__add__,rArgs)[:-2] + ')' outStr = f.func_name + rArgs if 'frameCount' in types: outStr = '%8d : %s' % (globalClock.getFrameCount(), outStr) if 'timeStamp' in types: outStr = '%5.3f : %s' % (globalClock.getFrameTime(), outStr) if 'avLocation' in types: outStr = '%s : %s' % (outStr, str(localAvatar.getLocation())) # determine whether we should print doPrint = False if not dConfigParam: doPrint = True else: if isinstance(dConfigParam,str): if(config.GetBool(dConfigParam, 0)): doPrint = True elif isinstance(dConfigParam, (list,tuple)): for param in dConfigParam: if(config.GetBool(dConfigParam, 0)): doPrint = True break if doPrint: if notifyFunc: notifyFunc(outStr) else: print outStr if 'printInterests' in types: base.cr.printInterestSets() if 'stackTrace' in types: print StackTrace() return f(*args,**kwargs) wrap.func_name = f.func_name wrap.func_dict = f.func_dict wrap.func_doc = f.func_doc return wrap return decorator
|
08bb94b419a748e9baa0f1ca8b24676bb1e14d7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/08bb94b419a748e9baa0f1ca8b24676bb1e14d7e/PythonUtil.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2352,
273,
5378,
16,
1633,
273,
10226,
5066,
2622,
273,
599,
16,
302,
809,
786,
273,
5378,
4672,
3536,
1220,
353,
279,
7367,
12516,
445,
18,
225,
2672,
353,
7281,
358,
279,
632,
19142,
16,
1335,
1846,
1297,
506,
3071,
358,
745,
518,
487,
279,
445,
18,
2597,
6013,
1135,
326,
7367,
1492,
353,
1508,
1399,
358,
2510,
3433,
13816,
445,
18,
9675,
9940,
622,
1122,
16,
467,
5055,
18,
225,
3416,
22226,
9938,
622,
445,
2379,
813,
18,
225,
971,
1001,
5206,
972,
353,
486,
2553,
16,
578,
17385,
358,
1083,
16,
333,
445,
711,
1158,
5426,
471,
1158,
14702,
19,
6547,
9938,
18,
225,
6155,
316,
12449,
16,
518,
1807,
487,
309,
326,
2605,
711,
2118,
1815,
329,
596,
18,
225,
7012,
2866,
1953,
294,
432,
7931,
666,
434,
10228,
957,
8860,
2187,
296,
3789,
1380,
2187,
296,
842,
2735,
3546,
1220,
5360,
1846,
358,
4800,
8626,
2975,
4125,
434,
1123,
18,
225,
833,
30,
3038,
87,
326,
1775,
487,
2898,
4591,
2275,
358,
333,
445,
18,
18198,
30,
225,
15605,
326,
783,
2623,
813,
358,
326,
876,
18,
225,
2623,
1380,
30,
15605,
326,
783,
2623,
1056,
358,
326,
876,
18,
29785,
25933,
2353,
326,
18198,
876,
18,
225,
1712,
2735,
30,
15605,
326,
1191,
23999,
1807,
2483,
2117,
358,
326,
876,
18,
225,
19256,
364,
16513,
10450,
18,
225,
1633,
30,
4055,
533,
358,
8254,
358,
876,
16,
2537,
1865,
326,
445,
18,
25619,
364,
12779,
23366,
1382,
18,
5066,
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,
2605,
12,
2352,
273,
5378,
16,
1633,
273,
10226,
5066,
2622,
273,
599,
16,
302,
809,
786,
273,
5378,
4672,
3536,
1220,
353,
279,
7367,
12516,
445,
18,
225,
2672,
353,
7281,
358,
279,
632,
19142,
16,
1335,
1846,
1297,
506,
3071,
358,
745,
518,
487,
279,
445,
18,
2597,
6013,
1135,
326,
7367,
1492,
353,
1508,
1399,
358,
2510,
3433,
13816,
445,
18,
9675,
9940,
622,
1122,
16,
467,
5055,
18,
225,
3416,
22226,
9938,
622,
445,
2379,
813,
18,
225,
971,
1001,
5206,
972,
353,
486,
2553,
16,
578,
17385,
358,
1083,
16,
333,
445,
711,
1158,
5426,
471,
1158,
14702,
19,
6547,
9938,
18,
225,
6155,
316,
12449,
16,
518,
1807,
487,
309,
326,
2605,
2
] |
None, [cty.POINTER(FL_OBJECT), cty.c_int],
|
None, [cty.POINTER(FL_OBJECT), cty.c_int],
|
def fl_set_slider_size(ob, size): """ fl_set_slider_size(ob, size) """ _fl_set_slider_size(ob, size)
|
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,
542,
67,
28372,
67,
1467,
12,
947,
16,
963,
4672,
3536,
1183,
67,
542,
67,
28372,
67,
1467,
12,
947,
16,
963,
13,
3536,
225,
389,
2242,
67,
542,
67,
28372,
67,
1467,
12,
947,
16,
963,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
67,
28372,
67,
1467,
12,
947,
16,
963,
4672,
3536,
1183,
67,
542,
67,
28372,
67,
1467,
12,
947,
16,
963,
13,
3536,
225,
389,
2242,
67,
542,
67,
28372,
67,
1467,
12,
947,
16,
963,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, dictionary, files, offset1, offset2, article_offset, length): self.files = files
|
def __init__(self, dictionary, file, offset1, offset2, article_offset, length): self.file = file
|
def __init__(self, dictionary, files, offset1, offset2, article_offset, length): self.files = files self.offset1 = offset1 self.offset2 = offset2 self.article_offset = article_offset self.length = length self.dictionary = dictionary
|
eb44c367d03b2e2bdc9f627ebb131b64fa4ecc98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/eb44c367d03b2e2bdc9f627ebb131b64fa4ecc98/dictionary.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3880,
16,
585,
16,
1384,
21,
16,
1384,
22,
16,
7559,
67,
3348,
16,
769,
4672,
365,
18,
768,
273,
585,
365,
18,
3348,
21,
273,
1384,
21,
365,
18,
3348,
22,
273,
1384,
22,
365,
18,
11480,
67,
3348,
273,
7559,
67,
3348,
365,
18,
2469,
273,
769,
365,
18,
15556,
273,
3880,
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,
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,
2738,
972,
12,
2890,
16,
3880,
16,
585,
16,
1384,
21,
16,
1384,
22,
16,
7559,
67,
3348,
16,
769,
4672,
365,
18,
768,
273,
585,
365,
18,
3348,
21,
273,
1384,
21,
365,
18,
3348,
22,
273,
1384,
22,
365,
18,
11480,
67,
3348,
273,
7559,
67,
3348,
365,
18,
2469,
273,
769,
365,
18,
15556,
273,
3880,
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
] |
const('ababcabc').find('b', i, j) * 100)
|
const('ababcabc').find(const('b'), i, j) * 100)
|
def fn(i, j): assert i >= 0 assert j >= 0 return (const('ababcabc').find(const('abc'), i, j) + const('ababcabc').find('b', i, j) * 100)
|
83951699039faddb08834f85d7de7fefff625b72 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/83951699039faddb08834f85d7de7fefff625b72/test_rstr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
12,
77,
16,
525,
4672,
1815,
277,
1545,
374,
1815,
525,
1545,
374,
327,
261,
10248,
2668,
378,
18947,
18947,
16063,
4720,
12,
10248,
2668,
18947,
19899,
277,
16,
525,
13,
397,
1866,
2668,
378,
18947,
18947,
16063,
4720,
2668,
70,
2187,
277,
16,
525,
13,
380,
2130,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
12,
77,
16,
525,
4672,
1815,
277,
1545,
374,
1815,
525,
1545,
374,
327,
261,
10248,
2668,
378,
18947,
18947,
16063,
4720,
12,
10248,
2668,
18947,
19899,
277,
16,
525,
13,
397,
1866,
2668,
378,
18947,
18947,
16063,
4720,
2668,
70,
2187,
277,
16,
525,
13,
380,
2130,
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
] |
d = error_dialog(self.window, _('Error reading file'),
|
d = error_dialog(self.parent(), _('Error reading file'),
|
def select_cover(self): files = choose_images(self, 'change cover dialog', _('Choose cover for ') + unicode(self.title.text())) if not files: return _file = files[0] if _file: _file = os.path.abspath(_file) if not os.access(_file, os.R_OK): d = error_dialog(self.window, _('Cannot read'), _('You do not have permission to read the file: ') + _file) d.exec_() return cf, cover = None, None try: cf = open(_file, "rb") cover = cf.read() except IOError, e: d = error_dialog(self.window, _('Error reading file'), _("<p>There was an error reading from file: <br /><b>") + _file + "</b></p><br />"+str(e)) d.exec_() if cover: pix = QPixmap() pix.loadFromData(cover) if pix.isNull(): d = error_dialog(self.window, _('Error reading file'), _file + _(" is not a valid picture")) d.exec_() else: self.cover_path.setText(_file) self.cover.setPixmap(pix) self.cover_changed = True self.cpixmap = pix self.cover_data = cover
|
a5f2c1fbb1f429acbd11ca56eb1d3025914e10da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a5f2c1fbb1f429acbd11ca56eb1d3025914e10da/metadata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
3165,
12,
2890,
4672,
1390,
273,
9876,
67,
7369,
12,
2890,
16,
296,
3427,
5590,
6176,
2187,
389,
2668,
24529,
5590,
364,
8624,
397,
5252,
12,
2890,
18,
2649,
18,
955,
1435,
3719,
309,
486,
1390,
30,
327,
389,
768,
273,
1390,
63,
20,
65,
309,
389,
768,
30,
389,
768,
273,
1140,
18,
803,
18,
5113,
803,
24899,
768,
13,
309,
486,
1140,
18,
3860,
24899,
768,
16,
1140,
18,
54,
67,
3141,
4672,
302,
273,
555,
67,
12730,
12,
2890,
18,
5668,
16,
389,
2668,
4515,
855,
19899,
389,
2668,
6225,
741,
486,
1240,
4132,
358,
855,
326,
585,
30,
8624,
397,
389,
768,
13,
302,
18,
4177,
67,
1435,
327,
6080,
16,
5590,
273,
599,
16,
599,
775,
30,
6080,
273,
1696,
24899,
768,
16,
315,
6731,
7923,
5590,
273,
6080,
18,
896,
1435,
1335,
8340,
16,
425,
30,
302,
273,
555,
67,
12730,
12,
2890,
18,
2938,
9334,
389,
2668,
668,
6453,
585,
19899,
389,
2932,
32,
84,
34,
9828,
1703,
392,
555,
6453,
628,
585,
30,
411,
2848,
342,
4438,
70,
2984,
13,
397,
389,
768,
397,
6823,
70,
4695,
84,
4438,
2848,
28505,
15,
701,
12,
73,
3719,
302,
18,
4177,
67,
1435,
309,
5590,
30,
11871,
273,
2238,
21816,
1458,
1435,
11871,
18,
945,
1265,
751,
12,
3165,
13,
309,
11871,
18,
291,
2041,
13332,
302,
273,
555,
67,
12730,
12,
2890,
18,
2938,
9334,
389,
2668,
668,
6453,
585,
19899,
389,
768,
397,
389,
2932,
353,
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,
2027,
67,
3165,
12,
2890,
4672,
1390,
273,
9876,
67,
7369,
12,
2890,
16,
296,
3427,
5590,
6176,
2187,
389,
2668,
24529,
5590,
364,
8624,
397,
5252,
12,
2890,
18,
2649,
18,
955,
1435,
3719,
309,
486,
1390,
30,
327,
389,
768,
273,
1390,
63,
20,
65,
309,
389,
768,
30,
389,
768,
273,
1140,
18,
803,
18,
5113,
803,
24899,
768,
13,
309,
486,
1140,
18,
3860,
24899,
768,
16,
1140,
18,
54,
67,
3141,
4672,
302,
273,
555,
67,
12730,
12,
2890,
18,
5668,
16,
389,
2668,
4515,
855,
19899,
389,
2668,
6225,
741,
486,
1240,
4132,
358,
855,
326,
585,
30,
8624,
397,
389,
768,
13,
302,
18,
4177,
67,
1435,
327,
6080,
16,
5590,
2
] |
ctx.set_ciphers("^$:,;?*'dorothyx")
|
ctx.set_ciphers("xyzzy")
|
def test_ciphers(self): ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) ctx.set_ciphers("ALL") ctx.set_ciphers("DEFAULT") with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"): ctx.set_ciphers("^$:,;?*'dorothyx")
|
471f9296d96adcfa3297fd9d41f0b07f0aab2d75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/471f9296d96adcfa3297fd9d41f0b07f0aab2d75/test_ssl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3449,
76,
414,
12,
2890,
4672,
1103,
273,
5832,
18,
6745,
1042,
12,
8157,
18,
16850,
67,
9905,
90,
21,
13,
1103,
18,
542,
67,
3449,
76,
414,
2932,
4685,
7923,
1103,
18,
542,
67,
3449,
76,
414,
2932,
5280,
7923,
598,
365,
18,
11231,
12649,
6141,
14621,
12,
8157,
18,
6745,
668,
16,
315,
2279,
5867,
848,
506,
3170,
6,
4672,
1103,
18,
542,
67,
3449,
76,
414,
2932,
66,
8,
30,
16,
31,
35,
4035,
72,
280,
10370,
93,
92,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3449,
76,
414,
12,
2890,
4672,
1103,
273,
5832,
18,
6745,
1042,
12,
8157,
18,
16850,
67,
9905,
90,
21,
13,
1103,
18,
542,
67,
3449,
76,
414,
2932,
4685,
7923,
1103,
18,
542,
67,
3449,
76,
414,
2932,
5280,
7923,
598,
365,
18,
11231,
12649,
6141,
14621,
12,
8157,
18,
6745,
668,
16,
315,
2279,
5867,
848,
506,
3170,
6,
4672,
1103,
18,
542,
67,
3449,
76,
414,
2932,
66,
8,
30,
16,
31,
35,
4035,
72,
280,
10370,
93,
92,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
package_dir = {idlelib:'.'},
|
package_dir = {idlelib: package_dir},
|
def _bytecode_filenames(self, files): files = [n for n in files if n.endswith('.py')] return install_lib._bytecode_filenames(self,files)
|
448165dc450c349b1322045e675e20df1d0322e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/448165dc450c349b1322045e675e20df1d0322e4/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1637,
16651,
67,
19875,
12,
2890,
16,
1390,
4672,
1390,
273,
306,
82,
364,
290,
316,
1390,
309,
290,
18,
5839,
1918,
2668,
18,
2074,
6134,
65,
327,
3799,
67,
2941,
6315,
1637,
16651,
67,
19875,
12,
2890,
16,
2354,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1637,
16651,
67,
19875,
12,
2890,
16,
1390,
4672,
1390,
273,
306,
82,
364,
290,
316,
1390,
309,
290,
18,
5839,
1918,
2668,
18,
2074,
6134,
65,
327,
3799,
67,
2941,
6315,
1637,
16651,
67,
19875,
12,
2890,
16,
2354,
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
] |
"should_run": iinfo.admin_up,
|
"admin_up": iinfo.admin_up,
|
def _ComputeClusterData(self): """Compute the generic allocator input data.
|
1325da74059c5971c0ff0ef1cbd44892de98e9a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/1325da74059c5971c0ff0ef1cbd44892de98e9a7/cmdlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7018,
3629,
751,
12,
2890,
4672,
3536,
7018,
326,
5210,
26673,
810,
501,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7018,
3629,
751,
12,
2890,
4672,
3536,
7018,
326,
5210,
26673,
810,
501,
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
] |
self.resultbuffer1.set_text('')
|
buf.set_text('')
|
def enter_callback(self, widget, data = None): '''Submit entrybox text for translation.'''
|
882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py
|
[
1,
8585,
326,
22398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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
67,
3394,
12,
2890,
16,
3604,
16,
501,
273,
599,
4672,
9163,
11620,
1241,
2147,
977,
364,
4794,
1093,
6309,
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
] |
_in_subset = lambda subset, node: not subset or node in subset
|
def _inclusiveNamespacePrefixes(node, context, unsuppressedPrefixes): '''http://www.w3.org/TR/xml-exc-c14n/ InclusiveNamespaces PrefixList parameter, which lists namespace prefixes that are handled in the manner described by the Canonical XML Recommendation''' inclusive = [] if node.prefix: usedPrefixes = ['xmlns:%s' %node.prefix] else: usedPrefixes = ['xmlns'] for a in _attrs(node): if a.nodeName.startswith('xmlns') or not a.prefix: continue usedPrefixes.append('xmlns:%s' %a.prefix) for attr in context: n = attr.nodeName if n in unsuppressedPrefixes: inclusive.append(attr) elif n.startswith('xmlns:') and n[6:] in unsuppressedPrefixes: inclusive.append(attr) elif n.startswith('xmlns') and n[5:] in unsuppressedPrefixes: inclusive.append(attr) elif attr.nodeName in usedPrefixes: inclusive.append(attr) return inclusive _in_subset = lambda subset, node: subset is None or node in subset
|
def _utilized(n, node, other_attrs, unsuppressedPrefixes): '''_utilized(n, node, other_attrs, unsuppressedPrefixes) -> boolean Return true if that nodespace is utilized within the node''' if n.startswith('xmlns:'): n = n[6:] elif n.startswith('xmlns'): n = n[5:] if n == node.prefix or n in unsuppressedPrefixes: return 1 for attr in other_attrs: if n == attr.prefix: return 1 return 0
|
eac45ef0ae4c46468fce1a5d88da06c712dbb153 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/eac45ef0ae4c46468fce1a5d88da06c712dbb153/c14n.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1367,
1235,
12,
82,
16,
756,
16,
1308,
67,
7039,
16,
640,
2859,
10906,
11700,
4672,
9163,
67,
1367,
1235,
12,
82,
16,
756,
16,
1308,
67,
7039,
16,
640,
2859,
10906,
11700,
13,
317,
1250,
2000,
638,
309,
716,
2199,
909,
353,
1709,
1235,
3470,
326,
756,
26418,
225,
309,
290,
18,
17514,
1918,
2668,
16741,
2497,
4672,
290,
273,
290,
63,
26,
26894,
1327,
290,
18,
17514,
1918,
2668,
16741,
11,
4672,
290,
273,
290,
63,
25,
26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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,
1367,
1235,
12,
82,
16,
756,
16,
1308,
67,
7039,
16,
640,
2859,
10906,
11700,
4672,
9163,
67,
1367,
1235,
12,
82,
16,
756,
16,
1308,
67,
7039,
16,
640,
2859,
10906,
11700,
13,
317,
1250,
2000,
638,
309,
716,
2199,
909,
353,
1709,
1235,
3470,
326,
756,
26418,
225,
309,
290,
18,
17514,
1918,
2668,
16741,
2497,
4672,
290,
273,
290,
63,
26,
26894,
1327,
290,
18,
17514,
1918,
2668,
16741,
11,
4672,
290,
273,
290,
63,
25,
26894,
309,
290,
422,
756,
18,
3239,
578,
290,
316,
640,
2859,
10906,
11700,
30,
327,
404,
364,
1604,
316,
1308,
67,
7039,
30,
309,
290,
422,
1604,
18,
3239,
30,
327,
404,
327,
374,
225,
2,
-100,
-100
] |
for n in range(11, 21): tc.find('Description
|
bugs = Bug.objects.filter(project__name= 'Exaile').order_by('last_touched')[10:20] for bug in bugs: tc.find(bug.description)
|
def testPagination(self): url = 'http://openhatch.org/search/' tc.go(make_twill_url(url)) tc.fv('search_opps', 'language', 'python') tc.submit() for n in range(1, 11): tc.find('Description #%d' % n)
|
094772caac128f6e1a5efb0c56157196eb1650fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/094772caac128f6e1a5efb0c56157196eb1650fc/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
19224,
12,
2890,
4672,
880,
273,
296,
2505,
2207,
3190,
76,
505,
18,
3341,
19,
3072,
2473,
1715,
18,
3240,
12,
6540,
67,
11246,
737,
67,
718,
12,
718,
3719,
1715,
18,
17679,
2668,
3072,
67,
556,
1121,
2187,
296,
4923,
2187,
296,
8103,
6134,
1715,
18,
9297,
1435,
364,
290,
316,
1048,
12,
21,
16,
4648,
4672,
1715,
18,
4720,
2668,
3291,
31974,
72,
11,
738,
290,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
19224,
12,
2890,
4672,
880,
273,
296,
2505,
2207,
3190,
76,
505,
18,
3341,
19,
3072,
2473,
1715,
18,
3240,
12,
6540,
67,
11246,
737,
67,
718,
12,
718,
3719,
1715,
18,
17679,
2668,
3072,
67,
556,
1121,
2187,
296,
4923,
2187,
296,
8103,
6134,
1715,
18,
9297,
1435,
364,
290,
316,
1048,
12,
21,
16,
4648,
4672,
1715,
18,
4720,
2668,
3291,
31974,
72,
11,
738,
290,
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
] |
self.branch.create_checkout(self.checkout_path, lightweight=True)
|
rev_id = self.revision and self.branch.get_rev_id(self.revision) self.branch.create_checkout(self.checkout_path, lightweight=True, revision_id=rev_id)
|
def checkout(self, revision=None): """ Checks out a project in a specific revision """
|
ccb214485d0f25ca9b49a2eea673353fb777f773 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7871/ccb214485d0f25ca9b49a2eea673353fb777f773/project.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13926,
12,
2890,
16,
6350,
33,
7036,
4672,
3536,
13074,
596,
279,
1984,
316,
279,
2923,
6350,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13926,
12,
2890,
16,
6350,
33,
7036,
4672,
3536,
13074,
596,
279,
1984,
316,
279,
2923,
6350,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.debug_trace("Tag_ubyte")
|
def Tag_ubyte(self): self.debug_trace("Tag_ubyte") if ( self.getTag( 'ubyte' ) ): self.pack_string = 'B' return 1 return 0
|
ecf78c969222f7513a2f516b0355728295fb546a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/ecf78c969222f7513a2f516b0355728295fb546a/pxlasm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
10340,
736,
12,
2890,
4672,
309,
261,
365,
18,
588,
1805,
12,
296,
10340,
736,
11,
262,
262,
30,
365,
18,
2920,
67,
1080,
273,
296,
38,
11,
327,
404,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
404,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
sys.stdout.write(green("ok\n")) else: sys.stdout.write( red("failed") + "\n" )
|
sys.stdout.write(green("Pass\n")) else: sys.stdout.write( red("Fail") + "\n" )
|
def checkPython( options, lookForHeaders, lookForLib ): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] else: PYTHONLIBSEARCHPATH = [] PYTHONLIBSTATICSEARCHPATH = [] if sys.platform == "win32": PYTHONLIBSEARCHPATH += [ sys.prefix + "\Libs\python*.lib" ] PYTHONINCSEARCHPATH += [ sys.prefix + "\include\Python.h" ] elif sys.platform == "linux2": PYTHONLIBSEARCHPATH += [ "/usr/local/lib/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython*/libpython2.3*.so", \ "/usr/lib/libpython2.3*.so", \ "/usr/lib/[Pp]ython*/libpython2.3*.so", \ "/usr/lib/[Pp]ython*/config/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython*/config/libpython2.3*.so"] PYTHONLIBSTATICSEARCHPATH += [ "/usr/local/lib/libpython2.3*.a", \ "/usr/local/lib/[Pp]ython2.3*/libpython2.3*.a", \ "/usr/lib/libpython2.3*.a", \ "/usr/lib/[Pp]ython2.3*/libpython2.3*.a", \ "/usr/lib/[Pp]ython2.3*/config/libpython2.3*.a", \ "/usr/local/lib/[Pp]ython2.3*/config/libpython2.3*.a"] PYTHONINCSEARCHPATH += [ "/usr/local/include/[Pp]ython2.3*/Python.h", \ "/usr/include/[Pp]ython2.3*/Python.h"] elif sys.platform == "freebsd4" or sys.platform == "freebsd5": PYTHONLIBSEARCHPATH += [ "/usr/local/lib/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython2.3*/libpython2.3*.so", \ "/usr/lib/libpython2.3*.so", \ "/usr/lib/[Pp]ython2.3*/libpython2.3*.so", \ "/usr/lib/[Pp]ython2.3*/config/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython2.3*/config/libpython2.3*.so"] PYTHONLIBSTATICSEARCHPATH += [ "/usr/local/lib/libpython2.3*.a", \ "/usr/local/lib/[Pp]ython2.3*/libpython2.3*.a", \ "/usr/lib/libpython2.3*.a", \ "/usr/lib/[Pp]ython2.3*/libpython2.3*.a", \ "/usr/lib/[Pp]ython2.3*/config/libpython2.3*.a", \ "/usr/local/lib/[Pp]ython2.3*/config/libpython2.3*.a"] PYTHONINCSEARCHPATH += [ "/usr/local/include/[Pp]ython2.3*/Python.h", \ "/usr/include/[Pp]ython2.3*/Python.h"] elif sys.platform == "darwin": PYTHONINCSEARCHPATH += [ "/System/Library/Frameworks/Python.framework/Versions/Current/Headers/Python.h" ] PYTHONLIBSEARCHPATH += [ ] PYTHONLIBSTATICSEARCHPATH += ["/System/Library/Frameworks/Python.framework/Versions/Current/Python", \ "/System/Library/Frameworks/Python.framework/Versions/Current/lib/[Pp]ython*/config/libpython*.a", \ "/usr/local/lib/[Pp]ython*/config/libpython*.a"] else: sys.stdout.write(red("ERROR")+": Unknown platform %s to checkPython()\n" % sys.platform ) sys.exit() # if --static if options.staticlink: PYTHONLIBSEARCHPATH = PYTHONLIBSTATICSEARCHPATH # if it was overiden... if options.py_incpath: PYTHONINCSEARCHPATH = [ options.py_incpath ] if options.py_libpath: PYTHONLIBSEARCHPATH = [ options.py_libpath ] sys.stdout.write( "Checking Python version... " ) if sys.hexversion >= 0x020200F0: sys.stdout.write(green("ok\n")) else: sys.stdout.write( red("failed") + "\n" ) sys.stdout.write( bold("Wolfpack requires Python version greater than 2.2.0 ") ) sys.exit(); sys.stdout.write( "Checking CPU byte order... %s\n" % sys.byteorder ) if sys.byteorder != 'little': sys.stdout.write(yellow("Warning:") + " Wolfpack support for big endian systems is completely experimental and unlikey to work\n" ) if lookForLib: sys.stdout.write( "Searching for Python library... " ) global py_libpath global py_libfile py_libfile, py_libpath = findFile( PYTHONLIBSEARCHPATH ) if ( py_libfile ): sys.stdout.write("%s\n" % os.path.join( py_libpath, py_libfile ) ) else: sys.stdout.write(red("Not Found!") + "\n") sys.exit() if lookForHeaders: global py_incpath py_incfile = None sys.stdout.write( "Searching for Python includes... " ) py_incfile, py_incpath = findFile( PYTHONINCSEARCHPATH ) if ( py_incfile ): sys.stdout.write( "%s\n" % py_incpath ) else: sys.stdout.write(red("Not Found!") + "\n") sys.exit() return True
|
d941256082445e4067ba7bbfd19725f6d2fd0a35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d941256082445e4067ba7bbfd19725f6d2fd0a35/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
15774,
12,
702,
16,
2324,
1290,
3121,
16,
2324,
1290,
5664,
262,
30,
12191,
20131,
23213,
17251,
4211,
273,
306,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
397,
1140,
18,
803,
18,
10814,
397,
315,
15774,
18,
76,
6,
308,
309,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
1425,
67,
4699,
7675,
5332,
67,
856,
2932,
1639,
882,
8325,
5879,
6,
4672,
12191,
20131,
14484,
17251,
4211,
273,
306,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
1425,
67,
4699,
1435,
9614,
1639,
882,
8325,
5879,
11929,
397,
1140,
18,
803,
18,
10814,
397,
315,
2941,
8103,
7388,
308,
469,
30,
12191,
20131,
14484,
17251,
4211,
273,
5378,
12191,
20131,
14484,
22741,
17251,
4211,
273,
5378,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
12191,
20131,
14484,
17251,
4211,
1011,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
8103,
11146,
2941,
6,
308,
12191,
20131,
23213,
17251,
4211,
1011,
306,
2589,
18,
3239,
397,
1548,
6702,
64,
15774,
18,
76,
6,
308,
1327,
2589,
18,
9898,
422,
315,
20132,
22,
6877,
12191,
20131,
14484,
17251,
4211,
1011,
306,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
8103,
22,
18,
23,
11146,
2048,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
63,
52,
84,
65,
18490,
5549,
2941,
8103,
22,
18,
23,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
2941,
8103,
22,
18,
23,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
63,
52,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
15774,
12,
702,
16,
2324,
1290,
3121,
16,
2324,
1290,
5664,
262,
30,
12191,
20131,
23213,
17251,
4211,
273,
306,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
397,
1140,
18,
803,
18,
10814,
397,
315,
15774,
18,
76,
6,
308,
309,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
1425,
67,
4699,
7675,
5332,
67,
856,
2932,
1639,
882,
8325,
5879,
6,
4672,
12191,
20131,
14484,
17251,
4211,
273,
306,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
1425,
67,
4699,
1435,
9614,
1639,
882,
8325,
5879,
11929,
397,
1140,
18,
803,
18,
10814,
397,
315,
2941,
8103,
7388,
308,
469,
30,
12191,
20131,
14484,
17251,
4211,
273,
5378,
12191,
20131,
14484,
2
] |
account.password = data['OUTGOING_PASSWORD']
|
try: waitForDeferred(account.password.encryptPassword(data['OUTGOING_PASSWORD'], window=self)) except password.NoMasterPassword: return
|
def OnTestOutgoing(self): if not Globals.mailService.isOnline(): return alertOffline(self)
|
b1d959dcb6ea3064db41fef843c06b239e066a69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/b1d959dcb6ea3064db41fef843c06b239e066a69/AccountPreferences.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4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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,
2755,
4709,
24866,
12,
2890,
4672,
309,
486,
18901,
1031,
18,
4408,
1179,
18,
291,
16860,
13332,
327,
6881,
23106,
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
] |
helpString = u'Set logging level to Debug'),
|
helpString = _(u'Set logging level to Debug')),
|
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
|
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
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
] |
(type1, _("Playlist"), gtk.STOCK_INDEX, self.show_playlist),
|
(type1, _("Playlist"), 'stock_playlist', self.show_playlist),
|
def build_toolbar(self): self.toolbar = gtk.Toolbar() self.toolbar.set_style(gtk.TOOLBAR_ICONS) if bool(MINITOOLS.int_value): self.toolbar.set_icon_size(gtk.ICON_SIZE_MENU)
|
560ed7113c391bf75bc2b42b218360fe9bfb102e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4997/560ed7113c391bf75bc2b42b218360fe9bfb102e/musicbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
18849,
12,
2890,
4672,
365,
18,
18849,
273,
22718,
18,
17907,
1435,
365,
18,
18849,
18,
542,
67,
4060,
12,
4521,
79,
18,
26263,
21908,
67,
21745,
55,
13,
309,
1426,
12,
6236,
1285,
51,
1741,
55,
18,
474,
67,
1132,
4672,
365,
18,
18849,
18,
542,
67,
3950,
67,
1467,
12,
4521,
79,
18,
21745,
67,
4574,
67,
29227,
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,
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,
22398,
316,
326,
981,
30,
1652,
1361,
67,
18849,
12,
2890,
4672,
365,
18,
18849,
273,
22718,
18,
17907,
1435,
365,
18,
18849,
18,
542,
67,
4060,
12,
4521,
79,
18,
26263,
21908,
67,
21745,
55,
13,
309,
1426,
12,
6236,
1285,
51,
1741,
55,
18,
474,
67,
1132,
4672,
365,
18,
18849,
18,
542,
67,
3950,
67,
1467,
12,
4521,
79,
18,
21745,
67,
4574,
67,
29227,
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
] |
'''
|
"""
|
def __getitem__(self, item): ''' return an HTMLProperty instance this now can handle transitive lookups where item is of the form x.y.z ''' #print 'HTMLItem.getitem', (self, item) if item == 'id': return self._nodeid
|
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
761,
4672,
3536,
327,
392,
3982,
1396,
791,
333,
2037,
848,
1640,
30442,
20286,
1625,
761,
353,
434,
326,
646,
619,
18,
93,
18,
94,
3536,
468,
1188,
296,
4870,
1180,
18,
31571,
2187,
261,
2890,
16,
761,
13,
309,
761,
422,
296,
350,
4278,
327,
365,
6315,
2159,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
761,
4672,
3536,
327,
392,
3982,
1396,
791,
333,
2037,
848,
1640,
30442,
20286,
1625,
761,
353,
434,
326,
646,
619,
18,
93,
18,
94,
3536,
468,
1188,
296,
4870,
1180,
18,
31571,
2187,
261,
2890,
16,
761,
13,
309,
761,
422,
296,
350,
4278,
327,
365,
6315,
2159,
350,
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
] |
try: raise Exception except: frame = sys.exc_info()[2].tb_frame.f_back
|
frame = sys._getframe().f_back
|
def set_continue(self): # Don't stop except at breakpoints or when finished self.stopframe = self.botframe self.returnframe = None self.quitting = 0 if not self.breaks: # no breakpoints; run without debugger overhead sys.settrace(None) try: raise Exception except: frame = sys.exc_info()[2].tb_frame.f_back while frame and frame is not self.botframe: del frame.f_trace frame = frame.f_back
|
313a7513b0c5771042d850d70782a2448d1cdcb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/313a7513b0c5771042d850d70782a2448d1cdcb7/bdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
17143,
12,
2890,
4672,
468,
7615,
1404,
2132,
1335,
622,
23416,
578,
1347,
6708,
365,
18,
5681,
3789,
273,
365,
18,
4819,
3789,
365,
18,
2463,
3789,
273,
599,
365,
18,
27176,
1787,
273,
374,
309,
486,
365,
18,
29292,
30,
468,
1158,
23416,
31,
1086,
2887,
19977,
23188,
2589,
18,
542,
5129,
12,
7036,
13,
2623,
273,
2589,
6315,
588,
3789,
7675,
74,
67,
823,
1323,
2623,
471,
2623,
353,
486,
365,
18,
4819,
3789,
30,
1464,
2623,
18,
74,
67,
5129,
2623,
273,
2623,
18,
74,
67,
823,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17143,
12,
2890,
4672,
468,
7615,
1404,
2132,
1335,
622,
23416,
578,
1347,
6708,
365,
18,
5681,
3789,
273,
365,
18,
4819,
3789,
365,
18,
2463,
3789,
273,
599,
365,
18,
27176,
1787,
273,
374,
309,
486,
365,
18,
29292,
30,
468,
1158,
23416,
31,
1086,
2887,
19977,
23188,
2589,
18,
542,
5129,
12,
7036,
13,
2623,
273,
2589,
6315,
588,
3789,
7675,
74,
67,
823,
1323,
2623,
471,
2623,
353,
486,
365,
18,
4819,
3789,
30,
1464,
2623,
18,
74,
67,
5129,
2623,
273,
2623,
18,
74,
67,
823,
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
] |
k, a, b, a1, b1 = 2L, 4L, 1L, 12L, 4L while 1:
|
k, a, b, a1, b1 = 2, 4, 1, 12, 4 while True:
|
def main(): k, a, b, a1, b1 = 2L, 4L, 1L, 12L, 4L while 1: # Next approximation p, q, k = k*k, 2L*k+1L, k+1L a, b, a1, b1 = a1, b1, p*a+q*a1, p*b+q*b1 # Print common digits d, d1 = a//b, a1//b1 while d == d1: output(d) a, a1 = 10L*(a%b), 10L*(a1%b1) d, d1 = a//b, a1//b1
|
287a3afe3ab72c8fb5543c428ffa39f31e4b015a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/287a3afe3ab72c8fb5543c428ffa39f31e4b015a/pi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
417,
16,
279,
16,
324,
16,
279,
21,
16,
324,
21,
273,
576,
16,
1059,
16,
404,
16,
2593,
16,
1059,
1323,
1053,
30,
468,
4804,
24769,
293,
16,
1043,
16,
417,
273,
417,
14,
79,
16,
576,
48,
14,
79,
15,
21,
48,
16,
417,
15,
21,
48,
279,
16,
324,
16,
279,
21,
16,
324,
21,
273,
279,
21,
16,
324,
21,
16,
293,
14,
69,
15,
85,
14,
69,
21,
16,
293,
14,
70,
15,
85,
14,
70,
21,
468,
3038,
2975,
6815,
302,
16,
302,
21,
273,
279,
759,
70,
16,
279,
21,
759,
70,
21,
1323,
302,
422,
302,
21,
30,
876,
12,
72,
13,
279,
16,
279,
21,
273,
1728,
48,
21556,
69,
9,
70,
3631,
1728,
48,
21556,
69,
21,
9,
70,
21,
13,
302,
16,
302,
21,
273,
279,
759,
70,
16,
279,
21,
759,
70,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
417,
16,
279,
16,
324,
16,
279,
21,
16,
324,
21,
273,
576,
16,
1059,
16,
404,
16,
2593,
16,
1059,
1323,
1053,
30,
468,
4804,
24769,
293,
16,
1043,
16,
417,
273,
417,
14,
79,
16,
576,
48,
14,
79,
15,
21,
48,
16,
417,
15,
21,
48,
279,
16,
324,
16,
279,
21,
16,
324,
21,
273,
279,
21,
16,
324,
21,
16,
293,
14,
69,
15,
85,
14,
69,
21,
16,
293,
14,
70,
15,
85,
14,
70,
21,
468,
3038,
2975,
6815,
302,
16,
302,
21,
273,
279,
759,
70,
16,
279,
21,
759,
70,
21,
1323,
302,
422,
302,
21,
30,
876,
12,
72,
13,
279,
16,
279,
21,
273,
1728,
2
] |
return instance._FileField_types.get(self.getName(), 'text/plain')
|
return instance._FileField_types.get(self.getName(), None)
|
def getContentType(self, instance): if hasattr(aq_base(instance), '_FileField_types'): return instance._FileField_types.get(self.getName(), 'text/plain') return None
|
a2a548380985300f23c238b6fe586e2bdc9a3922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/a2a548380985300f23c238b6fe586e2bdc9a3922/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17470,
12,
2890,
16,
791,
4672,
309,
3859,
12,
69,
85,
67,
1969,
12,
1336,
3631,
2070,
812,
974,
67,
2352,
11,
4672,
327,
791,
6315,
812,
974,
67,
2352,
18,
588,
12,
2890,
18,
17994,
9334,
599,
13,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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1336,
3631,
2070,
812,
974,
67,
2352,
11,
4672,
327,
791,
6315,
812,
974,
67,
2352,
18,
588,
12,
2890,
18,
17994,
9334,
599,
13,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return float(self.get_string(verb, args))
|
return self.get_string(verb, args)
|
def get_number(self, verb, args): return float(self.get_string(verb, args))
|
0be6e344589314abd4d9c0bff4c1c0ba378be52a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/0be6e344589314abd4d9c0bff4c1c0ba378be52a/selenium.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2696,
12,
2890,
16,
6405,
16,
833,
4672,
327,
1431,
12,
2890,
18,
588,
67,
1080,
12,
16629,
16,
833,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
2696,
12,
2890,
16,
6405,
16,
833,
4672,
327,
1431,
12,
2890,
18,
588,
67,
1080,
12,
16629,
16,
833,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
index = reg.register_image_threshold(ImageVolume, h, ih, threshold)
|
index = reg.register_image_threshold(image, h, ih, threshold)
|
def load_volume(imagedesc, imagename=None, threshold=0.999, debug=0): """ image = load_volume(imagedesc, imagename=None, threshold=0.999, debug=0) --- OR --- image, h, ih, index = load_volume(imagedesc, imagename=None, threshold=0.999, debug=0) gets an image descriptor and optional filename and returns a scaled 8 bit volume. The scaling is designed to make full use of the 8 bits (ignoring high amplitude outliers). The current method uses numpy fromfile and will be replaced by neuroimage nifti load. Parameters ---------- imagedesc : {dictionary} imagedesc is the descriptor of the image to be read. imagename : {string} : optional name of image file. No name creates a blank image that is used for creating a rotated test image or image rescaling. threshold : {float} : optional this is the threshold for upper cutoff in the 8 bit scaling. The volume histogram and integrated histogram is computed and the upper amplitude cutoff is where the integrated histogram crosses the value set in the threshold. setting threshold to 1.0 means the scaling is done over the min to max amplitude range. debug : {0, 1} : optional when debug=1 the method returns the volume histogram, integrated histogram and the amplitude index where the provided threshold occured. Returns ------- image : {dictionary} the volume data assoicated with the filename or a blank volume of the same dimensions as specified in imagedesc. --- OR --- (if debug = 1) image : {dictionary} the volume data assoicated with the filename or a blank volume of the same dimensions as specified in imagedesc. h : {nd_array} the volume 1D amplitude histogram ih : {nd_array} the volume 1D amplitude integrated histogram index : {int} the amplitude (histogram index) where the integrated histogram crosses the 'threshold' provided. Examples -------- >>> import numpy as NP >>> import _registration as reg >>> anat_desc = reg.load_anatMRI_desc() >>> image_anat, h, ih, index = reg.load_volume(anat_desc, imagename='ANAT1_V0001.img', debug=1) >>> index 210 """ # load MRI or fMRI volume and return an autoscaled 8 bit image. # autoscale is using integrated histogram to deal with outlier high amplitude voxels if imagename == None: # imagename of none means to create a blank image ImageVolume = np.zeros(imagedesc['layers']*imagedesc['rows']*imagedesc['cols'], dtype=np.uint16).reshape(imagedesc['layers'], imagedesc['rows'], imagedesc['cols']) else: ImageVolume = np.fromfile(imagename, dtype=np.uint16).reshape(imagedesc['layers'], imagedesc['rows'], imagedesc['cols']); # the mat (voxel to physical) matrix M = np.eye(4, dtype=np.float64); # for now just the sample size (mm units) in x, y and z M[0][0] = imagedesc['sample_x'] M[1][1] = imagedesc['sample_y'] M[2][2] = imagedesc['sample_z'] # dimensions D = np.zeros(3, dtype=np.int32); # Gaussian kernel - fill in with build_fwhm() F = np.zeros(3, dtype=np.float64); D[0] = imagedesc['rows'] D[1] = imagedesc['cols'] D[2] = imagedesc['layers'] if imagename == None: # no voxels to scale to 8 bits ImageVolume = ImageVolume.astype(np.uint8) image = {'data' : ImageVolume, 'mat' : M, 'dim' : D, 'fwhm' : F} return image # 8 bit scale with threshold clip of the volume integrated histogram max = ImageVolume.max() min = ImageVolume.min() ih = np.zeros(max-min+1, dtype=np.float64); h = np.zeros(max-min+1, dtype=np.float64); if threshold <= 0: threshold = 0.999 elif threshold > 1.0: threshold = 1.0 # get the integrated histogram of the volume and get max from # the threshold crossing in the integrated histogram index = reg.register_image_threshold(ImageVolume, h, ih, threshold) scale = 255.0 / (index-min) # generate the scaled 8 bit image images = (scale*(ImageVolume.astype(np.float)-min)) images[images>255] = 255 image = {'data' : images.astype(np.uint8), 'mat' : M, 'dim' : D, 'fwhm' : F} if debug == 1: return image, h, ih, index else: return image
|
a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
4672,
225,
3536,
1316,
273,
1262,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
13,
225,
9948,
4869,
9948,
1316,
16,
366,
16,
18456,
16,
770,
273,
1262,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
13,
225,
5571,
392,
1316,
4950,
471,
3129,
1544,
471,
1135,
279,
12304,
1725,
2831,
3940,
18,
1021,
10612,
353,
26584,
358,
1221,
1983,
999,
434,
326,
1725,
4125,
261,
724,
6053,
3551,
26607,
30434,
2934,
1021,
783,
707,
4692,
3972,
628,
768,
471,
903,
506,
8089,
635,
17760,
83,
2730,
290,
2136,
77,
1262,
18,
225,
7012,
12181,
8902,
329,
742,
294,
288,
15556,
97,
8902,
329,
742,
353,
326,
4950,
434,
326,
1316,
358,
506,
855,
18,
225,
8902,
1069,
294,
288,
1080,
97,
294,
3129,
508,
434,
1316,
585,
18,
2631,
508,
3414,
279,
7052,
1316,
716,
353,
1399,
364,
4979,
279,
22864,
1842,
1316,
578,
1316,
400,
4876,
18,
225,
5573,
294,
288,
5659,
97,
294,
3129,
333,
353,
326,
5573,
364,
3854,
13383,
316,
326,
1725,
2831,
10612,
18,
1021,
3940,
8892,
471,
31121,
8892,
353,
8470,
471,
326,
3854,
26607,
13383,
353,
1625,
326,
31121,
8892,
6828,
281,
326,
460,
444,
316,
326,
5573,
18,
3637,
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,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
4672,
225,
3536,
1316,
273,
1262,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
13,
225,
9948,
4869,
9948,
1316,
16,
366,
16,
18456,
16,
770,
273,
1262,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
13,
225,
5571,
392,
1316,
4950,
471,
3129,
1544,
471,
1135,
279,
12304,
1725,
2831,
3940,
18,
1021,
10612,
353,
26584,
358,
1221,
1983,
999,
434,
326,
1725,
4125,
261,
724,
6053,
3551,
26607,
2
] |
sage: sr = mq.SR(10,4,4,4)
|
sage: sr = mq.SR(10, 4, 4, 4)
|
def mix_columns(self, d): """ Perform the MixColumns operation on d.
|
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,
6843,
67,
5112,
12,
2890,
16,
302,
4672,
3536,
11217,
326,
31043,
3380,
1674,
603,
302,
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,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
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6843,
67,
5112,
12,
2890,
16,
302,
4672,
3536,
11217,
326,
31043,
3380,
1674,
603,
302,
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
] |
return self.file.read()
|
return self.blocking_read()
|
def recv(self): """recv a packet from a tap interface""" return self.file.read()
|
74c465b6f2a59893d314d13421f568c8966b5e0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/74c465b6f2a59893d314d13421f568c8966b5e0a/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
4672,
3536,
18334,
279,
4414,
628,
279,
13495,
1560,
8395,
327,
365,
18,
18926,
67,
896,
1435,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
4672,
3536,
18334,
279,
4414,
628,
279,
13495,
1560,
8395,
327,
365,
18,
18926,
67,
896,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
newGroup = Group(pastable.name, assy, None) nodes = list(pastable.members) newNodeList = copied_nodes_for_DND(nodes, autogroup_at_top = False, assy = assy) if not newNodeList: errorMsg = orangemsg("Clipboard item is probably an empty group. "\ "Paste cancelled") return newGroup, errorMsg
|
nodes = list(pastable.members) newstuff = copied_nodes_for_DND( [pastable], autogroup_at_top = True, assy = assy ) if len(newstuff) == 1: use_new_code = True newGroup = newstuff[0] newNodeList = list(newGroup.members) else: print "bug in fix for bug 2919, falling back to older code " \ "(len is %d, should be 1)" % len(newstuff) use_new_code = False newGroup = Group(pastable.name, assy, None) newNodeList = copied_nodes_for_DND( nodes, autogroup_at_top = False, assy = assy ) if not newNodeList: errorMsg = orangemsg("Clipboard item is probably an empty group. "\ "Paste cancelled") return newGroup, errorMsg pass
|
def _pasteGroup(self, groupToPaste, mousePosition = None): """ Paste the given group (and all its members) in the 3D workspace. @param groupToPaste: The group to be pasted in the 3D workspace @type groupToPaste: L{Group} @param mousePosition: These are the coordinates during mouse double click. @type mousePosition: Array containing the x, y, z position on the screen, or None @see: L{self.paste} for implementation notes. @see: self. _getInitialPasteOffsetForPastableNodes()
|
cad6ea7b9ac9426e0555f481ab058c7c8097e403 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/cad6ea7b9ac9426e0555f481ab058c7c8097e403/ops_copy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29795,
1114,
12,
2890,
16,
1041,
774,
52,
14725,
16,
7644,
2555,
273,
599,
4672,
3536,
453,
14725,
326,
864,
1041,
261,
464,
777,
2097,
4833,
13,
316,
326,
890,
40,
6003,
18,
225,
632,
891,
1041,
774,
52,
14725,
30,
1021,
1041,
358,
506,
8854,
329,
316,
326,
890,
40,
6003,
632,
723,
225,
1041,
774,
52,
14725,
30,
511,
95,
1114,
97,
225,
632,
891,
7644,
2555,
30,
8646,
854,
326,
5513,
4982,
7644,
1645,
4682,
18,
632,
723,
7644,
2555,
30,
225,
1510,
4191,
326,
619,
16,
677,
16,
998,
1754,
603,
326,
5518,
16,
578,
599,
632,
5946,
30,
511,
95,
2890,
18,
29795,
97,
364,
4471,
10913,
18,
632,
5946,
30,
365,
18,
389,
588,
4435,
52,
14725,
2335,
1290,
52,
689,
429,
3205,
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,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316,
326,
890,
40,
6003,
18,
225,
632,
891,
1041,
774,
52,
14725,
30,
1021,
1041,
358,
506,
8854,
329,
316,
326,
890,
40,
6003,
632,
723,
225,
1041,
774,
52,
14725,
30,
511,
95,
1114,
97,
225,
632,
891,
7644,
2555,
30,
8646,
854,
326,
5513,
4982,
7644,
1645,
4682,
18,
632,
723,
7644,
2555,
30,
225,
1510,
4191,
326,
619,
16,
677,
16,
998,
1754,
603,
326,
5518,
16,
578,
599,
632,
5946,
30,
511,
95,
2890,
18,
29795,
97,
364,
4471,
10913,
18,
632,
5946,
30,
365,
2
] |
lastKeyCount=globalVars.keyCounter
|
def speakSpelling(text): global beenCanceled if not isinstance(text,basestring) or len(text)==0: return getSynth().speakText(processSymbol("")) if speechMode==speechMode_off: return elif speechMode==speechMode_beeps: tones.beep(config.conf["speech"]["beepSpeechModePitch"],speechMode_beeps_ms) return if isPaused: cancelSpeech() beenCanceled=False lastKeyCount=globalVars.keyCounter if not text.isspace(): text=text.rstrip() textLength=len(text) for count,char in enumerate(text): uppercase=char.isupper() char=processSymbol(char) if uppercase and config.conf["speech"][getSynth().name]["sayCapForCapitals"]: char=_("cap %s")%char if uppercase and config.conf["speech"][getSynth().name]["raisePitchForCapitals"]: oldPitch=config.conf["speech"][getSynth().name]["pitch"] getSynth().pitch=max(0,min(oldPitch+config.conf["speech"][getSynth().name]["capPitchChange"],100)) index=count+1 if log.isEnabledFor(log.IO): log.io("Speaking \"%s\""%char) getSynth().speakText(char,index=index) if uppercase and config.conf["speech"][getSynth().name]["raisePitchForCapitals"]: getSynth().pitch=oldPitch while textLength>1 and globalVars.keyCounter==lastKeyCount and (isPaused or getLastSpeechIndex()!=index): time.sleep(0.05) api.processPendingEvents() queueHandler.flushQueue(queueHandler.eventQueue) if globalVars.keyCounter!=lastKeyCount: break if uppercase and config.conf["speech"][getSynth().name]["beepForCapitals"]: tones.beep(2000,50)
|
a32e79f2c1f33fa935ca35fbe9d9ee352bb51b5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/a32e79f2c1f33fa935ca35fbe9d9ee352bb51b5b/speech.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
10244,
3389,
1165,
310,
12,
955,
4672,
2552,
2118,
23163,
309,
486,
1549,
12,
955,
16,
18602,
371,
13,
578,
562,
12,
955,
13,
631,
20,
30,
327,
1322,
878,
451,
7675,
87,
10244,
1528,
12,
2567,
5335,
2932,
6,
3719,
309,
24556,
2309,
631,
87,
12510,
2309,
67,
3674,
30,
327,
1327,
24556,
2309,
631,
87,
12510,
2309,
67,
2196,
13058,
30,
268,
5322,
18,
2196,
881,
12,
1425,
18,
3923,
9614,
87,
12510,
6,
6362,
6,
2196,
881,
22334,
2309,
52,
1437,
6,
6487,
87,
12510,
2309,
67,
2196,
13058,
67,
959,
13,
327,
309,
353,
28590,
30,
3755,
22334,
1435,
2118,
23163,
33,
8381,
309,
486,
977,
18,
1054,
909,
13332,
977,
33,
955,
18,
86,
6406,
1435,
977,
1782,
33,
1897,
12,
955,
13,
364,
1056,
16,
3001,
316,
4241,
12,
955,
4672,
18966,
33,
3001,
18,
291,
5797,
1435,
1149,
33,
2567,
5335,
12,
3001,
13,
309,
18966,
471,
642,
18,
3923,
9614,
87,
12510,
6,
6362,
588,
10503,
451,
7675,
529,
6362,
6,
87,
528,
4664,
1290,
4664,
305,
1031,
11929,
30,
1149,
33,
67,
2932,
5909,
738,
87,
7923,
9,
3001,
309,
18966,
471,
642,
18,
3923,
9614,
87,
12510,
6,
6362,
588,
10503,
451,
7675,
529,
6362,
6,
11628,
52,
1437,
1290,
4664,
305,
1031,
11929,
30,
1592,
52,
1437,
33,
1425,
18,
3923,
9614,
87,
12510,
6,
6362,
588,
10503,
451,
7675,
529,
6362,
6,
25910,
11929,
1322,
878,
451,
7675,
25910,
33,
1896,
12,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
10244,
3389,
1165,
310,
12,
955,
4672,
2552,
2118,
23163,
309,
486,
1549,
12,
955,
16,
18602,
371,
13,
578,
562,
12,
955,
13,
631,
20,
30,
327,
1322,
878,
451,
7675,
87,
10244,
1528,
12,
2567,
5335,
2932,
6,
3719,
309,
24556,
2309,
631,
87,
12510,
2309,
67,
3674,
30,
327,
1327,
24556,
2309,
631,
87,
12510,
2309,
67,
2196,
13058,
30,
268,
5322,
18,
2196,
881,
12,
1425,
18,
3923,
9614,
87,
12510,
6,
6362,
6,
2196,
881,
22334,
2309,
52,
1437,
6,
6487,
87,
12510,
2309,
67,
2196,
13058,
67,
959,
13,
327,
309,
353,
28590,
30,
3755,
22334,
1435,
2118,
23163,
33,
8381,
309,
486,
977,
18,
1054,
909,
13332,
977,
33,
955,
2
] |
|
width = float(item.getp('linewidth'))
|
width = item.getp('linewidth') if width: width = float(width)
|
def _get_linespecs(self, item): """ Return the line marker, line color, line style, and line width of the item. """ marker = self._markers[item.getp('linemarker')] color = item.getp('linecolor') style = item.getp('linetype') width = float(item.getp('linewidth')) return marker, color, style, width
|
15f1045399a33d89b18bdcce3e716b415c9a70c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4727/15f1045399a33d89b18bdcce3e716b415c9a70c4/matplotlib_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
705,
87,
12,
2890,
16,
761,
4672,
3536,
2000,
326,
980,
5373,
16,
980,
2036,
16,
980,
2154,
16,
471,
980,
1835,
434,
326,
761,
18,
3536,
5373,
273,
365,
6315,
22807,
63,
1726,
18,
588,
84,
2668,
7511,
351,
1313,
264,
6134,
65,
2036,
273,
761,
18,
588,
84,
2668,
7511,
25028,
6134,
2154,
273,
761,
18,
588,
84,
2668,
7511,
5872,
6134,
1835,
273,
761,
18,
588,
84,
2668,
7511,
14434,
6134,
309,
1835,
30,
1835,
273,
1431,
12,
2819,
13,
327,
5373,
16,
2036,
16,
2154,
16,
1835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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980,
2036,
16,
980,
2154,
16,
471,
980,
1835,
434,
326,
761,
18,
3536,
5373,
273,
365,
6315,
22807,
63,
1726,
18,
588,
84,
2668,
7511,
351,
1313,
264,
6134,
65,
2036,
273,
761,
18,
588,
84,
2668,
7511,
25028,
6134,
2154,
273,
761,
18,
588,
84,
2668,
7511,
5872,
6134,
1835,
273,
761,
18,
588,
84,
2668,
7511,
14434,
6134,
309,
1835,
30,
1835,
273,
1431,
12,
2819,
13,
327,
5373,
16,
2036,
16,
2154,
16,
1835,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
voiceList.Bind(wx.EVT_CHOICE,self.onVoiceChange)
|
self.voiceList.Bind(wx.EVT_CHOICE,self.onVoiceChange)
|
def __init__(self,parent,ID,title): wx.Dialog.__init__(self,parent,ID,title) mainSizer=wx.BoxSizer(wx.VERTICAL) settingsSizer=wx.BoxSizer(wx.VERTICAL) voiceListSizer=wx.BoxSizer(wx.HORIZONTAL) voiceListLabel=wx.StaticText(self,-1,label=_("Voice")) voiceListID=wx.NewId() voiceList=wx.Choice(self,voiceListID,name="Voice:",choices=[getSynth().getVoiceName(x) for x in range(1,getSynth().voiceCount+1)]) try: voiceIndex=self.oldVoice=getSynth().voice voiceIndex-=1 if voiceIndex>=0 and voiceIndex<getSynth().voiceCount: voiceList.SetSelection(voiceIndex) except: pass voiceList.Bind(wx.EVT_CHOICE,self.onVoiceChange) voiceListSizer.Add(voiceListLabel) voiceListSizer.Add(voiceList) settingsSizer.Add(voiceListSizer,border=10,flag=wx.BOTTOM) rateSliderSizer=wx.BoxSizer(wx.HORIZONTAL) rateSliderLabel=wx.StaticText(self,-1,label=_("Rate")) rateSliderID=wx.NewId() self.oldRate=getSynth().rate rateSlider=wx.Slider(self,rateSliderID,value=self.oldRate,minValue=0,maxValue=100,name="Rate:") rateSlider.Bind(wx.EVT_SLIDER,self.onRateChange) rateSliderSizer.Add(rateSliderLabel) rateSliderSizer.Add(rateSlider) settingsSizer.Add(rateSliderSizer,border=10,flag=wx.BOTTOM) pitchSliderSizer=wx.BoxSizer(wx.HORIZONTAL) pitchSliderLabel=wx.StaticText(self,-1,label=_("Pitch")) pitchSliderID=wx.NewId() self.oldPitch=getSynth().pitch pitchSlider=wx.Slider(self,pitchSliderID,value=self.oldPitch,minValue=0,maxValue=100) pitchSlider.Bind(wx.EVT_SLIDER,self.onPitchChange) pitchSliderSizer.Add(pitchSliderLabel) pitchSliderSizer.Add(pitchSlider) settingsSizer.Add(pitchSliderSizer,border=10,flag=wx.BOTTOM) volumeSliderSizer=wx.BoxSizer(wx.HORIZONTAL) volumeSliderLabel=wx.StaticText(self,-1,label=_("Volume")) volumeSliderID=wx.NewId() self.oldVolume=getSynth().volume volumeSlider=wx.Slider(self,volumeSliderID,value=self.oldVolume,minValue=0,maxValue=100) volumeSlider.Bind(wx.EVT_SLIDER,self.onVolumeChange) volumeSliderSizer.Add(volumeSliderLabel) volumeSliderSizer.Add(volumeSlider) settingsSizer.Add(volumeSliderSizer,border=10,flag=wx.BOTTOM) self.punctuationCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Speak all punctuation")) self.punctuationCheckBox.SetValue(config.conf["speech"]["speakPunctuation"]) settingsSizer.Add(self.punctuationCheckBox,border=10,flag=wx.BOTTOM) self.capsCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Say cap before capitals")) self.capsCheckBox.SetValue(config.conf["speech"][getSynth().name]["sayCapForCapitals"]) settingsSizer.Add(self.capsCheckBox,border=10,flag=wx.BOTTOM) mainSizer.Add(settingsSizer,border=20,flag=wx.LEFT|wx.RIGHT|wx.TOP) buttonSizer=wx.BoxSizer(wx.HORIZONTAL) buttonSizer=self.CreateButtonSizer(wx.OK|wx.CANCEL) mainSizer.Add(buttonSizer,border=20,flag=wx.LEFT|wx.RIGHT|wx.BOTTOM) mainSizer.Fit(self) self.SetSizer(mainSizer) self.Bind(wx.EVT_BUTTON,self.onCancel,id=wx.ID_CANCEL) self.Bind(wx.EVT_BUTTON,self.onOk,id=wx.ID_OK) voiceList.SetFocus()
|
b670d693246a684fec02acc72945aee58aa471d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/b670d693246a684fec02acc72945aee58aa471d5/settingsDialogs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
734,
16,
2649,
4672,
7075,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
734,
16,
2649,
13,
2774,
20512,
33,
27226,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
1947,
20512,
33,
27226,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
15063,
682,
20512,
33,
27226,
18,
3514,
20512,
12,
27226,
18,
44,
20344,
13,
15063,
682,
2224,
33,
27226,
18,
5788,
1528,
12,
2890,
16,
17,
21,
16,
1925,
33,
67,
2932,
14572,
6,
3719,
15063,
682,
734,
33,
27226,
18,
1908,
548,
1435,
15063,
682,
33,
27226,
18,
10538,
12,
2890,
16,
25993,
682,
734,
16,
529,
1546,
14572,
2773,
16,
11937,
22850,
588,
10503,
451,
7675,
588,
14572,
461,
12,
92,
13,
364,
619,
316,
1048,
12,
21,
16,
588,
10503,
451,
7675,
25993,
1380,
15,
21,
13,
5717,
775,
30,
15063,
1016,
33,
2890,
18,
1673,
14572,
33,
588,
10503,
451,
7675,
25993,
15063,
1016,
17,
33,
21,
309,
15063,
1016,
34,
33,
20,
471,
15063,
1016,
32,
588,
10503,
451,
7675,
25993,
1380,
30,
15063,
682,
18,
694,
6233,
12,
25993,
1016,
13,
1335,
30,
1342,
365,
18,
25993,
682,
18,
3357,
12,
27226,
18,
24427,
56,
67,
22213,
11774,
16,
2890,
18,
265,
14572,
3043,
13,
15063,
682,
20512,
18,
986,
12,
25993,
682,
2224,
13,
15063,
682,
20512,
18,
986,
12,
25993,
682,
13,
1947,
20512,
18,
986,
12,
25993,
682,
20512,
16,
8815,
33,
2163,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
734,
16,
2649,
4672,
7075,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
734,
16,
2649,
13,
2774,
20512,
33,
27226,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
1947,
20512,
33,
27226,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
15063,
682,
20512,
33,
27226,
18,
3514,
20512,
12,
27226,
18,
44,
20344,
13,
15063,
682,
2224,
33,
27226,
18,
5788,
1528,
12,
2890,
16,
17,
21,
16,
1925,
33,
67,
2932,
14572,
6,
3719,
15063,
682,
734,
33,
27226,
18,
1908,
548,
1435,
15063,
682,
33,
27226,
18,
10538,
12,
2890,
16,
25993,
682,
734,
16,
529,
1546,
14572,
2773,
16,
11937,
22850,
588,
2
] |
def signalApp(config, signal = 0):
|
def runApp(config): global initRun platformType = runtime.platform.getType() register.checkLicenseFile() sys.path.append(config['rundir']) if config['reactor']: if platformType == 'java': from twisted.internet import javareactor javareactor.install() else: from twisted.python.reflect import namedModule namedModule(reactorTypes[config['reactor']]).install() if platformType != 'posix' or config['debug']: config['nodaemon'] = 1 if config['encrypted']: import getpass passphrase = getpass.getpass('Passphrase: ') else: passphrase = None initRun = 0
|
def signalApp(config, signal = 0): if os.path.exists(config['pidfile']): try: pid = int(open(config['pidfile']).read()) except ValueError: msg = 'Pidfile %s contains non numeric value' sys.exit(msg % config['pidfile']) try: os.kill(pid, signal) except OSError, why: if why[0] == errno.ESRCH: # The pid doesnt exists. if not config['quiet']: print 'Removing stale pidfile %s' % config['pidfile'] os.remove(config['pidfile']) else: msg = 'Can\'t check status of PID %s from pidfile %s: %s' sys.exit(msg % (pid, config['pidfile'], why[1])) else: if not(signal): sys.exit("""\
|
d5f1c437a076f0fe17db40d9ab92751c20198dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/d5f1c437a076f0fe17db40d9ab92751c20198dd3/twistd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
1086,
3371,
12,
1425,
4672,
2552,
1208,
1997,
4072,
559,
273,
3099,
18,
9898,
18,
588,
559,
1435,
225,
1744,
18,
1893,
13211,
812,
1435,
2589,
18,
803,
18,
6923,
12,
1425,
3292,
86,
1074,
481,
19486,
540,
309,
642,
3292,
266,
3362,
3546,
30,
309,
4072,
559,
422,
296,
6290,
4278,
628,
2339,
25444,
18,
267,
14726,
1930,
5152,
834,
3362,
5152,
834,
3362,
18,
5425,
1435,
469,
30,
628,
2339,
25444,
18,
8103,
18,
1734,
1582,
1930,
4141,
3120,
4141,
3120,
12,
266,
3362,
2016,
63,
1425,
3292,
266,
3362,
3546,
65,
2934,
5425,
1435,
225,
309,
4072,
559,
480,
296,
24463,
11,
578,
642,
3292,
4148,
3546,
30,
225,
642,
3292,
19888,
8636,
3546,
273,
404,
225,
309,
642,
3292,
18702,
3546,
30,
1930,
31889,
15244,
273,
31889,
18,
588,
5466,
2668,
27814,
30,
8624,
469,
30,
15244,
273,
599,
377,
1208,
1997,
273,
374,
309,
1140,
18,
803,
18,
1808,
12,
1425,
3292,
6610,
768,
3546,
4672,
775,
30,
4231,
273,
509,
12,
3190,
12,
1425,
3292,
6610,
768,
3546,
2934,
896,
10756,
1335,
2068,
30,
1234,
273,
296,
12478,
768,
738,
87,
1914,
1661,
6389,
460,
11,
2589,
18,
8593,
12,
3576,
738,
642,
3292,
6610,
768,
19486,
225,
775,
30,
1140,
18,
16418,
12,
6610,
16,
4277,
13,
1335,
10002,
16,
11598,
30,
309,
11598,
63,
20,
65,
422,
8402,
18,
3991,
54,
1792,
30,
468,
1021,
4231,
31272,
1704,
18,
309,
486,
642,
3292,
20380,
3546,
30,
1172,
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,
225,
1652,
1086,
3371,
12,
1425,
4672,
2552,
1208,
1997,
4072,
559,
273,
3099,
18,
9898,
18,
588,
559,
1435,
225,
1744,
18,
1893,
13211,
812,
1435,
2589,
18,
803,
18,
6923,
12,
1425,
3292,
86,
1074,
481,
19486,
540,
309,
642,
3292,
266,
3362,
3546,
30,
309,
4072,
559,
422,
296,
6290,
4278,
628,
2339,
25444,
18,
267,
14726,
1930,
5152,
834,
3362,
5152,
834,
3362,
18,
5425,
1435,
469,
30,
628,
2339,
25444,
18,
8103,
18,
1734,
1582,
1930,
4141,
3120,
4141,
3120,
12,
266,
3362,
2016,
63,
1425,
3292,
266,
3362,
3546,
65,
2934,
5425,
1435,
225,
309,
4072,
559,
480,
296,
24463,
11,
578,
642,
3292,
4148,
3546,
30,
225,
642,
3292,
19888,
8636,
3546,
2
] |
self._request = kwargs.pop('request', request) self._session = kwargs.pop('session', session)
|
def __init__(self, formdata=None, *args, **kwargs):
|
56ebe4742ea394e8d6d068fa503b0165b13297bc /local1/tlutelli/issta_data/temp/all_python//python/2010_tem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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
30642,
33,
7036,
16,
380,
1968,
16,
2826,
4333,
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
] |
|
(rc,exists) = semanage_fcontext_exists(self.sh, k)
|
(rc, exists) = semanage_fcontext_exists(self.sh, k)
|
def __modify(self, target, setype, ftype, serange, seuser): if serange == "" and setype == "" and seuser == "": raise ValueError(_("Requires setype, serange or seuser")) self.validate(target)
|
8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
12,
2890,
16,
1018,
16,
444,
388,
16,
21219,
16,
703,
726,
16,
695,
1355,
4672,
309,
703,
726,
422,
1408,
471,
444,
388,
422,
1408,
471,
695,
1355,
422,
1408,
30,
1002,
2068,
24899,
2932,
21671,
444,
388,
16,
703,
726,
578,
695,
1355,
6,
3719,
365,
18,
5662,
12,
3299,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
17042,
12,
2890,
16,
1018,
16,
444,
388,
16,
21219,
16,
703,
726,
16,
695,
1355,
4672,
309,
703,
726,
422,
1408,
471,
444,
388,
422,
1408,
471,
695,
1355,
422,
1408,
30,
1002,
2068,
24899,
2932,
21671,
444,
388,
16,
703,
726,
578,
695,
1355,
6,
3719,
365,
18,
5662,
12,
3299,
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
] |
def submitter(request, username, template_name='datagrid/datagrid.html'):
|
def submitter(request, username, template_name='reviews/datagrid.html'):
|
def submitter(request, username, template_name='datagrid/datagrid.html'): """ A list of review requests owned by a particular user. """ # Make sure the user exists get_object_or_404(User, username=username) datagrid = ReviewRequestDataGrid(request, ReviewRequest.objects.from_user(username, status=None), _("%s's review requests") % username) return datagrid.render_to_response(template_name)
|
6f4a0165391879a5d504e61e7331d7c6a1359d77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/6f4a0165391879a5d504e61e7331d7c6a1359d77/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
387,
12,
2293,
16,
2718,
16,
1542,
67,
529,
2218,
266,
7061,
19,
3404,
22239,
18,
2620,
11,
4672,
3536,
432,
666,
434,
10725,
3285,
16199,
635,
279,
6826,
729,
18,
3536,
468,
4344,
3071,
326,
729,
1704,
336,
67,
1612,
67,
280,
67,
11746,
12,
1299,
16,
2718,
33,
5053,
13,
225,
1150,
22239,
273,
21354,
17031,
6313,
12,
2293,
16,
21354,
691,
18,
6911,
18,
2080,
67,
1355,
12,
5053,
16,
1267,
33,
7036,
3631,
389,
27188,
87,
1807,
10725,
3285,
7923,
738,
2718,
13,
225,
327,
1150,
22239,
18,
5902,
67,
869,
67,
2740,
12,
3202,
67,
529,
13,
282,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
387,
12,
2293,
16,
2718,
16,
1542,
67,
529,
2218,
266,
7061,
19,
3404,
22239,
18,
2620,
11,
4672,
3536,
432,
666,
434,
10725,
3285,
16199,
635,
279,
6826,
729,
18,
3536,
468,
4344,
3071,
326,
729,
1704,
336,
67,
1612,
67,
280,
67,
11746,
12,
1299,
16,
2718,
33,
5053,
13,
225,
1150,
22239,
273,
21354,
17031,
6313,
12,
2293,
16,
21354,
691,
18,
6911,
18,
2080,
67,
1355,
12,
5053,
16,
1267,
33,
7036,
3631,
389,
27188,
87,
1807,
10725,
3285,
7923,
738,
2718,
13,
225,
327,
1150,
22239,
18,
5902,
67,
869,
67,
2740,
12,
3202,
67,
529,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print '\t< %s' % line
|
_mesg('< %s' % line)
|
def _get_line(self):
|
b10c0e30e74484a3863b7dcd5a9fd8e9e5849364 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b10c0e30e74484a3863b7dcd5a9fd8e9e5849364/imaplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
389,
588,
67,
1369,
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
] |
if valid( job.runningJob ):
|
if self.schedObj.valid( job.runningJob ):
|
def purgeService( self, obj ) : """ purge the service used by the scheduler from job files not available for every scheduler """
|
1a3feacf31ab5cfa8ad356e1f6a9942eee46cf17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/1a3feacf31ab5cfa8ad356e1f6a9942eee46cf17/Scheduler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
1179,
12,
365,
16,
1081,
262,
294,
3536,
11668,
326,
1156,
1399,
635,
326,
8129,
628,
1719,
1390,
486,
2319,
364,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
1179,
12,
365,
16,
1081,
262,
294,
3536,
11668,
326,
1156,
1399,
635,
326,
8129,
628,
1719,
1390,
486,
2319,
364,
3614,
8129,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def deserialize_via_marshal(string):
|
def deserialize_via_marshal(astring):
|
def deserialize_via_marshal(string): """Decompress and deserialize string into a Python object via marshal.""" return marshal.loads(decompress(string))
|
6f5cceebe9883b7b023922854fabebd034bce5f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/6f5cceebe9883b7b023922854fabebd034bce5f8/dbquery.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
7673,
67,
21985,
67,
3108,
12,
345,
371,
4672,
3536,
17731,
1028,
471,
7673,
533,
1368,
279,
6600,
733,
3970,
10893,
12123,
327,
10893,
18,
17135,
12,
323,
14706,
12,
1080,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
1652,
7673,
67,
21985,
67,
3108,
12,
345,
371,
4672,
3536,
17731,
1028,
471,
7673,
533,
1368,
279,
6600,
733,
3970,
10893,
12123,
327,
10893,
18,
17135,
12,
323,
14706,
12,
1080,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sys.stdout = sys.__stdout__
|
sys.stdout = oldstdout
|
def run( self ): if self.compType in ( DT_REGULAR, DT_INCLUDE ): sys.stdout = cStringIO.StringIO()
|
6fa10880b9901af667e502aed66e8a283ae4a211 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/6fa10880b9901af667e502aed66e8a283ae4a211/Executables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
365,
262,
30,
309,
365,
18,
2919,
559,
316,
261,
10696,
67,
5937,
19545,
16,
10696,
67,
26003,
262,
30,
2589,
18,
10283,
273,
276,
780,
4294,
18,
780,
4294,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
365,
262,
30,
309,
365,
18,
2919,
559,
316,
261,
10696,
67,
5937,
19545,
16,
10696,
67,
26003,
262,
30,
2589,
18,
10283,
273,
276,
780,
4294,
18,
780,
4294,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ns_rows.append({'cells': ns_cells, 'colspan': colspan})
|
ns_rows.append({'cells': ns_cells})
|
def render_namespace(items, times): nitems, iitems = len(items), 0 # blocks = [(nrows, ncols), ..] blocks, table, state = [], [], [] nrows = 0 for time in times[:-1]: cells = [] # add the busy cells for rowspan in state: if rowspan > 0: cells.append(Cell(Cell.busy)) else: cells.append(Cell(Cell.free, content={'start': Time.encode(time)})) # add new cells icell = 0 while iitems < nitems: start, end, item, cal = items[iitems] if start != time: break # look for a free cell while icell < len(cells): if cells[icell].type == Cell.free: break icell = icell + 1 # add cell rowspan = times.index(end) - times.index(start) cell = Cell(Cell.new, item, start, end, rowspan, None, cal) if icell >= len(cells): state.append(rowspan) cells.append(cell) else: state[icell] = rowspan cells[icell] = cell # next item iitems = iitems + 1 ncols = len(cells) # empty row? if ncols == 0: cells.append(Cell(Cell.free, content={'start': Time.encode(time)})) # next row, reduce the current rowspans nrows = nrows + 1 for i in range(ncols): rowspan = state[i] if rowspan > 0: state[i] = rowspan - 1 # a new block? if state.count(0) == ncols: state = [] blocks.append((nrows, ncols)) nrows = 0 # Add current row cells to table table.append((0, cells)) # calculate the number of columns total_ncols = mcm(map(lambda x: x[1], blocks)) # add colspan to each row and fill the incomplete rows with free cells base = 0 for nrows, ncols in blocks: if ncols == 0: colspan = total_ncols else: colspan = total_ncols/ncols irow = 0 while irow < nrows: cells = table[base + irow][1] icol = len(cells) while icol < ncols: start = Time.encode(times[base+irow]) cells.append(Cell(Cell.free, content={'start': start})) icol = icol + 1 table[base + irow] = (colspan, cells) irow = irow + 1 base = base + nrows #################################################################### # FOR EACH ROW for index, row in enumerate(table): i = 0 # FOR EACH CELL while i<len(row[1]): cell = row[1][i] ######################################################## # EXTEND FREE CELL if cell.type == Cell.free: j = i + 1 while j<len(row[1]) and row[1][j].type==Cell.free: row[1][j].type = Cell.busy j = j + 1 if j-i > 1: cell.colspan = j - i i = j ######################################################## # EXTEND NEW CELL elif cell.type == Cell.new: new_extended = [] colspan = len(row[1]) - i # MAX COLSPAN REACHED ( = 1) if colspan <= 1: break # FOR EACH LINE BELOW, USED FOR CELL TO EXTEND for n in range(cell.rowspan): if colspan <= 1: break # GET CURRENT TESTED ROW row_index = index+n irow = table[row_index] # REDUCE max colspan if necessary ilen = len(irow[1]) if ilen < colspan: colspan = ilen # TRY TO EXTEND k = 1 while k < colspan: if irow[1][i+k].type != Cell.free: colspan = k break k = k + 1 new_extended.append((row_index, i)) if colspan > 1: for row_index, k in new_extended: table[row_index][1][k].colspan = colspan for col in range(1, colspan): table[row_index][1][k+col].type = Cell.busy i = i + colspan else: i = i + 1 # end else: i = i + 1 ###################################################################### # render_namespace ###################################################################### url = ';edit_event_form?method=grid_weekly_view&' ns_rows = [] for (colspan, cells) in table: ns_cells = [] for cell in cells: # Don't add busy cells as they don't appear in template if cell.type == Cell.busy: continue if not cell.colspan: cell.colspan = colspan ns_cell = cell.to_dict() # Add start time to url used to add events new_url = None if cell.content and 'start' in cell.content: new_url = '%sstart=%s' % (url, cell.content['start']) ns_cell['newurl'] = new_url ns_cells.append(ns_cell) ns_rows.append({'cells': ns_cells, 'colspan': colspan}) return ns_rows, total_ncols
|
1d613a42339f87a03d37293214879a0488e9bfef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1d613a42339f87a03d37293214879a0488e9bfef/gridlayout.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
919,
273,
5378,
16,
5378,
16,
5378,
18871,
273,
374,
364,
813,
316,
4124,
10531,
17,
21,
14542,
5983,
273,
5378,
225,
468,
527,
326,
21697,
5983,
364,
1027,
3969,
316,
919,
30,
309,
1027,
3969,
405,
374,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9274,
93,
3719,
469,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9156,
16,
913,
5899,
11,
1937,
4278,
2647,
18,
3015,
12,
957,
16869,
3719,
225,
468,
527,
394,
5983,
277,
3855,
273,
374,
1323,
277,
3319,
411,
290,
3319,
30,
787,
16,
679,
16,
761,
16,
1443,
273,
1516,
63,
77,
3319,
65,
309,
787,
480,
813,
30,
898,
225,
468,
2324,
364,
279,
4843,
2484,
1323,
277,
3855,
411,
562,
12,
14741,
4672,
309,
5983,
63,
335,
1165,
8009,
723,
422,
8614,
18,
9156,
30,
898,
277,
3855,
273,
277,
3855,
397,
404,
225,
468,
527,
2484,
1027,
3969,
273,
4124,
18,
1615,
12,
409,
13,
300,
4124,
18,
1615,
12,
1937,
13,
2484,
273,
8614,
12,
4020,
18,
2704,
16,
761,
16,
787,
16,
679,
16,
1027,
3969,
16,
599,
16,
1443,
13,
309,
277,
3855,
1545,
562,
12,
14741,
4672,
919,
18,
6923,
12,
492,
3969,
13,
5983,
18,
6923,
12,
3855,
13,
469,
30,
919,
63,
335,
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,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
919,
273,
5378,
16,
5378,
16,
5378,
18871,
273,
374,
364,
813,
316,
4124,
10531,
17,
21,
14542,
5983,
273,
5378,
225,
468,
527,
326,
21697,
5983,
364,
1027,
3969,
316,
919,
30,
309,
1027,
3969,
405,
374,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9274,
93,
3719,
469,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9156,
16,
913,
5899,
11,
1937,
4278,
2647,
18,
3015,
12,
957,
16869,
3719,
225,
468,
527,
394,
5983,
277,
3855,
273,
374,
2
] |
info("total files: %d total hunks: %d" % (len(self.source), sum(len(hset) for hset in self.hunks)))
|
info("total files: %d total hunks: %d" % (len(self.source), sum([len(hset) for hset in self.hunks])))
|
def parse(self, stream): """ parse unified diff """ self.header = []
|
b9f25a96dfbac5c292446f7a92c4cb7565eb01ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11821/b9f25a96dfbac5c292446f7a92c4cb7565eb01ab/patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1407,
4672,
3536,
1109,
27136,
3122,
3536,
365,
18,
3374,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1407,
4672,
3536,
1109,
27136,
3122,
3536,
365,
18,
3374,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
childByDefault = addAllDefault else: childByDefault = childByDefault and byDefault
|
if group.getReason(*troveTup)[0] == ADD_REASON_ADDALL: childByDefault = addAllDefault else: childByDefault = childByDefault or addAllDefault
|
def _componentMatches(troveName, compList): if ':' not in troveName: return False comp = troveName.split(':', 1)[1] if comp in compList: return comp return False
|
7d8e833a910bbc8d9eb24619ca6d0e106f9ab550 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/7d8e833a910bbc8d9eb24619ca6d0e106f9ab550/grouprecipe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4652,
6869,
12,
88,
303,
537,
461,
16,
1161,
682,
4672,
309,
3921,
486,
316,
23432,
537,
461,
30,
327,
1083,
1161,
273,
23432,
537,
461,
18,
4939,
2668,
30,
2187,
404,
25146,
21,
65,
309,
1161,
316,
1161,
682,
30,
327,
1161,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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326,
22398,
316,
326,
981,
30,
1652,
389,
4652,
6869,
12,
88,
303,
537,
461,
16,
1161,
682,
4672,
309,
3921,
486,
316,
23432,
537,
461,
30,
327,
1083,
1161,
273,
23432,
537,
461,
18,
4939,
2668,
30,
2187,
404,
25146,
21,
65,
309,
1161,
316,
1161,
682,
30,
327,
1161,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rtype = self._create_type(source_type, options_map, False)
|
rtype = self._create_type(source_type, options_map, is_param=False, is_retval=True)
|
def _create_return(self, source_type, options=None): if options is None: options_map = {} else: options_map = self._parse_options(options) rtype = self._create_type(source_type, options_map, False) rtype = self.resolve_param_type(rtype) return_ = Return(rtype) self._handle_generic_param_options(return_, options_map) for option, data in options_map.iteritems(): if option in ('transfer', 'transfer-inferred', 'element-type', 'out'): pass else: print 'Unhandled return type annotation option: %r' % ( option, )
|
2faca8352a05cbf144b3659bd98b6fc5e62d66d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2770/2faca8352a05cbf144b3659bd98b6fc5e62d66d4/transformer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2463,
12,
2890,
16,
1084,
67,
723,
16,
702,
33,
7036,
4672,
309,
702,
353,
599,
30,
702,
67,
1458,
273,
2618,
469,
30,
702,
67,
1458,
273,
365,
6315,
2670,
67,
2116,
12,
2116,
13,
9328,
273,
365,
6315,
2640,
67,
723,
12,
3168,
67,
723,
16,
702,
67,
1458,
16,
353,
67,
891,
33,
8381,
16,
353,
67,
18341,
33,
5510,
13,
9328,
273,
365,
18,
10828,
67,
891,
67,
723,
12,
86,
723,
13,
327,
67,
273,
2000,
12,
86,
723,
13,
365,
6315,
4110,
67,
13540,
67,
891,
67,
2116,
12,
2463,
67,
16,
702,
67,
1458,
13,
364,
1456,
16,
501,
316,
702,
67,
1458,
18,
2165,
3319,
13332,
309,
1456,
316,
7707,
13866,
2187,
296,
13866,
17,
267,
4193,
2187,
296,
2956,
17,
723,
2187,
296,
659,
11,
4672,
1342,
469,
30,
1172,
296,
26952,
327,
618,
3204,
1456,
30,
738,
86,
11,
738,
261,
1456,
16,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2463,
12,
2890,
16,
1084,
67,
723,
16,
702,
33,
7036,
4672,
309,
702,
353,
599,
30,
702,
67,
1458,
273,
2618,
469,
30,
702,
67,
1458,
273,
365,
6315,
2670,
67,
2116,
12,
2116,
13,
9328,
273,
365,
6315,
2640,
67,
723,
12,
3168,
67,
723,
16,
702,
67,
1458,
16,
353,
67,
891,
33,
8381,
16,
353,
67,
18341,
33,
5510,
13,
9328,
273,
365,
18,
10828,
67,
891,
67,
723,
12,
86,
723,
13,
327,
67,
273,
2000,
12,
86,
723,
13,
365,
6315,
4110,
67,
13540,
67,
891,
67,
2116,
12,
2463,
67,
16,
702,
67,
1458,
13,
364,
1456,
16,
501,
316,
702,
67,
1458,
18,
2165,
3319,
13332,
309,
2
] |
? """, join_experiment_tables_to_coinc_table(recovery_table), """
|
''', recovery_table, ''' ''', join_experiment_tables_to_coinc_table(recovery_table), '''
|
def create_sim_rec_map_table(connection, simulation_table, recovery_table, ranking_stat): """ Creates a temporary table in the sqlite database called sim_rec_map. This table creates a direct mapping between simulation_ids in the simulation table and coinc_event_ids from the recovery_table, along with a ranking stat from the recovery_table. The columns in the sim_rec_map table are: * rec_id: coinc_event_ids of matching events from the recovery table * sim_id: the simulation_id from the sim_inspiral table * ranking_stat: any stat from the recovery table by which to rank * intermediate_id: the coinc_event_id of the sim_id (not really important for these uses) In addition, indices on the sim and rec ids are put on the table. Note that because this is a temporary table, as soon as the connection is closed, it will be deleted. @connection: connection to a sqlite database @recovery_table: any lsctable with a coinc_event_id column; e.g., coinc_inspiral @ranking_stat: the name of the ranking stat in the recovery table to use """ # if it isn't already, append the recovery_table name to the ranking_stat to ensure uniqueness if not ranking_stat.strip().startswith(recovery_table): ranking_stat = '.'.join([recovery_table.strip(), ranking_stat.strip()]) # create the sim_rec_map table; initially, this contains all mapped triggers in the database sqlscript = ''.join([""" CREATE TEMP TABLE sim_rec_map AS SELECT coinc_event_id AS intermediate_id, event_id AS rec_id, NULL AS sim_id, NULL AS ranking_stat FROM coinc_event_map WHERE table_name == "coinc_event" AND event_id IN ( SELECT coinc_event_id FROM ? """, join_experiment_tables_to_coinc_table(recovery_table), """ WHERE experiment_summary.datatype == "simulation"); -- populate the sim_id using the intermediate_id UPDATE sim_rec_map SET sim_id = ( SELECT event_id FROM coinc_event_map WHERE table_name == ? AND coinc_event_id == sim_rec_map.intermediate_id); -- create the indices CREATE INDEX srm_sid_index ON sim_rec_map (sim_id); CREATE INDEX srm_rid_index ON sim_rec_map (rec_id); -- populate ranking_stat UPDATE sim_rec_map SET ranking_stat = ( SELECT ? FROM ? WHERE """, recovery_table, """.coinc_event_id == sim_rec_map.rec_id ); """ ]) connection.cursor().executescript(sqlscript,(recovery_table, simulation_table, ranking_stat, recovery_table))
|
83b535c1c72c071da09fd95ea54958e1521ea1f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/83b535c1c72c071da09fd95ea54958e1521ea1f7/ligolw_sqlutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
9812,
67,
3927,
67,
1458,
67,
2121,
12,
4071,
16,
14754,
67,
2121,
16,
11044,
67,
2121,
16,
23087,
67,
5642,
4672,
3536,
10210,
279,
6269,
1014,
316,
326,
16184,
2063,
2566,
3142,
67,
3927,
67,
1458,
18,
1220,
1014,
3414,
279,
2657,
2874,
3086,
14754,
67,
2232,
316,
326,
14754,
1014,
471,
13170,
71,
67,
2575,
67,
2232,
628,
326,
11044,
67,
2121,
16,
7563,
598,
279,
23087,
610,
628,
326,
11044,
67,
2121,
18,
1021,
2168,
316,
326,
3142,
67,
3927,
67,
1458,
1014,
854,
30,
380,
1950,
67,
350,
30,
13170,
71,
67,
2575,
67,
2232,
434,
3607,
2641,
628,
326,
11044,
1014,
380,
3142,
67,
350,
30,
326,
14754,
67,
350,
628,
326,
3142,
67,
267,
1752,
481,
287,
1014,
380,
23087,
67,
5642,
30,
1281,
610,
628,
326,
11044,
1014,
635,
1492,
358,
6171,
380,
12110,
67,
350,
30,
326,
13170,
71,
67,
2575,
67,
350,
434,
326,
3142,
67,
350,
261,
902,
8654,
10802,
364,
4259,
4692,
13,
657,
2719,
16,
4295,
603,
326,
3142,
471,
1950,
3258,
854,
1378,
603,
326,
1014,
18,
225,
3609,
716,
2724,
333,
353,
279,
6269,
1014,
16,
487,
17136,
487,
326,
1459,
353,
4375,
16,
518,
903,
506,
4282,
18,
225,
632,
4071,
30,
1459,
358,
279,
16184,
2063,
632,
23963,
67,
2121,
30,
1281,
7180,
299,
429,
598,
279,
13170,
71,
67,
2575,
67,
350,
1057,
31,
425,
18,
75,
12990,
13170,
71,
67,
267,
1752,
481,
287,
632,
11500,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
9812,
67,
3927,
67,
1458,
67,
2121,
12,
4071,
16,
14754,
67,
2121,
16,
11044,
67,
2121,
16,
23087,
67,
5642,
4672,
3536,
10210,
279,
6269,
1014,
316,
326,
16184,
2063,
2566,
3142,
67,
3927,
67,
1458,
18,
1220,
1014,
3414,
279,
2657,
2874,
3086,
14754,
67,
2232,
316,
326,
14754,
1014,
471,
13170,
71,
67,
2575,
67,
2232,
628,
326,
11044,
67,
2121,
16,
7563,
598,
279,
23087,
610,
628,
326,
11044,
67,
2121,
18,
1021,
2168,
316,
326,
3142,
67,
3927,
67,
1458,
1014,
854,
30,
380,
1950,
67,
350,
30,
13170,
71,
67,
2575,
67,
2232,
434,
3607,
2641,
628,
326,
11044,
1014,
380,
3142,
67,
350,
30,
326,
14754,
67,
350,
628,
2
] |
pass
|
e_data = events.data() e_data.window = self e_data.text = "/nick %s" % newnick e_data.network = self.network events.trigger('Input', e_data)
|
def nick_change(newnick): pass
|
d0f55c886d8a7de365f537a85572add044d8688f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/d0f55c886d8a7de365f537a85572add044d8688f/ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10909,
67,
3427,
12,
2704,
17091,
4672,
425,
67,
892,
273,
2641,
18,
892,
1435,
425,
67,
892,
18,
5668,
273,
365,
425,
67,
892,
18,
955,
273,
2206,
17091,
738,
87,
6,
738,
394,
17091,
425,
67,
892,
18,
5185,
273,
365,
18,
5185,
2641,
18,
10668,
2668,
1210,
2187,
425,
67,
892,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10909,
67,
3427,
12,
2704,
17091,
4672,
425,
67,
892,
273,
2641,
18,
892,
1435,
425,
67,
892,
18,
5668,
273,
365,
425,
67,
892,
18,
955,
273,
2206,
17091,
738,
87,
6,
738,
394,
17091,
425,
67,
892,
18,
5185,
273,
365,
18,
5185,
2641,
18,
10668,
2668,
1210,
2187,
425,
67,
892,
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
] |
titlelabel = ui.label(text=_("Title") + ":", x=1) titleentry = ui.entry() titlebutton = ui.button() titlebuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(titlebutton, titlebuttonvbox, titleentry) titlehbox = gtk.HBox() titlehbox.pack_start(titlelabel, False, False, 2) titlehbox.pack_start(titleentry, True, True, 2) titlehbox.pack_start(titlebuttonvbox, False, False, 2) artistlabel = ui.label(text=_("Artist") + ":", x=1) artistentry = ui.entry() artisthbox = gtk.HBox() artistbutton = ui.button() artistbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(artistbutton, artistbuttonvbox, artistentry) artisthbox.pack_start(artistlabel, False, False, 2) artisthbox.pack_start(artistentry, True, True, 2) artisthbox.pack_start(artistbuttonvbox, False, False, 2) albumlabel = ui.label(text=_("Album") + ":", x=1) albumentry = ui.entry() albumhbox = gtk.HBox() albumbutton = ui.button() albumbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(albumbutton, albumbuttonvbox, albumentry) albumhbox.pack_start(albumlabel, False, False, 2) albumhbox.pack_start(albumentry, True, True, 2) albumhbox.pack_start(albumbuttonvbox, False, False, 2) yearlabel = ui.label(text=" " + _("Year") + ":", x=1) yearentry = ui.entry(w=50)
|
titlelabel, titleentry, titlebutton, titlehbox = self._create_label_entry_button_hbox(_("Title")) artistlabel, artistentry, artistbutton, artisthbox = self._create_label_entry_button_hbox(_("Artist")) albumlabel, albumentry, albumbutton, albumhbox = self._create_label_entry_button_hbox(_("Album")) yearlabel, yearentry, yearbutton, yearhbox = self._create_label_entry_button_hbox(_("Year")) yearentry.set_size_request(50,-1) tracklabel, trackentry, trackbutton, trackhbox = self._create_label_entry_button_hbox(" " + _("Track"), True) trackentry.set_size_request(50,-1) yearandtrackhbox = gtk.HBox() yearandtrackhbox.pack_start(yearhbox, True, True, 0) yearandtrackhbox.pack_start(trackhbox, True, True, 0)
|
def on_tags_edit(self, files, temp_mpdpaths, music_dir): """Display the editing dialog""" # Try loading module global tagpy if tagpy is None: try: import tagpy # Set default tag encoding to utf8.. fixes some reported bugs. import tagpy.id3v2 as id3v2 id3v2.FrameFactory.instance().setDefaultTextEncoding(tagpy.StringType.UTF8) except: pass if tagpy is None: ui.show_msg(self.window, _("Taglib and/or tagpy not found, tag editing support disabled."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, response_cb=ui.dialog_destroy) ui.change_cursor(None) return if not os.path.isdir(misc.file_from_utf8(music_dir)): ui.show_msg(self.window, _("The path") + " " + music_dir + " " + _("does not exist. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, response_cb=ui.dialog_destroy) ui.change_cursor(None) return
|
28fcba0e29af1c09d48bf18063cbf8f66985ca38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/28fcba0e29af1c09d48bf18063cbf8f66985ca38/tagedit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4156,
67,
4619,
12,
2890,
16,
1390,
16,
1906,
67,
1291,
72,
4481,
16,
26225,
67,
1214,
4672,
3536,
4236,
326,
15755,
6176,
8395,
468,
6161,
7153,
1605,
2552,
1047,
2074,
309,
1047,
2074,
353,
599,
30,
775,
30,
1930,
1047,
2074,
468,
1000,
805,
1047,
2688,
358,
7718,
28,
838,
24436,
2690,
14010,
22398,
18,
1930,
1047,
2074,
18,
350,
23,
90,
22,
487,
612,
23,
90,
22,
612,
23,
90,
22,
18,
3219,
1733,
18,
1336,
7675,
542,
1868,
1528,
4705,
12,
2692,
2074,
18,
780,
559,
18,
5159,
28,
13,
1335,
30,
1342,
309,
1047,
2074,
353,
599,
30,
5915,
18,
4500,
67,
3576,
12,
2890,
18,
5668,
16,
389,
2932,
1805,
2941,
471,
19,
280,
1047,
2074,
486,
1392,
16,
1047,
15755,
2865,
5673,
1199,
3631,
389,
2932,
4666,
8750,
6,
3631,
296,
4619,
3453,
668,
2187,
22718,
18,
20068,
55,
67,
13384,
16,
766,
67,
7358,
33,
4881,
18,
12730,
67,
11662,
13,
5915,
18,
3427,
67,
9216,
12,
7036,
13,
327,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
23667,
18,
768,
67,
2080,
67,
3158,
28,
12,
81,
14894,
67,
1214,
3719,
30,
5915,
18,
4500,
67,
3576,
12,
2890,
18,
5668,
16,
389,
2932,
1986,
589,
7923,
397,
315,
315,
397,
26225,
67,
1214,
397,
315,
315,
397,
389,
2932,
20657,
486,
1005,
18,
7801,
4800,
279,
923,
26225,
1867,
316,
12750,
1199,
3631,
389,
2932,
4666,
8750,
6,
3631,
296,
4619,
3453,
668,
2187,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4156,
67,
4619,
12,
2890,
16,
1390,
16,
1906,
67,
1291,
72,
4481,
16,
26225,
67,
1214,
4672,
3536,
4236,
326,
15755,
6176,
8395,
468,
6161,
7153,
1605,
2552,
1047,
2074,
309,
1047,
2074,
353,
599,
30,
775,
30,
1930,
1047,
2074,
468,
1000,
805,
1047,
2688,
358,
7718,
28,
838,
24436,
2690,
14010,
22398,
18,
1930,
1047,
2074,
18,
350,
23,
90,
22,
487,
612,
23,
90,
22,
612,
23,
90,
22,
18,
3219,
1733,
18,
1336,
7675,
542,
1868,
1528,
4705,
12,
2692,
2074,
18,
780,
559,
18,
5159,
28,
13,
1335,
30,
1342,
309,
1047,
2074,
353,
599,
30,
5915,
18,
4500,
67,
3576,
12,
2890,
18,
5668,
16,
389,
2932,
1805,
2941,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.