rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
EXAMPLE:
|
EXAMPLE::
|
def __len__(self): """ Return the length of input bit strings.
|
dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
3536,
2000,
326,
769,
434,
810,
2831,
2064,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
3536,
2000,
326,
769,
434,
810,
2831,
2064,
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
] |
postlaunch = [ 'From sfu-scmprocess-1 so the following:\n' ] + postlaunch
|
postlaunch = [ 'From sfu-scmprocess-1 do the following:\n' ] + postlaunch
|
def make_ticket_text(engineer): tag_prefix = date.today().strftime('release_%Y%m%d') # get release tag existing_tags_today = command('git tag -l %s*' % tag_prefix) if existing_tags_today: tag = '%s.%.2d' % (tag_prefix, len(existing_tags_today)) else: tag = tag_prefix last_release = command('git tag -l release_*') if last_release: last_release = last_release[-1] else: last_release = '' changes = command( 'git', 'log', "--format=* %h %s", last_release.strip() + '..') changes = ''.join(changes) prelaunch = [] postlaunch = [] needs_reactor_setup = raw_input('Does this release require a reactor_setup? [n]') needs_flyway = raw_input('Does this release require a migration? [y]') if needs_reactor_setup[:1].lower() in ('y', '1'): postlaunch.append('* service reactor stop') postlaunch.append('* paster reactor_setup /var/local/config/production.ini') postlaunch.append('* service reactor start') if needs_flyway[:1].lower() in ('', 'y', '1'): prelaunch.append('* dump the database in case we need to roll back') postlaunch.append('* paster flyway --url mongo://sfn-mongo-1:27017/') if postlaunch: postlaunch = [ 'From sfu-scmprocess-1 so the following:\n' ] + postlaunch postlaunch = '\n'.join(postlaunch) else: postlaunch = '-none-' if prelaunch: prelaunch = [ 'From sfu-scmprocess-1 so the following:\n' ] + prelaunch prelaunch = '\n'.join(prelaunch) else: prelaunch = '-none-' return TICKET_TEMPLATE.substitute(locals()), tag
|
9e8f1938c74897f25a3a5b9ef73931cdf2e405d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/9e8f1938c74897f25a3a5b9ef73931cdf2e405d0/push_re.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
16282,
67,
955,
12,
8944,
264,
4672,
1047,
67,
3239,
273,
1509,
18,
30064,
7675,
701,
9982,
2668,
9340,
10185,
61,
9,
81,
9,
72,
6134,
468,
336,
3992,
1047,
2062,
67,
4156,
67,
30064,
273,
1296,
2668,
6845,
1047,
300,
80,
738,
87,
4035,
738,
1047,
67,
3239,
13,
309,
2062,
67,
4156,
67,
30064,
30,
1047,
273,
1995,
87,
7866,
18,
22,
72,
11,
738,
261,
2692,
67,
3239,
16,
562,
12,
11711,
67,
4156,
67,
30064,
3719,
469,
30,
1047,
273,
1047,
67,
3239,
1142,
67,
9340,
273,
1296,
2668,
6845,
1047,
300,
80,
3992,
67,
4035,
13,
309,
1142,
67,
9340,
30,
1142,
67,
9340,
273,
1142,
67,
9340,
18919,
21,
65,
469,
30,
1142,
67,
9340,
273,
875,
3478,
273,
1296,
12,
296,
6845,
2187,
296,
1330,
2187,
5238,
2139,
33,
14,
738,
76,
738,
87,
3113,
1142,
67,
9340,
18,
6406,
1435,
397,
11597,
6134,
3478,
273,
875,
18,
5701,
12,
6329,
13,
675,
20738,
273,
5378,
1603,
20738,
273,
5378,
4260,
67,
266,
3362,
67,
8401,
273,
1831,
67,
2630,
2668,
10154,
333,
3992,
2583,
279,
19178,
67,
8401,
35,
306,
82,
3864,
13,
4260,
67,
29670,
1888,
273,
1831,
67,
2630,
2668,
10154,
333,
3992,
2583,
279,
6333,
35,
306,
93,
3864,
13,
309,
4260,
67,
266,
3362,
67,
8401,
10531,
21,
8009,
8167,
1435,
316,
7707,
93,
2187,
296,
21,
11,
4672,
1603,
20738,
18,
6923,
2668,
14,
1156,
19178,
2132,
6134,
1603,
20738,
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,
1221,
67,
16282,
67,
955,
12,
8944,
264,
4672,
1047,
67,
3239,
273,
1509,
18,
30064,
7675,
701,
9982,
2668,
9340,
10185,
61,
9,
81,
9,
72,
6134,
468,
336,
3992,
1047,
2062,
67,
4156,
67,
30064,
273,
1296,
2668,
6845,
1047,
300,
80,
738,
87,
4035,
738,
1047,
67,
3239,
13,
309,
2062,
67,
4156,
67,
30064,
30,
1047,
273,
1995,
87,
7866,
18,
22,
72,
11,
738,
261,
2692,
67,
3239,
16,
562,
12,
11711,
67,
4156,
67,
30064,
3719,
469,
30,
1047,
273,
1047,
67,
3239,
1142,
67,
9340,
273,
1296,
2668,
6845,
1047,
300,
80,
3992,
67,
4035,
13,
309,
1142,
67,
9340,
30,
1142,
67,
9340,
273,
1142,
67,
9340,
18919,
21,
65,
2
] |
if self.foundTitleTag:
|
if self.inTitleTag:
|
def handle_entityref (self, ref, *args): if self.foundTitleTag: # TODO: set the correct encoding self.title+= unicode ("&%s;" % ref, 'iso-8859-1')
|
7c75257e75d4263cbfee9c20448d9532e16b54d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5759/7c75257e75d4263cbfee9c20448d9532e16b54d6/url.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1096,
1734,
261,
2890,
16,
1278,
16,
380,
1968,
4672,
309,
365,
18,
267,
4247,
1805,
30,
468,
2660,
30,
444,
326,
3434,
2688,
365,
18,
2649,
15,
33,
5252,
7566,
10,
9,
87,
4868,
738,
1278,
16,
296,
9699,
17,
17258,
17,
21,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class TubFailures(ShouldFailMixin, unittest.TestCase):
|
class TubFailures(ExamineFailuresMixin, ShouldFailMixin, unittest.TestCase):
|
def test_local_return_violation_default(self): rr, target = self.setupTarget(Target(), True) d = self.shouldFail(Violation, "one", None, rr.callRemote, "add", a=1, b=2, _resultConstraint=str) d.addCallback(self._examine_local_return_violation) return d
|
5ebf7776b3da378747b0706368a030e68866a6d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13646/5ebf7776b3da378747b0706368a030e68866a6d7/test_call.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
67,
2463,
67,
522,
12255,
67,
1886,
12,
2890,
4672,
8354,
16,
1018,
273,
365,
18,
8401,
2326,
12,
2326,
9334,
1053,
13,
302,
273,
365,
18,
13139,
3754,
12,
11683,
16,
315,
476,
3113,
599,
16,
8354,
18,
1991,
5169,
16,
315,
1289,
3113,
279,
33,
21,
16,
324,
33,
22,
16,
389,
2088,
5806,
33,
701,
13,
302,
18,
1289,
2428,
12,
2890,
6315,
338,
301,
558,
67,
3729,
67,
2463,
67,
522,
12255,
13,
327,
302,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
67,
2463,
67,
522,
12255,
67,
1886,
12,
2890,
4672,
8354,
16,
1018,
273,
365,
18,
8401,
2326,
12,
2326,
9334,
1053,
13,
302,
273,
365,
18,
13139,
3754,
12,
11683,
16,
315,
476,
3113,
599,
16,
8354,
18,
1991,
5169,
16,
315,
1289,
3113,
279,
33,
21,
16,
324,
33,
22,
16,
389,
2088,
5806,
33,
701,
13,
302,
18,
1289,
2428,
12,
2890,
6315,
338,
301,
558,
67,
3729,
67,
2463,
67,
522,
12255,
13,
327,
302,
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
] |
def __init__(self, id=getuuid(), host='localhost', port=5672):
|
def __init__(self, id=None, host='localhost', port=5672):
|
def __init__(self, id=getuuid(), host='localhost', port=5672): """ @param host: The broker fqdn or IP. @type host: str @param port: The broker port. @type port: str """ self.id = id self.host = host self.port = port self.__session = None self.connect() self.open()
|
be6c0e407002d905c369299383e27819ac3afd88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/be6c0e407002d905c369299383e27819ac3afd88/base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
33,
7036,
16,
1479,
2218,
13014,
2187,
1756,
33,
4313,
9060,
4672,
3536,
632,
891,
1479,
30,
1021,
8625,
19897,
578,
2971,
18,
632,
723,
1479,
30,
609,
632,
891,
1756,
30,
1021,
8625,
1756,
18,
632,
723,
1756,
30,
609,
3536,
365,
18,
350,
273,
612,
365,
18,
2564,
273,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
33,
7036,
16,
1479,
2218,
13014,
2187,
1756,
33,
4313,
9060,
4672,
3536,
632,
891,
1479,
30,
1021,
8625,
19897,
578,
2971,
18,
632,
723,
1479,
30,
609,
632,
891,
1756,
30,
1021,
8625,
1756,
18,
632,
723,
1756,
30,
609,
3536,
365,
18,
350,
273,
612,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
16186,
3184,
273,
599,
365,
18,
3612,
1435,
365,
18,
3190,
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
] |
r" *use +(?P<module>[a-zA-Z_][a-zA-Z_0-9]*)(?P<only> *, *only:)? *(?P<imports>.*)$",
|
r" *use +(?P<module>[a-zA-Z_][a-zA-Z_0-9]*)(?P<only> *, *only *:)? *(?P<imports>.*)$",
|
def parseUse(inFile): """Parses the use statements in inFile The parsing stops at the first non use statement. Returns something like: ([{'module':'module1','only':['el1',el2=>el3']},...], '! comment1\\n!comment2...\\n', 'last line (the line that stopped the parsing)') """ useStartRe=re.compile( r" *(?P<use>use[^&!]*)(?P<continue>&?) *(?P<comment>!.*)?$", flags=re.IGNORECASE) commentRe=re.compile(r" *!.*$") contLineRe=re.compile( r"(?P<contLine>[^&!]*)(?P<continue>&?) *(?P<comment>!.*)?$") useParseRe=re.compile( r" *use +(?P<module>[a-zA-Z_][a-zA-Z_0-9]*)(?P<only> *, *only:)? *(?P<imports>.*)$", flags=re.IGNORECASE) lineNr=0 comments="" modules=[] line="" while 1: line=inFile.readline() lineNr=lineNr+1 if not line: break m=useStartRe.match(line) if m: # read whole use compactedUse=m.group('use') useComments="" if m.group('comment'): useComments=m.group('comment')+'\n' while m.group('continue'): lineNr=lineNr+1 m=contLineRe.match(inFile.readline()) compactedUse=compactedUse+m.group('contLine') if m.group('comment'): useComments=useComments+m.group('comment')+'\n' # parse use m=useParseRe.match(compactedUse) if not m: raise SyntaxError("could not parse use ending at line "+ str(lineNr)+" (compactedUse="+compactedUse+ ")") useAtt={'module':m.group('module')} if m.group('only'): useAtt['only']=map(string.strip, string.split(m.group('imports'),',')) else: useAtt['renames']=map(string.strip, string.split(m.group('imports'),',')) if useComments : useAtt['comments']=useComments # add use to modules modules.append(useAtt) elif commentRe.match(line): comments=comments+line elif line and not line.isspace(): break return (modules,comments,line)
|
7d204ee385d3314605c55eb04b0437db277fe8b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2834/7d204ee385d3314605c55eb04b0437db277fe8b6/normalizeUse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3727,
12,
267,
812,
4672,
3536,
6656,
326,
999,
6317,
316,
316,
812,
1021,
5811,
12349,
622,
326,
1122,
1661,
999,
3021,
18,
2860,
5943,
3007,
30,
23265,
27828,
2978,
11,
2497,
2978,
21,
17023,
3700,
4278,
3292,
292,
21,
2187,
292,
22,
9207,
292,
23,
3546,
5779,
2777,
6487,
11817,
2879,
21,
1695,
82,
5,
3469,
22,
2777,
1695,
82,
2187,
296,
2722,
980,
261,
5787,
980,
716,
9627,
326,
5811,
2506,
13,
3536,
999,
1685,
426,
33,
266,
18,
11100,
12,
436,
6,
380,
3680,
52,
32,
1202,
34,
1202,
5969,
10,
5,
15471,
3680,
52,
32,
17143,
22393,
8535,
380,
3680,
52,
32,
3469,
34,
5,
4509,
9945,
8,
3113,
2943,
33,
266,
18,
20118,
13415,
13,
2879,
426,
33,
266,
18,
11100,
12,
86,
6,
380,
5,
4509,
8,
7923,
466,
1670,
426,
33,
266,
18,
11100,
12,
436,
6,
3680,
52,
32,
1213,
1670,
34,
5969,
10,
5,
15471,
3680,
52,
32,
17143,
22393,
8535,
380,
3680,
52,
32,
3469,
34,
5,
4509,
9945,
8,
7923,
999,
3201,
426,
33,
266,
18,
11100,
12,
436,
6,
380,
1202,
397,
3680,
52,
32,
2978,
23224,
69,
17,
9600,
17,
62,
67,
6362,
69,
17,
9600,
17,
62,
67,
20,
17,
29,
15471,
3680,
52,
32,
3700,
34,
380,
16,
380,
3700,
380,
30,
9945,
380,
3680,
52,
32,
21350,
34,
4509,
21877,
3113,
2943,
33,
266,
18,
20118,
13415,
13,
980,
18726,
33,
20,
5678,
1546,
6,
4381,
33,
8526,
980,
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,
1109,
3727,
12,
267,
812,
4672,
3536,
6656,
326,
999,
6317,
316,
316,
812,
1021,
5811,
12349,
622,
326,
1122,
1661,
999,
3021,
18,
2860,
5943,
3007,
30,
23265,
27828,
2978,
11,
2497,
2978,
21,
17023,
3700,
4278,
3292,
292,
21,
2187,
292,
22,
9207,
292,
23,
3546,
5779,
2777,
6487,
11817,
2879,
21,
1695,
82,
5,
3469,
22,
2777,
1695,
82,
2187,
296,
2722,
980,
261,
5787,
980,
716,
9627,
326,
5811,
2506,
13,
3536,
999,
1685,
426,
33,
266,
18,
11100,
12,
436,
6,
380,
3680,
52,
32,
1202,
34,
1202,
5969,
10,
5,
15471,
3680,
52,
32,
17143,
22393,
8535,
380,
3680,
52,
32,
3469,
34,
5,
4509,
9945,
8,
3113,
2943,
33,
266,
18,
2
] |
'cvv' : str(data.credit_card.ccv),
|
'cvv' : data.credit_card.ccv,
|
def prepareData(self, data): self.order = data # See tclink developer's guide for additional fields and info # convert amount to cents, no decimal point amount = str(data.balance).replace ('.', '')
|
61512a3da045e7727e74347eadb4063ee34eb780 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/61512a3da045e7727e74347eadb4063ee34eb780/processor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
751,
12,
2890,
16,
501,
4672,
365,
18,
1019,
273,
501,
468,
2164,
268,
830,
754,
8751,
1807,
7343,
364,
3312,
1466,
471,
1123,
468,
1765,
3844,
358,
276,
4877,
16,
1158,
6970,
1634,
3844,
273,
609,
12,
892,
18,
12296,
2934,
2079,
7707,
1093,
16,
28707,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2911,
751,
12,
2890,
16,
501,
4672,
365,
18,
1019,
273,
501,
468,
2164,
268,
830,
754,
8751,
1807,
7343,
364,
3312,
1466,
471,
1123,
468,
1765,
3844,
358,
276,
4877,
16,
1158,
6970,
1634,
3844,
273,
609,
12,
892,
18,
12296,
2934,
2079,
7707,
1093,
16,
28707,
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
] |
session.__remote_http_address = request.get_environ("REMOTE_HTTP_ADDR")
|
session.set_remote_http_address(request.get_environ("REMOTE_ADDR"))
|
def get_session (self, request): """get_session(request : HTTPRequest) -> Session
|
365cdecd4696d76e5bed36445d15d1f5505338a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/365cdecd4696d76e5bed36445d15d1f5505338a9/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
588,
67,
3184,
12,
2293,
294,
25238,
13,
317,
3877,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
588,
67,
3184,
12,
2293,
294,
25238,
13,
317,
3877,
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
] |
OWGUI.lineEdit(gbox, self, 'GroupText', label='Subset sizes (e.g. "0.1, 0.2, 0.5"):', callback=self.changeCombo)
|
OWGUI.lineEdit(gbox, self, 'GroupText', label='Subset sizes (e.g. "0.1, 0.2, 0.5"):', callback=self.multipleChanged)
|
def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, 'SampleData') self.inputs = [("Data", ExampleTable, self.cdata)] self.outputs = [("Examples", ExampleTable), ("Classified Examples", ExampleTableWithClass), ("Remaining Examples", ExampleTable), ("Remaining Classified Examples", ExampleTableWithClass)]
|
72ac0f7f2c55faee600e57efcc7b624d6ae3d6d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/72ac0f7f2c55faee600e57efcc7b624d6ae3d6d0/OWDataSampler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
8504,
751,
6134,
225,
365,
18,
10029,
273,
306,
2932,
751,
3113,
5090,
1388,
16,
365,
18,
71,
892,
25887,
365,
18,
12295,
273,
306,
2932,
23905,
3113,
5090,
1388,
3631,
7566,
797,
939,
19830,
3113,
5090,
1388,
1190,
797,
3631,
7566,
11429,
19830,
3113,
5090,
1388,
3631,
7566,
11429,
1659,
939,
19830,
3113,
5090,
1388,
1190,
797,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
8504,
751,
6134,
225,
365,
18,
10029,
273,
306,
2932,
751,
3113,
5090,
1388,
16,
365,
18,
71,
892,
25887,
365,
18,
12295,
273,
306,
2932,
23905,
3113,
5090,
1388,
3631,
7566,
797,
939,
19830,
3113,
5090,
1388,
1190,
797,
3631,
7566,
11429,
19830,
3113,
5090,
1388,
3631,
7566,
11429,
1659,
939,
19830,
3113,
5090,
1388,
1190,
797,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
opts, args = getopt.getopt(sys.argv[1:], 'hvgqxsSrf:lu:t:TD:NLR:wWM:j:',
|
opts, args = getopt.getopt(sys.argv[1:], 'hvgqxsSrf:lu:t:TD:NLR:FwWM:j:',
|
def main(tests=None, testdir=None, verbose=0, quiet=False, exclude=False, single=False, randomize=False, fromfile=None, findleaks=False, use_resources=None, trace=False, coverdir='coverage', runleaks=False, huntrleaks=False, verbose2=False, print_slow=False, random_seed=None, use_mp=None, verbose3=False): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdir -- the directory in which to look for tests (optional) Users other than the Python test suite will certainly want to specify testdir; if it's omitted, the directory containing the Python test suite is searched for. If the tests argument is omitted, the tests listed on the command-line will be used. If that's empty, too, then all *.py files beginning with test_ will be used. The other default arguments (verbose, quiet, exclude, single, randomize, findleaks, use_resources, trace, coverdir, print_slow and random_seed) allow programmers calling main() directly to set the values that would normally be set by flags on the command line. """ test_support.record_original_stdout(sys.stdout) try: opts, args = getopt.getopt(sys.argv[1:], 'hvgqxsSrf:lu:t:TD:NLR:wWM:j:', ['help', 'verbose', 'verbose2', 'verbose3', 'quiet', 'exclude', 'single', 'slow', 'random', 'fromfile', 'findleaks', 'use=', 'threshold=', 'trace', 'coverdir=', 'nocoverdir', 'runleaks', 'huntrleaks=', 'memlimit=', 'randseed=', 'multiprocess=', 'slaveargs=']) except getopt.error, msg: usage(2, msg) # Defaults if random_seed is None: random_seed = random.randrange(10000000) if use_resources is None: use_resources = [] for o, a in opts: if o in ('-h', '--help'): usage(0) elif o in ('-v', '--verbose'): verbose += 1 elif o in ('-w', '--verbose2'): verbose2 = True elif o in ('-W', '--verbose3'): verbose3 = True elif o in ('-q', '--quiet'): quiet = True; verbose = 0 elif o in ('-x', '--exclude'): exclude = True elif o in ('-s', '--single'): single = True elif o in ('-S', '--slow'): print_slow = True elif o in ('-r', '--randomize'): randomize = True elif o == '--randseed': random_seed = int(a) elif o in ('-f', '--fromfile'): fromfile = a elif o in ('-l', '--findleaks'): findleaks = True elif o in ('-L', '--runleaks'): runleaks = True elif o in ('-t', '--threshold'): import gc gc.set_threshold(int(a)) elif o in ('-T', '--coverage'): trace = True elif o in ('-D', '--coverdir'): coverdir = os.path.join(os.getcwd(), a) elif o in ('-N', '--nocoverdir'): coverdir = None elif o in ('-R', '--huntrleaks'): huntrleaks = a.split(':') if len(huntrleaks) != 3: print a, huntrleaks usage(2, '-R takes three colon-separated arguments') if len(huntrleaks[0]) == 0: huntrleaks[0] = 5 else: huntrleaks[0] = int(huntrleaks[0]) if len(huntrleaks[1]) == 0: huntrleaks[1] = 4 else: huntrleaks[1] = int(huntrleaks[1]) if len(huntrleaks[2]) == 0: huntrleaks[2] = "reflog.txt" elif o in ('-M', '--memlimit'): test_support.set_memlimit(a) elif o in ('-u', '--use'): u = [x.lower() for x in a.split(',')] for r in u: if r == 'all': use_resources[:] = RESOURCE_NAMES continue remove = False if r[0] == '-': remove = True r = r[1:] if r not in RESOURCE_NAMES: usage(1, 'Invalid -u/--use option: ' + a) if remove: if r in use_resources: use_resources.remove(r) elif r not in use_resources: use_resources.append(r) elif o in ('-j', '--multiprocess'): use_mp = int(a) elif o == '--slaveargs': args, kwargs = json.loads(a) try: result = runtest(*args, **kwargs) except BaseException, e: result = INTERRUPTED, e.__class__.__name__ print # Force a newline (just in case) print json.dumps(result) sys.exit(0) if single and fromfile: usage(2, "-s and -f don't go together!") if use_mp and trace: usage(2, "-T and -j don't go together!") if use_mp and findleaks: usage(2, "-l and -j don't go together!") good = [] bad = [] skipped = [] resource_denieds = [] environment_changed = [] if findleaks: try: import gc except ImportError: print 'No GC available, disabling findleaks.' findleaks = False else: # Uncomment the line below to report garbage that is not # freeable by reference counting alone. By default only # garbage that is not collectable by the GC is reported. #gc.set_debug(gc.DEBUG_SAVEALL) found_garbage = [] if single: from tempfile import gettempdir filename = os.path.join(gettempdir(), 'pynexttest') try: fp = open(filename, 'r') next = fp.read().strip() tests = [next] fp.close() except IOError: pass if fromfile: tests = [] fp = open(fromfile) for line in fp: guts = line.split() # assuming no test has whitespace in its name if guts and not guts[0].startswith('#'): tests.extend(guts) fp.close() # Strip .py extensions. if args: args = map(removepy, args) if tests: tests = map(removepy, tests) stdtests = STDTESTS[:] nottests = NOTTESTS[:] if exclude: for arg in args: if arg in stdtests: stdtests.remove(arg) nottests[:0] = args args = [] tests = tests or args or findtests(testdir, stdtests, nottests) if single: tests = tests[:1] if randomize: random.seed(random_seed) print "Using random seed", random_seed random.shuffle(tests) if trace: import trace tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix], trace=False, count=True) test_times = [] test_support.use_resources = use_resources save_modules = sys.modules.keys() def accumulate_result(test, result): ok, test_time = result test_times.append((test_time, test)) if ok == PASSED: good.append(test) elif ok == FAILED: bad.append(test) elif ok == ENV_CHANGED: bad.append(test) environment_changed.append(test) elif ok == SKIPPED: skipped.append(test) elif ok == RESOURCE_DENIED: skipped.append(test) resource_denieds.append(test) if use_mp: from threading import Thread from Queue import Queue, Empty from subprocess import Popen, PIPE, STDOUT from collections import deque debug_output_pat = re.compile(r"\[\d+ refs\]$") pending = deque() output = Queue() for test in tests: args_tuple = ( (test, verbose, quiet, testdir), dict(huntrleaks=huntrleaks, use_resources=use_resources) ) pending.append((test, args_tuple)) def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None, None)) return # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=PIPE, universal_newlines=True, close_fds=True) stdout, stderr = popen.communicate() # Strip last refcount output line if it exists, since it # comes from the shutdown of the interpreter in the subcommand. stderr = debug_output_pat.sub("", stderr) stdout, _, result = stdout.strip().rpartition("\n") result = json.loads(result) if not quiet: stdout = test+'\n'+stdout output.put((test, stdout.rstrip(), stderr.rstrip(), result)) except BaseException: output.put((None, None, None, None)) raise workers = [Thread(target=work) for i in range(use_mp)] for worker in workers: worker.start() finished = 0 while finished < use_mp: test, stdout, stderr, result = output.get() if test is None: finished += 1 continue if stdout: print stdout if stderr: print >>sys.stderr, stderr if result[0] == INTERRUPTED: assert result[1] == 'KeyboardInterrupt' pending.clear() raise KeyboardInterrupt # What else? accumulate_result(test, result) for worker in workers: worker.join() else: for test in tests: if not quiet: print test sys.stdout.flush() if trace: # If we're tracing code coverage, then we don't exit with status # if on a false return value from main. tracer.runctx('runtest(test, verbose, quiet, testdir)', globals=globals(), locals=vars()) else: try: result = runtest(test, verbose, quiet, testdir, huntrleaks) accumulate_result(test, result) if verbose3 and result[0] == FAILED: print "Re-running test %r in verbose mode" % test runtest(test, True, quiet, testdir, huntrleaks) except KeyboardInterrupt: # print a newline separate from the ^C print break except: raise if findleaks: gc.collect() if gc.garbage: print "Warning: test created", len(gc.garbage), print "uncollectable object(s)." # move the uncollectable objects somewhere so we don't see # them again found_garbage.extend(gc.garbage) del gc.garbage[:] # Unload the newly imported modules (best effort finalization) for module in sys.modules.keys(): if module not in save_modules and module.startswith("test."): test_support.unload(module) # The lists won't be sorted if running with -r good.sort() bad.sort() skipped.sort() environment_changed.sort() if good and not quiet: if not bad and not skipped and len(good) > 1: print "All", print count(len(good), "test"), "OK." if print_slow: test_times.sort(reverse=True) print "10 slowest tests:" for time, test in test_times[:10]: print "%s: %.1fs" % (test, time) if bad: bad = set(bad) - set(environment_changed) if bad: print count(len(bad), "test"), "failed:" printlist(bad) if environment_changed: print "{} altered the execution environment:".format( count(len(environment_changed), "test")) printlist(environment_changed) if skipped and not quiet: print count(len(skipped), "test"), "skipped:" printlist(skipped) e = _ExpectedSkips() plat = sys.platform if e.isvalid(): surprise = set(skipped) - e.getexpected() - set(resource_denieds) if surprise: print count(len(surprise), "skip"), \ "unexpected on", plat + ":" printlist(surprise) else: print "Those skips are all expected on", plat + "." else: print "Ask someone to teach regrtest.py about which tests are" print "expected to get skipped on", plat + "." if verbose2 and bad: print "Re-running failed tests in verbose mode" for test in bad: print "Re-running test %r in verbose mode" % test sys.stdout.flush() try: test_support.verbose = True ok = runtest(test, True, quiet, testdir, huntrleaks) except KeyboardInterrupt: # print a newline separate from the ^C print break except: raise if single: alltests = findtests(testdir, stdtests, nottests) for i in range(len(alltests)): if tests[0] == alltests[i]: if i == len(alltests) - 1: os.unlink(filename) else: fp = open(filename, 'w') fp.write(alltests[i+1] + '\n') fp.close() break else: os.unlink(filename) if trace: r = tracer.results() r.write_results(show_missing=True, summary=True, coverdir=coverdir) if runleaks: os.system("leaks %d" % os.getpid()) sys.exit(len(bad) > 0)
|
105f0d7e51a424a7529837f5f84b9f0110141e58 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/105f0d7e51a424a7529837f5f84b9f0110141e58/regrtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
8381,
16,
4433,
33,
8381,
16,
2202,
33,
8381,
16,
2744,
554,
33,
8381,
16,
628,
768,
33,
7036,
16,
1104,
298,
581,
87,
33,
8381,
16,
999,
67,
4683,
33,
7036,
16,
2606,
33,
8381,
16,
5590,
1214,
2218,
16356,
2187,
1086,
298,
581,
87,
33,
8381,
16,
366,
318,
313,
298,
581,
87,
33,
8381,
16,
3988,
22,
33,
8381,
16,
1172,
67,
87,
821,
33,
8381,
16,
2744,
67,
12407,
33,
7036,
16,
999,
67,
1291,
33,
7036,
16,
3988,
23,
33,
8381,
4672,
3536,
5289,
279,
1842,
11371,
18,
225,
1220,
2546,
8940,
1296,
17,
1369,
702,
471,
23934,
2097,
6885,
15905,
18,
225,
7434,
1493,
279,
666,
434,
2064,
4191,
1842,
1257,
261,
10444,
13,
1842,
1214,
1493,
326,
1867,
316,
1492,
358,
2324,
364,
7434,
261,
10444,
13,
225,
12109,
1308,
2353,
326,
6600,
1842,
11371,
903,
8626,
715,
2545,
358,
4800,
1842,
1214,
31,
309,
518,
1807,
16195,
16,
326,
1867,
4191,
326,
6600,
1842,
11371,
353,
19242,
364,
18,
225,
971,
326,
7434,
1237,
353,
16195,
16,
326,
7434,
12889,
603,
326,
1296,
17,
1369,
903,
506,
1399,
18,
225,
971,
716,
1807,
1008,
16,
4885,
16,
1508,
777,
380,
18,
2074,
1390,
8435,
598,
1842,
67,
903,
506,
1399,
18,
225,
1021,
1308,
805,
1775,
261,
11369,
16,
10902,
16,
4433,
16,
2202,
16,
2744,
554,
16,
1104,
298,
581,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
8381,
16,
4433,
33,
8381,
16,
2202,
33,
8381,
16,
2744,
554,
33,
8381,
16,
628,
768,
33,
7036,
16,
1104,
298,
581,
87,
33,
8381,
16,
999,
67,
4683,
33,
7036,
16,
2606,
33,
8381,
16,
5590,
1214,
2218,
16356,
2187,
1086,
298,
581,
87,
33,
8381,
16,
366,
318,
313,
298,
581,
87,
33,
8381,
16,
3988,
22,
33,
8381,
16,
1172,
67,
87,
821,
33,
8381,
16,
2744,
67,
12407,
33,
7036,
16,
999,
67,
1291,
33,
7036,
16,
3988,
23,
33,
8381,
4672,
3536,
5289,
279,
1842,
11371,
18,
225,
1220,
2546,
8940,
1296,
17,
1369,
702,
2
] |
def _moveMessage(self, old_msg, dest): msg = IMAPMessage(dest.uid, dest.folder_name, None) msg.setId(msg.extractTime()) msg.copy(old_msg) msg.Append() old_msg.Delete() def _filterMessage(self, msg): if msg.isClsfdHam(): print "untouched" pass elif msg.isClsfdSpam(): self._moveMessage(msg, self.spam_folder) else: self._moveMessage(msg, self.unsure_folder)
|
def Logout(self): # sign off if options.imap_expunge: imap.expunge() imap.logout()
|
78562f294fdc412cde22daf1b88e62102ccf5c10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/78562f294fdc412cde22daf1b88e62102ccf5c10/imapfilter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29381,
12,
2890,
4672,
468,
1573,
3397,
309,
702,
18,
12161,
67,
2749,
25561,
30,
20226,
18,
2749,
25561,
1435,
20226,
18,
21229,
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,
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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
] |
|
else: try: config = omero.config.ConfigXml(str(cfg_xml)) config.save() except portalocker.LockException: self.ctx.die(111, "Could not acquire lock on %s" % cfg_xml)
|
try: config = omero.config.ConfigXml(str(cfg_xml)) config.save() except portalocker.LockException: self.ctx.die(111, "Could not acquire lock on %s" % cfg_xml)
|
def open_config(self, unused): """ Callers are responsible for closing the returned ConfigXml object. """ cfg_xml = self.ctx.dir / "etc" / "grid" / "config.xml" cfg_tmp = self.ctx.dir / "etc" / "grid" / "config.xml.tmp" if not cfg_xml.exists(): if cfg_tmp.exists(): self.ctx.dbg("Removing old config.xml.tmp") cfg_tmp.remove() config = omero.config.ConfigXml(str(cfg_tmp)) try: self.ctx.controls["config"].upgrade(None, config) finally: config.save() self.ctx.err("Creating %s" % cfg_xml) cfg_tmp.rename(str(cfg_xml)) else: # File exists, but we create it for updating. try: config = omero.config.ConfigXml(str(cfg_xml)) config.save() except portalocker.LockException: self.ctx.die(111, "Could not acquire lock on %s" % cfg_xml) return config
|
9ea0cb6ceee9761b067b7476edb2248df207c4d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/9ea0cb6ceee9761b067b7476edb2248df207c4d3/admin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
1425,
12,
2890,
16,
10197,
4672,
3536,
3049,
414,
854,
14549,
364,
7647,
326,
2106,
1903,
4432,
733,
18,
3536,
2776,
67,
2902,
273,
365,
18,
5900,
18,
1214,
342,
315,
14175,
6,
342,
315,
5222,
6,
342,
315,
1425,
18,
2902,
6,
2776,
67,
5645,
273,
365,
18,
5900,
18,
1214,
342,
315,
14175,
6,
342,
315,
5222,
6,
342,
315,
1425,
18,
2902,
18,
5645,
6,
309,
486,
2776,
67,
2902,
18,
1808,
13332,
309,
2776,
67,
5645,
18,
1808,
13332,
365,
18,
5900,
18,
1966,
75,
2932,
18939,
1592,
642,
18,
2902,
18,
5645,
7923,
2776,
67,
5645,
18,
4479,
1435,
642,
273,
8068,
2439,
18,
1425,
18,
809,
4432,
12,
701,
12,
7066,
67,
5645,
3719,
775,
30,
365,
18,
5900,
18,
24350,
9614,
1425,
6,
8009,
15097,
12,
7036,
16,
642,
13,
3095,
30,
642,
18,
5688,
1435,
365,
18,
5900,
18,
370,
2932,
11092,
738,
87,
6,
738,
2776,
67,
2902,
13,
2776,
67,
5645,
18,
18539,
12,
701,
12,
7066,
67,
2902,
3719,
469,
30,
468,
1387,
1704,
16,
1496,
732,
752,
518,
364,
9702,
18,
775,
30,
642,
273,
8068,
2439,
18,
1425,
18,
809,
4432,
12,
701,
12,
7066,
67,
2902,
3719,
642,
18,
5688,
1435,
1335,
11899,
6203,
18,
2531,
503,
30,
365,
18,
5900,
18,
72,
1385,
12,
20227,
16,
315,
4445,
486,
10533,
2176,
603,
738,
87,
6,
738,
2776,
67,
2902,
13,
327,
642,
2,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
1425,
12,
2890,
16,
10197,
4672,
3536,
3049,
414,
854,
14549,
364,
7647,
326,
2106,
1903,
4432,
733,
18,
3536,
2776,
67,
2902,
273,
365,
18,
5900,
18,
1214,
342,
315,
14175,
6,
342,
315,
5222,
6,
342,
315,
1425,
18,
2902,
6,
2776,
67,
5645,
273,
365,
18,
5900,
18,
1214,
342,
315,
14175,
6,
342,
315,
5222,
6,
342,
315,
1425,
18,
2902,
18,
5645,
6,
309,
486,
2776,
67,
2902,
18,
1808,
13332,
309,
2776,
67,
5645,
18,
1808,
13332,
365,
18,
5900,
18,
1966,
75,
2932,
18939,
1592,
642,
18,
2902,
18,
5645,
7923,
2776,
67,
5645,
18,
4479,
1435,
642,
273,
8068,
2439,
18,
1425,
18,
809,
4432,
12,
701,
12,
2
] |
from Bio.config.DBRegistry import db
|
def __init__(self, database, format, parser = None): """Initialize an NCBI dictionary to retrieve sequences.
|
217f7ac2b50a03689165ce526b2ff39532621d4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/217f7ac2b50a03689165ce526b2ff39532621d4b/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
740,
16,
2082,
273,
599,
4672,
3536,
7520,
392,
423,
8876,
45,
3880,
358,
4614,
8463,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
740,
16,
2082,
273,
599,
4672,
3536,
7520,
392,
423,
8876,
45,
3880,
358,
4614,
8463,
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
] |
|
'en': u'Uncyclopedia talk',
|
def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia'
|
5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
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,
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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
] |
|
build(file, work)
|
build(file, work, hgloc)
|
def rebuild(file, work): print "Rebuild...." clean(file, work) build(file, work)
|
28fabf177fb94b1161310db40dd45aa975737292 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6977/28fabf177fb94b1161310db40dd45aa975737292/version.cpp.maker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13419,
12,
768,
16,
1440,
4672,
1172,
315,
426,
3510,
6265,
6,
2721,
12,
768,
16,
1440,
13,
1361,
12,
768,
16,
1440,
16,
22576,
1829,
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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
22398,
316,
326,
981,
30,
1652,
13419,
12,
768,
16,
1440,
4672,
1172,
315,
426,
3510,
6265,
6,
2721,
12,
768,
16,
1440,
13,
1361,
12,
768,
16,
1440,
16,
22576,
1829,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
outputFile.write("\tstatic float fA[STATE_NO];\n") outputFile.write("\tstatic float fA1[STATE_NO];\n") outputFile.write("\tstatic float fA2[STATE_NO];\n")
|
outputFile.write("\t float fA[STATE_NO];\n") outputFile.write("\t float fA1[STATE_NO];\n") outputFile.write("\t float fA2[STATE_NO];\n")
|
def writeCModel(outputFile, primaryParameterList, parameterList, cParameters, forwardModel, silentModel, subModel): """This function writes the .c file. """ outputFile = open(outputFile, 'w') #Write header lines outputFile.write("#include <stdio.h>\n") outputFile.write("#include <assert.h>\n") outputFile.write('#include "fastCMaths.h"\n') outputFile.write('#include "substitutionC.h"\n') outputFile.write('#include "sequenceGraphC.h"\n') outputFile.write('#include "xyzModelC.h"\n\n') #Number of states outputFile.write("#define STATE_NO %i\n\n" % (len(forwardModel.getStateNames())-2)) #Now write out states. stateIndex = 0 for state in forwardModel.getStateNames(): i = forwardModel.getStateType(state) if i != START and i != END: outputFile.write("const int32_t %s = %i;\n" %(state, stateIndex)) stateIndex += 1 outputFile.write("\n") #Now write state check functions. l = [ (SILENT, "Silent"), (DELETE_XZ, "XYDelete"),\ (INSERT_X, "XInsert"), (INSERT_Z, "YInsert"),\ (DELETE_X, "XDelete"), (DELETE_Z, "YDelete"),\ (MATCH, "Match") ] for stateType, functionName in l: outputFile.write("inline int32_t is%s(int32_t state) {\n" % functionName) for state in forwardModel.getStateNames(stateType): outputFile.write("\tif(state == %s) return TRUE;\n" % state) outputFile.write("\treturn FALSE; \n}\n\n") outputFile.write("struct CombinedTransitionModel *constructCombinedTransitionModel(float DX, float DZ, int32_t includeRoot, struct ParameterStruct *pS) {\n") outputFile.write("\tstruct CombinedTransitionModel *temp = mallocLocal(sizeof(struct CombinedTransitionModel));\n\n") outputFile.write('\tlogInfo("Building combined transition model, DX: %%f, DY %%f\\n", DX, DZ);\n') #Are we including the root in these probs. outputFile.write("\ttemp->includeRoot = includeRoot;\n") outputFile.write('\tlogInfo("Is root? " INT_STRING " \\n", temp->includeRoot);\n') #Write out submodel subModel.writeCFile(outputFile) #Write out C parameters. outputFile.write('\tint32_t i;\n\tint32_t j;\n') outputFile.write('\tfor(i=0; i<ALPHABET_SIZE; i++) {\n') outputFile.write('\t\tlogInfo("Stationary frequency %i value %%f \\n", i, temp->subModelX->stationaryDistribution[i]);\n\t}\n') outputFile.write('\tfor(i=0; i<ALPHABET_SIZE; i++) {\n') outputFile.write('\t\tfor(j=0; j<ALPHABET_SIZE; j++) {\n') outputFile.write('\t\t\tlogInfo("Substitition probability (X Branch) %i %i, forward value %%f, backward value %%f\\n", i, j, temp->subModelX->forward[i*ALPHABET_SIZE + j], temp->subModelX->backward[i*ALPHABET_SIZE + j]);\n\t\t}\n\t}\n') outputFile.write('\tfor(i=0; i<ALPHABET_SIZE; i++) {\n') outputFile.write('\t\tfor(j=0; j<ALPHABET_SIZE; j++) {\n') outputFile.write('\t\t\tlogInfo("Substitition probability (Z Branch) %i %i, forward value %%f, backward value %%f\\n", i, j, temp->subModelY->forward[i*ALPHABET_SIZE + j], temp->subModelY->backward[i*ALPHABET_SIZE + j]);\n\t\t}\n\t}\n') for parameterName, value in primaryParameterList: outputFile.write("\tfloat %s = pS->%s;\n" % (parameterName, parameterName)) outputFile.write('\tlogInfo("Parameter %s, value %%f\\n", %s);\n' % (parameterName, parameterName)) #Now write out parameters. for parameterName, value in parameterList: if (parameterName, value) not in primaryParameterList: outputFile.write("\tfloat %s = %s;\n" % (parameterName, value)) outputFile.write('\tlogInfo("Parameter %s, value %%f\\n", %s);\n' % (parameterName, parameterName)) #Now write out all transitions for toState in forwardModel.getStateNames(): i = forwardModel.getTransitionsTo(toState) for fromState in i.keys(): #print "This is", fromState, toState, i[fromState] outputFile.write("\ttemp->ft%s_%s = LOG(%s);\n" % (fromState, toState, i[fromState])) outputFile.write("\ttemp->tbt%s_%s = LOG(%s);\n" % (fromState, toState, replaceCParameters(i[fromState], cParameters))) outputFile.write('\tlogInfo("From state %s, To state %s, Forward Parameter %%f Traceback parameter %%f \\n", temp->ft%s_%s, temp->tbt%s_%s);\n' % (fromState, toState, fromState, toState, fromState, toState)) outputFile.write("\n") #States already organised into correct order. #Write out non-log parameters. for toState in silentModel.getStateNames(): i = silentModel.getTransitionsTo(toState) for fromState in i.keys(): #print "This is", fromState, toState, i[fromState] outputFile.write("\tfloat tlt%s_%s = %s;\n" % (fromState, toState, i[fromState])) outputFile.write("\tstatic float fA[STATE_NO];\n") outputFile.write("\tstatic float fA1[STATE_NO];\n") outputFile.write("\tstatic float fA2[STATE_NO];\n") outputFile.write("\tfloat *l1;\n\tfloat *l2;\n\tfloat *l3;\n") outputFile.write("\tl1 = fA1;\n") outputFile.write("\tl2 = fA2;\n") for fromState in silentModel.getStateNames(): #Initialise level 0 and 1 and output-matrix outputFile.write("\tfor(i=0; i<STATE_NO; i++) {\n\t\tl1[i] = 0.0;\n\t\tl2[i] = 0.0;\n\t\tfA[i] = 0.0;\n\t}\n") i = silentModel.getStateType(fromState) if i == SILENT: outputFile.write("\tl1[%s] = 1.0;\n" % fromState) else: outputFile.write("\tl2[%s] = 1.0;\n" % fromState) #Do levels outputFile.write("\tfor(i=0; i<1000; i++) {\n") #Do silent transitions for toState in silentModel.getStateNames(SILENT): for fromState2 in silentModel.getTransitionsTo(toState): outputFile.write("\t\tl1[%s] += l1[%s] * tlt%s_%s;\n" % (toState, fromState2, fromState2, toState)) #Add level to output for state in silentModel.getStateNames(): outputFile.write("\t\tfA[%s] += l1[%s];\n" % (state, state)) #Do delete-XZ transitions for toState in silentModel.getStateNames(DELETE_XZ): for fromState2 in silentModel.getTransitionsTo(toState): outputFile.write("\t\tl2[%s] += l1[%s] * tlt%s_%s;\n" % (toState, fromState2, fromState2, toState)) #Make level 2 level 1 and initialise level 2 with 0.0s outputFile.write("\t\tl3 = l1;\n") outputFile.write("\t\tl1 = l2;\n") outputFile.write("\t\tl2 = l3;\n") outputFile.write("\t\tfor(j=0; j<STATE_NO; j++)\n\t\t\tl2[j] = 0.0;\n\t}\n") #Now write out these computed transitions for toState in silentModel.getStateNames(): outputFile.write("\ttemp->lt%s_%s = LOG(fA[%s]);\n" % (fromState, toState, toState)) outputFile.write('\tlogInfo("From state %s, To state %s, LOOP PARAMETER %%f \\n", temp->lt%s_%s);\n' % (fromState, toState, fromState, toState)) outputFile.write("\treturn temp; \n}\n\n") l = [ (INSERT_X, "insertX"), (INSERT_Z, "insertY"), (DELETE_X, "deleteX"), (DELETE_Z, "deleteY") ] for stateType, functionName in l: #Forward function outputFile.write("inline void %sFn(struct AlignmentDataStructures *aDS, struct CombinedTransitionModel *model, struct Edge *edge," % functionName) outputFile.write("void (*assignFn)(struct AlignmentDataStructures *aDS, int32_t, int32_t, float)) {\n") for toState in forwardModel.getStateNames(stateType): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\tassignFn(aDS, %s, %s, model->ft%s_%s + edge->edgeScore + edge->subScore);\n" \ % (fromState, toState, fromState, toState)) outputFile.write("}\n\n") #Traceback function outputFile.write("inline void %sFn_TraceBack(struct AlignmentDataStructures *aDS, struct CombinedTransitionModel *model, struct Edge *edge," % functionName) outputFile.write("void (*assignFn)(struct AlignmentDataStructures *aDS, int32_t, int32_t, float, float)) {\n") outputFile.write("\tif (model->includeRoot) {\n\t\tfloat i;\n") for toState in forwardModel.getStateNames(stateType): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\t\ti = model->ft%s_%s + edge->edgeScore + edge->subScore;\n" % (fromState, toState)) outputFile.write("\t\tassignFn(aDS, %s, %s, i, i);\n" % (fromState, toState)) outputFile.write("\t}\n") outputFile.write("\telse {\n") for toState in forwardModel.getStateNames(stateType): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\t\tassignFn(aDS, %s, %s, model->ft%s_%s + edge->edgeScore + edge->subScore, model->tbt%s_%s + edge->edgeScore);\n" \ % (fromState, toState, fromState, toState, fromState, toState)) outputFile.write("\t}\n") outputFile.write("}\n\n") #Forward match function outputFile.write("inline void matchFn(struct AlignmentDataStructures *aDS, struct CombinedTransitionModel *model,") outputFile.write("struct Edge *edgeX, struct Edge *edgeY, void (*assignFn)(struct AlignmentDataStructures *aDS, int32_t, int32_t, float)) {\n") outputFile.write("\tstatic float m[ALPHABET_SIZE];\n") outputFile.write("\tstatic float i;\n") outputFile.write("\tstatic float j;\n") outputFile.write("\tmultiplyWV(edgeX->wV, edgeY->wV, m, ALPHABET_SIZE);\n") outputFile.write("\ti = LOG(combineWV(m, model->ancestorProbs, ALPHABET_SIZE));\n") for toState in forwardModel.getStateNames(MATCH): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\tj = model->ft%s_%s + edgeX->edgeScore + edgeY->edgeScore + i;\n" % (fromState, toState)) outputFile.write("\tassignFn(aDS, %s, %s, j);\n" % (fromState, toState)) outputFile.write("}\n\n") #Traceback match function outputFile.write("inline void matchFn_TraceBack(struct AlignmentDataStructures *aDS, struct CombinedTransitionModel *model,") outputFile.write("struct Edge *edgeX, struct Edge *edgeY, void (*assignFn)(struct AlignmentDataStructures *aDS, int32_t, int32_t, float, float)) {\n") outputFile.write("\tstatic float m[ALPHABET_SIZE];\n") outputFile.write("\tstatic float i;\n") outputFile.write("\tstatic float j;\n") outputFile.write("\tstatic float k;\n") outputFile.write("\tstatic float l;\n") outputFile.write("\tmultiplyWV(edgeX->wV, edgeY->wV, m, ALPHABET_SIZE);\n") outputFile.write("\ti = LOG(sumWV(m, ALPHABET_SIZE));\n") outputFile.write("\tj = LOG(combineWV(m, model->ancestorProbs, ALPHABET_SIZE));\n") outputFile.write("\tif (model->includeRoot) {\n") for toState in forwardModel.getStateNames(MATCH): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\t\tl = model->ft%s_%s + edgeX->edgeScore + edgeY->edgeScore + j;\n" % (fromState, toState)) outputFile.write("\t\tassignFn(aDS, %s, %s, l, l);\n" % (fromState, toState)) outputFile.write("\t}\n") outputFile.write("\telse {\n") for toState in forwardModel.getStateNames(MATCH): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\t\tk = model->tbt%s_%s + edgeX->edgeScore + edgeY->edgeScore + i;\n" % (fromState, toState)) outputFile.write("\t\tl = model->ft%s_%s + edgeX->edgeScore + edgeY->edgeScore + j;\n" % (fromState, toState)) outputFile.write("\t\tassignFn(aDS, %s, %s, l, k);\n" % (fromState, toState)) outputFile.write("\t}\n") outputFile.write("}\n\n") #Forward silent/delete_xz function outputFile.write("inline void silentFn(struct AlignmentDataStructures *aDS, struct CombinedTransitionModel *model, float *cell,") outputFile.write("void (*assignFn)(struct AlignmentDataStructures *aDS, int32_t, int32_t, float)) {\n") for toState in silentModel.getStateNames(): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): i = forwardModel.getStateType(fromState) if i != SILENT and i != DELETE_XZ: outputFile.write("\tassignFn(aDS, %s, %s, model->ft%s_%s);\n" % (fromState, toState, fromState, toState)) outputFile.write("\tstatic float fA[STATE_NO];\n\tfloat i;\n") for state in silentModel.getStateNames(): outputFile.write("\tfA[%s] = cell[%s];\n" % (state, state)) for toState in silentModel.getStateNames(): outputFile.write("\ti = LOG_ZERO;\n") for fromState in silentModel.getStateNames(): outputFile.write("\tLOG_PLUS_EQUALS(&i, fA[%s] + model->lt%s_%s);\n" % (fromState, fromState, toState)) outputFile.write("\tcell[%s] = i;\n" % toState) outputFile.write("}\n\n") #Traceback silent/delete_xz functions l = [ (SILENT, "silent"), (DELETE_XZ, "delete") ] for stateType, functionName in l: outputFile.write("inline void %sFn_TraceBack(struct AlignmentDataStructures *aDS, struct CombinedTransitionModel *model, void (*assignFn)(struct AlignmentDataStructures *aDS, int32_t, int32_t, float, float)) {\n" % functionName) outputFile.write("\tif (model->includeRoot) {\n") for toState in forwardModel.getStateNames(stateType): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\t\tassignFn(aDS, %s, %s, model->ft%s_%s, model->ft%s_%s);\n" \ % (fromState, toState, fromState, toState, fromState, toState)) outputFile.write("\t}\n") outputFile.write("\telse {\n") for toState in forwardModel.getStateNames(stateType): for fromState in forwardModel.getTransitionsTo(toState).keys(): if not forwardModel.isStart(fromState): outputFile.write("\t\tassignFn(aDS, %s, %s, model->ft%s_%s, model->tbt%s_%s);\n" \ % (fromState, toState, fromState, toState, fromState, toState)) outputFile.write("\t}\n}\n\n") #Destructor outputFile.write("void destructCombinedTransitionModel(struct CombinedTransitionModel *model) { free(model); }\n\n") #State no outputFile.write("int32_t stateNo() { return STATE_NO; }\n\n") #Start states outputFile.write("float *startStates(struct CombinedTransitionModel *model) {\n") outputFile.write("\tfloat *i; int32_t j; i = mallocLocal(sizeof(float)*STATE_NO);\n") outputFile.write("\tfor (j=0;j<STATE_NO; j++) i[j] = LOG_ZERO;\n") i = forwardModel.getStateNames(START) assert len(i) == 1, "More than one start state" startState = list(i)[0] for toState in forwardModel.getTransitionsFrom(startState).keys(): if forwardModel.getStateType(toState) != END: outputFile.write("\ti[%s] = model->ft%s_%s;\n" % (toState, startState, toState)) outputFile.write("\treturn i; \n}\n\n") #End states outputFile.write("float *endStates(struct CombinedTransitionModel *model) {\n") outputFile.write("\tfloat *i; int32_t j; i = mallocLocal(sizeof(float)*STATE_NO);\n") outputFile.write("\tfor (j=0;j<STATE_NO; j++) i[j] = LOG_ZERO;\n\n") i = forwardModel.getStateNames(END) assert len(i) == 1, "More than one end state" endState = list(i)[0] for fromState in forwardModel.getTransitionsTo(endState).keys(): if forwardModel.getStateType(fromState) != START: outputFile.write("\ti[%s] = model->ft%s_%s;\n" % (fromState, fromState, endState)) outputFile.write("\treturn i; \n}\n\n") #Paramaeter struct constructor outputFile.write("struct ParameterStruct *constructParamStruct(int argc, char *argv[]) {\n") outputFile.write("\tint32_t i;\n\tchar *mod;\n\tstruct ParameterStruct *pM = mallocLocal(sizeof(struct ParameterStruct));\n") outputFile.write("\tfloat floatParser;\n") for parameterName, value in primaryParameterList: outputFile.write("\tpM->%s = %s;\n" % (parameterName, value)) outputFile.write("\tfor(i=1; i<argc; i++) {\n") outputFile.write("\t\tmod = argv[i];\n") outputFile.write("\t\tif(mod[0] != '-') {\n\t\t\tcontinue;\n\t\t}\n\t\tassert(mod[0] == '-');\n") outputFile.write("\t\tswitch(mod[1]) {\n") characterNo = 65 for parameterName, value in primaryParameterList: outputFile.write("\t\t\tcase '%s':\n" % chr(characterNo)) characterNo += 1 outputFile.write('\t\t\t\tsscanf(argv[++i], "%f", &floatParser);\n') outputFile.write("\t\t\t\tpM->%s = floatParser;\n\t\t\tbreak;\n" % parameterName) outputFile.write("\t\t}\n\t}\n") outputFile.write("\treturn pM; \n}\n\n") #Parameter struct destructor. outputFile.write("void destructParamStruct(struct ParameterStruct *pM) {\n\tfree(pM);\n}\n\n") #Parameter reporter outputFile.write("void printParamStruct() {\n") characterNo = 65 for parameterName, value in primaryParameterList: outputFile.write('\tfprintf(stderr, "\t-%s [FLOAT] value of parameter %s , default: %s \\n");\n' % (chr(characterNo), parameterName, value)) characterNo += 1 outputFile.write("}\n\n") outputFile.close()
|
dbf974b4b00751e489af56722464025f38edde42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13140/dbf974b4b00751e489af56722464025f38edde42/TransducerCompiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
39,
1488,
12,
2844,
812,
16,
3354,
1662,
682,
16,
1569,
682,
16,
276,
2402,
16,
5104,
1488,
16,
10404,
1488,
16,
720,
1488,
4672,
3536,
2503,
445,
7262,
326,
263,
71,
585,
18,
3536,
15047,
273,
1696,
12,
2844,
812,
16,
296,
91,
6134,
225,
468,
3067,
1446,
2362,
15047,
18,
2626,
2932,
7,
6702,
411,
5084,
1594,
18,
76,
5333,
82,
7923,
15047,
18,
2626,
2932,
7,
6702,
411,
11231,
18,
76,
5333,
82,
7923,
15047,
18,
2626,
2668,
7,
6702,
315,
8076,
9611,
421,
87,
18,
76,
12691,
82,
6134,
15047,
18,
2626,
2668,
7,
6702,
315,
1717,
14278,
39,
18,
76,
12691,
82,
6134,
15047,
18,
2626,
2668,
7,
6702,
315,
6178,
4137,
39,
18,
76,
12691,
82,
6134,
15047,
18,
2626,
2668,
7,
6702,
315,
17177,
1488,
39,
18,
76,
12691,
82,
64,
82,
6134,
225,
468,
1854,
434,
5493,
15047,
18,
2626,
2932,
7,
11255,
7442,
67,
3417,
738,
77,
64,
82,
64,
82,
6,
738,
261,
1897,
12,
11565,
1488,
18,
588,
1119,
1557,
10756,
17,
22,
3719,
225,
468,
8674,
1045,
596,
5493,
18,
919,
1016,
273,
374,
364,
919,
316,
5104,
1488,
18,
588,
1119,
1557,
13332,
277,
273,
5104,
1488,
18,
588,
1119,
559,
12,
2019,
13,
309,
277,
480,
10485,
471,
277,
480,
7273,
30,
15047,
18,
2626,
2932,
10248,
509,
1578,
67,
88,
738,
87,
273,
738,
77,
9747,
82,
6,
8975,
2019,
16,
919,
1016,
3719,
919,
1016,
1011,
404,
225,
15047,
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,
39,
1488,
12,
2844,
812,
16,
3354,
1662,
682,
16,
1569,
682,
16,
276,
2402,
16,
5104,
1488,
16,
10404,
1488,
16,
720,
1488,
4672,
3536,
2503,
445,
7262,
326,
263,
71,
585,
18,
3536,
15047,
273,
1696,
12,
2844,
812,
16,
296,
91,
6134,
225,
468,
3067,
1446,
2362,
15047,
18,
2626,
2932,
7,
6702,
411,
5084,
1594,
18,
76,
5333,
82,
7923,
15047,
18,
2626,
2932,
7,
6702,
411,
11231,
18,
76,
5333,
82,
7923,
15047,
18,
2626,
2668,
7,
6702,
315,
8076,
9611,
421,
87,
18,
76,
12691,
82,
6134,
15047,
18,
2626,
2668,
7,
6702,
315,
1717,
14278,
39,
18,
76,
12691,
82,
6134,
15047,
18,
2626,
2668,
7,
6702,
315,
6178,
4137,
2
] |
raise TypeError, "type %s of %s not understood"%(type(d),d)
|
raise TypeError, "type %s of %s not understood"%(type(d), d)
|
def polynomial_system(self, P=None, K=None): """ Return a MPolynomialSystem for self for a given plaintext-key pair.
|
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
67,
4299,
12,
2890,
16,
453,
33,
7036,
16,
1475,
33,
7036,
4672,
3536,
2000,
279,
490,
5850,
13602,
3163,
364,
365,
364,
279,
864,
11917,
17,
856,
3082,
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,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036,
16,
1475,
33,
7036,
4672,
3536,
2000,
279,
490,
5850,
13602,
3163,
364,
365,
364,
279,
864,
11917,
17,
856,
3082,
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
] |
__file__ + ":TestSimplSMS.test_residual_synthesis"]
|
__file__ + ":TestSimplSMS.test_harmonic_synthesis"]
|
def test_residual_synthesis(self): """test_residual_synthesis Compare pysms residual signal with SMS residual""" audio, sampling_rate = self.get_audio() pysms.sms_init() snd_header = pysms.SMS_SndHeader() # Try to open the input file to fill snd_header if(pysms.sms_openSF(self.input_file, snd_header)): raise NameError("error opening sound file: " + pysms.sms_errorString()) analysis_params = self.pysms_analysis_params(sampling_rate) analysis_params.nFrames = self.num_frames analysis_params.nStochasticCoeff = 128 analysis_params.iStochasticType = pysms.SMS_STOC_APPROX analysis_params.preEmphasis = 0 if pysms.sms_initAnalysis(analysis_params, snd_header) != 0: raise Exception("Error allocating memory for analysis_params") analysis_params.iSizeSound = self.num_samples sms_header = pysms.SMS_Header() pysms.sms_fillHeader(sms_header, analysis_params, "pysms")
|
0fc0718e4e06f3ffc8518b3a3672ede08369617a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10871/0fc0718e4e06f3ffc8518b3a3672ede08369617a/sms.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
455,
5557,
67,
11982,
20432,
12,
2890,
4672,
3536,
3813,
67,
455,
5557,
67,
11982,
20432,
11051,
21027,
959,
20690,
4277,
598,
21297,
20690,
8395,
7447,
16,
11558,
67,
5141,
273,
365,
18,
588,
67,
11509,
1435,
21027,
959,
18,
20984,
67,
2738,
1435,
31158,
67,
3374,
273,
21027,
959,
18,
29533,
67,
55,
4880,
1864,
1435,
468,
6161,
358,
1696,
326,
810,
585,
358,
3636,
31158,
67,
3374,
309,
12,
84,
1900,
959,
18,
20984,
67,
3190,
22395,
12,
2890,
18,
2630,
67,
768,
16,
31158,
67,
3374,
3719,
30,
1002,
25473,
2932,
1636,
10890,
14190,
585,
30,
315,
397,
21027,
959,
18,
20984,
67,
1636,
780,
10756,
6285,
67,
2010,
273,
365,
18,
84,
1900,
959,
67,
12746,
67,
2010,
12,
23002,
67,
5141,
13,
6285,
67,
2010,
18,
82,
15162,
273,
365,
18,
2107,
67,
10278,
6285,
67,
2010,
18,
82,
510,
30774,
4249,
17098,
273,
8038,
6285,
67,
2010,
18,
77,
510,
30774,
559,
273,
21027,
959,
18,
29533,
67,
882,
10809,
67,
2203,
3373,
60,
6285,
67,
2010,
18,
1484,
1514,
844,
17247,
273,
374,
309,
21027,
959,
18,
20984,
67,
2738,
9418,
12,
12746,
67,
2010,
16,
31158,
67,
3374,
13,
480,
374,
30,
1002,
1185,
2932,
668,
4767,
1776,
3778,
364,
6285,
67,
2010,
7923,
6285,
67,
2010,
18,
77,
1225,
24331,
273,
365,
18,
2107,
67,
7319,
16188,
67,
3374,
273,
21027,
959,
18,
29533,
67,
1864,
1435,
21027,
959,
18,
20984,
67,
5935,
1864,
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,
1842,
67,
455,
5557,
67,
11982,
20432,
12,
2890,
4672,
3536,
3813,
67,
455,
5557,
67,
11982,
20432,
11051,
21027,
959,
20690,
4277,
598,
21297,
20690,
8395,
7447,
16,
11558,
67,
5141,
273,
365,
18,
588,
67,
11509,
1435,
21027,
959,
18,
20984,
67,
2738,
1435,
31158,
67,
3374,
273,
21027,
959,
18,
29533,
67,
55,
4880,
1864,
1435,
468,
6161,
358,
1696,
326,
810,
585,
358,
3636,
31158,
67,
3374,
309,
12,
84,
1900,
959,
18,
20984,
67,
3190,
22395,
12,
2890,
18,
2630,
67,
768,
16,
31158,
67,
3374,
3719,
30,
1002,
25473,
2932,
1636,
10890,
14190,
585,
30,
315,
397,
21027,
959,
18,
20984,
67,
1636,
780,
10756,
6285,
67,
2010,
273,
365,
18,
84,
2
] |
self.size = int(pkg["signature"]["payloadsize"][0])
|
self.size = int(self["signature"]["payloadsize"][0])
|
def read(self, tags=None, ntags=None): """Open and read the package.
|
f1f30747463529bf8b9217a5f9d86f95818a234e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/f1f30747463529bf8b9217a5f9d86f95818a234e/package.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2342,
33,
7036,
16,
290,
4156,
33,
7036,
4672,
3536,
3678,
471,
855,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2342,
33,
7036,
16,
290,
4156,
33,
7036,
4672,
3536,
3678,
471,
855,
326,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MethodHashCodeTestCase)
|
MethodHashCodeTestCase, SingleMethodInterfaceTestCase)
|
def test_main(): test_support.run_unittest(FunctionTypeTestCase, MethodHashCodeTestCase)
|
ccf09d7dbab0d69662a7869fec3abc2a0e53d7f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/ccf09d7dbab0d69662a7869fec3abc2a0e53d7f0/test_func_jy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
2083,
559,
4709,
2449,
16,
2985,
21952,
4709,
2449,
16,
10326,
1305,
1358,
4709,
2449,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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4709,
2449,
16,
2985,
21952,
4709,
2449,
16,
10326,
1305,
1358,
4709,
2449,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return Klass.__getattr__(self,name)
|
return self.__class__.__bases__[0].__getattr__(self,name)
|
def __getattr__(self,name): try: return Klass.__getattr__(self,name) except: return getattr(self._parent,name)
|
788a8c96bd22dff11691769d93c9f8b1445d36f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/788a8c96bd22dff11691769d93c9f8b1445d36f8/widgetbase.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
529,
4672,
775,
30,
327,
365,
16186,
1106,
972,
16186,
18602,
972,
63,
20,
8009,
972,
588,
1747,
972,
12,
2890,
16,
529,
13,
1335,
30,
327,
3869,
12,
2890,
6315,
2938,
16,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
529,
4672,
775,
30,
327,
365,
16186,
1106,
972,
16186,
18602,
972,
63,
20,
8009,
972,
588,
1747,
972,
12,
2890,
16,
529,
13,
1335,
30,
327,
3869,
12,
2890,
6315,
2938,
16,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 'svn -N up %s/trunk/l10n-kde4' % localsvnroot os.system('svn -N up %s/trunk/l10n-kde4' % localsvnroot)
|
print 'svn -N up "%s/trunk/l10n-kde4"' % localsvnroot os.system('svn -N up "%s/trunk/l10n-kde4"' % localsvnroot)
|
def validatePage(self): if self.existing.isChecked(): return True if os.system('which svn')!=0: KMessageBox.error(self,i18n("Please install 'subversion' package\nto have Lokalize download KDE translation files."),i18n("Subversion client not found")) return False
|
8656db64abbfe8e85055d82856dd6d64c5e780fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1688/8656db64abbfe8e85055d82856dd6d64c5e780fd/newprojectwizard.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
1964,
12,
2890,
4672,
309,
365,
18,
11711,
18,
291,
11454,
13332,
327,
1053,
309,
1140,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
1964,
12,
2890,
4672,
309,
365,
18,
11711,
18,
291,
11454,
13332,
327,
1053,
309,
1140,
18,
4299,
2668,
12784,
5893,
82,
6134,
5,
33,
20,
30,
1475,
27647,
18,
1636,
12,
2890,
16,
77,
2643,
82,
2932,
8496,
3799,
296,
1717,
1589,
11,
2181,
64,
496,
83,
1240,
511,
601,
287,
554,
4224,
1475,
1639,
4794,
1390,
1199,
3631,
77,
2643,
82,
2932,
1676,
1589,
1004,
486,
1392,
6,
3719,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.buf.write('</'+tag_name+'>')
|
self.buf.write(u''.join(('</', tag_name, '>')).encode('utf-8'))
|
def binary_to_text(self, base=0, depth=0): tag_name = current_map = None dynamic_tag = errors = 0 in_censorship = is_goingdown = False state = 'text' index = base flags = 0 while index < len(self.bin): c, index = read_utf8_char(self.bin, index) oc = ord(c) if state == 'text': if oc == 0: state = 'get flags' continue elif c == '\v': c = '\n' elif c == '&': self.ampersands.append(self.buf.tell()-1) self.buf.write(c.encode('utf-8')) elif state == 'get flags': if oc == 0: state = 'text' continue flags = oc state = 'get tag' elif state == 'get tag': state = 'text' if oc == 0 else 'get attr' if flags & FLAG_OPENING: tag = oc self.buf.write('<') if not (flags & FLAG_CLOSING): is_goingdown = True if tag == 0x8000: state = 'get custom length' continue if flags & FLAG_ATOM: raise LitError('TODO: Atoms not yet implemented') elif tag < len(self.tag_map): tag_name = self.tag_map[tag] current_map = self.tag_to_attr_map[tag] else: dynamic_tag += 1 errors += 1 tag_name = '?'+unichr(tag)+'?' current_map = self.tag_to_attr_map[tag] print 'WARNING: tag %s unknown' % unichr(tag) self.buf.write(unicode(tag_name).encode('utf-8')) elif flags & FLAG_CLOSING: if depth == 0: raise LitError('Extra closing tag') return index elif state == 'get attr': in_censorship = False if oc == 0: if not is_goingdown: tag_name = None dynamic_tag = 0 self.buf.write(' />') else: self.buf.write('>') index = self.binary_to_text(base=index, depth=depth+1) is_goingdown = False if not tag_name: raise LitError('Tag ends before it begins.') self.buf.write('</'+tag_name+'>') dynamic_tag = 0 tag_name = None state = 'text' else: if oc == 0x8000: state = 'get attr length' continue attr = None if oc in current_map and current_map[oc]: attr = current_map[oc] elif oc in self.attr_map: attr = self.attr_map[oc] if not attr or not isinstance(attr, basestring): raise LitError( 'Unknown attribute %d in tag %s' % (oc, tag_name)) if attr.startswith('%'): in_censorship = True state = 'get value length' continue self.buf.write(' ' + unicode(attr).encode('utf-8') + '=') if attr in ['href', 'src']: state = 'get href length' else: state = 'get value length' elif state == 'get value length': if not in_censorship: self.buf.write('"') count = oc - 1 if count == 0: if not in_censorship: self.buf.write('"') in_censorship = False state = 'get attr' continue state = 'get value' if oc == 0xffff: continue if count < 0 or count > (len(self.bin) - index): raise LitError('Invalid character count %d' % count) elif state == 'get value': if count == 0xfffe: if not in_censorship: self.buf.write('%s"' % (oc - 1)) in_censorship = False state = 'get attr' elif count > 0: if not in_censorship: self.buf.write(c) count -= 1 if count == 0: if not in_censorship: self.buf.write('"') in_censorship = False state = 'get attr' elif state == 'get custom length': count = oc - 1 if count <= 0 or count > len(self.bin)-index: raise LitError('Invalid character count %d' % count) dynamic_tag += 1 state = 'get custom' tag_name = '' elif state == 'get custom': tag_name += c count -= 1 if count == 0: self.buf.write(tag_name) state = 'get attr' elif state == 'get attr length': count = oc - 1 if count <= 0 or count > (len(self.bin) - index): raise LitError('Invalid character count %d' % count) self.buf.write(' ') state = 'get custom attr' elif state == 'get custom attr': self.buf.write(c) count -= 1 if count == 0: self.buf.write('=') state = 'get value length'
|
a349d763791c48d47cea1f32778b244aef794b5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/a349d763791c48d47cea1f32778b244aef794b5c/reader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3112,
67,
869,
67,
955,
12,
2890,
16,
1026,
33,
20,
16,
3598,
33,
20,
4672,
1047,
67,
529,
273,
783,
67,
1458,
273,
599,
5976,
67,
2692,
273,
1334,
273,
374,
316,
67,
71,
3975,
3261,
273,
353,
67,
8162,
2378,
273,
1083,
919,
273,
296,
955,
11,
770,
273,
225,
1026,
2943,
273,
374,
225,
1323,
770,
411,
562,
12,
2890,
18,
4757,
4672,
276,
16,
770,
273,
855,
67,
3158,
28,
67,
3001,
12,
2890,
18,
4757,
16,
770,
13,
13345,
273,
4642,
12,
71,
13,
225,
309,
919,
422,
296,
955,
4278,
309,
13345,
422,
374,
30,
919,
273,
296,
588,
2943,
11,
1324,
1327,
276,
422,
2337,
90,
4278,
276,
273,
2337,
82,
11,
1327,
276,
422,
5183,
4278,
365,
18,
931,
414,
5708,
18,
6923,
12,
2890,
18,
4385,
18,
88,
1165,
1435,
17,
21,
13,
365,
18,
4385,
18,
2626,
12,
71,
18,
3015,
2668,
3158,
17,
28,
26112,
225,
1327,
919,
422,
296,
588,
2943,
4278,
309,
13345,
422,
374,
30,
919,
273,
296,
955,
11,
1324,
2943,
273,
13345,
919,
273,
296,
588,
1047,
11,
225,
1327,
919,
422,
296,
588,
1047,
4278,
919,
273,
296,
955,
11,
309,
13345,
422,
374,
469,
296,
588,
1604,
11,
309,
2943,
473,
10972,
67,
11437,
1360,
30,
1047,
273,
13345,
365,
18,
4385,
18,
2626,
2668,
32,
6134,
309,
486,
261,
7133,
473,
10972,
67,
22693,
23708,
4672,
353,
67,
8162,
2378,
273,
1053,
309,
1047,
422,
374,
92,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3112,
67,
869,
67,
955,
12,
2890,
16,
1026,
33,
20,
16,
3598,
33,
20,
4672,
1047,
67,
529,
273,
783,
67,
1458,
273,
599,
5976,
67,
2692,
273,
1334,
273,
374,
316,
67,
71,
3975,
3261,
273,
353,
67,
8162,
2378,
273,
1083,
919,
273,
296,
955,
11,
770,
273,
225,
1026,
2943,
273,
374,
225,
1323,
770,
411,
562,
12,
2890,
18,
4757,
4672,
276,
16,
770,
273,
855,
67,
3158,
28,
67,
3001,
12,
2890,
18,
4757,
16,
770,
13,
13345,
273,
4642,
12,
71,
13,
225,
309,
919,
422,
296,
955,
4278,
309,
13345,
422,
374,
30,
919,
273,
296,
588,
2943,
11,
1324,
1327,
276,
422,
2337,
90,
4278,
276,
273,
2337,
82,
2
] |
outgrids[3], fieldnames[3], field_descriptions[3], format='f')
|
outgrids[3], field_names[3], field_descriptions[3], format='f')
|
def grid_h5flashfiles(h5_filenames, start_time, end_time, frame_interval=120.0, dx=4.0e3, dy=4.0e3, x_bnd = (-100e3, 100e3), y_bnd = (-100e3, 100e3), z_bnd = (-20e3, 20e3), ctr_lat = 35.23833, ctr_lon = -97.46028, min_points_per_flash=10, outpath = '' ): from math import ceil """ Create 2D plan-view density grids for events, flash origins, flash extents, and mean flash footprint frame_interval: Frame time-step in seconds dx, dy: horizontal grid size in m {x,y,z}_bnd: horizontal grid edges in m ctr_lat, ctr_lon: coordinate center Uses an azimuthal equidistant map projection on the WGS84 ellipsoid. read_flashes filter_flash extract_events flash_to_frame frame0_broadcast, frame1_broadcast, ... each broadcaster above sends events and flashes to: projection( event_location), projection(flash_init_location), projection(event_location) which map respectively to: point_density->accum_on_grid(event density), point_density->accum_on_grid(flash init density), extent_density->accum_on_grid(flash_extent_density) grids are in an HDF5 file. how to handle flushing? """ # reference time is the date part of the start_time ref_date = start_time.date() t_ref = datetime(ref_date.year, ref_date.month, ref_date.day) frame_dt = timedelta(0, frame_interval, 0) duration = end_time - start_time n_frames = int(ceil(to_seconds(duration) / to_seconds(frame_dt))) t_edges = [start_time + i*frame_dt for i in range(n_frames+1)] t_edges_seconds = [to_seconds(edge - t_ref) for edge in t_edges] xedge=np.arange(x_bnd[0], x_bnd[1]+dx, dx) yedge=np.arange(y_bnd[0], y_bnd[1]+dy, dy) x0 = xedge[0] y0 = yedge[0] mapProj = MapProjection(projection='aeqd', ctrLat=ctr_lat, ctrLon=ctr_lon, lat_ts=ctr_lat, lon_0=ctr_lon, lat_0=ctr_lat) geoProj = GeographicSystem() event_density_grid = np.zeros((xedge.shape[0]-1, yedge.shape[0]-1, n_frames), dtype='int32') init_density_grid = np.zeros((xedge.shape[0]-1, yedge.shape[0]-1, n_frames), dtype='int32') extent_density_grid = np.zeros((xedge.shape[0]-1, yedge.shape[0]-1, n_frames), dtype='int32') footprint_grid = np.zeros((xedge.shape[0]-1, yedge.shape[0]-1, n_frames), dtype='float32') all_frames = [] extent_frames = [] init_frames = [] event_frames = [] for i in range(n_frames): extent_out = {'name':'extent'} init_out = {'name':'init'} event_out = {'name':'event'} accum_event_density = density_to_files.accumulate_points_on_grid(event_density_grid[:,:,i], xedge, yedge, out=event_out, label='event') accum_init_density = density_to_files.accumulate_points_on_grid(init_density_grid[:,:,i], xedge, yedge, out=init_out, label='init') accum_extent_density = density_to_files.accumulate_points_on_grid(extent_density_grid[:,:,i], xedge, yedge, out=extent_out,label='extent') accum_footprint = density_to_files.accumulate_points_on_grid(footprint_grid[:,:,i], xedge, yedge, label='footprint') extent_out['func'] = accum_extent_density init_out['func'] = accum_init_density event_out['func'] = accum_event_density extent_frames.append(extent_out) init_frames.append(init_out) event_frames.append(event_out) event_density_target = density_to_files.point_density(accum_event_density) init_density_target = density_to_files.point_density(accum_init_density) extent_density_target = density_to_files.extent_density(x0, y0, dx, dy, accum_extent_density) mean_footprint_target = density_to_files.extent_density(x0, y0, dx, dy, accum_footprint, weight_key='area') spew_to_density_types = density_to_files.broadcast( ( density_to_files.project('lon', 'lat', 'alt', mapProj, geoProj, event_density_target, use_flashes=False), density_to_files.project('init_lon', 'init_lat', 'init_alt', mapProj, geoProj, init_density_target, use_flashes=True), density_to_files.project('lon', 'lat', 'alt', mapProj, geoProj, extent_density_target, use_flashes=False), density_to_files.project('lon', 'lat', 'alt', mapProj, geoProj, mean_footprint_target, use_flashes=False), ) ) all_frames.append( density_to_files.extract_events_for_flashes( spew_to_density_types ) ) framer = density_to_files.flashes_to_frames(t_edges_seconds, all_frames, time_key='start') read_flashes( h5_filenames, framer, base_date=t_ref, min_points=min_points_per_flash) # print 'event_density_grid ', id(event_density_grid[:,:,-1]) # print 'extent_density_grid', id(extent_density_grid[:,:,-1]) # print 'init_density_grid ', id(init_density_grid[:,:,-1]) x_coord = (xedge[:-1] + xedge[1:])/2.0 y_coord = (yedge[:-1] + yedge[1:])/2.0 nx = x_coord.shape[0] ny = y_coord.shape[0] x_all, y_all = (a.T for a in np.meshgrid(x_coord, y_coord)) assert x_all.shape == y_all.shape z_all = np.zeros_like(x_all) lons, lats, alts = x,y,z = geoProj.fromECEF( *mapProj.toECEF(x_all, y_all, z_all) ) lons.shape=x_all.shape lats.shape=y_all.shape outflile_basename = os.path.join(outpath,'LMA_%s_%d_' % (start_time.strftime('%Y%m%d_%H%M%S'), to_seconds(duration))) outfiles = (outflile_basename+'flash_extent.nc', outflile_basename+'flash_init.nc', outflile_basename+'source.nc', outflile_basename+'footprint.nc', ) outgrids = (extent_density_grid, init_density_grid, event_density_grid, footprint_grid ) field_names = ('flash_extent', 'flash_initiation', 'lma_source', 'flash_footprint') field_descriptions = ('LMA flash extent density', 'LMA flash initiation density', 'LMA source density', 'LMA per-flash footprint') write_cf_netcdf(outfiles[0], t_ref, np.asarray(t_edges_seconds[:-1]), x_coord/1.0e3, y_coord/1.0e3, lons, lats, ctr_lat, ctr_lon, outgrids[0], fieldnames[0], field_descriptions[0]) write_cf_netcdf(outfiles[1], t_ref, np.asarray(t_edges_seconds[:-1]), x_coord/1.0e3, y_coord/1.0e3, lons, lats, ctr_lat, ctr_lon, outgrids[1], fieldnames[1], field_descriptions[1]) write_cf_netcdf(outfiles[2], t_ref, np.asarray(t_edges_seconds[:-1]), x_coord/1.0e3, y_coord/1.0e3, lons, lats, ctr_lat, ctr_lon, outgrids[2], fieldnames[2], field_descriptions[2]) write_cf_netcdf(outfiles[3], t_ref, np.asarray(t_edges_seconds[:-1]), x_coord/1.0e3, y_coord/1.0e3, lons, lats, ctr_lat, ctr_lon, outgrids[3], fieldnames[3], field_descriptions[3], format='f') print 'max extent is', extent_density_grid.max() return x_coord, y_coord, lons, lats, extent_density_grid, outfiles, field_names
|
e3157d63bf4824dff010de4bde23e648710fb2f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7619/e3157d63bf4824dff010de4bde23e648710fb2f0/make_grids.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3068,
67,
76,
25,
13440,
2354,
12,
76,
25,
67,
19875,
16,
787,
67,
957,
16,
679,
67,
957,
16,
2623,
67,
6624,
33,
22343,
18,
20,
16,
6633,
33,
24,
18,
20,
73,
23,
16,
7732,
33,
24,
18,
20,
73,
23,
16,
619,
67,
70,
4880,
273,
24927,
6625,
73,
23,
16,
2130,
73,
23,
3631,
677,
67,
70,
4880,
273,
24927,
6625,
73,
23,
16,
2130,
73,
23,
3631,
998,
67,
70,
4880,
273,
24927,
3462,
73,
23,
16,
4200,
73,
23,
3631,
14629,
67,
4801,
273,
13191,
18,
4366,
28,
3707,
16,
14629,
67,
9379,
273,
300,
10580,
18,
8749,
3103,
28,
16,
1131,
67,
4139,
67,
457,
67,
13440,
33,
2163,
16,
596,
803,
273,
875,
262,
30,
628,
4233,
1930,
8416,
3536,
225,
1788,
576,
40,
4995,
17,
1945,
12142,
3068,
87,
364,
2641,
16,
9563,
28911,
16,
9563,
24070,
16,
471,
3722,
9563,
27556,
225,
2623,
67,
6624,
30,
8058,
813,
17,
4119,
316,
3974,
6633,
16,
7732,
30,
10300,
3068,
963,
316,
312,
288,
92,
16,
93,
16,
94,
9044,
70,
4880,
30,
10300,
3068,
5231,
316,
312,
14629,
67,
4801,
16,
14629,
67,
9379,
30,
7799,
4617,
225,
14854,
392,
23090,
287,
1298,
350,
17175,
852,
8106,
603,
326,
678,
16113,
5193,
26966,
839,
18,
282,
855,
67,
2242,
7690,
225,
1034,
67,
13440,
2608,
67,
5989,
9563,
67,
869,
67,
3789,
225,
2623,
20,
67,
19805,
16,
2623,
21,
67,
19805,
16,
1372,
225,
1517,
324,
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,
3068,
67,
76,
25,
13440,
2354,
12,
76,
25,
67,
19875,
16,
787,
67,
957,
16,
679,
67,
957,
16,
2623,
67,
6624,
33,
22343,
18,
20,
16,
6633,
33,
24,
18,
20,
73,
23,
16,
7732,
33,
24,
18,
20,
73,
23,
16,
619,
67,
70,
4880,
273,
24927,
6625,
73,
23,
16,
2130,
73,
23,
3631,
677,
67,
70,
4880,
273,
24927,
6625,
73,
23,
16,
2130,
73,
23,
3631,
998,
67,
70,
4880,
273,
24927,
3462,
73,
23,
16,
4200,
73,
23,
3631,
14629,
67,
4801,
273,
13191,
18,
4366,
28,
3707,
16,
14629,
67,
9379,
273,
300,
10580,
18,
8749,
3103,
28,
16,
1131,
67,
4139,
67,
457,
67,
13440,
33,
2163,
16,
596,
2
] |
self.cmd_channel.dtp_ready = False
|
self.close()
|
def handle_accept(self): sock_obj, addr = self.accept() # PASV connection theft protection: check the origin of data connection. # We have to drop the incoming data connection if remote IP address # does not match the client's IP address. if self.cmd_channel.remote_ip != addr[0]: log("info: PASV connection theft attempt occurred from %s:%s." %(addr[0], addr[1])) try: # sock_obj.send('500 Go hack someone else, dude.') sock_obj.close() except: pass else: debug("PassiveDTP.handle_accept()") self.cmd_channel.dtp_ready = False handler = DTPHandler(sock_obj, self.cmd_channel) self.cmd_channel.data_channel = handler self.cmd_channel.on_dtp_connection() # self.close()
|
7facddac0efdba70e4066097f47661a10642808f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/7facddac0efdba70e4066097f47661a10642808f/FTPServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
7313,
67,
2603,
16,
3091,
273,
365,
18,
9436,
1435,
225,
468,
453,
3033,
58,
1459,
326,
1222,
17862,
30,
866,
326,
4026,
434,
501,
1459,
18,
468,
1660,
1240,
358,
3640,
326,
6935,
501,
1459,
309,
2632,
2971,
1758,
468,
1552,
486,
845,
326,
1004,
1807,
2971,
1758,
18,
309,
365,
18,
4172,
67,
4327,
18,
7222,
67,
625,
480,
3091,
63,
20,
14542,
613,
2932,
1376,
30,
453,
3033,
58,
1459,
326,
1222,
4395,
7841,
628,
738,
87,
5319,
87,
1199,
8975,
4793,
63,
20,
6487,
3091,
63,
21,
22643,
775,
30,
468,
7313,
67,
2603,
18,
4661,
2668,
12483,
4220,
11769,
18626,
469,
16,
302,
1317,
1093,
13,
7313,
67,
2603,
18,
4412,
1435,
1335,
30,
1342,
469,
30,
1198,
2932,
6433,
688,
9081,
52,
18,
4110,
67,
9436,
1435,
7923,
282,
365,
18,
4412,
1435,
225,
1838,
273,
10696,
52,
1503,
12,
15031,
67,
2603,
16,
365,
18,
4172,
67,
4327,
13,
365,
18,
4172,
67,
4327,
18,
892,
67,
4327,
273,
1838,
365,
18,
4172,
67,
4327,
18,
265,
67,
72,
6834,
67,
4071,
1435,
468,
365,
18,
4412,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
7313,
67,
2603,
16,
3091,
273,
365,
18,
9436,
1435,
225,
468,
453,
3033,
58,
1459,
326,
1222,
17862,
30,
866,
326,
4026,
434,
501,
1459,
18,
468,
1660,
1240,
358,
3640,
326,
6935,
501,
1459,
309,
2632,
2971,
1758,
468,
1552,
486,
845,
326,
1004,
1807,
2971,
1758,
18,
309,
365,
18,
4172,
67,
4327,
18,
7222,
67,
625,
480,
3091,
63,
20,
14542,
613,
2932,
1376,
30,
453,
3033,
58,
1459,
326,
1222,
4395,
7841,
628,
738,
87,
5319,
87,
1199,
8975,
4793,
63,
20,
6487,
3091,
63,
21,
22643,
775,
30,
468,
7313,
67,
2603,
18,
4661,
2668,
12483,
4220,
11769,
18626,
469,
16,
302,
1317,
1093,
13,
7313,
2
] |
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(1786772701928802632268715130455793,1059683225053915111058165141686995,1,1) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) return self._b[n] def list(self, n): self._eval(n) return self._b[:n] class A083104(SloaneSequence): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 331635635998274737472200656430763$, $a(1) = 1510028911088401971189590305498785$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co-prime. It was found by Ronald Graham in 1990. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A083104;a Second-order linear recurrence sequence with a(n) = a(n-1) + a(n-2). sage: a(3) 3351693458175078679851381267428333 sage: a.offset 0 sage: a(8) 36021870400834012982120004949074404 sage: a(20) 11601914177621826012468849361236300628 AUTHOR: -- Jaap Spies (2007-01-23) """ def __init__(self):
|
class A083104(RecurrenceSequence2): def __init__(self): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 331635635998274737472200656430763$, $a(1) = 1510028911088401971189590305498785$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co-prime. It was found by Ronald Graham in 1990. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A083104;a Second-order linear recurrence sequence with a(n) = a(n-1) + a(n-2). sage: a(3) 3351693458175078679851381267428333 sage: a.offset 0 sage: a(8) 36021870400834012982120004949074404 sage: a(20) 11601914177621826012468849361236300628 AUTHOR: -- Jaap Spies (2007-01-23) """
|
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(1786772701928802632268715130455793,1059683225053915111058165141686995,1,1) f = self._f self._b += [f.next() for i in range(how_many)]
|
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1484,
9200,
12,
2890,
16,
3661,
67,
9353,
33,
2163,
4672,
775,
30,
284,
273,
365,
6315,
74,
1335,
6394,
30,
365,
6315,
74,
273,
8112,
67,
4507,
22,
12,
4033,
5292,
4700,
5324,
1611,
9975,
5482,
3103,
26,
1578,
5558,
11035,
3600,
3437,
3028,
2539,
7235,
23,
16,
2163,
6162,
9470,
1578,
2947,
6260,
5520,
3600,
2499,
2163,
8204,
28275,
3461,
2313,
5292,
2733,
25,
16,
21,
16,
21,
13,
284,
273,
365,
6315,
74,
365,
6315,
70,
1011,
306,
74,
18,
4285,
1435,
364,
277,
316,
1048,
12,
13606,
67,
9353,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1484,
9200,
12,
2890,
16,
3661,
67,
9353,
33,
2163,
4672,
775,
30,
284,
273,
365,
6315,
74,
1335,
6394,
30,
365,
6315,
74,
273,
8112,
67,
4507,
22,
12,
4033,
5292,
4700,
5324,
1611,
9975,
5482,
3103,
26,
1578,
5558,
11035,
3600,
3437,
3028,
2539,
7235,
23,
16,
2163,
6162,
9470,
1578,
2947,
6260,
5520,
3600,
2499,
2163,
8204,
28275,
3461,
2313,
5292,
2733,
25,
16,
21,
16,
21,
13,
284,
273,
365,
6315,
74,
365,
6315,
70,
1011,
306,
74,
18,
4285,
1435,
364,
277,
316,
1048,
12,
13606,
67,
9353,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
n,v,f = job[0], job[2][0], job[2][1]
|
if job[2][0]: n,v,f = job[0], job[2][0], job[2][1] else: n,v,f = job[0], job[1][0], job[1][1]
|
def setUpdateJob(self, jobs): descriptions = [] jobs.sort() for job in jobs: n,v,f = job[0], job[2][0], job[2][1] v = '%s/%s' % (v.trailingLabel(), v.trailingRevision()) archDeps = [x.name for x in f.iterDepsByClass(deps.InstructionSetDependency)] if archDeps: f = '[is: %s]' % ' '.join(archDeps) else: f = '' descriptions.append('%s=%s%s' % (n,v,f)) if self.hunk[1] > 1: self._message("installing %d of %d:\n %s" % \ (self.hunk[0], self.hunk[1], '\n '.join(descriptions))) else: self._message("installing: \n %s" % \ ('\n '.join(descriptions),))
|
598f08bb27edb07137a680f612e3090a7502974d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/598f08bb27edb07137a680f612e3090a7502974d/rootfactory.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1891,
2278,
12,
2890,
16,
6550,
4672,
15550,
273,
5378,
6550,
18,
3804,
1435,
364,
1719,
316,
6550,
30,
309,
1719,
63,
22,
6362,
20,
14542,
290,
16,
90,
16,
74,
273,
1719,
63,
20,
6487,
1719,
63,
22,
6362,
20,
6487,
1719,
63,
22,
6362,
21,
65,
469,
30,
290,
16,
90,
16,
74,
273,
1719,
63,
20,
6487,
1719,
63,
21,
6362,
20,
6487,
1719,
63,
21,
6362,
21,
65,
225,
331,
273,
1995,
87,
5258,
87,
11,
738,
261,
90,
18,
26453,
2224,
9334,
331,
18,
26453,
7939,
10756,
6637,
14430,
273,
306,
92,
18,
529,
364,
619,
316,
284,
18,
2165,
14430,
30032,
12,
14877,
18,
11983,
694,
7787,
25887,
309,
6637,
14430,
30,
284,
273,
5271,
291,
30,
738,
87,
3864,
738,
296,
2418,
5701,
12,
991,
14430,
13,
469,
30,
284,
273,
875,
15550,
18,
6923,
29909,
87,
5095,
87,
9,
87,
11,
738,
261,
82,
16,
90,
16,
74,
3719,
309,
365,
18,
76,
1683,
63,
21,
65,
405,
404,
30,
365,
6315,
2150,
2932,
5425,
310,
738,
72,
434,
738,
72,
5581,
82,
565,
738,
87,
6,
738,
521,
261,
2890,
18,
76,
1683,
63,
20,
6487,
365,
18,
76,
1683,
63,
21,
6487,
2337,
82,
565,
2418,
5701,
12,
30288,
20349,
469,
30,
365,
6315,
2150,
2932,
5425,
310,
30,
521,
82,
565,
738,
87,
6,
738,
521,
7707,
64,
82,
565,
2418,
5701,
12,
30288,
3631,
3719,
2,
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,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1891,
2278,
12,
2890,
16,
6550,
4672,
15550,
273,
5378,
6550,
18,
3804,
1435,
364,
1719,
316,
6550,
30,
309,
1719,
63,
22,
6362,
20,
14542,
290,
16,
90,
16,
74,
273,
1719,
63,
20,
6487,
1719,
63,
22,
6362,
20,
6487,
1719,
63,
22,
6362,
21,
65,
469,
30,
290,
16,
90,
16,
74,
273,
1719,
63,
20,
6487,
1719,
63,
21,
6362,
20,
6487,
1719,
63,
21,
6362,
21,
65,
225,
331,
273,
1995,
87,
5258,
87,
11,
738,
261,
90,
18,
26453,
2224,
9334,
331,
18,
26453,
7939,
10756,
6637,
14430,
273,
306,
92,
18,
529,
364,
619,
316,
284,
18,
2165,
14430,
30032,
12,
14877,
18,
11983,
694,
7787,
25887,
309,
6637,
14430,
2
] |
c = curve(self, ptlist, point, logic, **xx)
|
c = curve(self, ptlist, origin, logic, **xx)
|
def pickline(self, ptlist, point, logic, **xx): """Add a new curve to the shape. Args define the curve (see curve) and the logic operator for the curve telling whether it adds or removes material. """ self.havelist = 0 c = curve(self, ptlist, point, logic, **xx) self.bbox.merge(c.bbox) self.curves += [c]
|
e55864700cb47a43fd0848009d3f1957e082ccc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e55864700cb47a43fd0848009d3f1957e082ccc8/shape.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
1369,
12,
2890,
16,
5818,
1098,
16,
1634,
16,
4058,
16,
2826,
5279,
4672,
3536,
986,
279,
394,
8882,
358,
326,
2179,
18,
6634,
4426,
326,
8882,
261,
5946,
8882,
13,
471,
326,
4058,
3726,
364,
326,
8882,
9276,
310,
2856,
518,
4831,
578,
7157,
9390,
18,
3536,
365,
18,
76,
842,
5449,
273,
374,
276,
273,
8882,
12,
2890,
16,
5818,
1098,
16,
4026,
16,
4058,
16,
2826,
5279,
13,
365,
18,
20737,
18,
2702,
12,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
1369,
12,
2890,
16,
5818,
1098,
16,
1634,
16,
4058,
16,
2826,
5279,
4672,
3536,
986,
279,
394,
8882,
358,
326,
2179,
18,
6634,
4426,
326,
8882,
261,
5946,
8882,
13,
471,
326,
4058,
3726,
364,
326,
8882,
9276,
310,
2856,
518,
4831,
578,
7157,
9390,
18,
3536,
365,
18,
76,
842,
5449,
273,
374,
276,
273,
8882,
12,
2890,
16,
5818,
1098,
16,
4026,
16,
4058,
16,
2826,
5279,
13,
365,
18,
20737,
18,
2702,
12,
71,
18,
20737,
13,
365,
18,
1397,
3324,
1011,
306,
71,
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
] |
Collection all units of units: acceleration ... volume
|
Collection of units of all units: acceleration ... volume
|
def __init__(self, data, name=''): """ EXAMPLES::
|
4a7f8e846ab20476d1219a326ba1d0012a65c6c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/4a7f8e846ab20476d1219a326ba1d0012a65c6c6/units.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
508,
2218,
11,
4672,
3536,
5675,
8900,
11386,
2866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
501,
16,
508,
2218,
11,
4672,
3536,
5675,
8900,
11386,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if hasattr(self, "hidden_file_prefixes") and self.hidden_file_prefixes: filePrefixesSkipList = split(self.hidden_file_prefixes,',') else: filePrefixesSkipList = [] if hasattr(self, "hidden_file_suffixes") and self.hidden_file_suffixes: fileSuffixesSkipList = split(self.hidden_file_suffixes,',') else: fileSuffixesSkipList = [] if hasattr(self, "hidden_file_names") and self.hidden_file_names: fileNamesSkipList = split(self.hidden_file_names,',') else: fileNamesSkipList = [] if hasattr(self, "hidden_folder_prefixes") and \ self.hidden_folder_prefixes: folderPrefixesSkipList = split(self.hidden_folder_prefixes,',') else: folderPrefixesSkipList = [] if hasattr(self, "hidden_folder_suffixes") and \ self.hidden_folder_suffixes: folderSuffixesSkipList = split(self.hidden_folder_suffixes,',') else: folderSuffixesSkipList = [] if hasattr(self, "hidden_folder_names") and self.hidden_folder_names: folderNamesSkipList = split(self.hidden_folder_names,',') else: folderNamesSkipList = []
|
filePrefixesSkip = self._getAttribute('hidden_file_prefixes') fileSuffixesSkip = self._getAttribute('hidden_file_suffixes') fileNamesSkip = self._getAttribute('hidden_file_names') folderPrefixesSkip = self._getAttribute('hidden_folder_prefixes') folderSuffixesSkip = self._getAttribute('hidden_folder_suffixes') folderNamesSkip = self._getAttribute('hidden_folder_names')
|
def getFilteredContents(self,rel_dir=None): """ list filtered content of local filesystem """
|
986267974a25fceea33e15da2a6f7317243ba92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/986267974a25fceea33e15da2a6f7317243ba92b/PloneLocalFolderNG.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12267,
329,
6323,
12,
2890,
16,
2878,
67,
1214,
33,
7036,
4672,
3536,
666,
5105,
913,
434,
1191,
6496,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12267,
329,
6323,
12,
2890,
16,
2878,
67,
1214,
33,
7036,
4672,
3536,
666,
5105,
913,
434,
1191,
6496,
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
] |
return MPolynomialRoundSystem(R, self.field_polynomials("k",i, r*c))
|
return MPolynomialRoundSystem(R, self.field_polynomials("k", i, r*c))
|
def key_schedule_polynomials(self, i): """ Return polynomials for the $i$-th round of the key schedule.
|
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
67,
3915,
13602,
87,
12,
2890,
16,
277,
4672,
3536,
2000,
16991,
87,
364,
326,
271,
77,
8,
17,
451,
3643,
434,
326,
498,
4788,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
67,
3915,
13602,
87,
12,
2890,
16,
277,
4672,
3536,
2000,
16991,
87,
364,
326,
271,
77,
8,
17,
451,
3643,
434,
326,
498,
4788,
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
] |
elif order == 1: if isinstance(w, (tuple,str,list)): length = 'finite' elif isinstance(w, FiniteWord_class): length = sum(self._morph[a].length() * b for (a,b) in w.evaluation_dict().iteritems()) elif hasattr(w, '__iter__'): length = Infinity datatype = 'iter' elif w in self._domain.alphabet(): w = [w] length = 'finite' else: raise TypeError, "Don't know how to handle an input (=%s) that is not iterable or not in the domain alphabet."%w return self.codomain()((x for y in w for x in self._morph[y]), length=length, datatype=datatype) elif order > 1: return self(self(w, order-1),datatype=datatype)
|
else: raise TypeError, "order (%s) must be a positive integer or plus Infinity" % order
|
def __call__(self, w, order=1, datatype='iter'): r""" Returns the image of ``w`` under self to the given order. INPUT:
|
179f0c90d24e3a38a542c9e7fda0195c3d7abb42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/179f0c90d24e3a38a542c9e7fda0195c3d7abb42/morphism.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
341,
16,
1353,
33,
21,
16,
11172,
2218,
2165,
11,
4672,
436,
8395,
2860,
326,
1316,
434,
12176,
91,
10335,
3613,
365,
358,
326,
864,
1353,
18,
225,
12943,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
341,
16,
1353,
33,
21,
16,
11172,
2218,
2165,
11,
4672,
436,
8395,
2860,
326,
1316,
434,
12176,
91,
10335,
3613,
365,
358,
326,
864,
1353,
18,
225,
12943,
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
] |
elif tnexte is StringType:
|
elif tnexte in (StringType, UnicodeType):
|
def shrinkWrap(self, line): # for non justified text, collapse adjacent text/shift's into single operations #return line # for testing result = [] index = 0 maxindex = len(line) from types import FloatType, StringType, InstanceType from string import join while index<maxindex: e = line[index] te = type(e) if te is StringType and index<maxindex-1: # collect strings and floats thestrings = [e] thefloats = 0.0 index = index+1 nexte = line[index] tnexte = type(nexte) while index<maxindex and (tnexte is FloatType or tnexte is StringType): # switch to expandable space if appropriate if tnexte is FloatType: if thefloats<0 and nexte>0: thefloats = -thefloats if nexte<0 and thefloats>0: nexte = -nexte thefloats = thefloats + nexte elif tnexte is StringType: thestrings.append(nexte) index = index+1 if index<maxindex: nexte = line[index] tnexte = type(nexte) # wrap up the result s = string.join(thestrings) result.append(s) result.append(float(thefloats)) # back up for unhandled element index = index-1 else: result.append(e) index = index+1
|
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17697,
2964,
12,
2890,
16,
980,
4672,
468,
364,
1661,
2537,
939,
977,
16,
13627,
16335,
977,
19,
4012,
1807,
1368,
2202,
5295,
468,
2463,
980,
468,
364,
7769,
563,
273,
5378,
770,
273,
374,
943,
1615,
273,
562,
12,
1369,
13,
628,
1953,
1930,
5450,
559,
16,
31570,
16,
29161,
628,
533,
1930,
1233,
1323,
770,
32,
1896,
1615,
30,
425,
273,
980,
63,
1615,
65,
6489,
273,
618,
12,
73,
13,
309,
6489,
353,
31570,
471,
770,
32,
1896,
1615,
17,
21,
30,
468,
3274,
2064,
471,
19172,
286,
281,
371,
87,
273,
306,
73,
65,
326,
5659,
87,
273,
374,
18,
20,
770,
273,
770,
15,
21,
1024,
73,
273,
980,
63,
1615,
65,
268,
4285,
73,
273,
618,
12,
4285,
73,
13,
1323,
770,
32,
1896,
1615,
471,
261,
88,
4285,
73,
353,
5450,
559,
578,
268,
4285,
73,
353,
31570,
4672,
468,
1620,
358,
4542,
429,
3476,
309,
5505,
309,
268,
4285,
73,
353,
5450,
559,
30,
309,
326,
5659,
87,
32,
20,
471,
1024,
73,
34,
20,
30,
326,
5659,
87,
273,
300,
5787,
5659,
87,
309,
1024,
73,
32,
20,
471,
326,
5659,
87,
34,
20,
30,
1024,
73,
273,
300,
4285,
73,
326,
5659,
87,
273,
326,
5659,
87,
397,
1024,
73,
1327,
268,
4285,
73,
316,
261,
780,
559,
16,
9633,
559,
4672,
286,
281,
371,
87,
18,
6923,
12,
4285,
73,
13,
770,
273,
770,
15,
21,
309,
770,
32,
1896,
1615,
30,
1024,
73,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17697,
2964,
12,
2890,
16,
980,
4672,
468,
364,
1661,
2537,
939,
977,
16,
13627,
16335,
977,
19,
4012,
1807,
1368,
2202,
5295,
468,
2463,
980,
468,
364,
7769,
563,
273,
5378,
770,
273,
374,
943,
1615,
273,
562,
12,
1369,
13,
628,
1953,
1930,
5450,
559,
16,
31570,
16,
29161,
628,
533,
1930,
1233,
1323,
770,
32,
1896,
1615,
30,
425,
273,
980,
63,
1615,
65,
6489,
273,
618,
12,
73,
13,
309,
6489,
353,
31570,
471,
770,
32,
1896,
1615,
17,
21,
30,
468,
3274,
2064,
471,
19172,
286,
281,
371,
87,
273,
306,
73,
65,
326,
5659,
87,
273,
374,
18,
20,
770,
273,
770,
15,
21,
1024,
73,
273,
980,
63,
1615,
65,
268,
2
] |
if not name.contains('"'):
|
if '"' not in name:
|
def item_by_name(self,name): if not name: raise ValueError,"name is None" name=to_utf8(name) if not name.contains('"'): expr='r:item[@name="%s"]' % name elif not name.contains("'"): expr="r:item[@name='%s']" % name else: raise RosterError,"Unsupported roster item name format" l=self.xpath_ctxt.xpathEval(expr) if not l: raise KeyError,name ret=[] for i in l: ret.append(RosterItem(self,i)) return ret
|
c5c9bc0fda36b704982068c3cb9177aefedd9b10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/c5c9bc0fda36b704982068c3cb9177aefedd9b10/roster.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
67,
1637,
67,
529,
12,
2890,
16,
529,
4672,
309,
486,
508,
30,
1002,
2068,
10837,
529,
353,
599,
6,
508,
33,
869,
67,
3158,
28,
12,
529,
13,
309,
4754,
486,
316,
508,
30,
3065,
2218,
86,
30,
1726,
14782,
529,
11613,
87,
24200,
738,
508,
1327,
486,
508,
18,
12298,
2932,
4970,
4672,
3065,
1546,
86,
30,
1726,
14782,
529,
28713,
87,
31867,
738,
508,
469,
30,
1002,
534,
29811,
668,
10837,
8544,
721,
8190,
761,
508,
740,
6,
328,
33,
2890,
18,
18644,
67,
20364,
18,
18644,
13904,
12,
8638,
13,
309,
486,
328,
30,
1002,
4999,
16,
529,
325,
33,
8526,
364,
277,
316,
328,
30,
325,
18,
6923,
12,
54,
29811,
1180,
12,
2890,
16,
77,
3719,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
67,
1637,
67,
529,
12,
2890,
16,
529,
4672,
309,
486,
508,
30,
1002,
2068,
10837,
529,
353,
599,
6,
508,
33,
869,
67,
3158,
28,
12,
529,
13,
309,
4754,
486,
316,
508,
30,
3065,
2218,
86,
30,
1726,
14782,
529,
11613,
87,
24200,
738,
508,
1327,
486,
508,
18,
12298,
2932,
4970,
4672,
3065,
1546,
86,
30,
1726,
14782,
529,
28713,
87,
31867,
738,
508,
469,
30,
1002,
534,
29811,
668,
10837,
8544,
721,
8190,
761,
508,
740,
6,
328,
33,
2890,
18,
18644,
67,
20364,
18,
18644,
13904,
12,
8638,
13,
309,
486,
328,
30,
1002,
4999,
16,
529,
325,
33,
8526,
364,
277,
316,
328,
30,
325,
18,
6923,
12,
54,
29811,
1180,
2
] |
ServerClass = SocketServer.TCPServer):
|
ServerClass = BaseHTTPServer.HTTPServer):
|
def test(HandlerClass = SimpleHTTPRequestHandler, ServerClass = SocketServer.TCPServer): BaseHTTPServer.test(HandlerClass, ServerClass)
|
df999c2e6d4dd2e564b7400e2368888bdb89b20d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/df999c2e6d4dd2e564b7400e2368888bdb89b20d/SimpleHTTPServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
1503,
797,
273,
4477,
23891,
1503,
16,
3224,
797,
273,
3360,
3693,
2081,
18,
3693,
2081,
4672,
3360,
3693,
2081,
18,
3813,
12,
1503,
797,
16,
3224,
797,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
valatask.vapi_path = getattr(self, 'vapi_path', None) valatask.header_path = None
|
valatask.vapi_path = getattr(self, 'vapi_path', '${DATAROOTDIR}/vala/vapi') valatask.pkg_name = getattr(self, 'pkg_name', self.env['PACKAGE']) valatask.header_path = getattr(self, 'header_path', '${INCLUDEDIR}/%s-%s' % (valatask.pkg_name, _get_api_version())) valatask.is_lib = False if not 'cprogram' in self.features: valatask.is_lib = True
|
def _get_api_version(): api_version = getattr (Utils.g_module, 'API_VERSION', None) if api_version == None: version = Utils.g_module.VERSION.split(".") if version[0] == "0": api_version = "0." + version[1] else: api_version = version[0] + ".0" return api_version
|
b969a4f7f6e647e7510f68a125719920d67b013b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/b969a4f7f6e647e7510f68a125719920d67b013b/vala.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2425,
67,
1589,
13332,
1536,
67,
1589,
273,
3869,
261,
1989,
18,
75,
67,
2978,
16,
296,
2557,
67,
5757,
2187,
599,
13,
309,
1536,
67,
1589,
422,
599,
30,
1177,
273,
6091,
18,
75,
67,
2978,
18,
5757,
18,
4939,
2932,
1199,
13,
309,
1177,
63,
20,
65,
422,
315,
20,
6877,
1536,
67,
1589,
273,
315,
20,
1199,
397,
1177,
63,
21,
65,
469,
30,
1536,
67,
1589,
273,
1177,
63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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2425,
67,
1589,
13332,
1536,
67,
1589,
273,
3869,
261,
1989,
18,
75,
67,
2978,
16,
296,
2557,
67,
5757,
2187,
599,
13,
309,
1536,
67,
1589,
422,
599,
30,
1177,
273,
6091,
18,
75,
67,
2978,
18,
5757,
18,
4939,
2932,
1199,
13,
309,
1177,
63,
20,
65,
422,
315,
20,
6877,
1536,
67,
1589,
273,
315,
20,
1199,
397,
1177,
63,
21,
65,
469,
30,
1536,
67,
1589,
273,
1177,
63,
20,
65,
397,
3552,
20,
6,
327,
1536,
67,
1589,
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
] |
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()
|
be384c5e24adab105c55b98acb56ec64e5ffd106 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/be384c5e24adab105c55b98acb56ec64e5ffd106/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,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'in': ('in', 'SEQUENCEMETHODS2'),
|
'in': ('in', 'SEQUENCEMETHODS'),
|
def writedocs(dir, pkgpath='', done=None): """Write out HTML documentation for all modules in a directory tree.""" if done is None: done = {} for importer, modname, ispkg in pkgutil.walk_packages([dir], pkgpath): writedoc(modname) return
|
d46665cc2e0fa20ac234cdc9750bad012c8f0589 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/d46665cc2e0fa20ac234cdc9750bad012c8f0589/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
329,
22280,
12,
1214,
16,
3475,
803,
2218,
2187,
2731,
33,
7036,
4672,
3536,
3067,
596,
3982,
7323,
364,
777,
4381,
316,
279,
1867,
2151,
12123,
309,
2731,
353,
599,
30,
2731,
273,
2618,
364,
15198,
16,
16037,
16,
353,
10657,
316,
3475,
1367,
18,
11348,
67,
10308,
3816,
1214,
6487,
3475,
803,
4672,
2518,
329,
504,
12,
1711,
529,
13,
327,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
329,
22280,
12,
1214,
16,
3475,
803,
2218,
2187,
2731,
33,
7036,
4672,
3536,
3067,
596,
3982,
7323,
364,
777,
4381,
316,
279,
1867,
2151,
12123,
309,
2731,
353,
599,
30,
2731,
273,
2618,
364,
15198,
16,
16037,
16,
353,
10657,
316,
3475,
1367,
18,
11348,
67,
10308,
3816,
1214,
6487,
3475,
803,
4672,
2518,
329,
504,
12,
1711,
529,
13,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{'action': 'store_true', 'validator': validate_boolean}),
|
{'action': 'store_true', 'validator': frontend.validate_boolean}),
|
def find_theme(name): # Where else to look for a theme? # Check working dir? Destination dir? Config dir? Plugins dir? path = os.path.join(themes_dir_path, name) if not os.path.isdir(path): raise docutils.ApplicationError( 'Theme directory not found: %r (path: %r)' % (name, path)) return path
|
f82b81ce6cb22b15791191504f4878697792a0f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/f82b81ce6cb22b15791191504f4878697792a0f4/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
7997,
12,
529,
4672,
468,
12177,
469,
358,
2324,
364,
279,
5006,
35,
468,
2073,
5960,
1577,
35,
225,
10691,
1577,
35,
225,
1903,
1577,
35,
225,
26849,
1577,
35,
589,
273,
1140,
18,
803,
18,
5701,
12,
17328,
67,
1214,
67,
803,
16,
508,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1002,
997,
5471,
18,
3208,
668,
12,
296,
8335,
1867,
486,
1392,
30,
738,
86,
261,
803,
30,
738,
86,
2506,
738,
261,
529,
16,
589,
3719,
327,
589,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
7997,
12,
529,
4672,
468,
12177,
469,
358,
2324,
364,
279,
5006,
35,
468,
2073,
5960,
1577,
35,
225,
10691,
1577,
35,
225,
1903,
1577,
35,
225,
26849,
1577,
35,
589,
273,
1140,
18,
803,
18,
5701,
12,
17328,
67,
1214,
67,
803,
16,
508,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1002,
997,
5471,
18,
3208,
668,
12,
296,
8335,
1867,
486,
1392,
30,
738,
86,
261,
803,
30,
738,
86,
2506,
738,
261,
529,
16,
589,
3719,
327,
589,
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
] |
g = Graphics()
|
g = Graphics(xmin=min(xdata), xmax=max(xdata), ymin=min(ydata), ymax=max(ydata))
|
def _from_xdata_ydata(self, xdata, ydata, coerce, options): if coerce: xdata, ydata = self._coerce(xdata, ydata) g = Graphics() g._Graphics__objects.append(GraphicPrimitive_Point(xdata, ydata, options)) try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass return g
|
04a6df69dc4131eb63863357d3630867f997c0b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/04a6df69dc4131eb63863357d3630867f997c0b8/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
92,
892,
67,
93,
892,
12,
2890,
16,
25363,
16,
29175,
16,
12270,
16,
702,
4672,
309,
12270,
30,
25363,
16,
29175,
273,
365,
6315,
2894,
2765,
12,
92,
892,
16,
29175,
13,
314,
273,
16830,
12,
92,
1154,
33,
1154,
12,
92,
892,
3631,
14016,
33,
1896,
12,
92,
892,
3631,
15763,
33,
1154,
12,
93,
892,
3631,
15275,
33,
1896,
12,
93,
892,
3719,
314,
6315,
17558,
972,
6911,
18,
6923,
12,
29459,
9840,
67,
2148,
12,
92,
892,
16,
29175,
16,
702,
3719,
775,
30,
314,
6315,
14313,
67,
10855,
12,
1154,
12,
92,
892,
3631,
943,
12,
92,
892,
3631,
1131,
12,
93,
892,
3631,
943,
12,
93,
892,
3719,
1335,
2068,
30,
1342,
327,
314,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2080,
67,
92,
892,
67,
93,
892,
12,
2890,
16,
25363,
16,
29175,
16,
12270,
16,
702,
4672,
309,
12270,
30,
25363,
16,
29175,
273,
365,
6315,
2894,
2765,
12,
92,
892,
16,
29175,
13,
314,
273,
16830,
12,
92,
1154,
33,
1154,
12,
92,
892,
3631,
14016,
33,
1896,
12,
92,
892,
3631,
15763,
33,
1154,
12,
93,
892,
3631,
15275,
33,
1896,
12,
93,
892,
3719,
314,
6315,
17558,
972,
6911,
18,
6923,
12,
29459,
9840,
67,
2148,
12,
92,
892,
16,
29175,
16,
702,
3719,
775,
30,
314,
6315,
14313,
67,
10855,
12,
1154,
12,
92,
892,
3631,
943,
12,
92,
892,
3631,
1131,
12,
93,
892,
3631,
943,
12,
93,
892,
3719,
1335,
2
] |
None,phil_xs, [pdb_xs],[hkl_xs])
|
None,phil_xs, [pdb_xs],[hkl_xs])
|
def outlier_utils(args): if len(args)==0: print_help() elif ( "--help" in args ): print_help() elif ( "--h" in args ): print_help() elif ("-h" in args ): print_help() else: log = multi_out() if (not "--quiet" in args): log.register(label="stdout", file_object=sys.stdout) string_buffer = StringIO() string_buffer_plots = StringIO() log.register(label="log_buffer", file_object=string_buffer) phil_objects = [] argument_interpreter = libtbx.phil.command_line.argument_interpreter( master_params=master_params, home_scope="outlier_detection") for arg in args: command_line_params = None arg_is_processed = False # is it a file? if arg=="--quiet": arg_is_processed = True if (os.path.isfile(arg)): ## is this a file name? # check if it is a phil file try: command_line_params = iotbx.phil.parse(file_name=arg) if command_line_params is not None: phil_objects.append(command_line_params) arg_is_processed = True except KeyboardInterrupt: raise except : pass else: try: command_line_params = argument_interpreter.process(arg=arg) if command_line_params is not None: phil_objects.append(command_line_params) arg_is_processed = True except KeyboardInterrupt: raise except : pass if not arg_is_processed: print >> log, "##----------------------------------------------##" print >> log, "## Unknown file or keyword:", arg print >> log, "##----------------------------------------------##" print >> log raise Sorry("Unknown file or keyword: %s" % arg) effective_params = master_params.fetch(sources=phil_objects) params = effective_params.extract() # now get the unit cell from the pdb file hkl_xs = None if params.outlier_utils.input.xray_data.file_name is not None: hkl_xs = crystal_symmetry_from_any.extract_from( file_name=params.outlier_utils.input.xray_data.file_name) pdb_xs = None if params.outlier_utils.input.model.file_name is not None: pdb_xs = crystal_symmetry_from_any.extract_from( file_name=params.outlier_utils.input.model.file_name) phil_xs = crystal.symmetry( unit_cell=params.outlier_utils.input.unit_cell, space_group_info=params.outlier_utils.input.space_group ) combined_xs = select_crystal_symmetry( None,phil_xs, [pdb_xs],[hkl_xs]) # inject the unit cell and symmetry in the phil scope please params.outlier_utils.input.unit_cell = combined_xs.unit_cell() params.outlier_utils.input.space_group = \ sgtbx.space_group_info( group = combined_xs.space_group() ) new_params = master_params.format(python_object=params) new_params.show(out=log) if params.outlier_utils.input.unit_cell is None: raise Sorry("unit cell not specified") if params.outlier_utils.input.space_group is None: raise Sorry("space group not specified") if params.outlier_utils.input.xray_data.file_name is None: raise Sorry("Xray data not specified") if params.outlier_utils.input.model.file_name is None: print "PDB file not specified. Basic wilson outlier rejections only." #----------------------------------------------------------- # # step 1: read in the reflection file # phil_xs = crystal.symmetry( unit_cell=params.outlier_utils.input.unit_cell, space_group_info=params.outlier_utils.input.space_group ) xray_data_server = reflection_file_utils.reflection_file_server( crystal_symmetry = phil_xs, force_symmetry = True, reflection_files=[]) miller_array = None miller_array = xray_data_server.get_xray_data( file_name = params.outlier_utils.input.xray_data.file_name, labels = params.outlier_utils.input.xray_data.obs_labels, ignore_all_zeros = True, parameter_scope = 'outlier_utils.input.xray_data', parameter_name = 'obs_labels' ) info = miller_array.info() miller_array = miller_array.map_to_asu() miller_array = miller_array.select( miller_array.indices() != (0,0,0)) miller_array = miller_array.select( miller_array.data() > 0 ) if miller_array.sigmas() is not None: miller_array = miller_array.select( miller_array.sigmas() > 0 ) if (miller_array.is_xray_intensity_array()): miller_array = miller_array.f_sq_as_f() elif (miller_array.is_complex_array()): miller_array = abs(miller_array) miller_array.set_info(info) merged_anomalous=False if miller_array.anomalous_flag(): miller_array = miller_array.average_bijvoet_mates().set_observation_type( miller_array ) merged_anomalous=True miller_array = miller_array.map_to_asu() # get the free reflections please free_flags = None if params.outlier_utils.input.xray_data.free_flags is None: free_flags = miller_array.generate_r_free_flags( fraction=params.outlier_utils.\ additional_parameters.free_flag_generation.fraction, max_free=params.outlier_utils.\ additional_parameters.free_flag_generation.max_number, lattice_symmetry_max_delta=params.outlier_utils.\ additional_parameters.free_flag_generation.lattice_symmetry_max_delta, use_lattice_symmetry=params.outlier_utils.\ additional_parameters.free_flag_generation.use_lattice_symmetry ) else: free_flags = xray_data_server.get_xray_data( file_name = params.outlier_utils.input.xray_data.file_name, labels = params.outlier_utils.input.xray_data.free_flags, ignore_all_zeros = True, parameter_scope = 'outlier_utils.input.xray_data', parameter_name = 'free_flags' ) if miller_array.anomalous_flag(): free_flags = free_flags.miller_array.average_bijvoet_mates() merged_anomalous=True free_flags = free_flags.common_set( miller_array ) free_flags = free_flags.customized_copy( data = flex.bool( free_flags.data()== 1 )) free_flags = free_flags.common_set( miller_array ).map_to_asu() free_flags, miller_array = free_flags.common_sets( miller_array ) print >> log print >> log, "Summary info of observed data" print >> log, "=============================" miller_array.show_summary(f=log) if merged_anomalous: print >> log, "For outlier detection purposes, the Bijvoet pairs have been merged." print >> log print >> log, "Constructing an outlier manager" print >> log, "===============================" print >> log outlier_manager = outlier_rejection.outlier_manager( miller_array, out=log) basic_array = None extreme_array = None model_based_array = None basic_array = outlier_manager.basic_wilson_outliers( p_basic_wilson = params.outlier_utils.outlier_detection.\ parameters.basic_wilson.level, return_array = True) extreme_array = outlier_manager.extreme_wilson_outliers( p_extreme_wilson = params.outlier_utils.outlier_detection.parameters.\ extreme_wilson.level, return_array = True) #---------------------------------------------------------------- # Step 2: get an xray structure from the PDB file # if params.outlier_utils.input.model.file_name is not None: model = xray_structure.from_pdb( file_name=params.outlier_utils.input.model.file_name, crystal_symmetry=phil_xs, force_symmetry=True) print >> log, "Atomic model summary" print >> log, "====================" model.show_summary(f=log) print >> log # please make an f_model object for bulk solvent scaling etc etc f_model_object = f_model.manager( f_obs = miller_array, r_free_flags = free_flags, xray_structure = model ) print >> log, "Bulk solvent scaling of the data" print >> log, "================================" print >> log, "Maximum likelihood bulk solvent scaling." print >> log f_model_object.update_solvent_and_scale(out=log) b_cart = f_model_object.b_cart() k_sol = f_model_object.k_sol() b_sol = f_model_object.b_sol() ls_scale = 1.0/f_model_object.scale_k1() print >> log print >> log, "The observed data is scaled by a multiplier" print >> log, "equal to %5.2e"%(ls_scale) print >> log, "This brings the data to an approximate absolute scale." # update the outlier object please outlier_manager.apply_scale_to_original_data( ls_scale) free_flags = free_flags.common_set( outlier_manager.miller_obs ) # redo the f model object please f_model_object = f_model.manager( f_obs = outlier_manager.miller_obs, r_free_flags = free_flags, xray_structure = model) # reset the bulk solvent parameters please f_model_object.update_core(b_cart=b_cart, k_sol=k_sol, b_sol=b_sol) f_model_data = f_model_object.f_model() plot_out = StringIO() # get alphas and betas please alpha,beta = f_model_object.alpha_beta() # get suspected outliers model_based_array = outlier_manager.model_based_outliers( f_model_data, alpha, beta, level=params.outlier_utils.outlier_detection.parameters.model_based.level, return_array=True, plot_out=plot_out) #check what needs to be put out please if params.outlier_utils.output.hklout is not None: if params.outlier_utils.outlier_detection.protocol == "model": if params.outlier_utils.input.model.file_name == None: print >> log, "Model based rejections requested. No model was supplied." print >> log, "Switching to writing out rejections based on extreme value Wilson statistics." params.outlier_utils.outlier_detection.protocol="extreme" output_array = None print >> log if params.outlier_utils.outlier_detection.protocol == "basic": print >> log, "Outliers found by the basic wilson statistics" print >> log, "protocol will be written out." output_array = basic_array new_set_of_free_flags = free_flags.common_set( basic_array ) if params.outlier_utils.outlier_detection.protocol == "extreme": print >> log, "Outliers found by the extreme value wilson statistics" print >> log, "protocol will be written out." output_array = extreme_array new_set_of_free_flags = free_flags.common_set( extreme_array ) if params.outlier_utils.outlier_detection.protocol == "model": print >> log, "Outliers found by the model based" print >> log, "protocol will be written out to the file:" print >> log, params.outlier_utils.output.hklout print >> log output_array = model_based_array new_set_of_free_flags = free_flags.common_set( model_based_array ) mtz_dataset = output_array.as_mtz_dataset( column_root_label="FOBS") mtz_dataset = mtz_dataset.add_miller_array( miller_array = new_set_of_free_flags, column_root_label = "Free_R_Flag" ) mtz_dataset.mtz_object().write( file_name=params.outlier_utils.output.hklout) if params.outlier_utils.output.logfile is not None: final_log = StringIO() print >> final_log, string_buffer.getvalue() print >> final_log print >> final_log, plot_out.getvalue() outfile = open( params.outlier_utils.output.logfile, 'w' ) outfile.write( final_log.getvalue() ) print >> log print >> log, "A logfile named %s was created."%( params.outlier_utils.output.logfile) print >> log, "This logfile contains the screen output and" print >> log, "(possibly) some ccp4 style loggraph plots"
|
95ea40706150efdd497c59bd7453515caa13e6e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/95ea40706150efdd497c59bd7453515caa13e6e4/remove_outliers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
596,
9800,
67,
5471,
12,
1968,
4672,
309,
562,
12,
1968,
13,
631,
20,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
5201,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
7566,
17,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
469,
30,
613,
273,
3309,
67,
659,
1435,
309,
261,
902,
5238,
20380,
6,
316,
833,
4672,
613,
18,
4861,
12,
1925,
1546,
10283,
3113,
585,
67,
1612,
33,
9499,
18,
10283,
13,
533,
67,
4106,
273,
15777,
1435,
533,
67,
4106,
67,
13214,
273,
15777,
1435,
613,
18,
4861,
12,
1925,
1546,
1330,
67,
4106,
3113,
585,
67,
1612,
33,
1080,
67,
4106,
13,
225,
1844,
330,
67,
6911,
273,
5378,
1237,
67,
2761,
11599,
273,
2561,
18587,
92,
18,
844,
330,
18,
3076,
67,
1369,
18,
3446,
67,
2761,
11599,
12,
4171,
67,
2010,
33,
7525,
67,
2010,
16,
6382,
67,
4887,
1546,
659,
9800,
67,
27515,
7923,
225,
364,
1501,
316,
833,
30,
1296,
67,
1369,
67,
2010,
273,
599,
1501,
67,
291,
67,
11005,
273,
1083,
468,
353,
518,
279,
585,
35,
309,
1501,
31713,
413,
20380,
6877,
1501,
67,
291,
67,
11005,
273,
1053,
309,
261,
538,
18,
803,
18,
291,
768,
12,
3175,
3719,
30,
7541,
353,
333,
279,
585,
508,
35,
468,
866,
309,
518,
353,
279,
1844,
330,
585,
775,
30,
1296,
67,
1369,
67,
2010,
273,
30956,
70,
92,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
596,
9800,
67,
5471,
12,
1968,
4672,
309,
562,
12,
1968,
13,
631,
20,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
5201,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
7566,
17,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
469,
30,
613,
273,
3309,
67,
659,
1435,
309,
261,
902,
5238,
20380,
6,
316,
833,
4672,
613,
18,
4861,
12,
1925,
1546,
10283,
3113,
585,
67,
1612,
33,
9499,
18,
10283,
13,
533,
67,
4106,
273,
15777,
1435,
533,
67,
4106,
67,
13214,
273,
15777,
1435,
613,
18,
4861,
12,
1925,
1546,
1330,
67,
4106,
3113,
585,
67,
1612,
2
] |
setexecutable = setExecutableTemplate % os.path.basename(self.executable) else: setexecutable = ""
|
def preProcess(self): resdir = "Contents/Resources" if self.executable is not None: if self.mainprogram is None: execpath = pathjoin(self.execdir, self.name) else: execpath = pathjoin(resdir, os.path.basename(self.executable)) if not self.symlink_exec: self.files.append((self.executable, execpath)) self.binaries.append(execpath) self.execpath = execpath # For execve wrapper setexecutable = setExecutableTemplate % os.path.basename(self.executable) else: setexecutable = "" # XXX for locals() call
|
d94b247eb725c755f5411f64e9596f2244e51f3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d94b247eb725c755f5411f64e9596f2244e51f3a/bundlebuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2227,
12,
2890,
4672,
400,
1214,
273,
315,
6323,
19,
3805,
6,
309,
365,
18,
17751,
353,
486,
599,
30,
309,
365,
18,
5254,
12890,
353,
599,
30,
1196,
803,
273,
589,
5701,
12,
2890,
18,
4177,
1214,
16,
365,
18,
529,
13,
469,
30,
1196,
803,
273,
589,
5701,
12,
455,
1214,
16,
1140,
18,
803,
18,
13909,
12,
2890,
18,
17751,
3719,
309,
486,
365,
18,
21278,
67,
4177,
30,
365,
18,
2354,
18,
6923,
12443,
2890,
18,
17751,
16,
1196,
803,
3719,
365,
18,
4757,
5646,
18,
6923,
12,
4177,
803,
13,
365,
18,
4177,
803,
273,
1196,
803,
468,
2457,
1196,
537,
4053,
468,
11329,
364,
8985,
1435,
745,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2227,
12,
2890,
4672,
400,
1214,
273,
315,
6323,
19,
3805,
6,
309,
365,
18,
17751,
353,
486,
599,
30,
309,
365,
18,
5254,
12890,
353,
599,
30,
1196,
803,
273,
589,
5701,
12,
2890,
18,
4177,
1214,
16,
365,
18,
529,
13,
469,
30,
1196,
803,
273,
589,
5701,
12,
455,
1214,
16,
1140,
18,
803,
18,
13909,
12,
2890,
18,
17751,
3719,
309,
486,
365,
18,
21278,
67,
4177,
30,
365,
18,
2354,
18,
6923,
12443,
2890,
18,
17751,
16,
1196,
803,
3719,
365,
18,
4757,
5646,
18,
6923,
12,
4177,
803,
13,
365,
18,
4177,
803,
273,
1196,
803,
468,
2457,
1196,
537,
4053,
468,
11329,
364,
8985,
1435,
745,
2,
-100,
-100,
-100,
-100
] |
|
full_name = self._child_name(name, subname)
|
full_name = self._child_name(formname, subname)
|
def show(self, item, name, template_type, template_getter, global_namespace={}): value = getattr(item, name) subfields = [] for subname, field_type in self.fields: full_name = self._child_name(name, subname) proxied_item = self._Proxy(item, {full_name: value[subname]}) subfields.append(field_type.show(proxied_item, full_name, template_type, template_getter, global_namespace)) namespace = global_namespace.copy() namespace['subfields'] = subfields return FieldType.show(self, item, name, template_type, template_getter, namespace)
|
50795e5758d888a3615e83aa958b5a732826abe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/50795e5758d888a3615e83aa958b5a732826abe4/qFieldTypes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
761,
16,
508,
16,
1542,
67,
723,
16,
1542,
67,
11990,
16,
2552,
67,
4937,
12938,
4672,
460,
273,
3869,
12,
1726,
16,
508,
13,
720,
2821,
273,
5378,
364,
720,
529,
16,
652,
67,
723,
316,
365,
18,
2821,
30,
1983,
67,
529,
273,
365,
6315,
3624,
67,
529,
12,
687,
529,
16,
720,
529,
13,
21875,
67,
1726,
273,
365,
6315,
3886,
12,
1726,
16,
288,
2854,
67,
529,
30,
460,
63,
1717,
529,
65,
6792,
720,
2821,
18,
6923,
12,
1518,
67,
723,
18,
4500,
12,
20314,
2092,
67,
1726,
16,
1983,
67,
529,
16,
1542,
67,
723,
16,
1542,
67,
11990,
16,
2552,
67,
4937,
3719,
1981,
273,
2552,
67,
4937,
18,
3530,
1435,
1981,
3292,
1717,
2821,
3546,
273,
720,
2821,
327,
16602,
18,
4500,
12,
2890,
16,
761,
16,
508,
16,
1542,
67,
723,
16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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,
2405,
12,
2890,
16,
761,
16,
508,
16,
1542,
67,
723,
16,
1542,
67,
11990,
16,
2552,
67,
4937,
12938,
4672,
460,
273,
3869,
12,
1726,
16,
508,
13,
720,
2821,
273,
5378,
364,
720,
529,
16,
652,
67,
723,
316,
365,
18,
2821,
30,
1983,
67,
529,
273,
365,
6315,
3624,
67,
529,
12,
687,
529,
16,
720,
529,
13,
21875,
67,
1726,
273,
365,
6315,
3886,
12,
1726,
16,
288,
2854,
67,
529,
30,
460,
63,
1717,
529,
65,
6792,
720,
2821,
18,
6923,
12,
1518,
67,
723,
18,
4500,
12,
20314,
2092,
67,
1726,
16,
1983,
67,
529,
16,
1542,
67,
723,
16,
1542,
67,
11990,
16,
2552,
67,
4937,
3719,
1981,
273,
2552,
67,
2
] |
if request.GET['next']: response = HttpResponseRedirect(request.GET['next'])
|
next = request.GET.get('next', '') if next: response = HttpResponseRedirect(next)
|
def user_profile(request): profile, created = UserProfile.objects.get_or_create(user=request.user) if request.method == 'POST': user_form = UserForm(request.POST,instance=request.user) profile_form = UserProfileForm(request.POST,instance=profile) password_form = PasswordChangeForm(request.user,request.POST) if user_form.is_valid() and profile_form.is_valid(): user_form.save() profile_form.save() if request.GET['next']: response = HttpResponseRedirect(request.GET['next']) else: response = HttpResponseRedirect(reverse('reviewapp.submissionlist')) if password_form.changed_data: if password_form.is_valid(): password_form.save() return response else: return response else: user_form = UserForm(instance=request.user) profile_form = UserProfileForm(instance=profile) password_form = PasswordChangeForm(request.user) return render_to_response('reviewapp/user_profile.html', locals(), context_instance=RequestContext(request))
|
53d55a9f450ebe98b9838f22fe824ecd43c4685e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/53d55a9f450ebe98b9838f22fe824ecd43c4685e/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
5040,
12,
2293,
4672,
3042,
16,
2522,
273,
2177,
4029,
18,
6911,
18,
588,
67,
280,
67,
2640,
12,
1355,
33,
2293,
18,
1355,
13,
309,
590,
18,
2039,
422,
296,
3798,
4278,
729,
67,
687,
273,
2177,
1204,
12,
2293,
18,
3798,
16,
1336,
33,
2293,
18,
1355,
13,
3042,
67,
687,
273,
2177,
4029,
1204,
12,
2293,
18,
3798,
16,
1336,
33,
5040,
13,
2201,
67,
687,
273,
9234,
3043,
1204,
12,
2293,
18,
1355,
16,
2293,
18,
3798,
13,
225,
309,
729,
67,
687,
18,
291,
67,
877,
1435,
471,
3042,
67,
687,
18,
291,
67,
877,
13332,
729,
67,
687,
18,
5688,
1435,
3042,
67,
687,
18,
5688,
1435,
225,
1024,
273,
590,
18,
3264,
18,
588,
2668,
4285,
2187,
28707,
309,
1024,
30,
766,
273,
31780,
12,
4285,
13,
469,
30,
766,
273,
31780,
12,
9845,
2668,
16041,
2910,
18,
12684,
1098,
26112,
225,
309,
2201,
67,
687,
18,
6703,
67,
892,
30,
309,
2201,
67,
687,
18,
291,
67,
877,
13332,
2201,
67,
687,
18,
5688,
1435,
327,
766,
469,
30,
327,
766,
469,
30,
729,
67,
687,
273,
2177,
1204,
12,
1336,
33,
2293,
18,
1355,
13,
3042,
67,
687,
273,
2177,
4029,
1204,
12,
1336,
33,
5040,
13,
2201,
67,
687,
273,
9234,
3043,
1204,
12,
2293,
18,
1355,
13,
225,
327,
1743,
67,
869,
67,
2740,
2668,
16041,
2910,
19,
1355,
67,
5040,
18,
2620,
2187,
8985,
9334,
819,
67,
1336,
33,
21426,
12,
2293,
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,
729,
67,
5040,
12,
2293,
4672,
3042,
16,
2522,
273,
2177,
4029,
18,
6911,
18,
588,
67,
280,
67,
2640,
12,
1355,
33,
2293,
18,
1355,
13,
309,
590,
18,
2039,
422,
296,
3798,
4278,
729,
67,
687,
273,
2177,
1204,
12,
2293,
18,
3798,
16,
1336,
33,
2293,
18,
1355,
13,
3042,
67,
687,
273,
2177,
4029,
1204,
12,
2293,
18,
3798,
16,
1336,
33,
5040,
13,
2201,
67,
687,
273,
9234,
3043,
1204,
12,
2293,
18,
1355,
16,
2293,
18,
3798,
13,
225,
309,
729,
67,
687,
18,
291,
67,
877,
1435,
471,
3042,
67,
687,
18,
291,
67,
877,
13332,
729,
67,
687,
18,
5688,
1435,
3042,
67,
687,
18,
5688,
1435,
225,
1024,
273,
2
] |
if self.scheme != 'https':
|
if scheme != 'https':
|
def is_allowed (self, method, scheme, port): if not self.method(method): wc.log.warn(wc.LOG_PROXY, "illegal method %s", method) return False if scheme not in self.schemes: wc.log.warn(wc.LOG_PROXY, "illegal scheme %s", scheme) return False if method == 'CONNECT': # CONNECT method sanity if port not in self.connect_ports: wc.log.warn(wc.LOG_PROXY, "illegal CONNECT port %d", port) return False if self.scheme != 'https': wc.log.warn(wc.LOG_PROXY, "illegal CONNECT scheme %d", scheme) return False else: # all other methods if port not in self.http_ports: wc.log.warn(wc.LOG_PROXY, "illegal port %d", port) return False return True
|
681d37a2d61f13067f3a8870599c19392f8de763 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/681d37a2d61f13067f3a8870599c19392f8de763/Allowed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
8151,
261,
2890,
16,
707,
16,
4355,
16,
1756,
4672,
309,
486,
365,
18,
2039,
12,
2039,
4672,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
707,
738,
87,
3113,
707,
13,
327,
1083,
309,
4355,
486,
316,
365,
18,
87,
13268,
30,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
4355,
738,
87,
3113,
4355,
13,
327,
1083,
309,
707,
422,
296,
11032,
4278,
468,
21593,
707,
16267,
309,
1756,
486,
316,
365,
18,
3612,
67,
4363,
30,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
21593,
1756,
738,
72,
3113,
1756,
13,
327,
1083,
309,
4355,
480,
296,
4528,
4278,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
21593,
4355,
738,
72,
3113,
4355,
13,
327,
1083,
469,
30,
468,
777,
1308,
2590,
309,
1756,
486,
316,
365,
18,
2505,
67,
4363,
30,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,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
22398,
316,
326,
981,
30,
1652,
353,
67,
8151,
261,
2890,
16,
707,
16,
4355,
16,
1756,
4672,
309,
486,
365,
18,
2039,
12,
2039,
4672,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
707,
738,
87,
3113,
707,
13,
327,
1083,
309,
4355,
486,
316,
365,
18,
87,
13268,
30,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
4355,
738,
87,
3113,
4355,
13,
327,
1083,
309,
707,
422,
296,
11032,
4278,
468,
21593,
707,
16267,
309,
1756,
486,
316,
365,
18,
3612,
67,
4363,
30,
14310,
18,
1330,
18,
8935,
12,
27594,
18,
4842,
67,
16085,
16,
315,
31751,
21593,
1756,
738,
72,
3113,
1756,
13,
327,
1083,
309,
4355,
2
] |
total_vessels_free = geni_user.vessel_credit_limit()
|
total_vessels_free = geni_user.vessel_credit_remaining()
|
def share_compare(a, b): return cmp(a['percent'], b['percent'])
|
f44bab71f297fd5d7938d719c53acb5cec1c2537 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/f44bab71f297fd5d7938d719c53acb5cec1c2537/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7433,
67,
9877,
12,
69,
16,
324,
4672,
327,
9411,
12,
69,
3292,
8849,
17337,
324,
3292,
8849,
19486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7433,
67,
9877,
12,
69,
16,
324,
4672,
327,
9411,
12,
69,
3292,
8849,
17337,
324,
3292,
8849,
19486,
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
] |
test(r"""pat.match(p) != None""", 1)
|
test(r"""pat.match(p) is not None""", 1)
|
def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1)
|
ec47d67f7e38555348764543458e5e6016584e10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ec47d67f7e38555348764543458e5e6016584e10/test_sre.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
debug(" third-party Netscape cookie during "
|
_debug(" third-party Netscape cookie during "
|
def set_ok_verifiability(self, cookie, request): if request.is_unverifiable() and is_third_party(request): if cookie.version > 0 and self.strict_rfc2965_unverifiable: debug(" third-party RFC 2965 cookie during " "unverifiable transaction") return False elif cookie.version == 0 and self.strict_ns_unverifiable: debug(" third-party Netscape cookie during " "unverifiable transaction") return False return True
|
15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81/cookielib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
502,
704,
2967,
12,
2890,
16,
3878,
16,
590,
4672,
309,
590,
18,
291,
67,
318,
502,
8424,
1435,
471,
353,
67,
451,
6909,
67,
21214,
12,
2293,
4672,
309,
3878,
18,
1589,
405,
374,
471,
365,
18,
13948,
67,
16784,
5540,
9222,
67,
318,
502,
8424,
30,
1198,
2932,
282,
12126,
17,
21214,
8372,
12899,
9222,
3878,
4982,
315,
315,
318,
502,
8424,
2492,
7923,
327,
1083,
1327,
3878,
18,
1589,
422,
374,
471,
365,
18,
13948,
67,
2387,
67,
318,
502,
8424,
30,
389,
4148,
2932,
282,
12126,
17,
21214,
8503,
12476,
3878,
4982,
315,
315,
318,
502,
8424,
2492,
7923,
327,
1083,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
601,
67,
502,
704,
2967,
12,
2890,
16,
3878,
16,
590,
4672,
309,
590,
18,
291,
67,
318,
502,
8424,
1435,
471,
353,
67,
451,
6909,
67,
21214,
12,
2293,
4672,
309,
3878,
18,
1589,
405,
374,
471,
365,
18,
13948,
67,
16784,
5540,
9222,
67,
318,
502,
8424,
30,
1198,
2932,
282,
12126,
17,
21214,
8372,
12899,
9222,
3878,
4982,
315,
315,
318,
502,
8424,
2492,
7923,
327,
1083,
1327,
3878,
18,
1589,
422,
374,
471,
365,
18,
13948,
67,
2387,
67,
318,
502,
8424,
30,
389,
4148,
2932,
282,
12126,
17,
21214,
8503,
12476,
3878,
4982,
315,
315,
318,
502,
8424,
2492,
7923,
327,
1083,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
[[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.1892071150027208], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I]
|
[[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.18920711500272...], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I]
|
def complex_roots(self, prec, multiplicity): """ EXAMPLES: sage: x = polygen(ZZ) sage: cp = AA.common_polynomial(x^4 - 2) sage: cp.complex_roots(30, 1) [[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.1892071150027208], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I] """ if self._roots_cache.has_key(multiplicity): roots = self._roots_cache[multiplicity] if roots[0] >= prec: return roots[1]
|
09997aeddb3843d400f397ba91ab366c4a8af1c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/09997aeddb3843d400f397ba91ab366c4a8af1c7/qqbar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7233,
67,
22078,
12,
2890,
16,
13382,
16,
3309,
20458,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
273,
2952,
4338,
275,
12,
27096,
13,
272,
410,
30,
3283,
273,
27343,
18,
6054,
67,
3915,
13602,
12,
92,
66,
24,
300,
576,
13,
272,
410,
30,
3283,
18,
14259,
67,
22078,
12,
5082,
16,
404,
13,
12167,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
26825,
6116,
404,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
3437,
6487,
23059,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
3437,
6116,
300,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
2777,
6487,
306,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
26825,
6116,
404,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
3437,
5772,
45,
16,
23059,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
3437,
6116,
300,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
26825,
5772,
45,
65,
3536,
309,
365,
6315,
22078,
67,
2493,
18,
5332,
67,
856,
12,
7027,
20458,
4672,
12876,
273,
365,
6315,
22078,
67,
2493,
63,
7027,
20458,
65,
309,
12876,
63,
20,
65,
1545,
13382,
30,
327,
12876,
63,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7233,
67,
22078,
12,
2890,
16,
13382,
16,
3309,
20458,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
273,
2952,
4338,
275,
12,
27096,
13,
272,
410,
30,
3283,
273,
27343,
18,
6054,
67,
3915,
13602,
12,
92,
66,
24,
300,
576,
13,
272,
410,
30,
3283,
18,
14259,
67,
22078,
12,
5082,
16,
404,
13,
12167,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
26825,
6116,
404,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
3437,
6487,
23059,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
3437,
6116,
300,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
22,
2777,
6487,
306,
21,
18,
29426,
3462,
27,
2499,
12483,
5324,
26825,
6116,
404,
18,
29426,
2
] |
"m3-libs/m3core/src/C/" + Common + "/m3makefile" ]:
|
"m3-libs/m3core/src/C/" + Common + "/m3makefile" ]:
|
def Boot(): global BuildLocal BuildLocal += " -boot -keep " Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. Compile = ("gcc -g -fPIC " + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "LINUXLIBC6" : " -m32 -mno-align-double ", "MIPS64_OPENBSD" : " -mabi=64 ", "SPARC32_LINUX" : " -m32 -munaligned-doubles ", "SPARC64_LINUX" : " -m64 -munaligned-doubles ", }.get(Target) or "")) Link = (Compile + " " + ({ "MIPS64_OPENBSD" : " -lm -lpthread ", "PPC32_OPENBSD" : " -lm -lpthread ", "SPARC64_OPENBSD" : " -lm -lpthread ", }.get(Target) or "")) Compile = { "SPARC64_SOLARIS" : "cc -g -mt -xarch=v9 -xcode=pic32 -xldscope=symbolic", }.get(Target) or Compile Link = { "SPARC64_SOLARIS" : Compile + " -lrt -lm -lnsl -lsocket " }.get(Target) or Link # not in Link Compile += " -c " Assemble = ("as " + ({ "AMD64_LINUX" : " --64 ", "LINUXLIBC6" : " --32 ", "SPARC32_LINUX" : " -32 ", "SPARC64_LINUX" : " -64 ", "SPARC64_SOLARIS" : " -s -K PIC -xarch=v9 ", }.get(Target) or "")) Compile = re.sub(" +", " ", Compile) Link = re.sub(" +", " ", Link) Assemble = re.sub(" +", " ", Assemble) BootDir = "/cm3-boot-POSIX-" + Target + "-" + Version P = [ "import-libs", "m3core", "libm3", "sysutils", "m3middle", "m3quake", "m3objfile", "m3linker", "m3back", "m3front", "cm3" ] if Target == "NT386": P += ["mklib"] #DoPackage(["", "realclean"] + P) or sys.exit(1) DoPackage(["", "buildlocal"] + P) or sys.exit(1) try: shutil.rmtree(BootDir) except: pass try: os.mkdir(BootDir) except: pass # # This would probably be a good use of XSL (xml style sheets) # Make = open(os.path.join(BootDir, "make.sh"), "wb") Makefile = open(os.path.join(BootDir, "Makefile"), "wb") UpdateSource = open(os.path.join(BootDir, "updatesource.sh"), "wb") Makefile.write("all: cm3\n\n") for a in [UpdateSource, Make]: a.write("#!/bin/sh\n\nset -e\nset -x\n\n") for a in [Makefile]: a.write("Assemble=" + Assemble + "\nCompile=" + Compile + "\nLink=" + Link + "\n") for a in [Make]: a.write("Assemble=\"" + Assemble + "\"\nCompile=\"" + Compile + "\"\nLink=\"" + Link + "\"\n") for q in P: dir = GetPackagePath(q) for a in os.listdir(os.path.join(Root, dir, Config)): if (a.endswith(".ms") or a.endswith(".is") or a.endswith(".c")): CopyFile(os.path.join(Root, dir, Config, a), BootDir) Makefile.write("Objects += " + a + ".o\n" + a + ".o: " + a + "\n\t") if a.endswith(".c"): Command = "Compile" else: Command = "Assemble" for b in [Make, Makefile]: b.write("${" + Command + "} " + a + " -o " + a + ".o\n") if a.endswith(".h"): CopyFile(os.path.join(Root, dir, Config, a), BootDir) Makefile.write("cm3: $(Objects)\n\t") for a in [Make, Makefile]: a.write("$(Link) -o cm3 *.o\n") Common = "Common" for a in [ # # Add to this list as needed. # Adding more than necessary is ok -- assume the target system has no changes, # so we can replace whatever is there. # "m3-libs/libm3/src/os/POSIX/OSConfigPosix.m3", "m3-libs/libm3/src/random/m3makefile", "m3-libs/m3core/src/C/m3makefile", "m3-libs/m3core/src/C/" + Target + "/m3makefile", "m3-libs/m3core/src/C/" + Common + "/m3makefile", "m3-libs/m3core/src/Csupport/m3makefile", "m3-libs/m3core/src/float/m3makefile", "m3-libs/m3core/src/runtime/m3makefile", "m3-libs/m3core/src/runtime/common/Compiler.tmpl", "m3-libs/m3core/src/text/TextLiteral.i3", "m3-libs/m3core/src/thread/m3makefile", "m3-libs/m3core/src/time/POSIX/m3makefile", "m3-libs/m3core/src/unix/m3makefile", "m3-sys/cminstall/src/config-no-install/SOLgnu", "m3-sys/cminstall/src/config-no-install/SOLsun", "m3-sys/cminstall/src/config-no-install/Unix.common", "m3-sys/cminstall/src/config-no-install/Solaris.common", "m3-sys/cminstall/src/config-no-install/" + Target, "m3-sys/m3cc/src/m3makefile", "m3-sys/m3middle/src/Target.i3", "m3-sys/m3middle/src/Target.m3", "scripts/python/pylib.py", "m3-libs/m3core/src/C/" + Target + "/Csetjmp.i3", "m3-libs/m3core/src/C/" + Target + "/Csignal.i3", "m3-libs/m3core/src/C/" + Target + "/Cstdio.i3", "m3-libs/m3core/src/C/" + Target + "/Cstring.i3", "m3-libs/m3core/src/C/" + Target + "/m3makefile", "m3-libs/m3core/src/C/" + Common + "/Csetjmp.i3", "m3-libs/m3core/src/C/" + Common + "/Csignal.i3", "m3-libs/m3core/src/C/" + Common + "/Cstdio.i3", "m3-libs/m3core/src/C/" + Common + "/Cstring.i3", "m3-libs/m3core/src/C/" + Common + "/m3makefile" ]: source = os.path.join(Root, a) if FileExists(source): name = GetLastPathElement(a) reldir = RemoveLastPathElement(a) destdir = os.path.join(BootDir, reldir) dest = os.path.join(destdir, name) try: os.makedirs(destdir) except: pass CopyFile(source, dest) for b in [UpdateSource, Make]: b.write("mkdir -p /dev2/cm3/" + reldir + "\n") b.write("cp " + a + " /dev2/cm3/" + a + "\n") for a in [UpdateSource, Make, Makefile]: a.close() os.chdir("/") _MakeArchive(BootDir[1:])
|
384b3cc05fcedf4307f077f49cde3d6675b039c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/384b3cc05fcedf4307f077f49cde3d6675b039c6/pylib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
315,
225,
4049,
273,
315,
21,
6,
225,
468,
1220,
1779,
353,
16975,
628,
326,
642,
1390,
18,
468,
399,
18096,
30,
1378,
518,
1338,
316,
1245,
3166,
18,
468,
1021,
12156,
7065,
310,
707,
1552,
336,
716,
2145,
18,
225,
16143,
273,
7566,
75,
952,
300,
75,
300,
74,
20385,
315,
397,
10797,
315,
2192,
40,
1105,
67,
20663,
57,
60,
6,
4202,
294,
315,
300,
81,
1105,
300,
81,
2135,
17,
7989,
17,
9056,
3104,
315,
20663,
57,
60,
14484,
39,
26,
6,
3639,
294,
315,
300,
81,
1578,
300,
81,
2135,
17,
7989,
17,
9056,
3104,
315,
49,
2579,
55,
1105,
67,
11437,
30780,
6,
565,
294,
315,
300,
81,
21457,
33,
1105,
3104,
315,
55,
2778,
39,
1578,
67,
20663,
57,
60,
6,
377,
294,
315,
300,
81,
1578,
300,
81,
318,
20677,
17,
2896,
19314,
3104,
315,
55,
2778,
39,
1105,
67,
20663,
57,
60,
6,
377,
294,
315,
300,
81,
1105,
300,
81,
318,
20677,
17,
2896,
19314,
3104,
289,
18,
588,
12,
2326,
13,
578,
1408,
3719,
225,
4048,
273,
261,
9937,
397,
315,
315,
397,
10797,
315,
49,
2579,
55,
1105,
67,
11437,
30780,
6,
565,
294,
315,
300,
25972,
300,
80,
2397,
896,
3104,
315,
52,
3513,
1578,
67,
11437,
30780,
6,
377,
294,
315,
300,
25972,
300,
80,
2397,
896,
3104,
315,
55,
2778,
39,
1105,
67,
11437,
30780,
6,
282,
294,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
315,
225,
4049,
273,
315,
21,
6,
225,
468,
1220,
1779,
353,
16975,
628,
326,
642,
1390,
18,
468,
399,
18096,
30,
1378,
518,
1338,
316,
1245,
3166,
18,
468,
1021,
12156,
7065,
310,
707,
1552,
336,
716,
2145,
18,
225,
16143,
273,
7566,
75,
952,
300,
75,
300,
74,
20385,
315,
397,
10797,
315,
2192,
40,
1105,
67,
20663,
57,
60,
6,
4202,
294,
315,
300,
81,
1105,
300,
81,
2135,
17,
7989,
17,
9056,
3104,
315,
20663,
57,
60,
14484,
39,
26,
6,
3639,
294,
315,
300,
81,
1578,
300,
81,
2135,
17,
7989,
17,
9056,
3104,
315,
49,
2579,
55,
1105,
2
] |
if op is r_operator: if self._r_assoc:
|
if rop._binary: if op is r_operator: if self._r_assoc: rparens = False elif self._precedence == rop._precedence: if self._r_assoc: rparens = False elif self._precedence < rop._precedence:
|
def _repr_(self, simplify=True): """ TESTS: sage: a = (1-1/r)^(-1); a 1/(1 - 1/r) sage: a.derivative(r) -1/((1 - 1/r)^2*r^2)
|
0f3b3d44db8e1b86009e89bdac564fa5d50b9989 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0f3b3d44db8e1b86009e89bdac564fa5d50b9989/calculus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
16,
16499,
33,
5510,
4672,
3536,
22130,
55,
30,
272,
410,
30,
279,
273,
261,
21,
17,
21,
19,
86,
13,
66,
19236,
21,
1769,
279,
404,
19,
12,
21,
300,
404,
19,
86,
13,
272,
410,
30,
279,
18,
20615,
1535,
12,
86,
13,
300,
21,
19,
12443,
21,
300,
404,
19,
86,
13,
66,
22,
14,
86,
66,
22,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
16,
16499,
33,
5510,
4672,
3536,
22130,
55,
30,
272,
410,
30,
279,
273,
261,
21,
17,
21,
19,
86,
13,
66,
19236,
21,
1769,
279,
404,
19,
12,
21,
300,
404,
19,
86,
13,
272,
410,
30,
279,
18,
20615,
1535,
12,
86,
13,
300,
21,
19,
12443,
21,
300,
404,
19,
86,
13,
66,
22,
14,
86,
66,
22,
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
] |
os.chdir(os.path.join("model","util","ext")) if buildenv['version'] == 'debug': python = buildenv['python_d'] if buildenv['version'] == 'release': python = buildenv['python'] hardhatlib.executeCommand( buildenv, info['name'], [python, "setup.py", "install"], "Building UUID Extension" ) os.chdir("../../..")
|
if not ((buildenv['os'] == 'win') and (buildenv['version'] == 'debug')): os.chdir(os.path.join("model","util","ext")) if buildenv['version'] == 'debug': python = buildenv['python_d'] if buildenv['version'] == 'release': python = buildenv['python'] hardhatlib.executeCommand( buildenv, info['name'], [python, "setup.py", "install"], "Building UUID Extension" ) os.chdir("../../..")
|
def build(buildenv): if buildenv['os'] == 'posix': os.chdir("distrib/linux/launcher") hardhatlib.executeCommand( buildenv, info['name'], [buildenv['make']], "Making launcher programs") if buildenv['version'] == 'release': hardhatlib.copyFile("chandler_bin", buildenv['root'] + \ os.sep + "release") hardhatlib.copyFile("chandler", buildenv['root'] + \ os.sep + "release") if buildenv['version'] == 'debug': hardhatlib.copyFile("chandler_bin", buildenv['root'] + \ os.sep + "debug") hardhatlib.copyFile("chandler", buildenv['root'] + \ os.sep + "debug") os.chdir("../../..") # Build UUID Extension and install it os.chdir(os.path.join("model","util","ext")) if buildenv['version'] == 'debug': python = buildenv['python_d'] if buildenv['version'] == 'release': python = buildenv['python'] hardhatlib.executeCommand( buildenv, info['name'], [python, "setup.py", "install"], "Building UUID Extension" ) os.chdir("../../..") os.chdir("distrib") if buildenv['os'] == 'posix' or buildenv['os'] == 'osx': if buildenv['os'] == 'posix': os.chdir("linux") if buildenv['os'] == 'osx': os.chdir("osx") if buildenv['version'] == 'release': hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying RunRelease to release") hardhatlib.copyFile("RunRelease", buildenv['root'] + \ os.sep + "release") if buildenv['version'] == 'debug': hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying RunDebug to debug") hardhatlib.copyFile("RunDebug", buildenv['root'] + \ os.sep + "debug") if buildenv['os'] == 'win': os.chdir("win") if buildenv['version'] == 'release': hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying MSVCR70.DLL to release/bin") hardhatlib.copyFile("msvcr70.dll", buildenv['root'] + \ os.sep + "release" + os.sep + "bin") hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying RunRelease.bat to release") hardhatlib.copyFile("RunRelease.bat", buildenv['root'] + \ os.sep + "release") if buildenv['version'] == 'debug': hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying MSVCR70D.DLL to debug/bin") hardhatlib.copyFile("msvcr70d.dll", buildenv['root'] + \ os.sep + "debug" + os.sep + "bin") hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying MSVCRTD.DLL to debug/bin") hardhatlib.copyFile("msvcrtd.dll", buildenv['root'] + \ os.sep + "debug" + os.sep + "bin") hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Copying RunDebug.bat to debug") hardhatlib.copyFile("RunDebug.bat", buildenv['root'] + \ os.sep + "debug")
|
40fafd6086daf0d72d8a6933b25fb8aa807a0dfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/40fafd6086daf0d72d8a6933b25fb8aa807a0dfe/__hardhat__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
3510,
3074,
4672,
225,
309,
1361,
3074,
3292,
538,
3546,
422,
296,
24463,
4278,
1140,
18,
343,
1214,
2932,
2251,
665,
19,
20132,
19,
20738,
264,
7923,
7877,
11304,
2941,
18,
8837,
2189,
12,
1361,
3074,
16,
1123,
3292,
529,
17337,
306,
3510,
3074,
3292,
6540,
3546,
6487,
315,
49,
6159,
26618,
25038,
7923,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
9340,
4278,
7877,
11304,
2941,
18,
3530,
812,
2932,
343,
464,
749,
67,
4757,
3113,
1361,
3074,
3292,
3085,
3546,
397,
521,
1140,
18,
10814,
397,
315,
9340,
7923,
7877,
11304,
2941,
18,
3530,
812,
2932,
343,
464,
749,
3113,
1361,
3074,
3292,
3085,
3546,
397,
521,
1140,
18,
10814,
397,
315,
9340,
7923,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
4148,
4278,
7877,
11304,
2941,
18,
3530,
812,
2932,
343,
464,
749,
67,
4757,
3113,
1361,
3074,
3292,
3085,
3546,
397,
521,
1140,
18,
10814,
397,
315,
4148,
7923,
7877,
11304,
2941,
18,
3530,
812,
2932,
343,
464,
749,
3113,
1361,
3074,
3292,
3085,
3546,
397,
521,
1140,
18,
10814,
397,
315,
4148,
7923,
1140,
18,
343,
1214,
2932,
16644,
838,
7923,
282,
468,
3998,
5866,
10021,
471,
3799,
518,
309,
486,
14015,
3510,
3074,
3292,
538,
3546,
422,
296,
8082,
6134,
471,
261,
3510,
3074,
3292,
1589,
3546,
422,
296,
4148,
26112,
30,
225,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
5701,
2932,
2284,
15937,
1367,
15937,
408,
6,
3719,
309,
1361,
3074,
3292,
1589,
3546,
422,
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,
1361,
12,
3510,
3074,
4672,
225,
309,
1361,
3074,
3292,
538,
3546,
422,
296,
24463,
4278,
1140,
18,
343,
1214,
2932,
2251,
665,
19,
20132,
19,
20738,
264,
7923,
7877,
11304,
2941,
18,
8837,
2189,
12,
1361,
3074,
16,
1123,
3292,
529,
17337,
306,
3510,
3074,
3292,
6540,
3546,
6487,
315,
49,
6159,
26618,
25038,
7923,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
9340,
4278,
7877,
11304,
2941,
18,
3530,
812,
2932,
343,
464,
749,
67,
4757,
3113,
1361,
3074,
3292,
3085,
3546,
397,
521,
1140,
18,
10814,
397,
315,
9340,
7923,
7877,
11304,
2941,
18,
3530,
812,
2932,
343,
464,
749,
3113,
1361,
3074,
3292,
3085,
3546,
397,
521,
1140,
18,
10814,
397,
315,
9340,
7923,
2
] |
def createCompositeRecordDefinition(d, name):
|
def createRecordDefinition(d, name):
|
def createCompositeRecordDefinition(d, name): oe = outputEngine() oe.add("type %s =\n" % recordName(name)) oe.increaseIndent() oe.add("{\n") oe.increaseIndent() zs = [] for x in compositeGetElements(d, name): t = getType(d, x) if t == 'composite': zs.append('%s : %s' % (x, recordName(x))) elif t == 'array': zs.append('%s : %s' % (x, recordName(x))) elif t == 'int': zs.append('%s : int' % x) elif t == 'string': zs.append('%s : string' % x) else: sys.exit('invalid type in a record: %s' % t) oe.interleave(zs, ',\n') oe.add('\n') oe.decreaseIndent() oe.add("}\n") oe.decreaseIndent() return oe.dump()
|
f0756bf03379af6ffd3d749c4a54f5bbaeea78e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7546/f0756bf03379af6ffd3d749c4a54f5bbaeea78e6/marshallgen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
752,
2115,
1852,
12,
72,
16,
508,
4672,
320,
73,
273,
876,
4410,
1435,
320,
73,
18,
1289,
2932,
723,
738,
87,
273,
64,
82,
6,
738,
1409,
461,
12,
529,
3719,
320,
73,
18,
267,
11908,
7790,
1435,
320,
73,
18,
1289,
2932,
23241,
82,
7923,
320,
73,
18,
267,
11908,
7790,
1435,
998,
87,
273,
5378,
364,
619,
316,
9635,
967,
3471,
12,
72,
16,
508,
4672,
268,
273,
3130,
12,
72,
16,
619,
13,
309,
268,
422,
296,
27676,
4278,
998,
87,
18,
6923,
29909,
87,
294,
738,
87,
11,
738,
261,
92,
16,
1409,
461,
12,
92,
20349,
1327,
268,
422,
296,
1126,
4278,
998,
87,
18,
6923,
29909,
87,
294,
738,
87,
11,
738,
261,
92,
16,
1409,
461,
12,
92,
20349,
1327,
268,
422,
296,
474,
4278,
998,
87,
18,
6923,
29909,
87,
294,
509,
11,
738,
619,
13,
1327,
268,
422,
296,
1080,
4278,
998,
87,
18,
6923,
29909,
87,
294,
533,
11,
738,
619,
13,
469,
30,
2589,
18,
8593,
2668,
5387,
618,
316,
279,
1409,
30,
738,
87,
11,
738,
268,
13,
320,
73,
18,
2761,
19574,
12,
30424,
16,
2265,
64,
82,
6134,
320,
73,
18,
1289,
2668,
64,
82,
6134,
320,
73,
18,
323,
11908,
7790,
1435,
320,
73,
18,
1289,
2932,
6280,
82,
7923,
320,
73,
18,
323,
11908,
7790,
1435,
327,
320,
73,
18,
8481,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
752,
2115,
1852,
12,
72,
16,
508,
4672,
320,
73,
273,
876,
4410,
1435,
320,
73,
18,
1289,
2932,
723,
738,
87,
273,
64,
82,
6,
738,
1409,
461,
12,
529,
3719,
320,
73,
18,
267,
11908,
7790,
1435,
320,
73,
18,
1289,
2932,
23241,
82,
7923,
320,
73,
18,
267,
11908,
7790,
1435,
998,
87,
273,
5378,
364,
619,
316,
9635,
967,
3471,
12,
72,
16,
508,
4672,
268,
273,
3130,
12,
72,
16,
619,
13,
309,
268,
422,
296,
27676,
4278,
998,
87,
18,
6923,
29909,
87,
294,
738,
87,
11,
738,
261,
92,
16,
1409,
461,
12,
92,
20349,
1327,
268,
422,
296,
1126,
4278,
998,
87,
18,
6923,
29909,
87,
294,
738,
87,
2
] |
for opatch in other.patch_set: if patch.filename == opatch.filename: if not patch.no_base_file and patch.text != opatch.text: delta.append(other.key().id()) opatch.text = None
|
query = models.Patch.all() query.filter("filename =", patch.filename) query.filter("patchset =", other.key()) other_patches = query.fetch(100) if other_patches and len(other_patches) > 1: logging.info("Got %s patches with the same filename for a patchset", len(other_patches)) for op in other_patches: if op.text != patch.text: delta.append(other.key().id())
|
def _calculate_delta(patch, patchset_id, patchsets): """Calculates which files in earlier patchsets this file differs from. Args: patch: The file to compare. patchset_id: The file's patchset's key id. patchsets: A list of existing patchsets. Returns: A list of patchset ids. """ delta = [] if patch.no_base_file: return delta for other in patchsets: if patchset_id == other.key().id(): break if other.data or other.parsed_patches: # Loading all the Patch entities in every PatchSet takes too long # (DeadLineExceeded) and consumes a lot of memory (MemoryError) so instead # just parse the patchset's data. Note we can only do this if the # patchset was small enough to fit in the data property. if other.parsed_patches is None: other.parsed_patches = engine.SplitPatch(other.data) other.data = None # Reduce memory usage. for filename, text in other.parsed_patches: if filename == patch.filename: if text != patch.text: delta.append(other.key().id()) break else: # Note: calling list(other.patch_set) would consume too much memory and # sometimes fail with MemoryError. So do this even if it's slower. for opatch in other.patch_set: if patch.filename == opatch.filename: if not patch.no_base_file and patch.text != opatch.text: delta.append(other.key().id()) opatch.text = None # Reduce memory usage. break return delta
|
0d606bd81c11563d38153f3f12d2260a3ee48e68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/0d606bd81c11563d38153f3f12d2260a3ee48e68/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
9878,
12,
2272,
16,
4729,
542,
67,
350,
16,
4729,
4424,
4672,
3536,
10587,
1492,
1390,
316,
13805,
4729,
4424,
333,
585,
21944,
628,
18,
225,
6634,
30,
4729,
30,
1021,
585,
358,
3400,
18,
4729,
542,
67,
350,
30,
1021,
585,
1807,
4729,
542,
1807,
498,
612,
18,
4729,
4424,
30,
432,
666,
434,
2062,
4729,
4424,
18,
225,
2860,
30,
432,
666,
434,
4729,
542,
3258,
18,
3536,
3622,
273,
5378,
309,
4729,
18,
2135,
67,
1969,
67,
768,
30,
327,
3622,
364,
1308,
316,
4729,
4424,
30,
309,
4729,
542,
67,
350,
422,
1308,
18,
856,
7675,
350,
13332,
898,
309,
1308,
18,
892,
578,
1308,
18,
10817,
67,
30278,
30,
468,
4444,
310,
777,
326,
12042,
5140,
316,
3614,
12042,
694,
5530,
4885,
1525,
468,
261,
11852,
1670,
10069,
13,
471,
25479,
279,
17417,
434,
3778,
261,
6031,
668,
13,
1427,
3560,
468,
2537,
1109,
326,
4729,
542,
1807,
501,
18,
225,
3609,
732,
848,
1338,
741,
333,
309,
326,
468,
4729,
542,
1703,
5264,
7304,
358,
4845,
316,
326,
501,
1272,
18,
309,
1308,
18,
10817,
67,
30278,
353,
599,
30,
1308,
18,
10817,
67,
30278,
273,
4073,
18,
5521,
7332,
12,
3011,
18,
892,
13,
1308,
18,
892,
273,
599,
225,
468,
24614,
3778,
4084,
18,
364,
1544,
16,
977,
316,
1308,
18,
10817,
67,
30278,
30,
309,
1544,
422,
4729,
18,
3459,
30,
309,
977,
480,
4729,
18,
955,
30,
3622,
18,
6923,
12,
3011,
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,
389,
11162,
67,
9878,
12,
2272,
16,
4729,
542,
67,
350,
16,
4729,
4424,
4672,
3536,
10587,
1492,
1390,
316,
13805,
4729,
4424,
333,
585,
21944,
628,
18,
225,
6634,
30,
4729,
30,
1021,
585,
358,
3400,
18,
4729,
542,
67,
350,
30,
1021,
585,
1807,
4729,
542,
1807,
498,
612,
18,
4729,
4424,
30,
432,
666,
434,
2062,
4729,
4424,
18,
225,
2860,
30,
432,
666,
434,
4729,
542,
3258,
18,
3536,
3622,
273,
5378,
309,
4729,
18,
2135,
67,
1969,
67,
768,
30,
327,
3622,
364,
1308,
316,
4729,
4424,
30,
309,
4729,
542,
67,
350,
422,
1308,
18,
856,
7675,
350,
13332,
898,
309,
1308,
18,
892,
578,
1308,
18,
10817,
67,
30278,
30,
468,
2
] |
info_prefix = self.file_name() + ":" if (info_prefix.startswith("./") or info_prefix.startswith(".\\")): info_prefix = info_prefix[2:]
|
if (info_prefix is None): info_prefix = self.file_name() + ":" if (info_prefix.startswith("./") or info_prefix.startswith(".\\")): info_prefix = info_prefix[2:]
|
def as_miller_arrays(self, crystal_symmetry=None, force_symmetry=False): if (self.file_type() is None): return [] if (self.file_type() == "cctbx.miller.array"): return self.file_content() info_prefix = self.file_name() + ":" if (info_prefix.startswith("./") or info_prefix.startswith(".\\")): info_prefix = info_prefix[2:] return self._file_content.as_miller_arrays( crystal_symmetry=crystal_symmetry, force_symmetry=force_symmetry, info_prefix=info_prefix)
|
5c4ea9bd3e27e5ce1c5eddc4641bf53c4c50bbf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/5c4ea9bd3e27e5ce1c5eddc4641bf53c4c50bbf0/reflection_file_reader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
81,
24462,
67,
16223,
12,
2890,
16,
4422,
31365,
67,
8117,
18042,
33,
7036,
16,
2944,
67,
8117,
18042,
33,
8381,
4672,
309,
261,
2890,
18,
768,
67,
723,
1435,
353,
599,
4672,
327,
5378,
309,
261,
2890,
18,
768,
67,
723,
1435,
422,
315,
71,
299,
70,
92,
18,
81,
24462,
18,
1126,
6,
4672,
327,
365,
18,
768,
67,
1745,
1435,
309,
261,
1376,
67,
3239,
353,
599,
4672,
1123,
67,
3239,
273,
365,
18,
768,
67,
529,
1435,
397,
6153,
309,
261,
1376,
67,
3239,
18,
17514,
1918,
2932,
18,
4898,
13,
578,
1123,
67,
3239,
18,
17514,
1918,
2932,
18,
27576,
3719,
30,
1123,
67,
3239,
273,
1123,
67,
3239,
63,
22,
26894,
327,
365,
6315,
768,
67,
1745,
18,
345,
67,
81,
24462,
67,
16223,
12,
4422,
31365,
67,
8117,
18042,
33,
3353,
31365,
67,
8117,
18042,
16,
2944,
67,
8117,
18042,
33,
5734,
67,
8117,
18042,
16,
1123,
67,
3239,
33,
1376,
67,
3239,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
81,
24462,
67,
16223,
12,
2890,
16,
4422,
31365,
67,
8117,
18042,
33,
7036,
16,
2944,
67,
8117,
18042,
33,
8381,
4672,
309,
261,
2890,
18,
768,
67,
723,
1435,
353,
599,
4672,
327,
5378,
309,
261,
2890,
18,
768,
67,
723,
1435,
422,
315,
71,
299,
70,
92,
18,
81,
24462,
18,
1126,
6,
4672,
327,
365,
18,
768,
67,
1745,
1435,
309,
261,
1376,
67,
3239,
353,
599,
4672,
1123,
67,
3239,
273,
365,
18,
768,
67,
529,
1435,
397,
6153,
309,
261,
1376,
67,
3239,
18,
17514,
1918,
2932,
18,
4898,
13,
578,
1123,
67,
3239,
18,
17514,
1918,
2932,
18,
27576,
3719,
30,
1123,
67,
3239,
273,
1123,
67,
3239,
63,
22,
2
] |
if certFile and keyFile: h = httplib.HTTPSConnection(server, key_file = keyFile, cert_file = certFile)
|
if cert and key: h = httplib.HTTPSConnection(server, key_file = key, cert_file = cert)
|
def get_output(self): """ Return the output file, i.e. the file containing the frame cache data. or the files itself as tuple (for DAX) """ if self.__dax: # we are a dax running in grid mode so we need to resolve the # frame file metadata into LFNs so pegasus can query the RLS if self.__lfn_list is None:
|
24b81d2ec6995782c831003011aff6c9c31e0e57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/24b81d2ec6995782c831003011aff6c9c31e0e57/pipeline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
12,
2890,
4672,
3536,
2000,
326,
876,
585,
16,
277,
18,
73,
18,
326,
585,
4191,
326,
2623,
1247,
501,
18,
578,
326,
1390,
6174,
487,
3193,
261,
1884,
463,
2501,
13,
3536,
309,
365,
16186,
72,
651,
30,
468,
732,
854,
279,
302,
651,
3549,
316,
3068,
1965,
1427,
732,
1608,
358,
2245,
326,
468,
2623,
585,
1982,
1368,
18803,
10386,
1427,
29231,
345,
407,
848,
843,
326,
534,
3045,
309,
365,
16186,
80,
4293,
67,
1098,
353,
599,
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,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
1390,
6174,
487,
3193,
261,
1884,
463,
2501,
13,
3536,
309,
365,
16186,
72,
651,
30,
468,
732,
854,
279,
302,
651,
3549,
316,
3068,
1965,
1427,
732,
1608,
358,
2245,
326,
468,
2623,
585,
1982,
1368,
18803,
10386,
1427,
29231,
345,
407,
848,
843,
326,
534,
3045,
309,
365,
16186,
80,
4293,
67,
1098,
353,
599,
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
] |
def write(self, text='', nl=True, first=False): indent = self.indentation * ' ' if first: self.result.write(indent[:self.indentfirstline or None] + text) self.indentfirstline = 0 elif text: self.result.write(indent + text) if nl: self.result.write('\n')
|
def flush_par(self, noskip=False, force=False, nowrap=False): """Format and write the current paragraph.""" if nowrap: par = self.get_par(wrap=False).splitlines() else: par = self.get_par(wrap=True) if par or force: for i, line in enumerate(par): self.write(line, first=(i==0)) if not noskip: self.write()
|
def write(self, text='', nl=True, first=False): indent = self.indentation * ' ' if first: self.result.write(indent[:self.indentfirstline or None] + text) self.indentfirstline = 0 elif text: # don't write indentation only self.result.write(indent + text) if nl: self.result.write('\n')
|
6ce8d3660b7cb8ebd5dc9b1be5e810f62dbf72d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/6ce8d3660b7cb8ebd5dc9b1be5e810f62dbf72d3/zeml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
2218,
2187,
7741,
33,
5510,
16,
1122,
33,
8381,
4672,
3504,
273,
365,
18,
9355,
367,
380,
296,
296,
309,
1122,
30,
365,
18,
2088,
18,
2626,
12,
9355,
10531,
2890,
18,
9355,
3645,
1369,
578,
599,
65,
397,
977,
13,
365,
18,
9355,
3645,
1369,
273,
374,
1327,
977,
30,
468,
2727,
1404,
1045,
12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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
2218,
2187,
7741,
33,
5510,
16,
1122,
33,
8381,
4672,
3504,
273,
365,
18,
9355,
367,
380,
296,
296,
309,
1122,
30,
365,
18,
2088,
18,
2626,
12,
9355,
10531,
2890,
18,
9355,
3645,
1369,
578,
599,
65,
397,
977,
13,
365,
18,
9355,
3645,
1369,
273,
374,
1327,
977,
30,
468,
2727,
1404,
1045,
12018,
1338,
365,
18,
2088,
18,
2626,
12,
9355,
397,
977,
13,
309,
7741,
30,
365,
18,
2088,
18,
2626,
2668,
64,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if context is None: context = getcontext() ans = self._check_nans(exp, context) if ans: return ans if exp._isinfinity() or self._isinfinity(): if exp._isinfinity() and self._isinfinity(): return self return context._raise_error(InvalidOperation, 'quantize with one INF')
|
if self._is_special or exp._is_special: ans = self._check_nans(exp, context) if ans: return ans if exp._isinfinity() or self._isinfinity(): if exp._isinfinity() and self._isinfinity(): return self if context is None: context = getcontext() return context._raise_error(InvalidOperation, 'quantize with one INF')
|
def quantize(self, exp, rounding = None, context=None, watchexp = 1): """Quantize self so its exponent is the same as that of exp.
|
1a63da64df2af26e1f050749c19281f1de9084fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1a63da64df2af26e1f050749c19281f1de9084fa/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10251,
554,
12,
2890,
16,
1329,
16,
13885,
273,
599,
16,
819,
33,
7036,
16,
4267,
2749,
273,
404,
4672,
3536,
19471,
554,
365,
1427,
2097,
9100,
353,
326,
1967,
487,
716,
434,
1329,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10251,
554,
12,
2890,
16,
1329,
16,
13885,
273,
599,
16,
819,
33,
7036,
16,
4267,
2749,
273,
404,
4672,
3536,
19471,
554,
365,
1427,
2097,
9100,
353,
326,
1967,
487,
716,
434,
1329,
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
] |
run_module.__name__ = '.'.join(module) functions.append(run_module)
|
name = '.'.join(module) run_module.__name__ = name names_to_functions[name] = run_module functions[run_module] = set() for fn, deps in DEPENDENCIES.iteritems(): if fn in names_to_functions: functions[names_to_functions[fn]] = set( names_to_functions[dep] for dep in deps)
|
def run_tests(start, full=False): os.path.walk(start, lister, full) functions = [] for module in modules: # Create a function that'll test a particular module. module=module # is a hack to force python to evaluate the params now. We then # rename the function to make error reporting nicer. run_module = lambda module=module: run_test(module) run_module.__name__ = '.'.join(module) functions.append(run_module) try: dargs = {} if debug: dargs['max_simultaneous_procs'] = 1 pe = parallel.ParallelExecute(functions, **dargs) pe.run_until_completion() except parallel.ParallelError, err: return err.errors return []
|
78d5a60a153b05fd0a0657beaee98eab5069b074 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/78d5a60a153b05fd0a0657beaee98eab5069b074/unittest_suite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
1937,
16,
1983,
33,
8381,
4672,
1140,
18,
803,
18,
11348,
12,
1937,
16,
666,
264,
16,
1983,
13,
225,
4186,
273,
5378,
364,
1605,
316,
4381,
30,
468,
1788,
279,
445,
716,
5614,
1842,
279,
6826,
1605,
18,
225,
1605,
33,
2978,
468,
353,
279,
11769,
358,
2944,
5790,
358,
5956,
326,
859,
2037,
18,
225,
1660,
1508,
468,
6472,
326,
445,
358,
1221,
555,
16096,
11562,
264,
18,
1086,
67,
2978,
273,
3195,
1605,
33,
2978,
30,
1086,
67,
3813,
12,
2978,
13,
508,
273,
2611,
18,
5701,
12,
2978,
13,
1086,
67,
2978,
16186,
529,
972,
273,
508,
1257,
67,
869,
67,
10722,
63,
529,
65,
273,
1086,
67,
2978,
4186,
63,
2681,
67,
2978,
65,
273,
444,
1435,
225,
364,
2295,
16,
8740,
316,
2030,
25690,
1157,
7266,
3991,
18,
2165,
3319,
13332,
309,
2295,
316,
1257,
67,
869,
67,
10722,
30,
4186,
63,
1973,
67,
869,
67,
10722,
63,
4293,
13563,
273,
444,
12,
1257,
67,
869,
67,
10722,
63,
15037,
65,
364,
5993,
316,
8740,
13,
225,
775,
30,
302,
1968,
273,
2618,
309,
1198,
30,
302,
1968,
3292,
1896,
67,
9812,
25013,
67,
27537,
3546,
273,
404,
2804,
273,
7230,
18,
13056,
5289,
12,
10722,
16,
2826,
72,
1968,
13,
2804,
18,
2681,
67,
12198,
67,
11469,
1435,
1335,
7230,
18,
13056,
668,
16,
393,
30,
327,
393,
18,
4324,
327,
5378,
282,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
1937,
16,
1983,
33,
8381,
4672,
1140,
18,
803,
18,
11348,
12,
1937,
16,
666,
264,
16,
1983,
13,
225,
4186,
273,
5378,
364,
1605,
316,
4381,
30,
468,
1788,
279,
445,
716,
5614,
1842,
279,
6826,
1605,
18,
225,
1605,
33,
2978,
468,
353,
279,
11769,
358,
2944,
5790,
358,
5956,
326,
859,
2037,
18,
225,
1660,
1508,
468,
6472,
326,
445,
358,
1221,
555,
16096,
11562,
264,
18,
1086,
67,
2978,
273,
3195,
1605,
33,
2978,
30,
1086,
67,
3813,
12,
2978,
13,
508,
273,
2611,
18,
5701,
12,
2978,
13,
1086,
67,
2978,
16186,
529,
972,
273,
508,
1257,
67,
869,
67,
10722,
63,
529,
65,
273,
1086,
67,
2978,
4186,
2
] |
if verbose: print 'Creating local directory', localdir
|
if verbose: print 'Creating local directory', `localdir`
|
def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open(infofilename, 'r').read() except IOError, msg: text = '{}' try: info = eval(text) except (SyntaxError, NameError): print 'Bad mirror info in %s' % infofilename info = {} subdirs = [] listing = [] if verbose: print 'Listing remote directory %s...' % pwd f.retrlines('LIST', listing.append) filesfound = [] for line in listing: if verbose > 1: print '-->', `line` if mac: # Mac listing has just filenames; # trailing / means subdirectory filename = string.strip(line) mode = '-' if filename[-1:] == '/': filename = filename[:-1] mode = 'd' infostuff = '' else: # Parse, assuming a UNIX listing words = string.split(line, None, 8) if len(words) < 6: if verbose > 1: print 'Skipping short line' continue filename = words[-1] if string.find(filename, " -> ") >= 0: if verbose > 1: print 'Skipping symbolic link %s' % \ filename continue infostuff = words[-5:-1] mode = words[0] skip = 0 for pat in skippats: if fnmatch(filename, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', filename skip = 1 break if skip: continue if mode[0] == 'd': if verbose > 1: print 'Remembering subdirectory', filename subdirs.append(filename) continue filesfound.append(filename) if info.has_key(filename) and info[filename] == infostuff: if verbose > 1: print 'Already have this version of', filename continue fullname = os.path.join(localdir, filename) tempname = os.path.join(localdir, '@'+filename) if interactive: doit = askabout('file', filename, pwd) if not doit: if not info.has_key(filename): info[filename] = 'Not retrieved' continue try: os.unlink(tempname) except os.error: pass try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %s: %s" % (tempname, str(msg)) continue if verbose: print 'Retrieving %s from %s as %s...' % \ (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout) else: fp1 = fp t0 = time.time() try: f.retrbinary('RETR ' + filename, fp1.write, 8*1024) except ftplib.error_perm, msg: print msg t1 = time.time() bytes = fp.tell() fp.close() if fp1 != fp: fp1.close() try: os.unlink(fullname) except os.error: pass # Ignore the error try: os.rename(tempname, fullname) except os.error, msg: print "Can't rename %s to %s: %s" % (tempname, fullname, str(msg)) continue info[filename] = infostuff writedict(info, infofilename) if verbose: dt = t1 - t0 kbytes = bytes / 1024.0 print int(round(kbytes)), print 'Kbytes in', print int(round(dt)), print 'seconds', if t1 > t0: print '(~%d Kbytes/sec)' % \ int(round(kbytes/dt),) print # # Remove files from info that are no longer remote deletions = 0 for filename in info.keys(): if filename not in filesfound: if verbose: print "Removing obsolete info entry for", print filename, "in", localdir or "." del info[filename] deletions = deletions + 1 if deletions: writedict(info, infofilename) # # Remove local files that are no longer in the remote directory try: if not localdir: names = os.listdir(os.curdir) else: names = os.listdir(localdir) except os.error: names = [] for name in names: if name[0] == '.' or info.has_key(name) or name in subdirs: continue skip = 0 for pat in skippats: if fnmatch(name, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', name skip = 1 break if skip: continue fullname = os.path.join(localdir, name) if not rmok: if verbose: print 'Local file', fullname, print 'is no longer pertinent' continue if verbose: print 'Removing local file/dir', fullname remove(fullname) # # Recursively mirror subdirectories for subdir in subdirs: if interactive: doit = askabout('subdirectory', subdir, pwd) if not doit: continue if verbose: print 'Processing subdirectory', subdir localsubdir = os.path.join(localdir, subdir) pwd = f.pwd() if verbose > 1: print 'Remote directory now:', pwd print 'Remote cwd', subdir try: f.cwd(subdir) except ftplib.error_perm, msg: print "Can't chdir to", subdir, ":", msg else: if verbose: print 'Mirroring as', localsubdir mirrorsubdir(f, localsubdir) if verbose > 1: print 'Remote cwd ..' f.cwd('..') newpwd = f.pwd() if newpwd != pwd: print 'Ended up in wrong directory after cd + cd ..' print 'Giving up now.' break else: if verbose > 1: print 'OK.'
|
177e24029a050d5f78171d466185e2fd80d527b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/177e24029a050d5f78171d466185e2fd80d527b6/ftpmirror.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
1172,
296,
11092,
1191,
1867,
2187,
1375,
3729,
1214,
68,
775,
30,
11882,
481,
12,
3729,
1214,
13,
1335,
1140,
18,
1636,
16,
1234,
30,
1172,
315,
2925,
358,
18312,
1191,
1867,
3113,
1191,
1214,
327,
1123,
3459,
273,
1140,
18,
803,
18,
5701,
12,
3729,
1214,
16,
2418,
27197,
1376,
6134,
775,
30,
977,
273,
1696,
12,
1376,
3459,
16,
296,
86,
16063,
896,
1435,
1335,
8340,
16,
1234,
30,
977,
273,
7485,
775,
30,
1123,
273,
5302,
12,
955,
13,
1335,
261,
22510,
16,
25473,
4672,
1172,
296,
6434,
15593,
1123,
316,
738,
87,
11,
738,
1123,
3459,
1123,
273,
2618,
720,
8291,
273,
5378,
11591,
273,
5378,
309,
3988,
30,
1172,
296,
19081,
2632,
1867,
738,
87,
7821,
738,
14720,
284,
18,
266,
313,
3548,
2668,
7085,
2187,
11591,
18,
6923,
13,
1390,
7015,
273,
5378,
364,
980,
316,
11591,
30,
309,
3988,
405,
404,
30,
1172,
3534,
1870,
16,
1375,
1369,
68,
309,
5318,
30,
468,
13217,
11591,
711,
2537,
9066,
31,
468,
7341,
342,
4696,
29869,
1544,
273,
533,
18,
6406,
12,
1369,
13,
1965,
273,
4014,
309,
1544,
18919,
21,
26894,
422,
2023,
30,
1544,
273,
1544,
10531,
17,
21,
65,
1965,
273,
296,
72,
11,
1123,
334,
3809,
273,
875,
469,
30,
468,
2884,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
1172,
296,
11092,
1191,
1867,
2187,
1375,
3729,
1214,
68,
775,
30,
11882,
481,
12,
3729,
1214,
13,
1335,
1140,
18,
1636,
16,
1234,
30,
1172,
315,
2925,
358,
18312,
1191,
1867,
3113,
1191,
1214,
327,
1123,
3459,
273,
1140,
18,
803,
18,
5701,
12,
3729,
1214,
16,
2418,
27197,
1376,
6134,
775,
30,
977,
273,
1696,
12,
1376,
3459,
16,
296,
86,
16063,
896,
1435,
1335,
8340,
16,
1234,
30,
977,
273,
7485,
775,
30,
1123,
273,
5302,
12,
955,
13,
1335,
261,
2
] |
def __init__(self, func=None, abortable=False, frame=None): super(InProgressCallback, self).__init__(abortable, frame=frame or traceback.extract_stack()[-2])
|
def __init__(self, func=None, abortable=False, frame=0): super(InProgressCallback, self).__init__(abortable, frame=frame-1)
|
def __init__(self, func=None, abortable=False, frame=None): super(InProgressCallback, self).__init__(abortable, frame=frame or traceback.extract_stack()[-2]) if func is not None: # connect self as callback func(self)
|
528ac341939c8c61d82deee44475112f47554e9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/528ac341939c8c61d82deee44475112f47554e9e/async.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1326,
33,
7036,
16,
6263,
429,
33,
8381,
16,
2623,
33,
20,
4672,
2240,
12,
13434,
2428,
16,
365,
2934,
972,
2738,
972,
12,
18623,
429,
16,
2623,
33,
3789,
17,
21,
13,
309,
1326,
353,
486,
599,
30,
468,
3077,
365,
487,
1348,
1326,
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
] |
if timestamp is not None and not isinstance(timestamp, datetime.datetime): raise TypeError("Timestamp must be None or datetime.datetime() instance")
|
if timestamp is not None and not isinstance(timestamp, datetime.datetime): raise TypeError("Timestamp must be None or datetime.datetime() " "instance")
|
def _set_timestamp(self, timestamp): if timestamp is not None and not isinstance(timestamp, datetime.datetime): raise TypeError("Timestamp must be None or datetime.datetime() instance") self._timestamp = timestamp
|
5f80e7bee5e15c983e3441763b57884dc4714023 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/5f80e7bee5e15c983e3441763b57884dc4714023/sample.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
5508,
12,
2890,
16,
2858,
4672,
309,
2858,
353,
486,
599,
471,
486,
1549,
12,
5508,
16,
3314,
18,
6585,
4672,
1002,
3580,
2932,
4921,
1297,
506,
599,
578,
3314,
18,
6585,
1435,
315,
315,
1336,
7923,
365,
6315,
5508,
273,
2858,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
5508,
12,
2890,
16,
2858,
4672,
309,
2858,
353,
486,
599,
471,
486,
1549,
12,
5508,
16,
3314,
18,
6585,
4672,
1002,
3580,
2932,
4921,
1297,
506,
599,
578,
3314,
18,
6585,
1435,
315,
315,
1336,
7923,
365,
6315,
5508,
273,
2858,
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
] |
x = param['10'] y = param['20'] r = param['40']
|
cx = param['10'] cy = param['20'] rx = ry = param['40']
|
def arc(self): param={ '10': None, # X coordinat center '20': None, # Y coordinat center #'30': None, # Z coordinat center '40': 0.0, # radius '50': 0.0, # Start angle '51': 0.0 # End angle } param.update(self.general_param) param = self.read_param(param) x = param['10'] y = param['20'] r = param['40'] start_angle = param['50'] * degrees end_angle = param['51'] * degrees t = self.trafo(Trafo(r,0,0,r,x,y)) r, w1, w2, r, x, y = t.coeff() style = self.get_line_style(**param) self.prop_stack.AddStyle(style.Duplicate()) apply(self.ellipse, (r, w1, w2, r, x, y, start_angle, end_angle, ArcArc))
|
02df12c26818fd938357920396a246a253220885 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/02df12c26818fd938357920396a246a253220885/dxfloader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8028,
12,
2890,
4672,
579,
5899,
202,
11,
2163,
4278,
599,
16,
468,
1139,
2745,
267,
270,
4617,
296,
3462,
4278,
599,
16,
468,
1624,
2745,
267,
270,
4617,
25767,
5082,
4278,
599,
16,
468,
2285,
2745,
267,
270,
4617,
296,
7132,
4278,
374,
18,
20,
16,
468,
5725,
296,
3361,
4278,
374,
18,
20,
16,
468,
3603,
5291,
296,
10593,
4278,
374,
18,
20,
468,
4403,
5291,
289,
579,
18,
2725,
12,
2890,
18,
12259,
67,
891,
13,
579,
273,
365,
18,
896,
67,
891,
12,
891,
13,
225,
9494,
273,
579,
3292,
2163,
3546,
6143,
273,
579,
3292,
3462,
3546,
8581,
273,
16826,
273,
579,
3292,
7132,
3546,
787,
67,
4341,
273,
579,
3292,
3361,
3546,
380,
10904,
679,
67,
4341,
273,
579,
3292,
10593,
3546,
380,
10904,
225,
268,
273,
365,
18,
2033,
617,
12,
1609,
617,
12,
86,
16,
20,
16,
20,
16,
86,
16,
92,
16,
93,
3719,
225,
436,
16,
341,
21,
16,
341,
22,
16,
436,
16,
619,
16,
677,
273,
268,
18,
18132,
1435,
225,
2154,
273,
365,
18,
588,
67,
1369,
67,
4060,
12,
636,
891,
13,
365,
18,
5986,
67,
3772,
18,
986,
2885,
12,
4060,
18,
11826,
10756,
225,
2230,
12,
2890,
18,
292,
10472,
16,
261,
86,
16,
341,
21,
16,
341,
22,
16,
436,
16,
619,
16,
677,
16,
787,
67,
4341,
16,
679,
67,
4341,
16,
24881,
14598,
3719,
225,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8028,
12,
2890,
4672,
579,
5899,
202,
11,
2163,
4278,
599,
16,
468,
1139,
2745,
267,
270,
4617,
296,
3462,
4278,
599,
16,
468,
1624,
2745,
267,
270,
4617,
25767,
5082,
4278,
599,
16,
468,
2285,
2745,
267,
270,
4617,
296,
7132,
4278,
374,
18,
20,
16,
468,
5725,
296,
3361,
4278,
374,
18,
20,
16,
468,
3603,
5291,
296,
10593,
4278,
374,
18,
20,
468,
4403,
5291,
289,
579,
18,
2725,
12,
2890,
18,
12259,
67,
891,
13,
579,
273,
365,
18,
896,
67,
891,
12,
891,
13,
225,
9494,
273,
579,
3292,
2163,
3546,
6143,
273,
579,
3292,
3462,
3546,
8581,
273,
16826,
273,
579,
3292,
7132,
3546,
787,
67,
4341,
273,
579,
3292,
3361,
3546,
2
] |
Deletes vertex, removing all incident edges.
|
Deletes vertex, removing all incident edges. Deleting a non-existant vertex will raise an exception.
|
def delete_vertex(self, vertex): """ Deletes vertex, removing all incident edges. EXAMPLES: sage: G = graphs.WheelGraph(9) sage: G.delete_vertex(0); G.save('sage.png')
|
9e67aea9ccb2516f92465824d3e63b16494101b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9e67aea9ccb2516f92465824d3e63b16494101b3/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
15281,
12,
2890,
16,
5253,
4672,
3536,
17973,
5253,
16,
9427,
777,
22933,
5231,
18,
225,
20988,
310,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
15281,
12,
2890,
16,
5253,
4672,
3536,
17973,
5253,
16,
9427,
777,
22933,
5231,
18,
225,
20988,
310,
279,
1661,
17,
7398,
970,
5253,
903,
1002,
392,
1520,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
611,
273,
19422,
18,
59,
11648,
4137,
12,
29,
13,
272,
410,
30,
611,
18,
3733,
67,
15281,
12,
20,
1769,
611,
18,
5688,
2668,
87,
410,
18,
6446,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bar_box.x1 = box_width/2
|
bar_box.x1 = box_width/2 -bar_width/2
|
def do_allocate(self, box, flags): box_width = box.x2 - box.x1 box_height = box.y2 - box.y1 margin = box_width/8 scroller_width = box_width - 2*margin bar_width = box_width/4 bar_height = box_height - 2*margin - scroller_width bar_box = clutter.ActorBox() bar_box.x1 = box_width/2 bar_box.y1 = margin + scroller_width/2 bar_box.x2 = bar_box.x1 + bar_width bar_box.y2 = bar_box.y1 + bar_height self.scrollbar_background.allocate(bar_box, flags) scroller_box=clutter.ActorBox() scroller_box.x1 = margin scroller_box.x2 = scroller_box.x1 + box_width if self.scroller_position >= box_height-scroller_width -2*margin: self.scroller_position = box_height-scroller_width -2*margin scroller_box.y1 = self.scroller_position scroller_box.y2 = scroller_box.y1 + box_width self.scroller.allocate(scroller_box,flags) scroll_position_percent=self.scroller_position/(box_height-scroller_width -2*margin) self.emit("scroll_position",scroll_position_percent) clutter.Actor.do_allocate(self, box, flags)
|
086e51a16537993aa8c24c5cf5cba88573b4a720 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5279/086e51a16537993aa8c24c5cf5cba88573b4a720/scrollbar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
16247,
12,
2890,
16,
3919,
16,
2943,
4672,
3919,
67,
2819,
273,
3919,
18,
92,
22,
300,
3919,
18,
92,
21,
3919,
67,
4210,
273,
3919,
18,
93,
22,
300,
3919,
18,
93,
21,
7333,
273,
3919,
67,
2819,
19,
28,
225,
888,
1539,
67,
2819,
273,
3919,
67,
2819,
300,
576,
14,
10107,
4653,
67,
2819,
273,
3919,
67,
2819,
19,
24,
4653,
67,
4210,
273,
3919,
67,
4210,
300,
576,
14,
10107,
300,
888,
1539,
67,
2819,
225,
4653,
67,
2147,
273,
927,
18220,
18,
17876,
3514,
1435,
4653,
67,
2147,
18,
92,
21,
273,
3919,
67,
2819,
19,
22,
300,
3215,
67,
2819,
19,
22,
4653,
67,
2147,
18,
93,
21,
273,
7333,
397,
888,
1539,
67,
2819,
19,
22,
4653,
67,
2147,
18,
92,
22,
273,
4653,
67,
2147,
18,
92,
21,
397,
4653,
67,
2819,
4653,
67,
2147,
18,
93,
22,
273,
4653,
67,
2147,
18,
93,
21,
397,
4653,
67,
4210,
365,
18,
12033,
3215,
67,
9342,
18,
16247,
12,
3215,
67,
2147,
16,
2943,
13,
225,
888,
1539,
67,
2147,
33,
830,
18220,
18,
17876,
3514,
1435,
888,
1539,
67,
2147,
18,
92,
21,
273,
7333,
888,
1539,
67,
2147,
18,
92,
22,
273,
888,
1539,
67,
2147,
18,
92,
21,
397,
3919,
67,
2819,
309,
365,
18,
1017,
1539,
67,
3276,
1545,
3919,
67,
4210,
17,
1017,
1539,
67,
2819,
300,
22,
14,
10107,
30,
365,
18,
1017,
1539,
67,
3276,
273,
3919,
67,
4210,
17,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
16247,
12,
2890,
16,
3919,
16,
2943,
4672,
3919,
67,
2819,
273,
3919,
18,
92,
22,
300,
3919,
18,
92,
21,
3919,
67,
4210,
273,
3919,
18,
93,
22,
300,
3919,
18,
93,
21,
7333,
273,
3919,
67,
2819,
19,
28,
225,
888,
1539,
67,
2819,
273,
3919,
67,
2819,
300,
576,
14,
10107,
4653,
67,
2819,
273,
3919,
67,
2819,
19,
24,
4653,
67,
4210,
273,
3919,
67,
4210,
300,
576,
14,
10107,
300,
888,
1539,
67,
2819,
225,
4653,
67,
2147,
273,
927,
18220,
18,
17876,
3514,
1435,
4653,
67,
2147,
18,
92,
21,
273,
3919,
67,
2819,
19,
22,
300,
3215,
67,
2819,
19,
22,
4653,
67,
2147,
18,
93,
21,
273,
7333,
2
] |
f.seek(0, 2) expect(f.tell(), size+1) newsize = size - 10 f.seek(newsize) f.truncate() expect(f.tell(), newsize) f.seek(0, 2) expect(f.tell(), newsize) newsize -= 1 f.seek(42) f.truncate(newsize) expect(f.tell(), 42) f.seek(0, 2) expect(f.tell(), newsize)
|
try: f.seek(0, 2) expect(f.tell(), size+1) newsize = size - 10 f.seek(newsize) f.truncate() expect(f.tell(), newsize) f.seek(0, 2) expect(f.tell(), newsize) newsize -= 1 f.seek(42) f.truncate(newsize) expect(f.tell(), 42) f.seek(0, 2) expect(f.tell(), newsize)
|
def expect(got_this, expect_this): if test_support.verbose: print '%r =?= %r ...' % (got_this, expect_this), if got_this != expect_this: if test_support.verbose: print 'no' raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print 'yes'
|
063606a0d5302d8a5530297a70494a9cad334e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/063606a0d5302d8a5530297a70494a9cad334e83/test_largefile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
1995,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
3631,
309,
2363,
67,
2211,
480,
4489,
67,
2211,
30,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
296,
2135,
11,
1002,
1842,
67,
13261,
18,
4709,
2925,
16,
296,
13212,
738,
86,
16,
1496,
2665,
738,
86,
11,
738,
64,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
13,
469,
30,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
296,
9707,
11,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
1995,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
3631,
309,
2363,
67,
2211,
480,
4489,
67,
2211,
30,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
296,
2135,
11,
1002,
1842,
67,
13261,
18,
4709,
2925,
16,
296,
13212,
738,
86,
16,
1496,
2665,
738,
86,
11,
738,
64,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
13,
469,
30,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
296,
9707,
11,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"path": os.path.join(path, f),
|
"path": os.path.join(abspath, f),
|
def dirlist(**map): parity = 0 fl = files.keys() fl.sort() for f in fl: full, fnode = files[f] if fnode: continue
|
8cd3bcd6805318c02bbc054a6543b549daaf60a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/8cd3bcd6805318c02bbc054a6543b549daaf60a9/hgweb_mod.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1577,
1098,
12,
636,
1458,
4672,
19904,
273,
374,
1183,
273,
1390,
18,
2452,
1435,
1183,
18,
3804,
1435,
364,
284,
316,
1183,
30,
1983,
16,
284,
2159,
273,
1390,
63,
74,
65,
309,
284,
2159,
30,
1324,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1577,
1098,
12,
636,
1458,
4672,
19904,
273,
374,
1183,
273,
1390,
18,
2452,
1435,
1183,
18,
3804,
1435,
364,
284,
316,
1183,
30,
1983,
16,
284,
2159,
273,
1390,
63,
74,
65,
309,
284,
2159,
30,
1324,
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
] |
Abelian variety factor of dimension 2 of J0(33)
|
Simple abelian subvariety 11a(3,33) of dimension 1 of J0(33)
|
def rank(self): """ Return the rank of the underlying lattice of self.
|
231a556974015ed454b20c5783447e82495d8183 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/231a556974015ed454b20c5783447e82495d8183/abvar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
4672,
3536,
2000,
326,
6171,
434,
326,
6808,
16690,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
pickSample = ev.xdata * samp_rate
|
pickSample = (ev.xdata - t[0]) * samp_rate
|
def __mpl_keyPressEvent(self, ev): if self.widgets.qToolButton_showMap.isChecked(): return keys = self.keys phase_type = str(self.widgets.qComboBox_phaseType.currentText()) dict = self.dicts[self.stPt] st = self.streams[self.stPt] ####################################################################### # Start of key events related to picking # ####################################################################### # For some key events (picking events) we need information on the x/y # position of the cursor: if ev.key in [keys['setPick'], keys['setPickError'], keys['setMagMin'], keys['setMagMax']]: # some keyPress events only make sense inside our matplotlib axes if ev.inaxes not in self.axs: return #We want to round from the picking location to #the time value of the nearest time sample: samp_rate = st[0].stats.sampling_rate pickSample = ev.xdata * samp_rate pickSample = round(pickSample) pickSample = pickSample / samp_rate # we need the position of the cursor location # in the seismogram array: xpos = pickSample * samp_rate
|
bef65c6713ba88a6ae2e560428b5b3789948b15e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/bef65c6713ba88a6ae2e560428b5b3789948b15e/obspyck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10514,
67,
856,
11840,
1133,
12,
2890,
16,
2113,
4672,
309,
365,
18,
18148,
18,
85,
6364,
3616,
67,
4500,
863,
18,
291,
11454,
13332,
327,
1311,
273,
365,
18,
2452,
6855,
67,
723,
273,
609,
12,
2890,
18,
18148,
18,
85,
22199,
67,
13961,
559,
18,
2972,
1528,
10756,
2065,
273,
365,
18,
16287,
63,
2890,
18,
334,
16484,
65,
384,
273,
365,
18,
16320,
63,
2890,
18,
334,
16484,
65,
225,
28256,
1970,
1189,
468,
3603,
434,
498,
2641,
3746,
358,
6002,
310,
17311,
468,
28256,
1970,
1189,
468,
2457,
2690,
498,
2641,
261,
11503,
310,
2641,
13,
732,
1608,
1779,
603,
326,
619,
19,
93,
468,
1754,
434,
326,
3347,
30,
309,
2113,
18,
856,
316,
306,
2452,
3292,
542,
17968,
17337,
1311,
3292,
542,
17968,
668,
17337,
1311,
3292,
542,
11372,
2930,
17337,
1311,
3292,
542,
11372,
2747,
3546,
14542,
468,
2690,
498,
11840,
2641,
1338,
1221,
12764,
4832,
3134,
13892,
6515,
309,
2113,
18,
267,
10855,
486,
316,
365,
18,
651,
87,
30,
327,
468,
3218,
2545,
358,
3643,
628,
326,
6002,
310,
2117,
358,
468,
5787,
813,
460,
434,
326,
11431,
813,
3296,
30,
10747,
67,
5141,
273,
384,
63,
20,
8009,
5296,
18,
23002,
67,
5141,
6002,
8504,
273,
261,
14965,
18,
92,
892,
300,
268,
63,
20,
5717,
380,
10747,
67,
5141,
6002,
8504,
273,
3643,
12,
11503,
8504,
13,
6002,
8504,
273,
6002,
8504,
342,
10747,
67,
5141,
468,
732,
1608,
326,
1754,
434,
326,
3347,
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,
10514,
67,
856,
11840,
1133,
12,
2890,
16,
2113,
4672,
309,
365,
18,
18148,
18,
85,
6364,
3616,
67,
4500,
863,
18,
291,
11454,
13332,
327,
1311,
273,
365,
18,
2452,
6855,
67,
723,
273,
609,
12,
2890,
18,
18148,
18,
85,
22199,
67,
13961,
559,
18,
2972,
1528,
10756,
2065,
273,
365,
18,
16287,
63,
2890,
18,
334,
16484,
65,
384,
273,
365,
18,
16320,
63,
2890,
18,
334,
16484,
65,
225,
28256,
1970,
1189,
468,
3603,
434,
498,
2641,
3746,
358,
6002,
310,
17311,
468,
28256,
1970,
1189,
468,
2457,
2690,
498,
2641,
261,
11503,
310,
2641,
13,
732,
1608,
1779,
603,
326,
619,
19,
93,
468,
1754,
434,
326,
3347,
30,
309,
2113,
18,
2
] |
r.play() self.assertStateEmpty(s) s.freeze_while(work) self.assertState(s) def test_freeze_thaw__not_buffering(self): s = State() r = ev_snapshot(s) s.freeze(buffer=False) self.assertFalse(s._buffering) r.play() s.thaw(replay=True) self.assertFalse(s.buffer) self.assertStateEmpty(s)
|
pass s.freeze_while(work, clear_after=True) self.assertFalse(s.event_count)
|
def work(): r.play() self.assertStateEmpty(s)
|
22b5dd710c73b6077ac592dbe5b55fdc263f37b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/22b5dd710c73b6077ac592dbe5b55fdc263f37b4/test_events_state.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
436,
18,
1601,
1435,
365,
18,
11231,
1119,
1921,
12,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
436,
18,
1601,
1435,
365,
18,
11231,
1119,
1921,
12,
87,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.ptmp.r += (atoms.du * self.dR)
|
self.ptmp.r += (self.du * self.dR)
|
def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',atoms.r atoms.f = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.f[i-1] = atoms.images[i].get_forces() print >> g,'atoms.f',atoms.f try: atoms.start except:atoms.start=0 if(not atoms.start): atoms.start = 1 atoms.a = npy.zeros(self.memory+1, 'd') self.ptmp = atoms self.maxstep = npy.sqrt(self.maxstep * self.ni) atoms.lbfgsinit = 0 try: atoms.lbfgsinit except:atoms.lbfgsinit=0 if(not atoms.lbfgsinit): atoms.lbfgsinit = 1 atoms.Ho = npy.ones((self.ni, atoms.natoms, self.dim), 'd') if (not self.min=='line'):atoms.Ho = atoms.Ho * self.alpha atoms.ITR = 1 atoms.s = [1.] atoms.y = [1.] atoms.rho = [1.] else: a1 = abs (npy.vdot(atoms.f, atoms.f_old)) a2 = npy.vdot(atoms.f_old, atoms.f_old) print 'a1,a2 created',a1,a2 if(self.min=='line'): if(a1<=0.5* a2 and a2!=0): reset_flag = 0 else: reset_flag = 1 else: reset_flag = 0 if(reset_flag==0): g1 = open('out1','w') g2 = open('out2','w') print >> g1,'atoms.r',atoms.r print >> g2,'atoms.r_old',atoms.r_old ITR = atoms.ITR#correctly generated if(ITR > self.memory): atoms.s.pop(1) atoms.y.pop(1) atoms.rho.pop(1) ITR=self.memory atoms.s.append(atoms.r - atoms.r_old)#!!atoms.r is not updating # boundry cond # for i in range(atoms.ni): # if(method=='min'):i=0 # try: # DBC(atoms.s[ITR][i],atoms.p[i].Box) #need to make matrix for box # except: # print "Box not found." # if(method=='min'):break atoms.y.append(-(atoms.f-atoms.f_old)) atoms.rho.append(1/npy.vdot(atoms.y[ITR],atoms.s[ITR])) atoms.ITR += 1 else:
|
1a55a570d87917cc147bfa837a3336109417cb92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/1a55a570d87917cc147bfa837a3336109417cb92/glbfgs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
20,
468,
309,
12,
902,
365,
18,
15834,
4672,
14937,
18,
381,
651,
33,
21,
314,
273,
1696,
2668,
659,
17023,
91,
6134,
9006,
18,
86,
273,
1130,
93,
18,
22008,
12443,
2890,
18,
15834,
16,
9006,
18,
82,
14937,
16,
365,
18,
3509,
3631,
296,
72,
6134,
364,
277,
316,
1048,
12,
21,
16,
9006,
18,
82,
7369,
17,
21,
4672,
9006,
18,
86,
63,
77,
17,
21,
65,
273,
9006,
18,
7369,
63,
77,
8009,
588,
67,
12388,
1435,
1172,
1671,
314,
11189,
14937,
18,
86,
2187,
14937,
18,
86,
9006,
18,
74,
273,
1130,
93,
18,
22008,
12443,
2890,
18,
15834,
16,
9006,
18,
82,
14937,
16,
365,
18,
3509,
3631,
296,
72,
6134,
364,
277,
316,
1048,
12,
21,
16,
9006,
18,
82,
7369,
17,
21,
4672,
9006,
18,
74,
63,
77,
17,
21,
65,
273,
9006,
18,
7369,
63,
77,
8009,
588,
67,
1884,
764,
1435,
1172,
1671,
314,
11189,
14937,
18,
74,
2187,
14937,
18,
74,
775,
30,
9006,
18,
1937,
1335,
30,
14937,
18,
1937,
33,
20,
309,
12,
902,
9006,
18,
1937,
4672,
9006,
18,
1937,
273,
404,
9006,
18,
69,
273,
1130,
93,
18,
22008,
12,
2890,
18,
7858,
15,
21,
16,
296,
72,
6134,
365,
18,
337,
1291,
273,
9006,
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,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
20,
468,
309,
12,
902,
365,
18,
15834,
4672,
14937,
18,
381,
651,
33,
21,
314,
273,
1696,
2668,
659,
17023,
91,
6134,
9006,
18,
86,
273,
1130,
93,
18,
22008,
12443,
2890,
18,
15834,
16,
9006,
18,
82,
14937,
16,
365,
18,
3509,
3631,
296,
72,
6134,
364,
277,
316,
1048,
12,
21,
16,
9006,
18,
82,
7369,
17,
21,
4672,
9006,
18,
86,
63,
77,
17,
21,
65,
273,
9006,
18,
7369,
63,
77,
8009,
588,
67,
12388,
1435,
1172,
2
] |
return res
|
return res
|
def delete(self, cursor, user, ids, context=None): sale_obj = self.pool.get('sale.sale') sale_line_obj = self.pool.get('sale.line')
|
15dc5890ce3b8bcd29e7acb0c9f8e05dc597cb53 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9306/15dc5890ce3b8bcd29e7acb0c9f8e05dc597cb53/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
272,
5349,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
87,
5349,
6134,
272,
5349,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1369,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
272,
5349,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
87,
5349,
6134,
272,
5349,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1369,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
crc = -1808088941
|
crc = 2486878355
|
def test_same_as_binascii_crc32(self): foo = 'abcdefghijklmnop' crc = -1808088941 self.assertEqual(binascii.crc32(foo), crc) self.assertEqual(zlib.crc32(foo), crc) self.assertEqual(binascii.crc32('spam'), zlib.crc32('spam'))
|
ca15bf29c9e503be48ad41c00ea50d5474fbcf08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/ca15bf29c9e503be48ad41c00ea50d5474fbcf08/test_zlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
14307,
67,
345,
67,
4757,
9184,
67,
22988,
1578,
12,
2890,
4672,
8431,
273,
296,
28953,
17680,
8302,
16391,
13607,
556,
11,
10619,
273,
4248,
5292,
28,
8285,
23,
2539,
365,
18,
11231,
5812,
12,
4757,
9184,
18,
22988,
1578,
12,
11351,
3631,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
14307,
67,
345,
67,
4757,
9184,
67,
22988,
1578,
12,
2890,
4672,
8431,
273,
296,
28953,
17680,
8302,
16391,
13607,
556,
11,
10619,
273,
4248,
5292,
28,
8285,
23,
2539,
365,
18,
11231,
5812,
12,
4757,
9184,
18,
22988,
1578,
12,
11351,
3631,
10619,
13,
365,
18,
11231,
5812,
12,
94,
2941,
18,
22988,
1578,
12,
11351,
3631,
10619,
13,
365,
18,
11231,
5812,
12,
4757,
9184,
18,
22988,
1578,
2668,
1752,
301,
19899,
24220,
18,
22988,
1578,
2668,
1752,
301,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.__version == 7: key = (r"%s\7.0\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories" % (self.__root,))
|
if self.__version >= 7: key = (r"%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories" % (self.__root, self.__version))
|
def get_msvc_paths(self, path, platform='x86'): """Get a list of devstudio directories (include, lib or path).
|
e9a92aa03ac91c307a90db8eefff22cea1b97399 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e9a92aa03ac91c307a90db8eefff22cea1b97399/msvccompiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
4227,
67,
4481,
12,
2890,
16,
589,
16,
4072,
2218,
92,
5292,
11,
4672,
3536,
967,
279,
666,
434,
4461,
334,
4484,
6402,
261,
6702,
16,
2561,
578,
589,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
4227,
67,
4481,
12,
2890,
16,
589,
16,
4072,
2218,
92,
5292,
11,
4672,
3536,
967,
279,
666,
434,
4461,
334,
4484,
6402,
261,
6702,
16,
2561,
578,
589,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def moveOne(self, page, newPageTitle, delete):
|
def moveOne(self, page, newPageTitle):
|
def moveOne(self, page, newPageTitle, delete): try: msg = wikipedia.translate(wikipedia.getSite(), summary) wikipedia.output(u'Moving page %s to [[%s]]' % (page.aslink(), newPageTitle)) if page.move(newPageTitle, msg, throttle=True): if delete: deletemsg = wikipedia.translate(wikipedia.getSite(), deletesummary) page.delete(deletemsg, mark=True) except wikipedia.NoPage: wikipedia.output(u'Page %s does not exist!' % page.title()) except wikipedia.IsRedirectPage: wikipedia.output(u'Page %s is a redirect; skipping.' % page.title()) except wikipedia.LockedPage: wikipedia.output(u'Page %s is locked!' % page.title())
|
fdaa4fded7058caed04ad186ca8423116740a471 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/fdaa4fded7058caed04ad186ca8423116740a471/movepages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
3335,
12,
2890,
16,
1363,
16,
394,
1964,
4247,
4672,
775,
30,
1234,
273,
21137,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
4916,
13,
21137,
18,
2844,
12,
89,
11,
49,
13767,
1363,
738,
87,
358,
12167,
9,
87,
65,
3864,
738,
261,
2433,
18,
345,
1232,
9334,
394,
1964,
4247,
3719,
309,
1363,
18,
8501,
12,
2704,
1964,
4247,
16,
1234,
16,
18304,
33,
5510,
4672,
309,
1430,
30,
6578,
351,
1055,
273,
21137,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
9792,
27804,
13,
1363,
18,
3733,
12,
19003,
351,
1055,
16,
2267,
33,
5510,
13,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
11,
1964,
738,
87,
1552,
486,
1005,
5124,
738,
1363,
18,
2649,
10756,
1335,
21137,
18,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
3335,
12,
2890,
16,
1363,
16,
394,
1964,
4247,
4672,
775,
30,
1234,
273,
21137,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
4916,
13,
21137,
18,
2844,
12,
89,
11,
49,
13767,
1363,
738,
87,
358,
12167,
9,
87,
65,
3864,
738,
261,
2433,
18,
345,
1232,
9334,
394,
1964,
4247,
3719,
309,
1363,
18,
8501,
12,
2704,
1964,
4247,
16,
1234,
16,
18304,
33,
5510,
4672,
309,
1430,
30,
6578,
351,
1055,
273,
21137,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
9792,
27804,
13,
1363,
18,
3733,
12,
19003,
351,
1055,
16,
2267,
33,
5510,
13,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
11,
1964,
738,
87,
1552,
2
] |
for i in range(1,atoms.nimages-1):
|
for i in range(0,atoms.nimages):
|
def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',atoms.r atoms.f = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.f[i-1] = atoms.images[i].get_forces() print >> g,'atoms.f',atoms.f try: atoms.start except:atoms.start=0 if(not atoms.start): atoms.start = 1 atoms.a = npy.zeros(self.memory+1, 'd') self.ptmp = atoms self.maxstep = npy.sqrt(self.maxstep * self.ni) atoms.lbfgsinit = 0 try: atoms.lbfgsinit except:atoms.lbfgsinit=0 if(not atoms.lbfgsinit): atoms.lbfgsinit = 1 atoms.Ho = npy.ones((self.ni, atoms.natoms, self.dim), 'd') if (not self.min=='line'):atoms.Ho = atoms.Ho * self.alpha atoms.ITR = 1 atoms.s = [1.] atoms.y = [1.] atoms.rho = [1.] else: a1 = abs (npy.vdot(atoms.f, atoms.f_old)) a2 = npy.vdot(atoms.f_old, atoms.f_old) print 'a1,a2 created',a1,a2 if(self.min=='line'): if(a1<=0.5* a2 and a2!=0): reset_flag = 0 else: reset_flag = 1 else: reset_flag = 0 if(reset_flag==0): g1 = open('out1','w') g2 = open('out2','w') print >> g1,'atoms.r',atoms.r print >> g2,'atoms.r_old',atoms.r_old ITR = atoms.ITR#correctly generated if(ITR > self.memory): atoms.s.pop(1) atoms.y.pop(1) atoms.rho.pop(1) ITR=self.memory atoms.s.append(atoms.r - atoms.r_old)#!!atoms.r is not updating # boundry cond # for i in range(atoms.ni): # if(method=='min'):i=0 # try: # DBC(atoms.s[ITR][i],atoms.p[i].Box) #need to make matrix for box # except: # print "Box not found." # if(method=='min'):break atoms.y.append(-(atoms.f-atoms.f_old)) atoms.rho.append(1/npy.vdot(atoms.y[ITR],atoms.s[ITR])) atoms.ITR += 1 else:
|
689ed3715e535adf898039f50971002aa6c5a5e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/689ed3715e535adf898039f50971002aa6c5a5e9/glbfgs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
20,
468,
309,
12,
902,
365,
18,
15834,
4672,
14937,
18,
381,
651,
33,
21,
314,
273,
1696,
2668,
659,
17023,
91,
6134,
9006,
18,
86,
273,
1130,
93,
18,
22008,
12443,
2890,
18,
15834,
16,
9006,
18,
82,
14937,
16,
365,
18,
3509,
3631,
296,
72,
6134,
364,
277,
316,
1048,
12,
21,
16,
9006,
18,
82,
7369,
17,
21,
4672,
9006,
18,
86,
63,
77,
17,
21,
65,
273,
9006,
18,
7369,
63,
77,
8009,
588,
67,
12388,
1435,
1172,
1671,
314,
11189,
14937,
18,
86,
2187,
14937,
18,
86,
9006,
18,
74,
273,
1130,
93,
18,
22008,
12443,
2890,
18,
15834,
16,
9006,
18,
82,
14937,
16,
365,
18,
3509,
3631,
296,
72,
6134,
364,
277,
316,
1048,
12,
21,
16,
9006,
18,
82,
7369,
17,
21,
4672,
9006,
18,
74,
63,
77,
17,
21,
65,
273,
9006,
18,
7369,
63,
77,
8009,
588,
67,
1884,
764,
1435,
1172,
1671,
314,
11189,
14937,
18,
74,
2187,
14937,
18,
74,
775,
30,
9006,
18,
1937,
1335,
30,
14937,
18,
1937,
33,
20,
309,
12,
902,
9006,
18,
1937,
4672,
9006,
18,
1937,
273,
404,
9006,
18,
69,
273,
1130,
93,
18,
22008,
12,
2890,
18,
7858,
15,
21,
16,
296,
72,
6134,
365,
18,
337,
1291,
273,
9006,
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,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
20,
468,
309,
12,
902,
365,
18,
15834,
4672,
14937,
18,
381,
651,
33,
21,
314,
273,
1696,
2668,
659,
17023,
91,
6134,
9006,
18,
86,
273,
1130,
93,
18,
22008,
12443,
2890,
18,
15834,
16,
9006,
18,
82,
14937,
16,
365,
18,
3509,
3631,
296,
72,
6134,
364,
277,
316,
1048,
12,
21,
16,
9006,
18,
82,
7369,
17,
21,
4672,
9006,
18,
86,
63,
77,
17,
21,
65,
273,
9006,
18,
7369,
63,
77,
8009,
588,
67,
12388,
1435,
1172,
2
] |
p.solve(solver = solver, log = verbose)
|
p.solve(solver=solver, log=verbose)
|
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
|
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.context.context.absolute_url()
|
return self.context.aq_parent.absolute_url()
|
def nextURL(self): return self.context.context.absolute_url()
|
7de436e56a40c2ae809e91c778f6da62afbc333a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12259/7de436e56a40c2ae809e91c778f6da62afbc333a/clone_type.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
1785,
12,
2890,
4672,
327,
365,
18,
2472,
18,
2472,
18,
12547,
67,
718,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
1785,
12,
2890,
4672,
327,
365,
18,
2472,
18,
2472,
18,
12547,
67,
718,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: print g.next().is_latin_square()
|
sage: g.next().is_latin_square()
|
def LatinSquare_generator(L_start, check_assertions = False): """ Generator for a sequence of uniformly distributed latin squares, given L_start as the initial latin square. This code implements the Markov chain algorithm of Jacobson and Matthews (1996), see below for the BibTex entry. This generator will never throw the StopIteration exception, so it provides an infinite sequence of latin squares. EXAMPLES: Use the back circulant latin square of order 4 as the initial square and print the next two latin squares given by the Markov chain: sage: from sage.combinat.matrices.latin import * sage: g = LatinSquare_generator(back_circulant(4)) sage: print g.next().is_latin_square() True REFERENCE: @article{MR1410617, AUTHOR = {Jacobson, Mark T. and Matthews, Peter}, TITLE = {Generating uniformly distributed random {L}atin squares}, JOURNAL = {J. Combin. Des.}, FJOURNAL = {Journal of Combinatorial Designs}, VOLUME = {4}, YEAR = {1996}, NUMBER = {6}, PAGES = {405--437}, ISSN = {1063-8539}, MRCLASS = {05B15 (60J10)}, MRNUMBER = {MR1410617 (98b:05021)}, MRREVIEWER = {Lars D{\o}vling Andersen}, } """ if check_assertions: assert L_start.is_latin_square() n = L_start.nrows() r1 = r2 = c1 = c2 = x = y = z = -1 proper = True L = L_start.copy() L_rce = L L_cer = LatinSquare(n, n) L_erc = LatinSquare(n, n) while True: if proper: if check_assertions: assert L.is_latin_square() ################################# # Update the other two conjugates for r in range(n): for c in range(n): e = L[r, c] L_cer[c, e] = r L_erc[e, r] = c ################################# yield L r1 = ZZ.random_element(n) c1 = ZZ.random_element(n) x = L[r1, c1] y = x while y == x: y = ZZ.random_element(n) # Now find y in row r1 and column c1. if check_assertions: r2 = 0 c2 = 0 while L[r1, c2] != y: c2 += 1 while L[r2, c1] != y: r2 += 1 assert L_erc[y, r1] == c2 assert L_cer[c1, y] == r2 c2 = L_erc[y, r1] r2 = L_cer[c1, y] if check_assertions: assert L[r1, c2] == y if check_assertions: assert L[r2, c1] == y L[r1, c1] = y L[r1, c2] = x L[r2, c1] = x # Now deal with the unknown point. # We want to form z + (y - x) z = L[r2, c2] if z == x: L[r2, c2] = y else: # z and y have positive coefficients # x is the improper term with a negative coefficient proper = False else: # improper square, # L[r2, c2] = y + z - x # y and z are proper while x is the # improper symbol in the cell L[r2, c2]. r1 = row_containing_sym(L, c2, x) c1 = column_containing_sym(L, r2, x) if check_assertions: assert L[r1, c2] == x if check_assertions: assert L[r2, c1] == x # choose one of the proper symbols # uniformly at random (we will use whatever # lands in variable y). if coin(): y, z = z, y # Add/subtract the symbolic difference (y - x) L[r2, c2] = z L[r1, c2] = y L[r2, c1] = y if L[r1, c1] == y: L[r1, c1] = x proper = True else: # got another improper square z = L[r1, c1] x, y = y, x r2 = r1 c2 = c1 # Now we have L[r2, c2] = z+y-x as # usual proper = False # for emphasis
|
79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11134,
267,
22255,
67,
8812,
12,
48,
67,
1937,
16,
866,
67,
11231,
1115,
273,
1083,
4672,
3536,
10159,
364,
279,
3102,
434,
10823,
715,
16859,
30486,
31206,
16,
864,
511,
67,
1937,
487,
326,
2172,
30486,
8576,
18,
1220,
981,
4792,
326,
6622,
1527,
2687,
4886,
434,
804,
1077,
947,
816,
471,
14493,
451,
359,
87,
261,
19818,
26,
3631,
2621,
5712,
364,
326,
605,
495,
16733,
1241,
18,
1220,
4456,
903,
5903,
604,
326,
16179,
1520,
16,
1427,
518,
8121,
392,
14853,
3102,
434,
30486,
31206,
18,
225,
5675,
8900,
11386,
30,
225,
2672,
326,
1473,
5886,
1934,
970,
30486,
8576,
434,
1353,
1059,
487,
326,
2172,
8576,
471,
1172,
326,
1024,
2795,
30486,
31206,
864,
635,
326,
6622,
1527,
2687,
30,
225,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
7373,
12660,
18,
26578,
1930,
380,
272,
410,
30,
314,
273,
11134,
267,
22255,
67,
8812,
12,
823,
67,
11614,
1934,
970,
12,
24,
3719,
272,
410,
30,
314,
18,
4285,
7675,
291,
67,
26578,
67,
19719,
1435,
1053,
225,
22898,
30,
225,
632,
11480,
95,
23464,
3461,
22135,
4033,
16,
12790,
916,
273,
288,
46,
1077,
947,
816,
16,
6622,
399,
18,
471,
14493,
451,
359,
87,
16,
453,
847,
5779,
29406,
273,
288,
21755,
10823,
715,
16859,
2744,
288,
48,
97,
270,
267,
31206,
5779,
804,
51,
8521,
1013,
273,
288,
46,
18,
1286,
4757,
18,
10597,
18,
5779,
478,
22720,
8521,
1013,
273,
288,
16336,
434,
15645,
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,
11134,
267,
22255,
67,
8812,
12,
48,
67,
1937,
16,
866,
67,
11231,
1115,
273,
1083,
4672,
3536,
10159,
364,
279,
3102,
434,
10823,
715,
16859,
30486,
31206,
16,
864,
511,
67,
1937,
487,
326,
2172,
30486,
8576,
18,
1220,
981,
4792,
326,
6622,
1527,
2687,
4886,
434,
804,
1077,
947,
816,
471,
14493,
451,
359,
87,
261,
19818,
26,
3631,
2621,
5712,
364,
326,
605,
495,
16733,
1241,
18,
1220,
4456,
903,
5903,
604,
326,
16179,
1520,
16,
1427,
518,
8121,
392,
14853,
3102,
434,
30486,
31206,
18,
225,
5675,
8900,
11386,
30,
225,
2672,
326,
1473,
5886,
1934,
970,
30486,
8576,
434,
1353,
1059,
487,
326,
2172,
8576,
471,
1172,
326,
1024,
2795,
30486,
31206,
864,
2
] |
functions = self._fmiCallbackFunctions(self._fmiCallbackLogger(self.fmiCallbackLogger),self._fmiCallbackAllocateMemory(self.fmiCallbackAllocateMemory), self._fmiCallbackFreeMemory(self.fmiCallbackFreeMemory))
|
functions = self._fmiCallbackFunctions functions.logger = self.fmiCallbackLogger functions.allocateMemory = self.fmiCallbackAllocateMemory functions.freeMemory = self.fmiCallbackFreeMemory
|
def instantiate(self, name='Model', logging='0'): """ Instantiate the model. """ instance = self._fmiString(name) guid = self._fmiString(self._GUID) logging = self._fmiBoolean(logging) functions = self._fmiCallbackFunctions(self._fmiCallbackLogger(self.fmiCallbackLogger),self._fmiCallbackAllocateMemory(self.fmiCallbackAllocateMemory), self._fmiCallbackFreeMemory(self.fmiCallbackFreeMemory)) self._model = self._fmiInstantiateModel(instance,guid,functions,logging)
|
3dd5da86a1b141eb432677907f6a34c96e5144ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/3dd5da86a1b141eb432677907f6a34c96e5144ef/fmi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
12,
2890,
16,
508,
2218,
1488,
2187,
2907,
2218,
20,
11,
4672,
3536,
26492,
326,
938,
18,
3536,
791,
273,
365,
6315,
74,
9197,
780,
12,
529,
13,
9875,
273,
365,
6315,
74,
9197,
780,
12,
2890,
6315,
17525,
13,
2907,
273,
365,
6315,
74,
9197,
5507,
12,
11167,
13,
225,
4186,
273,
365,
6315,
74,
9197,
2428,
7503,
282,
4186,
18,
4901,
273,
365,
18,
74,
9197,
2428,
3328,
4186,
18,
16247,
6031,
273,
365,
18,
74,
9197,
2428,
27483,
6031,
4186,
18,
9156,
6031,
273,
365,
18,
74,
9197,
2428,
9194,
6031,
282,
365,
6315,
2284,
273,
365,
6315,
74,
9197,
22438,
1488,
12,
1336,
16,
14066,
16,
10722,
16,
11167,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
12,
2890,
16,
508,
2218,
1488,
2187,
2907,
2218,
20,
11,
4672,
3536,
26492,
326,
938,
18,
3536,
791,
273,
365,
6315,
74,
9197,
780,
12,
529,
13,
9875,
273,
365,
6315,
74,
9197,
780,
12,
2890,
6315,
17525,
13,
2907,
273,
365,
6315,
74,
9197,
5507,
12,
11167,
13,
225,
4186,
273,
365,
6315,
74,
9197,
2428,
7503,
282,
4186,
18,
4901,
273,
365,
18,
74,
9197,
2428,
3328,
4186,
18,
16247,
6031,
273,
365,
18,
74,
9197,
2428,
27483,
6031,
4186,
18,
9156,
6031,
273,
365,
18,
74,
9197,
2428,
9194,
6031,
282,
365,
6315,
2284,
273,
365,
6315,
74,
9197,
22438,
1488,
12,
1336,
16,
14066,
16,
10722,
16,
11167,
13,
225,
2,
-100,
-100
] |
status = os.system(guava_bin_dir + "leon/wtdist " + input + "::code > " + output)
|
status = os.system(guava_bin_dir + "wtdist " + input + "::code > " + output)
|
def spectrum(self, method=None): r""" The default method (gap) uses a GAP kernel function (in C) written by Steve Linton.
|
95a649f73ccf1026718989e9baf7742ec5ebd1ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/95a649f73ccf1026718989e9baf7742ec5ebd1ab/linear_code.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] |
[(123, "a"), (456, "b")])
|
[(123, "a"), (456, "b")], None)
|
def __init__(self): pass
|
7514103f0069f231f572fbedb931da44a8fecdde /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/7514103f0069f231f572fbedb931da44a8fecdde/test_pyjitpl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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12,
2890,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for folder in extract_folder_names(client.list_sub_folders()):
|
for folder in extract_normal_folders(client.list_sub_folders()):
|
def test_subscriptions(client): # Start with a clean slate clear_folders(client) for folder in extract_folder_names(client.list_sub_folders()): client.unsubscribe_folder(folder) test_folders = ['foobar', 'stuff & things', u'test & \u2622'] for folder in test_folders: client.create_folder(folder) all_folders = sorted(extract_folder_names(client.list_folders())) for folder in all_folders: client.subscribe_folder(folder) assert all_folders == sorted(extract_folder_names(client.list_sub_folders())) for folder in all_folders: client.unsubscribe_folder(folder) assert extract_folder_names(client.list_sub_folders()) == [] assert_raises(imapclient.IMAPClient.Error, client.subscribe_folder, 'this folder is not likely to exist')
|
882c0fc011701dc48ddf39dc2b95c9d09d8fd22c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9352/882c0fc011701dc48ddf39dc2b95c9d09d8fd22c/livetest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19964,
12,
2625,
4672,
468,
3603,
598,
279,
2721,
2020,
340,
2424,
67,
16064,
12,
2625,
13,
225,
364,
3009,
316,
2608,
67,
6130,
67,
16064,
12,
2625,
18,
1098,
67,
1717,
67,
16064,
1435,
4672,
1004,
18,
318,
9174,
67,
5609,
12,
5609,
13,
225,
1842,
67,
16064,
273,
10228,
617,
947,
297,
2187,
296,
334,
3809,
473,
9198,
2187,
582,
1404,
395,
473,
521,
89,
5558,
3787,
3546,
225,
364,
3009,
316,
1842,
67,
16064,
30,
1004,
18,
2640,
67,
5609,
12,
5609,
13,
225,
777,
67,
16064,
273,
3115,
12,
8004,
67,
5609,
67,
1973,
12,
2625,
18,
1098,
67,
16064,
1435,
3719,
225,
364,
3009,
316,
777,
67,
16064,
30,
1004,
18,
9174,
67,
5609,
12,
5609,
13,
225,
1815,
777,
67,
16064,
422,
3115,
12,
8004,
67,
5609,
67,
1973,
12,
2625,
18,
1098,
67,
1717,
67,
16064,
1435,
3719,
225,
364,
3009,
316,
777,
67,
16064,
30,
1004,
18,
318,
9174,
67,
5609,
12,
5609,
13,
1815,
2608,
67,
5609,
67,
1973,
12,
2625,
18,
1098,
67,
1717,
67,
16064,
10756,
422,
5378,
225,
1815,
67,
354,
6141,
12,
12161,
2625,
18,
3445,
2203,
1227,
18,
668,
16,
1004,
18,
9174,
67,
5609,
16,
296,
2211,
3009,
353,
486,
10374,
358,
1005,
6134,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19964,
12,
2625,
4672,
468,
3603,
598,
279,
2721,
2020,
340,
2424,
67,
16064,
12,
2625,
13,
225,
364,
3009,
316,
2608,
67,
6130,
67,
16064,
12,
2625,
18,
1098,
67,
1717,
67,
16064,
1435,
4672,
1004,
18,
318,
9174,
67,
5609,
12,
5609,
13,
225,
1842,
67,
16064,
273,
10228,
617,
947,
297,
2187,
296,
334,
3809,
473,
9198,
2187,
582,
1404,
395,
473,
521,
89,
5558,
3787,
3546,
225,
364,
3009,
316,
1842,
67,
16064,
30,
1004,
18,
2640,
67,
5609,
12,
5609,
13,
225,
777,
67,
16064,
273,
3115,
12,
8004,
67,
5609,
67,
1973,
12,
2625,
18,
1098,
67,
16064,
1435,
3719,
225,
364,
3009,
316,
777,
67,
16064,
30,
1004,
18,
2
] |
os.fsync(file.fileno())
|
os.fsync(fd)
|
def savemessage(self, uid, content, flags, rtime): # This function only ever saves to tmp/, # but it calls savemessageflags() to actually save to cur/ or new/. ui = UIBase.getglobalui() ui.debug('maildir', 'savemessage: called to write with flags %s and content %s' % \ (repr(flags), repr(content))) if uid < 0: # We cannot assign a new uid. return uid if uid in self.messagelist: # We already have it. self.savemessageflags(uid, flags) return uid
|
6caaea36e03b9fd74b68ca43e7f4dec91f1ff7f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5335/6caaea36e03b9fd74b68ca43e7f4dec91f1ff7f9/Maildir.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4087,
351,
615,
12,
2890,
16,
4555,
16,
913,
16,
2943,
16,
436,
957,
4672,
468,
1220,
445,
1338,
14103,
14649,
358,
1853,
19,
16,
468,
1496,
518,
4097,
4087,
351,
615,
7133,
1435,
358,
6013,
1923,
358,
662,
19,
578,
394,
15865,
5915,
273,
6484,
2171,
18,
588,
10581,
700,
77,
1435,
5915,
18,
4148,
2668,
2540,
545,
481,
2187,
296,
87,
842,
351,
615,
30,
2566,
358,
1045,
598,
2943,
738,
87,
471,
913,
738,
87,
11,
738,
521,
261,
12715,
12,
7133,
3631,
8480,
12,
1745,
20349,
309,
4555,
411,
374,
30,
468,
1660,
2780,
2683,
279,
394,
4555,
18,
327,
4555,
309,
4555,
316,
365,
18,
81,
403,
346,
5449,
30,
468,
1660,
1818,
1240,
518,
18,
365,
18,
87,
842,
351,
615,
7133,
12,
1911,
16,
2943,
13,
327,
4555,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4087,
351,
615,
12,
2890,
16,
4555,
16,
913,
16,
2943,
16,
436,
957,
4672,
468,
1220,
445,
1338,
14103,
14649,
358,
1853,
19,
16,
468,
1496,
518,
4097,
4087,
351,
615,
7133,
1435,
358,
6013,
1923,
358,
662,
19,
578,
394,
15865,
5915,
273,
6484,
2171,
18,
588,
10581,
700,
77,
1435,
5915,
18,
4148,
2668,
2540,
545,
481,
2187,
296,
87,
842,
351,
615,
30,
2566,
358,
1045,
598,
2943,
738,
87,
471,
913,
738,
87,
11,
738,
521,
261,
12715,
12,
7133,
3631,
8480,
12,
1745,
20349,
309,
4555,
411,
374,
30,
468,
1660,
2780,
2683,
279,
394,
4555,
18,
327,
4555,
309,
4555,
316,
365,
18,
81,
403,
346,
5449,
30,
468,
1660,
1818,
2
] |
boto.log.info('Method: %s' % method) boto.log.info('Path: %s' % path) boto.log.info('Data: %s' % data) boto.log.info('Headers: %s' % headers) boto.log.info('Host: %s' % host)
|
boto.log.debug('Method: %s' % method) boto.log.debug('Path: %s' % path) boto.log.debug('Data: %s' % data) boto.log.debug('Headers: %s' % headers) boto.log.debug('Host: %s' % host)
|
def _mexe(self, method, path, data, headers, host=None, sender=None): """ mexe - Multi-execute inside a loop, retrying multiple times to handle transient Internet errors by simply trying again. Also handles redirects.
|
bd4d38e5c3e2c6a146b1f0e8528d0fff3ecf566c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/bd4d38e5c3e2c6a146b1f0e8528d0fff3ecf566c/connection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
81,
14880,
12,
2890,
16,
707,
16,
589,
16,
501,
16,
1607,
16,
1479,
33,
7036,
16,
5793,
33,
7036,
4672,
3536,
312,
14880,
300,
5991,
17,
8837,
4832,
279,
2798,
16,
21081,
3229,
4124,
358,
1640,
12315,
21352,
1334,
635,
8616,
8374,
3382,
18,
8080,
7372,
18064,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
81,
14880,
12,
2890,
16,
707,
16,
589,
16,
501,
16,
1607,
16,
1479,
33,
7036,
16,
5793,
33,
7036,
4672,
3536,
312,
14880,
300,
5991,
17,
8837,
4832,
279,
2798,
16,
21081,
3229,
4124,
358,
1640,
12315,
21352,
1334,
635,
8616,
8374,
3382,
18,
8080,
7372,
18064,
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
] |
id = cameraGeom.Id("R:2,3 S:1,1 C:0,0", ix=0, iy=0)
|
"""Pipeline test case."""
|
def testPipe(self): id = cameraGeom.Id("R:2,3 S:1,1 C:0,0", ix=0, iy=0) clipboard = pexClipboard.Clipboard() clipboard.put("ampId", id) clipboard.put("cameraPolicy", self.cameraPolicy ) clipboard.put("Exposure", self.exposure) clipboard.put("fwhm", 5.) file = pexPolicy.DefaultPolicyFile("ip_pipeline", "MakeCameraGeomStageDictionary.paf", "policy") p1 = pexPolicy.Policy.createPolicy(file) s1 = ipPipe.MakeCameraStage(p1) t1 = SimpleStageTester(s1) file = pexPolicy.DefaultPolicyFile("ip_pipeline", "IsrSaturationStageDictionary.paf", "policy") p2 = pexPolicy.Policy.createPolicy(file) s2 = ipPipe.IsrSaturationStage(p2) t2 = SimpleStageTester(s2) file = pexPolicy.DefaultPolicyFile("ip_pipeline", "IsrOverscanStageDictionary.paf", "policy") p3 = pexPolicy.Policy.createPolicy(file) clipboard.put(p3.get("inputKeys.overscanfittype"), "MEDIAN") s3 = ipPipe.IsrOverscanStage(p3) t3 = SimpleStageTester(s3) file = pexPolicy.DefaultPolicyFile("ip_pipeline", "IsrBiasStageDictionary.paf", "policy") p4 = pexPolicy.Policy.createPolicy(file) s4 = ipPipe.IsrBiasStage(p4) t4 = SimpleStageTester(s4) file = pexPolicy.DefaultPolicyFile("ip_pipeline", "IsrDarkStageDictionary.paf", "policy") p5 = pexPolicy.Policy.createPolicy(file) s5 = ipPipe.IsrDarkStage(p5) t5 = SimpleStageTester(s5) bias = afwImage.ExposureF(self.biasfile) clipboard.put(p4.get("inputKeys.biasexposure"), bias)
|
ad7027ba56a8a82f8d09f2d890b33f54d3ea8847 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6525/ad7027ba56a8a82f8d09f2d890b33f54d3ea8847/isrPipelineUnitTest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
11546,
12,
2890,
4672,
3536,
8798,
1842,
648,
12123,
225,
20304,
273,
293,
338,
15339,
3752,
18,
15339,
3752,
1435,
20304,
18,
458,
2932,
931,
548,
3113,
612,
13,
20304,
18,
458,
2932,
26426,
2582,
3113,
365,
18,
26426,
2582,
262,
20304,
18,
458,
2932,
424,
11291,
3113,
365,
18,
22739,
13,
20304,
18,
458,
2932,
74,
3350,
81,
3113,
1381,
12998,
585,
273,
293,
338,
2582,
18,
1868,
2582,
812,
2932,
625,
67,
14511,
3113,
315,
6464,
16521,
16972,
8755,
10905,
18,
84,
1727,
3113,
315,
5086,
7923,
293,
21,
273,
293,
338,
2582,
18,
2582,
18,
2640,
2582,
12,
768,
13,
272,
21,
273,
2359,
11546,
18,
6464,
16521,
8755,
12,
84,
21,
13,
268,
21,
273,
4477,
8755,
56,
7654,
12,
87,
21,
13,
585,
273,
293,
338,
2582,
18,
1868,
2582,
812,
2932,
625,
67,
14511,
3113,
315,
2520,
86,
15163,
872,
8755,
10905,
18,
84,
1727,
3113,
315,
5086,
7923,
293,
22,
273,
293,
338,
2582,
18,
2582,
18,
2640,
2582,
12,
768,
13,
272,
22,
273,
2359,
11546,
18,
2520,
86,
15163,
872,
8755,
12,
84,
22,
13,
268,
22,
273,
4477,
8755,
56,
7654,
12,
87,
22,
13,
585,
273,
293,
338,
2582,
18,
1868,
2582,
812,
2932,
625,
67,
14511,
3113,
315,
2520,
86,
51,
2496,
4169,
8755,
10905,
18,
84,
1727,
3113,
315,
5086,
7923,
293,
23,
273,
293,
338,
2582,
18,
2582,
18,
2640,
2582,
12,
768,
13,
20304,
18,
458,
12,
84,
23,
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,
1842,
11546,
12,
2890,
4672,
3536,
8798,
1842,
648,
12123,
225,
20304,
273,
293,
338,
15339,
3752,
18,
15339,
3752,
1435,
20304,
18,
458,
2932,
931,
548,
3113,
612,
13,
20304,
18,
458,
2932,
26426,
2582,
3113,
365,
18,
26426,
2582,
262,
20304,
18,
458,
2932,
424,
11291,
3113,
365,
18,
22739,
13,
20304,
18,
458,
2932,
74,
3350,
81,
3113,
1381,
12998,
585,
273,
293,
338,
2582,
18,
1868,
2582,
812,
2932,
625,
67,
14511,
3113,
315,
6464,
16521,
16972,
8755,
10905,
18,
84,
1727,
3113,
315,
5086,
7923,
293,
21,
273,
293,
338,
2582,
18,
2582,
18,
2640,
2582,
12,
768,
13,
272,
21,
273,
2359,
11546,
18,
6464,
16521,
8755,
12,
84,
21,
13,
268,
2
] |
if bytes_recv >= 524288: if not rein_sent: self.client.sendcmd('user ' + USER) self.assertRaises(ftplib.error_perm, self.client.dir) rein_sent = 1
|
def test_user_on_transfer(self): # Test USER while already authenticated and a transfer is # in progress. self.client.login(user=USER, passwd=PASSWD) data = 'abcde12345' * 100000 self.f1.write(data) self.f1.close()
|
08be9d0ff55d04c1e20c062b48af2c54c427a77d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7236/08be9d0ff55d04c1e20c062b48af2c54c427a77d/test_ftpd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1355,
67,
265,
67,
13866,
12,
2890,
4672,
468,
7766,
7443,
1323,
1818,
9370,
471,
279,
7412,
353,
468,
316,
4007,
18,
365,
18,
2625,
18,
5819,
12,
1355,
33,
4714,
16,
19093,
33,
10884,
16006,
13,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1355,
67,
265,
67,
13866,
12,
2890,
4672,
468,
7766,
7443,
1323,
1818,
9370,
471,
279,
7412,
353,
468,
316,
4007,
18,
365,
18,
2625,
18,
5819,
12,
1355,
33,
4714,
16,
19093,
33,
10884,
16006,
13,
501,
273,
296,
18947,
323,
2138,
25574,
11,
380,
25259,
365,
18,
74,
21,
18,
2626,
12,
892,
13,
365,
18,
74,
21,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
res2 = run_sql("DELETE FROM user WHERE id=%s" % userID)
|
res2 = run_sql("DELETE FROM user WHERE id=%s", (userID, ))
|
def perform_rejectaccount(req, userID, email_user_pattern, limit_to, maxpage, page, callback='yes', confirm=0): """Delete account and send an email to the owner.""" (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) res = run_sql("SELECT id, email, note FROM user WHERE id=%s" % userID) output = "" subtitle = "" if res: res2 = run_sql("DELETE FROM user WHERE id=%s" % userID) output += '<b><span class="info">Account rejected and deleted.</span></b>' if CFG_ACCESS_CONTROL_NOTIFY_USER_ABOUT_DELETION == 1: if not res[0][2] or res[0][2] == "0": emailsent = sendAccountRejectedMessage(res[0][1], res[0][1]) elif res[0][2] == "1": emailsent = sendAccountDeletedMessage(res[0][1], res[0][1]) if emailsent: output += """<br><b><span class="info">An email has been sent to the owner of the account.</span></b>""" else: output += """<br><b><span class="info">Could not send an email to the owner of the account.</span></b>""" else: output += '<b><span class="info">The account id given does not exist.</span></b>' body = [output] if callback: return perform_modifyaccounts(req, email_user_pattern, limit_to, maxpage, page, content=output, callback='yes') else: return addadminbox(subtitle, body)
|
6ea5d72a403945bb48459d4ea7eed6856c3451fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/6ea5d72a403945bb48459d4ea7eed6856c3451fb/webaccessadmin_lib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
24163,
4631,
12,
3658,
16,
16299,
16,
2699,
67,
1355,
67,
4951,
16,
1800,
67,
869,
16,
943,
2433,
16,
1363,
16,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
2613,
2236,
471,
1366,
392,
2699,
358,
326,
3410,
12123,
225,
261,
1944,
67,
710,
16,
1357,
67,
2150,
13,
273,
353,
67,
3666,
1355,
12,
3658,
13,
309,
1357,
67,
710,
480,
374,
30,
327,
1297,
5819,
2433,
12,
3658,
16,
1357,
67,
2150,
13,
225,
400,
273,
1086,
67,
4669,
2932,
4803,
612,
16,
2699,
16,
4721,
4571,
729,
4852,
612,
5095,
87,
6,
738,
16299,
13,
876,
273,
1408,
20281,
273,
1408,
309,
400,
30,
400,
22,
273,
1086,
67,
4669,
2932,
6460,
4571,
729,
4852,
612,
5095,
87,
3113,
261,
1355,
734,
16,
8623,
876,
1011,
2368,
70,
4438,
3969,
667,
1546,
1376,
6441,
3032,
11876,
471,
4282,
17347,
3969,
4695,
70,
1870,
309,
7577,
67,
13204,
67,
18248,
67,
4400,
12096,
67,
4714,
67,
2090,
5069,
67,
1639,
30985,
422,
404,
30,
309,
486,
400,
63,
20,
6362,
22,
65,
578,
400,
63,
20,
6362,
22,
65,
422,
315,
20,
6877,
2699,
7569,
273,
1366,
3032,
19902,
1079,
12,
455,
63,
20,
6362,
21,
6487,
400,
63,
20,
6362,
21,
5717,
1327,
400,
63,
20,
6362,
22,
65,
422,
315,
21,
6877,
2699,
7569,
273,
1366,
3032,
7977,
1079,
12,
455,
63,
20,
6362,
21,
6487,
400,
63,
20,
6362,
21,
5717,
309,
2699,
7569,
30,
876,
1011,
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,
3073,
67,
24163,
4631,
12,
3658,
16,
16299,
16,
2699,
67,
1355,
67,
4951,
16,
1800,
67,
869,
16,
943,
2433,
16,
1363,
16,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
2613,
2236,
471,
1366,
392,
2699,
358,
326,
3410,
12123,
225,
261,
1944,
67,
710,
16,
1357,
67,
2150,
13,
273,
353,
67,
3666,
1355,
12,
3658,
13,
309,
1357,
67,
710,
480,
374,
30,
327,
1297,
5819,
2433,
12,
3658,
16,
1357,
67,
2150,
13,
225,
400,
273,
1086,
67,
4669,
2932,
4803,
612,
16,
2699,
16,
4721,
4571,
729,
4852,
612,
5095,
87,
6,
738,
16299,
13,
876,
273,
1408,
20281,
273,
1408,
309,
400,
30,
400,
22,
273,
1086,
67,
4669,
2932,
2
] |
'keywords': keywords or '',
|
'keywords': kw or '',
|
def perform_query(self, req, query, changeset, tickets, wiki, page=0): if not query: return ([], 0) keywords = query.split(' ')
|
cd1b1b32cec26187b1c9fa71e55a76888f1c342e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/cd1b1b32cec26187b1c9fa71e55a76888f1c342e/Search.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
2271,
12,
2890,
16,
1111,
16,
843,
16,
22463,
16,
24475,
16,
9050,
16,
1363,
33,
20,
4672,
309,
486,
843,
30,
327,
23265,
6487,
374,
13,
7093,
273,
843,
18,
4939,
2668,
8624,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
2271,
12,
2890,
16,
1111,
16,
843,
16,
22463,
16,
24475,
16,
9050,
16,
1363,
33,
20,
4672,
309,
486,
843,
30,
327,
23265,
6487,
374,
13,
7093,
273,
843,
18,
4939,
2668,
8624,
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
] |
self.sections.clear()
|
def delete(self, adminoverride = False): from esp.qsdmedia.models import Media anchor = self.anchor if self.num_students() > 0 and not adminoverride: return False teachers = self.teachers() for teacher in self.teachers(): self.removeTeacher(teacher) self.removeAdmin(teacher)
|
2e24b87e2c110f15faa2a04785142f1f70154d13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/2e24b87e2c110f15faa2a04785142f1f70154d13/class_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3981,
10601,
273,
1083,
4672,
628,
5001,
84,
18,
85,
6427,
5829,
18,
7665,
1930,
6128,
225,
6984,
273,
365,
18,
16215,
309,
365,
18,
2107,
67,
16120,
4877,
1435,
405,
374,
471,
486,
3981,
10601,
30,
327,
1083,
225,
6489,
497,
414,
273,
365,
18,
736,
497,
414,
1435,
364,
6489,
27779,
316,
365,
18,
736,
497,
414,
13332,
365,
18,
4479,
56,
13798,
264,
12,
736,
27779,
13,
365,
18,
4479,
4446,
12,
736,
27779,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3981,
10601,
273,
1083,
4672,
628,
5001,
84,
18,
85,
6427,
5829,
18,
7665,
1930,
6128,
225,
6984,
273,
365,
18,
16215,
309,
365,
18,
2107,
67,
16120,
4877,
1435,
405,
374,
471,
486,
3981,
10601,
30,
327,
1083,
225,
6489,
497,
414,
273,
365,
18,
736,
497,
414,
1435,
364,
6489,
27779,
316,
365,
18,
736,
497,
414,
13332,
365,
18,
4479,
56,
13798,
264,
12,
736,
27779,
13,
365,
18,
4479,
4446,
12,
736,
27779,
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
] |
|
attr = Option( type, optional default value) Order probably doesn't matter. The index of the instance made from this optional argument
|
attr = Option( type, optional default value) Order probably doesn't matter. The index of the instance made from this optional argument
|
def Option( type_expr, dflt_expr = _E_DFLT_FROM_TYPE_, **moreopts): """To declare a named optional argument in an expr class, use an assignment like this, directly in the class namespace, and (by convention only?) after all the Arg macros: attr = Option( type, optional default value) Order probably doesn't matter. The index of the instance made from this optional argument will be attr (the attribute name). If the default value is needed and not supplied, it comes from the type. """ global _E_ATTR # fyi argpos_expr = None attr_expr = _E_ATTR return _ArgOption_helper( attr_expr, argpos_expr, type_expr, dflt_expr, **moreopts)
|
d0ffa4ebc7f1e32fb807fce132593cfedae374b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/d0ffa4ebc7f1e32fb807fce132593cfedae374b0/attr_decl_macros.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2698,
12,
618,
67,
8638,
16,
302,
31864,
67,
8638,
273,
389,
41,
67,
4577,
12050,
67,
11249,
67,
2399,
67,
16,
2826,
10161,
4952,
4672,
3536,
774,
14196,
279,
4141,
3129,
1237,
316,
392,
3065,
667,
16,
999,
392,
6661,
3007,
333,
16,
5122,
316,
326,
667,
1981,
16,
471,
261,
1637,
15797,
1338,
8535,
1839,
777,
326,
14448,
24302,
30,
225,
1604,
273,
2698,
12,
618,
16,
3129,
805,
460,
13,
225,
4347,
8656,
3302,
1404,
15177,
18,
225,
1021,
770,
434,
326,
791,
7165,
628,
333,
3129,
1237,
903,
506,
1604,
261,
5787,
1566,
508,
2934,
971,
326,
805,
460,
353,
3577,
471,
486,
4580,
16,
518,
14535,
628,
326,
618,
18,
3536,
2552,
389,
41,
67,
12043,
468,
28356,
77,
1501,
917,
67,
8638,
273,
599,
1604,
67,
8638,
273,
389,
41,
67,
12043,
327,
389,
4117,
1895,
67,
4759,
12,
1604,
67,
8638,
16,
1501,
917,
67,
8638,
16,
618,
67,
8638,
16,
302,
31864,
67,
8638,
16,
2826,
10161,
4952,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
67,
8638,
273,
389,
41,
67,
4577,
12050,
67,
11249,
67,
2399,
67,
16,
2826,
10161,
4952,
4672,
3536,
774,
14196,
279,
4141,
3129,
1237,
316,
392,
3065,
667,
16,
999,
392,
6661,
3007,
333,
16,
5122,
316,
326,
667,
1981,
16,
471,
261,
1637,
15797,
1338,
8535,
1839,
777,
326,
14448,
24302,
30,
225,
1604,
273,
2698,
12,
618,
16,
3129,
805,
460,
13,
225,
4347,
8656,
3302,
1404,
15177,
18,
225,
1021,
770,
434,
326,
791,
7165,
628,
333,
3129,
1237,
903,
506,
1604,
261,
5787,
1566,
508,
2934,
971,
326,
805,
460,
353,
3577,
471,
486,
4580,
16,
518,
14535,
628,
326,
618,
18,
3536,
2552,
389,
2
] |
item.password.delete()
|
if hasattr(item, 'password'): item.password.delete()
|
def __ApplyDeletions(self): # Since we don't delete items right away, we need to do it here:
|
473f35a08caa151e3ec9aca6ea5653d20585d0e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/473f35a08caa151e3ec9aca6ea5653d20585d0e0/AccountPreferences.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7001,
9019,
1115,
12,
2890,
4672,
468,
7897,
732,
2727,
1404,
1430,
1516,
2145,
10804,
16,
732,
1608,
358,
741,
518,
2674,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7001,
9019,
1115,
12,
2890,
4672,
468,
7897,
732,
2727,
1404,
1430,
1516,
2145,
10804,
16,
732,
1608,
358,
741,
518,
2674,
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
] |
def fl_get_choice_item_mode(ob, item): """ fl_get_choice_item_mode(ob, item) -> mode num. """ retval = _fl_get_choice_item_mode(ob, item) return retval _fl_set_choice_item_mode = cfuncproto(so_libforms, "fl_set_choice_item_mode", None, [cty.POINTER(FL_OBJECT), cty.c_int, cty.c_uint],
|
def fl_get_choice_item_mode(pObject, item): """ fl_get_choice_item_mode(pObject, item) -> mode num. """ retval = _fl_get_choice_item_mode(pObject, item) return retval _fl_set_choice_item_mode = cfuncproto(so_libforms, "fl_set_choice_item_mode", None, [cty.POINTER(FL_OBJECT), cty.c_int, cty.c_uint],
|
def fl_get_choice_item_mode(ob, item): """ fl_get_choice_item_mode(ob, item) -> mode num. """ retval = _fl_get_choice_item_mode(ob, item) return retval
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
11569,
67,
1726,
67,
3188,
12,
947,
16,
761,
4672,
3536,
1183,
67,
588,
67,
11569,
67,
1726,
67,
3188,
12,
947,
16,
761,
13,
317,
1965,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
588,
67,
11569,
67,
1726,
67,
3188,
12,
947,
16,
761,
13,
327,
5221,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
11569,
67,
1726,
67,
3188,
12,
947,
16,
761,
4672,
3536,
1183,
67,
588,
67,
11569,
67,
1726,
67,
3188,
12,
947,
16,
761,
13,
317,
1965,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
588,
67,
11569,
67,
1726,
67,
3188,
12,
947,
16,
761,
13,
327,
5221,
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
] |
"""TList - Hierarchy display.
|
"""TList - Hierarchy display widget which can be used to display data in a tabular format. The list entries of a TList widget are similar to the entries in the Tk listbox widget. The main differences are (1) the TList widget can display the list entries in a two dimensional format and (2) you can use graphical images as well as multiple colors and fonts for the list entries.
|
def invoke(self, name): if self.subwidget_list.has_key(name): self.tk.call(self._w, 'invoke', name)
|
f5d050d1e124f0e400f34e9a2a31237ae6ccf7e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f5d050d1e124f0e400f34e9a2a31237ae6ccf7e1/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
16,
508,
4672,
309,
365,
18,
1717,
6587,
67,
1098,
18,
5332,
67,
856,
12,
529,
4672,
365,
18,
16099,
18,
1991,
12,
2890,
6315,
91,
16,
296,
14407,
2187,
508,
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,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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
] |
""" Implementation of the stay alive functionality with socket communication between dacapo and python. Known limitations: It is not possible to start 2 independent Dacapo calculators from the same python process, since the python PID is used as identifier for the script[PID].py file."""
|
''' Implementation of the stay alive functionality with socket communication between dacapo and python. Known limitations: It is not possible to start 2 independent Dacapo calculators from the same python process, since the python PID is used as identifier for the script[PID].py file. '''
|
def execute_external_dynamics(self,nc=None,txt=None,stoppfile='stop',stopprogram=None): """ Implementation of the stay alive functionality with socket communication between dacapo and python. Known limitations: It is not possible to start 2 independent Dacapo calculators from the same python process, since the python PID is used as identifier for the script[PID].py file.""" from socket import socket,AF_INET,SOCK_STREAM,timeout import tempfile import os
|
7e71a476e77343664c84904ceaeb03355477091f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/7e71a476e77343664c84904ceaeb03355477091f/jacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
9375,
67,
31129,
2102,
12,
2890,
16,
14202,
33,
7036,
16,
5830,
33,
7036,
16,
5681,
84,
768,
2218,
5681,
2187,
5681,
12890,
33,
7036,
4672,
9163,
25379,
434,
326,
23449,
13714,
14176,
598,
2987,
18279,
3086,
302,
1077,
438,
83,
471,
5790,
18,
30036,
31810,
30,
2597,
353,
486,
3323,
358,
787,
576,
14807,
463,
1077,
438,
83,
3026,
3062,
628,
326,
1967,
5790,
1207,
16,
3241,
326,
5790,
14788,
353,
1399,
487,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
9375,
67,
31129,
2102,
12,
2890,
16,
14202,
33,
7036,
16,
5830,
33,
7036,
16,
5681,
84,
768,
2218,
5681,
2187,
5681,
12890,
33,
7036,
4672,
9163,
25379,
434,
326,
23449,
13714,
14176,
598,
2987,
18279,
3086,
302,
1077,
438,
83,
471,
5790,
18,
30036,
31810,
30,
2597,
353,
486,
3323,
358,
787,
576,
14807,
463,
1077,
438,
83,
3026,
3062,
628,
326,
1967,
5790,
1207,
16,
3241,
326,
5790,
14788,
353,
1399,
487,
2756,
364,
326,
2728,
63,
16522,
8009,
2074,
585,
18,
9163,
628,
2987,
1930,
2987,
16,
6799,
67,
18819,
16,
3584,
3507,
67,
13693,
16,
4538,
1930,
13275,
1930,
1140,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
filePath = os.path.abspath(executableFile) cmd = filePath
|
cmd = os.path.abspath(executableFile)
|
def submitJob(self,executableFile,jdl,localID): """ Method to submit job, should be overridden in sub-class. """ if not os.access(executableFile, 5): os.chmod(executableFile,0755) filePath = os.path.abspath(executableFile)
|
8c41511d01a2d8300e9d92e92578d9732367df7f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/8c41511d01a2d8300e9d92e92578d9732367df7f/InProcessComputingElement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
17751,
812,
16,
78,
5761,
16,
3729,
734,
4672,
3536,
2985,
358,
4879,
1719,
16,
1410,
506,
11000,
316,
720,
17,
1106,
18,
3536,
309,
486,
1140,
18,
3860,
12,
17751,
812,
16,
1381,
4672,
1140,
18,
343,
1711,
12,
17751,
812,
16,
8642,
2539,
13,
4612,
273,
1140,
18,
803,
18,
5113,
803,
12,
17751,
812,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
17751,
812,
16,
78,
5761,
16,
3729,
734,
4672,
3536,
2985,
358,
4879,
1719,
16,
1410,
506,
11000,
316,
720,
17,
1106,
18,
3536,
309,
486,
1140,
18,
3860,
12,
17751,
812,
16,
1381,
4672,
1140,
18,
343,
1711,
12,
17751,
812,
16,
8642,
2539,
13,
4612,
273,
1140,
18,
803,
18,
5113,
803,
12,
17751,
812,
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
] |
self.GL.acquire(locking.LEVEL_INSTANCE, ['i3']) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i3', 1)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.GL.release(locking.LEVEL_INSTANCE) self.assertEqual(self.done.get(True, 1), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i2'], shared=1) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 0)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.GL.release(locking.LEVEL_INSTANCE) self.assertEqual(self.done.get(True, 1), 'DONE')
|
self.GL.release(locking.LEVEL_CLUSTER, ['BGL'])
|
def testConcurrency(self): self.GL.acquire(locking.LEVEL_CLUSTER, ['BGL'], shared=1) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i3']) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i3', 1)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.GL.release(locking.LEVEL_INSTANCE) self.assertEqual(self.done.get(True, 1), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i2'], shared=1) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 0)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.GL.release(locking.LEVEL_INSTANCE) self.assertEqual(self.done.get(True, 1), 'DONE')
|
4607c978b8f973b63c49547f1b8d6061fdbd78d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/4607c978b8f973b63c49547f1b8d6061fdbd78d3/ganeti.locking_unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
18273,
12,
2890,
4672,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
5017,
23069,
16,
10228,
38,
11261,
17337,
5116,
33,
21,
13,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
13341,
16,
10228,
77,
23,
19486,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
23,
2187,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
12649,
6141,
12,
3183,
18,
1921,
16,
365,
18,
8734,
18,
588,
16,
1053,
16,
374,
18,
22,
13,
365,
18,
11261,
18,
9340,
12,
739,
310,
18,
10398,
67,
13341,
13,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
13341,
16,
10228,
77,
22,
17337,
5116,
33,
21,
13,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
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,
1842,
18273,
12,
2890,
4672,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
5017,
23069,
16,
10228,
38,
11261,
17337,
5116,
33,
21,
13,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
13341,
16,
10228,
77,
23,
19486,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
13,
2934,
1937,
1435,
2
] |
return attrdict, k
|
return attrdict, i
|
def parse_attributes(self, tag, k, j, attributes = None): rawdata = self.rawdata # Now parse the data between k and j into a tag and attrs attrdict = {} try: # convert attributes list to dictionary d = {} for a in attributes: d[a] = None attributes = d except TypeError: pass while k < j: res = attrfind.match(rawdata, k) if not res: break attrname, attrvalue = res.group('name', 'value') if attrvalue is None: self.syntax_error('no attribute value specified') attrvalue = attrname elif attrvalue[:1] == "'" == attrvalue[-1:] or \ attrvalue[:1] == '"' == attrvalue[-1:]: attrvalue = attrvalue[1:-1] else: self.syntax_error('attribute value not quoted') if attributes is not None and not attributes.has_key(attrname): self.syntax_error('unknown attribute %s of element %s' % (attrname, tag)) if attrdict.has_key(attrname): self.syntax_error('attribute specified twice') attrvalue = string.translate(attrvalue, attrtrans) attrdict[attrname] = self.translate_references(attrvalue) k = res.end(0) if attributes is not None: # fill in with default attributes for key, val in attributes.items(): if val is not None and not attrdict.has_key(key): attrdict[key] = val return attrdict, k
|
66deea208f1331393577924315dda6e767e376e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/66deea208f1331393577924315dda6e767e376e1/xmllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4350,
12,
2890,
16,
1047,
16,
417,
16,
525,
16,
1677,
273,
599,
4672,
1831,
892,
273,
365,
18,
1899,
892,
468,
4494,
1109,
326,
501,
3086,
417,
471,
525,
1368,
279,
1047,
471,
3422,
1604,
1576,
273,
2618,
775,
30,
468,
1765,
1677,
666,
358,
3880,
302,
273,
2618,
364,
279,
316,
1677,
30,
302,
63,
69,
65,
273,
599,
1677,
273,
302,
1335,
3580,
30,
1342,
1323,
417,
411,
525,
30,
400,
273,
1604,
4720,
18,
1916,
12,
1899,
892,
16,
417,
13,
309,
486,
400,
30,
898,
1604,
529,
16,
1604,
1132,
273,
400,
18,
1655,
2668,
529,
2187,
296,
1132,
6134,
309,
1604,
1132,
353,
599,
30,
365,
18,
14308,
67,
1636,
2668,
2135,
1566,
460,
1269,
6134,
1604,
1132,
273,
1604,
529,
1327,
1604,
1132,
10531,
21,
65,
422,
5862,
422,
1604,
1132,
18919,
21,
26894,
578,
521,
1604,
1132,
10531,
21,
65,
422,
4754,
422,
1604,
1132,
18919,
21,
30,
14542,
1604,
1132,
273,
1604,
1132,
63,
21,
30,
17,
21,
65,
469,
30,
365,
18,
14308,
67,
1636,
2668,
4589,
460,
486,
9298,
6134,
309,
1677,
353,
486,
599,
471,
486,
1677,
18,
5332,
67,
856,
12,
1747,
529,
4672,
365,
18,
14308,
67,
1636,
2668,
8172,
1566,
738,
87,
434,
930,
738,
87,
11,
738,
261,
1747,
529,
16,
1047,
3719,
309,
1604,
1576,
18,
5332,
67,
856,
12,
1747,
529,
4672,
365,
18,
14308,
67,
1636,
2668,
4589,
1269,
13605,
6134,
1604,
1132,
273,
533,
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,
1109,
67,
4350,
12,
2890,
16,
1047,
16,
417,
16,
525,
16,
1677,
273,
599,
4672,
1831,
892,
273,
365,
18,
1899,
892,
468,
4494,
1109,
326,
501,
3086,
417,
471,
525,
1368,
279,
1047,
471,
3422,
1604,
1576,
273,
2618,
775,
30,
468,
1765,
1677,
666,
358,
3880,
302,
273,
2618,
364,
279,
316,
1677,
30,
302,
63,
69,
65,
273,
599,
1677,
273,
302,
1335,
3580,
30,
1342,
1323,
417,
411,
525,
30,
400,
273,
1604,
4720,
18,
1916,
12,
1899,
892,
16,
417,
13,
309,
486,
400,
30,
898,
1604,
529,
16,
1604,
1132,
273,
400,
18,
1655,
2668,
529,
2187,
296,
1132,
6134,
309,
1604,
1132,
353,
599,
30,
365,
18,
14308,
67,
1636,
2
] |
while self.parser.openElements[:-1].name in ("tr", "html"):
|
while self.parser.openElements[-1].name in ("tr", "html"):
|
def clearStackToTableRowContext(self): while self.parser.openElements[:-1].name in ("tr", "html"): self.parser.openElements.pop() self.parser.parseError()
|
2fb2cbabda22a54e217122e4450a295370d06019 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/2fb2cbabda22a54e217122e4450a295370d06019/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
2624,
774,
30650,
1042,
12,
2890,
4672,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
2624,
774,
30650,
1042,
12,
2890,
4672,
1323,
365,
18,
4288,
18,
3190,
3471,
18919,
21,
8009,
529,
316,
7566,
313,
3113,
315,
2620,
6,
4672,
365,
18,
4288,
18,
3190,
3471,
18,
5120,
1435,
365,
18,
4288,
18,
2670,
668,
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
] |
message = 'The collectionId you were linked to, %s, does' \
|
message = 'The collection_id you were linked to, %s, does' \
|
def id(self, collectionId): # pylint: disable-msg=C0103 '''Return a page with information on a particular Collection ''' try: collectionId = int(collectionId) except ValueError: error = dict(status = False, title = self.app_title + ' -- Invalid Collection Id', message = 'The collectionId you were linked to is not a' \ ' valid id. If you received this error from a' \ ' link on the fedoraproject.org website, please' \ ' report it.') if request.params.get('tg_format', 'html') != 'json': error['tg_template'] = 'pkgdb.templates.errors' return error
|
d0ea7754e4b0eb9d223e9b48c71f42ad0c5ab68c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/d0ea7754e4b0eb9d223e9b48c71f42ad0c5ab68c/collections.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
16,
1849,
548,
4672,
468,
7601,
30,
4056,
17,
3576,
33,
39,
1611,
4630,
9163,
990,
279,
1363,
598,
1779,
603,
279,
6826,
2200,
9163,
775,
30,
1849,
548,
273,
509,
12,
5548,
548,
13,
1335,
2068,
30,
555,
273,
2065,
12,
2327,
273,
1083,
16,
2077,
273,
365,
18,
2910,
67,
2649,
397,
296,
1493,
1962,
2200,
3124,
2187,
883,
273,
296,
1986,
1849,
548,
1846,
4591,
8459,
358,
353,
486,
279,
11,
521,
296,
923,
612,
18,
225,
971,
1846,
5079,
333,
555,
628,
279,
11,
521,
296,
1692,
603,
326,
22572,
280,
438,
28290,
18,
3341,
12504,
16,
9582,
11,
521,
296,
2605,
518,
1093,
13,
309,
590,
18,
2010,
18,
588,
2668,
88,
75,
67,
2139,
2187,
296,
2620,
6134,
480,
296,
1977,
4278,
555,
3292,
88,
75,
67,
3202,
3546,
273,
296,
10657,
1966,
18,
8502,
18,
4324,
11,
327,
555,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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775,
30,
1849,
548,
273,
509,
12,
5548,
548,
13,
1335,
2068,
30,
555,
273,
2065,
12,
2327,
273,
1083,
16,
2077,
273,
365,
18,
2910,
67,
2649,
397,
296,
1493,
1962,
2200,
3124,
2187,
883,
273,
296,
1986,
1849,
548,
1846,
4591,
8459,
358,
353,
486,
279,
11,
521,
296,
923,
612,
18,
225,
971,
1846,
5079,
333,
555,
628,
279,
11,
521,
296,
1692,
603,
326,
22572,
280,
438,
28290,
18,
3341,
12504,
16,
9582,
11,
521,
296,
2605,
518,
1093,
13,
309,
590,
18,
2010,
18,
588,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.