rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
if self.talkNamespacePattern.has_key(code): talk = self.talkNamespacePattern[code]
|
if self.talkNamespacePatterns.has_key(code): talk = self.talkNamespacePatterns[code]
|
def _talkNamespace(self, code, associatedNamespaceIndex): associatedNamespace = self.namespace(code, associatedNamespaceIndex) if self.talkNamespacePattern.has_key(code): talk = self.talkNamespacePattern[code] else: talk = self.talkNamespacePattern['_default'] return talk(associatedNamespace)
|
7f20001aefa656500ab3d04645613adc8cbb0d16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7f20001aefa656500ab3d04645613adc8cbb0d16/family.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
88,
2960,
3402,
12,
2890,
16,
981,
16,
3627,
3402,
1016,
4672,
3627,
3402,
273,
365,
18,
4937,
12,
710,
16,
3627,
3402,
1016,
13,
309,
365,
18,
88,
2960,
3402,
11268,
18,
5332,
67,
856,
12,
710,
4672,
26591,
273,
365,
18,
88,
2960,
3402,
11268,
63,
710,
65,
469,
30,
26591,
273,
365,
18,
88,
2960,
3402,
3234,
3292,
67,
1886,
3546,
327,
26591,
12,
28441,
3402,
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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
3627,
3402,
273,
365,
18,
4937,
12,
710,
16,
3627,
3402,
1016,
13,
309,
365,
18,
88,
2960,
3402,
11268,
18,
5332,
67,
856,
12,
710,
4672,
26591,
273,
365,
18,
88,
2960,
3402,
11268,
63,
710,
65,
469,
30,
26591,
273,
365,
18,
88,
2960,
3402,
3234,
3292,
67,
1886,
3546,
327,
26591,
12,
28441,
3402,
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
] |
file.write("<?xml version='1.0' encoding='%s'?>\n" % encoding)
|
file.write(_encode("<?xml version='1.0' encoding='%s'?>\n" % encoding, encoding))
|
def write(self, file, encoding="us-ascii"): assert self._root is not None if not hasattr(file, "write"): file = open(file, "wb") if not encoding: encoding = "us-ascii" elif encoding != "utf-8" and encoding != "us-ascii": file.write("<?xml version='1.0' encoding='%s'?>\n" % encoding) self._write(file, self._root, encoding, {})
|
e4cfaf8f7bb5d21848fb232e3757979401720c1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e4cfaf8f7bb5d21848fb232e3757979401720c1d/ElementTree.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
585,
16,
2688,
1546,
407,
17,
9184,
6,
4672,
1815,
365,
6315,
3085,
353,
486,
599,
309,
486,
3859,
12,
768,
16,
315,
2626,
6,
4672,
585,
273,
1696,
12,
768,
16,
315,
9464,
7923,
309,
486,
2688,
30,
2688,
273,
315,
407,
17,
9184,
6,
1327,
2688,
480,
315,
3158,
17,
28,
6,
471,
2688,
480,
315,
407,
17,
9184,
6877,
585,
18,
2626,
24899,
3015,
2932,
12880,
2902,
1177,
2218,
21,
18,
20,
11,
2688,
28713,
87,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
585,
16,
2688,
1546,
407,
17,
9184,
6,
4672,
1815,
365,
6315,
3085,
353,
486,
599,
309,
486,
3859,
12,
768,
16,
315,
2626,
6,
4672,
585,
273,
1696,
12,
768,
16,
315,
9464,
7923,
309,
486,
2688,
30,
2688,
273,
315,
407,
17,
9184,
6,
1327,
2688,
480,
315,
3158,
17,
28,
6,
471,
2688,
480,
315,
407,
17,
9184,
6877,
585,
18,
2626,
24899,
3015,
2932,
12880,
2902,
1177,
2218,
21,
18,
20,
11,
2688,
28713,
87,
11,
35,
5333,
82,
6,
738,
2688,
16,
2688,
3719,
365,
6315,
2626,
12,
768,
16,
365,
6315,
3085,
16,
2688,
16,
2618,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def create(self, cr, uid, vals, context=None): if (not vals.get('company_ids',[])): company_ids = self._get_companies(cr, uid, context=context) if company_ids and len(company_ids): vals['company_ids'] = [(6, 0, company_ids)] return super(users, self).create(cr, uid, vals, context=context)
|
def create(self, cr, uid, vals, context=None): if (not vals.get('company_ids',[])): company_ids = self._get_companies(cr, uid, context=context) if company_ids and len(company_ids): vals['company_ids'] = [(6, 0, company_ids)] return super(users, self).create(cr, uid, vals, context=context)
|
236e74c3964942f354ae00f5bea0883b4842693e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/236e74c3964942f354ae00f5bea0883b4842693e/res_user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
819,
33,
7036,
4672,
309,
261,
902,
5773,
18,
588,
2668,
16840,
67,
2232,
2187,
8526,
3719,
30,
9395,
67,
2232,
273,
365,
6315,
588,
67,
2919,
27891,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
309,
9395,
67,
2232,
471,
562,
12,
16840,
67,
2232,
4672,
5773,
3292,
16840,
67,
2232,
3546,
273,
306,
12,
26,
16,
374,
16,
9395,
67,
2232,
25887,
327,
2240,
12,
5577,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
5773,
16,
819,
33,
2472,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
819,
33,
7036,
4672,
309,
261,
902,
5773,
18,
588,
2668,
16840,
67,
2232,
2187,
8526,
3719,
30,
9395,
67,
2232,
273,
365,
6315,
588,
67,
2919,
27891,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
309,
9395,
67,
2232,
471,
562,
12,
16840,
67,
2232,
4672,
5773,
3292,
16840,
67,
2232,
3546,
273,
306,
12,
26,
16,
374,
16,
9395,
67,
2232,
25887,
327,
2240,
12,
5577,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
5773,
16,
819,
33,
2472,
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
] |
|
output = run_pip('search', 'pip', expect_error=True)
|
output = run_pip('search', 'pip')
|
def test_search(): """ End to end test of search command. """ reset_env() output = run_pip('search', 'pip', expect_error=True) assert 'pip installs packages' in output.stdout
|
b4b5a25752431f591201dd737ab67e8b1ea2a6d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12982/b4b5a25752431f591201dd737ab67e8b1ea2a6d6/test_search.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3072,
13332,
3536,
4403,
358,
679,
1842,
434,
1623,
1296,
18,
225,
3536,
2715,
67,
3074,
1435,
876,
273,
1086,
67,
16104,
2668,
3072,
2187,
296,
16104,
6134,
1815,
296,
16104,
31011,
5907,
11,
316,
876,
18,
10283,
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,
1842,
67,
3072,
13332,
3536,
4403,
358,
679,
1842,
434,
1623,
1296,
18,
225,
3536,
2715,
67,
3074,
1435,
876,
273,
1086,
67,
16104,
2668,
3072,
2187,
296,
16104,
6134,
1815,
296,
16104,
31011,
5907,
11,
316,
876,
18,
10283,
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
] |
load_kvm_modules(self.userspace_srcdir)
|
load_kvm_modules(module_dir=self.userspace_srcdir, extra_modules=self.extra_modules)
|
def __load_modules(self): if self.kmod_srcdir: load_kvm_modules(self.kmod_srcdir) else: load_kvm_modules(self.userspace_srcdir)
|
ded2f2870602ded49e8aa3d2370d632cd56ed3ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/ded2f2870602ded49e8aa3d2370d632cd56ed3ad/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
945,
67,
6400,
12,
2890,
4672,
309,
365,
18,
79,
1711,
67,
4816,
1214,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2890,
18,
79,
1711,
67,
4816,
1214,
13,
469,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2890,
18,
5577,
909,
67,
4816,
1214,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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652,
1001,
945,
67,
6400,
12,
2890,
4672,
309,
365,
18,
79,
1711,
67,
4816,
1214,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2890,
18,
79,
1711,
67,
4816,
1214,
13,
469,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2890,
18,
5577,
909,
67,
4816,
1214,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.lbOperatorsS = QListBox(None, 'SelAttr') self.operatorStack.addWidget(self.lbOperatorsS, orange.VarTypes.String)
|
self.lbOperatorsS = QListBox(boxOper, 'SelAttr') self.lbOperatorsS.hide()
|
def __init__(self, parent = None, signalManager = None, name = "Select data"): OWWidget.__init__(self, parent, signalManager, name) #initialize base class
|
6fb737c53ad3d8d35c510b65dfcd422e0ebe49cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/6fb737c53ad3d8d35c510b65dfcd422e0ebe49cc/OWSelectData.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
3391,
501,
6,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
508,
13,
225,
468,
11160,
1026,
667,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
3391,
501,
6,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
508,
13,
225,
468,
11160,
1026,
667,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cvs_command = 'cvs history -x AMR -a -D "' + cvs_date + '"' self.run_and_log(cvs_command, 'cvshistory', 'Getting CVS history') hf = open(self.working_dir + '/' + cvshistory, 'r')
|
hf = open(self.working_dir + '/cvshistory', 'r')
|
def report(self): header = """StreamIt Regression Test Summary
|
6f7d3c3ee19514d16a2229dd7d3ce4aa65d57f56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12935/6f7d3c3ee19514d16a2229dd7d3ce4aa65d57f56/run-reg-tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2890,
4672,
1446,
273,
3536,
1228,
7193,
868,
2329,
285,
7766,
17967,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
keys = self.d.keys() keys.sort()
|
keys = sorted(self.d.keys())
|
def test_keyordering(self): if self.openmethod[0] is not bsddb.btopen: return keys = self.d.keys() keys.sort() self.assertEqual(self.f.first()[0], keys[0]) self.assertEqual(self.f.next()[0], keys[1]) self.assertEqual(self.f.last()[0], keys[-1]) self.assertEqual(self.f.previous()[0], keys[-2]) self.assertEqual(list(self.f), keys)
|
74f5f86ea8badd04c2128f950cf7eaa8ac99ad73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/74f5f86ea8badd04c2128f950cf7eaa8ac99ad73/test_bsddb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
856,
22598,
12,
2890,
4672,
309,
365,
18,
3190,
2039,
63,
20,
65,
353,
486,
7081,
449,
70,
18,
23602,
3190,
30,
327,
1311,
273,
3115,
12,
2890,
18,
72,
18,
2452,
10756,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
3645,
1435,
63,
20,
6487,
1311,
63,
20,
5717,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
4285,
1435,
63,
20,
6487,
1311,
63,
21,
5717,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
2722,
1435,
63,
20,
6487,
1311,
18919,
21,
5717,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
11515,
1435,
63,
20,
6487,
1311,
18919,
22,
5717,
365,
18,
11231,
5812,
12,
1098,
12,
2890,
18,
74,
3631,
1311,
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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
2890,
18,
74,
18,
3645,
1435,
63,
20,
6487,
1311,
63,
20,
5717,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
4285,
1435,
63,
20,
6487,
1311,
63,
21,
5717,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
2722,
1435,
63,
20,
6487,
1311,
18919,
21,
5717,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
11515,
1435,
63,
20,
6487,
1311,
18919,
22,
5717,
365,
18,
11231,
5812,
12,
1098,
12,
2890,
18,
74,
3631,
2
] |
packageIds = self._sortPackages1(packages.keys(), packages)
|
packageIds = self._sortPackages(packages.keys(), packages)
|
def _optimizePackages(self, packages, parts, variants, minPackageSize, minPackageSizeForUnshared): # Support for merging small packages # The first common package before the selected package between two # or more parts is allowed to merge with. As the package which should be merged # may have requirements, these must be solved. The easiest way to be sure regarding # this issue, is to look out for another common package.
|
b1dd5c93f0d75604db233288a90b120bcf0450ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/b1dd5c93f0d75604db233288a90b120bcf0450ed/PartBuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
11425,
12,
2890,
16,
5907,
16,
2140,
16,
12935,
16,
1131,
2261,
1225,
16,
1131,
2261,
1225,
1290,
984,
11574,
4672,
468,
13619,
364,
17256,
5264,
5907,
468,
1021,
1122,
2975,
2181,
1865,
326,
3170,
2181,
3086,
2795,
468,
578,
1898,
2140,
353,
2935,
358,
2691,
598,
18,
2970,
326,
2181,
1492,
1410,
506,
5384,
468,
2026,
1240,
8433,
16,
4259,
1297,
506,
3704,
2155,
18,
1021,
7264,
77,
395,
4031,
358,
506,
3071,
29012,
468,
333,
5672,
16,
353,
358,
2324,
596,
364,
4042,
2975,
2181,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
11425,
12,
2890,
16,
5907,
16,
2140,
16,
12935,
16,
1131,
2261,
1225,
16,
1131,
2261,
1225,
1290,
984,
11574,
4672,
468,
13619,
364,
17256,
5264,
5907,
468,
1021,
1122,
2975,
2181,
1865,
326,
3170,
2181,
3086,
2795,
468,
578,
1898,
2140,
353,
2935,
358,
2691,
598,
18,
2970,
326,
2181,
1492,
1410,
506,
5384,
468,
2026,
1240,
8433,
16,
4259,
1297,
506,
3704,
2155,
18,
1021,
7264,
77,
395,
4031,
358,
506,
3071,
29012,
468,
333,
5672,
16,
353,
358,
2324,
596,
364,
4042,
2975,
2181,
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
] |
print "WARNING: SQLite does not support adding unique constraints. Ignored."
|
print " ! WARNING: SQLite does not support adding unique constraints. Ignored."
|
def create_unique(self, table_name, columns): """ Not supported under SQLite. """ print "WARNING: SQLite does not support adding unique constraints. Ignored."
|
9ac2fbab57c1645782a26d67b4a29cf5e9a9f5b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/9ac2fbab57c1645782a26d67b4a29cf5e9a9f5b7/sqlite3.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6270,
12,
2890,
16,
1014,
67,
529,
16,
2168,
4672,
3536,
2288,
3260,
3613,
16192,
18,
3536,
1172,
315,
282,
401,
9744,
30,
16192,
1552,
486,
2865,
6534,
3089,
6237,
18,
8049,
72,
1199,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6270,
12,
2890,
16,
1014,
67,
529,
16,
2168,
4672,
3536,
2288,
3260,
3613,
16192,
18,
3536,
1172,
315,
282,
401,
9744,
30,
16192,
1552,
486,
2865,
6534,
3089,
6237,
18,
8049,
72,
1199,
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
] |
objRef = ContainerRef(Indirection(evalStr=key))
|
objRef = ContainerRef(Indirection(evalStr='%s' % key))
|
def run(self): try: while True: # yield up here instead of at the end, since we skip back to the # top of the while loop from various points yield None #import pdb;pdb.set_trace() curObj = None if self._curObjRef is None: self._curObjRef = self._baseObjRef try: for result in self._curObjRef.getContainer(): yield None curObj = result except: self.notify.debug('lost current container: %s' % self._curObjRef) # that container is gone, try again self._curObjRef = None continue self.notify.debug('--> %s' % self._curObjRef)
|
2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
468,
2824,
731,
2674,
3560,
434,
622,
326,
679,
16,
3241,
732,
2488,
1473,
358,
326,
468,
1760,
434,
326,
1323,
2798,
628,
11191,
3143,
2824,
599,
468,
5666,
10892,
31,
17414,
18,
542,
67,
5129,
1435,
662,
2675,
273,
599,
309,
365,
6315,
1397,
2675,
1957,
353,
599,
30,
365,
6315,
1397,
2675,
1957,
273,
365,
6315,
1969,
2675,
1957,
775,
30,
364,
563,
316,
365,
6315,
1397,
2675,
1957,
18,
588,
2170,
13332,
2824,
599,
662,
2675,
273,
563,
1335,
30,
365,
18,
12336,
18,
4148,
2668,
383,
334,
783,
1478,
30,
738,
87,
11,
738,
365,
6315,
1397,
2675,
1957,
13,
468,
716,
1478,
353,
22296,
16,
775,
3382,
365,
6315,
1397,
2675,
1957,
273,
599,
1324,
365,
18,
12336,
18,
4148,
2668,
413,
34,
738,
87,
11,
738,
365,
6315,
1397,
2675,
1957,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
468,
2824,
731,
2674,
3560,
434,
622,
326,
679,
16,
3241,
732,
2488,
1473,
358,
326,
468,
1760,
434,
326,
1323,
2798,
628,
11191,
3143,
2824,
599,
468,
5666,
10892,
31,
17414,
18,
542,
67,
5129,
1435,
662,
2675,
273,
599,
309,
365,
6315,
1397,
2675,
1957,
353,
599,
30,
365,
6315,
1397,
2675,
1957,
273,
365,
6315,
1969,
2675,
1957,
775,
30,
364,
563,
316,
365,
6315,
1397,
2675,
1957,
18,
588,
2170,
13332,
2824,
599,
662,
2675,
273,
563,
1335,
30,
365,
18,
12336,
18,
4148,
2668,
383,
334,
783,
1478,
30,
738,
87,
11,
738,
365,
6315,
1397,
2675,
1957,
13,
468,
716,
1478,
353,
22296,
2
] |
"""Return an MSYS translation of an absolute Windows path"""
|
"""Return an MSYS translation of an absolute Windows path Spaces in the path are escaped. """
|
def windows_to_msys(self, path): """Return an MSYS translation of an absolute Windows path""" msys_root = self.msys_root mingw_root = self.mingw_root path_lower = path.lower() if path_lower.startswith(msys_root.lower()): return '/usr' + path[len(msys_root):].replace(os.sep, '/') if mingw_root is not None and path_lower.startswith(mingw_root.lower()): return '/mingw' + path[len(mingw_root):].replace(os.sep, '/') drive, tail = os.path.splitdrive(path) return '/%s%s' % (drive[0], tail.replace(os.sep, '/'))
|
8e0ba62ed71dd2154caecbb41bbc43592279bf8d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/8e0ba62ed71dd2154caecbb41bbc43592279bf8d/msys.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9965,
67,
869,
67,
959,
1900,
12,
2890,
16,
589,
4672,
3536,
990,
392,
490,
30664,
4794,
434,
392,
4967,
8202,
589,
225,
348,
4996,
316,
326,
589,
854,
8345,
18,
3536,
225,
4086,
1900,
67,
3085,
273,
365,
18,
959,
1900,
67,
3085,
312,
310,
91,
67,
3085,
273,
365,
18,
11987,
91,
67,
3085,
589,
67,
8167,
273,
589,
18,
8167,
1435,
309,
589,
67,
8167,
18,
17514,
1918,
12,
959,
1900,
67,
3085,
18,
8167,
1435,
4672,
327,
1173,
13640,
11,
397,
589,
63,
1897,
12,
959,
1900,
67,
3085,
4672,
8009,
2079,
12,
538,
18,
10814,
16,
2023,
13,
309,
312,
310,
91,
67,
3085,
353,
486,
599,
471,
589,
67,
8167,
18,
17514,
1918,
12,
11987,
91,
67,
3085,
18,
8167,
1435,
4672,
327,
1173,
11987,
91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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9965,
67,
869,
67,
959,
1900,
12,
2890,
16,
589,
4672,
3536,
990,
392,
490,
30664,
4794,
434,
392,
4967,
8202,
589,
225,
348,
4996,
316,
326,
589,
854,
8345,
18,
3536,
225,
4086,
1900,
67,
3085,
273,
365,
18,
959,
1900,
67,
3085,
312,
310,
91,
67,
3085,
273,
365,
18,
11987,
91,
67,
3085,
589,
67,
8167,
273,
589,
18,
8167,
1435,
309,
589,
67,
8167,
18,
17514,
1918,
12,
959,
1900,
67,
3085,
18,
8167,
1435,
4672,
327,
1173,
13640,
11,
397,
589,
63,
1897,
12,
959,
1900,
67,
3085,
4672,
8009,
2079,
12,
538,
18,
10814,
16,
2023,
13,
309,
312,
310,
91,
67,
3085,
353,
486,
599,
471,
589,
67,
8167,
18,
17514,
2
] |
def testUndecodable(self):
|
def testUnencodable(self):
|
def testUndecodable(self): filename = support.TESTFN_UNENCODABLE + ".zip" z = ZipFile(filename, "w") zinfo = ZipInfo(TESTMOD + ".py", time.localtime(NOW)) zinfo.compress_type = self.compression z.writestr(zinfo, test_src) z.close() try: zipimport.zipimporter(filename) finally: os.remove(filename)
|
6e0f3691a550b8a017826fa82f0f376b23db551c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/6e0f3691a550b8a017826fa82f0f376b23db551c/test_zipimport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
984,
1331,
369,
429,
12,
2890,
4672,
1544,
273,
2865,
18,
16961,
19793,
67,
2124,
1157,
9086,
2782,
397,
3552,
4450,
6,
998,
273,
18364,
12,
3459,
16,
315,
91,
7923,
998,
1376,
273,
8603,
966,
12,
16961,
6720,
397,
3552,
2074,
3113,
813,
18,
3729,
957,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
984,
1331,
369,
429,
12,
2890,
4672,
1544,
273,
2865,
18,
16961,
19793,
67,
2124,
1157,
9086,
2782,
397,
3552,
4450,
6,
998,
273,
18364,
12,
3459,
16,
315,
91,
7923,
998,
1376,
273,
8603,
966,
12,
16961,
6720,
397,
3552,
2074,
3113,
813,
18,
3729,
957,
12,
27091,
3719,
998,
1376,
18,
14706,
67,
723,
273,
365,
18,
23766,
998,
18,
13284,
313,
12,
94,
1376,
16,
1842,
67,
4816,
13,
998,
18,
4412,
1435,
775,
30,
3144,
5666,
18,
4450,
381,
7988,
12,
3459,
13,
3095,
30,
1140,
18,
4479,
12,
3459,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.add_links(link)
|
self.add_links(list)
|
def start(self): """ starts the machine """ if len(argv) > 1: shortOptions = 'pu:l:' longOptions = ['print', 'url=', 'list=']
|
2ec98183a8fc44e2f2da62a5e820d61250b66489 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/2ec98183a8fc44e2f2da62a5e820d61250b66489/pyLoadCore.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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
2542,
326,
5228,
3536,
309,
562,
12,
19485,
13,
405,
404,
30,
3025,
1320,
273,
296,
11938,
30,
80,
2497,
1525,
1320,
273,
10228,
1188,
2187,
296,
718,
33,
2187,
296,
1098,
2218,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not self.controlFrame.Show(True): self.controlFrame.Raise() if not self.threedFrame.Show(True): self.threedFrame.Raise()
|
self.controlFrame.Show(True) self.controlFrame.Raise() self.threedFrame.Show(True) self.threedFrame.Raise()
|
def view(self): if not self.controlFrame.Show(True): self.controlFrame.Raise()
|
b8328cfabac64b753f68b5285e65c5f7390b10e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/b8328cfabac64b753f68b5285e65c5f7390b10e3/slice3dVWR.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
2890,
4672,
309,
486,
365,
18,
7098,
3219,
18,
5706,
12,
5510,
4672,
365,
18,
7098,
3219,
18,
30570,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
2890,
4672,
309,
486,
365,
18,
7098,
3219,
18,
5706,
12,
5510,
4672,
365,
18,
7098,
3219,
18,
30570,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.msgText("Grow Display!\n")
|
if (self.debugLevel >= HighDebug) : self.msgText("Grow Display!\n")
|
def whenShrinkButtonClicked(self, event): if (self.shrinkGrow == True) : self.msgText("Shrink Display!\n") # add text self.speedPane.setVisible(False) self.shrinkGrow = False self.fullScrollRows = self.scrollArea.getRows() self.scrollArea.setRows(self.fullScrollRows / 2) self.scriptFrame.pack() else : self.msgText("Grow Display!\n") self.speedPane.setVisible(True) self.shrinkGrow = True self.scrollArea.setRows(self.fullScrollRows) self.scriptFrame.pack() return
|
637586c522dc4614e3aa55f7046de00d6eaa8ae0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1660/637586c522dc4614e3aa55f7046de00d6eaa8ae0/RobotThrottle2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1347,
28747,
3616,
27633,
12,
2890,
16,
871,
4672,
309,
261,
2890,
18,
674,
12334,
30948,
422,
1053,
13,
294,
365,
18,
3576,
1528,
2932,
28747,
9311,
24440,
82,
7923,
377,
468,
527,
977,
365,
18,
13871,
8485,
18,
542,
6207,
12,
8381,
13,
365,
18,
674,
12334,
30948,
273,
1083,
365,
18,
2854,
6806,
4300,
273,
365,
18,
12033,
5484,
18,
588,
4300,
1435,
365,
18,
12033,
5484,
18,
542,
4300,
12,
2890,
18,
2854,
6806,
4300,
342,
576,
13,
365,
18,
4263,
3219,
18,
2920,
1435,
469,
294,
309,
261,
2890,
18,
4148,
2355,
1545,
15207,
2829,
13,
294,
365,
18,
3576,
1528,
2932,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1347,
28747,
3616,
27633,
12,
2890,
16,
871,
4672,
309,
261,
2890,
18,
674,
12334,
30948,
422,
1053,
13,
294,
365,
18,
3576,
1528,
2932,
28747,
9311,
24440,
82,
7923,
377,
468,
527,
977,
365,
18,
13871,
8485,
18,
542,
6207,
12,
8381,
13,
365,
18,
674,
12334,
30948,
273,
1083,
365,
18,
2854,
6806,
4300,
273,
365,
18,
12033,
5484,
18,
588,
4300,
1435,
365,
18,
12033,
5484,
18,
542,
4300,
12,
2890,
18,
2854,
6806,
4300,
342,
576,
13,
365,
18,
4263,
3219,
18,
2920,
1435,
469,
294,
309,
261,
2890,
18,
4148,
2355,
1545,
15207,
2829,
13,
294,
365,
18,
3576,
1528,
2932,
30948,
9311,
24440,
82,
7923,
365,
18,
13871,
8485,
18,
542,
6207,
2
] |
spec['packages'].append(m.group())
|
pkgs.add(m.group()) spec['packages'] = list(pkgs)
|
def write_spec_depend(egg_info): """ egg_info is the path to the EGG-INFO directory """ from enstaller.indexed_repo.metadata import data_from_spec pkg_info = open(os.path.join(egg_info, 'PKG-INFO')).read() spec = {'build': 1, 'arch':None, 'platform':None, 'osdist':None, 'python': '%i.%i' % sys.version_info[:2], 'packages': [] } for var in ['name', 'version']: pat = re.compile(r'^%s:\s*(\S+)' % var, re.M | re.I) spec[var] = pat.search(pkg_info).group(1) requires_txt = os.path.join(egg_info, 'requires.txt') pat = re.compile(r'[\w\-.]+') if os.path.isfile(requires_txt): for line in open(requires_txt): m = pat.match(line.strip()) if m: spec['packages'].append(m.group()) spec_dir = os.path.join(egg_info, 'spec') if not os.path.isdir(spec_dir): log.info("creating dir %r" % spec_dir) os.mkdir(spec_dir) path = os.path.join(spec_dir, 'depend') log.info("writing %r" % path) fo = open(path, 'w') fo.write(data_from_spec(spec)) fo.close()
|
d226366c693e47079be71071affa734171f2588a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7707/d226366c693e47079be71071affa734171f2588a/bdist_egg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2793,
67,
5817,
12,
23171,
67,
1376,
4672,
3536,
25144,
67,
1376,
353,
326,
589,
358,
326,
512,
19491,
17,
5923,
1867,
3536,
628,
570,
3429,
264,
18,
19626,
67,
7422,
18,
4165,
1930,
501,
67,
2080,
67,
2793,
225,
3475,
67,
1376,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
23171,
67,
1376,
16,
296,
8784,
43,
17,
5923,
6134,
2934,
896,
1435,
225,
857,
273,
13666,
3510,
4278,
404,
16,
296,
991,
4278,
7036,
16,
296,
9898,
4278,
7036,
16,
296,
538,
4413,
4278,
7036,
16,
296,
8103,
4278,
1995,
77,
7866,
77,
11,
738,
2589,
18,
1589,
67,
1376,
10531,
22,
6487,
296,
10308,
4278,
5378,
289,
364,
569,
316,
10228,
529,
2187,
296,
1589,
3546,
30,
9670,
273,
283,
18,
11100,
12,
86,
19856,
9,
87,
5581,
87,
27220,
55,
29169,
738,
569,
16,
283,
18,
49,
571,
283,
18,
45,
13,
857,
63,
1401,
65,
273,
9670,
18,
3072,
12,
10657,
67,
1376,
2934,
1655,
12,
21,
13,
225,
4991,
67,
5830,
273,
1140,
18,
803,
18,
5701,
12,
23171,
67,
1376,
16,
296,
18942,
18,
5830,
6134,
9670,
273,
283,
18,
11100,
12,
86,
11,
7438,
91,
12907,
18,
3737,
6134,
309,
1140,
18,
803,
18,
291,
768,
12,
18942,
67,
5830,
4672,
364,
980,
316,
1696,
12,
18942,
67,
5830,
4672,
312,
273,
9670,
18,
1916,
12,
1369,
18,
6406,
10756,
309,
312,
30,
16922,
18,
1289,
12,
81,
18,
1655,
10756,
857,
3292,
10308,
3546,
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,
67,
2793,
67,
5817,
12,
23171,
67,
1376,
4672,
3536,
25144,
67,
1376,
353,
326,
589,
358,
326,
512,
19491,
17,
5923,
1867,
3536,
628,
570,
3429,
264,
18,
19626,
67,
7422,
18,
4165,
1930,
501,
67,
2080,
67,
2793,
225,
3475,
67,
1376,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
23171,
67,
1376,
16,
296,
8784,
43,
17,
5923,
6134,
2934,
896,
1435,
225,
857,
273,
13666,
3510,
4278,
404,
16,
296,
991,
4278,
7036,
16,
296,
9898,
4278,
7036,
16,
296,
538,
4413,
4278,
7036,
16,
296,
8103,
4278,
1995,
77,
7866,
77,
11,
738,
2589,
18,
1589,
67,
1376,
10531,
22,
6487,
296,
10308,
4278,
5378,
289,
364,
569,
316,
10228,
529,
2
] |
self.layer.texture_mode_set(1, color)
|
self.layer.texture_mode_set(1, color)
|
def color_cb(self, color, type): #if color[0] == 1.0 and color[1] == 1.0 \ # and color[2] == 1.0 and color[3] == 1.0: # pass #else: if self.updating: return if color[3] != 1.0: self.layer.blend_mode_set(RL_BLEND_FILTER) self.layer.texture_mode_set(1, color)
|
0a9f3291528240d019f1755ce071bd15e36e112d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/0a9f3291528240d019f1755ce071bd15e36e112d/gvrasterpropdlg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
67,
7358,
12,
2890,
16,
2036,
16,
618,
4672,
468,
430,
2036,
63,
20,
65,
422,
404,
18,
20,
471,
2036,
63,
21,
65,
422,
404,
18,
20,
521,
468,
282,
471,
2036,
63,
22,
65,
422,
404,
18,
20,
471,
2036,
63,
23,
65,
422,
404,
18,
20,
30,
468,
565,
1342,
468,
12107,
30,
309,
365,
18,
5533,
1776,
30,
327,
309,
2036,
63,
23,
65,
480,
404,
18,
20,
30,
365,
18,
6363,
18,
3083,
409,
67,
3188,
67,
542,
12,
54,
48,
67,
38,
900,
2908,
67,
11126,
13,
365,
18,
6363,
18,
955,
594,
67,
3188,
67,
542,
12,
21,
16,
2036,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
67,
7358,
12,
2890,
16,
2036,
16,
618,
4672,
468,
430,
2036,
63,
20,
65,
422,
404,
18,
20,
471,
2036,
63,
21,
65,
422,
404,
18,
20,
521,
468,
282,
471,
2036,
63,
22,
65,
422,
404,
18,
20,
471,
2036,
63,
23,
65,
422,
404,
18,
20,
30,
468,
565,
1342,
468,
12107,
30,
309,
365,
18,
5533,
1776,
30,
327,
309,
2036,
63,
23,
65,
480,
404,
18,
20,
30,
365,
18,
6363,
18,
3083,
409,
67,
3188,
67,
542,
12,
54,
48,
67,
38,
900,
2908,
67,
11126,
13,
365,
18,
6363,
18,
955,
594,
67,
3188,
67,
542,
12,
21,
16,
2036,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
localpart = None domain = '' try: at = string.rindex(addr, '@') localpart = addr[:at] domain = addr[at:] except ValueError: localpart = addr pat = re.compile(r'([<>()\[\]\\,;:@\"\001-\037\177])') return '<%s%s>' % (pat.sub(r'\\\1', localpart), domain)
|
else: return "<%s>" % m
|
def quoteaddr(addr): """Quote a subset of the email addresses defined by RFC 821. Technically, only a <mailbox> is allowed. In addition, email addresses without a domain are permitted. Addresses will not be modified if they are already quoted (actually if they begin with '<' and end with '>'.""" if re.match('(?s)\A<.*>\Z', addr): return addr localpart = None domain = '' try: at = string.rindex(addr, '@') localpart = addr[:at] domain = addr[at:] except ValueError: localpart = addr pat = re.compile(r'([<>()\[\]\\,;:@\"\001-\037\177])') return '<%s%s>' % (pat.sub(r'\\\1', localpart), domain)
|
2fa5f60664065d7f143e96d9f7ecc34ac6c401ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2fa5f60664065d7f143e96d9f7ecc34ac6c401ed/smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4914,
684,
3069,
12,
4793,
4672,
3536,
10257,
279,
7931,
434,
326,
2699,
6138,
2553,
635,
8372,
1725,
5340,
18,
225,
30960,
6478,
16,
1338,
279,
411,
4408,
2147,
34,
353,
2935,
18,
225,
657,
2719,
16,
2699,
6138,
2887,
279,
2461,
854,
15498,
18,
225,
23443,
903,
486,
506,
4358,
309,
2898,
854,
1818,
9298,
261,
621,
3452,
309,
2898,
2376,
598,
9138,
471,
679,
598,
7481,
12123,
309,
283,
18,
1916,
2668,
3680,
87,
5153,
37,
32,
4509,
5333,
62,
2187,
3091,
4672,
327,
3091,
469,
30,
327,
3532,
9,
87,
2984,
738,
312,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4914,
684,
3069,
12,
4793,
4672,
3536,
10257,
279,
7931,
434,
326,
2699,
6138,
2553,
635,
8372,
1725,
5340,
18,
225,
30960,
6478,
16,
1338,
279,
411,
4408,
2147,
34,
353,
2935,
18,
225,
657,
2719,
16,
2699,
6138,
2887,
279,
2461,
854,
15498,
18,
225,
23443,
903,
486,
506,
4358,
309,
2898,
854,
1818,
9298,
261,
621,
3452,
309,
2898,
2376,
598,
9138,
471,
679,
598,
7481,
12123,
309,
283,
18,
1916,
2668,
3680,
87,
5153,
37,
32,
4509,
5333,
62,
2187,
3091,
4672,
327,
3091,
469,
30,
327,
3532,
9,
87,
2984,
738,
312,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not tag in self.acceptable_elements:
|
acceptable_attributes = self.acceptable_attributes keymap = {} if not tag in self.acceptable_elements or self.svgOK:
|
def unknown_starttag(self, tag, attrs): if not tag in self.acceptable_elements: if tag in self.unacceptable_elements_with_end_tag: self.unacceptablestack += 1 return attrs = self.normalize_attrs(attrs) attrs = [(key, value) for key, value in attrs if key in self.acceptable_attributes] _BaseHTMLProcessor.unknown_starttag(self, tag, attrs)
|
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
4672,
14206,
67,
4350,
273,
365,
18,
9436,
429,
67,
4350,
498,
1458,
273,
2618,
309,
486,
1047,
316,
365,
18,
9436,
429,
67,
6274,
578,
365,
18,
11451,
3141,
30,
309,
1047,
316,
365,
18,
318,
9436,
429,
67,
6274,
67,
1918,
67,
409,
67,
2692,
30,
365,
18,
318,
9436,
9237,
395,
484,
1011,
404,
327,
3422,
273,
365,
18,
12237,
67,
7039,
12,
7039,
13,
3422,
273,
306,
12,
856,
16,
460,
13,
364,
498,
16,
460,
316,
3422,
309,
498,
316,
365,
18,
9436,
429,
67,
4350,
65,
389,
2171,
4870,
5164,
18,
8172,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
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,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9436,
429,
67,
6274,
67,
1918,
67,
409,
67,
2692,
30,
365,
18,
318,
9436,
9237,
395,
484,
1011,
404,
327,
3422,
273,
365,
18,
12237,
67,
7039,
12,
7039,
13,
3422,
273,
306,
12,
856,
16,
460,
13,
364,
498,
16,
460,
316,
3422,
309,
498,
316,
365,
18,
9436,
429,
67,
4350,
65,
389,
2171,
4870,
5164,
18,
8172,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
13,
2
] |
'dists': self.distribution.dists,
|
'dist': self.distribution.dist,
|
def init(self): # Create directory structure paths = [self.path] paths += [os.path.join(self.path) for path in ['aptcache', 'result', 'build', 'hook']]
|
1f2a975124bada70b6ddc6afbb8c8151550d9f90 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13693/1f2a975124bada70b6ddc6afbb8c8151550d9f90/pbuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
468,
1788,
1867,
3695,
2953,
273,
306,
2890,
18,
803,
65,
2953,
1011,
306,
538,
18,
803,
18,
5701,
12,
2890,
18,
803,
13,
364,
589,
316,
10228,
1657,
2493,
2187,
296,
2088,
2187,
296,
3510,
2187,
296,
4476,
3546,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
4672,
468,
1788,
1867,
3695,
2953,
273,
306,
2890,
18,
803,
65,
2953,
1011,
306,
538,
18,
803,
18,
5701,
12,
2890,
18,
803,
13,
364,
589,
316,
10228,
1657,
2493,
2187,
296,
2088,
2187,
296,
3510,
2187,
296,
4476,
3546,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
parts = node['parts']
|
def latex_visit_inheritance_diagram(self, node): """ Output the graph for LaTeX. This will insert a PDF. """ graph = node['graph'] parts = node['parts'] graph_hash = get_graph_hash(node) name = 'inheritance%s' % graph_hash dotcode = graph.generate_dot(name, parts, env=self.builder.env, graph_attrs={'size': '"6.0,6.0"'}) render_dot_latex(self, node, dotcode, [], 'inheritance') raise nodes.SkipNode
|
c27cf37aa3413c1706ea1f344972d60ea1f8fe98 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/c27cf37aa3413c1706ea1f344972d60ea1f8fe98/inheritance_diagram.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
67,
11658,
67,
6018,
1359,
67,
12264,
1940,
12,
2890,
16,
756,
4672,
3536,
3633,
326,
2667,
364,
21072,
21575,
60,
18,
225,
1220,
903,
2243,
279,
12667,
18,
3536,
2667,
273,
756,
3292,
4660,
3546,
225,
2667,
67,
2816,
273,
336,
67,
4660,
67,
2816,
12,
2159,
13,
508,
273,
296,
6018,
1359,
9,
87,
11,
738,
2667,
67,
2816,
225,
3928,
710,
273,
2667,
18,
7163,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
67,
11658,
67,
6018,
1359,
67,
12264,
1940,
12,
2890,
16,
756,
4672,
3536,
3633,
326,
2667,
364,
21072,
21575,
60,
18,
225,
1220,
903,
2243,
279,
12667,
18,
3536,
2667,
273,
756,
3292,
4660,
3546,
225,
2667,
67,
2816,
273,
336,
67,
4660,
67,
2816,
12,
2159,
13,
508,
273,
296,
6018,
1359,
9,
87,
11,
738,
2667,
67,
2816,
225,
3928,
710,
273,
2667,
18,
7163,
67,
9811,
12,
529,
16,
2140,
16,
1550,
33,
2890,
18,
9574,
18,
3074,
16,
2667,
67,
7039,
5899,
11,
1467,
4278,
2119,
26,
18,
20,
16,
26,
18,
20,
5187,
6792,
1743,
67,
9811,
67,
26264,
12,
2890,
16,
756,
16,
3928,
710,
16,
5378,
16,
296,
6018,
2
] |
|
if local_patch: patch_checker = PatchChecker(patch=local_patch) elif id: patch_checker = PatchChecker(patchwork_id=id)
|
ignore_file_list = ['common.py'] if full_check: for root, dirs, files in os.walk('.'): if not '.svn' in root: for file in files: if file not in ignore_file_list: path = os.path.join(root, file) file_checker = FileChecker(path, confirm=confirm) file_checker.report()
|
def check(self): self.vcs.apply_patch(self.patch) self._check_files_modified_patch()
|
1e6d79b59c5d2f2d575968a6350c0b4097c6d380 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/1e6d79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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
365,
18,
18982,
18,
9010,
67,
2272,
12,
2890,
18,
2272,
13,
365,
6315,
1893,
67,
2354,
67,
7342,
67,
2272,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.path.join(dir, 'lib')):
|
join(execdir, 'doc'), join(sys.prefix, 'doc/python-docs-' + split(sys.version)[0]), join(sys.prefix, 'doc/python-' + split(sys.version)[0]), join(sys.prefix, 'doc/python-docs-' + sys.version[:3]), join(sys.prefix, 'doc/python-' + sys.version[:3]), join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(join(dir, 'lib')):
|
def __init__(self, input, output): self.input = input self.output = output self.docdir = None execdir = os.path.dirname(sys.executable) homedir = os.environ.get('PYTHONHOME') for dir in [os.environ.get('PYTHONDOCS'), homedir and os.path.join(homedir, 'doc'), os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.path.join(dir, 'lib')): self.docdir = dir
|
117a05ed502dc292a2e8ee5ff8c4cded55af1c61 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/117a05ed502dc292a2e8ee5ff8c4cded55af1c61/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
876,
4672,
365,
18,
2630,
273,
810,
365,
18,
2844,
273,
876,
365,
18,
2434,
1214,
273,
599,
1196,
1214,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
17751,
13,
13995,
23210,
273,
1140,
18,
28684,
18,
588,
2668,
16235,
20131,
14209,
6134,
364,
1577,
316,
306,
538,
18,
28684,
18,
588,
2668,
16235,
20131,
3191,
4596,
19899,
13995,
23210,
471,
1140,
18,
803,
18,
5701,
12,
17125,
23210,
16,
296,
2434,
19899,
1233,
12,
4177,
1214,
16,
296,
2434,
19899,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
17,
8532,
6627,
397,
1416,
12,
9499,
18,
1589,
25146,
20,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
6627,
397,
1416,
12,
9499,
18,
1589,
25146,
20,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
17,
8532,
6627,
397,
2589,
18,
1589,
10531,
23,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
6627,
397,
2589,
18,
1589,
10531,
23,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
3805,
19,
664,
13740,
18,
80,
17995,
19,
18905,
6134,
14542,
309,
1577,
471,
1140,
18,
803,
18,
291,
1214,
12,
5701,
12,
1214,
16,
296,
2941,
26112,
30,
365,
18,
2434,
1214,
273,
1577,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
876,
4672,
365,
18,
2630,
273,
810,
365,
18,
2844,
273,
876,
365,
18,
2434,
1214,
273,
599,
1196,
1214,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
17751,
13,
13995,
23210,
273,
1140,
18,
28684,
18,
588,
2668,
16235,
20131,
14209,
6134,
364,
1577,
316,
306,
538,
18,
28684,
18,
588,
2668,
16235,
20131,
3191,
4596,
19899,
13995,
23210,
471,
1140,
18,
803,
18,
5701,
12,
17125,
23210,
16,
296,
2434,
19899,
1233,
12,
4177,
1214,
16,
296,
2434,
19899,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
17,
8532,
6627,
397,
1416,
12,
9499,
18,
1589,
25146,
20,
65,
3631,
1233,
12,
9499,
18,
3239,
2
] |
except IOError, exn: self.SetReadOnly(False) print exn else:
|
def LoadFile(self, path): self.SetReadOnly(True) try: with (yield async_call(open, path)) as f: text = (yield async_call(f.read)) except IOError, exn: self.SetReadOnly(False) print exn else: try: text = text.decode("utf-8") except UnicodeDecodeError: text = text.decode("iso-8859-1") self.SetReadOnly(False) self.SetSyntaxFromFilename(path) self.SetText(text) self.EmptyUndoBuffer() self.SetSavePoint() self.path = path
|
f1375edc4117a439b8705c4696ed690045001d09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11441/f1375edc4117a439b8705c4696ed690045001d09/editor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
812,
12,
2890,
16,
589,
4672,
365,
18,
694,
12066,
12,
5510,
13,
775,
30,
598,
261,
23604,
4326,
67,
1991,
12,
3190,
16,
589,
3719,
487,
284,
30,
977,
273,
261,
23604,
4326,
67,
1991,
12,
74,
18,
896,
3719,
775,
30,
977,
273,
977,
18,
3922,
2932,
3158,
17,
28,
7923,
1335,
26311,
30,
977,
273,
977,
18,
3922,
2932,
9699,
17,
17258,
17,
21,
7923,
365,
18,
694,
12066,
12,
8381,
13,
365,
18,
694,
8070,
1265,
5359,
12,
803,
13,
365,
18,
694,
1528,
12,
955,
13,
365,
18,
1921,
31224,
1892,
1435,
365,
18,
694,
4755,
2148,
1435,
365,
18,
803,
273,
589,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4444,
812,
12,
2890,
16,
589,
4672,
365,
18,
694,
12066,
12,
5510,
13,
775,
30,
598,
261,
23604,
4326,
67,
1991,
12,
3190,
16,
589,
3719,
487,
284,
30,
977,
273,
261,
23604,
4326,
67,
1991,
12,
74,
18,
896,
3719,
775,
30,
977,
273,
977,
18,
3922,
2932,
3158,
17,
28,
7923,
1335,
26311,
30,
977,
273,
977,
18,
3922,
2932,
9699,
17,
17258,
17,
21,
7923,
365,
18,
694,
12066,
12,
8381,
13,
365,
18,
694,
8070,
1265,
5359,
12,
803,
13,
365,
18,
694,
1528,
12,
955,
13,
365,
18,
1921,
31224,
1892,
1435,
365,
18,
694,
4755,
2148,
1435,
365,
18,
803,
273,
589,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if self.variants:
|
if self.variants and len(self.variants) > 1:
|
def actions(self): """ return a list of possible actions on this item. """ items = [ (self.play, 'Play'), ] if not self.filename or self.filename == '0': if self.mode == 'dvd': if plugin.getbyname(plugin.DVD_PLAYER): items = [ (self.play, 'Play DVD'), ( self.dvd_vcd_title_menu, 'DVD title list' ) ] else: items = [ ( self.dvd_vcd_title_menu, 'DVD title list' ), (self.play, 'Play default track') ] elif self.mode == 'vcd': if plugin.getbyname(plugin.VCD_PLAYER): items = [ (self.play, 'Play VCD'), ( self.dvd_vcd_title_menu, 'VCD title list' ) ] else: items = [ ( self.dvd_vcd_title_menu, 'VCD title list' ), (self.play, 'Play default track') ]
|
f2ca7d732da8095c881be791e7fb3d4ffab6392f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f2ca7d732da8095c881be791e7fb3d4ffab6392f/videoitem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4209,
12,
2890,
4672,
3536,
327,
279,
666,
434,
3323,
4209,
603,
333,
761,
18,
3536,
1516,
273,
306,
261,
2890,
18,
1601,
16,
296,
11765,
19899,
308,
309,
486,
365,
18,
3459,
578,
365,
18,
3459,
422,
296,
20,
4278,
309,
365,
18,
3188,
422,
296,
15679,
72,
4278,
309,
1909,
18,
588,
1637,
529,
12,
4094,
18,
40,
21544,
67,
52,
22166,
4672,
1516,
273,
306,
261,
2890,
18,
1601,
16,
296,
11765,
463,
21544,
19899,
261,
365,
18,
15679,
72,
67,
4227,
72,
67,
2649,
67,
5414,
16,
296,
40,
21544,
2077,
666,
11,
262,
308,
469,
30,
1516,
273,
306,
261,
365,
18,
15679,
72,
67,
4227,
72,
67,
2649,
67,
5414,
16,
296,
40,
21544,
2077,
666,
11,
262,
16,
261,
2890,
18,
1601,
16,
296,
11765,
805,
3298,
6134,
308,
225,
1327,
365,
18,
3188,
422,
296,
4227,
72,
4278,
309,
1909,
18,
588,
1637,
529,
12,
4094,
18,
58,
10160,
67,
52,
22166,
4672,
1516,
273,
306,
261,
2890,
18,
1601,
16,
296,
11765,
776,
10160,
19899,
261,
365,
18,
15679,
72,
67,
4227,
72,
67,
2649,
67,
5414,
16,
296,
58,
10160,
2077,
666,
11,
262,
308,
469,
30,
1516,
273,
306,
261,
365,
18,
15679,
72,
67,
4227,
72,
67,
2649,
67,
5414,
16,
296,
58,
10160,
2077,
666,
11,
262,
16,
261,
2890,
18,
1601,
16,
296,
11765,
805,
3298,
6134,
308,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4209,
12,
2890,
4672,
3536,
327,
279,
666,
434,
3323,
4209,
603,
333,
761,
18,
3536,
1516,
273,
306,
261,
2890,
18,
1601,
16,
296,
11765,
19899,
308,
309,
486,
365,
18,
3459,
578,
365,
18,
3459,
422,
296,
20,
4278,
309,
365,
18,
3188,
422,
296,
15679,
72,
4278,
309,
1909,
18,
588,
1637,
529,
12,
4094,
18,
40,
21544,
67,
52,
22166,
4672,
1516,
273,
306,
261,
2890,
18,
1601,
16,
296,
11765,
463,
21544,
19899,
261,
365,
18,
15679,
72,
67,
4227,
72,
67,
2649,
67,
5414,
16,
296,
40,
21544,
2077,
666,
11,
262,
308,
469,
30,
1516,
273,
306,
261,
365,
18,
15679,
72,
67,
4227,
72,
67,
2649,
67,
5414,
16,
296,
2
] |
logging.exception("child process failed") ename = tmp + "/debug/error-%d" % (os.getpid()) pickle.dump(detail, open(ename, "w")) sys.stdout.flush() sys.stderr.flush()
|
try: logging.exception("child process failed") finally: ename = tmp + "/debug/error-%d" % (os.getpid()) pickle.dump(detail, open(ename, "w")) sys.stdout.flush() sys.stderr.flush()
|
def fork_start(tmp, l): sys.stdout.flush() sys.stderr.flush() pid = os.fork() if pid: # Parent return pid try: try: l() except error.AutotestError: raise except Exception, e: raise error.UnhandledTestError(e) except Exception, detail: try: logging.exception("child process failed") ename = tmp + "/debug/error-%d" % (os.getpid()) pickle.dump(detail, open(ename, "w")) sys.stdout.flush() sys.stderr.flush() finally: os._exit(1) else: try: sys.stdout.flush() sys.stderr.flush() finally: os._exit(0)
|
951d6f8b38b8c12e4fe622b2e4997365874d6035 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/951d6f8b38b8c12e4fe622b2e4997365874d6035/parallel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12515,
67,
1937,
12,
5645,
16,
328,
4672,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
11241,
18,
11330,
1435,
4231,
273,
1140,
18,
23335,
1435,
309,
4231,
30,
468,
9520,
327,
4231,
225,
775,
30,
775,
30,
328,
1435,
1335,
555,
18,
7150,
352,
395,
668,
30,
1002,
1335,
1185,
16,
425,
30,
1002,
555,
18,
26952,
4709,
668,
12,
73,
13,
1335,
1185,
16,
7664,
30,
775,
30,
775,
30,
2907,
18,
4064,
2932,
3624,
1207,
2535,
7923,
3095,
30,
570,
339,
273,
1853,
397,
2206,
4148,
19,
1636,
6456,
72,
6,
738,
261,
538,
18,
588,
6610,
10756,
13379,
18,
8481,
12,
8992,
16,
1696,
12,
1069,
16,
315,
91,
6,
3719,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
11241,
18,
11330,
1435,
3095,
30,
1140,
6315,
8593,
12,
21,
13,
469,
30,
775,
30,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
11241,
18,
11330,
1435,
3095,
30,
1140,
6315,
8593,
12,
20,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12515,
67,
1937,
12,
5645,
16,
328,
4672,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
11241,
18,
11330,
1435,
4231,
273,
1140,
18,
23335,
1435,
309,
4231,
30,
468,
9520,
327,
4231,
225,
775,
30,
775,
30,
328,
1435,
1335,
555,
18,
7150,
352,
395,
668,
30,
1002,
1335,
1185,
16,
425,
30,
1002,
555,
18,
26952,
4709,
668,
12,
73,
13,
1335,
1185,
16,
7664,
30,
775,
30,
775,
30,
2907,
18,
4064,
2932,
3624,
1207,
2535,
7923,
3095,
30,
570,
339,
273,
1853,
397,
2206,
4148,
19,
1636,
6456,
72,
6,
738,
261,
538,
18,
588,
6610,
10756,
13379,
18,
8481,
12,
8992,
16,
1696,
12,
1069,
16,
315,
91,
6,
3719,
2589,
18,
10283,
2
] |
def open(self, url, new=0):
|
def open(self, url, new=0, autoraise=1):
|
def open(self, url, new=0): ic.launchurl(url)
|
b7ffb9a70f49248e84f8788911fa8bb94f4777f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b7ffb9a70f49248e84f8788911fa8bb94f4777f8/webbrowser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
13579,
18,
20738,
718,
12,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
13579,
18,
20738,
718,
12,
718,
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
] |
if pkt.payload.flags & 0x13 != 0x02: raise TypeError("Not a syn packet")
|
db = p0f_selectdb(pkt.payload.flags)
|
def packet2p0f(pkt): while pkt.haslayer(IP) and pkt.haslayer(TCP): pkt = pkt.getlayer(IP) if isinstance(pkt.payload, TCP): break pkt = pkt.payload if not isinstance(pkt, IP) or not isinstance(pkt.payload, TCP): raise TypeError("Not a TCP/IP packet") if pkt.payload.flags & 0x13 != 0x02: #S,!A,!F raise TypeError("Not a syn packet") #t = p0f_kdb.ttl_range[:] #t += [pkt.ttl] #t.sort() #ttl=t[t.index(pkt.ttl)+1] ttl = pkt.ttl df = (pkt.flags & 2) / 2 ss = len(pkt) # from p0f/config.h : PACKET_BIG = 100 if ss > 100: ss = 0 ooo = "" mss = -1 qqT = False qqP = False #qqBroken = False ilen = (pkt[TCP].dataofs << 2) - 20 # from p0f.c for option in pkt.payload.options: ilen -= 1 if option[0] == "MSS": ooo += "M" + str(option[1]) + "," mss = option[1] # FIXME: qqBroken ilen -= 3 elif option[0] == "WScale": ooo += "W" + str(option[1]) + "," # FIXME: qqBroken ilen -= 2 elif option[0] == "Timestamp": if option[1][0] == 0: ooo += "T0," else: ooo += "T," if option[1][1] != 0: qqT = True ilen -= 9 elif option[0] == "SAckOK": ooo += "S," ilen -= 1 elif option[0] == "NOP": ooo += "N," elif option[0] == "EOL": ooo += "E," if ilen > 0: qqP = True else: ooo += "?," # FIXME: ilen ooo = ooo[:-1] if ooo == "": ooo = "." win = pkt.payload.window if mss != -1: if win % mss == 0: win = "S" + str(win/mss) elif win % (mss + 40) == 0: win = "T" + str(win/(mss+40)) win = str(win) qq = "" if qqP: qq += "P" if pkt[IP].id == 0: qq += "Z" if pkt[IP].options != '': qq += "I" if pkt[TCP].urgptr != 0: qq += "U" if pkt[TCP].reserved != 0: qq += "X" if pkt[TCP].ack != 0: qq += "A" if qqT: qq += "T" if pkt[TCP].flags & 40 != 0: # U or P qq += "F" if not isinstance(pkt[TCP].payload, NoPayload): qq += "D" # FIXME : "!" - broken options segment if qq == "": qq = "." return (win, ttl, df, ss, ooo, qq)
|
bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984/p0f.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4414,
22,
84,
20,
74,
12,
5465,
88,
4672,
1323,
11536,
18,
5332,
6363,
12,
2579,
13,
471,
11536,
18,
5332,
6363,
12,
13891,
4672,
11536,
273,
11536,
18,
588,
6363,
12,
2579,
13,
309,
1549,
12,
5465,
88,
18,
7648,
16,
9911,
4672,
898,
11536,
273,
11536,
18,
7648,
225,
309,
486,
1549,
12,
5465,
88,
16,
2971,
13,
578,
486,
1549,
12,
5465,
88,
18,
7648,
16,
9911,
4672,
1002,
3580,
2932,
1248,
279,
9911,
19,
2579,
4414,
7923,
309,
11536,
18,
7648,
18,
7133,
473,
374,
92,
3437,
480,
374,
92,
3103,
30,
468,
55,
16,
5,
37,
16,
5,
42,
1002,
3580,
2932,
1248,
279,
6194,
4414,
7923,
225,
468,
88,
273,
293,
20,
74,
67,
79,
1966,
18,
12546,
67,
3676,
10531,
65,
468,
88,
1011,
306,
5465,
88,
18,
12546,
65,
468,
88,
18,
3804,
1435,
468,
12546,
33,
88,
63,
88,
18,
1615,
12,
5465,
88,
18,
12546,
27921,
21,
65,
6337,
273,
11536,
18,
12546,
225,
3013,
273,
261,
5465,
88,
18,
7133,
473,
576,
13,
342,
576,
5202,
273,
562,
12,
5465,
88,
13,
468,
628,
293,
20,
74,
19,
1425,
18,
76,
294,
453,
17750,
67,
19044,
273,
2130,
309,
5202,
405,
2130,
30,
5202,
273,
374,
225,
320,
5161,
273,
1408,
312,
1049,
273,
300,
21,
20708,
56,
273,
1083,
20708,
52,
273,
1083,
468,
11961,
29559,
273,
1083,
277,
1897,
273,
261,
5465,
88,
63,
13891,
8009,
892,
792,
87,
2296,
576,
13,
300,
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,
4414,
22,
84,
20,
74,
12,
5465,
88,
4672,
1323,
11536,
18,
5332,
6363,
12,
2579,
13,
471,
11536,
18,
5332,
6363,
12,
13891,
4672,
11536,
273,
11536,
18,
588,
6363,
12,
2579,
13,
309,
1549,
12,
5465,
88,
18,
7648,
16,
9911,
4672,
898,
11536,
273,
11536,
18,
7648,
225,
309,
486,
1549,
12,
5465,
88,
16,
2971,
13,
578,
486,
1549,
12,
5465,
88,
18,
7648,
16,
9911,
4672,
1002,
3580,
2932,
1248,
279,
9911,
19,
2579,
4414,
7923,
309,
11536,
18,
7648,
18,
7133,
473,
374,
92,
3437,
480,
374,
92,
3103,
30,
468,
55,
16,
5,
37,
16,
5,
42,
1002,
3580,
2932,
1248,
279,
6194,
4414,
7923,
225,
468,
88,
273,
293,
20,
2
] |
datetime_value = datetime.datetime.fromordinal(integerPart + _ordinal_1899_12_31)
|
datetime_value = datetime.datetime.fromordinal(day_count + _ordinal_1899_12_31)
|
def datetimeFromCOMDate(comDate): fComDate = float(comDate) integerPart = int(fComDate) fraction_of_day = abs(fComDate-integerPart) datetime_value = datetime.datetime.fromordinal(integerPart + _ordinal_1899_12_31) # 86400000 = 24*60*60*1000 = milliseconds per day datetime_value = datetime_value + datetime.timedelta(milliseconds=fraction_of_day*86400000) return datetime_value
|
59f15f5710dd451b33216701b567320d565acaf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/59f15f5710dd451b33216701b567320d565acaf4/adodb_django.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3314,
1265,
4208,
1626,
12,
832,
1626,
4672,
284,
799,
1626,
273,
1431,
12,
832,
1626,
13,
3571,
1988,
273,
509,
12,
74,
799,
1626,
13,
8330,
67,
792,
67,
2881,
273,
2417,
12,
74,
799,
1626,
17,
7745,
1988,
13,
225,
3314,
67,
1132,
273,
3314,
18,
6585,
18,
2080,
517,
1490,
12,
2881,
67,
1883,
397,
389,
517,
1490,
67,
2643,
2733,
67,
2138,
67,
6938,
13,
468,
19663,
11706,
273,
4248,
14,
4848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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3314,
1265,
4208,
1626,
12,
832,
1626,
4672,
284,
799,
1626,
273,
1431,
12,
832,
1626,
13,
3571,
1988,
273,
509,
12,
74,
799,
1626,
13,
8330,
67,
792,
67,
2881,
273,
2417,
12,
74,
799,
1626,
17,
7745,
1988,
13,
225,
3314,
67,
1132,
273,
3314,
18,
6585,
18,
2080,
517,
1490,
12,
2881,
67,
1883,
397,
389,
517,
1490,
67,
2643,
2733,
67,
2138,
67,
6938,
13,
468,
19663,
11706,
273,
4248,
14,
4848,
14,
4848,
14,
18088,
273,
10993,
1534,
2548,
3314,
67,
1132,
273,
3314,
67,
1132,
397,
3314,
18,
31295,
12,
81,
7710,
4096,
33,
16744,
67,
792,
67,
2881,
14,
28,
1105,
11706,
13,
327,
3314,
67,
1132,
225,
2,
-100,
-100,
-100
] |
g1['answers'].append([qname, qtype, 1, lr[1], lr[0]])
|
g1['answers'].append([g1['questions'][0][0], qtype, 1, lr[1], lr[0]])
|
def hip_cache_lookup(gp, g1): lr = None qname = g1['questions'][0][0] qtype = g1['questions'][0][1]
|
b110f03bfd90a3506ff3e2ed821f1c19b9aabf16 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6933/b110f03bfd90a3506ff3e2ed821f1c19b9aabf16/dnsproxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
625,
67,
2493,
67,
8664,
12,
6403,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
625,
67,
2493,
67,
8664,
12,
6403,
16,
314,
21,
4672,
12226,
273,
599,
12621,
273,
314,
21,
3292,
9758,
3546,
63,
20,
6362,
20,
65,
28056,
273,
314,
21,
3292,
9758,
3546,
63,
20,
6362,
21,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.style = style
|
def __init__(self, master=None, label="Number", default=None, help='', min=1, max=10, style='spin'): """Create a number-setting widget. master: Tkinter widget that will contain this Number label: Text label describing the meaning of the number default: Default value, or None to use minimum help: Help text to show in a tooltip min, max: Range of allowable numbers (inclusive) style: 'spin' for a spinbox, or 'scale' for a slider """ # TODO: Multiple styles (entry, spinbox, scale) Control.__init__(self, master, int, help) self.style = style # Use min if default wasn't provided if default is None: default = min self.variable.set(default) # Create and pack widgets self.label = tk.Label(self, name='label', text=label) self.label.pack(side='left') if self.style == 'spin': self.number = tk.Spinbox(self, from_=min, to=max, width=4, textvariable=self.variable) self.number.pack(side='left') else: # 'scale' self.number = tk.Scale(self, from_=min, to=max, tickinterval=max-min, variable=self.variable, orient='horizontal') self.number.pack(side='left', fill='x', expand=True)
|
ac756e9bfa740df0ff497bc9bb0b414d357eefc4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/ac756e9bfa740df0ff497bc9bb0b414d357eefc4/meta.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
1433,
1546,
1854,
3113,
805,
33,
7036,
16,
2809,
2218,
2187,
1131,
33,
21,
16,
943,
33,
2163,
16,
2154,
2218,
22876,
11,
4672,
3536,
1684,
279,
1300,
17,
8920,
3604,
18,
225,
4171,
30,
282,
399,
79,
2761,
3604,
716,
903,
912,
333,
3588,
1433,
30,
565,
3867,
1433,
16868,
326,
12256,
434,
326,
1300,
805,
30,
225,
2989,
460,
16,
578,
599,
358,
999,
5224,
2809,
30,
377,
11288,
977,
358,
2405,
316,
279,
11915,
1131,
16,
943,
30,
8086,
434,
30727,
5600,
261,
267,
9173,
13,
2154,
30,
565,
296,
22876,
11,
364,
279,
12490,
2147,
16,
578,
296,
5864,
11,
364,
279,
18442,
3536,
468,
2660,
30,
13531,
5687,
261,
4099,
16,
12490,
2147,
16,
3159,
13,
8888,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
509,
16,
2809,
13,
468,
2672,
1131,
309,
805,
14487,
1404,
2112,
309,
805,
353,
599,
30,
805,
273,
1131,
365,
18,
6105,
18,
542,
12,
1886,
13,
468,
1788,
471,
2298,
10965,
365,
18,
1925,
273,
13030,
18,
2224,
12,
2890,
16,
508,
2218,
1925,
2187,
977,
33,
1925,
13,
365,
18,
1925,
18,
2920,
12,
5564,
2218,
4482,
6134,
309,
365,
18,
4060,
422,
296,
22876,
4278,
365,
18,
2696,
273,
13030,
18,
3389,
267,
2147,
12,
2890,
16,
628,
67,
33,
1154,
16,
358,
33,
1896,
16,
1835,
33,
24,
16,
977,
6105,
33,
2890,
18,
6105,
13,
365,
18,
2696,
18,
2920,
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,
4171,
33,
7036,
16,
1433,
1546,
1854,
3113,
805,
33,
7036,
16,
2809,
2218,
2187,
1131,
33,
21,
16,
943,
33,
2163,
16,
2154,
2218,
22876,
11,
4672,
3536,
1684,
279,
1300,
17,
8920,
3604,
18,
225,
4171,
30,
282,
399,
79,
2761,
3604,
716,
903,
912,
333,
3588,
1433,
30,
565,
3867,
1433,
16868,
326,
12256,
434,
326,
1300,
805,
30,
225,
2989,
460,
16,
578,
599,
358,
999,
5224,
2809,
30,
377,
11288,
977,
358,
2405,
316,
279,
11915,
1131,
16,
943,
30,
8086,
434,
30727,
5600,
261,
267,
9173,
13,
2154,
30,
565,
296,
22876,
11,
364,
279,
12490,
2147,
16,
578,
296,
5864,
11,
364,
279,
18442,
3536,
2
] |
|
display_box.pack_start(hbox, False, False, 5)
|
display_box.pack_start(hbox, False, False, 3)
|
def show_settings(self, widget, data=None): """The settings pane""" ################################# # Settings Window ################################# if hasattr(self, 'preferences_window'): if self.preferences_window != None: self.preferences_window.present() return True self.preferences_window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.preferences_window.set_transient_for(self.window) self.preferences_window.set_title("Viridian Settings") self.preferences_window.set_position(gtk.WIN_POS_CENTER_ON_PARENT) self.preferences_window.resize(450, 300) self.preferences_window.set_resizable(False) self.preferences_window.connect("delete_event", self.destroy_settings) self.preferences_window.connect("destroy", self.destroy_settings) main_vbox = gtk.VBox(False, 8) main_vbox.set_border_width(10) """Start Notebook""" notebook = gtk.Notebook() notebook.set_tab_pos(gtk.POS_TOP) #self.show_tabs = True #self.show_border = True ################################# # Account Settings ################################# account_box = gtk.VBox() account_box.set_border_width(10) hbox = gtk.HBox() label = gtk.Label() label.set_markup('<b>Account Settings</b>') hbox.pack_start(label, False, False) account_box.pack_start(hbox, False, False, 5)
|
18602e51d3201499cffa21c300d01a274a761a27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11350/18602e51d3201499cffa21c300d01a274a761a27/AmpacheGUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4272,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
3536,
1986,
1947,
13618,
8395,
19709,
468,
8709,
6076,
19709,
309,
3859,
12,
2890,
16,
296,
23219,
67,
5668,
11,
4672,
309,
365,
18,
23219,
67,
5668,
480,
599,
30,
365,
18,
23219,
67,
5668,
18,
6706,
1435,
327,
1053,
225,
365,
18,
23219,
67,
5668,
273,
22718,
18,
3829,
12,
4521,
79,
18,
23407,
67,
10462,
10398,
13,
365,
18,
23219,
67,
5668,
18,
542,
67,
22670,
67,
1884,
12,
2890,
18,
5668,
13,
365,
18,
23219,
67,
5668,
18,
542,
67,
2649,
2932,
58,
481,
350,
2779,
8709,
7923,
365,
18,
23219,
67,
5668,
18,
542,
67,
3276,
12,
4521,
79,
18,
24572,
67,
7057,
67,
19835,
67,
673,
67,
14943,
13,
365,
18,
23219,
67,
5668,
18,
15169,
12,
24,
3361,
16,
11631,
13,
365,
18,
23219,
67,
5668,
18,
542,
67,
455,
6934,
12,
8381,
13,
365,
18,
23219,
67,
5668,
18,
3612,
2932,
3733,
67,
2575,
3113,
365,
18,
11662,
67,
4272,
13,
365,
18,
23219,
67,
5668,
18,
3612,
2932,
11662,
3113,
365,
18,
11662,
67,
4272,
13,
225,
2774,
67,
90,
2147,
273,
22718,
18,
58,
3514,
12,
8381,
16,
1725,
13,
2774,
67,
90,
2147,
18,
542,
67,
8815,
67,
2819,
12,
2163,
13,
225,
3536,
1685,
3609,
3618,
8395,
14718,
273,
22718,
18,
19751,
1435,
14718,
18,
542,
67,
7032,
67,
917,
12,
4521,
79,
18,
7057,
67,
10462,
13,
468,
2890,
18,
4500,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4272,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
3536,
1986,
1947,
13618,
8395,
19709,
468,
8709,
6076,
19709,
309,
3859,
12,
2890,
16,
296,
23219,
67,
5668,
11,
4672,
309,
365,
18,
23219,
67,
5668,
480,
599,
30,
365,
18,
23219,
67,
5668,
18,
6706,
1435,
327,
1053,
225,
365,
18,
23219,
67,
5668,
273,
22718,
18,
3829,
12,
4521,
79,
18,
23407,
67,
10462,
10398,
13,
365,
18,
23219,
67,
5668,
18,
542,
67,
22670,
67,
1884,
12,
2890,
18,
5668,
13,
365,
18,
23219,
67,
5668,
18,
542,
67,
2649,
2932,
58,
481,
350,
2779,
8709,
7923,
365,
18,
23219,
67,
5668,
18,
542,
67,
3276,
12,
4521,
79,
18,
24572,
67,
2
] |
NotImplementedError: The argument cf (=5/4) must be in ]0,1[.
|
ValueError: The argument slope (=5/4) must be in ]0,1[.
|
sage: def cf():
|
84c9b810c2ff0413ad303dbed17d39757703c31f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/84c9b810c2ff0413ad303dbed17d39757703c31f/word_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
6080,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
root_dir=output_dir)
|
root_dir=self.bdist_dir)
|
def run (self):
|
a85bd0200f41c93d321dce9f55db130c26a20f8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a85bd0200f41c93d321dce9f55db130c26a20f8a/bdist_dumb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.assertEqual(mod.st[2][1:],
|
self.assertEqual(revise(*mod.st[2][1:]),
|
def test_stack(self): self.assert_(len(mod.st) >= 5) self.assertEqual(mod.st[0][1:], (modfile, 16, 'eggs', [' st = inspect.stack()\n'], 0)) self.assertEqual(mod.st[1][1:], (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0)) self.assertEqual(mod.st[2][1:], (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0)) self.assertEqual(mod.st[3][1:], (modfile, 39, 'abuse', [' self.argue(a, b, c)\n'], 0))
|
97630d023d5e1d96f1e49d392a1c837bb4d9b0f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/97630d023d5e1d96f1e49d392a1c837bb4d9b0f4/test_inspect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3772,
12,
2890,
4672,
365,
18,
11231,
67,
12,
1897,
12,
1711,
18,
334,
13,
1545,
1381,
13,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
20,
6362,
21,
30,
6487,
261,
1711,
768,
16,
2872,
16,
296,
1332,
564,
2187,
10228,
565,
384,
273,
5334,
18,
3772,
1435,
64,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
21,
6362,
21,
30,
6487,
261,
1711,
768,
16,
2468,
16,
296,
1752,
301,
2187,
10228,
565,
9130,
564,
12,
70,
397,
302,
16,
276,
397,
284,
5153,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
9083,
784,
30857,
1711,
18,
334,
63,
22,
6362,
21,
26894,
3631,
261,
1711,
768,
16,
21193,
16,
296,
3175,
344,
2187,
10228,
5411,
24824,
12,
69,
16,
324,
16,
276,
5153,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
23,
6362,
21,
30,
6487,
261,
1711,
768,
16,
16977,
16,
296,
378,
1202,
2187,
10228,
3639,
365,
18,
3175,
344,
12,
69,
16,
324,
16,
276,
5153,
82,
17337,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3772,
12,
2890,
4672,
365,
18,
11231,
67,
12,
1897,
12,
1711,
18,
334,
13,
1545,
1381,
13,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
20,
6362,
21,
30,
6487,
261,
1711,
768,
16,
2872,
16,
296,
1332,
564,
2187,
10228,
565,
384,
273,
5334,
18,
3772,
1435,
64,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
21,
6362,
21,
30,
6487,
261,
1711,
768,
16,
2468,
16,
296,
1752,
301,
2187,
10228,
565,
9130,
564,
12,
70,
397,
302,
16,
276,
397,
284,
5153,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
9083,
784,
30857,
1711,
18,
334,
63,
22,
6362,
21,
26894,
3631,
261,
1711,
768,
2
] |
cat > _ftime.c << 'THE_END' /* Stub function for _ftime. * This is an inline function in Visual C 2008 so is missing from msvcr90.dll */ void _ftime32(struct _timeb *timeptr); void _ftime(struct _timeb *timeptr) { _ftime32(timeptr); } THE_END cat > time.c << 'THE_END' /* Stub function for time. * This is an inline function in Visual C 2008 so is missing from msvcr90.dll */ time_t _time32(time_t *timer); time_t time(time_t *timer) { return _time32(timer); } THE_END
|
cat > msvcr90.def << 'THE_END'
|
5ed962a58a84830cbe0f649aee7072426feb4c22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/5ed962a58a84830cbe0f649aee7072426feb4c22/msys_link_VC_2008_dlls.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6573,
405,
4086,
90,
3353,
9349,
18,
536,
2296,
296,
24644,
67,
4415,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6573,
405,
4086,
90,
3353,
9349,
18,
536,
2296,
296,
24644,
67,
4415,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if len(self.criteria) < 2: self.criteria.append(criteria) else: self.criteria[1] = criteria return self
|
new_item = WindowSpecification(self.criteria[0]) new_item.criteria.append(criteria) return new_item
|
def window_(self, **criteria): "Add the criteria that will be matched when we resolve the control"
|
f47d5f85b78e1b3db8176162dcda52fe95bef759 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/f47d5f85b78e1b3db8176162dcda52fe95bef759/application.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
12,
2890,
16,
2826,
9714,
4672,
315,
986,
326,
3582,
716,
903,
506,
4847,
1347,
732,
2245,
326,
3325,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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847,
1347,
732,
2245,
326,
3325,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if numpy.any((i.owner and i.owner.op == host_from_gpu) for i in node.inputs):
|
if numpy.any([(i.owner and i.owner.op == host_from_gpu) for i in node.inputs]):
|
def local_gpu_dot(node): """ gpu_from_host(dot) -> gpudot(gpu_from_host) dot(host_from_gpu) -> host_from_gpu(gpudot) """ if node.op == gpu_from_host: host_input = node.inputs[0] if host_input.owner and host_input.owner.op == tensor.blas._dot22: x, y = host_input.owner.inputs return [gpu_dot22(gpu_from_host(x), gpu_from_host(y))] if node.op == tensor.blas._dot22: if numpy.any((i.owner and i.owner.op == host_from_gpu) for i in node.inputs): x, y = node.inputs return [host_from_gpu(gpu_dot22(gpu_from_host(x), gpu_from_host(y)))] return False
|
17d5c707c9b05b8c838991c35987313b13293ab0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/17d5c707c9b05b8c838991c35987313b13293ab0/opt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
23162,
67,
9811,
12,
2159,
4672,
3536,
21810,
67,
2080,
67,
2564,
12,
9811,
13,
317,
4178,
1100,
352,
12,
23162,
67,
2080,
67,
2564,
13,
225,
3928,
12,
2564,
67,
2080,
67,
23162,
13,
317,
1479,
67,
2080,
67,
23162,
12,
6403,
1100,
352,
13,
3536,
309,
756,
18,
556,
422,
21810,
67,
2080,
67,
2564,
30,
1479,
67,
2630,
273,
756,
18,
10029,
63,
20,
65,
309,
1479,
67,
2630,
18,
8443,
471,
1479,
67,
2630,
18,
8443,
18,
556,
422,
8171,
18,
3083,
345,
6315,
9811,
3787,
30,
619,
16,
677,
273,
1479,
67,
2630,
18,
8443,
18,
10029,
327,
306,
23162,
67,
9811,
3787,
12,
23162,
67,
2080,
67,
2564,
12,
92,
3631,
21810,
67,
2080,
67,
2564,
12,
93,
3719,
65,
309,
756,
18,
556,
422,
8171,
18,
3083,
345,
6315,
9811,
3787,
30,
309,
3972,
18,
2273,
3816,
12,
77,
18,
8443,
471,
277,
18,
8443,
18,
556,
422,
1479,
67,
2080,
67,
23162,
13,
364,
277,
316,
756,
18,
10029,
65,
4672,
619,
16,
677,
273,
756,
18,
10029,
327,
306,
2564,
67,
2080,
67,
23162,
12,
23162,
67,
9811,
3787,
12,
23162,
67,
2080,
67,
2564,
12,
92,
3631,
21810,
67,
2080,
67,
2564,
12,
93,
20349,
65,
327,
1083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
23162,
67,
9811,
12,
2159,
4672,
3536,
21810,
67,
2080,
67,
2564,
12,
9811,
13,
317,
4178,
1100,
352,
12,
23162,
67,
2080,
67,
2564,
13,
225,
3928,
12,
2564,
67,
2080,
67,
23162,
13,
317,
1479,
67,
2080,
67,
23162,
12,
6403,
1100,
352,
13,
3536,
309,
756,
18,
556,
422,
21810,
67,
2080,
67,
2564,
30,
1479,
67,
2630,
273,
756,
18,
10029,
63,
20,
65,
309,
1479,
67,
2630,
18,
8443,
471,
1479,
67,
2630,
18,
8443,
18,
556,
422,
8171,
18,
3083,
345,
6315,
9811,
3787,
30,
619,
16,
677,
273,
1479,
67,
2630,
18,
8443,
18,
10029,
327,
306,
23162,
67,
9811,
3787,
12,
23162,
67,
2080,
67,
2564,
12,
92,
2
] |
self.theSession.stop() self.theSession.printMessage( "Stop\n" )
|
def stepSimulation( self, obj ) : try: self.theSession.theSimulator.initialize() self.theSession.printMessage( "Step\n" ) self['step_combo_entry'].set_text( str( self.theStepSize ) ) self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.updateByTimeOut, 0 ) if self.theStepType == 0: self.theSession.run( self.theStepSize ) else: self.theSession.step( self.theStepSize )
|
def stopSimulation( self, a ) : if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update()
|
e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
18419,
12,
365,
16,
279,
262,
294,
309,
365,
18,
5787,
7051,
4678,
30,
365,
18,
5787,
7051,
4678,
273,
374,
5411,
1652,
2235,
18419,
12,
365,
16,
1081,
262,
294,
225,
775,
30,
225,
365,
18,
5787,
2157,
18,
5787,
7993,
11775,
18,
11160,
1435,
225,
365,
18,
5787,
2157,
18,
1188,
1079,
12,
315,
4160,
64,
82,
6,
262,
365,
3292,
4119,
67,
25053,
67,
4099,
29489,
542,
67,
955,
12,
609,
12,
365,
18,
5787,
4160,
1225,
262,
262,
365,
18,
5787,
6777,
273,
22718,
18,
4538,
67,
1289,
12,
365,
18,
5787,
1891,
4006,
16,
365,
18,
2725,
858,
950,
1182,
16,
374,
262,
309,
365,
18,
5787,
4160,
559,
422,
374,
30,
365,
18,
5787,
2157,
18,
2681,
12,
365,
18,
5787,
4160,
1225,
262,
469,
30,
365,
18,
5787,
2157,
18,
4119,
12,
365,
18,
5787,
4160,
1225,
262,
365,
18,
4479,
950,
1182,
1435,
365,
18,
2725,
1435,
365,
18,
5787,
3328,
3829,
18,
2725,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
5787,
7993,
11775,
18,
11160,
1435,
225,
365,
18,
5787,
2157,
18,
1188,
1079,
12,
315,
4160,
64,
82,
6,
262,
365,
3292,
4119,
67,
25053,
67,
4099,
29489,
542,
67,
955,
12,
609,
12,
365,
18,
5787,
4160,
1225,
262,
262,
365,
18,
5787,
6777,
273,
22718,
18,
4538,
67,
1289,
12,
365,
18,
5787,
1891,
4006,
16,
365,
18,
2725,
858,
950,
1182,
16,
374,
262,
309,
365,
18,
5787,
4160,
559,
422,
374,
30,
2
] |
row = [v and v.encode(charset) or '' for v in subscription.composer_data.values()]
|
row = [] for item in field.Fields(self.context.composers[format].schema).keys(): v = subscription.composer_data.get(item) or '' row.append(v.encode(charset))
|
def __call__(self): properties = component.getUtility(IPropertiesTool) charset = properties.site_properties.getProperty('default_charset', 'utf-8').upper() self.request.response.setHeader('Content-Type', 'text/csv; charset=%s' % charset) self.request.response.setHeader('Content-disposition', 'attachment; filename=subscribers_%s_%s.csv' % (self.context.id, datetime.date.today().strftime("%Y%m%d"))) res = cStringIO.StringIO() writer = csv.writer(res, dialect=csv.excel) for format in self.context.composers.keys(): for subscription in tuple(self.context.subscriptions.query(format=format)): row = [v and v.encode(charset) or '' for v in subscription.composer_data.values()] writer.writerow(row) return res.getvalue()
|
79f159dab58bb680361cb1e54dbd130beaecf9db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9843/79f159dab58bb680361cb1e54dbd130beaecf9db/channel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
1790,
273,
1794,
18,
588,
6497,
12,
45,
2297,
6364,
13,
4856,
273,
1790,
18,
4256,
67,
4738,
18,
588,
1396,
2668,
1886,
67,
9999,
2187,
296,
3158,
17,
28,
16063,
5797,
1435,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
559,
2187,
296,
955,
19,
6715,
31,
4856,
5095,
87,
11,
738,
4856,
13,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
31231,
2187,
296,
11461,
31,
1544,
33,
1717,
17769,
10185,
87,
10185,
87,
18,
6715,
11,
738,
261,
2890,
18,
2472,
18,
350,
16,
3314,
18,
712,
18,
30064,
7675,
701,
9982,
27188,
61,
9,
81,
9,
72,
6,
20349,
400,
273,
276,
780,
4294,
18,
780,
4294,
1435,
2633,
273,
6101,
18,
6299,
12,
455,
16,
10864,
33,
6715,
18,
24121,
13,
364,
740,
316,
365,
18,
2472,
18,
832,
917,
414,
18,
2452,
13332,
364,
4915,
316,
3193,
12,
2890,
18,
2472,
18,
19964,
18,
2271,
12,
2139,
33,
2139,
3719,
30,
1027,
273,
5378,
364,
761,
316,
652,
18,
2314,
12,
2890,
18,
2472,
18,
832,
917,
414,
63,
2139,
8009,
4821,
2934,
2452,
13332,
331,
273,
4915,
18,
15720,
67,
892,
18,
588,
12,
1726,
13,
578,
875,
1027,
18,
6923,
12,
90,
18,
3015,
12,
9999,
3719,
225,
2633,
18,
6299,
543,
12,
492,
13,
327,
400,
18,
588,
1132,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
1790,
273,
1794,
18,
588,
6497,
12,
45,
2297,
6364,
13,
4856,
273,
1790,
18,
4256,
67,
4738,
18,
588,
1396,
2668,
1886,
67,
9999,
2187,
296,
3158,
17,
28,
16063,
5797,
1435,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
559,
2187,
296,
955,
19,
6715,
31,
4856,
5095,
87,
11,
738,
4856,
13,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
31231,
2187,
296,
11461,
31,
1544,
33,
1717,
17769,
10185,
87,
10185,
87,
18,
6715,
11,
738,
261,
2890,
18,
2472,
18,
350,
16,
3314,
18,
712,
18,
30064,
7675,
701,
9982,
27188,
61,
9,
81,
9,
72,
6,
20349,
400,
273,
276,
2
] |
day = str(t[2]) + '_'
|
day = '_' + str(t[2])
|
def get_wiki_save_page(stat_page = False): site = wikipedia.getSite() wiki_save_path = { '_default': u'User:%s/Report' % config.usernames[site.family.name][site.lang], 'it': u'Utente:RevertBot/Report' } save_path = wikipedia.translate(site, wiki_save_path) if stat_page: return wikipedia.Page(site, '%s/%s' % (save_path, wikipedia.translate(site, stat_msg)[0])) if append_date_to_wiki_save_path: t = time.localtime() day = '' if append_day_to_wiki_save_path: day = str(t[2]) + '_' save_path += day + '_' + date.monthName(site.language(), t[1]) + '_' + str(t[0]) return wikipedia.Page(site, save_path)
|
dd5b0d86aab5b06c0dc603541cfa5c2be3962b9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/dd5b0d86aab5b06c0dc603541cfa5c2be3962b9b/copyright_put.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13044,
67,
5688,
67,
2433,
12,
5642,
67,
2433,
273,
1083,
4672,
225,
2834,
273,
21137,
18,
588,
4956,
1435,
225,
9050,
67,
5688,
67,
803,
273,
288,
2070,
1886,
4278,
582,
11,
1299,
5319,
87,
19,
4820,
11,
738,
642,
18,
1355,
1973,
63,
4256,
18,
9309,
18,
529,
6362,
4256,
18,
4936,
6487,
296,
305,
4278,
582,
11,
57,
88,
319,
73,
30,
426,
1097,
6522,
19,
4820,
11,
289,
225,
1923,
67,
803,
273,
21137,
18,
13929,
12,
4256,
16,
9050,
67,
5688,
67,
803,
13,
225,
309,
610,
67,
2433,
30,
327,
21137,
18,
1964,
12,
4256,
16,
1995,
87,
5258,
87,
11,
738,
261,
5688,
67,
803,
16,
21137,
18,
13929,
12,
4256,
16,
610,
67,
3576,
25146,
20,
22643,
225,
309,
714,
67,
712,
67,
869,
67,
13044,
67,
5688,
67,
803,
30,
268,
273,
813,
18,
3729,
957,
1435,
2548,
273,
875,
309,
714,
67,
2881,
67,
869,
67,
13044,
67,
5688,
67,
803,
30,
2548,
273,
4427,
397,
609,
12,
88,
63,
22,
5717,
225,
1923,
67,
803,
1011,
2548,
397,
4427,
397,
1509,
18,
7496,
461,
12,
4256,
18,
4923,
9334,
268,
63,
21,
5717,
397,
4427,
397,
609,
12,
88,
63,
20,
5717,
225,
327,
21137,
18,
1964,
12,
4256,
16,
1923,
67,
803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13044,
67,
5688,
67,
2433,
12,
5642,
67,
2433,
273,
1083,
4672,
225,
2834,
273,
21137,
18,
588,
4956,
1435,
225,
9050,
67,
5688,
67,
803,
273,
288,
2070,
1886,
4278,
582,
11,
1299,
5319,
87,
19,
4820,
11,
738,
642,
18,
1355,
1973,
63,
4256,
18,
9309,
18,
529,
6362,
4256,
18,
4936,
6487,
296,
305,
4278,
582,
11,
57,
88,
319,
73,
30,
426,
1097,
6522,
19,
4820,
11,
289,
225,
1923,
67,
803,
273,
21137,
18,
13929,
12,
4256,
16,
9050,
67,
5688,
67,
803,
13,
225,
309,
610,
67,
2433,
30,
327,
21137,
18,
1964,
12,
4256,
16,
1995,
87,
5258,
87,
11,
738,
261,
5688,
67,
803,
16,
21137,
18,
13929,
2
] |
def addRandomGroup(self,nlen = 8): """ add a randomly generated, unique group name
|
def addRandomGroup(self,prefix='',nlen= 8): """ add a quasi-randomly generated group name that is 'guaranteed' to be unique. If prefix is provided, the group name begins with that string
|
def addRandomGroup(self,nlen = 8): """ add a randomly generated, unique group name returns the group name or None. """ rand = random.randrange def randomName(n=8): chars = 'abcdefghijklmnopqrstuvwxyz0123456789' return "_%s" % ''.join([chars[rand(0,len(chars))] for i in range(n)]) group = randomName(n = nlen) if self.hasGroup(group): ntry = 0 while ntry<100: group = randomName(n=nlen) if not self.hasGroup(group):break ntry = ntry + 1 if (ntry % 20 == 0): nlen = nlen+1 if self.hasGroup(group): return None self.sym[group] = {} return group
|
7ce30dac7ae647b16c2f51350812b92c2a4f962b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11796/7ce30dac7ae647b16c2f51350812b92c2a4f962b/Symbol.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
8529,
1114,
12,
2890,
16,
3239,
2218,
2187,
82,
1897,
33,
1725,
4672,
3536,
527,
279,
719,
31653,
17,
9188,
715,
4374,
1041,
508,
716,
353,
296,
6891,
30164,
11,
358,
506,
3089,
18,
971,
1633,
353,
2112,
16,
326,
1041,
508,
17874,
598,
716,
533,
1135,
326,
1041,
508,
578,
599,
18,
3536,
5605,
273,
2744,
18,
7884,
3676,
1652,
2744,
461,
12,
82,
33,
28,
4672,
5230,
273,
296,
28953,
17680,
8302,
16391,
13607,
556,
85,
16114,
30900,
17177,
26684,
11,
327,
4192,
9,
87,
6,
738,
875,
18,
5701,
3816,
7549,
63,
7884,
12,
20,
16,
1897,
12,
7549,
3719,
65,
364,
277,
316,
1048,
12,
82,
13,
5717,
1041,
273,
2744,
461,
12,
82,
273,
290,
1897,
13,
309,
365,
18,
5332,
1114,
12,
1655,
4672,
290,
698,
273,
374,
1323,
290,
698,
32,
6625,
30,
1041,
273,
2744,
461,
12,
82,
33,
82,
1897,
13,
309,
486,
365,
18,
5332,
1114,
12,
1655,
4672,
8820,
290,
698,
273,
290,
698,
397,
404,
309,
261,
82,
698,
738,
4200,
422,
374,
4672,
290,
1897,
273,
290,
1897,
15,
21,
309,
365,
18,
5332,
1114,
12,
1655,
4672,
327,
599,
365,
18,
8117,
63,
1655,
65,
273,
2618,
327,
1041,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
8529,
1114,
12,
2890,
16,
3239,
2218,
2187,
82,
1897,
33,
1725,
4672,
3536,
527,
279,
719,
31653,
17,
9188,
715,
4374,
1041,
508,
716,
353,
296,
6891,
30164,
11,
358,
506,
3089,
18,
971,
1633,
353,
2112,
16,
326,
1041,
508,
17874,
598,
716,
533,
1135,
326,
1041,
508,
578,
599,
18,
3536,
5605,
273,
2744,
18,
7884,
3676,
1652,
2744,
461,
12,
82,
33,
28,
4672,
5230,
273,
296,
28953,
17680,
8302,
16391,
13607,
556,
85,
16114,
30900,
17177,
26684,
11,
327,
4192,
9,
87,
6,
738,
875,
18,
5701,
3816,
7549,
63,
7884,
12,
20,
16,
1897,
12,
7549,
3719,
65,
364,
277,
316,
1048,
12,
82,
13,
5717,
1041,
273,
2744,
461,
12,
2
] |
test()
|
test()
|
def test(): from pprint import pprint #print test_program; return from reportlab.pdfgen import canvas from reportlab.lib.units import inch fn = "paratest0.pdf" c = canvas.Canvas(fn) test2(c) c.showPage() if 1: remainder = test_program + test_program + test_program laststate = {} while remainder: print "NEW PAGE" c.translate(inch, 8*inch) t = c.beginText() t.setTextOrigin(0,0) p = paragraphEngine() p.resetState(laststate) p.x = 0 p.y = 0 maxwidth = 7*inch maxheight = 500 (formattedprogram, remainder, laststate, height) = p.format(maxwidth, maxheight, remainder) if debug: pprint( formattedprogram )#; return laststate = p.runOpCodes(formattedprogram, c, t) c.drawText(t) c.showPage() print "="*30, "x=", laststate["x"], "y=", laststate["y"] c.save() print fn
|
d3569d526e746a6f3fb0ee8d65e99b1190c72297 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/d3569d526e746a6f3fb0ee8d65e99b1190c72297/para.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
628,
18771,
1930,
18771,
468,
1188,
1842,
67,
12890,
31,
327,
628,
2605,
7411,
18,
22353,
2137,
275,
1930,
5953,
628,
2605,
7411,
18,
2941,
18,
7705,
1930,
316,
343,
2295,
273,
315,
1065,
270,
395,
20,
18,
7699,
6,
276,
273,
5953,
18,
12971,
12,
4293,
13,
1842,
22,
12,
71,
13,
276,
18,
4500,
1964,
1435,
309,
404,
30,
10022,
273,
1842,
67,
12890,
397,
1842,
67,
12890,
397,
1842,
67,
12890,
1142,
2019,
273,
2618,
1323,
10022,
30,
1172,
315,
12917,
11549,
6,
276,
18,
13929,
12,
267,
343,
16,
1725,
14,
267,
343,
13,
268,
273,
276,
18,
10086,
1528,
1435,
268,
18,
542,
1528,
7571,
12,
20,
16,
20,
13,
293,
273,
10190,
4410,
1435,
293,
18,
6208,
1119,
12,
2722,
2019,
13,
293,
18,
92,
273,
374,
293,
18,
93,
273,
374,
943,
2819,
273,
2371,
14,
267,
343,
943,
4210,
273,
6604,
261,
14897,
12890,
16,
10022,
16,
1142,
2019,
16,
2072,
13,
273,
293,
18,
2139,
12,
1896,
2819,
16,
943,
4210,
16,
10022,
13,
309,
1198,
30,
18771,
12,
4955,
12890,
262,
7,
31,
327,
1142,
2019,
273,
293,
18,
2681,
3817,
6295,
12,
14897,
12890,
16,
276,
16,
268,
13,
276,
18,
9446,
1528,
12,
88,
13,
276,
18,
4500,
1964,
1435,
1172,
9671,
14,
5082,
16,
315,
92,
1546,
16,
1142,
2019,
9614,
92,
6,
6487,
315,
93,
1546,
16,
1142,
2019,
9614,
93,
11929,
276,
18,
5688,
1435,
1172,
2295,
225,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
628,
18771,
1930,
18771,
468,
1188,
1842,
67,
12890,
31,
327,
628,
2605,
7411,
18,
22353,
2137,
275,
1930,
5953,
628,
2605,
7411,
18,
2941,
18,
7705,
1930,
316,
343,
2295,
273,
315,
1065,
270,
395,
20,
18,
7699,
6,
276,
273,
5953,
18,
12971,
12,
4293,
13,
1842,
22,
12,
71,
13,
276,
18,
4500,
1964,
1435,
309,
404,
30,
10022,
273,
1842,
67,
12890,
397,
1842,
67,
12890,
397,
1842,
67,
12890,
1142,
2019,
273,
2618,
1323,
10022,
30,
1172,
315,
12917,
11549,
6,
276,
18,
13929,
12,
267,
343,
16,
1725,
14,
267,
343,
13,
268,
273,
276,
18,
10086,
1528,
1435,
268,
18,
542,
1528,
7571,
12,
20,
16,
20,
13,
293,
2
] |
stat_list = list(self.stats.keys())
|
stat_list = self.stats.keys()
|
def get_print_list(self, sel_list): width = self.max_name_len if self.fcn_list: stat_list = self.fcn_list[:] msg = " Ordered by: " + self.sort_type + '\n' else: stat_list = list(self.stats.keys()) msg = " Random listing order was used\n"
|
ebeac1afae7d9a78072793b592a2dcb8bb233c1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/ebeac1afae7d9a78072793b592a2dcb8bb233c1d/pstats.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1188,
67,
1098,
12,
2890,
16,
357,
67,
1098,
4672,
1835,
273,
365,
18,
1896,
67,
529,
67,
1897,
309,
365,
18,
7142,
82,
67,
1098,
30,
610,
67,
1098,
273,
365,
18,
7142,
82,
67,
1098,
10531,
65,
1234,
273,
315,
282,
8524,
635,
30,
315,
397,
365,
18,
3804,
67,
723,
397,
2337,
82,
11,
469,
30,
610,
67,
1098,
273,
365,
18,
5296,
18,
2452,
1435,
1234,
273,
315,
282,
8072,
11591,
1353,
1703,
1399,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
529,
67,
1897,
309,
365,
18,
7142,
82,
67,
1098,
30,
610,
67,
1098,
273,
365,
18,
7142,
82,
67,
1098,
10531,
65,
1234,
273,
315,
282,
8524,
635,
30,
315,
397,
365,
18,
3804,
67,
723,
397,
2337,
82,
11,
469,
30,
610,
67,
1098,
273,
365,
18,
5296,
18,
2452,
1435,
1234,
273,
315,
282,
8072,
11591,
1353,
1703,
1399,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
p = subprocess.Popen(cmdline, close_fds=True)
|
if sys.platform[:3] == 'win': p = subprocess.Popen(cmdline) else: p = subprocess.Popen(cmdline, close_fds=True)
|
def open(self, url, new=0, autoraise=1): cmdline = [self.name] + [arg.replace("%s", url) for arg in self.args] try: p = subprocess.Popen(cmdline, close_fds=True) return not p.wait() except OSError: return False
|
2c94bf7d410b151d6e7e38275c9dda871a5e8882 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2c94bf7d410b151d6e7e38275c9dda871a5e8882/webbrowser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
22877,
273,
306,
2890,
18,
529,
65,
397,
306,
3175,
18,
2079,
27188,
87,
3113,
880,
13,
364,
1501,
316,
365,
18,
1968,
65,
775,
30,
309,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
4278,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
13,
469,
30,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
16,
1746,
67,
74,
2377,
33,
5510,
13,
327,
486,
293,
18,
7048,
1435,
1335,
10002,
30,
327,
1083,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
22877,
273,
306,
2890,
18,
529,
65,
397,
306,
3175,
18,
2079,
27188,
87,
3113,
880,
13,
364,
1501,
316,
365,
18,
1968,
65,
775,
30,
309,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
4278,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
13,
469,
30,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
16,
1746,
67,
74,
2377,
33,
5510,
13,
327,
486,
293,
18,
7048,
1435,
1335,
10002,
30,
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
] |
module_name = get_containing_module(value)
|
if module_name is None: module_name = get_containing_module(value)
|
def get_docstring(value): """ Return the docstring for the given value; or C{None} if it does not have a docstring. @rtype: C{unicode} """ docstring = getattr(value, '__doc__', None) if docstring is None: return None elif isinstance(docstring, unicode): return docstring elif isinstance(docstring, str): try: return unicode(docstring, 'ascii') except UnicodeDecodeError: module_name = get_containing_module(value) if module_name is not None: try: module = get_value_from_name(module_name) filename = py_src_filename(module.__file__) encoding = epydoc.docparser.get_module_encoding(filename) return unicode(docstring, encoding) except KeyboardInterrupt: raise except Exception: pass if hasattr(value, '__name__'): name = value.__name__ else: name = repr(value) log.warning("%s's docstring is not a unicode string, but it " "contains non-ascii data -- treating it as " "latin-1." % name) return unicode(docstring, 'latin-1') return None elif value is BuiltinMethodType: # Don't issue a warning for this special case. return None else: if hasattr(value, '__name__'): name = value.__name__ else: name = repr(value) log.warning("%s's docstring is not a string -- ignoring it." % name) return None
|
7cb507d14dc9e14ba47d4245d271ccc6c158752a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/7cb507d14dc9e14ba47d4245d271ccc6c158752a/docintrospecter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24675,
12,
1132,
4672,
3536,
2000,
326,
14525,
364,
326,
864,
460,
31,
578,
385,
95,
7036,
97,
309,
518,
1552,
486,
1240,
279,
14525,
18,
632,
86,
723,
30,
385,
95,
9124,
97,
3536,
14525,
273,
3869,
12,
1132,
16,
4940,
2434,
972,
2187,
599,
13,
309,
14525,
353,
599,
30,
327,
599,
1327,
1549,
12,
24675,
16,
5252,
4672,
327,
14525,
1327,
1549,
12,
24675,
16,
609,
4672,
775,
30,
327,
5252,
12,
24675,
16,
296,
9184,
6134,
1335,
26311,
30,
309,
1605,
67,
529,
353,
599,
30,
1605,
67,
529,
273,
336,
67,
1213,
3280,
67,
2978,
12,
1132,
13,
309,
1605,
67,
529,
353,
486,
599,
30,
775,
30,
1605,
273,
336,
67,
1132,
67,
2080,
67,
529,
12,
2978,
67,
529,
13,
1544,
273,
2395,
67,
4816,
67,
3459,
12,
2978,
16186,
768,
972,
13,
2688,
273,
425,
2074,
2434,
18,
2434,
4288,
18,
588,
67,
2978,
67,
5999,
12,
3459,
13,
327,
5252,
12,
24675,
16,
2688,
13,
1335,
19424,
30,
1002,
1335,
1185,
30,
1342,
309,
3859,
12,
1132,
16,
4940,
529,
7250,
4672,
508,
273,
460,
16186,
529,
972,
469,
30,
508,
273,
8480,
12,
1132,
13,
613,
18,
8551,
27188,
87,
1807,
14525,
353,
486,
279,
5252,
533,
16,
1496,
518,
315,
315,
12298,
1661,
17,
9184,
501,
1493,
9787,
1776,
518,
487,
315,
315,
26578,
17,
21,
1199,
738,
508,
13,
327,
5252,
12,
24675,
16,
296,
26578,
17,
21,
6134,
327,
599,
1327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24675,
12,
1132,
4672,
3536,
2000,
326,
14525,
364,
326,
864,
460,
31,
578,
385,
95,
7036,
97,
309,
518,
1552,
486,
1240,
279,
14525,
18,
632,
86,
723,
30,
385,
95,
9124,
97,
3536,
14525,
273,
3869,
12,
1132,
16,
4940,
2434,
972,
2187,
599,
13,
309,
14525,
353,
599,
30,
327,
599,
1327,
1549,
12,
24675,
16,
5252,
4672,
327,
14525,
1327,
1549,
12,
24675,
16,
609,
4672,
775,
30,
327,
5252,
12,
24675,
16,
296,
9184,
6134,
1335,
26311,
30,
309,
1605,
67,
529,
353,
599,
30,
1605,
67,
529,
273,
336,
67,
1213,
3280,
67,
2978,
12,
1132,
13,
309,
1605,
67,
529,
353,
486,
599,
30,
775,
30,
1605,
273,
336,
2
] |
print """\ Usage: bugzilla2trac.py --db <MySQL dbname> - Bugzilla's database [-h | --host <MySQL hostname>] - Bugzilla's DNS host name [-u | --user <MySQL username>] - effective Bugzilla's database user [-p | --passwd <MySQL password>] - Bugzilla's user password --tracenv /path/to/trac/env - full path to Trac db environment [-f | --force] - force to clean up Trac db [--help | help] - this help info""" sys.exit(0) if __name__ == "__main__": db = '' host = 'localhost' user = '' password = '' env = '' force = 0 if len (sys.argv) > 1: if sys.argv[1] in ['--help','help'] or len(sys.argv) < 4: usage() iter = 1 while iter < len(sys.argv): if sys.argv[iter] in ['--db'] and iter+1 < len(sys.argv): db = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-h', '--host'] and iter+1 < len(sys.argv): host = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-u', '--user'] and iter+1 < len(sys.argv): user = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-p', '--passwd'] and iter+1 < len(sys.argv): passwd = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['--tracenv'] and iter+1 < len(sys.argv): env = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-f', '--force']: force = 1 else: print "Error: unknown parameter: " + sys.argv[iter] sys.exit(0) iter = iter + 1 else: usage() TheBugzillaConverter(db, host, user, password, env, force)
|
print "bugzilla2trac - Imports a bug database from Bugzilla into Trac." print print "Usage: bugzilla2trac.py [options]" print print "Available Options:" print " --db <MySQL dbname> - Bugzilla's database" print " --tracenv /path/to/trac/env - full path to Trac db environment" print " -h | --host <MySQL hostname> - Bugzilla's DNS host name" print " -u | --user <MySQL username> - effective Bugzilla's database user" print " -p | --passwd <MySQL password> - Bugzilla's user password" print " -c | --clean - remove current Trac tickets before importing" print " --help | help - this help info" print print "Additional configuration options can be defined directly in the script." print sys.exit(0) def main(): global BZ_DB, BZ_HOST, BZ_USER, BZ_PASSWORD, TRAC_ENV, TRAC_CLEAN if len (sys.argv) > 1: if sys.argv[1] in ['--help','help'] or len(sys.argv) < 4: usage() iter = 1 while iter < len(sys.argv): if sys.argv[iter] in ['--db'] and iter+1 < len(sys.argv): BZ_DB = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-h', '--host'] and iter+1 < len(sys.argv): BZ_HOST = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-u', '--user'] and iter+1 < len(sys.argv): BZ_USER = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-p', '--passwd'] and iter+1 < len(sys.argv): BZ_PASSWORD = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['--tracenv'] and iter+1 < len(sys.argv): TRAC_ENV = sys.argv[iter+1] iter = iter + 1 elif sys.argv[iter] in ['-c', '--clean']: TRAC_CLEAN = 1 else: print "Error: unknown parameter: " + sys.argv[iter] sys.exit(0) iter = iter + 1 else: usage() convert(BZ_DB, BZ_HOST, BZ_USER, BZ_PASSWORD, TRAC_ENV, TRAC_CLEAN) if __name__ == '__main__': main()
|
def usage(): print """\
|
5cddf387e67e89477fb9b954001b3573f8af2454 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/5cddf387e67e89477fb9b954001b3573f8af2454/bugzilla2trac.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
3536,
64,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4084,
13332,
1172,
3536,
64,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sql += '\n' + cls.createIndexesSQL(connection=conn)
|
index_sql = cls.createIndexesSQL(connection=conn) if index_sql: sql += ';\n' + index_sql
|
def createTableSQL(cls, createJoinTables=True, createIndexes=True, connection=None): conn = connection or cls._connection sql, constraints = conn.createTableSQL(cls) if createJoinTables: sql += '\n' + cls.createJoinTablesSQL(connection=conn) if createIndexes: sql += '\n' + cls.createIndexesSQL(connection=conn) return sql, constraints
|
cb2ea02123add24ef0f6f0953e796866fa9c3401 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/cb2ea02123add24ef0f6f0953e796866fa9c3401/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19565,
3997,
12,
6429,
16,
752,
4572,
6905,
33,
5510,
16,
752,
8639,
33,
5510,
16,
1459,
33,
7036,
4672,
1487,
273,
1459,
578,
2028,
6315,
4071,
1847,
16,
6237,
273,
1487,
18,
2640,
1388,
3997,
12,
6429,
13,
309,
752,
4572,
6905,
30,
1847,
1011,
2337,
82,
11,
397,
2028,
18,
2640,
4572,
6905,
3997,
12,
4071,
33,
4646,
13,
309,
752,
8639,
30,
770,
67,
4669,
273,
2028,
18,
2640,
8639,
3997,
12,
4071,
33,
4646,
13,
309,
770,
67,
4669,
30,
1847,
1011,
296,
9747,
82,
11,
397,
770,
67,
4669,
327,
1847,
16,
6237,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19565,
3997,
12,
6429,
16,
752,
4572,
6905,
33,
5510,
16,
752,
8639,
33,
5510,
16,
1459,
33,
7036,
4672,
1487,
273,
1459,
578,
2028,
6315,
4071,
1847,
16,
6237,
273,
1487,
18,
2640,
1388,
3997,
12,
6429,
13,
309,
752,
4572,
6905,
30,
1847,
1011,
2337,
82,
11,
397,
2028,
18,
2640,
4572,
6905,
3997,
12,
4071,
33,
4646,
13,
309,
752,
8639,
30,
770,
67,
4669,
273,
2028,
18,
2640,
8639,
3997,
12,
4071,
33,
4646,
13,
309,
770,
67,
4669,
30,
1847,
1011,
296,
9747,
82,
11,
397,
770,
67,
4669,
327,
1847,
16,
6237,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}, -1)
|
}, -5)
|
def __init__(self, list, session = None): self["config_actions"] = NumberActionMap(["SetupActions", "TextInputActions"], { "ok": self.keyOK, "left": self.keyLeft, "right": self.keyRight, "delete": self.keyDelete, "1": self.keyNumberGlobal, "2": self.keyNumberGlobal, "3": self.keyNumberGlobal, "4": self.keyNumberGlobal, "5": self.keyNumberGlobal, "6": self.keyNumberGlobal, "7": self.keyNumberGlobal, "8": self.keyNumberGlobal, "9": self.keyNumberGlobal, "0": self.keyNumberGlobal }, -1)
|
2669cc5e44c030dc749e1999c3f96d5296362a54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/2669cc5e44c030dc749e1999c3f96d5296362a54/ConfigList.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
666,
16,
1339,
273,
599,
4672,
365,
9614,
1425,
67,
4905,
11929,
273,
3588,
1803,
863,
3816,
6,
7365,
6100,
3113,
315,
1528,
1210,
6100,
6,
6487,
288,
315,
601,
6877,
365,
18,
856,
3141,
16,
315,
4482,
6877,
365,
18,
856,
3910,
16,
315,
4083,
6877,
365,
18,
856,
4726,
16,
315,
3733,
6877,
365,
18,
856,
2613,
16,
315,
21,
6877,
365,
18,
856,
1854,
5160,
16,
315,
22,
6877,
365,
18,
856,
1854,
5160,
16,
315,
23,
6877,
365,
18,
856,
1854,
5160,
16,
315,
24,
6877,
365,
18,
856,
1854,
5160,
16,
315,
25,
6877,
365,
18,
856,
1854,
5160,
16,
315,
26,
6877,
365,
18,
856,
1854,
5160,
16,
315,
27,
6877,
365,
18,
856,
1854,
5160,
16,
315,
28,
6877,
365,
18,
856,
1854,
5160,
16,
315,
29,
6877,
365,
18,
856,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
666,
16,
1339,
273,
599,
4672,
365,
9614,
1425,
67,
4905,
11929,
273,
3588,
1803,
863,
3816,
6,
7365,
6100,
3113,
315,
1528,
1210,
6100,
6,
6487,
288,
315,
601,
6877,
365,
18,
856,
3141,
16,
315,
4482,
6877,
365,
18,
856,
3910,
16,
315,
4083,
6877,
365,
18,
856,
4726,
16,
315,
3733,
6877,
365,
18,
856,
2613,
16,
315,
21,
6877,
365,
18,
856,
1854,
5160,
16,
315,
22,
6877,
365,
18,
856,
1854,
5160,
16,
315,
23,
6877,
365,
18,
856,
1854,
5160,
16,
315,
24,
6877,
365,
18,
856,
1854,
5160,
16,
315,
25,
6877,
365,
18,
856,
1854,
5160,
16,
315,
26,
6877,
365,
18,
856,
1854,
2
] |
if context.mtime: context.set_header('Last-Modified', context.mtime)
|
if mtime: context.set_header('Last-Modified', mtime)
|
def set_body(cls, context): super(GET, cls).set_body(context) if context.status != 200: return
|
258cd6f3e5ef46c9d39ebb5c2741101c459ada34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/258cd6f3e5ef46c9d39ebb5c2741101c459ada34/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3432,
12,
6429,
16,
819,
4672,
2240,
12,
3264,
16,
2028,
2934,
542,
67,
3432,
12,
2472,
13,
309,
819,
18,
2327,
480,
4044,
30,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3432,
12,
6429,
16,
819,
4672,
2240,
12,
3264,
16,
2028,
2934,
542,
67,
3432,
12,
2472,
13,
309,
819,
18,
2327,
480,
4044,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
spine.append(E.itemref(idref=ref.id))
|
if ref.id is not None: spine.append(E.itemref(idref=ref.id))
|
def CAL_ELEM(name, content): return M.meta(name=name, content=content)
|
74a63ac46fd78882c955027a415e9c993da34189 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/74a63ac46fd78882c955027a415e9c993da34189/opf2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
1013,
67,
41,
26817,
12,
529,
16,
913,
4672,
327,
490,
18,
3901,
12,
529,
33,
529,
16,
913,
33,
1745,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
1013,
67,
41,
26817,
12,
529,
16,
913,
4672,
327,
490,
18,
3901,
12,
529,
33,
529,
16,
913,
33,
1745,
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
] |
self["api"]["name"].value = None self["api"]["description"].value = None
|
if self["api"].has_key("name"): self["api"]["name"].value = None self["api"]["description"].value = None
|
def _removed(self, emissor, data): self._header_table["name"].value = "Unselected" self._header_table["name"].value_obj._values_dict["n"].disabled_set( True)
|
ed8527c50c4765e15c9acae5b1a080f1d51c035d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/ed8527c50c4765e15c9acae5b1a080f1d51c035d/signals.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14923,
12,
2890,
16,
801,
1054,
280,
16,
501,
4672,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
1132,
273,
315,
984,
8109,
6,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
1132,
67,
2603,
6315,
2372,
67,
1576,
9614,
82,
6,
8009,
9278,
67,
542,
12,
1053,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14923,
12,
2890,
16,
801,
1054,
280,
16,
501,
4672,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
1132,
273,
315,
984,
8109,
6,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
1132,
67,
2603,
6315,
2372,
67,
1576,
9614,
82,
6,
8009,
9278,
67,
542,
12,
1053,
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
] |
text.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD))
|
text.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
|
def __init__(self, parent): wxPanel.__init__(self, parent, -1) print parent
|
2620b36e036a1d93bf57c97ee2f7cb9a339fd457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2620b36e036a1d93bf57c97ee2f7cb9a339fd457/embedded_sample.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
7075,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
13,
1172,
982,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
artype = Float
|
artype = Num.Float
|
def bilinear(b,a,fs=1.0): a,b = map(r1array,(a,b)) D = len(a) - 1 N = len(b) - 1 artype = Float M = max([N,D]) Np = M Dp = M bprime = zeros(Np+1,artype) aprime = zeros(Dp+1,artype) for j in range(Np+1): val = 0.0 for i in range(N+1): for k in range(i+1): for l in range(M-i+1): if k+l == j: val += comb(i,k)*comb(M-i,l)*b[N-i]*pow(2*fs,i)*(-1)**k bprime[j] = val for j in range(Dp+1): val = 0.0 for i in range(D+1): for k in range(i+1): for l in range(M-i+1): if k+l == j: val += comb(i,k)*comb(M-i,l)*a[D-i]*pow(2*fs,i)*(-1)**k aprime[j] = val return normalize(bprime, aprime)
|
78dbcc11384c4361dd850305b138d97d4c6ff715 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/78dbcc11384c4361dd850305b138d97d4c6ff715/filter_design.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
12554,
297,
12,
70,
16,
69,
16,
2556,
33,
21,
18,
20,
4672,
279,
16,
70,
273,
852,
12,
86,
21,
1126,
16,
12,
69,
16,
70,
3719,
463,
273,
562,
12,
69,
13,
300,
404,
423,
273,
562,
12,
70,
13,
300,
404,
419,
723,
273,
6805,
18,
4723,
490,
273,
943,
3816,
50,
16,
40,
5717,
423,
84,
273,
490,
463,
84,
273,
490,
324,
16382,
273,
4922,
12,
50,
84,
15,
21,
16,
24431,
13,
513,
86,
494,
273,
4922,
12,
40,
84,
15,
21,
16,
24431,
13,
364,
525,
316,
1048,
12,
50,
84,
15,
21,
4672,
1244,
273,
374,
18,
20,
364,
277,
316,
1048,
12,
50,
15,
21,
4672,
364,
417,
316,
1048,
12,
77,
15,
21,
4672,
364,
328,
316,
1048,
12,
49,
17,
77,
15,
21,
4672,
309,
417,
15,
80,
422,
525,
30,
1244,
1011,
3894,
12,
77,
16,
79,
17653,
9301,
12,
49,
17,
77,
16,
80,
17653,
70,
63,
50,
17,
77,
5772,
23509,
12,
22,
14,
2556,
16,
77,
17653,
19236,
21,
13,
636,
79,
324,
16382,
63,
78,
65,
273,
1244,
364,
525,
316,
1048,
12,
40,
84,
15,
21,
4672,
1244,
273,
374,
18,
20,
364,
277,
316,
1048,
12,
40,
15,
21,
4672,
364,
417,
316,
1048,
12,
77,
15,
21,
4672,
364,
328,
316,
1048,
12,
49,
17,
77,
15,
21,
4672,
309,
417,
15,
80,
422,
525,
30,
1244,
1011,
3894,
12,
77,
16,
79,
17653,
9301,
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,
324,
12554,
297,
12,
70,
16,
69,
16,
2556,
33,
21,
18,
20,
4672,
279,
16,
70,
273,
852,
12,
86,
21,
1126,
16,
12,
69,
16,
70,
3719,
463,
273,
562,
12,
69,
13,
300,
404,
423,
273,
562,
12,
70,
13,
300,
404,
419,
723,
273,
6805,
18,
4723,
490,
273,
943,
3816,
50,
16,
40,
5717,
423,
84,
273,
490,
463,
84,
273,
490,
324,
16382,
273,
4922,
12,
50,
84,
15,
21,
16,
24431,
13,
513,
86,
494,
273,
4922,
12,
40,
84,
15,
21,
16,
24431,
13,
364,
525,
316,
1048,
12,
50,
84,
15,
21,
4672,
1244,
273,
374,
18,
20,
364,
277,
316,
1048,
12,
50,
15,
21,
4672,
364,
417,
2
] |
msg="cmath.pi is %s; should be %s" % (cmath.pi, pi_expected))
|
msg="cmath.pi is {}; should be {}".format(cmath.pi, pi_expected))
|
def test_constants(self): e_expected = 2.71828182845904523536 pi_expected = 3.14159265358979323846 self.assertAlmostEqual(cmath.pi, pi_expected, places=9, msg="cmath.pi is %s; should be %s" % (cmath.pi, pi_expected)) self.assertAlmostEqual(cmath.e, e_expected, places=9, msg="cmath.e is %s; should be %s" % (cmath.e, e_expected))
|
5d73bca992924072e01ed3bdb94348008b77bb32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/5d73bca992924072e01ed3bdb94348008b77bb32/test_cmath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13358,
12,
2890,
4672,
425,
67,
3825,
273,
576,
18,
27,
2643,
6030,
28246,
5193,
6162,
3028,
25,
30803,
5718,
4790,
67,
3825,
273,
890,
18,
3461,
24872,
30281,
4763,
6675,
7235,
1578,
17295,
26,
365,
18,
11231,
1067,
10329,
5812,
12,
7670,
421,
18,
7259,
16,
4790,
67,
3825,
16,
12576,
33,
29,
16,
1234,
1546,
7670,
421,
18,
7259,
353,
2618,
31,
1410,
506,
3728,
18,
2139,
12,
7670,
421,
18,
7259,
16,
4790,
67,
3825,
3719,
365,
18,
11231,
1067,
10329,
5812,
12,
7670,
421,
18,
73,
16,
425,
67,
3825,
16,
12576,
33,
29,
16,
1234,
1546,
7670,
421,
18,
73,
353,
738,
87,
31,
1410,
506,
738,
87,
6,
738,
261,
7670,
421,
18,
73,
16,
425,
67,
3825,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13358,
12,
2890,
4672,
425,
67,
3825,
273,
576,
18,
27,
2643,
6030,
28246,
5193,
6162,
3028,
25,
30803,
5718,
4790,
67,
3825,
273,
890,
18,
3461,
24872,
30281,
4763,
6675,
7235,
1578,
17295,
26,
365,
18,
11231,
1067,
10329,
5812,
12,
7670,
421,
18,
7259,
16,
4790,
67,
3825,
16,
12576,
33,
29,
16,
1234,
1546,
7670,
421,
18,
7259,
353,
2618,
31,
1410,
506,
3728,
18,
2139,
12,
7670,
421,
18,
7259,
16,
4790,
67,
3825,
3719,
365,
18,
11231,
1067,
10329,
5812,
12,
7670,
421,
18,
73,
16,
425,
67,
3825,
16,
12576,
33,
29,
16,
1234,
1546,
7670,
421,
18,
73,
353,
738,
87,
31,
1410,
506,
738,
87,
6,
738,
261,
2
] |
def close_request(self, request): """Called to clean up an individual request."""
|
def shutdown_request(self, request): """Called to shutdown and close an individual request."""
|
def close_request(self, request): """Called to clean up an individual request.""" try: #explicitly shutdown. socket.close() merely releases #the socket and waits for GC to perform the actual close. request.shutdown(socket.SHUT_WR) except socket.error: pass #some platforms may raise ENOTCONN here request.close()
|
00a65e2539686fb0199fcc5b1f05718c0b374502 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/00a65e2539686fb0199fcc5b1f05718c0b374502/SocketServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
67,
2293,
12,
2890,
16,
590,
4672,
3536,
8185,
358,
5731,
471,
1746,
392,
7327,
590,
12123,
775,
30,
468,
16511,
715,
5731,
18,
225,
2987,
18,
4412,
1435,
4045,
2357,
14824,
468,
5787,
2987,
471,
16248,
364,
15085,
358,
3073,
326,
3214,
1746,
18,
590,
18,
15132,
12,
7814,
18,
2664,
1693,
67,
7181,
13,
1335,
2987,
18,
1636,
30,
1342,
468,
19068,
17422,
2026,
1002,
512,
4400,
27733,
2674,
590,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
15085,
358,
3073,
326,
3214,
1746,
18,
590,
18,
15132,
12,
7814,
18,
2664,
1693,
67,
7181,
13,
1335,
2987,
18,
1636,
30,
1342,
468,
19068,
17422,
2026,
1002,
512,
4400,
27733,
2674,
590,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise OSError(status)
|
raise RuntimeError('OpenSSL connect failed with status %s and ' 'output: %r' % (status, output))
|
def strip_to_x509_cert(certfile_contents, outfile=None): m = re.search(br"^([-]+BEGIN CERTIFICATE[-]+[\r]*\n" br".*[\r]*^[-]+END CERTIFICATE[-]+)$", certfile_contents, re.MULTILINE | re.DOTALL) if not m: return None else: tn = tempfile.mktemp() fp = open(tn, "wb") fp.write(m.group(1) + b"\n") fp.close() try: tn2 = (outfile or tempfile.mktemp()) status, output = subproc(r'openssl x509 -in "%s" -out "%s"' % (tn, tn2)) if status != 0: raise OperationError(status, tsig, output) fp = open(tn2, 'rb') data = fp.read() fp.close() os.unlink(tn2) return data finally: os.unlink(tn)
|
a84ca87c7169b9b186a25cfbf890aea260aef30a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/a84ca87c7169b9b186a25cfbf890aea260aef30a/get-remote-certificate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
869,
67,
92,
5995,
67,
7593,
12,
7593,
768,
67,
3980,
16,
8756,
33,
7036,
4672,
312,
273,
283,
18,
3072,
12,
2848,
6,
66,
3816,
23238,
16061,
25423,
26649,
18919,
3737,
7438,
86,
27759,
82,
6,
5186,
6,
4509,
7438,
86,
5772,
66,
18919,
3737,
4415,
25423,
26649,
18919,
7941,
8,
3113,
3320,
768,
67,
3980,
16,
283,
18,
12845,
30690,
571,
283,
18,
17591,
4685,
13,
309,
486,
312,
30,
327,
599,
469,
30,
16002,
273,
13275,
18,
24816,
5814,
1435,
4253,
273,
1696,
12,
5088,
16,
315,
9464,
7923,
4253,
18,
2626,
12,
81,
18,
1655,
12,
21,
13,
397,
324,
12691,
82,
7923,
4253,
18,
4412,
1435,
775,
30,
16002,
22,
273,
261,
26050,
578,
13275,
18,
24816,
5814,
10756,
1267,
16,
876,
273,
720,
9381,
12,
86,
11,
27764,
619,
5995,
300,
267,
2213,
87,
6,
300,
659,
2213,
87,
5187,
738,
261,
5088,
16,
16002,
22,
3719,
309,
1267,
480,
374,
30,
1002,
4189,
668,
12,
2327,
16,
3742,
360,
16,
876,
13,
4253,
273,
1696,
12,
5088,
22,
16,
296,
6731,
6134,
501,
273,
4253,
18,
896,
1435,
4253,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
5088,
22,
13,
327,
501,
3095,
30,
1140,
18,
318,
1232,
12,
5088,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
869,
67,
92,
5995,
67,
7593,
12,
7593,
768,
67,
3980,
16,
8756,
33,
7036,
4672,
312,
273,
283,
18,
3072,
12,
2848,
6,
66,
3816,
23238,
16061,
25423,
26649,
18919,
3737,
7438,
86,
27759,
82,
6,
5186,
6,
4509,
7438,
86,
5772,
66,
18919,
3737,
4415,
25423,
26649,
18919,
7941,
8,
3113,
3320,
768,
67,
3980,
16,
283,
18,
12845,
30690,
571,
283,
18,
17591,
4685,
13,
309,
486,
312,
30,
327,
599,
469,
30,
16002,
273,
13275,
18,
24816,
5814,
1435,
4253,
273,
1696,
12,
5088,
16,
315,
9464,
7923,
4253,
18,
2626,
12,
81,
18,
1655,
12,
21,
13,
397,
324,
12691,
82,
7923,
4253,
18,
4412,
1435,
775,
30,
16002,
22,
273,
2
] |
raise "\nERROR: In Order To Append/Insert A MultiLine Text You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT"
|
raise Exception("\nERROR: In Order To Append/Insert A MultiLine Text You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT")
|
def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist."""
|
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
2375,
12,
2890,
16,
977,
16,
5691,
67,
723,
33,
20,
16,
341,
4880,
33,
7036,
16,
1316,
29711,
21,
16,
357,
2040,
29711,
21,
16,
501,
33,
7036,
4672,
3536,
3655,
279,
1365,
358,
326,
6082,
2471,
12418,
18,
5098,
1245,
1365,
1297,
1005,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
2375,
12,
2890,
16,
977,
16,
5691,
67,
723,
33,
20,
16,
341,
4880,
33,
7036,
16,
1316,
29711,
21,
16,
357,
2040,
29711,
21,
16,
501,
33,
7036,
4672,
3536,
3655,
279,
1365,
358,
326,
6082,
2471,
12418,
18,
5098,
1245,
1365,
1297,
1005,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __tree_status(files = [], tree_id = 'HEAD', unknown = False,
|
def __tree_status(files = None, tree_id = 'HEAD', unknown = False,
|
def __tree_status(files = [], tree_id = 'HEAD', unknown = False, noexclude = True): """Returns a list of pairs - [status, filename] """ refresh_index() cache_files = [] # unknown files if unknown: exclude_file = os.path.join(base_dir, 'info', 'exclude') base_exclude = ['--exclude=%s' % s for s in ['*.[ao]', '*.pyc', '.*', '*~', '#*', 'TAGS', 'tags']] base_exclude.append('--exclude-per-directory=.gitignore') if os.path.exists(exclude_file): extra_exclude = ['--exclude-from=%s' % exclude_file] else: extra_exclude = [] if noexclude: extra_exclude = base_exclude = [] lines = _output_lines(['git-ls-files', '--others'] + base_exclude + extra_exclude) cache_files += [('?', line.strip()) for line in lines] # conflicted files conflicts = get_conflicts() if not conflicts: conflicts = [] cache_files += [('C', filename) for filename in conflicts] # the rest for line in _output_lines(['git-diff-index', '-r', tree_id] + files): fs = tuple(line.rstrip().split(' ',4)[-1].split('\t',1)) if fs[1] not in conflicts: cache_files.append(fs) return cache_files
|
9216b6023d6840c457172b375e14443189f7ef89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/9216b6023d6840c457172b375e14443189f7ef89/git.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3413,
67,
2327,
12,
2354,
273,
599,
16,
2151,
67,
350,
273,
296,
12458,
2187,
5917,
273,
1083,
16,
1158,
10157,
273,
1053,
4672,
3536,
1356,
279,
666,
434,
5574,
300,
306,
2327,
16,
1544,
65,
3536,
4460,
67,
1615,
1435,
225,
1247,
67,
2354,
273,
5378,
225,
468,
5917,
1390,
309,
5917,
30,
4433,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
296,
1376,
2187,
296,
10157,
6134,
1026,
67,
10157,
273,
10228,
413,
10157,
5095,
87,
11,
738,
272,
364,
272,
316,
10228,
11146,
63,
6033,
65,
2187,
19962,
2074,
71,
2187,
2418,
14,
2187,
14609,
98,
2187,
2946,
14,
2187,
296,
29915,
2187,
296,
4156,
3546,
65,
1026,
67,
10157,
18,
6923,
2668,
413,
10157,
17,
457,
17,
5149,
33,
18,
6845,
6185,
6134,
225,
309,
1140,
18,
803,
18,
1808,
12,
10157,
67,
768,
4672,
2870,
67,
10157,
273,
10228,
413,
10157,
17,
2080,
5095,
87,
11,
738,
4433,
67,
768,
65,
469,
30,
2870,
67,
10157,
273,
5378,
309,
1158,
10157,
30,
2870,
67,
10157,
273,
1026,
67,
10157,
273,
5378,
225,
2362,
273,
389,
2844,
67,
3548,
12,
3292,
6845,
17,
3251,
17,
2354,
2187,
3534,
28197,
3546,
397,
1026,
67,
10157,
397,
2870,
67,
10157,
13,
1247,
67,
2354,
1011,
306,
2668,
35,
2187,
980,
18,
6406,
10756,
364,
980,
316,
2362,
65,
225,
468,
7546,
329,
1390,
14450,
273,
336,
67,
20340,
87,
1435,
309,
486,
14450,
30,
14450,
273,
5378,
1247,
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,
3413,
67,
2327,
12,
2354,
273,
599,
16,
2151,
67,
350,
273,
296,
12458,
2187,
5917,
273,
1083,
16,
1158,
10157,
273,
1053,
4672,
3536,
1356,
279,
666,
434,
5574,
300,
306,
2327,
16,
1544,
65,
3536,
4460,
67,
1615,
1435,
225,
1247,
67,
2354,
273,
5378,
225,
468,
5917,
1390,
309,
5917,
30,
4433,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
296,
1376,
2187,
296,
10157,
6134,
1026,
67,
10157,
273,
10228,
413,
10157,
5095,
87,
11,
738,
272,
364,
272,
316,
10228,
11146,
63,
6033,
65,
2187,
19962,
2074,
71,
2187,
2418,
14,
2187,
14609,
98,
2187,
2946,
14,
2187,
296,
29915,
2187,
296,
4156,
3546,
65,
1026,
67,
2
] |
tokens = queueToAllowedSites(s)
|
tokens = convertQueueNameToDQ2Names(s)
|
def list_ddm_sites(self,allowTape=False): from pandatools import Client refreshPandaSpecs()
|
0f7dd4dd84d0c66c035d8408d494339ece96a78e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/0f7dd4dd84d0c66c035d8408d494339ece96a78e/Panda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
449,
81,
67,
12180,
12,
2890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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
449,
81,
67,
12180,
12,
2890,
16,
5965,
30421,
33,
8381,
4672,
628,
293,
464,
270,
8192,
1930,
2445,
4460,
52,
464,
69,
15999,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return urlunparse((scheme, netloc, path, params, query, fragment))
|
return url
|
def urljoin(base, url, allow_fragments = 1): """Join a base URL and a possibly relative URL to form an absolute interpretation of the latter.""" if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ urlparse(base, '', allow_fragments) scheme, netloc, path, params, query, fragment = \ urlparse(url, bscheme, allow_fragments) if scheme != bscheme or scheme not in uses_relative: return urlunparse((scheme, netloc, path, params, query, fragment)) if scheme in uses_netloc: if netloc: return urlunparse((scheme, netloc, path, params, query, fragment)) netloc = bnetloc if path[:1] == '/': return urlunparse((scheme, netloc, path, params, query, fragment)) if not path: return urlunparse((scheme, netloc, bpath, params, query or bquery, fragment)) segments = bpath.split('/')[:-1] + path.split('/') # XXX The stuff below is bogus in various ways... if segments[-1] == '.': segments[-1] = '' while '.' in segments: segments.remove('.') while 1: i = 1 n = len(segments) - 1 while i < n: if segments[i] == '..' and segments[i-1]: del segments[i-1:i+1] break i = i+1 else: break if len(segments) == 2 and segments[1] == '..' and segments[0] == '': segments[-1] = '' elif len(segments) >= 2 and segments[-1] == '..': segments[-2:] = [''] return urlunparse((scheme, netloc, '/'.join(segments), params, query, fragment))
|
867952f6e437270cc906af34dba28a9b580ec265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/867952f6e437270cc906af34dba28a9b580ec265/urlparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
29528,
273,
404,
4672,
3536,
4572,
279,
1026,
1976,
471,
279,
10016,
3632,
1976,
358,
646,
392,
4967,
10634,
367,
434,
326,
23740,
12123,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,
324,
11956,
273,
521,
15185,
12,
1969,
16,
10226,
1699,
67,
29528,
13,
4355,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
273,
521,
15185,
12,
718,
16,
7081,
2905,
16,
1699,
67,
29528,
13,
309,
4355,
480,
7081,
2905,
578,
4355,
486,
316,
4692,
67,
11626,
30,
327,
880,
309,
4355,
316,
4692,
67,
2758,
1829,
30,
309,
17345,
30,
327,
880,
17345,
273,
324,
2758,
1829,
309,
589,
10531,
21,
65,
422,
2023,
30,
327,
880,
309,
486,
589,
30,
327,
880,
318,
2670,
12443,
9068,
16,
17345,
16,
324,
803,
16,
859,
16,
843,
578,
324,
2271,
16,
5481,
3719,
5155,
273,
324,
803,
18,
4939,
2668,
2473,
13,
10531,
17,
21,
65,
397,
589,
18,
4939,
2668,
2473,
13,
468,
11329,
1021,
10769,
5712,
353,
324,
28774,
316,
11191,
16226,
2777,
309,
5155,
18919,
21,
65,
422,
2611,
30,
5155,
18919,
21,
65,
273,
875,
1323,
2611,
316,
5155,
30,
5155,
18,
4479,
2668,
1093,
13,
1323,
404,
30,
277,
273,
404,
290,
273,
562,
12,
12838,
13,
300,
404,
1323,
277,
411,
290,
30,
309,
5155,
63,
77,
65,
422,
13222,
471,
5155,
63,
77,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
29528,
273,
404,
4672,
3536,
4572,
279,
1026,
1976,
471,
279,
10016,
3632,
1976,
358,
646,
392,
4967,
10634,
367,
434,
326,
23740,
12123,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,
324,
11956,
273,
521,
15185,
12,
1969,
16,
10226,
1699,
67,
29528,
13,
4355,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
273,
521,
15185,
12,
718,
16,
7081,
2905,
16,
1699,
67,
29528,
13,
309,
4355,
480,
7081,
2905,
578,
4355,
486,
316,
4692,
67,
11626,
30,
327,
880,
309,
4355,
316,
4692,
67,
2758,
1829,
30,
309,
17345,
30,
327,
2
] |
str_w_head, str_h_head = osd.stringsize('Ajg', val.head.font, val.head.size)
|
str_w_label, str_h_label = osd.stringsize('Ajg', val.label.font, val.label.size)
|
def DrawTVGuide_Listing(self, to_listing, settings): val = settings.listing
|
d31c11c3f9777168daab09b7a7cda5ce84134383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d31c11c3f9777168daab09b7a7cda5ce84134383/main1_tv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
15579,
17424,
67,
19081,
12,
2890,
16,
358,
67,
21228,
16,
1947,
4672,
1244,
273,
1947,
18,
21228,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
15579,
17424,
67,
19081,
12,
2890,
16,
358,
67,
21228,
16,
1947,
4672,
1244,
273,
1947,
18,
21228,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Let us compute longest paths on random graphs with random weights. Each time, we ensure the resulting graph is indeed a path::
|
Let us compute longest paths on random graphs with random weights. Each time, we ensure the resulting graph is indeed a path::
|
def longest_path(self, s=None, t=None, weighted=False, algorithm="MILP", solver=None, verbose=0): r""" Returns a longest path of ``self``.
|
34c1e50f6f1e024964d30bd503da4e0a040658da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/34c1e50f6f1e024964d30bd503da4e0a040658da/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
33,
7036,
16,
268,
33,
7036,
16,
13747,
33,
8381,
16,
4886,
1546,
49,
2627,
52,
3113,
12776,
33,
7036,
16,
3988,
33,
20,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
33,
7036,
16,
268,
33,
7036,
16,
13747,
33,
8381,
16,
4886,
1546,
49,
2627,
52,
3113,
12776,
33,
7036,
16,
3988,
33,
20,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
global before_insert_called before_insert_called += 1
|
record_event('before_insert_called')
|
def pre_insert(self): global before_insert_called before_insert_called += 1
|
a86386040cf0d103d8140304c5281f7ee220a218 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11921/a86386040cf0d103d8140304c5281f7ee220a218/test_events.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
67,
6387,
12,
2890,
4672,
2552,
1865,
67,
6387,
67,
11777,
1865,
67,
6387,
67,
11777,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
67,
6387,
12,
2890,
4672,
2552,
1865,
67,
6387,
67,
11777,
1865,
67,
6387,
67,
11777,
1011,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
branches = svn.client.ls(rpath + '/branches', optrev, False, self.ctx) for branch in branches.keys(): module = '/branches/' + branch
|
branchnames = svn.client.ls(rpath + '/' + branches, optrev, False, self.ctx) for branch in branchnames.keys(): if oldmodule: module = '/' + oldmodule + '/' + branches + '/' + branch else: module = '/' + branches + '/' + branch
|
def getheads(self): # detect standard /branches, /tags, /trunk layout optrev = svn.core.svn_opt_revision_t() optrev.kind = svn.core.svn_opt_revision_number optrev.value.number = self.last_changed rpath = self.url.strip('/') paths = svn.client.ls(rpath, optrev, False, self.ctx) if 'branches' in paths and 'trunk' in paths: self.module += '/trunk' lt = self.latest(self.module, self.last_changed) self.head = self.revid(lt) self.heads = [self.head] branches = svn.client.ls(rpath + '/branches', optrev, False, self.ctx) for branch in branches.keys(): module = '/branches/' + branch brevnum = self.latest(module, self.last_changed) brev = self.revid(brevnum, module) self.ui.note('found branch %s at %d\n' % (branch, brevnum)) self.heads.append(brev) else: self.heads = [self.head] return self.heads
|
d35ee3e4ef3d04a9ca600c893ba61f12cb8d894f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/d35ee3e4ef3d04a9ca600c893ba61f12cb8d894f/subversion.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20263,
12,
2890,
4672,
468,
5966,
4529,
342,
18078,
16,
342,
4156,
16,
342,
26133,
3511,
2153,
9083,
273,
5893,
82,
18,
3644,
18,
31505,
67,
3838,
67,
13057,
67,
88,
1435,
2153,
9083,
18,
9224,
273,
5893,
82,
18,
3644,
18,
31505,
67,
3838,
67,
13057,
67,
2696,
2153,
9083,
18,
1132,
18,
2696,
273,
365,
18,
2722,
67,
6703,
436,
803,
273,
365,
18,
718,
18,
6406,
2668,
2473,
13,
2953,
273,
5893,
82,
18,
2625,
18,
3251,
12,
86,
803,
16,
2153,
9083,
16,
1083,
16,
365,
18,
5900,
13,
309,
296,
18078,
11,
316,
2953,
471,
296,
26133,
11,
316,
2953,
30,
365,
18,
2978,
1011,
1173,
26133,
11,
13489,
273,
365,
18,
13550,
12,
2890,
18,
2978,
16,
365,
18,
2722,
67,
6703,
13,
365,
18,
1978,
273,
365,
18,
266,
1246,
12,
5618,
13,
365,
18,
20263,
273,
306,
2890,
18,
1978,
65,
3803,
1973,
273,
5893,
82,
18,
2625,
18,
3251,
12,
86,
803,
397,
2023,
397,
11483,
16,
2153,
9083,
16,
1083,
16,
365,
18,
5900,
13,
364,
3803,
316,
3803,
1973,
18,
2452,
13332,
309,
1592,
2978,
30,
1605,
273,
2023,
397,
1592,
2978,
397,
2023,
397,
11483,
397,
2023,
397,
3803,
469,
30,
1605,
273,
2023,
397,
11483,
397,
2023,
397,
3803,
324,
9083,
2107,
273,
365,
18,
13550,
12,
2978,
16,
365,
18,
2722,
67,
6703,
13,
324,
9083,
273,
365,
18,
266,
1246,
12,
27216,
2107,
16,
1605,
13,
365,
18,
4881,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20263,
12,
2890,
4672,
468,
5966,
4529,
342,
18078,
16,
342,
4156,
16,
342,
26133,
3511,
2153,
9083,
273,
5893,
82,
18,
3644,
18,
31505,
67,
3838,
67,
13057,
67,
88,
1435,
2153,
9083,
18,
9224,
273,
5893,
82,
18,
3644,
18,
31505,
67,
3838,
67,
13057,
67,
2696,
2153,
9083,
18,
1132,
18,
2696,
273,
365,
18,
2722,
67,
6703,
436,
803,
273,
365,
18,
718,
18,
6406,
2668,
2473,
13,
2953,
273,
5893,
82,
18,
2625,
18,
3251,
12,
86,
803,
16,
2153,
9083,
16,
1083,
16,
365,
18,
5900,
13,
309,
296,
18078,
11,
316,
2953,
471,
296,
26133,
11,
316,
2953,
30,
365,
18,
2978,
1011,
1173,
26133,
11,
13489,
273,
365,
18,
2
] |
rot = (90+180+angle-ysize/2) % 360
|
if j == 0: rot = (90+180+angle+corr-((ysize+corr-corr_prev)/2)) % 360 else: rot = (90+180+angle+corr-ysize/2) % 360
|
def plagram_year_lines(self,cr,radius,chartob): chart = chartob.chart yfrac = chart.birthday_frac() year = int(chart.date.split('-')[0]) - 1 cycles = chart.get_cycles(boss.state.date.dt) year += 72*cycles sizes = chartob.get_sizes() font_size = 11.0 * radius * MAGICK_FONTSCALE inset = radius * PE_OUTER * 0.972 radius = radius * PE_OUTER * 0.997 offsets = chartob.get_cusps_offsets() cr.save() cr.set_line_width(0.5*cr.get_line_width()) self.set_font(cr,font_size) for off,size in izip(offsets,sizes): ysize = size / 6 corr = yfrac * ysize cr.set_source_rgb(0.5,0.8,0.4) for j in range(0,6): angle = (off - ysize * j + corr) self.d_radial_line(cr,radius,inset,angle*RAD) year += 1 if j in [0,3]: cr.save() rot = (90+180+angle-ysize/2) % 360 cr.rotate(rot*RAD) cr.translate(0,radius) yr = str(year)[2:] _, _, width, height, _, _ = cr.text_extents(yr) if 90 < rot < 270: cr.rotate(180*RAD) cr.move_to(-width/2,height) else: cr.move_to(-width/2,0) cr.set_source_rgb(0.0,0.7,0.0) cr.show_text(yr) cr.restore() cr.restore()
|
a87c3367a8a0551fd5598abeb7a9bb1a74478f7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2637/a87c3367a8a0551fd5598abeb7a9bb1a74478f7c/planetogram.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
886,
17049,
67,
6874,
67,
3548,
12,
2890,
16,
3353,
16,
11282,
16,
11563,
947,
4672,
4980,
273,
4980,
947,
18,
11563,
677,
22187,
273,
4980,
18,
22531,
2881,
67,
22187,
1435,
3286,
273,
509,
12,
11563,
18,
712,
18,
4939,
2668,
17,
6134,
63,
20,
5717,
300,
404,
15139,
273,
4980,
18,
588,
67,
23976,
12,
70,
8464,
18,
2019,
18,
712,
18,
7510,
13,
3286,
1011,
19387,
14,
23976,
8453,
273,
4980,
947,
18,
588,
67,
11914,
1435,
3512,
67,
1467,
273,
4648,
18,
20,
380,
5725,
380,
490,
1781,
16656,
67,
25221,
19378,
316,
542,
273,
5725,
225,
380,
16628,
67,
5069,
654,
380,
374,
18,
29,
9060,
5725,
273,
5725,
380,
16628,
67,
5069,
654,
380,
374,
18,
2733,
27,
8738,
273,
4980,
947,
18,
588,
67,
71,
407,
1121,
67,
16542,
1435,
4422,
18,
5688,
1435,
4422,
18,
542,
67,
1369,
67,
2819,
12,
20,
18,
25,
14,
3353,
18,
588,
67,
1369,
67,
2819,
10756,
365,
18,
542,
67,
5776,
12,
3353,
16,
5776,
67,
1467,
13,
364,
3397,
16,
1467,
316,
277,
4450,
12,
16542,
16,
11914,
4672,
677,
1467,
273,
963,
342,
1666,
19480,
273,
677,
22187,
380,
677,
1467,
4422,
18,
542,
67,
3168,
67,
10948,
12,
20,
18,
25,
16,
20,
18,
28,
16,
20,
18,
24,
13,
364,
525,
316,
1048,
12,
20,
16,
26,
4672,
5291,
273,
261,
3674,
300,
677,
1467,
380,
525,
397,
19480,
13,
365,
18,
72,
67,
6012,
649,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
886,
17049,
67,
6874,
67,
3548,
12,
2890,
16,
3353,
16,
11282,
16,
11563,
947,
4672,
4980,
273,
4980,
947,
18,
11563,
677,
22187,
273,
4980,
18,
22531,
2881,
67,
22187,
1435,
3286,
273,
509,
12,
11563,
18,
712,
18,
4939,
2668,
17,
6134,
63,
20,
5717,
300,
404,
15139,
273,
4980,
18,
588,
67,
23976,
12,
70,
8464,
18,
2019,
18,
712,
18,
7510,
13,
3286,
1011,
19387,
14,
23976,
8453,
273,
4980,
947,
18,
588,
67,
11914,
1435,
3512,
67,
1467,
273,
4648,
18,
20,
380,
5725,
380,
490,
1781,
16656,
67,
25221,
19378,
316,
542,
273,
5725,
225,
380,
16628,
67,
5069,
654,
380,
374,
18,
29,
9060,
5725,
273,
5725,
380,
16628,
67,
5069,
2
] |
storage.changeDirectory(alternativePath)
|
storage.changeDirectory(directoryPath)
|
def putFile(self,file,alternativePath=None): """ This method will upload a local file to the SE
|
462dde553bb0e1ee27593b99359b316b766f389d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/462dde553bb0e1ee27593b99359b316b766f389d/StorageElement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
812,
12,
2890,
16,
768,
16,
27071,
743,
33,
7036,
4672,
3536,
1220,
707,
903,
3617,
279,
1191,
585,
358,
326,
3174,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
812,
12,
2890,
16,
768,
16,
27071,
743,
33,
7036,
4672,
3536,
1220,
707,
903,
3617,
279,
1191,
585,
358,
326,
3174,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dct['interval'] = " " + str(rule.interval) dct['freq'] = pluralFrequencyMap[freq]
|
dct['interval'] = str(rule.interval) index += 'p'
|
def getCustomDescription(self): """Return a string describing custom rules.
|
f54c3f01d59ec14330045b415eecb81a8a76f63c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/f54c3f01d59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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12736,
3291,
12,
2890,
4672,
3536,
990,
279,
533,
16868,
1679,
2931,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: B = A.change_ring(PowerSeriesRing( ... Integers(p**prec), 't', default_prec=4))
|
sage: B = A.change_ring(PowerSeriesRing(Integers(p**prec), 't', default_prec=4))
|
def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be a $\Z/(p^M)\Z$-algebra in which the matrix of frobenius will be constructed. p -- prime >= 5 for which E has good reduction M -- integer >= 2; $p$-adic precision of the coefficient ring trace -- (optional) the trace of the matrix, if known in advance. This is easy to compute because it's just the $a_p$ of the curve. If the trace is supplied, matrix_of_frobenius will use it to speed the computation (i.e. we know the determinant is $p$, so we have two conditions, so really only column of the matrix needs to be computed. It's actually a little more complicated than that, but that's the basic idea.) If trace=None, then both columns will be computed independently, and you can get a strong indication of correctness by verifying the trace afterwards. WARNING: -- THE RESULT WILL NOT NECESSARILY BE CORRECT TO M p-ADIC DIGITS. If you want prec digits of precision, you need to use the function adjusted_prec(), and then you need to reduce the answer mod p^prec at the end. OUTPUT: 2x2 matrix of frobenius on Monsky-Washnitzer cohomology, with entries in the coefficient ring of Q. EXAMPLES: A simple example: sage: p = 5 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: M 5 sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) sage: A [3090 187] [2945 408] But the result is only accurate to prec digits: sage: B = A.change_ring(Integers(p**prec)) sage: B [90 62] [70 33] Check trace (123 = -2 mod 125) and determinant: sage: B.det() 5 sage: B.trace() 123 sage: EllipticCurve([-1, 1/4]).ap(5) -2 Try using the trace to speed up the calculation: sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), ... p, M, -2) sage: A [2715 187] [1445 408] Hmmm... it looks different, but that's because the trace of our first answer was only -2 modulo $5^3$, not -2 modulo $5^5$. So the right answer is: sage: A.change_ring(Integers(p**prec)) [90 62] [70 33] Check it works with only one digit of precision: sage: p = 5 sage: prec = 1 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) sage: A.change_ring(Integers(p)) [0 2] [0 3] Here's an example that's particularly badly conditioned for using the trace trick: sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 + 7*x + 8, p, M) sage: A.change_ring(Integers(p**prec)) [1144 176] [ 847 185] The problem here is that the top-right entry is divisible by 11, and the bottom-left entry is divisible by $11^2$. So when you apply the trace trick, neither $F(dx/y)$ nor $F(x dx/y)$ is enough to compute the whole matrix to the desired precision, even if you try increasing the target precision by one. Nevertheless, \code{matrix_of_frobenius} knows how to get the right answer by evaluating $F((x+1) dx/y)$ instead: sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 + 7*x + 8, p, M, -2) sage: A.change_ring(Integers(p**prec)) [1144 176] [ 847 185] The running time is about \code{O(p * prec**2)} (times some logarithmic factors), so it's feasible to run on fairly large primes, or precision (or both?!?!): sage: p = 10007 sage: prec = 2 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: B = A.change_ring(Integers(p**prec)); B # long time [74311982 57996908] [95877067 25828133] sage: B.det() # long time 10007 sage: B.trace() # long time 66 sage: EllipticCurve([-1, 1/4]).ap(10007) # long time 66 sage: p = 5 sage: prec = 300 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: B = A.change_ring(Integers(p**prec)) # long time sage: B.det() # long time 5 sage: -B.trace() # long time 2 sage: EllipticCurve([-1, 1/4]).ap(5) # long time -2 Let's check consistency of the results for a range of precisions: sage: p = 5 sage: max_prec = 60 sage: M = monsky_washnitzer.adjusted_prec(p, max_prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: A = A.change_ring(Integers(p**max_prec)) # long time sage: result = [] # long time sage: for prec in range(1, max_prec): # long time ... M = monsky_washnitzer.adjusted_prec(p, prec) # long time ... R.<x> = PolynomialRing(Integers(p^M),'x') # long time ... B = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time ... B = B.change_ring(Integers(p**prec)) # long time ... result.append(B == A.change_ring( # long time ... Integers(p**prec))) # long time sage: result == [True] * (max_prec - 1) # long time True The remaining examples discuss what happens when you take the coefficient ring to be a power series ring; i.e. in effect you're looking at a family of curves. The code does in fact work... sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: S.<t> = PowerSeriesRing(Integers(p**M), default_prec=4) sage: a = 7 + t + 3*t^2 sage: b = 8 - 6*t + 17*t^2 sage: R.<x> = PolynomialRing(S) sage: Q = x**3 + a*x + b sage: A = monsky_washnitzer.matrix_of_frobenius(Q, p, M) # long time sage: B = A.change_ring(PowerSeriesRing( # long time ... Integers(p**prec), 't', default_prec=4)) # long time sage: B # long time [1144 + 264*t + 841*t^2 + 1025*t^3 + O(t^4) 176 + 1052*t + 216*t^2 + 523*t^3 + O(t^4)] [ 847 + 668*t + 81*t^2 + 424*t^3 + O(t^4) 185 + 341*t + 171*t^2 + 642*t^3 + O(t^4)] The trace trick should work for power series rings too, even in the badly- conditioned case. Unfortunately I don't know how to compute the trace in advance, so I'm not sure exactly how this would help. Also, I suspect the running time will be dominated by the expansion, so the trace trick won't really speed things up anyway. Another problem is that the determinant is not always p: sage: B.det() # long time 11 + 484*t^2 + 451*t^3 + O(t^4) However, it appears that the determinant always has the property that if you substitute t -> 11t, you do get the constant series p (mod p**prec). Similarly for the trace. And since the parameter only really makes sense when it's divisible by p anyway, perhaps this isn't a problem after all. """ M = int(M) if M < 2: raise ValueError, "M (=%s) must be at least 2" % M base_ring = Q.base_ring() # Expand out frobenius of dx/y and x dx/y. # (You can substitute frobenius_expansion_by_series here, that will work # as well. See its docstring for some performance notes.) F0, F1, offset = frobenius_expansion_by_newton(Q, p, M) #F0, F1, offset = frobenius_expansion_by_series(Q, p, M) if compute_exact_forms: # we need to do all the work to get the exact expressions f such that F(x^i dx/y) = df + \sum a_i x^i dx/y F0_coeffs = transpose_list(F0.coeffs()) F0_reduced, f_0 = reduce_all(Q, p, F0_coeffs, offset, True) F1_coeffs = transpose_list(F1.coeffs()) F1_reduced, f_1 = reduce_all(Q, p, F1_coeffs, offset, True) elif M == 2: # This implies that only one digit of precision is valid, so we only need # to reduce the second column. Also, the trace doesn't help at all. F0_reduced = [ base_ring(0), base_ring(0) ] F1_coeffs = transpose_list(F1.coeffs()) F1_reduced = reduce_all(Q, p, F1_coeffs, offset) elif trace is None: # No trace provided, just reduce F(dx/y) and F(x dx/y) separately. F0_coeffs = transpose_list(F0.coeffs()) F0_reduced = reduce_all(Q, p, F0_coeffs, offset) F1_coeffs = transpose_list(F1.coeffs()) F1_reduced = reduce_all(Q, p, F1_coeffs, offset) else: # Trace has been provided. # In most cases this can be used to quickly compute F(dx/y) from # F(x dx/y). However, if we're unlucky, the (dx/y)-component of # F(x dx/y) (i.e. the top-right corner of the matrix) may be divisible # by p, in which case there isn't enough information to get the # (x dx/y)-component of F(dx/y) to the desired precision. When this # happens, it turns out that F((x+1) dx/y) always *does* give enough # information (together with the trace) to get both columns to the # desired precision. # First however we need a quick way of telling whether the top-right # corner is divisible by p, i.e. we want to compute the second column # of the matrix mod p. We could do this by just running the entire # algorithm with M = 2 (which assures precision 1). Luckily, we've # already done most of the work by computing F1 to high precision; so # all we need to do is extract the coefficients that would correspond # to the first term of the series, and run the reduction on them. # todo: actually we only need to do this reduction step mod p^2, not # mod p^M, which is what the code currently does. If the base ring # is Integers(p^M), then it's easy. Otherwise it's tricky to construct # the right ring, I don't know how to do it. F1_coeffs = transpose_list(F1.coeffs()) F1_modp_coeffs = F1_coeffs[int((M-2)*p):] # make a copy, because reduce_all will destroy the coefficients: F1_modp_coeffs = [[cell for cell in row] for row in F1_modp_coeffs] F1_modp_offset = offset - (M-2)*p F1_modp_reduced = reduce_all(Q, p, F1_modp_coeffs, F1_modp_offset) if F1_modp_reduced[0].is_unit(): # If the first entry is invertible mod p, then F(x dx/y) is sufficient # to get the whole matrix. F1_reduced = reduce_all(Q, p, F1_coeffs, offset) F0_reduced = [ base_ring(trace) - F1_reduced[1], None ] # using that the determinant is p: F0_reduced[1] = (F0_reduced[0] * F1_reduced[1] - base_ring(p)) \ / F1_reduced[0] else: # If the first entry is zero mod p, then F((x+1) dx/y) will be sufficient # to get the whole matrix. (Here we are using the fact that the second # entry *cannot* be zero mod p. This is guaranteed by some results in # section 3.2 of ``Computation of p-adic Heights and Log Convergence'' # by Mazur, Stein, Tate. But let's quickly check it anyway :-)) assert F1_modp_reduced[1].is_unit(), \ "Hey that's impossible! The second entry in the second column " \ "should be invertible mod p!" G0_coeffs = transpose_list( (F0 + F1).coeffs()) G0_reduced = reduce_all(Q, p, G0_coeffs, offset) # Now G0_reduced expresses F((x+1) dx/y) in terms of dx/y and x dx/y. # Re-express this in terms of (x+1) dx/y and x dx/y. H0_reduced = [ G0_reduced[0], G0_reduced[1] - G0_reduced[0] ] # The thing we're about to divide by better be a unit. assert H0_reduced[1].is_unit(), \ "Hey that's impossible! The second entry in this column " \ "should be invertible mod p!" # Figure out the second column using the trace... H1_reduced = [ None, base_ring(trace) - H0_reduced[0] ] # ... and using that the determinant is p: H1_reduced[0] = (H0_reduced[0] * H1_reduced[1] - base_ring(p)) \ / H0_reduced[1] # Finally, change back to the usual basis (dx/y, x dx/y) F1_reduced = [ H1_reduced[0], \ H1_reduced[0] + H1_reduced[1] ] F0_reduced = [ H0_reduced[0] - F1_reduced[0], H0_reduced[0] + H0_reduced[1] - F1_reduced[1] ] # One more sanity check: our final result should be congruent mod p # to the approximation we used earlier. assert not ( (F1_reduced[0] - F1_modp_reduced[0]).is_unit() or \ (F1_reduced[1] - F1_modp_reduced[1]).is_unit() or \ F0_reduced[0].is_unit() or F0_reduced[1].is_unit()), \ "Hey that's impossible! The output matrix is not congruent mod p " \ "to the approximation found earlier!" if compute_exact_forms: return matrix(base_ring, 2, 2, [F0_reduced[0], F1_reduced[0], F0_reduced[1], F1_reduced[1]]), f_0, f_1 else: return matrix(base_ring, 2, 2, [F0_reduced[0], F1_reduced[0], F0_reduced[1], F1_reduced[1]])
|
0fd52443e0b365bd518484fa3a3d7778b9ea59ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0fd52443e0b365bd518484fa3a3d7778b9ea59ac/monsky_washnitzer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
19425,
8384,
603,
490,
7008,
18465,
17,
59,
961,
82,
305,
24355,
1825,
17125,
4676,
16,
598,
8762,
358,
326,
10853,
27488,
13437,
19,
93,
16,
619,
6633,
19,
93,
21877,
18,
225,
12943,
30,
2238,
1493,
31247,
16991,
271,
53,
12,
92,
13,
273,
619,
66,
23,
397,
1740,
397,
324,
8,
9364,
392,
415,
549,
21507,
8882,
512,
635,
271,
93,
66,
22,
273,
2238,
12,
92,
21877,
18,
1021,
16554,
9221,
434,
2238,
1410,
506,
279,
271,
64,
62,
19,
12,
84,
66,
49,
5153,
62,
8,
17,
287,
29087,
316,
1492,
326,
3148,
434,
284,
303,
19425,
8384,
903,
506,
15688,
18,
293,
1493,
17014,
1545,
1381,
364,
1492,
512,
711,
7494,
20176,
490,
1493,
3571,
1545,
576,
31,
271,
84,
8,
17,
20333,
6039,
434,
326,
16554,
9221,
2606,
1493,
261,
10444,
13,
326,
2606,
434,
326,
3148,
16,
309,
4846,
316,
8312,
18,
1220,
353,
12779,
358,
3671,
2724,
518,
1807,
2537,
326,
271,
69,
67,
84,
8,
434,
326,
8882,
18,
971,
326,
2606,
353,
4580,
16,
3148,
67,
792,
67,
74,
303,
19425,
8384,
903,
999,
518,
358,
8632,
326,
16039,
261,
77,
18,
73,
18,
732,
5055,
326,
6328,
970,
353,
271,
84,
8,
16,
1427,
732,
1240,
2795,
4636,
16,
1427,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
19425,
8384,
603,
490,
7008,
18465,
17,
59,
961,
82,
305,
24355,
1825,
17125,
4676,
16,
598,
8762,
358,
326,
10853,
27488,
13437,
19,
93,
16,
619,
6633,
19,
93,
21877,
18,
225,
12943,
30,
2238,
1493,
31247,
16991,
271,
53,
12,
92,
13,
273,
619,
66,
23,
397,
1740,
397,
324,
8,
9364,
392,
415,
549,
21507,
8882,
512,
635,
271,
93,
66,
22,
273,
2238,
12,
92,
21877,
18,
1021,
16554,
9221,
434,
2238,
1410,
506,
279,
271,
64,
62,
19,
2
] |
self._list_counter = 0
|
self.list_counter.append(0)
|
def visit_enumerated_list(self, node): self._list_counter = 0
|
e20b3a3adf8de70986f2805e2d77e2bc11ff74aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/e20b3a3adf8de70986f2805e2d77e2bc11ff74aa/text.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
7924,
19007,
67,
1098,
12,
2890,
16,
756,
4672,
365,
6315,
1098,
67,
7476,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
7924,
19007,
67,
1098,
12,
2890,
16,
756,
4672,
365,
6315,
1098,
67,
7476,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
E.g., search for gtk, it says C, 541."""
|
E.g., search for gtk, it says C (541)."""
|
def test_facets_filter_results(self): facets = {u'language': u'Python'}
|
1432f68d22f42bdd915a14610d3e5545ab581f4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/1432f68d22f42bdd915a14610d3e5545ab581f4e/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11639,
2413,
67,
2188,
67,
4717,
12,
2890,
4672,
21681,
273,
288,
89,
11,
4923,
4278,
582,
11,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11639,
2413,
67,
2188,
67,
4717,
12,
2890,
4672,
21681,
273,
288,
89,
11,
4923,
4278,
582,
11,
15774,
11,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 output and result != output:
|
if overflowrequired:
|
def testformat(formatstr, args, output=None): if verbose: if output: print "%s %% %s =? %s ..." %\ (repr(formatstr), repr(args), repr(output)), else: print "%s %% %s works? ..." % (repr(formatstr), repr(args)), try: result = formatstr % args except OverflowError: if not overflowok: raise if verbose: print 'overflow (this is fine)' else: if output and result != output: if verbose: print 'no' print "%s %% %s == %s != %s" %\ (repr(formatstr), repr(args), repr(result), repr(output)) else: if verbose: print 'yes'
|
7c3b50db6614c677588096191d432e734257a244 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/7c3b50db6614c677588096191d432e734257a244/test_format.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2139,
12,
2139,
701,
16,
833,
16,
876,
33,
7036,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
738,
87,
18483,
738,
64,
261,
12715,
12,
2139,
701,
3631,
8480,
12,
1968,
3631,
8480,
12,
2844,
13,
3631,
469,
30,
1172,
2213,
87,
26510,
738,
87,
6330,
35,
18483,
738,
261,
12715,
12,
2139,
701,
3631,
8480,
12,
1968,
13,
3631,
775,
30,
563,
273,
740,
701,
738,
833,
1335,
10752,
2426,
668,
30,
309,
486,
9391,
601,
30,
1002,
309,
3988,
30,
1172,
296,
11512,
261,
2211,
353,
11079,
2506,
469,
30,
309,
9391,
4718,
30,
309,
3988,
30,
1172,
296,
2135,
11,
1172,
2213,
87,
26510,
738,
87,
422,
738,
87,
480,
738,
87,
6,
738,
64,
261,
12715,
12,
2139,
701,
3631,
8480,
12,
1968,
3631,
8480,
12,
2088,
3631,
8480,
12,
2844,
3719,
469,
30,
309,
3988,
30,
1172,
296,
9707,
11,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2139,
12,
2139,
701,
16,
833,
16,
876,
33,
7036,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
738,
87,
18483,
738,
64,
261,
12715,
12,
2139,
701,
3631,
8480,
12,
1968,
3631,
8480,
12,
2844,
13,
3631,
469,
30,
1172,
2213,
87,
26510,
738,
87,
6330,
35,
18483,
738,
261,
12715,
12,
2139,
701,
3631,
8480,
12,
1968,
13,
3631,
775,
30,
563,
273,
740,
701,
738,
833,
1335,
10752,
2426,
668,
30,
309,
486,
9391,
601,
30,
1002,
309,
3988,
30,
1172,
296,
11512,
261,
2211,
353,
11079,
2506,
469,
30,
309,
9391,
4718,
30,
309,
3988,
30,
1172,
296,
2135,
11,
1172,
2213,
87,
26510,
738,
87,
2
] |
lambda: self.assert_(self.__state2CallbackCalled),
|
lambda: self.assert_(self.__state1StopCallbackCalled), lambda: self.assert_(self.__state2StartCallbackCalled), lambda: self.assert_(self.__stop1Start2CallbackOrder),
|
def makeAnim(): self.anim = avg.StateAnim( [avg.AnimState("STATE1", avg.LinearAnim(self.__node, "x", 200, 0, 100, False, None, state2Callback), "STATE2"), avg.AnimState("STATE2", avg.LinearAnim(self.__node, "x", 200, 100, 50), "STATE3"), avg.AnimState("STATE3", avg.WaitAnim()) ])
|
fd1410873dfe202309a7dead459b7635945cef62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/fd1410873dfe202309a7dead459b7635945cef62/AnimTest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
20892,
13332,
365,
18,
304,
381,
273,
11152,
18,
1119,
20892,
12,
306,
14141,
18,
20892,
1119,
2932,
7998,
21,
3113,
11152,
18,
15982,
20892,
12,
2890,
16186,
2159,
16,
315,
92,
3113,
4044,
16,
374,
16,
2130,
16,
1083,
16,
599,
16,
919,
22,
2428,
3631,
315,
7998,
22,
6,
3631,
11152,
18,
20892,
1119,
2932,
7998,
22,
3113,
11152,
18,
15982,
20892,
12,
2890,
16186,
2159,
16,
315,
92,
3113,
4044,
16,
2130,
16,
6437,
3631,
315,
7998,
23,
6,
3631,
11152,
18,
20892,
1119,
2932,
7998,
23,
3113,
11152,
18,
5480,
20892,
10756,
308,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
20892,
13332,
365,
18,
304,
381,
273,
11152,
18,
1119,
20892,
12,
306,
14141,
18,
20892,
1119,
2932,
7998,
21,
3113,
11152,
18,
15982,
20892,
12,
2890,
16186,
2159,
16,
315,
92,
3113,
4044,
16,
374,
16,
2130,
16,
1083,
16,
599,
16,
919,
22,
2428,
3631,
315,
7998,
22,
6,
3631,
11152,
18,
20892,
1119,
2932,
7998,
22,
3113,
11152,
18,
15982,
20892,
12,
2890,
16186,
2159,
16,
315,
92,
3113,
4044,
16,
2130,
16,
6437,
3631,
315,
7998,
23,
6,
3631,
11152,
18,
20892,
1119,
2932,
7998,
23,
3113,
11152,
18,
5480,
20892,
10756,
308,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(e[0], e[2], str(error))
|
(e[0], e[2], str(result))
|
def strftest(now): if verbose: print "strftime test for", time.ctime(now) nowsecs = int(now) gmt = time.gmtime(now) now = time.localtime(now) if now[3] < 12: ampm='AM' else: ampm='PM' jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6)) if now[8]: tz = time.tzname[1] else: tz = time.tzname[0] if now[3] > 12: clock12 = now[3] - 12 elif now[3] > 0: clock12 = now[3] else: clock12 = 12 expectations = ( ('%A', calendar.day_name[now[6]], 'full weekday name'), ('%a', calendar.day_abbr[now[6]], 'abbreviated weekday name'), ('%B', calendar.month_name[now[1]], 'full month name'), ('%b', calendar.month_abbr[now[1]], 'abbreviated month name'), ('%h', calendar.month_abbr[now[1]], 'abbreviated month name'), ('%c', fixasctime(time.asctime(now)), 'near-asctime() format'), ('%D', '%02d/%02d/%02d' % (now[1], now[2], (now[0]%100)), 'mm/dd/yy'), ('%d', '%02d' % now[2], 'day of month as number (00-31)'), ('%e', '%2d' % now[2], 'day of month as number, blank padded ( 0-31)'), ('%H', '%02d' % now[3], 'hour (00-23)'), ('%I', '%02d' % clock12, 'hour (01-12)'), ('%j', '%03d' % now[7], 'julian day (001-366)'), ('%M', '%02d' % now[4], 'minute, (00-59)'), ('%m', '%02d' % now[1], 'month as number (01-12)'), ('%p', ampm, 'AM or PM as appropriate'), ('%R', '%02d:%02d' % (now[3], now[4]), '%H:%M'), ('%r', '%02d:%02d:%02d %s' % (clock12, now[4], now[5], ampm), '%I:%M:%S %p'), ('%S', '%02d' % now[5], 'seconds of current time (00-60)'), ('%T', '%02d:%02d:%02d' % (now[3], now[4], now[5]), '%H:%M:%S'), ('%X', '%02d:%02d:%02d' % (now[3], now[4], now[5]), '%H:%M:%S'), ('%U', '%02d' % ((now[7] + jan1[6])/7), 'week number of the year (Sun 1st)'), ('%W', '%02d' % ((now[7] + (jan1[6] - 1)%7)/7), 'week number of the year (Mon 1st)'), ('%w', '%d' % ((1+now[6]) % 7), 'weekday as a number (Sun 1st)'), ('%x', '%02d/%02d/%02d' % (now[1], now[2], (now[0]%100)), '%m/%d/%y %H:%M:%S'), ('%Y', '%d' % now[0], 'year with century'), ('%y', '%02d' % (now[0]%100), 'year without century'), ('%Z', tz, 'time zone name'), ('%%', '%', 'single percent sign'), ) nonstandard_expectations = ( ('%C', '%02d' % (now[0]/100), 'century'), # This is for IRIX; on Solaris, %C yields date(1) format. # Tough. ('%k', '%2d' % now[3], 'hour, blank padded ( 0-23)'), ('%s', '%d' % nowsecs, 'seconds since the Epoch in UCT'), ('%3y', '%03d' % (now[0]%100), 'year without century rendered using fieldwidth'), ('%n', '\n', 'newline character'), ('%t', '\t', 'tab character'), ) if verbose: print "Strftime test, platform: %s, Python version: %s" % \ (sys.platform, string.split(sys.version)[0]) for e in expectations: try: result = time.strftime(e[0], now) except ValueError, error: print "Standard '%s' format gave error:" % e[0], error continue if result == e[1]: continue if result[0] == '%': print "Does not support standard '%s' format (%s)" % (e[0], e[2]) else: print "Conflict for %s (%s):" % (e[0], e[2]) print " Expected %s, but got %s" % (e[1], result) for e in nonstandard_expectations: try: result = time.strftime(e[0], now) except ValueError, result: if verbose: print "Error for nonstandard '%s' format (%s): %s" % \ (e[0], e[2], str(error)) continue if result == e[1]: if verbose: print "Supports nonstandard '%s' format (%s)" % (e[0], e[2]) elif result[0] == '%': if verbose: print "Does not appear to support '%s' format (%s)" % (e[0], e[2]) else: if verbose: print "Conflict for nonstandard '%s' format (%s):" % (e[0], e[2]) print " Expected %s, but got %s" % (e[1], result)
|
4dfd458611b706055deccb024f8bf9f27a9e97d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4dfd458611b706055deccb024f8bf9f27a9e97d6/test_strftime.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
1222,
395,
12,
3338,
4672,
309,
3988,
30,
1172,
315,
701,
9982,
1842,
364,
3113,
813,
18,
21261,
12,
3338,
13,
2037,
21317,
273,
509,
12,
3338,
13,
314,
1010,
273,
813,
18,
75,
10838,
12,
3338,
13,
2037,
273,
813,
18,
3729,
957,
12,
3338,
13,
225,
309,
2037,
63,
23,
65,
411,
2593,
30,
16946,
81,
2218,
2192,
11,
469,
30,
16946,
81,
2218,
12728,
11,
225,
525,
304,
21,
273,
813,
18,
3729,
957,
12,
957,
18,
24816,
957,
12443,
3338,
63,
20,
6487,
404,
16,
404,
13,
397,
261,
20,
16,
17653,
26,
3719,
225,
309,
2037,
63,
28,
14542,
6016,
273,
813,
18,
12994,
529,
63,
21,
65,
469,
30,
6016,
273,
813,
18,
12994,
529,
63,
20,
65,
225,
309,
2037,
63,
23,
65,
405,
2593,
30,
7268,
2138,
273,
2037,
63,
23,
65,
300,
2593,
1327,
2037,
63,
23,
65,
405,
374,
30,
7268,
2138,
273,
2037,
63,
23,
65,
469,
30,
7268,
2138,
273,
2593,
225,
26305,
273,
261,
7707,
9,
37,
2187,
5686,
18,
2881,
67,
529,
63,
3338,
63,
26,
65,
6487,
296,
2854,
7560,
508,
19899,
7707,
9,
69,
2187,
5686,
18,
2881,
67,
30754,
63,
3338,
63,
26,
65,
6487,
296,
378,
9854,
7560,
508,
19899,
7707,
9,
38,
2187,
5686,
18,
7496,
67,
529,
63,
3338,
63,
21,
65,
6487,
296,
2854,
3138,
508,
19899,
7707,
9,
70,
2187,
5686,
18,
7496,
67,
30754,
63,
3338,
63,
21,
65,
6487,
296,
378,
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,
609,
1222,
395,
12,
3338,
4672,
309,
3988,
30,
1172,
315,
701,
9982,
1842,
364,
3113,
813,
18,
21261,
12,
3338,
13,
2037,
21317,
273,
509,
12,
3338,
13,
314,
1010,
273,
813,
18,
75,
10838,
12,
3338,
13,
2037,
273,
813,
18,
3729,
957,
12,
3338,
13,
225,
309,
2037,
63,
23,
65,
411,
2593,
30,
16946,
81,
2218,
2192,
11,
469,
30,
16946,
81,
2218,
12728,
11,
225,
525,
304,
21,
273,
813,
18,
3729,
957,
12,
957,
18,
24816,
957,
12443,
3338,
63,
20,
6487,
404,
16,
404,
13,
397,
261,
20,
16,
17653,
26,
3719,
225,
309,
2037,
63,
28,
14542,
6016,
273,
813,
18,
12994,
529,
63,
21,
65,
469,
30,
6016,
273,
2
] |
if not line.startswith('+++ '): return None words = line.split(None, 2) if len(words[1]) < len(filename): filename = words[1] groups = [] output.append({'filename' : filename, 'oldrev' : fromrev, 'newrev' : 'new', 'diff' : groups}) for line in lines: r = re.match(r'@@ -(\d+),(\d+) \+(\d+),(\d+) @@', line) if not r: break blocks = [] groups.append(blocks) fromline,fromend,toline,toend = map(int, r.groups()) last_type = None fromend += fromline toend += toline while fromline < fromend or toline < toend:
|
while True: if not line.startswith('--- '):
|
def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * ' ' + mod * ' '
|
c3f3250176a1bf58fcba199c885986b4ab85819c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/c3f3250176a1bf58fcba199c885986b4ab85819c/patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(-0.440242867236, -0.567868371314, -0.695493875393)
|
(...0.440242867..., ...0.567868371..., ...0.695493875...)
|
def __call__(self, x, coerce=True, copy=True, check=True): r""" Create an element of this free module from x.
|
bbbbc10a89ee8b11acc8a239dfce4771061bb6f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
436,
8395,
1788,
392,
930,
434,
333,
4843,
1605,
628,
619,
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
] |
print >>log, "%s[%d:%d] - %s, %s" % (path, line, column, public, system) print_exception(type, value, traceback, file=open("error.log", "wt"))
|
if column is None: print >>log, "%s[%d] - %s, %s" % (path, line, public, system) else: print >>log, "%s[%d:%d] - %s, %s" % (path, line, column, public, system) print_exception(type_, value, traceback, file=open("error.log", "wt"))
|
def loadPath(self, path, id): if not os.path.exists(path): path = path + '.xml' if not os.path.exists(path): path = path + '.gz' if not os.path.exists(path): raise IOError, "Unable to find data for %s" % id if self._cache and not self._cache.isNewer(path): obj = self._cache.getObject(id) if obj is not None: return obj if path.endswith('.gz'): if GzipFile is None: raise IOError, "Unable to open '%s', since zlib appears to be missing or improperly installed (%s)." % (path, GzipError) f = GzipFile(path, "rb") else: f = open(path, "rt") data = f.read() fh = FileHandler(id=id) ceh = CompilerErrorHandler(path, id) try: xml.sax.parseString(data, fh, ceh) except RuntimeError: raise except StandardError, e: locator = fh._locator column = locator.getColumnNumber() line = locator.getLineNumber() public = locator.getPublicId() system = locator.getSystemId() print "In source file \"%s\" [line %d, col %d]" % (path, line, column), if public is not None or system is not None: print " - %s, %s" % (public, system) print print "Exception:", e type, value, traceback = sys.exc_info() log = open("error.log", "wt") if log is not None: print >>log, "%s[%d:%d] - %s, %s" % (path, line, column, public, system) print_exception(type, value, traceback, file=open("error.log", "wt")) print "Exception traceback saved to error.log" else: raise sys.exit(1) self.addReferences(id, self._paths, fh._paths) self.addReferences(id, self._externals, fh._externals) return fh.getElement()
|
6e5a4f2b64c4209f9416439d852eeefd954c7125 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14747/6e5a4f2b64c4209f9416439d852eeefd954c7125/Parse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
743,
12,
2890,
16,
589,
16,
612,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
589,
273,
589,
397,
2418,
2902,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
589,
273,
589,
397,
2418,
9764,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1002,
8340,
16,
315,
3370,
358,
1104,
501,
364,
738,
87,
6,
738,
612,
309,
365,
6315,
2493,
471,
486,
365,
6315,
2493,
18,
291,
1908,
264,
12,
803,
4672,
1081,
273,
365,
6315,
2493,
18,
588,
921,
12,
350,
13,
309,
1081,
353,
486,
599,
30,
327,
1081,
309,
589,
18,
5839,
1918,
2668,
18,
9764,
11,
4672,
309,
31712,
812,
353,
599,
30,
1002,
8340,
16,
315,
3370,
358,
1696,
1995,
87,
2187,
3241,
24220,
14606,
358,
506,
3315,
578,
13069,
457,
715,
5876,
6142,
87,
14944,
738,
261,
803,
16,
31712,
668,
13,
284,
273,
31712,
812,
12,
803,
16,
315,
6731,
7923,
469,
30,
284,
273,
1696,
12,
803,
16,
315,
3797,
7923,
501,
273,
284,
18,
896,
1435,
7625,
273,
1387,
1503,
12,
350,
33,
350,
13,
5898,
76,
273,
12972,
17729,
12,
803,
16,
612,
13,
775,
30,
2025,
18,
87,
651,
18,
2670,
780,
12,
892,
16,
7625,
16,
5898,
76,
13,
1335,
7265,
30,
1002,
1335,
31160,
16,
425,
30,
8871,
273,
7625,
6315,
20048,
1057,
273,
8871,
18,
588,
1494,
1854,
1435,
980,
273,
8871,
18,
588,
31063,
1435,
1071,
273,
8871,
18,
588,
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,
743,
12,
2890,
16,
589,
16,
612,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
589,
273,
589,
397,
2418,
2902,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
589,
273,
589,
397,
2418,
9764,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1002,
8340,
16,
315,
3370,
358,
1104,
501,
364,
738,
87,
6,
738,
612,
309,
365,
6315,
2493,
471,
486,
365,
6315,
2493,
18,
291,
1908,
264,
12,
803,
4672,
1081,
273,
365,
6315,
2493,
18,
588,
921,
12,
350,
13,
309,
1081,
353,
486,
599,
30,
327,
1081,
309,
589,
18,
5839,
1918,
2668,
18,
9764,
11,
4672,
309,
31712,
812,
353,
599,
30,
2
] |
subDir = os.sep+os.path.relpath(self.directory, orngEnviron.widgetDir) if "relpath" in os.path.__dict__ else self.directory.replace(orngEnviron.widgetDir, "") return os.path.join(orngEnviron.orangeDocDir, "catalog%s" % subDir)
|
dir, widgetDir = os.path.realpath(self.directory), os.path.realpath(orngEnviron.widgetDir) subDir = os.path.relpath(dir, widgetDir) if "relpath" in os.path.__dict__ else dir.replace(widgetDir, "") return os.path.join(orngEnviron.orangeDocDir, "catalog", subDir)
|
def docDir(self): if not self.addOn: # A built-in widget subDir = os.sep+os.path.relpath(self.directory, orngEnviron.widgetDir) if "relpath" in os.path.__dict__ else self.directory.replace(orngEnviron.widgetDir, "") return os.path.join(orngEnviron.orangeDocDir, "catalog%s" % subDir) else: # An add-on widget addOnDocDir = self.addOn.directoryDocumentation() return os.path.join(addOnDocDir, "widgets")
|
c941b286e0e8cc220023cee6643c6edd31247126 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/c941b286e0e8cc220023cee6643c6edd31247126/orngRegistry.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1621,
12,
2890,
4672,
309,
486,
365,
18,
1289,
1398,
30,
225,
468,
432,
6650,
17,
267,
3604,
1577,
16,
3604,
1621,
273,
1140,
18,
803,
18,
7688,
803,
12,
2890,
18,
5149,
3631,
1140,
18,
803,
18,
7688,
803,
12,
280,
3368,
28248,
18,
6587,
1621,
13,
720,
1621,
273,
1140,
18,
803,
18,
2878,
803,
12,
1214,
16,
3604,
1621,
13,
309,
315,
2878,
803,
6,
316,
1140,
18,
803,
16186,
1576,
972,
469,
1577,
18,
2079,
12,
6587,
1621,
16,
1408,
13,
327,
1140,
18,
803,
18,
5701,
12,
280,
3368,
28248,
18,
280,
726,
1759,
1621,
16,
315,
7199,
3113,
720,
1621,
13,
469,
30,
225,
468,
1922,
527,
17,
265,
3604,
19365,
1759,
1621,
273,
365,
18,
1289,
1398,
18,
5149,
18905,
1435,
327,
1140,
18,
803,
18,
5701,
12,
1289,
1398,
1759,
1621,
16,
315,
18148,
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,
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
997,
1621,
12,
2890,
4672,
309,
486,
365,
18,
1289,
1398,
30,
225,
468,
432,
6650,
17,
267,
3604,
1577,
16,
3604,
1621,
273,
1140,
18,
803,
18,
7688,
803,
12,
2890,
18,
5149,
3631,
1140,
18,
803,
18,
7688,
803,
12,
280,
3368,
28248,
18,
6587,
1621,
13,
720,
1621,
273,
1140,
18,
803,
18,
2878,
803,
12,
1214,
16,
3604,
1621,
13,
309,
315,
2878,
803,
6,
316,
1140,
18,
803,
16186,
1576,
972,
469,
1577,
18,
2079,
12,
6587,
1621,
16,
1408,
13,
327,
1140,
18,
803,
18,
5701,
12,
280,
3368,
28248,
18,
280,
726,
1759,
1621,
16,
315,
7199,
3113,
720,
1621,
13,
469,
30,
225,
468,
1922,
527,
17,
265,
3604,
19365,
2
] |
sd = rp.conn.win32security.GetFileSecurity(rp.path, ACL.flags)
|
sd = rp.conn.win32security.GetNamedSecurityInfo(rp.path, SE_FILE_OBJECT, ACL.flags)
|
def clear_rp(self, rp): # not sure how to interpret this # I'll jus clear all acl-s from rp.path sd = rp.conn.win32security.GetFileSecurity(rp.path, ACL.flags)
|
586efa17c5816bc6e90ce3256339d13939c14c95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6202/586efa17c5816bc6e90ce3256339d13939c14c95/win_acls.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
13832,
12,
2890,
16,
8715,
4672,
468,
486,
3071,
3661,
358,
10634,
333,
468,
467,
5614,
525,
407,
2424,
777,
7895,
17,
87,
628,
8715,
18,
803,
8349,
273,
8715,
18,
4646,
18,
8082,
1578,
7462,
18,
967,
812,
4368,
12,
13832,
18,
803,
16,
10098,
18,
7133,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
13832,
12,
2890,
16,
8715,
4672,
468,
486,
3071,
3661,
358,
10634,
333,
468,
467,
5614,
525,
407,
2424,
777,
7895,
17,
87,
628,
8715,
18,
803,
8349,
273,
8715,
18,
4646,
18,
8082,
1578,
7462,
18,
967,
812,
4368,
12,
13832,
18,
803,
16,
10098,
18,
7133,
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
] |
result = self.__class__([])
|
result = self.__class__()
|
def __deepcopy__(self, memo): """Return a deep copy of a set; used by copy module.""" # This pre-creates the result and inserts it in the memo # early, in case the deep copy recurses into another reference # to this same set. A set can't be an element of itself, but # it can certainly contain an object that has a reference to # itself. from copy import deepcopy result = self.__class__([]) memo[id(self)] = result data = result._data value = True for elt in self: data[deepcopy(elt, memo)] = value return result
|
18952fe218a31e2eef50fe38038baad8fa07c355 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/18952fe218a31e2eef50fe38038baad8fa07c355/sets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16589,
3530,
972,
12,
2890,
16,
11063,
4672,
3536,
990,
279,
4608,
1610,
434,
279,
444,
31,
1399,
635,
1610,
1605,
12123,
468,
1220,
675,
17,
19787,
326,
563,
471,
15607,
518,
316,
326,
11063,
468,
11646,
16,
316,
648,
326,
4608,
1610,
8112,
2420,
1368,
4042,
2114,
468,
358,
333,
1967,
444,
18,
225,
432,
444,
848,
1404,
506,
392,
930,
434,
6174,
16,
1496,
468,
518,
848,
8626,
715,
912,
392,
733,
716,
711,
279,
2114,
358,
468,
6174,
18,
628,
1610,
1930,
7217,
563,
273,
365,
16186,
1106,
972,
1435,
11063,
63,
350,
12,
2890,
25887,
273,
563,
501,
273,
563,
6315,
892,
460,
273,
1053,
364,
11572,
316,
365,
30,
501,
63,
16589,
3530,
12,
20224,
16,
11063,
25887,
273,
460,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16589,
3530,
972,
12,
2890,
16,
11063,
4672,
3536,
990,
279,
4608,
1610,
434,
279,
444,
31,
1399,
635,
1610,
1605,
12123,
468,
1220,
675,
17,
19787,
326,
563,
471,
15607,
518,
316,
326,
11063,
468,
11646,
16,
316,
648,
326,
4608,
1610,
8112,
2420,
1368,
4042,
2114,
468,
358,
333,
1967,
444,
18,
225,
432,
444,
848,
1404,
506,
392,
930,
434,
6174,
16,
1496,
468,
518,
848,
8626,
715,
912,
392,
733,
716,
711,
279,
2114,
358,
468,
6174,
18,
628,
1610,
1930,
7217,
563,
273,
365,
16186,
1106,
972,
1435,
11063,
63,
350,
12,
2890,
25887,
273,
563,
501,
273,
563,
6315,
892,
460,
273,
1053,
364,
11572,
316,
365,
30,
501,
63,
16589,
2
] |
while (i<len(messages)): oldmessages.append(messages[i]) if (messages[i]<=lastinquiry): del messages[i] else:
|
while (i<len(curr_msgs)): filename=userdir+"received/voice-"+str(curr_msgs[i])+".la" descr=cs_helpers.readConfig(filename[:-2]+"txt") capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"nachricht.la"),1) cs_helpers.sayNumber(call,str(i+1),curr_user,config) if (descr.get('GLOBAL','call_from')!="??"): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"von.la"),1) cs_helpers.sayNumber(call,descr.get('GLOBAL','call_from'),curr_user,config) if (descr.get('GLOBAL','call_to')!="??"): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"fuer.la"),1) cs_helpers.sayNumber(call,descr.get('GLOBAL','call_to'),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"am.la"),1) calltime=time.strptime(descr.get('GLOBAL','time')) cs_helpers.sayNumber(call,str(calltime[2]),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"..la"),1) cs_helpers.sayNumber(call,str(calltime[1]),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"..la"),1) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"um.la"),1) cs_helpers.sayNumber(call,str(calltime[3]),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"uhr.la"),1) cs_helpers.sayNumber(call,str(calltime[4]),curr_user,config) capisuite.audio_send(call,filename,1) cmd="" while (cmd not in ("1","4","5","6")): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"erklaerung.la"),1) cmd=capisuite.read_DTMF(call,0,1) if (cmd=="1"): os.remove(filename) os.remove(filename[:-2]+"txt") del curr_msgs[i] capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"nachricht-gelscht.la")) elif (cmd=="4"): if (curr_msgs[i]>lastinquiry): lastinquiry=curr_msgs[i] lastfile=open(userdir+"received/last_inquiry","w") lastfile.write(str(curr_msgs[i])+"\n") lastfile.close()
|
def remoteInquiry(call,userdir,curr_user,config): import time,fcntl,errno,os # acquire lock lockfile=open(userdir+"received/inquiry_lock","w") try: try: # read directory contents fcntl.lockf(lockfile,fcntl.LOCK_EX | fcntl.LOCK_NB) # only one inquiry at a time! messages=os.listdir(userdir+"received/") messages=filter (lambda s: re.match("voice-.*\.la",s),messages) # only use voice-* files messages=map(lambda s: int(re.match("voice-([0-9]+)\.la",s).group(1)),messages) # filter out numbers messages.sort() # read the number of the message heard last at the last inquiry lastinquiry=-1 if (os.access(userdir+"received/last_inquiry",os.W_OK)): lastfile=open(userdir+"received/last_inquiry","r") lastinquiry=int(lastfile.readline()) lastfile.close() # sort out old messages oldmessages=[] i=0 while (i<len(messages)): oldmessages.append(messages[i]) if (messages[i]<=lastinquiry): del messages[i] else: i+=1 cs_helpers.sayNumber(call,str(len(messages)),curr_user,config) if (len(messages)==1): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"neue-nachricht.la"),1) else: capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"neue-nachrichten.la"),1) # menu for record new announcement cmd="" while (cmd not in ("1","9")): if (len(oldmessages)): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"zum-abhoeren-1.la"),1) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"fuer-neue-ansage-9.la"),1) cmd=capisuite.read_DTMF(call,0,1) if (cmd=="9"): newAnnouncement(call,userdir,curr_user,config) return # start inquiry for curr_msgs in (messages,oldmessages): cs_helpers.sayNumber(call,str(len(curr_msgs)),curr_user,config) if (curr_msgs==messages): if (len(curr_msgs)==1): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"neue-nachricht.la"),1) else: capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"neue-nachrichten.la"),1) else: if (len(curr_msgs)==1): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"nachricht.la"),1) else: capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"nachrichten.la"),1) i=0 while (i<len(curr_msgs)): filename=userdir+"received/voice-"+str(curr_msgs[i])+".la" descr=cs_helpers.readConfig(filename[:-2]+"txt") capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"nachricht.la"),1) cs_helpers.sayNumber(call,str(i+1),curr_user,config) if (descr.get('GLOBAL','call_from')!="??"): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"von.la"),1) cs_helpers.sayNumber(call,descr.get('GLOBAL','call_from'),curr_user,config) if (descr.get('GLOBAL','call_to')!="??"): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"fuer.la"),1) cs_helpers.sayNumber(call,descr.get('GLOBAL','call_to'),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"am.la"),1) calltime=time.strptime(descr.get('GLOBAL','time')) cs_helpers.sayNumber(call,str(calltime[2]),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"..la"),1) cs_helpers.sayNumber(call,str(calltime[1]),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"..la"),1) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"um.la"),1) cs_helpers.sayNumber(call,str(calltime[3]),curr_user,config) capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"uhr.la"),1) cs_helpers.sayNumber(call,str(calltime[4]),curr_user,config) capisuite.audio_send(call,filename,1) cmd="" while (cmd not in ("1","4","5","6")): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"erklaerung.la"),1) cmd=capisuite.read_DTMF(call,0,1) if (cmd=="1"): os.remove(filename) os.remove(filename[:-2]+"txt") if (curr_msgs==messages): # if we are in new message mode... oldmessages.remove(curr_msgs[i]) # ... don't forget to delete it in both lists del curr_msgs[i] capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"nachricht-gelscht.la")) elif (cmd=="4"): if (curr_msgs[i]>lastinquiry): lastinquiry=curr_msgs[i] lastfile=open(userdir+"received/last_inquiry","w") lastfile.write(str(curr_msgs[i])+"\n") lastfile.close() i+=1 elif (cmd=="5"): i-=1 capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"keine-weiteren-nachrichten.la")) except IOError,err: if (err.errno in (errno.EACCES,errno.EAGAIN)): capisuite.audio_send(call,cs_helpers.getAudio(config,curr_user,"fernabfrage-aktiv.la")) finally: # unlock fcntl.lockf(lockfile,fcntl.LOCK_UN) lockfile.close() os.unlink(userdir+"received/inquiry_lock")
|
5c0e4bae34d0d813ee56a5af75e1c7037796ab19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3251/5c0e4bae34d0d813ee56a5af75e1c7037796ab19/incoming.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
382,
372,
6913,
12,
1991,
16,
1355,
1214,
16,
17016,
67,
1355,
16,
1425,
4672,
1930,
813,
16,
7142,
16681,
16,
19088,
16,
538,
468,
10533,
2176,
2176,
768,
33,
3190,
12,
1355,
1214,
9078,
15213,
19,
267,
372,
6913,
67,
739,
15937,
91,
7923,
775,
30,
775,
30,
468,
855,
1867,
2939,
30894,
18,
739,
74,
12,
739,
768,
16,
7142,
16681,
18,
6589,
67,
2294,
571,
30894,
18,
6589,
67,
20626,
13,
468,
1338,
1245,
316,
372,
6913,
622,
279,
813,
5,
225,
2743,
33,
538,
18,
1098,
1214,
12,
1355,
1214,
9078,
15213,
4898,
13,
2743,
33,
2188,
261,
14661,
272,
30,
283,
18,
1916,
2932,
25993,
17,
4509,
5834,
11821,
3113,
87,
3631,
6833,
13,
225,
468,
1338,
999,
15063,
17,
14,
1390,
2743,
33,
1458,
12,
14661,
272,
30,
509,
12,
266,
18,
1916,
2932,
25993,
17,
3816,
20,
17,
29,
16004,
18,
11821,
3113,
87,
2934,
1655,
12,
21,
13,
3631,
6833,
13,
468,
1034,
596,
5600,
2743,
18,
3804,
1435,
225,
468,
855,
326,
1300,
434,
326,
883,
3904,
1060,
1142,
622,
326,
1142,
316,
372,
6913,
1142,
267,
372,
6913,
29711,
21,
309,
261,
538,
18,
3860,
12,
1355,
1214,
9078,
15213,
19,
2722,
67,
267,
372,
6913,
3113,
538,
18,
59,
67,
3141,
3719,
30,
1142,
768,
33,
3190,
12,
1355,
1214,
9078,
15213,
19,
2722,
67,
267,
372,
6913,
15937,
86,
7923,
1142,
267,
372,
6913,
33,
474,
12,
2722,
768,
18,
896,
1369,
10756,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
382,
372,
6913,
12,
1991,
16,
1355,
1214,
16,
17016,
67,
1355,
16,
1425,
4672,
1930,
813,
16,
7142,
16681,
16,
19088,
16,
538,
468,
10533,
2176,
2176,
768,
33,
3190,
12,
1355,
1214,
9078,
15213,
19,
267,
372,
6913,
67,
739,
15937,
91,
7923,
775,
30,
775,
30,
468,
855,
1867,
2939,
30894,
18,
739,
74,
12,
739,
768,
16,
7142,
16681,
18,
6589,
67,
2294,
571,
30894,
18,
6589,
67,
20626,
13,
468,
1338,
1245,
316,
372,
6913,
622,
279,
813,
5,
225,
2743,
33,
538,
18,
1098,
1214,
12,
1355,
1214,
9078,
15213,
4898,
13,
2743,
33,
2188,
261,
14661,
272,
30,
283,
18,
1916,
2932,
25993,
17,
4509,
5834,
11821,
3113,
87,
3631,
2
] |
def shuffle (self, ics):
|
def shuffle (self, ics, time=None):
|
def shuffle (self, ics): """ Takes a set of initial conditions (ics) and returns a new dance sequence. """ shuffled = [] traj = self.ode (ics) step = len (traj) / len (self.mapping.keys ()) length = len (traj) * step
|
72dee765deb3d02b4936c70ec8fa6a3755e6533b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/72dee765deb3d02b4936c70ec8fa6a3755e6533b/Sequence.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12552,
261,
2890,
16,
277,
2143,
16,
813,
33,
7036,
4672,
3536,
23004,
279,
444,
434,
2172,
4636,
261,
2102,
13,
471,
1135,
279,
394,
302,
1359,
3102,
18,
3536,
699,
3809,
1259,
273,
5378,
1284,
78,
273,
365,
18,
390,
261,
2102,
13,
2235,
273,
562,
261,
30514,
13,
342,
562,
261,
2890,
18,
6770,
18,
2452,
1832,
13,
769,
273,
562,
261,
30514,
13,
380,
2235,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12552,
261,
2890,
16,
277,
2143,
16,
813,
33,
7036,
4672,
3536,
23004,
279,
444,
434,
2172,
4636,
261,
2102,
13,
471,
1135,
279,
394,
302,
1359,
3102,
18,
3536,
699,
3809,
1259,
273,
5378,
1284,
78,
273,
365,
18,
390,
261,
2102,
13,
2235,
273,
562,
261,
30514,
13,
342,
562,
261,
2890,
18,
6770,
18,
2452,
1832,
13,
769,
273,
562,
261,
30514,
13,
380,
2235,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
may also be a string, which will be converted to a Literal
|
may also be a string, which will be converted to a Literal; if numTerms is 3, opExpr is a tuple of two expressions, for the two operators separating the 3 terms
|
def operatorPrecedence( baseExpr, opList ): """Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. Parameters: - baseExpr - expression representing the most basic element for the nested - opList - list of tuples, one for each operator precedence level in the expression grammar; each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where: - opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal - numTerms is the number of terms for this operator (must be 1 or 2) - rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants opAssoc.RIGHT and opAssoc.LEFT. - parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted) """ ret = Forward() lastExpr = baseExpr | ( Suppress('(') + ret + Suppress(')') ) for i,operDef in enumerate(opList): opExpr,arity,rightLeftAssoc,pa = (operDef + (None,))[:4] thisExpr = Forward()#.setName("expr%d" % i) if rightLeftAssoc == opAssoc.LEFT: if arity == 1: matchExpr = Group( FollowedBy(lastExpr + opExpr) + lastExpr + OneOrMore( opExpr ) ) elif arity == 2: matchExpr = Group( FollowedBy(lastExpr + opExpr + lastExpr) + lastExpr + OneOrMore( opExpr + lastExpr ) ) else: raise ValueError, "operator must be unary (1) or binary (2)" elif rightLeftAssoc == opAssoc.RIGHT: if arity == 1: # try to avoid LR with this extra test if not isinstance(opExpr, Optional): opExpr = Optional(opExpr) matchExpr = FollowedBy(opExpr.expr + thisExpr) + Group( opExpr + thisExpr ) elif arity == 2: matchExpr = Group( FollowedBy(lastExpr + opExpr + thisExpr) + lastExpr + OneOrMore( opExpr + thisExpr ) ) else: raise ValueError, "operator must be unary (1) or binary (2)" else: raise ValueError, "operator must indicate right or left associativity" if pa: matchExpr.setParseAction( pa ) thisExpr << ( matchExpr | lastExpr ) lastExpr = thisExpr ret << lastExpr return ret
|
e11e354180d47d9e1233615eda3a3bb17da06d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3693/e11e354180d47d9e1233615eda3a3bb17da06d82/pyparsing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3726,
1386,
24092,
12,
1026,
4742,
16,
27571,
262,
30,
3536,
2276,
707,
364,
27389,
6473,
87,
434,
8041,
7165,
731,
434,
12213,
5960,
316,
279,
14172,
9360,
18,
225,
7692,
3062,
2026,
506,
19017,
578,
3112,
16,
2002,
17,
578,
2145,
17,
7836,
1535,
18,
225,
2884,
4209,
848,
2546,
506,
7495,
358,
3726,
8041,
18,
225,
7012,
30,
300,
1026,
4742,
300,
2652,
5123,
326,
4486,
5337,
930,
364,
326,
4764,
300,
27571,
300,
666,
434,
10384,
16,
1245,
364,
1517,
3726,
14172,
1801,
316,
326,
2652,
6473,
31,
1517,
3193,
353,
434,
326,
646,
261,
556,
4742,
16,
818,
11673,
16,
2145,
3910,
16974,
16,
1109,
1803,
3631,
1625,
30,
300,
1061,
4742,
353,
326,
18951,
297,
2470,
2652,
364,
326,
3726,
31,
2026,
2546,
506,
279,
533,
16,
1492,
903,
506,
5970,
358,
279,
14392,
31,
309,
818,
11673,
353,
890,
16,
1061,
4742,
353,
279,
3193,
434,
2795,
8041,
16,
364,
326,
2795,
12213,
5102,
1776,
326,
890,
6548,
300,
818,
11673,
353,
326,
1300,
434,
6548,
364,
333,
3726,
261,
11926,
506,
404,
578,
576,
13,
300,
2145,
3910,
16974,
353,
326,
10664,
2856,
326,
3726,
353,
2145,
578,
2002,
13983,
16,
1450,
326,
18951,
297,
2470,
17,
2178,
6810,
1061,
16974,
18,
11847,
471,
1061,
16974,
18,
10066,
18,
300,
1109,
1803,
353,
326,
1109,
1301,
358,
506,
3627,
598,
8041,
3607,
333,
3726,
2652,
261,
5787,
1109,
1301,
3193,
3140,
2026,
506,
16195,
13,
3536,
325,
273,
17206,
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,
3726,
1386,
24092,
12,
1026,
4742,
16,
27571,
262,
30,
3536,
2276,
707,
364,
27389,
6473,
87,
434,
8041,
7165,
731,
434,
12213,
5960,
316,
279,
14172,
9360,
18,
225,
7692,
3062,
2026,
506,
19017,
578,
3112,
16,
2002,
17,
578,
2145,
17,
7836,
1535,
18,
225,
2884,
4209,
848,
2546,
506,
7495,
358,
3726,
8041,
18,
225,
7012,
30,
300,
1026,
4742,
300,
2652,
5123,
326,
4486,
5337,
930,
364,
326,
4764,
300,
27571,
300,
666,
434,
10384,
16,
1245,
364,
1517,
3726,
14172,
1801,
316,
326,
2652,
6473,
31,
1517,
3193,
353,
434,
326,
646,
261,
556,
4742,
16,
818,
11673,
16,
2145,
3910,
16974,
16,
1109,
1803,
3631,
1625,
30,
300,
1061,
4742,
353,
326,
2
] |
"""Iterates over all Fragment objects. The iteration is performed in order according to the Fragment's position within the Segment object.
|
"""Iterates over all Fragment objects. The iteration is performed in order according to the Fragment's position within the Segment object.
|
def iter_fragments(self, frag_id_begin = None, frag_id_end = None): """Iterates over all Fragment objects. The iteration is performed in order according to the Fragment's position within the Segment object. """ return iter_fragments(iter(self.fragment_list), frag_id_begin, frag_id_end)
|
a181eacbeb3c68b8f7caba918a821d3f3e6c50f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/a181eacbeb3c68b8f7caba918a821d3f3e6c50f6/Structure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
29528,
12,
2890,
16,
10111,
67,
350,
67,
10086,
273,
599,
16,
10111,
67,
350,
67,
409,
273,
599,
4672,
3536,
22051,
1879,
777,
18009,
2184,
18,
1021,
6532,
353,
9591,
316,
1353,
4888,
358,
326,
18009,
1807,
1754,
3470,
326,
10807,
733,
18,
3536,
327,
1400,
67,
29528,
12,
2165,
12,
2890,
18,
11956,
67,
1098,
3631,
10111,
67,
350,
67,
10086,
16,
10111,
67,
350,
67,
409,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
29528,
12,
2890,
16,
10111,
67,
350,
67,
10086,
273,
599,
16,
10111,
67,
350,
67,
409,
273,
599,
4672,
3536,
22051,
1879,
777,
18009,
2184,
18,
1021,
6532,
353,
9591,
316,
1353,
4888,
358,
326,
18009,
1807,
1754,
3470,
326,
10807,
733,
18,
3536,
327,
1400,
67,
29528,
12,
2165,
12,
2890,
18,
11956,
67,
1098,
3631,
10111,
67,
350,
67,
10086,
16,
10111,
67,
350,
67,
409,
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
] |
... print("caught ValueError (%s)" % (v), end=' ')
|
... print("caught ValueError (%s)" % (v))
|
>>> def f():
|
944a38a57407e7641b7c63f5341e83cbe0da7480 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/944a38a57407e7641b7c63f5341e83cbe0da7480/test_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
keyval = 'goal' sysID = self.xmlU.generateSysID(keyval) recID = self.xmlU.generateRecID(keyval) goal = ET.SubElement(goals, "goal") goal.attrib["record_id"] = recID goal.attrib["system_id"] = sysID goal.attrib["date_added"] = datetime.now().isoformat() goal.attrib["date_updated"] = datetime.now().isoformat() return goal
|
keyval = 'goal' sysID = self.xmlU.generateSysID(keyval) recID = self.xmlU.generateRecID(keyval) goal = ET.SubElement(goals, "goal") goal.attrib["record_id"] = recID goal.attrib["system_id"] = sysID goal.attrib["date_added"] = datetime.now().isoformat() goal.attrib["date_updated"] = datetime.now().isoformat() return goal
|
def createGoal(self, goals):
|
47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3d5e993c3e/svcpointxml_406_writer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
27716,
12,
2890,
16,
1960,
1031,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
27716,
12,
2890,
16,
1960,
1031,
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
] |
if self.need_unicode: myquery = unicode(query, self.encoding) return cursor.execute(myquery) else: return cursor.execute(query)
|
if self.need_unicode and not isinstance(query, unicode): query = unicode(query, self.encoding) return cursor.execute(query)
|
def _executeRetry(self, conn, cursor, query): # When a server connection is lost and a query is attempted, most of # the time the query will raise a SERVER_LOST exception, then at the # second attempt to execute it, the mysql lib will reconnect and # succeed. However is a few cases, the first attempt raises the # SERVER_GONE exception, the second attempt the SERVER_LOST exception # and only the third succeeds. Thus the 3 in the loop count. # If it doesn't reconnect even after 3 attempts, while the database is # up and running, it is because a 5.0.3 (or newer) server is used # which no longer permits autoreconnects by default. In that case a # reconnect flag must be set when making the connection to indicate # that autoreconnecting is desired. In MySQLdb 1.2.2 or newer this is # done by calling ping(True) on the connection. for count in range(3): try: if self.need_unicode: # For MysqlDB 1.2.1 and later, we go # encoding->unicode->charset (in the mysql db) myquery = unicode(query, self.encoding) return cursor.execute(myquery) else: return cursor.execute(query) except MySQLdb.OperationalError, e: if e.args[0] in (MySQLdb.constants.CR.SERVER_GONE_ERROR, MySQLdb.constants.CR.SERVER_LOST): if count == 2: raise OperationalError(ErrorMessage(e)) if self.debug: self.printDebug(conn, str(e), 'ERROR') else: raise OperationalError(ErrorMessage(e)) except MySQLdb.IntegrityError, e: msg = ErrorMessage(e) if e.args[0] == MySQLdb.constants.ER.DUP_ENTRY: raise DuplicateEntryError(msg) else: raise IntegrityError(msg) except MySQLdb.InternalError, e: raise InternalError(ErrorMessage(e)) except MySQLdb.ProgrammingError, e: raise ProgrammingError(ErrorMessage(e)) except MySQLdb.DataError, e: raise DataError(ErrorMessage(e)) except MySQLdb.NotSupportedError, e: raise NotSupportedError(ErrorMessage(e)) except MySQLdb.DatabaseError, e: raise DatabaseError(ErrorMessage(e)) except MySQLdb.InterfaceError, e: raise InterfaceError(ErrorMessage(e)) except MySQLdb.Warning, e: raise Warning(ErrorMessage(e)) except MySQLdb.Error, e: raise Error(ErrorMessage(e))
|
bc0b9c1b826e33157dff7807d23de088065c6333 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8798/bc0b9c1b826e33157dff7807d23de088065c6333/mysqlconnection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
7539,
12,
2890,
16,
1487,
16,
3347,
16,
843,
4672,
468,
5203,
279,
1438,
1459,
353,
13557,
471,
279,
843,
353,
18121,
16,
4486,
434,
468,
326,
813,
326,
843,
903,
1002,
279,
15061,
67,
1502,
882,
1520,
16,
1508,
622,
326,
468,
2205,
4395,
358,
1836,
518,
16,
326,
7219,
2561,
903,
11812,
471,
468,
12897,
18,
10724,
353,
279,
11315,
6088,
16,
326,
1122,
4395,
14183,
326,
468,
15061,
67,
43,
5998,
1520,
16,
326,
2205,
4395,
326,
15061,
67,
1502,
882,
1520,
468,
471,
1338,
326,
12126,
21933,
18,
22073,
326,
890,
316,
326,
2798,
1056,
18,
468,
971,
518,
3302,
1404,
11812,
5456,
1839,
890,
7531,
16,
1323,
326,
2063,
353,
468,
731,
471,
3549,
16,
518,
353,
2724,
279,
1381,
18,
20,
18,
23,
261,
280,
16069,
13,
1438,
353,
1399,
468,
1492,
1158,
7144,
4641,
1282,
2059,
479,
3612,
87,
635,
805,
18,
657,
716,
648,
279,
468,
11812,
2982,
1297,
506,
444,
1347,
10480,
326,
1459,
358,
10768,
468,
716,
2059,
479,
3612,
310,
353,
6049,
18,
657,
13485,
1966,
404,
18,
22,
18,
22,
578,
16069,
333,
353,
468,
2731,
635,
4440,
10087,
12,
5510,
13,
603,
326,
1459,
18,
364,
1056,
316,
1048,
12,
23,
4672,
775,
30,
309,
365,
18,
14891,
67,
9124,
30,
468,
2457,
26252,
2290,
404,
18,
22,
18,
21,
471,
5137,
16,
732,
1960,
468,
2688,
2122,
9124,
2122,
9999,
261,
267,
326,
7219,
1319,
13,
3399,
2271,
273,
5252,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
7539,
12,
2890,
16,
1487,
16,
3347,
16,
843,
4672,
468,
5203,
279,
1438,
1459,
353,
13557,
471,
279,
843,
353,
18121,
16,
4486,
434,
468,
326,
813,
326,
843,
903,
1002,
279,
15061,
67,
1502,
882,
1520,
16,
1508,
622,
326,
468,
2205,
4395,
358,
1836,
518,
16,
326,
7219,
2561,
903,
11812,
471,
468,
12897,
18,
10724,
353,
279,
11315,
6088,
16,
326,
1122,
4395,
14183,
326,
468,
15061,
67,
43,
5998,
1520,
16,
326,
2205,
4395,
326,
15061,
67,
1502,
882,
1520,
468,
471,
1338,
326,
12126,
21933,
18,
22073,
326,
890,
316,
326,
2798,
1056,
18,
468,
971,
518,
3302,
1404,
11812,
5456,
1839,
890,
7531,
16,
1323,
326,
2063,
353,
468,
2
] |
elif '-'.join((p.ver, p.rel)) == '-'.join((dbp.pkgver, dbp.pkgrel)):
|
elif p.ver == dbp.pkgver and p.rel == dbp.pkgrel:
|
def db_update(archname, reponame, pkgs, options): """ Parses a list and updates the Arch dev database accordingly. Arguments: pkgs -- A list of Pkg objects. """ logger.info('Updating Arch: %s' % archname) force = options.get('force', False) filesonly = options.get('filesonly', False) repository = Repo.objects.get(name__iexact=reponame) architecture = Arch.objects.get(name__iexact=archname) dbpkgs = Package.objects.filter(arch=architecture, repo=repository) # It makes sense to fully evaluate our DB query now because we will # be using 99% of the objects in our "in both sets" loop. Force eval # by calling list() on the QuerySet. list(dbpkgs) # This makes our inner loop where we find packages by name *way* more # efficient by not having to go to the database for each package to # SELECT them by name. dbdict = dict([(pkg.pkgname, pkg) for pkg in dbpkgs]) logger.debug("Creating sets") dbset = set([pkg.pkgname for pkg in dbpkgs]) syncset = set([pkg.name for pkg in pkgs]) logger.info("%d packages in current web DB" % len(dbset)) logger.info("%d packages in new updating db" % len(syncset)) in_sync_not_db = syncset - dbset logger.info("%d packages in sync not db" % len(in_sync_not_db)) # Try to catch those random orphaning issues that make Eric so unhappy. if len(dbset): dbpercent = 100.0 * len(syncset) / len(dbset) else: dbpercent = 0.0 logger.info("DB package ratio: %.1f%%" % dbpercent) # Fewer than 20 packages makes the percentage check unreliable, but it also # means we expect the repo to fluctuate a lot. msg = "Package database has %.1f%% the number of packages in the " \ "web database" % dbpercent if len(dbset) > 20 and dbpercent < 50.0 and not repository.testing: logger.error(msg) raise Exception(msg) if dbpercent < 75.0: logger.warning(msg) if not filesonly: # packages in syncdb and not in database (add to database) for p in [x for x in pkgs if x.name in in_sync_not_db]: logger.info("Adding package %s", p.name) pkg = Package(pkgname = p.name, arch = architecture, repo = repository) populate_pkg(pkg, p, timestamp=datetime.now()) # packages in database and not in syncdb (remove from database) in_db_not_sync = dbset - syncset for p in in_db_not_sync: logger.info("Removing package %s from database", p) Package.objects.get( pkgname=p, arch=architecture, repo=repository).delete() # packages in both database and in syncdb (update in database) pkg_in_both = syncset & dbset for p in [x for x in pkgs if x.name in pkg_in_both]: logger.debug("Looking for package updates") dbp = dbdict[p.name] timestamp = None # for a force, we don't want to update the timestamp. # for a non-force, we don't want to do anything at all. if filesonly: pass elif '-'.join((p.ver, p.rel)) == '-'.join((dbp.pkgver, dbp.pkgrel)): if not force: continue else: timestamp = datetime.now() if filesonly: logger.debug("Checking files for package %s in database", p.name) populate_files(dbp, p) else: logger.info("Updating package %s in database", p.name) populate_pkg(dbp, p, force=force, timestamp=timestamp) logger.info('Finished updating Arch: %s' % archname)
|
fcc6d98bc438ea917c757ee1a565a5dba625f333 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/fcc6d98bc438ea917c757ee1a565a5dba625f333/reporead.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
67,
2725,
12,
991,
529,
16,
283,
500,
339,
16,
16922,
16,
702,
4672,
3536,
2280,
2420,
279,
666,
471,
4533,
326,
16959,
4461,
2063,
15905,
18,
225,
13599,
30,
16922,
1493,
432,
666,
434,
453,
14931,
2184,
18,
225,
3536,
1194,
18,
1376,
2668,
17858,
16959,
30,
738,
87,
11,
738,
6637,
529,
13,
2944,
273,
702,
18,
588,
2668,
5734,
2187,
1083,
13,
1390,
3700,
273,
702,
18,
588,
2668,
2354,
3700,
2187,
1083,
13,
3352,
273,
15118,
18,
6911,
18,
588,
12,
529,
972,
77,
17165,
33,
266,
500,
339,
13,
27418,
273,
16959,
18,
6911,
18,
588,
12,
529,
972,
77,
17165,
33,
991,
529,
13,
1319,
25376,
273,
7508,
18,
6911,
18,
2188,
12,
991,
33,
991,
18123,
16,
3538,
33,
9071,
13,
468,
2597,
7297,
12764,
358,
7418,
5956,
3134,
2383,
843,
2037,
2724,
732,
903,
468,
506,
1450,
14605,
9,
434,
326,
2184,
316,
3134,
315,
267,
3937,
1678,
6,
2798,
18,
11889,
5302,
468,
635,
4440,
666,
1435,
603,
326,
2770,
694,
18,
666,
12,
1966,
25376,
13,
468,
1220,
7297,
3134,
3443,
2798,
1625,
732,
1104,
5907,
635,
508,
380,
1888,
14,
1898,
468,
14382,
635,
486,
7999,
358,
1960,
358,
326,
2063,
364,
1517,
2181,
358,
468,
9111,
2182,
635,
508,
18,
1319,
1576,
273,
2065,
3816,
12,
10657,
18,
10657,
529,
16,
3475,
13,
364,
3475,
316,
1319,
25376,
5717,
225,
1194,
18,
4148,
2932,
11092,
1678,
7923,
1319,
542,
273,
444,
3816,
10657,
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,
1319,
67,
2725,
12,
991,
529,
16,
283,
500,
339,
16,
16922,
16,
702,
4672,
3536,
2280,
2420,
279,
666,
471,
4533,
326,
16959,
4461,
2063,
15905,
18,
225,
13599,
30,
16922,
1493,
432,
666,
434,
453,
14931,
2184,
18,
225,
3536,
1194,
18,
1376,
2668,
17858,
16959,
30,
738,
87,
11,
738,
6637,
529,
13,
2944,
273,
702,
18,
588,
2668,
5734,
2187,
1083,
13,
1390,
3700,
273,
702,
18,
588,
2668,
2354,
3700,
2187,
1083,
13,
3352,
273,
15118,
18,
6911,
18,
588,
12,
529,
972,
77,
17165,
33,
266,
500,
339,
13,
27418,
273,
16959,
18,
6911,
18,
588,
12,
529,
972,
77,
17165,
33,
991,
529,
13,
1319,
25376,
273,
7508,
18,
6911,
18,
2
] |
self.theAutoChangeFlag = 0
|
def updateBySubtractbutton( self,obj ):
|
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
858,
27904,
5391,
12,
365,
16,
2603,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
858,
27904,
5391,
12,
365,
16,
2603,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
M_NS = {
|
M_NS = {
|
def rmcol(self, cr): return False
|
fe0ee384c7b5a64c12f8725027352df173701456 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fe0ee384c7b5a64c12f8725027352df173701456/caldav_node.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6692,
1293,
12,
2890,
16,
4422,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self._executeSingleFileCatalogFunction( lfn, 'isDirectory', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'isDirectory', catalogs=catalogs ) def getCatalogDirectoryMetadata( self, lfn, singleFile=False, catalogs=[] ):
|
return self._executeSingleFileCatalogFunction( lfn, 'isDirectory', catalogs = catalogs ) else: return self._executeFileCatalogFunction( lfn, 'isDirectory', catalogs = catalogs ) def getCatalogDirectoryMetadata( self, lfn, singleFile = False, catalogs = [] ):
|
def getCatalogIsDirectory( self, lfn, singleFile=False, catalogs=[] ): """ Determine whether the path is registered as a directory in the FileCatalog 'lfn' is the files to check (can be a single file or list of lfns) """ if singleFile: return self._executeSingleFileCatalogFunction( lfn, 'isDirectory', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'isDirectory', catalogs=catalogs )
|
8cfc8d124489ba672254aee3d1fff4f748757c6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/8cfc8d124489ba672254aee3d1fff4f748757c6c/ReplicaManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
4392,
2520,
2853,
12,
365,
16,
328,
4293,
16,
2202,
812,
33,
8381,
16,
26455,
33,
8526,
262,
30,
3536,
10229,
2856,
326,
589,
353,
4104,
487,
279,
1867,
316,
326,
1387,
9769,
225,
296,
80,
4293,
11,
353,
326,
1390,
358,
866,
261,
4169,
506,
279,
2202,
585,
578,
666,
434,
18594,
2387,
13,
3536,
309,
2202,
812,
30,
327,
365,
6315,
8837,
5281,
812,
9769,
2083,
12,
328,
4293,
16,
296,
291,
2853,
2187,
26455,
33,
2574,
287,
14072,
262,
469,
30,
327,
365,
6315,
8837,
812,
9769,
2083,
12,
328,
4293,
16,
296,
291,
2853,
2187,
26455,
33,
2574,
287,
14072,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
4392,
2520,
2853,
12,
365,
16,
328,
4293,
16,
2202,
812,
33,
8381,
16,
26455,
33,
8526,
262,
30,
3536,
10229,
2856,
326,
589,
353,
4104,
487,
279,
1867,
316,
326,
1387,
9769,
225,
296,
80,
4293,
11,
353,
326,
1390,
358,
866,
261,
4169,
506,
279,
2202,
585,
578,
666,
434,
18594,
2387,
13,
3536,
309,
2202,
812,
30,
327,
365,
6315,
8837,
5281,
812,
9769,
2083,
12,
328,
4293,
16,
296,
291,
2853,
2187,
26455,
33,
2574,
287,
14072,
262,
469,
30,
327,
365,
6315,
8837,
812,
9769,
2083,
12,
328,
4293,
16,
296,
291,
2853,
2187,
26455,
33,
2574,
287,
14072,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if 'site_ids' in person and site_id not in person['site_ids']:
|
def add_person(self, person, commit = True): """ Add person to existing site. """
|
84507e9f37868966f34f1184f902986b6004a812 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12479,
12,
2890,
16,
6175,
16,
3294,
273,
1053,
4672,
3536,
1436,
6175,
358,
2062,
2834,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.skip = skip
|
self.skip = map(lambda f,r=self.root: r+f, skip)
|
def __init__(self, root, skip = []): self.root = root self.skip = skip GSTestCase.__init__(self)
|
63d472f3b86b7cb80ea20176b5c5463f0db41975 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/63d472f3b86b7cb80ea20176b5c5463f0db41975/check_source.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
16,
2488,
273,
5378,
4672,
365,
18,
3085,
273,
1365,
365,
18,
7457,
273,
852,
12,
14661,
284,
16,
86,
33,
2890,
18,
3085,
30,
436,
15,
74,
16,
2488,
13,
611,
882,
395,
2449,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
16,
2488,
273,
5378,
4672,
365,
18,
3085,
273,
1365,
365,
18,
7457,
273,
852,
12,
14661,
284,
16,
86,
33,
2890,
18,
3085,
30,
436,
15,
74,
16,
2488,
13,
611,
882,
395,
2449,
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
] |
if ((COMPILER=="MSVC7") and opts.count("MAYA5")): cmd = cmd + ' -I"' + Maya5SDK + 'include"' if ((COMPILER=="MSVC7") and opts.count("MAYA6")): cmd = cmd + ' -I"' + Maya6SDK + 'include"'
|
if ((COMPILER=="MSVC7") and opts.count("MAYA5")): cmd = cmd + ' -I"' + MAYASDK["MAYA5"] + '/include"' if ((COMPILER=="MSVC7") and opts.count("MAYA6")): cmd = cmd + ' -I"' + MAYASDK["MAYA6"] + '/include"'
|
def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive") ALLIN.append(outd) ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"] outd = PREFIX+"/pandac/input/"+outd outc = PREFIX+"/tmp/"+outc paths = xpaths(src+"/",files,"") dep = CxxCalcDependenciesAll(paths, ipath) dotdots = "" for i in range(0,src.count("/")+1): dotdots = dotdots + "../" building = 0 for x in opts: if (x[:9]=="BUILDING_"): building = x[9:] if (older(outc, dep) or older(outd, dep)): if (COMPILER=="MSVC7"): cmd = dotdots + PREFIX + "/bin/interrogate.exe" cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -longlong __int64 -D_X86_ -DWIN32_VC -D_WIN32' cmd = cmd + ' -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall' if (OPTIMIZE==1): cmd = cmd + ' ' if (OPTIMIZE==2): cmd = cmd + ' ' if (OPTIMIZE==3): cmd = cmd + ' -DFORCE_INLINING' if (OPTIMIZE==4): cmd = cmd + ' -DFORCE_INLINING' cmd = cmd + ' -S' + dotdots + PREFIX + '/include/parser-inc' cmd = cmd + ' -I' + dotdots + PREFIX + '/python/include' for pkg in PACKAGES: if (PkgSelected(opts,pkg)): cmd = cmd + ' -I' + dotdots + THIRDPARTY + "/win-libs-vc7/" + pkg.lower() + "/include" if (COMPILER=="LINUXA"): cmd = dotdots + PREFIX + '/bin/interrogate' cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__i386__ -D__const=const' if (OPTIMIZE==1): cmd = cmd + ' ' if (OPTIMIZE==2): cmd = cmd + ' ' if (OPTIMIZE==3): cmd = cmd + ' ' if (OPTIMIZE==4): cmd = cmd + ' ' cmd = cmd + ' -S' + dotdots + PREFIX + '/include/parser-inc -S/usr/include' cmd = cmd + ' -I' + dotdots + PREFIX + '/python/include' for pkg in PACKAGES: if (PkgSelected(opts,pkg)): cmd = cmd + ' -I' + dotdots + THIRDPARTY + "/linux-libs-a/" + pkg.lower() + "/include" cmd = cmd + ' -oc ' + dotdots + outc + ' -od ' + dotdots + outd cmd = cmd + ' -fnames -string -refcount -assert -python' for x in ipath: cmd = cmd + ' -I' + dotdots + x if (building): cmd = cmd + " -DBUILDING_"+building if (opts.count("WITHINPANDA")): cmd = cmd + " -DWITHIN_PANDA" cmd = cmd + ' -module ' + module + ' -library ' + library if ((COMPILER=="MSVC7") and opts.count("DXSDK")): cmd = cmd + ' -I"' + DIRECTXSDK + '/include"' if ((COMPILER=="MSVC7") and opts.count("MAYA5")): cmd = cmd + ' -I"' + Maya5SDK + 'include"' if ((COMPILER=="MSVC7") and opts.count("MAYA6")): cmd = cmd + ' -I"' + Maya6SDK + 'include"' for x in files: cmd = cmd + ' ' + x oslocalcmd(src, cmd) updatefiledate(outd) updatefiledate(outc)
|
3c98662297c774af33b1cab289c99746e2a28ca5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/3c98662297c774af33b1cab289c99746e2a28ca5/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5294,
15283,
12,
625,
421,
33,
20,
16,
1500,
33,
20,
16,
596,
72,
33,
20,
16,
596,
71,
33,
20,
16,
1705,
33,
20,
16,
1605,
33,
20,
16,
5313,
33,
20,
16,
1390,
33,
20,
4672,
309,
14015,
625,
421,
631,
20,
14047,
12,
4952,
631,
20,
14047,
12,
659,
72,
631,
20,
14047,
12,
659,
71,
631,
20,
14047,
12,
4816,
631,
20,
14047,
12,
2978,
631,
20,
14047,
12,
12083,
631,
20,
14047,
12,
2354,
631,
20,
3719,
30,
2589,
18,
8593,
2932,
14308,
555,
316,
5294,
15283,
8655,
7923,
8061,
706,
18,
6923,
12,
659,
72,
13,
277,
803,
273,
306,
6307,
9078,
19,
5645,
11929,
397,
277,
803,
397,
306,
6307,
9078,
19,
6702,
11929,
596,
72,
273,
17154,
9078,
19,
84,
464,
1077,
19,
2630,
4898,
15,
659,
72,
596,
71,
273,
17154,
9078,
19,
5645,
4898,
15,
659,
71,
2953,
273,
619,
4481,
12,
4816,
9078,
19,
3113,
2354,
16,
3660,
13,
5993,
273,
385,
5279,
25779,
8053,
1595,
12,
4481,
16,
277,
803,
13,
3928,
72,
6968,
273,
1408,
364,
277,
316,
1048,
12,
20,
16,
4816,
18,
1883,
2932,
4898,
27921,
21,
4672,
3928,
72,
6968,
273,
3928,
72,
6968,
397,
315,
838,
4898,
10504,
273,
374,
364,
619,
316,
1500,
30,
309,
261,
92,
10531,
29,
65,
31713,
20215,
1360,
9548,
4672,
10504,
273,
619,
63,
29,
26894,
309,
261,
1498,
12,
659,
71,
16,
5993,
13,
578,
12156,
12,
659,
72,
16,
5993,
3719,
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,
5294,
15283,
12,
625,
421,
33,
20,
16,
1500,
33,
20,
16,
596,
72,
33,
20,
16,
596,
71,
33,
20,
16,
1705,
33,
20,
16,
1605,
33,
20,
16,
5313,
33,
20,
16,
1390,
33,
20,
4672,
309,
14015,
625,
421,
631,
20,
14047,
12,
4952,
631,
20,
14047,
12,
659,
72,
631,
20,
14047,
12,
659,
71,
631,
20,
14047,
12,
4816,
631,
20,
14047,
12,
2978,
631,
20,
14047,
12,
12083,
631,
20,
14047,
12,
2354,
631,
20,
3719,
30,
2589,
18,
8593,
2932,
14308,
555,
316,
5294,
15283,
8655,
7923,
8061,
706,
18,
6923,
12,
659,
72,
13,
277,
803,
273,
306,
6307,
9078,
19,
5645,
11929,
397,
277,
803,
397,
306,
6307,
9078,
2
] |
if self.ruleModel and self.ruleModel.rulesets != rulesets:
|
if not self.ruleModel or self.ruleModel.rulesets != rulesets:
|
def fset(self, rulesets): if self.ruleModel and self.ruleModel.rulesets != rulesets: if self.btnRemove and self.btnCopy: self.ruleModel = EditableRuleModel(rulesets, self.name) else: self.ruleModel = RuleModel(rulesets, self.name) self.setModel(self.ruleModel)
|
88aa0417cb84fc506f895b7630d50e7863efd6a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/88aa0417cb84fc506f895b7630d50e7863efd6a3/rulesetselector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30141,
12,
2890,
16,
2931,
2413,
4672,
309,
486,
365,
18,
5345,
1488,
578,
365,
18,
5345,
1488,
18,
7482,
2413,
480,
2931,
2413,
30,
309,
365,
18,
11898,
3288,
471,
365,
18,
11898,
2951,
30,
365,
18,
5345,
1488,
273,
6651,
9085,
2175,
1488,
12,
7482,
2413,
16,
365,
18,
529,
13,
469,
30,
365,
18,
5345,
1488,
273,
6781,
1488,
12,
7482,
2413,
16,
365,
18,
529,
13,
365,
18,
542,
1488,
12,
2890,
18,
5345,
1488,
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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,
3288,
471,
365,
18,
11898,
2951,
30,
365,
18,
5345,
1488,
273,
6651,
9085,
2175,
1488,
12,
7482,
2413,
16,
365,
18,
529,
13,
469,
30,
365,
18,
5345,
1488,
273,
6781,
1488,
12,
7482,
2413,
16,
365,
18,
529,
13,
365,
18,
542,
1488,
12,
2890,
18,
5345,
1488,
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
] |
MessageDialog ("Question", "There are unsaved modifications. Exit anyway?", ["Yes", "No"], self.doExit)
|
dialog = gtk.MessageDialog ( mainWindow, gtk.DIALOG_DESTROY_WITH_PARENT|gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, "There are unsaved modifications. Exit anyway?") dialog.connect ("response", self.doExit) dialog.show()
|
def exitHandler (self, widget, event=None): modified = FALSE for config in self.configTree.getConfigList(): if config.modified: modified = TRUE break if modified: MessageDialog ("Question", "There are unsaved modifications. Exit anyway?", ["Yes", "No"], self.doExit) return TRUE elif event == None: gtk.mainquit() else: return FALSE
|
44ba4a387d4167dedba8d083a763a0b3d1a1236b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/44ba4a387d4167dedba8d083a763a0b3d1a1236b/driconf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
1503,
261,
2890,
16,
3604,
16,
871,
33,
7036,
4672,
4358,
273,
4934,
364,
642,
316,
365,
18,
1425,
2471,
18,
588,
809,
682,
13332,
309,
642,
18,
7342,
30,
4358,
273,
5383,
898,
309,
4358,
30,
6176,
273,
22718,
18,
1079,
6353,
261,
2774,
3829,
16,
22718,
18,
2565,
18683,
67,
1639,
25870,
61,
67,
9147,
67,
14943,
96,
4521,
79,
18,
2565,
18683,
67,
6720,
1013,
16,
22718,
18,
8723,
67,
4740,
1146,
16,
22718,
18,
20068,
55,
67,
29081,
67,
3417,
16,
315,
9828,
854,
640,
14077,
17953,
18,
9500,
13466,
7225,
13,
6176,
18,
3612,
7566,
2740,
3113,
365,
18,
2896,
6767,
13,
6176,
18,
4500,
1435,
327,
5383,
1327,
871,
422,
599,
30,
22718,
18,
5254,
27176,
1435,
469,
30,
327,
4934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
1503,
261,
2890,
16,
3604,
16,
871,
33,
7036,
4672,
4358,
273,
4934,
364,
642,
316,
365,
18,
1425,
2471,
18,
588,
809,
682,
13332,
309,
642,
18,
7342,
30,
4358,
273,
5383,
898,
309,
4358,
30,
6176,
273,
22718,
18,
1079,
6353,
261,
2774,
3829,
16,
22718,
18,
2565,
18683,
67,
1639,
25870,
61,
67,
9147,
67,
14943,
96,
4521,
79,
18,
2565,
18683,
67,
6720,
1013,
16,
22718,
18,
8723,
67,
4740,
1146,
16,
22718,
18,
20068,
55,
67,
29081,
67,
3417,
16,
315,
9828,
854,
640,
14077,
17953,
18,
9500,
13466,
7225,
13,
6176,
18,
3612,
7566,
2740,
3113,
365,
18,
2896,
6767,
13,
6176,
18,
4500,
1435,
327,
5383,
1327,
871,
422,
599,
2
] |
got = clist['component0']['shape']['minoraxis']['value']
|
got = shape['minoraxis']['value']
|
def run_imfit(): default('imfit') return imfit(imagename=convolved_model, estimates=estimates_convolved)
|
ece97c593723d5c5f97e7f8feeed072b3192a61d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/ece97c593723d5c5f97e7f8feeed072b3192a61d/test_imfit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
381,
7216,
13332,
805,
2668,
381,
7216,
6134,
327,
709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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
381,
7216,
13332,
805,
2668,
381,
7216,
6134,
327,
709,
7216,
12,
15374,
1069,
33,
4896,
12894,
67,
2284,
16,
27585,
33,
395,
29678,
67,
4896,
12894,
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
] |
"""Call by the implementation of load_metadata to load bond information on the structure. The keys of the bond map are a 2-tuple
|
"""Call by the implementation of load_metadata to load bond information on the structure. The keys of the bond map are a 2-tuple
|
def load_bonds(self, bond_map): """Call by the implementation of load_metadata to load bond information on the structure. The keys of the bond map are a 2-tuple of the bonded Atom instances, and the value is a dictionary containing information on the type of bond, which may also be a symmetry operator.
|
3ff47374bf92f0dd3017796f45976b7077a20e27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/3ff47374bf92f0dd3017796f45976b7077a20e27/StructureBuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
70,
4096,
12,
2890,
16,
8427,
67,
1458,
4672,
3536,
1477,
635,
326,
4471,
434,
1262,
67,
4165,
358,
1262,
8427,
1779,
603,
326,
3695,
18,
1021,
1311,
434,
326,
8427,
852,
854,
279,
576,
17,
8052,
434,
326,
324,
265,
785,
7149,
3884,
16,
471,
326,
460,
353,
279,
3880,
4191,
1779,
603,
326,
618,
434,
8427,
16,
1492,
2026,
2546,
506,
279,
26144,
3726,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
70,
4096,
12,
2890,
16,
8427,
67,
1458,
4672,
3536,
1477,
635,
326,
4471,
434,
1262,
67,
4165,
358,
1262,
8427,
1779,
603,
326,
3695,
18,
1021,
1311,
434,
326,
8427,
852,
854,
279,
576,
17,
8052,
434,
326,
324,
265,
785,
7149,
3884,
16,
471,
326,
460,
353,
279,
3880,
4191,
1779,
603,
326,
618,
434,
8427,
16,
1492,
2026,
2546,
506,
279,
26144,
3726,
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
] |
curun=VS.getUnit(curiter) if (enemy):
|
curun=VS.getUnit(self.curiter) if (not enemy.isNull()):
|
def loop (self): isSig=0 enemy=VS.Unit() if (self.you.isNull()): self.Lose (1) return if (self.arrived==3): enemy=self.enemy if (not self.istarget): curun=VS.getUnit(curiter) if (enemy): if (curun==enemy): enemy.setTarget(you) curiter+=1 if (you.isNull()): Lose(1) return if (enemy.isNull()): Win(you,1) return elif (self.arrived==2): if (VS.getSystemFile()==destination): self.arrived=3 else: VS.ResetTimeCompression() enemy=self.enemy if (you.isNull()): Lose(1) return if (enemy.isNull()): Win(you,1) return elif (self.arrived==1): significant=self.significant if (significant.isNull ()): print "sig null" VS.terminateMission(0) else: if (you.getSignificantDistance(significant)<10000.0): if (self.newship==""): self.newship=faction_ships.getRandomFighter(faction) self.enemy=launch.launch_wave_around_unit("Base",self.faction,self.newship,"default",1+self.difficulty,3000.0,4000.0,self.significant) if (enemy): if (runaway): self.enemy.setTarget(significant) self.enemy.Jump() self.arrived=2 else: self.arrived=3 else: if (self.adjsys.Execute()): self.arrived=1 self.newship=faction_ships.getRandomFighter(faction) localdestination=self.significant.getName() self.adjsys=go_somewhere_significant(self.you,0,500) VS.IOmessage (0,"bounty mission",self.mplay,"You must destroy the %s unit in this system." % (self.newship)) self.obj=VS.addObjective("Destroy the %s unit" % (self.newship)) if (runaway): #ADD OTHER JUMPING IF STATEMENT CODE HERE VS.IOmessage (3,"bounty mission",self.mplay,"He is running towards the jump point. Catch him!") VS.IOmessage (4,"bounty mission",self.mplay,"he is going to %s" % (localdestination)) else: VS.IOmessage (3,"bounty mission",self.mplay,"Scanners are picking up a metallic object!") VS.IOmessage (4,"bounty mission",self.mplay,"Coordinates appear near %s" % (localdestination))
|
afda00481ea93a9bb68ab6dd0605e7e59bf5d039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/afda00481ea93a9bb68ab6dd0605e7e59bf5d039/bounty.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
570,
351,
93,
33,
14640,
18,
2802,
1435,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
261,
2890,
18,
5399,
2950,
631,
23,
4672,
570,
351,
93,
33,
2890,
18,
275,
351,
93,
309,
261,
902,
365,
18,
376,
826,
4672,
662,
318,
33,
14640,
18,
588,
2802,
12,
2890,
18,
1397,
2165,
13,
309,
261,
902,
570,
351,
93,
18,
291,
2041,
1435,
4672,
309,
261,
1397,
318,
631,
275,
351,
93,
4672,
570,
351,
93,
18,
542,
2326,
12,
19940,
13,
662,
2165,
15,
33,
21,
309,
261,
19940,
18,
291,
2041,
1435,
4672,
511,
2584,
12,
21,
13,
327,
309,
261,
275,
351,
93,
18,
291,
2041,
1435,
4672,
21628,
12,
19940,
16,
21,
13,
327,
1327,
261,
2890,
18,
5399,
2950,
631,
22,
4672,
309,
261,
14640,
18,
588,
3163,
812,
1435,
631,
10590,
4672,
365,
18,
5399,
2950,
33,
23,
469,
30,
776,
55,
18,
7013,
950,
15270,
1435,
570,
351,
93,
33,
2890,
18,
275,
351,
93,
309,
261,
19940,
18,
291,
2041,
1435,
4672,
511,
2584,
12,
21,
13,
327,
309,
261,
275,
351,
93,
18,
291,
2041,
1435,
4672,
21628,
12,
19940,
16,
21,
13,
327,
1327,
261,
2890,
18,
5399,
2950,
631,
21,
4672,
14177,
33,
2890,
18,
2977,
11120,
309,
261,
2977,
11120,
18,
291,
2041,
1832,
4672,
1172,
315,
7340,
446,
6,
776,
55,
18,
30017,
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,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
570,
351,
93,
33,
14640,
18,
2802,
1435,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
261,
2890,
18,
5399,
2950,
631,
23,
4672,
570,
351,
93,
33,
2890,
18,
275,
351,
93,
309,
261,
902,
365,
18,
376,
826,
4672,
662,
318,
33,
14640,
18,
588,
2802,
12,
2890,
18,
1397,
2165,
13,
309,
261,
902,
570,
351,
93,
18,
291,
2041,
1435,
4672,
309,
261,
1397,
318,
631,
275,
351,
93,
4672,
570,
351,
93,
18,
542,
2326,
12,
19940,
13,
662,
2165,
15,
33,
21,
309,
261,
19940,
18,
291,
2041,
1435,
4672,
511,
2584,
12,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.