rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
elif key.isupper():
|
else:
|
def handleStatics(item, classNode): for key, value in mapNodeToMap(item).items(): keyvalue = value.parent value = value.getFirstChild() commentAttributes = comment.parseNode(keyvalue) # handle @signature if value.type != "function": for docItem in commentAttributes: if docItem["category"] == "signature": value = compileString(docItem["text"][3:-4] + "{}") # Function if value.type == "function": node = handleFunction(value, key, commentAttributes, classNode) node.set("isStatic", True) if classNode.get("type", False) == "mixin": node.set("isMixin", True) classNode.addListChild("methods-static", node) # Constant elif key.isupper(): handleConstantDefinition(keyvalue, classNode)
|
cf571eff0ac245c1f59e0c1a656fd69a9c805a03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/cf571eff0ac245c1f59e0c1a656fd69a9c805a03/api.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5000,
2102,
12,
1726,
16,
25822,
4672,
364,
498,
16,
460,
316,
852,
907,
18392,
12,
1726,
2934,
3319,
13332,
498,
1132,
273,
460,
18,
2938,
460,
273,
460,
18,
588,
3759,
1763,
1435,
225,
2879,
2498,
273,
2879,
18,
2670,
907,
12,
856,
1132,
13,
225,
468,
1640,
632,
8195,
309,
460,
18,
723,
480,
315,
915,
6877,
364,
997,
1180,
316,
2879,
2498,
30,
309,
997,
1180,
9614,
4743,
11929,
422,
315,
8195,
6877,
460,
273,
4074,
780,
12,
2434,
1180,
9614,
955,
6,
6362,
23,
30,
17,
24,
65,
397,
13034,
13,
225,
468,
4284,
309,
460,
18,
723,
422,
315,
915,
6877,
756,
273,
1640,
2083,
12,
1132,
16,
498,
16,
2879,
2498,
16,
25822,
13,
756,
18,
542,
2932,
291,
5788,
3113,
1053,
13,
309,
25822,
18,
588,
2932,
723,
3113,
1083,
13,
422,
315,
81,
10131,
6877,
756,
18,
542,
2932,
291,
14439,
3113,
1053,
13,
225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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5000,
2102,
12,
1726,
16,
25822,
4672,
364,
498,
16,
460,
316,
852,
907,
18392,
12,
1726,
2934,
3319,
13332,
498,
1132,
273,
460,
18,
2938,
460,
273,
460,
18,
588,
3759,
1763,
1435,
225,
2879,
2498,
273,
2879,
18,
2670,
907,
12,
856,
1132,
13,
225,
468,
1640,
632,
8195,
309,
460,
18,
723,
480,
315,
915,
6877,
364,
997,
1180,
316,
2879,
2498,
30,
309,
997,
1180,
9614,
4743,
11929,
422,
315,
8195,
6877,
460,
273,
4074,
780,
12,
2434,
1180,
9614,
955,
6,
6362,
23,
30,
17,
24,
65,
397,
13034,
13,
225,
468,
4284,
309,
460,
18,
723,
422,
315,
915,
6877,
756,
273,
1640,
2083,
12,
1132,
16,
498,
16,
2879,
2498,
2
] |
"""Fails unless a variable with the given name exists within the current scope.
|
"""Fails unless a variable with the given name exists within the current scope.
|
def variable_should_exist(self, name, msg=None): """Fails unless a variable with the given name exists within the current scope. The variable name must be given in the escaped format, e.g. \\${scalar} or \\@{list} to prevent it from being resolved. Alternatively, in this case, it is possible to give the variable name in a special format without curly braces, e.g. $scalar or @list. The default error message can be overridden with the 'msg' argument. """ name = self._get_var_name(name) variables = self._get_variables() if msg is None: msg = "Variable %s does not exist" % name asserts.fail_unless(variables.has_key(name), msg)
|
ef8b3c513c2fbfbe39dbbc410ee472d3b6ab88a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/ef8b3c513c2fbfbe39dbbc410ee472d3b6ab88a2/BuiltIn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2190,
67,
13139,
67,
7398,
12,
2890,
16,
508,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
279,
2190,
598,
326,
864,
508,
1704,
3470,
326,
783,
2146,
18,
225,
1021,
2190,
508,
1297,
506,
864,
316,
326,
8345,
740,
16,
425,
18,
75,
18,
1736,
18498,
8748,
97,
578,
1736,
36,
95,
1098,
97,
358,
5309,
518,
628,
3832,
4640,
18,
21498,
17526,
16,
316,
333,
648,
16,
518,
353,
3323,
358,
8492,
326,
2190,
508,
316,
279,
4582,
740,
2887,
29270,
26852,
16,
425,
18,
75,
18,
271,
8748,
578,
632,
1098,
18,
225,
1021,
805,
555,
883,
848,
506,
11000,
598,
326,
296,
3576,
11,
1237,
18,
3536,
508,
273,
365,
6315,
588,
67,
1401,
67,
529,
12,
529,
13,
3152,
273,
365,
6315,
588,
67,
7528,
1435,
309,
1234,
353,
599,
30,
1234,
273,
315,
3092,
738,
87,
1552,
486,
1005,
6,
738,
508,
26124,
18,
6870,
67,
28502,
12,
7528,
18,
5332,
67,
856,
12,
529,
3631,
1234,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2190,
67,
13139,
67,
7398,
12,
2890,
16,
508,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
279,
2190,
598,
326,
864,
508,
1704,
3470,
326,
783,
2146,
18,
225,
1021,
2190,
508,
1297,
506,
864,
316,
326,
8345,
740,
16,
425,
18,
75,
18,
1736,
18498,
8748,
97,
578,
1736,
36,
95,
1098,
97,
358,
5309,
518,
628,
3832,
4640,
18,
21498,
17526,
16,
316,
333,
648,
16,
518,
353,
3323,
358,
8492,
326,
2190,
508,
316,
279,
4582,
740,
2887,
29270,
26852,
16,
425,
18,
75,
18,
271,
8748,
578,
632,
1098,
18,
225,
1021,
805,
555,
883,
848,
506,
11000,
598,
326,
296,
3576,
11,
1237,
18,
3536,
508,
273,
365,
6315,
588,
67,
1401,
2
] |
fontName = pango.FontDescription("Misc Fixed,Courier Bold 9")
|
fontName = get_fixed_font()
|
def __new_text_view(self): text_view = gtk.TextView() text_view.set_border_width(4) fontName = pango.FontDescription("Misc Fixed,Courier Bold 9") text_view.modify_font(fontName) return text_view
|
324f0893dcac569d1e55a3ea38532d5c437f7a2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7188/324f0893dcac569d1e55a3ea38532d5c437f7a2a/hda_analyzer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
67,
955,
67,
1945,
12,
2890,
4672,
977,
67,
1945,
273,
22718,
18,
1528,
1767,
1435,
977,
67,
1945,
18,
542,
67,
8815,
67,
2819,
12,
24,
13,
3512,
461,
273,
336,
67,
12429,
67,
5776,
1435,
977,
67,
1945,
18,
17042,
67,
5776,
12,
5776,
461,
13,
327,
977,
67,
1945,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2704,
67,
955,
67,
1945,
12,
2890,
4672,
977,
67,
1945,
273,
22718,
18,
1528,
1767,
1435,
977,
67,
1945,
18,
542,
67,
8815,
67,
2819,
12,
24,
13,
3512,
461,
273,
336,
67,
12429,
67,
5776,
1435,
977,
67,
1945,
18,
17042,
67,
5776,
12,
5776,
461,
13,
327,
977,
67,
1945,
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
] |
print(' WARNING: failed to listen on port %d, trying another' % (port, file=sys.__stderr__))
|
print(' WARNING: failed to listen on port %d, ' % port + 'trying another', file=sys.__stderr__)
|
def bind_port(sock, host='', preferred_port=54321): """Try to bind the sock to a port. If we are running multiple tests and we don't try multiple ports, the test can fails. This makes the test more robust.""" # Find some random ports that hopefully no one is listening on. # Ideally each test would clean up after itself and not continue listening # on any ports. However, this isn't the case. The last port (0) is # a stop-gap that asks the O/S to assign a port. Whenever the warning # message below is printed, the test that is listening on the port should # be fixed to close the socket at the end of the test. # Another reason why we can't use a port is another process (possibly # another instance of the test suite) is using the same port. for port in [preferred_port, 9907, 10243, 32999, 0]: try: sock.bind((host, port)) if port == 0: port = sock.getsockname()[1] return port except socket.error as e: (err, msg) = e.args if err != errno.EADDRINUSE: raise print(' WARNING: failed to listen on port %d, trying another' % (port, file=sys.__stderr__)) raise TestFailed('unable to find port to listen on')
|
06e80a7f47740fa7eaec94e1d2a75838570f23e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/06e80a7f47740fa7eaec94e1d2a75838570f23e0/test_support.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
67,
655,
12,
15031,
16,
1479,
2218,
2187,
9119,
67,
655,
33,
6564,
1578,
21,
4672,
3536,
7833,
358,
1993,
326,
7313,
358,
279,
1756,
18,
225,
971,
732,
854,
3549,
3229,
7434,
471,
732,
2727,
1404,
775,
3229,
9048,
16,
326,
1842,
848,
6684,
18,
225,
1220,
7297,
326,
1842,
1898,
27920,
12123,
225,
468,
4163,
2690,
2744,
9048,
716,
27370,
4095,
1158,
1245,
353,
13895,
603,
18,
468,
23062,
1230,
1517,
1842,
4102,
2721,
731,
1839,
6174,
471,
486,
1324,
13895,
468,
603,
1281,
9048,
18,
225,
10724,
16,
333,
5177,
1404,
326,
648,
18,
225,
1021,
1142,
1756,
261,
20,
13,
353,
468,
279,
2132,
17,
14048,
716,
6827,
87,
326,
531,
19,
55,
358,
2683,
279,
1756,
18,
225,
3497,
4009,
502,
326,
3436,
468,
883,
5712,
353,
14099,
16,
326,
1842,
716,
353,
13895,
603,
326,
1756,
1410,
468,
506,
5499,
358,
1746,
326,
2987,
622,
326,
679,
434,
326,
1842,
18,
468,
432,
24413,
3971,
11598,
732,
848,
1404,
999,
279,
1756,
353,
4042,
1207,
261,
917,
8781,
468,
4042,
791,
434,
326,
1842,
11371,
13,
353,
1450,
326,
1967,
1756,
18,
364,
1756,
316,
306,
23616,
67,
655,
16,
14605,
8642,
16,
6250,
23,
16,
3847,
11984,
16,
374,
14542,
775,
30,
7313,
18,
4376,
12443,
2564,
16,
1756,
3719,
309,
1756,
422,
374,
30,
1756,
273,
7313,
18,
14665,
975,
529,
1435,
63,
21,
65,
327,
1756,
1335,
2987,
18,
1636,
487,
425,
30,
261,
370,
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,
1993,
67,
655,
12,
15031,
16,
1479,
2218,
2187,
9119,
67,
655,
33,
6564,
1578,
21,
4672,
3536,
7833,
358,
1993,
326,
7313,
358,
279,
1756,
18,
225,
971,
732,
854,
3549,
3229,
7434,
471,
732,
2727,
1404,
775,
3229,
9048,
16,
326,
1842,
848,
6684,
18,
225,
1220,
7297,
326,
1842,
1898,
27920,
12123,
225,
468,
4163,
2690,
2744,
9048,
716,
27370,
4095,
1158,
1245,
353,
13895,
603,
18,
468,
23062,
1230,
1517,
1842,
4102,
2721,
731,
1839,
6174,
471,
486,
1324,
13895,
468,
603,
1281,
9048,
18,
225,
10724,
16,
333,
5177,
1404,
326,
648,
18,
225,
1021,
1142,
1756,
261,
20,
13,
353,
468,
279,
2132,
17,
14048,
716,
6827,
87,
326,
531,
19,
55,
2
] |
upsfile.close() dataFiles.append(["ups", [tableName]])
|
upsFile.close() dataFiles.append(["ups", [upsFileName]])
|
def getPackages(): packages = [PkgName] dataList = [] for dirPath, dirNames, fileNames in os.walk(PkgDir): if ".svn" in dirNames: dirNames.remove(".svn") dirName = os.path.basename(dirPath) print "dirName=", dirName tryInit = os.path.join(dirPath, "__init__.py") print "tryInit=", tryInit if os.path.exists(os.path.join(dirPath, "__init__.py")): pkgName = dirPath.replace("/", ".") packages.append(pkgName) else: # package data dataList += [os.path.join(dirPath, fileName) for fileName in fileNames if not fileName.startswith(".")] return packages, {PkgName: dataList}
|
04d6499d02bee5654e7065a7ea5f53379dc9fec2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6353/04d6499d02bee5654e7065a7ea5f53379dc9fec2/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
13332,
5907,
273,
306,
11264,
461,
65,
501,
682,
273,
5378,
364,
15891,
16,
1577,
1557,
16,
27375,
316,
1140,
18,
11348,
12,
11264,
1621,
4672,
309,
3552,
31505,
6,
316,
1577,
1557,
30,
1577,
1557,
18,
4479,
2932,
18,
31505,
7923,
20878,
273,
1140,
18,
803,
18,
13909,
12,
1214,
743,
13,
1172,
315,
1214,
461,
1546,
16,
20878,
225,
775,
2570,
273,
1140,
18,
803,
18,
5701,
12,
1214,
743,
16,
10425,
2738,
25648,
2074,
7923,
1172,
315,
698,
2570,
1546,
16,
775,
2570,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
1214,
743,
16,
10425,
2738,
25648,
2074,
6,
3719,
30,
27288,
273,
15891,
18,
2079,
2932,
19,
3113,
4585,
13,
5907,
18,
6923,
12,
10657,
461,
13,
469,
30,
468,
2181,
501,
501,
682,
1011,
306,
538,
18,
803,
18,
5701,
12,
1214,
743,
16,
3968,
13,
364,
3968,
316,
27375,
309,
486,
3968,
18,
17514,
1918,
2932,
1199,
25887,
225,
327,
5907,
16,
288,
11264,
461,
30,
501,
682,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
13332,
5907,
273,
306,
11264,
461,
65,
501,
682,
273,
5378,
364,
15891,
16,
1577,
1557,
16,
27375,
316,
1140,
18,
11348,
12,
11264,
1621,
4672,
309,
3552,
31505,
6,
316,
1577,
1557,
30,
1577,
1557,
18,
4479,
2932,
18,
31505,
7923,
20878,
273,
1140,
18,
803,
18,
13909,
12,
1214,
743,
13,
1172,
315,
1214,
461,
1546,
16,
20878,
225,
775,
2570,
273,
1140,
18,
803,
18,
5701,
12,
1214,
743,
16,
10425,
2738,
25648,
2074,
7923,
1172,
315,
698,
2570,
1546,
16,
775,
2570,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
1214,
743,
16,
10425,
2738,
25648,
2074,
6,
3719,
30,
27288,
273,
15891,
18,
2079,
2932,
19,
2
] |
Using a HDU list is useful when it needs to be patched before fed into the recipe. Note that HDU lists are stored in temporary files before the recipe is called which may produce some overhead. Also, the CPL then assigns the temporary file names to the
|
Using :class:`pyfits.HDUList` is useful when it needs to be patched before fed into the recipe.
|
def calib(self): '''This attribute contains the calibration frames for the recipe. It is iterable and then returns all calibration frames: >>> for f in muse_scibasic.calib: ... print f.tag, f.min, f.max, f.files TRACE_TABLE 1 1 None WAVECAL_TABLE 1 1 None MASTER_BIAS 1 1 master_bias_0.fits MASTER_DARK None 1 None GEOMETRY_TABLE 1 1 None BADPIX_TABLE None None ['badpix_1.fits', 'badpix_2.fits'] MASTER_FLAT None 1 None
|
2ec40a9cb5d2e8786b33b5a14225ced0b3d34e16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14935/2ec40a9cb5d2e8786b33b5a14225ced0b3d34e16/recipes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
12,
2890,
4672,
9163,
2503,
1566,
1914,
326,
15344,
7793,
364,
326,
16100,
18,
225,
2597,
353,
6087,
471,
1508,
1135,
777,
15344,
7793,
30,
225,
4080,
364,
284,
316,
312,
1202,
67,
1017,
495,
4536,
18,
771,
495,
30,
1372,
377,
1172,
284,
18,
2692,
16,
284,
18,
1154,
16,
284,
18,
1896,
16,
284,
18,
2354,
12734,
67,
7775,
404,
404,
599,
678,
26714,
7913,
67,
7775,
404,
404,
599,
27312,
67,
38,
16133,
404,
404,
4171,
67,
13931,
67,
20,
18,
18352,
27312,
67,
40,
9584,
599,
404,
599,
17788,
51,
958,
17805,
67,
7775,
404,
404,
599,
16467,
27381,
67,
7775,
599,
599,
10228,
8759,
14861,
67,
21,
18,
18352,
2187,
296,
8759,
14861,
67,
22,
18,
18352,
3546,
27312,
67,
42,
12190,
599,
404,
599,
2,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
12,
2890,
4672,
9163,
2503,
1566,
1914,
326,
15344,
7793,
364,
326,
16100,
18,
225,
2597,
353,
6087,
471,
1508,
1135,
777,
15344,
7793,
30,
225,
4080,
364,
284,
316,
312,
1202,
67,
1017,
495,
4536,
18,
771,
495,
30,
1372,
377,
1172,
284,
18,
2692,
16,
284,
18,
1154,
16,
284,
18,
1896,
16,
284,
18,
2354,
12734,
67,
7775,
404,
404,
599,
678,
26714,
7913,
67,
7775,
404,
404,
599,
27312,
67,
38,
16133,
404,
404,
4171,
67,
13931,
67,
20,
18,
18352,
27312,
67,
40,
9584,
599,
404,
599,
17788,
51,
958,
17805,
67,
7775,
404,
404,
599,
16467,
27381,
67,
7775,
599,
599,
10228,
8759,
14861,
67,
21,
18,
18352,
2187,
296,
8759,
2
] |
print_debug(" => Searching for host \"%s:0\", hostname=%s found host=%s ut_line=%s"%(ip, hostname, b.ut_host,b.ut_line))
|
def GetLast(self, ip, ingroup=None): start=time() last=None data={} if ip != "" and not self.ipValid(ip): ip=self.GetIpAddress(ip) hostname=self.GetHostname(ip) print_debug("GetLast() ip=%s hostname=%s "%(ip, hostname) ) for i in range(10): last_file=WTMP_FILE if i != 0: last_file=WTMP_FILE+".%d" %i if os.path.isfile(last_file): print_debug("GetLast() Searching in %s" %last_file) a = utmp.UtmpRecord(last_file) while 1: b = a.getutent() if not b: break if b[0] == USER_PROCESS: print_debug(" => Searching for host \"%s:0\", hostname=%s found host=%s ut_line=%s"%(ip, hostname, b.ut_host,b.ut_line)) if b.ut_host == "%s:0" % (ip) or b.ut_line == "%s:0" % (ip) or b.ut_host == "%s" % hostname : if b.ut_line.startswith("pts/") and not os.path.isdir("/proc/%s"%b.ut_pid): continue print_debug(" Ip \"%s:0\" => found host=%s hostname=%s ut_line=%s user=%s pid=%s"%(ip, hostname, b.ut_host,b.ut_line, b.ut_user, b.ut_pid)) last=b a.endutent() if last and os.path.isdir("/proc/%s"%last.ut_pid): break if last and os.path.isdir("/proc/%s"%last.ut_pid): # take diff between now and login time diff=time()-last.ut_tv[0] # get days and set diff to rest days=int(diff/(3600*24)) diff=diff-days*3600*24
|
d05956db445aede7c16832225493dd20345df6eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13520/d05956db445aede7c16832225493dd20345df6eb/LocalData.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3024,
12,
2890,
16,
2359,
16,
12152,
656,
33,
7036,
4672,
787,
33,
957,
1435,
1142,
33,
7036,
501,
12938,
309,
2359,
480,
1408,
471,
486,
365,
18,
625,
1556,
12,
625,
4672,
2359,
33,
2890,
18,
967,
16875,
12,
625,
13,
5199,
33,
2890,
18,
967,
13769,
12,
625,
13,
1172,
67,
4148,
2932,
967,
3024,
1435,
2359,
5095,
87,
5199,
5095,
87,
22061,
625,
16,
5199,
13,
262,
225,
364,
277,
316,
1048,
12,
2163,
4672,
1142,
67,
768,
33,
8588,
4566,
67,
3776,
309,
277,
480,
374,
30,
1142,
67,
768,
33,
8588,
4566,
67,
3776,
9078,
7866,
72,
6,
738,
77,
309,
1140,
18,
803,
18,
291,
768,
12,
2722,
67,
768,
4672,
1172,
67,
4148,
2932,
967,
3024,
1435,
5167,
310,
316,
738,
87,
6,
738,
2722,
67,
768,
13,
279,
273,
5218,
1291,
18,
57,
5645,
2115,
12,
2722,
67,
768,
13,
1323,
404,
30,
324,
273,
279,
18,
588,
322,
319,
1435,
309,
486,
324,
30,
898,
309,
324,
63,
20,
65,
422,
7443,
67,
16560,
30,
225,
309,
324,
18,
322,
67,
2564,
422,
2213,
87,
30,
20,
6,
738,
261,
625,
13,
578,
324,
18,
322,
67,
1369,
422,
2213,
87,
30,
20,
6,
738,
261,
625,
13,
578,
324,
18,
322,
67,
2564,
422,
2213,
87,
6,
738,
5199,
294,
309,
324,
18,
322,
67,
1369,
18,
17514,
1918,
2932,
1092,
4898,
13,
471,
486,
1140,
18,
803,
18,
291,
1214,
2932,
19,
9381,
5258,
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,
968,
3024,
12,
2890,
16,
2359,
16,
12152,
656,
33,
7036,
4672,
787,
33,
957,
1435,
1142,
33,
7036,
501,
12938,
309,
2359,
480,
1408,
471,
486,
365,
18,
625,
1556,
12,
625,
4672,
2359,
33,
2890,
18,
967,
16875,
12,
625,
13,
5199,
33,
2890,
18,
967,
13769,
12,
625,
13,
1172,
67,
4148,
2932,
967,
3024,
1435,
2359,
5095,
87,
5199,
5095,
87,
22061,
625,
16,
5199,
13,
262,
225,
364,
277,
316,
1048,
12,
2163,
4672,
1142,
67,
768,
33,
8588,
4566,
67,
3776,
309,
277,
480,
374,
30,
1142,
67,
768,
33,
8588,
4566,
67,
3776,
9078,
7866,
72,
6,
738,
77,
309,
1140,
18,
803,
18,
291,
768,
12,
2722,
67,
768,
4672,
2
] |
|
info.clear() error.clear()
|
for key in info.keys(): info[key] = False for key in error.keys(): error[key] = False
|
def _form_reset (): info.clear() error.clear() _reset_ratings() global url, generic, curindex url = u"" generic = False curindex = 0
|
bfc4984cb80cf8fabc9960826812d18008675f28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/bfc4984cb80cf8fabc9960826812d18008675f28/rating_html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
687,
67,
6208,
1832,
30,
364,
498,
316,
1123,
18,
2452,
13332,
1123,
63,
856,
65,
273,
1083,
364,
498,
316,
555,
18,
2452,
13332,
555,
63,
856,
65,
273,
1083,
389,
6208,
67,
17048,
899,
1435,
2552,
880,
16,
5210,
16,
662,
1615,
880,
273,
582,
3660,
5210,
273,
1083,
662,
1615,
273,
374,
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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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
687,
67,
6208,
1832,
30,
364,
498,
316,
1123,
18,
2452,
13332,
1123,
63,
856,
65,
273,
1083,
364,
498,
316,
555,
18,
2452,
13332,
555,
63,
856,
65,
273,
1083,
389,
6208,
67,
17048,
899,
1435,
2552,
880,
16,
5210,
16,
662,
1615,
880,
273,
582,
3660,
5210,
273,
1083,
662,
1615,
273,
374,
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
] |
combo = comboBox(hbox, master, value, items = items, tooltip = tooltip, callback = callback, sendSelectedValue = sendSelectedValue, valueType = valueType)
|
combo = comboBox(hbox, master, value, items = items, tooltip = tooltip, callback = callback, sendSelectedValue = sendSelectedValue, valueType = valueType, debuggingEnabled = debuggingEnabled)
|
def comboBoxWithCaption(widget, master, value, label, box=None, items=None, tooltip=None, callback = None, sendSelectedValue=0, valueType = int, labelWidth = None): hbox = widgetBox(widget, box = box, orientation="horizontal") lab = widgetLabel(hbox, label, labelWidth) combo = comboBox(hbox, master, value, items = items, tooltip = tooltip, callback = callback, sendSelectedValue = sendSelectedValue, valueType = valueType) return combo
|
c4b0e5102da7f3bb6f7e6eb4ddcbf3b5f9461057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c4b0e5102da7f3bb6f7e6eb4ddcbf3b5f9461057/OWGUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16778,
3514,
1190,
21158,
12,
6587,
16,
4171,
16,
460,
16,
1433,
16,
3919,
33,
7036,
16,
1516,
33,
7036,
16,
11915,
33,
7036,
16,
1348,
273,
599,
16,
1366,
7416,
620,
33,
20,
16,
13692,
273,
509,
16,
1433,
2384,
273,
599,
4672,
366,
2147,
273,
3604,
3514,
12,
6587,
16,
3919,
273,
3919,
16,
9820,
1546,
18396,
7923,
11814,
273,
3604,
2224,
12,
76,
2147,
16,
1433,
16,
1433,
2384,
13,
16778,
273,
16778,
3514,
12,
76,
2147,
16,
4171,
16,
460,
16,
1516,
273,
1516,
16,
11915,
273,
11915,
16,
1348,
273,
1348,
16,
1366,
7416,
620,
273,
1366,
7416,
620,
16,
13692,
273,
13692,
16,
10450,
1526,
273,
10450,
1526,
13,
327,
16778,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16778,
3514,
1190,
21158,
12,
6587,
16,
4171,
16,
460,
16,
1433,
16,
3919,
33,
7036,
16,
1516,
33,
7036,
16,
11915,
33,
7036,
16,
1348,
273,
599,
16,
1366,
7416,
620,
33,
20,
16,
13692,
273,
509,
16,
1433,
2384,
273,
599,
4672,
366,
2147,
273,
3604,
3514,
12,
6587,
16,
3919,
273,
3919,
16,
9820,
1546,
18396,
7923,
11814,
273,
3604,
2224,
12,
76,
2147,
16,
1433,
16,
1433,
2384,
13,
16778,
273,
16778,
3514,
12,
76,
2147,
16,
4171,
16,
460,
16,
1516,
273,
1516,
16,
11915,
273,
11915,
16,
1348,
273,
1348,
16,
1366,
7416,
620,
273,
1366,
7416,
620,
16,
13692,
273,
13692,
16,
10450,
1526,
273,
10450,
1526,
13,
327,
16778,
225,
2
] |
for trove in self.repos.walkTroveSet(parentTrove):
|
for trove in self.repos.walkTroveSet(parentTrove, withFiles = False):
|
def files(self, auth, t, v, f): v = versions.ThawVersion(v) f = deps.ThawDependencySet(f)
|
0856981e848706a00b581d3442e71f66416d8263 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/0856981e848706a00b581d3442e71f66416d8263/http.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1390,
12,
2890,
16,
1357,
16,
268,
16,
331,
16,
284,
4672,
331,
273,
5244,
18,
1315,
2219,
1444,
12,
90,
13,
284,
273,
8740,
18,
1315,
2219,
7787,
694,
12,
74,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1390,
12,
2890,
16,
1357,
16,
268,
16,
331,
16,
284,
4672,
331,
273,
5244,
18,
1315,
2219,
1444,
12,
90,
13,
284,
273,
8740,
18,
1315,
2219,
7787,
694,
12,
74,
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
] |
if len(self._elements) == len(other._elements): return cmp(self._elements, other._elements) and \ cmp(self._hasse_diagram, other._hasse_diagram)
|
if len(self._elements) == len(other._elements) and self._elements == other._elements: return self._hasse_diagram == other._hasse_diagram
|
def __cmp__(self, other): r""" Define comparison for finite posets.
|
f00d0ece07dc85deddd28ade34472990975335cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/f00d0ece07dc85deddd28ade34472990975335cf/posets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
436,
8395,
13184,
5826,
364,
25922,
949,
2413,
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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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
] |
characters using the encoded-word syntax of RFC 2047, decoded versions of those attributes are placed in the self.decoded (a dictionary). If the charsets used by these headers differ from each other or from the charset specified by the message's Content-Type header, then an arbitrary charset is chosen. If the decoded fields match that charset, they are preserved literally. Otherwise, an attempt is made to decode them as Unicode. If that fails, they are left undecoded.
|
characters using the encoded-word syntax of RFC 2047, decoded versions of those attributes are placed in the self.decoded (a dictionary). If the list's charset differs from the header charset, an attempt is made to decode the headers as Unicode. If that fails, they are left undecoded.
|
def check_header_charsets(self, msg_charset=None): """Check From and Subject for encoded-words
|
4616e826ade7dba7eafa7e61bb5fa387d722335c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/4616e826ade7dba7eafa7e61bb5fa387d722335c/HyperArch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3374,
67,
3001,
4424,
12,
2890,
16,
1234,
67,
9999,
33,
7036,
4672,
3536,
1564,
6338,
471,
9912,
364,
3749,
17,
3753,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3374,
67,
3001,
4424,
12,
2890,
16,
1234,
67,
9999,
33,
7036,
4672,
3536,
1564,
6338,
471,
9912,
364,
3749,
17,
3753,
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
] |
return
|
return
|
def write(self, data):
|
d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return data
|
else: return data return string.join(data, "")
|
def dumps(params, methodname=None, methodresponse=None): # convert a tuple or a fault object to an XML-RPC packet assert type(params) == TupleType or isinstance(params, Fault),\ "argument must be tuple or Fault instance" m = Marshaller() data = m.dumps(params) # standard XML-RPC wrappings if methodname: # a method call data = ( "<?xml version='1.0'?>\n" "<methodCall>\n" "<methodName>%s</methodName>\n" "%s\n" "</methodCall>\n" % (methodname, data) ) elif methodresponse or isinstance(params, Fault): # a method response data = ( "<?xml version='1.0'?>\n" "<methodResponse>\n" "%s\n" "</methodResponse>\n" % data ) return data
|
80ead46c3b0b9513bc116e8fe08faa2f91145a91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/80ead46c3b0b9513bc116e8fe08faa2f91145a91/xmlrpclib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6711,
12,
2010,
16,
707,
529,
33,
7036,
16,
707,
2740,
33,
7036,
4672,
468,
1765,
279,
3193,
578,
279,
12530,
733,
358,
392,
3167,
17,
8087,
4414,
225,
1815,
618,
12,
2010,
13,
422,
7257,
559,
578,
1549,
12,
2010,
16,
25609,
3631,
64,
315,
3446,
1297,
506,
3193,
578,
25609,
791,
6,
225,
312,
273,
26026,
264,
1435,
501,
273,
312,
18,
13302,
1121,
12,
2010,
13,
225,
468,
4529,
3167,
17,
8087,
2193,
4675,
309,
707,
529,
30,
468,
279,
707,
745,
501,
273,
261,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
35,
5333,
82,
6,
3532,
2039,
1477,
5333,
82,
6,
3532,
2039,
461,
9822,
87,
1757,
2039,
461,
5333,
82,
6,
2213,
87,
64,
82,
6,
6823,
2039,
1477,
5333,
82,
6,
738,
261,
2039,
529,
16,
501,
13,
262,
1327,
707,
2740,
578,
1549,
12,
2010,
16,
25609,
4672,
468,
279,
707,
766,
501,
273,
261,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
35,
5333,
82,
6,
3532,
2039,
1064,
5333,
82,
6,
2213,
87,
64,
82,
6,
6823,
2039,
1064,
5333,
82,
6,
738,
501,
262,
469,
30,
327,
501,
327,
533,
18,
5701,
12,
892,
16,
1408,
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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
3446,
1297,
506,
3193,
578,
25609,
791,
6,
225,
312,
273,
26026,
264,
1435,
501,
273,
312,
18,
13302,
1121,
12,
2010,
13,
225,
468,
4529,
3167,
17,
8087,
2193,
4675,
309,
707,
529,
30,
468,
279,
707,
745,
501,
273,
261,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
35,
5333,
82,
6,
3532,
2039,
1477,
5333,
82,
6,
3532,
2039,
461,
9822,
87,
1757,
2039,
461,
5333,
82,
6,
2213,
2
] |
itemModifiers = [] features = []
|
def deleteExtFields(self): self.stream.deleteExtFields([self.id])
|
0657568780357bef8441a5f60530117f37a6a536 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/0657568780357bef8441a5f60530117f37a6a536/qBase.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
2482,
2314,
12,
2890,
4672,
365,
18,
3256,
18,
3733,
2482,
2314,
3816,
2890,
18,
350,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if len(arg) == 6:
|
if len(arg) == 11:
|
def handleArg(self, arg): """Parse one argument at a time.
|
0c9e1bdb7d8378145394c5c96e8983fd1ce25ea7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/0c9e1bdb7d8378145394c5c96e8983fd1ce25ea7/pagegenerators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
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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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,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
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
] |
"""Set up self.opresolver from self.pkgs.
|
"""Run the complete depresolution.
|
def runDepRes(self): """Set up self.opresolver from self.pkgs.
|
63c08f3d9e04ccf32583372dd5311f84d2b5343f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/63c08f3d9e04ccf32583372dd5311f84d2b5343f/yum.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
16316,
607,
12,
2890,
4672,
3536,
694,
731,
365,
18,
556,
14122,
628,
365,
18,
25376,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
16316,
607,
12,
2890,
4672,
3536,
694,
731,
365,
18,
556,
14122,
628,
365,
18,
25376,
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
] |
self.change_notification = True
|
def set_color_rgb(self,rgb): r,g,b = rgb c = gdk.Color(int(r*65535+0.5), int(g*65535+0.5), int(b*65535+0.5)) # only emit color_changed events if the user directly interacts with the window self.change_notification = False self.cs.set_current_color(c) self.change_notification = True
|
2e0e45cb89043b73344120fcaf1790d1b8e86604 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/2e0e45cb89043b73344120fcaf1790d1b8e86604/colorselectionwindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3266,
67,
10948,
12,
2890,
16,
10948,
4672,
436,
16,
75,
16,
70,
273,
6917,
276,
273,
314,
2883,
18,
2957,
12,
474,
12,
86,
14,
26,
2539,
4763,
15,
20,
18,
25,
3631,
509,
12,
75,
14,
26,
2539,
4763,
15,
20,
18,
25,
3631,
509,
12,
70,
14,
26,
2539,
4763,
15,
20,
18,
25,
3719,
468,
1338,
3626,
2036,
67,
6703,
2641,
309,
326,
729,
5122,
16592,
87,
598,
326,
2742,
365,
18,
3427,
67,
9927,
273,
1083,
365,
18,
2143,
18,
542,
67,
2972,
67,
3266,
12,
71,
13,
365,
18,
3427,
67,
9927,
273,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3266,
67,
10948,
12,
2890,
16,
10948,
4672,
436,
16,
75,
16,
70,
273,
6917,
276,
273,
314,
2883,
18,
2957,
12,
474,
12,
86,
14,
26,
2539,
4763,
15,
20,
18,
25,
3631,
509,
12,
75,
14,
26,
2539,
4763,
15,
20,
18,
25,
3631,
509,
12,
70,
14,
26,
2539,
4763,
15,
20,
18,
25,
3719,
468,
1338,
3626,
2036,
67,
6703,
2641,
309,
326,
729,
5122,
16592,
87,
598,
326,
2742,
365,
18,
3427,
67,
9927,
273,
1083,
365,
18,
2143,
18,
542,
67,
2972,
67,
3266,
12,
71,
13,
365,
18,
3427,
67,
9927,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
This can be instantiated in four ways: 1. csr_matrix(s)
|
This can be instantiated in several ways: - csr_matrix(d) with a dense matrix d - csr_matrix(s)
|
def copy(self): new = csc_matrix(self.shape, nzmax=self.nzmax, dtype=self.dtypechar) new.data = self.data.copy() new.rowind = self.rowind.copy() new.indptr = self.indptr.copy() new._check() return new
|
a9fa59f2c7be4099d580674761bd725b0c430682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/a9fa59f2c7be4099d580674761bd725b0c430682/sparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
394,
273,
276,
1017,
67,
5667,
12,
2890,
18,
4867,
16,
15062,
1896,
33,
2890,
18,
82,
94,
1896,
16,
3182,
33,
2890,
18,
8972,
3001,
13,
394,
18,
892,
273,
365,
18,
892,
18,
3530,
1435,
394,
18,
492,
728,
273,
365,
18,
492,
728,
18,
3530,
1435,
394,
18,
728,
6723,
273,
365,
18,
728,
6723,
18,
3530,
1435,
394,
6315,
1893,
1435,
327,
394,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
394,
273,
276,
1017,
67,
5667,
12,
2890,
18,
4867,
16,
15062,
1896,
33,
2890,
18,
82,
94,
1896,
16,
3182,
33,
2890,
18,
8972,
3001,
13,
394,
18,
892,
273,
365,
18,
892,
18,
3530,
1435,
394,
18,
492,
728,
273,
365,
18,
492,
728,
18,
3530,
1435,
394,
18,
728,
6723,
273,
365,
18,
728,
6723,
18,
3530,
1435,
394,
6315,
1893,
1435,
327,
394,
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
] |
cspheres.append((st[0],st[1],st[2],rt,use_colors))
|
cspheres.append((st[0],st[1],st[2],rt,atoms[i]))
|
def compute_memo(self, chunk): """If drawing chunk in this display mode can be optimized by precomputing some info from chunk's appearance, compute that info and return it. If this computation requires preference values, access them as env.prefs[key], and that will cause the memo to be removed (invalidated) when that preference value is changed by the user. This computation is assumed to also depend on, and only on, chunk's appearance in ordinary display modes (i.e. it's invalidated whenever havelist is). There is not yet any way to change that, so bugs will occur if any ordinarily invisible chunk info affects this rendering, and potential optimizations will not be done if any ordinarily visible info is not visible in this rendering. These can be fixed if necessary by having the real work done within class Chunk's _recompute_ rules, with this function or drawchunk just accessing the result of that (and sometimes causing its recomputation), and with whatever invalidation is needed being added to appropriate setter methods of class Chunk. If the real work can depend on more than chunk's ordinary appearance can, the access would need to be in drawchunk; otherwise it could be in drawchunk or in this method compute_memo. """ # for this example, we'll turn the chunk axes into a cylinder. # Since chunk.axis is not always one of the vectors chunk.evecs (actually chunk.poly_evals_evecs_axis[2]), # it's best to just use the axis and center, then recompute a bounding cylinder. if not chunk.atoms: return None
|
ed24f8afea01f930a917fd3d94522e4efc304f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ed24f8afea01f930a917fd3d94522e4efc304f2d/SurfaceChunks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
19521,
12,
2890,
16,
2441,
4672,
3536,
2047,
16327,
2441,
316,
333,
2562,
1965,
848,
506,
15411,
635,
675,
13406,
310,
2690,
1123,
628,
2441,
1807,
9788,
1359,
16,
3671,
716,
1123,
471,
327,
518,
18,
971,
333,
16039,
4991,
11555,
924,
16,
2006,
2182,
487,
1550,
18,
1484,
2556,
63,
856,
6487,
471,
716,
903,
4620,
326,
11063,
358,
506,
3723,
261,
5387,
690,
13,
1347,
716,
11555,
460,
353,
3550,
635,
326,
729,
18,
1220,
16039,
353,
12034,
358,
2546,
2447,
603,
16,
471,
1338,
603,
16,
2441,
1807,
9788,
1359,
316,
4642,
2101,
2562,
12382,
261,
77,
18,
73,
18,
518,
1807,
28711,
17334,
366,
842,
5449,
353,
2934,
6149,
353,
486,
4671,
1281,
4031,
358,
2549,
716,
16,
1427,
22398,
903,
3334,
309,
1281,
4642,
267,
10243,
24697,
2441,
1123,
30058,
333,
9782,
16,
471,
8555,
5213,
7089,
903,
486,
506,
2731,
309,
1281,
4642,
267,
10243,
6021,
1123,
353,
486,
6021,
316,
333,
9782,
18,
8646,
848,
506,
5499,
309,
4573,
635,
7999,
326,
2863,
1440,
2731,
3470,
667,
13021,
1807,
389,
266,
9200,
67,
2931,
16,
598,
333,
445,
578,
3724,
6551,
2537,
19531,
326,
563,
434,
716,
261,
464,
16594,
25416,
2097,
283,
13406,
367,
3631,
471,
598,
15098,
22996,
353,
3577,
3832,
3096,
358,
5505,
7794,
2590,
434,
667,
13021,
18,
971,
326,
2863,
1440,
848,
2447,
603,
1898,
2353,
2441,
1807,
4642,
2101,
9788,
1359,
848,
16,
326,
2006,
4102,
1608,
358,
506,
316,
3724,
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,
3671,
67,
19521,
12,
2890,
16,
2441,
4672,
3536,
2047,
16327,
2441,
316,
333,
2562,
1965,
848,
506,
15411,
635,
675,
13406,
310,
2690,
1123,
628,
2441,
1807,
9788,
1359,
16,
3671,
716,
1123,
471,
327,
518,
18,
971,
333,
16039,
4991,
11555,
924,
16,
2006,
2182,
487,
1550,
18,
1484,
2556,
63,
856,
6487,
471,
716,
903,
4620,
326,
11063,
358,
506,
3723,
261,
5387,
690,
13,
1347,
716,
11555,
460,
353,
3550,
635,
326,
729,
18,
1220,
16039,
353,
12034,
358,
2546,
2447,
603,
16,
471,
1338,
603,
16,
2441,
1807,
9788,
1359,
316,
4642,
2101,
2562,
12382,
261,
77,
18,
73,
18,
518,
1807,
28711,
17334,
366,
842,
5449,
353,
2934,
6149,
353,
486,
4671,
2
] |
"""Check the LaTex formatting in a sequence of lines.
|
"""Check the LaTeX formatting in a sequence of lines.
|
def checkit(source, opts, morecmds=[]): """Check the LaTex formatting in a sequence of lines. Opts is a mapping of options to option values if any: -m munge parenthesis and brackets -f forward slash warnings to be skipped -d delimiters only checking -v verbose listing on delimiters -s lineno: linenumber to start scan (default is 1). Morecmds is a sequence of LaTex commands (without backslashes) that are to be considered valid in the scan. """ texcmd = re.compile(r'\\[A-Za-z]+') validcmds = sets.Set(cmdstr.split()) for cmd in morecmds: validcmds.add('\\' + cmd) openers = [] # Stack of pending open delimiters if '-m' in opts: pairmap = {']':'[(', ')':'(['} # Munged openers else: pairmap = {']':'[', ')':'('} # Normal opener for a given closer openpunct = sets.Set('([') # Set of valid openers delimiters = re.compile(r'\\(begin|end){([_a-zA-Z]+)}|([()\[\]])') startline = int(opts.get('-s', '1')) lineno = 0 for lineno, line in izip(count(startline), islice(source, startline-1, None)): line = line.rstrip() if '-f' not in opts and '/' in line: # Warn whenever forward slashes encountered line = line.rstrip() print 'Warning, forward slash on line %d: %s' % (lineno, line) if '-d' not in opts: # Validate commands nc = line.find(r'\newcommand') if nc != -1: start = line.find('{', nc) end = line.find('}', start) validcmds.add(line[start+1:end]) for cmd in texcmd.findall(line): if cmd not in validcmds: print r'Warning, unknown tex cmd on line %d: \%s' % (lineno, cmd) # Check balancing of open/close markers (parens, brackets, etc) for begend, name, punct in delimiters.findall(line): if '-v' in opts: print lineno, '|', begend, name, punct, if begend == 'begin' and '-d' not in opts: openers.append((lineno, name)) elif punct in openpunct: openers.append((lineno, punct)) elif begend == 'end' and '-d' not in opts: matchclose(lineno, name, openers, pairmap) elif punct in pairmap: matchclose(lineno, punct, openers, pairmap) if '-v' in opts: print ' --> ', openers for lineno, symbol in openers: print "Unmatched open delimiter '%s' on line %d", (symbol, lineno) print 'Done checking %d lines.' % (lineno,) return 0
|
04e724cb9be5e23afe9422804063705fde5f78ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/04e724cb9be5e23afe9422804063705fde5f78ba/texcheck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
305,
12,
3168,
16,
1500,
16,
1898,
24680,
33,
8526,
4672,
3536,
1564,
326,
21072,
21575,
60,
10407,
316,
279,
3102,
434,
2362,
18,
225,
25769,
353,
279,
2874,
434,
702,
358,
1456,
924,
309,
1281,
30,
300,
81,
1850,
312,
25561,
22311,
471,
15597,
300,
74,
1850,
5104,
9026,
5599,
358,
506,
9700,
300,
72,
1850,
18374,
1338,
6728,
300,
90,
1850,
3988,
11591,
603,
18374,
300,
87,
7586,
30,
225,
4739,
21998,
358,
787,
4135,
261,
1886,
353,
404,
2934,
225,
16053,
24680,
353,
279,
3102,
434,
21072,
16733,
4364,
261,
13299,
1473,
13675,
13,
716,
854,
358,
506,
7399,
923,
316,
326,
4135,
18,
3536,
225,
16573,
4172,
273,
283,
18,
11100,
12,
86,
11,
1695,
63,
37,
17,
15948,
17,
94,
3737,
6134,
225,
923,
24680,
273,
1678,
18,
694,
12,
4172,
701,
18,
4939,
10756,
364,
1797,
316,
1898,
24680,
30,
923,
24680,
18,
1289,
2668,
10471,
397,
1797,
13,
225,
1696,
414,
273,
5378,
18701,
468,
7283,
434,
4634,
1696,
18374,
225,
309,
2400,
81,
11,
316,
1500,
30,
3082,
1458,
273,
288,
3546,
11,
2497,
63,
12,
2187,
5777,
2497,
12,
3292,
97,
1377,
468,
490,
318,
2423,
1696,
414,
469,
30,
3082,
1458,
273,
288,
3546,
11,
2497,
63,
2187,
5777,
2497,
2668,
97,
3639,
468,
8769,
20532,
364,
279,
864,
13306,
1696,
84,
6931,
273,
1678,
18,
694,
2668,
12,
3292,
13,
225,
468,
1000,
434,
923,
1696,
414,
225,
18374,
273,
283,
18,
11100,
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,
866,
305,
12,
3168,
16,
1500,
16,
1898,
24680,
33,
8526,
4672,
3536,
1564,
326,
21072,
21575,
60,
10407,
316,
279,
3102,
434,
2362,
18,
225,
25769,
353,
279,
2874,
434,
702,
358,
1456,
924,
309,
1281,
30,
300,
81,
1850,
312,
25561,
22311,
471,
15597,
300,
74,
1850,
5104,
9026,
5599,
358,
506,
9700,
300,
72,
1850,
18374,
1338,
6728,
300,
90,
1850,
3988,
11591,
603,
18374,
300,
87,
7586,
30,
225,
4739,
21998,
358,
787,
4135,
261,
1886,
353,
404,
2934,
225,
16053,
24680,
353,
279,
3102,
434,
21072,
16733,
4364,
261,
13299,
1473,
13675,
13,
716,
854,
358,
506,
7399,
923,
316,
326,
4135,
18,
3536,
225,
16573,
4172,
273,
283,
18,
11100,
12,
86,
2
] |
secDB = db.DB(self.env) secDB.set_flags(db.DB_DUP) secDB.open(self.filename, "secondary", db.DB_BTREE,
|
self.secDB = db.DB(self.env) self.secDB.set_flags(db.DB_DUP) self.secDB.open(self.filename, "secondary", db.DB_BTREE,
|
def test02_associateAfterDB(self): if verbose: print '\n', '-=' * 30 print "Running %s.test02_associateAfterDB..." % \ self.__class__.__name__
|
c5cf731a4deb710892c9083a468a6d173d791456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c5cf731a4deb710892c9083a468a6d173d791456/test_associate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,
521,
365,
16186,
1106,
972,
16186,
529,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,
521,
365,
16186,
1106,
972,
16186,
529,
972,
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
] |
if status not in ' up': error('invalid status, %s, at %s', status, pos) if tl < (23+ul+dl+el): error('invalid transaction length, %s, at %s', tl, pos) tpos=pos tend=tpos+tl if status=='u':
|
if tl < (23 + ul + dl + el): error("invalid transaction length, %s, at %s", tl, pos) if ltid and tid < ltid: error("time-stamp reducation %s < %s, at %s", u64(tid), u64(ltid), pos) if status == "c": truncate(f, pos, file_size, output) raise EOFError if status not in " up": error("invalid status, %r, at %s", status, pos) tpos = pos tend = tpos + tl if status == "u":
|
def read_transaction_header(file, pos, file_size): # Read the transaction record file.seek(pos) h = file.read(23) if len(h) < 23: raise EOFError tid, stl, status, ul, dl, el = unpack(">8s8scHHH",h) if el < 0: el=t32-el tl=u64(stl) if status=='c': raise EOFError if pos+(tl+8) > file_size: error("bad transaction length at %s", pos) if status not in ' up': error('invalid status, %s, at %s', status, pos) if tl < (23+ul+dl+el): error('invalid transaction length, %s, at %s', tl, pos) tpos=pos tend=tpos+tl if status=='u': # Undone transaction, skip it file.seek(tend) h = file.read(8) if h != stl: error('inconsistent transaction length at %s', pos) pos = tend + 8 return pos, None pos = tpos+(23+ul+dl+el) user = file.read(ul) description = file.read(dl) if el: try: e=loads(file.read(el)) except: e={} else: e={} result = RecordIterator(tid, status, user, description, e, pos, tend, file, tpos) pos=tend # Read the (intentionally redundant) transaction length file.seek(pos) h = file.read(8) if h != stl: error("redundant transaction length check failed at %s", pos) pos += 8 return pos, result
|
9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814/fsrecover.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7958,
67,
3374,
12,
768,
16,
949,
16,
585,
67,
1467,
4672,
468,
2720,
326,
2492,
1409,
585,
18,
16508,
12,
917,
13,
366,
273,
585,
18,
896,
12,
4366,
13,
309,
562,
12,
76,
13,
411,
10213,
30,
1002,
6431,
668,
225,
11594,
16,
384,
80,
16,
1267,
16,
7493,
16,
8910,
16,
415,
273,
6167,
2932,
34,
28,
87,
28,
1017,
17500,
44,
3113,
76,
13,
309,
415,
411,
374,
30,
415,
33,
88,
1578,
17,
292,
225,
8332,
33,
89,
1105,
12,
334,
80,
13,
225,
309,
1267,
18920,
71,
4278,
1002,
6431,
668,
225,
309,
949,
15,
12,
6172,
15,
28,
13,
405,
585,
67,
1467,
30,
555,
2932,
8759,
2492,
769,
622,
738,
87,
3113,
949,
13,
225,
309,
8332,
411,
261,
4366,
397,
7493,
397,
8910,
397,
415,
4672,
555,
2932,
5387,
2492,
769,
16,
738,
87,
16,
622,
738,
87,
3113,
8332,
16,
949,
13,
225,
309,
13489,
350,
471,
11594,
411,
13489,
350,
30,
555,
2932,
957,
17,
14317,
1755,
5286,
367,
738,
87,
411,
738,
87,
16,
622,
738,
87,
3113,
582,
1105,
12,
18081,
3631,
582,
1105,
12,
5618,
350,
3631,
949,
13,
225,
309,
1267,
422,
315,
71,
6877,
10310,
12,
74,
16,
949,
16,
585,
67,
1467,
16,
876,
13,
1002,
6431,
668,
225,
309,
1267,
486,
316,
315,
731,
6877,
555,
2932,
5387,
1267,
16,
738,
86,
16,
622,
738,
87,
3113,
1267,
16,
949,
13,
225,
268,
917,
273,
949,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7958,
67,
3374,
12,
768,
16,
949,
16,
585,
67,
1467,
4672,
468,
2720,
326,
2492,
1409,
585,
18,
16508,
12,
917,
13,
366,
273,
585,
18,
896,
12,
4366,
13,
309,
562,
12,
76,
13,
411,
10213,
30,
1002,
6431,
668,
225,
11594,
16,
384,
80,
16,
1267,
16,
7493,
16,
8910,
16,
415,
273,
6167,
2932,
34,
28,
87,
28,
1017,
17500,
44,
3113,
76,
13,
309,
415,
411,
374,
30,
415,
33,
88,
1578,
17,
292,
225,
8332,
33,
89,
1105,
12,
334,
80,
13,
225,
309,
1267,
18920,
71,
4278,
1002,
6431,
668,
225,
309,
949,
15,
12,
6172,
15,
28,
13,
405,
585,
67,
1467,
30,
555,
2932,
8759,
2492,
769,
2
] |
auth = authorizers.UnixAuthorizer()
|
auth = authorizers.UnixAuthorizer()
|
def get_fake_shell_user(): for user in self.get_users(): shell = pwd.getpwnam(user).pw_shell # On linux fake shell is usually /bin/false, on # freebsd /usr/sbin/nologin; in case of other # UNIX variants test needs to be adjusted. if '/false' in shell or '/nologin' in shell: return user self.fail("no user found")
|
a90c7c7cae01c7f71fc9e9ed5d8106d8cce1a84b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7236/a90c7c7cae01c7f71fc9e9ed5d8106d8cce1a84b/test_contrib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
28395,
67,
10304,
67,
1355,
13332,
364,
729,
316,
365,
18,
588,
67,
5577,
13332,
5972,
273,
14720,
18,
588,
14921,
17808,
12,
1355,
2934,
14921,
67,
10304,
468,
2755,
19725,
10517,
5972,
353,
11234,
342,
4757,
19,
5743,
16,
603,
468,
4843,
2038,
72,
342,
13640,
19,
87,
4757,
19,
82,
3966,
267,
31,
225,
316,
648,
434,
1308,
468,
23160,
12935,
1842,
4260,
358,
506,
13940,
18,
309,
1173,
5743,
11,
316,
5972,
578,
1173,
82,
3966,
267,
11,
316,
5972,
30,
327,
729,
365,
18,
6870,
2932,
2135,
729,
1392,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
14720,
18,
588,
14921,
17808,
12,
1355,
2934,
14921,
67,
10304,
468,
2755,
19725,
10517,
5972,
353,
11234,
342,
4757,
19,
5743,
16,
603,
468,
4843,
2038,
72,
342,
13640,
19,
87,
4757,
19,
82,
3966,
267,
31,
225,
316,
648,
434,
1308,
468,
23160,
12935,
1842,
4260,
358,
506,
13940,
18,
309,
1173,
5743,
11,
316,
5972,
578,
1173,
82,
3966,
267,
11,
316,
5972,
30,
327,
729,
365,
18,
6870,
2932,
2135,
729,
1392,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pc = 0 if n in parents: for p in parents[n]: if p not in self.map: pc += 1
|
children.setdefault(n, []) for p in parents[n]: if not p in self.map:
|
def toposort(self, parents): visit = parents.keys() seen = {} children = {}
|
6c7810769d00a7ea22018e0dd999f96081ff8dc2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/6c7810769d00a7ea22018e0dd999f96081ff8dc2/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
917,
499,
12,
2890,
16,
6298,
4672,
3757,
273,
6298,
18,
2452,
1435,
5881,
273,
2618,
2325,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
917,
499,
12,
2890,
16,
6298,
4672,
3757,
273,
6298,
18,
2452,
1435,
5881,
273,
2618,
2325,
273,
2618,
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
] |
else: print_exception(exc_info[0], exc_info[1], exc_info[2], file=errors)
|
def start_response(status, headers, exc_info=None): if exc_info: try: if headers_sent: # Re-raise original exception only if headers sent raise exc_info[0], exc_info[1], exc_info[2] else: print_exception(exc_info[0], exc_info[1], exc_info[2], file=errors) finally: # avoid dangling circular reference exc_info = None elif headers_set: # You cannot set the headers more than once, unless the # exc_info is provided. raise AssertionError("Headers already set and no exc_info!") headers_set.append(True) data['status'] = status data['headers'] = headers return output.append
|
cc31c0a82a5de99f7f36de31d4a32f5de239b759 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/cc31c0a82a5de99f7f36de31d4a32f5de239b759/wsgilib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
309,
3533,
67,
1376,
30,
775,
30,
309,
1607,
67,
7569,
30,
468,
868,
17,
11628,
2282,
1520,
1338,
309,
1607,
3271,
1002,
3533,
67,
1376,
63,
20,
6487,
3533,
67,
1376,
63,
21,
6487,
3533,
67,
1376,
63,
22,
65,
3095,
30,
468,
4543,
302,
539,
2456,
15302,
2114,
3533,
67,
1376,
273,
599,
1327,
1607,
67,
542,
30,
468,
4554,
2780,
444,
326,
1607,
1898,
2353,
3647,
16,
3308,
326,
468,
3533,
67,
1376,
353,
2112,
18,
1002,
12068,
2932,
3121,
1818,
444,
471,
1158,
3533,
67,
1376,
4442,
13,
1607,
67,
542,
18,
6923,
12,
5510,
13,
501,
3292,
2327,
3546,
273,
1267,
501,
3292,
2485,
3546,
273,
1607,
327,
876,
18,
6923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
309,
3533,
67,
1376,
30,
775,
30,
309,
1607,
67,
7569,
30,
468,
868,
17,
11628,
2282,
1520,
1338,
309,
1607,
3271,
1002,
3533,
67,
1376,
63,
20,
6487,
3533,
67,
1376,
63,
21,
6487,
3533,
67,
1376,
63,
22,
65,
3095,
30,
468,
4543,
302,
539,
2456,
15302,
2114,
3533,
67,
1376,
273,
599,
1327,
1607,
67,
542,
30,
468,
4554,
2780,
444,
326,
1607,
1898,
2353,
3647,
16,
3308,
326,
468,
3533,
67,
1376,
353,
2112,
18,
1002,
12068,
2932,
3121,
1818,
444,
471,
1158,
3533,
67,
1376,
4442,
13,
1607,
67,
542,
18,
6923,
12,
5510,
13,
501,
3292,
2327,
3546,
2
] |
|
response = TileResponse(render_tile(layername, z, x, y, extension=extension))
|
response = TileResponse(render_tile(layername, z, x, y, extension='png'))
|
def get_tile(request, version, layername, z, x, y, extension='png'): 'Returns a map tile in the requested format' z, x, y = int(z), int(x), int(y) response = TileResponse(render_tile(layername, z, x, y, extension=extension)) return response(extension)
|
fd503b650f206ae092c102019ef2469e91934650 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10327/fd503b650f206ae092c102019ef2469e91934650/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15368,
12,
2293,
16,
1177,
16,
3018,
529,
16,
998,
16,
619,
16,
677,
16,
2710,
2218,
6446,
11,
4672,
296,
1356,
279,
852,
4769,
316,
326,
3764,
740,
11,
998,
16,
619,
16,
677,
273,
509,
12,
94,
3631,
509,
12,
92,
3631,
509,
12,
93,
13,
766,
273,
13791,
1064,
12,
5902,
67,
15368,
12,
6363,
529,
16,
998,
16,
619,
16,
677,
16,
2710,
2218,
6446,
26112,
327,
766,
12,
6447,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15368,
12,
2293,
16,
1177,
16,
3018,
529,
16,
998,
16,
619,
16,
677,
16,
2710,
2218,
6446,
11,
4672,
296,
1356,
279,
852,
4769,
316,
326,
3764,
740,
11,
998,
16,
619,
16,
677,
273,
509,
12,
94,
3631,
509,
12,
92,
3631,
509,
12,
93,
13,
766,
273,
13791,
1064,
12,
5902,
67,
15368,
12,
6363,
529,
16,
998,
16,
619,
16,
677,
16,
2710,
2218,
6446,
26112,
327,
766,
12,
6447,
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
] |
sys.stdout.write('matching program output for %s/%s (%d-%d)]\n'% (localdir, execname, compoptsnum, execoptsnum))
|
sys.stdout.write('matching program output for %s/%s %s %s'% (localdir, execname, ' '.join(globalExecopts), execopts)) if len(compoptslist) > 1: sys.stdout.write('(%s%s)'% (' '.join(globalCompopts),compopts)) if result==0: sys.stdout.write(']\n') else: sys.stdout.write(' (%d-%d)]\n'%(compoptsnum, execoptsnum))
|
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
|
104424f171f0895d16c59291ac9da05a2dd76db5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/104424f171f0895d16c59291ac9da05a2dd76db5/sub_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,
67,
957,
273,
2037,
397,
2021,
468,
8492,
518,
279,
12720,
813,
1323,
679,
67,
957,
405,
2037,
30,
309,
293,
18,
13835,
13332,
327,
2037,
273,
813,
18,
957,
1435,
468,
999,
326,
5446,
366,
301,
6592,
261,
464,
2727,
1404,
23440,
7336,
13,
6652,
18,
52,
3190,
12,
3292,
16418,
17023,
17,
29,
2187,
609,
12,
84,
18,
6610,
13,
5717,
327,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,
67,
957,
273,
2037,
397,
2021,
468,
8492,
518,
279,
12720,
813,
1323,
679,
67,
957,
405,
2037,
30,
309,
293,
18,
13835,
13332,
327,
2037,
273,
813,
18,
957,
1435,
468,
999,
326,
5446,
366,
301,
6592,
261,
464,
2727,
1404,
23440,
7336,
13,
6652,
18,
52,
3190,
12,
3292,
16418,
17023,
17,
29,
2187,
609,
12,
84,
18,
6610,
13,
5717,
327,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
value += self._safe_read(chunk_left)
|
value.append(self._safe_read(chunk_left))
|
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = b""
|
bec1e84e67cccc1adf2ec6bf3eafa5f7bb15eaf8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/bec1e84e67cccc1adf2ec6bf3eafa5f7bb15eaf8/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
324,
3660,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
324,
3660,
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
] |
if type(f) == type(''):
|
if isinstance(f, basestring):
|
def __init__(self, f): self._i_opened_the_file = None if type(f) == type(''): f = __builtin__.open(f, 'rb') self._i_opened_the_file = f # else, assume it is an open file object already self.initfp(f)
|
2f7f3d33e9695b93b02ce73594281774388bee5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2f7f3d33e9695b93b02ce73594281774388bee5a/wave.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4672,
365,
6315,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4672,
365,
6315,
77,
67,
25304,
67,
5787,
67,
768,
273,
599,
309,
1549,
12,
74,
16,
10699,
4672,
284,
273,
1001,
24553,
25648,
3190,
12,
74,
16,
296,
6731,
6134,
365,
6315,
77,
67,
25304,
67,
5787,
67,
768,
273,
284,
468,
469,
16,
6750,
518,
353,
392,
1696,
585,
733,
1818,
365,
18,
2738,
7944,
12,
74,
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
] |
if mycontext['maxlag'] > 4:
|
if mycontext['maxlag'] > 2:
|
def check_and_exit(): if mycontext['maxlag'] > 4: print "UDP packets lag too long in the buffer: ", mycontext['maxlag'] if mycontext['maxlag'] == 0: print "UDP packets were not received or had 0 lag" exitall()
|
de4a8f088d7b017fa9dbb51eaf728048f32fed07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7995/de4a8f088d7b017fa9dbb51eaf728048f32fed07/ut_repytests_testudpbuffersize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
464,
67,
8593,
13332,
309,
3399,
2472,
3292,
1896,
22532,
3546,
405,
576,
30,
1172,
315,
20352,
12640,
17241,
4885,
1525,
316,
326,
1613,
30,
3104,
3399,
2472,
3292,
1896,
22532,
3546,
225,
309,
3399,
2472,
3292,
1896,
22532,
3546,
422,
374,
30,
1172,
315,
20352,
12640,
4591,
486,
5079,
578,
9323,
374,
17241,
6,
225,
2427,
454,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
464,
67,
8593,
13332,
309,
3399,
2472,
3292,
1896,
22532,
3546,
405,
576,
30,
1172,
315,
20352,
12640,
17241,
4885,
1525,
316,
326,
1613,
30,
3104,
3399,
2472,
3292,
1896,
22532,
3546,
225,
309,
3399,
2472,
3292,
1896,
22532,
3546,
422,
374,
30,
1172,
315,
20352,
12640,
4591,
486,
5079,
578,
9323,
374,
17241,
6,
225,
2427,
454,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def debugconfig(ui, repo, *values):
|
def showconfig(ui, repo, *values):
|
def debugconfig(ui, repo, *values): """show combined config settings from all hgrc files With no args, print names and values of all config items. With one arg of the form section.name, print just the value of that config item. With multiple args, print names and values of all config items with matching section names.""" if values: if len([v for v in values if '.' in v]) > 1: raise util.Abort(_('only one config item permitted')) for section, name, value in ui.walkconfig(): sectname = section + '.' + name if values: for v in values: if v == section: ui.write('%s=%s\n' % (sectname, value)) elif v == sectname: ui.write(value, '\n') else: ui.write('%s=%s\n' % (sectname, value))
|
44d5c8b1d34a8dacdf4faf17d0788de0b06b2368 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/44d5c8b1d34a8dacdf4faf17d0788de0b06b2368/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1425,
12,
4881,
16,
3538,
16,
380,
2372,
4672,
3536,
4500,
8224,
642,
1947,
628,
777,
22576,
1310,
1390,
225,
3423,
1158,
833,
16,
1172,
1257,
471,
924,
434,
777,
642,
1516,
18,
225,
3423,
1245,
1501,
434,
326,
646,
2442,
18,
529,
16,
1172,
2537,
326,
460,
434,
716,
642,
761,
18,
225,
3423,
3229,
833,
16,
1172,
1257,
471,
924,
434,
777,
642,
1516,
598,
3607,
2442,
1257,
12123,
225,
309,
924,
30,
309,
562,
3816,
90,
364,
331,
316,
924,
309,
2611,
316,
331,
5717,
405,
404,
30,
1002,
1709,
18,
13572,
24899,
2668,
3700,
1245,
642,
761,
15498,
26112,
364,
2442,
16,
508,
16,
460,
316,
5915,
18,
11348,
1425,
13332,
29140,
529,
273,
2442,
397,
2611,
397,
508,
309,
924,
30,
364,
331,
316,
924,
30,
309,
331,
422,
2442,
30,
5915,
18,
2626,
29909,
87,
5095,
87,
64,
82,
11,
738,
261,
5709,
529,
16,
460,
3719,
1327,
331,
422,
29140,
529,
30,
5915,
18,
2626,
12,
1132,
16,
2337,
82,
6134,
469,
30,
5915,
18,
2626,
29909,
87,
5095,
87,
64,
82,
11,
738,
261,
5709,
529,
16,
460,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1425,
12,
4881,
16,
3538,
16,
380,
2372,
4672,
3536,
4500,
8224,
642,
1947,
628,
777,
22576,
1310,
1390,
225,
3423,
1158,
833,
16,
1172,
1257,
471,
924,
434,
777,
642,
1516,
18,
225,
3423,
1245,
1501,
434,
326,
646,
2442,
18,
529,
16,
1172,
2537,
326,
460,
434,
716,
642,
761,
18,
225,
3423,
3229,
833,
16,
1172,
1257,
471,
924,
434,
777,
642,
1516,
598,
3607,
2442,
1257,
12123,
225,
309,
924,
30,
309,
562,
3816,
90,
364,
331,
316,
924,
309,
2611,
316,
331,
5717,
405,
404,
30,
1002,
1709,
18,
13572,
24899,
2668,
3700,
1245,
642,
761,
15498,
26112,
364,
2442,
16,
508,
16,
460,
316,
5915,
18,
11348,
1425,
13332,
29140,
529,
2
] |
sage: print T1.filled_cells_map() {1: (0, 0), 2: (0, 2), 3: (0, 3), 4: (1, 1), 5: (1, 2), 6: (1, 3), 7: (2, 0), 8: (2, 1), 9: (2, 2), 10: (3, 0), 11: (3, 1), 12: (3, 3), (2, 1): 8, (1, 3): 6, (0, 3): 3, (1, 2): 5, (3, 3): 12, (3, 0): 10, (2, 2): 9, (1, 1): 4, (0, 0): 1, (3, 1): 11, (2, 0): 7, (0, 2): 2}
|
sage: T1.filled_cells_map() {1: (0, 0), 2: (0, 1), 3: (0, 3), 4: (1, 1), 5: (1, 2), 6: (1, 3), 7: (2, 0), 8: (2, 2), 9: (2, 3), 10: (3, 0), 11: (3, 1), 12: (3, 2), (1, 3): 6, (0, 3): 3, (1, 2): 5, (3, 0): 10, (2, 2): 8, (1, 1): 4, (3, 2): 12, (0, 0): 1, (2, 3): 9, (0, 1): 2, (3, 1): 11, (2, 0): 7}
|
def filled_cells_map(self): """ Number the filled cells of self with integers from {1, 2, 3, ...}.
|
494f2bd1cd82ea9dcc25f8e258b7375812aed1c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/494f2bd1cd82ea9dcc25f8e258b7375812aed1c9/latin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6300,
67,
14741,
67,
1458,
12,
2890,
4672,
3536,
3588,
326,
6300,
5983,
434,
365,
598,
12321,
628,
288,
21,
16,
576,
16,
890,
16,
1372,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6300,
67,
14741,
67,
1458,
12,
2890,
4672,
3536,
3588,
326,
6300,
5983,
434,
365,
598,
12321,
628,
288,
21,
16,
576,
16,
890,
16,
1372,
5496,
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
] |
"blue wireframe box around the selected atom.</p>"
|
"blue wireframe box around the selected atom."\ "</p>"
|
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThis( fileOpenText ) #### Save File #### fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)</b></p><br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) ############################################## # Edit Toolbar ############################################## #### Undo #### editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command to the active part. "\ "<b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) #### Redo #### editRedoText = "<u><b>Redo</b></u> (Ctrl + Y)</b></p><br> "\ "<p><img source=\"editRedo\"> <br>"\ "Re-applies the actions or commands on which you have used "\ "the Undo command. <b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) #### Cut #### editCutText = "<u><b>Cut</b></u> (Ctrl + X)</b></p><br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) #### Copy #### editCopyText = "<u><b>Copy</b></u> (Ctrl + C)</b></p><br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) #### Paste #### editPasteText = "<u><b>Paste</b></u> (Ctrl + V)</b></p><br> "\ "<p><img source=\"editPaste\"><br> "\ "When selecting this feature, you are placed in "\ "<b>Build Atom</b> mode where you may paste copies "\ "of clipboard objects into the model where ever you click."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) #### Delete #### editDeleteText = "<u><b>Delete</b></u> (DEL)</b></p><br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects are permanantly lost.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) ############################################## # View Toolbar ############################################## #### Home View #### setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) #### Fit to Window #### setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) #### Recenter #### setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) #### Zoom Tool #### setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) #### Pan Tool #### setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) #### Rotate Tool #### setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) #### Orthographic Projection #### setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p><img source=\"setViewOrtho\"><br> "\ "Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) #### Perspective Projection #### setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p><img source=\"setViewPerspec\"><br> "\ "Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) #### Normal To #### setViewNormalToActionText = "<u><b>Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) #### Parallel To #### setViewParallelToActionText = "<u><b>Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) #### Front View #### setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) #### Back View #### setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) #### Top View #### setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) #### Bottom View #### setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) #### Left View #### setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) #### Right View #### setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) #### Opposite View #### setViewOppositeActionText = "<u><b>Opposite View</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) #### Rotate +90 #### setViewPlus90ActionText = "<u><b>Rotate +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) #### Rotate -90 #### setViewMinus90ActionText = "<u><b>Rotate -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) ############################################## # Grids Toolbar ############################################## #### Surface 100 #### orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) #### Surface 110 #### orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) #### Surface 111 #### orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) ############################################## # Molecular Display toolbar ############################################## #### Display Default #### dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>General</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) #### Display Invisible #### dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) #### Display Lines #### dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) #### Display Tubes #### dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) #### Display CPK #### dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode, also known as <b>\"Ball and Sticks\"</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) #### Display VdW #### dispVdWActionText = "<u><b>Display VdW</b></u><br>"\ "<p><img source=\"dispVdWAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Van der Waals</b> mode. Atoms are rendered as spheres with "\ "a size equal to the VdW radius. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>VdW</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispVdWAction", self.dispVdWAction.iconSet().pixmap() ) self.dispVdWAction.setWhatsThis(dispVdWActionText ) ############################################## # Select toolbar ############################################## #### Select All #### selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\ "<p><img source=\"selectAllAction\"><br> "\ "During <b>Select Atoms</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) #### Select None #### selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) #### Invert Selection #### selectInvertActionText = "<u><b>Invert Selection</b></u> <br> (Ctrl + Shift + I)</b></p><br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) #### Select Connected #### selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) #### Select Doubly #### selectDoublyActionText = "<u><b>Select Doubly</b></u></b></p><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection.</p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) #### Expand Selection #### selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)</b></p><br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) #### Contract Selection #### selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)</b></p><br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Unselects any atom that has an open bond."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) ############################################## # Modify Toolbar ############################################## #### Minimize Selection #### modifyMinimizeSelActionText = "<u><b>Minimize Selection</b></u> (Ctrl + M)</b></p><br>"\ "<p><img source=\"modifyMinimizeSelAction\"><br> "\ "Arranges the atoms (<i>of the current selection</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeSelAction", self.modifyMinimizeSelAction.iconSet().pixmap() ) self.modifyMinimizeSelAction.setWhatsThis(modifyMinimizeSelActionText ) #### Minimize All #### modifyMinimizeAllActionText = "<u><b>Minimize All</b></u></p><br>"\ "<p><img source=\"modifyMinimizeAllAction\"><br> "\ "Arranges the atoms (<i>of the entire part</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeAllAction", self.modifyMinimizeAllAction.iconSet().pixmap() ) self.modifyMinimizeAllAction.setWhatsThis(modifyMinimizeAllActionText ) #### Hydrogenate #### modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> </b></p><br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the open bonds in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) #### Dehydrogenate #### modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) #### Passivate #### modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)</b></p><br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) #### Stretch #### modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) #### Delete Bonds #### modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) #### Separate #### modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) #### Merge Chunks #### modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) #### Invert Chunks #### modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) #### Align to Common Axis #### modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) ############################################## # Tools Toolbar ############################################## #### Select Chunks #### toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) #### Select Atoms #### toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) #### Move Chunks #### toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) #### Build Atoms Tool #### toolsDepositAtomActionText = "<u><b>Build Tool</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Tool</b> allows you to deposit individual atoms or add/move/delete "\ "atoms from an existing chunk. Build Tool can also be used to paste "\ "copies of chunks from the clipboard into the part.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click</b> - adds an atom or pastes a chunk from the clipboard. "\ "New atoms can be connected to an existing chunk if an open bond is highlighted "\ "during a left click.</p>"\ "<p><b>Ctrl+Left Click</b> - deletes a highlighted atom or bond.</p>"\ "<p><b>Shift+Left Drag</b> - moves an atom or open bond. An open bond will be "\ "connected to another open bond if the mouse button is released over a different "\ "open bond."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) #### Cookie Cutter #### toolsCookieCutActionText = "<u><b>Cookie Cutter Tool</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "Activates <b>Cookie Cutter</b> mode, allowing you to cut out 3-D shapes from a "\ "slab of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) #### Extrude Tool #### toolsExtrudeActionText = "<u><b>Extrude Tool</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) #### Fuse Chunks Tool #### toolsFuseChunksActionText = "<u><b>Fuse Chunks Tool</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two types of fusing are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing open bonds) "\ "of two or more chunks. Bonds are drawn (and undrawn) as chunks "\ "are moved together (and apart).<br><br>"\ "<b>Fuse Atoms</b> fuses overlapping atoms between chunks. Overlapping "\ "pairs of atoms are highlighted in green and blue to indicate which atoms "\ "will be fused.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) #### Fuse Atoms Tool #### toolsFuseAtomsActionText = "<u><b>Fuse Atoms Tool</b></u><!-- [[Feature:Fuse Atoms Mode]] (nim?) --><br>"\ "<p><img source=\" toolsFuseAtomsAction\"><br> "\ "<b>Fuse Atoms</b> fuses the overlapping atoms between two or more chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseAtomsAction", self. toolsFuseAtomsAction.iconSet().pixmap() ) self.toolsFuseAtomsAction.setWhatsThis( toolsFuseAtomsActionText ) #### Movie Player #### simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) #### Simulator #### simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) #### Plot Tool #### simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) ############################################## # Dashboard Buttons ############################################## #### Done #### toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) #### Cancel #### toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) #### Back up #### toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) #### Start Over #### toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) #### Add Layers #### ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) ############################################## # Jigs ############################################## #### Anchor #### jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches a <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation.</p>"\ "<p>To create an Anchor, enter <b>Select Atoms</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) #### Rotary Motor #### jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor.</p>"\ "<p>To create a Rotary Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) #### Linear Motor #### jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor.</p>"\ "<p>To create a Linear Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) #### Thermostat #### jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin).</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run.</p>"\ "<p>To create a Langevin Thermostat, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) #### Thermometer #### jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run.</p>"\ "<p>To create a Thermometer, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) #### ESP Image #### jigsESPImageActionText = "<u><b>ESP Image</b></u></b></p><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential.</p>"\ "<p>To create an ESP Image, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) #### Atom Set #### jigsAtomSetActionText = "<u><b>Atom Set</b></u></b></p><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later.</p>"\ "<p>To create an Atom Set, enter <b>Select Atoms</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection.</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) #### Measure Distance #### jigsDistanceActionText = "<u><b>Measure Distance</b></u></b></p><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance</b> jig functions as a dimension to display the "\ "distance between two atoms.</p>"\ "<p>To create the Measure Distance jig, enter <b>Select Atoms</b> mode, "\ "select two atoms and then select this jig. The Measure Distance jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei.</p>"\ "<p>The Measure Distance jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) #### Measure Angle #### jigsAngleActionText = "<u><b>Measure Angle</b></u></b></p><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle</b> jig functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle jig, enter <b>Select Atoms</b> mode, "\ "select three atoms and then select this jig. The Measure Angle jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms.</p>"\ "<p>The Measure Angle jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) #### Measure Dihedral #### jigsDihedralActionText = "<u><b>Measure Dihedral</b></u></b></p><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral</b> jig functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral jig, enter <b>Select Atoms</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value.</p>"\ "<p>The Measure Dihedral jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) ############################################## # Display ############################################## #### Display Object Color #### dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) #### Display Background Color #### dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) ############################################## # Help Toolbar ############################################## #### What's This #### helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) ############################################## # Datum Display Toolbar ############################################## #### Display Trihedron #### dispTrihedronText = "<u><b>Display Trihedron</b></u><br>"\ "<p><img source=\"dispTrihedron\"><br> "\ "Toggles the trihedron on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTrihedron", self.dispTrihedronAction.iconSet().pixmap() ) self.dispTrihedronAction.setWhatsThis(dispTrihedronText ) #### Display Csys #### dispCsysText = "<u><b>Display Csys Axis</b></u><br>"\ "<p><img source=\"dispCsys\"><br> "\ "Toggles the coordinate system axis on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCsys", self.dispCsysAction.iconSet().pixmap() ) self.dispCsysAction.setWhatsThis(dispCsysText ) #### Display Datum Lines #### dispDatumLinesText = "<u><b>Display Datum Lines</b></u><br>"\ "<p><img source=\"dispDatumLines\"><br> "\ "Toggles Datum Lines on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumLines", self.dispDatumLinesAction.iconSet().pixmap() ) self.dispDatumLinesAction.setWhatsThis(dispDatumLinesText ) #### Display Datum Planes #### dispDatumPlanesText = "<u><b>Display Datum Planes</b></u><br>"\ "<p><img source=\"dispDatumPlanes\"><br> "\ "Toggles Datum Planes on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumPlanes", self.dispDatumPlanesAction.iconSet().pixmap() ) self.dispDatumPlanesAction.setWhatsThis(dispDatumPlanesText ) #### Display Grid #### dispGridText = "<u><b>Display 3-D Grid</b></u><br>"\ "<p><img source=\"dispGrid\"><br> "\ "Toggles the 3-D grid on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispGrid", self.dispGridAction.iconSet().pixmap() ) self.dispGridAction.setWhatsThis(dispGridText ) #### Display Open Bonds #### dispOpenBondsText = "<u><b>Display Singlets</b></u><br>"\ "<p><img source=\"dispOpenBonds\"><br> "\ "Toggles Singlets on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispOpenBonds", self.dispOpenBondsAction.iconSet().pixmap() ) self.dispOpenBondsAction.setWhatsThis(dispOpenBondsText )
|
c9a25d437341caa5f0c88a4ab02c54ebb7627482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c9a25d437341caa5f0c88a4ab02c54ebb7627482/whatsthis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
34,
3678,
1387,
1757,
70,
4695,
89,
34,
565,
261,
12418,
397,
531,
13,
1757,
70,
4695,
84,
4438,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
768,
3190,
2412,
4438,
2848,
34,
1548,
315,
17778,
279,
394,
585,
1199,
64,
6823,
84,
2984,
225,
2238,
13320,
1830,
1733,
18,
1886,
1733,
7675,
542,
21816,
1458,
12,
315,
768,
3190,
3113,
365,
18,
768,
3678,
1803,
18,
3950,
694,
7675,
14861,
1458,
1435,
262,
225,
365,
18,
768,
3678,
1803,
18,
542,
2888,
2323,
2503,
12,
585,
3678,
1528,
262,
225,
11849,
7,
7074,
1387,
11849,
7,
225,
585,
4755,
1528,
273,
3532,
89,
4438,
70,
34,
4755,
1387,
1757,
70,
4695,
89,
34,
377,
261,
12418,
397,
348,
13,
1757,
70,
4695,
84,
4438,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
2354,
836,
2412,
4438,
2848,
34,
1548,
315,
13370,
326,
783,
585,
1199,
64,
6823,
84,
2984,
225,
2238,
13320,
1830,
1733,
18,
1886,
1733,
7675,
542,
21816,
1458,
12,
315,
2354,
836,
3113,
365,
18,
768,
4755,
1803,
18,
3950,
694,
7675,
14861,
1458,
1435,
262,
225,
365,
18,
768,
4755,
1803,
18,
542,
2888,
2323,
2503,
12,
585,
4755,
1528,
262,
225,
19709,
26487,
7,
468,
15328,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
34,
3678,
1387,
1757,
70,
4695,
89,
34,
565,
261,
12418,
397,
531,
13,
1757,
70,
4695,
84,
4438,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
768,
3190,
2412,
4438,
2848,
34,
1548,
315,
17778,
279,
394,
585,
1199,
64,
6823,
84,
2984,
225,
2238,
13320,
1830,
1733,
18,
1886,
1733,
7675,
542,
21816,
1458,
12,
315,
768,
3190,
3113,
365,
18,
768,
3678,
1803,
18,
3950,
694,
7675,
14861,
1458,
1435,
262,
225,
365,
18,
768,
3678,
1803,
18,
542,
2888,
2
] |
PAIR_RE = re.compile( '([\w\.]+)\s+' '((?:\d+)' '|(?:".*?")' '|(?:\(.*?\))' '|(?:{\d+?})' ')\s*') DATA_RE = re.compile( '((?:".*?")' '|(?:\(.*?\))' '|(?:\S+)' ')\s*')
|
QUOTED_STRING = '(?:".*?")' PAREN_LIST = '(?:\(.*?\))' PAIR_RE = re.compile(( '([\w\.]+)\s+' + '((?:\d+)' + '|(?:{\d+?})' + '|' + QUOTED_STRING + '|' + PAREN_LIST + ')\s*')) DATA_RE = re.compile(( '(' + QUOTED_STRING + '|' + PAREN_LIST + '|(?:\S+)' + ')\s*'))
|
def do_default(self, arg): return arg
|
85410ed715e4d58f7449b28c7d003bfab4608e73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9352/85410ed715e4d58f7449b28c7d003bfab4608e73/imapclient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1886,
12,
2890,
16,
1501,
4672,
327,
1501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1886,
12,
2890,
16,
1501,
4672,
327,
1501,
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
] |
raise 'ValueError', 'No such content type: %s' % contentType
|
raise 'ValueError', 'No such content type: %s' % type_name
|
def constructContent( self, type_name, container, id, RESPONSE=None, *args, **kw ): """ Build an instance of the appropriate content class in 'container', using 'id'. """ info = self.getTypeInfo( type_name ) if info is None: raise 'ValueError', 'No such content type: %s' % contentType immediate_url = apply(info.constructInstance, (container, id) + args, kw)
|
bec39af56ba7ae9676edf20bd9787a0fdc238350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/bec39af56ba7ae9676edf20bd9787a0fdc238350/TypesTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4872,
1350,
12,
365,
16,
618,
67,
529,
16,
1478,
16,
612,
16,
20645,
33,
7036,
16,
380,
1968,
16,
2826,
9987,
262,
30,
3536,
3998,
392,
791,
434,
326,
5505,
913,
667,
316,
296,
3782,
2187,
1450,
296,
350,
10332,
3536,
1123,
273,
365,
18,
588,
17305,
12,
618,
67,
529,
262,
309,
1123,
353,
599,
30,
1002,
296,
23610,
2187,
296,
2279,
4123,
913,
618,
30,
738,
87,
11,
738,
618,
67,
529,
225,
14483,
67,
718,
273,
2230,
12,
1376,
18,
10062,
1442,
16,
261,
3782,
16,
612,
13,
397,
833,
16,
5323,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4872,
1350,
12,
365,
16,
618,
67,
529,
16,
1478,
16,
612,
16,
20645,
33,
7036,
16,
380,
1968,
16,
2826,
9987,
262,
30,
3536,
3998,
392,
791,
434,
326,
5505,
913,
667,
316,
296,
3782,
2187,
1450,
296,
350,
10332,
3536,
1123,
273,
365,
18,
588,
17305,
12,
618,
67,
529,
262,
309,
1123,
353,
599,
30,
1002,
296,
23610,
2187,
296,
2279,
4123,
913,
618,
30,
738,
87,
11,
738,
618,
67,
529,
225,
14483,
67,
718,
273,
2230,
12,
1376,
18,
10062,
1442,
16,
261,
3782,
16,
612,
13,
397,
833,
16,
5323,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cty.c_double, [cty.POINTER(FL_OBJECT)],
|
cty.c_double, [cty.POINTER(FL_OBJECT)],
|
def fl_set_timer(ob, total): """ fl_set_timer(ob, total) """ _fl_set_timer(ob, total)
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
12542,
12,
947,
16,
2078,
4672,
3536,
1183,
67,
542,
67,
12542,
12,
947,
16,
2078,
13,
3536,
225,
389,
2242,
67,
542,
67,
12542,
12,
947,
16,
2078,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1183,
67,
542,
67,
12542,
12,
947,
16,
2078,
4672,
3536,
1183,
67,
542,
67,
12542,
12,
947,
16,
2078,
13,
3536,
225,
389,
2242,
67,
542,
67,
12542,
12,
947,
16,
2078,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this = apply(_quickfix.new_AffectedSecondaryOrderID, args)
|
this = _quickfix.new_AffectedSecondaryOrderID(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_AffectedSecondaryOrderID, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
23775,
14893,
2448,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
23775,
14893,
2448,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
environment["INPUTTURLS"]+="turl[%d]='%s';" % (j,turl.strip())
|
environment["INPUTTURLS"]+="turl[%d]='%s';" % (infilenr,turl.strip())
|
def prepare(self,app,appconfig,appmasterconfig,jobmasterconfig): """Prepare the job"""
|
88dc9e38da17ce82091ed0543bc649796d6491b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/88dc9e38da17ce82091ed0543bc649796d6491b4/AthenaMCLCGRTHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
2910,
16,
2910,
1425,
16,
2910,
7525,
1425,
16,
4688,
7525,
1425,
4672,
3536,
7543,
326,
1719,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
2910,
16,
2910,
1425,
16,
2910,
7525,
1425,
16,
4688,
7525,
1425,
4672,
3536,
7543,
326,
1719,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.check_sizeof(class_newstyle, h +\ p + 2*l + 15*p + l + 4*p + l + 9*p + l + 11*p +\ self.align(4) +\ 16*p + self.align(i) + 20*p +\ 10*p + 3*p + 2*p + 2*p);
|
self.check_sizeof(class_newstyle, h + p + 2*l + 15*p + l + 4*p + l + 9*p + l + 11*p + self.align(4) + 16*p + self.align(i) + 17*p + 3*p + 10*p + 2*p + 2*p)
|
def method(): pass
|
01b07cdb611f98aad3bc02d04d292197f5d0cf5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/01b07cdb611f98aad3bc02d04d292197f5d0cf5b/test_sys.py
|
[
1,
8585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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
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,
-100,
-100,
-100,
-100
] |
(s,b,p,q,f,o) = urlparse.urlparse(configfile) if s in ('http', 'ftp','file'): configfh = urllib.urlopen(configfile) try: self.cfg.readfp(configfh) except ConfigParser.MissingSectionHeaderError, e: print _('Error accessing URL: %s') % configfile sys.exit(1) else: if os.access(configfile, os.R_OK): self.cfg.read(configfile) else: print _('Error accessing File: %s') % configfile sys.exit(1)
|
configh = confpp(configfile) try: self.cfg.readfp(configh) except ConfigParser.MissingSectionHeaderError, e: print _('Error accessing config file: %s') % configfile sys.exit(1)
|
def __init__(self, configfile = '/etc/yum.conf'): self.cfg = ConfigParser.ConfigParser() (s,b,p,q,f,o) = urlparse.urlparse(configfile) if s in ('http', 'ftp','file'): configfh = urllib.urlopen(configfile) try: self.cfg.readfp(configfh) except ConfigParser.MissingSectionHeaderError, e: print _('Error accessing URL: %s') % configfile sys.exit(1) else: if os.access(configfile, os.R_OK): self.cfg.read(configfile) else: print _('Error accessing File: %s') % configfile sys.exit(1) self.servers = [] self.servername = {} self.serverurl = {} self.serverpkgdir = {} self.serverhdrdir = {} self.servercache = {} self.servergpgcheck={} self.serverexclude={} self.failoverclass = {} self.excludes=[] #defaults self.cachedir = '/var/cache/yum' self.debuglevel = 2 self.logfile = '/var/log/yum.log' self.pkgpolicy = 'newest' self.assumeyes = 0 self.errorlevel = 2 self.cache = 0 self.uid = 0 self.yumversion = 'unversioned' self.commands = None self.exactarch = 0 self.overwrite_groups = 0 self.groups_enabled = 0 self.diskspacecheck = 1 self.tolerant = 0 self.yumvar = self._getEnvVar() self.distroverpkg = 'redhat-release' self.yumvar['basearch'] = archwork.getArch() self.yumvar['arch'] = os.uname()[4] self.bandwidth = None self.throttle = None self.retries = 6 self.progress_obj = progress_meter.text_progress_meter(fo=sys.stdout) self.installroot = '/' self.installonlypkgs = ['kernel', 'kernel-bigmem', 'kernel-enterprise', 'kernel-smp', 'kernel-debug', 'kernel-unsupported'] self.kernelpkgnames = ['kernel','kernel-smp','kernel-enterprise', 'kernel-bigmem','kernel-BOOT'] if self._getoption('main','cachedir') != None: self.cachedir = self._getoption('main','cachedir') if self._getoption('main','debuglevel') != None: self.debuglevel = self._getoption('main','debuglevel') if self._getoption('main','logfile') != None: self.logfile = self._getoption('main','logfile') if self._getoption('main','pkgpolicy') != None: self.pkgpolicy = self._getoption('main','pkgpolicy') if self._getoption('main','assumeyes') != None: self.assumeyes = self.cfg.getboolean('main', 'assumeyes') if self._getoption('main','errorlevel') != None: self.errorlevel = self._getoption('main', 'errorlevel') if self._getoption('main','exactarch') != None: self.exactarch = self.cfg.getboolean('main', 'exactarch') if self._getoption('main','overwrite_groups') != None: self.overwrite_groups = self.cfg.getboolean('main', 'overwrite_groups') if self._getoption('main','diskspacecheck') != None: self.diskspacecheck = self.cfg.getboolean('main', 'diskspacecheck') if self._getoption('main','tolerant') != None: self.tolerant = self.cfg.getboolean('main', 'tolerant') if self._getoption('main', 'distroverpkg') != None: self.distroverpkg = self._getoption('main','distroverpkg') if self._getoption('main', 'bandwidth') != None: self.bandwidth = self._getoption('main','bandwidth') if self._getoption('main', 'throttle') != None: self.throttle = self._getoption('main','throttle') if self._getoption('main', 'retries') != None: self.retries = self.cfg.getint('main','retries') if self._getoption('main', 'installroot') != None: self.installroot = self._getoption('main','installroot')
|
25932bd410cf58f0ad65896b7b56dfaa6842cd69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/25932bd410cf58f0ad65896b7b56dfaa6842cd69/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
768,
273,
1173,
14175,
19,
93,
379,
18,
3923,
11,
4672,
365,
18,
7066,
273,
25076,
18,
809,
2678,
1435,
642,
76,
273,
2195,
11858,
12,
1425,
768,
13,
775,
30,
365,
18,
7066,
18,
896,
7944,
12,
1425,
76,
13,
1335,
25076,
18,
4841,
5285,
1864,
668,
16,
425,
30,
1172,
389,
2668,
668,
19531,
642,
585,
30,
738,
87,
6134,
738,
642,
768,
2589,
18,
8593,
12,
21,
13,
225,
365,
18,
14247,
273,
5378,
365,
18,
3567,
529,
273,
2618,
365,
18,
3567,
718,
273,
2618,
365,
18,
3567,
10657,
1214,
273,
2618,
365,
18,
3567,
16587,
1214,
273,
2618,
365,
18,
3567,
2493,
273,
2618,
365,
18,
3567,
6403,
75,
1893,
12938,
365,
18,
3567,
10157,
12938,
365,
18,
6870,
1643,
1106,
273,
2618,
365,
18,
338,
8993,
33,
8526,
225,
468,
7606,
365,
18,
7097,
481,
273,
1173,
1401,
19,
2493,
19,
93,
379,
11,
365,
18,
4148,
2815,
273,
576,
365,
18,
28806,
273,
1173,
1401,
19,
1330,
19,
93,
379,
18,
1330,
11,
365,
18,
10657,
5086,
273,
296,
2704,
395,
11,
365,
18,
428,
379,
402,
281,
273,
374,
365,
18,
1636,
2815,
273,
576,
365,
18,
2493,
273,
374,
365,
18,
1911,
273,
374,
365,
18,
93,
379,
1589,
273,
296,
318,
21415,
11,
365,
18,
7847,
273,
599,
365,
18,
17165,
991,
273,
374,
365,
18,
19274,
67,
4650,
273,
374,
365,
18,
4650,
67,
5745,
273,
374,
365,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
768,
273,
1173,
14175,
19,
93,
379,
18,
3923,
11,
4672,
365,
18,
7066,
273,
25076,
18,
809,
2678,
1435,
642,
76,
273,
2195,
11858,
12,
1425,
768,
13,
775,
30,
365,
18,
7066,
18,
896,
7944,
12,
1425,
76,
13,
1335,
25076,
18,
4841,
5285,
1864,
668,
16,
425,
30,
1172,
389,
2668,
668,
19531,
642,
585,
30,
738,
87,
6134,
738,
642,
768,
2589,
18,
8593,
12,
21,
13,
225,
365,
18,
14247,
273,
5378,
365,
18,
3567,
529,
273,
2618,
365,
18,
3567,
718,
273,
2618,
365,
18,
3567,
10657,
1214,
273,
2618,
365,
18,
3567,
16587,
1214,
273,
2618,
365,
18,
3567,
2493,
273,
2618,
365,
18,
2
] |
return 0
|
return False
|
def response( char, args, target ): if not char.socket.hastag( 'peacemaking_instrument' ): return 0 # you can only target chars if not target.char: return 1 instrument = wolfpack.finditem( char.socket.gettag( 'peacemaking_instrument' ) ) if not instrument: return 0 if skills.skilltable[ PEACEMAKING ][ skills.UNHIDE ] and char.hidden: char.removefromview() char.hidden = False char.update() char.socket.deltag( 'peacemaking_instrument' ) char.socket.settag( 'skill_delay', int( wolfpack.time.currenttime() + PEACE_DELAY ) ) # if target him/her self : standard (regional) mode # anyone including npcs can re-target and start fight peace_range = skills.musicianship.bard_range( char ) if char == target.char: result = char.checkskill( MUSICIANSHIP, 0, 1000 ) musicianship.play_instrument( char, instrument, result ) # fail to play well if not result: char.socket.clilocmessage( 500612, "", 0x3b2, 3 ) return 1 result = char.checkskill( PEACEMAKING, 0, 1000 ) # fail on peacemaking if not result: char.socket.clilocmessage( 500613, "", 0x3b2, 3 ) return 1 char.socket.clilocmessage( 500615, "", 0x3b2, 3 ) creatures = wolfpack.chars( char.pos.x, char.pos.y, char.pos.map, peace_range ) for creature in creatures: if char.canreach( creature, peace_range ): # stop combat # player chars if creature.socket: creature.socket.clilocmessage( 500616, "", 0x3b2, 3 ) # target on an npc - effect will go some duration else: if char.canreach( target.char, peace_range ): char.socket.clilocmessage( 500618, "", 0x3b2, 3 ) return 1 if not target.char.npc: return 1 # bard difficulty - later, we should get these from the xml defs. loskill = 0 hiskill = 1000 result = char.checkskill( MUSICIANSHIP, loskill, hiskill ) musicianship.play_instrument( char, instrument, result ) if not result: char.socket.clilocmessage( 500612, "", 0x3b2, 3 ) return 1 result = char.checkskill( PEACEMAKING, loskill, hiskill ) if not result: char.socket.clilocmessage( 500613, "", 0x3b2, 3 ) return 1 # FIXME : duration ( 5 sec ~ 65 sec ) duration = 5000 + char.skill[ PEACEMAKING ] * 60 # stop combat # if npc, do not start combat for the duration while not attacked creature.settag( 'peacemaking', 1 ) creature.addtimer( duration, release, [] ) return 1
|
ad2fb5c1af41304c615892963957d7cff3e3439e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ad2fb5c1af41304c615892963957d7cff3e3439e/peacemaking.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
18,
7814,
18,
76,
689,
346,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
30,
327,
1083,
468,
1846,
848,
1338,
1018,
5230,
309,
486,
1018,
18,
3001,
30,
327,
404,
10353,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1149,
18,
7814,
18,
588,
2692,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
262,
309,
486,
10353,
30,
327,
1083,
225,
309,
15667,
87,
18,
7771,
737,
2121,
63,
16628,
6312,
5535,
47,
1360,
308,
63,
15667,
87,
18,
2124,
44,
10385,
308,
471,
1149,
18,
6345,
30,
1149,
18,
4479,
2080,
1945,
1435,
1149,
18,
6345,
273,
1083,
1149,
18,
2725,
1435,
225,
1149,
18,
7814,
18,
3771,
2692,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
1149,
18,
7814,
18,
542,
2692,
12,
296,
7771,
737,
67,
10790,
2187,
509,
12,
341,
355,
74,
2920,
18,
957,
18,
2972,
957,
1435,
397,
16628,
6312,
67,
26101,
262,
262,
225,
468,
309,
1018,
366,
381,
19,
1614,
365,
294,
4529,
261,
6858,
287,
13,
1965,
468,
1281,
476,
6508,
1130,
2143,
848,
283,
17,
3299,
471,
787,
284,
750,
2804,
623,
67,
3676,
273,
15667,
87,
18,
81,
407,
14463,
634,
5310,
18,
70,
1060,
67,
3676,
12,
1149,
262,
309,
1149,
422,
1018,
18,
3001,
30,
563,
273,
1149,
18,
1893,
7771,
737,
12,
490,
57,
2320,
7266,
1258,
20101,
16,
374,
16,
4336,
262,
312,
407,
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,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
18,
7814,
18,
76,
689,
346,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
30,
327,
1083,
468,
1846,
848,
1338,
1018,
5230,
309,
486,
1018,
18,
3001,
30,
327,
404,
10353,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1149,
18,
7814,
18,
588,
2692,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
262,
309,
486,
10353,
30,
327,
1083,
225,
309,
15667,
87,
18,
7771,
737,
2121,
63,
16628,
6312,
5535,
47,
1360,
308,
63,
15667,
87,
18,
2124,
44,
10385,
308,
471,
1149,
18,
6345,
30,
1149,
18,
4479,
2080,
1945,
1435,
1149,
18,
6345,
273,
1083,
1149,
18,
2725,
2
] |
":PlugIns:wastemodule.CFM68K.", ":PlugIns:_tkintermodule.CFM68K.",
|
":PlugIns:qtmodules.CFM68K.", ":PlugIns:waste.CFM68K.", ":PlugIns:_tkinter.CFM68K.",
|
def buildapplet(top, dummy, list): """Create a PPC python applet""" template = mkapplet.findtemplate() for src in list: if src[-3:] != '.py': raise 'Should end in .py', src base = os.path.basename(src) dst = os.path.join(top, base)[:-3] src = os.path.join(top, src) try: os.unlink(dst) except os.error: pass print 'Building applet', dst mkapplet.process(template, src, dst)
|
0d609ba19b62e0c1495cd52a7e0a2cfd07519004 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0d609ba19b62e0c1495cd52a7e0a2cfd07519004/fullbuild.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
438,
1469,
12,
3669,
16,
9609,
16,
666,
4672,
3536,
1684,
279,
453,
3513,
5790,
21853,
8395,
1542,
273,
5028,
438,
1469,
18,
4720,
3202,
1435,
364,
1705,
316,
666,
30,
309,
1705,
18919,
23,
26894,
480,
2418,
2074,
4278,
1002,
296,
14309,
679,
316,
263,
2074,
2187,
1705,
1026,
273,
1140,
18,
803,
18,
13909,
12,
4816,
13,
3046,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
1026,
13,
10531,
17,
23,
65,
1705,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
1705,
13,
775,
30,
1140,
18,
318,
1232,
12,
11057,
13,
1335,
1140,
18,
1636,
30,
1342,
1172,
296,
16713,
21853,
2187,
3046,
5028,
438,
1469,
18,
2567,
12,
3202,
16,
1705,
16,
3046,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
438,
1469,
12,
3669,
16,
9609,
16,
666,
4672,
3536,
1684,
279,
453,
3513,
5790,
21853,
8395,
1542,
273,
5028,
438,
1469,
18,
4720,
3202,
1435,
364,
1705,
316,
666,
30,
309,
1705,
18919,
23,
26894,
480,
2418,
2074,
4278,
1002,
296,
14309,
679,
316,
263,
2074,
2187,
1705,
1026,
273,
1140,
18,
803,
18,
13909,
12,
4816,
13,
3046,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
1026,
13,
10531,
17,
23,
65,
1705,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
1705,
13,
775,
30,
1140,
18,
318,
1232,
12,
11057,
13,
1335,
1140,
18,
1636,
30,
1342,
1172,
296,
16713,
21853,
2187,
3046,
5028,
438,
1469,
18,
2567,
12,
3202,
16,
1705,
2
] |
setup_udev_rules()
|
global use_destdir use_destdir = opts.destdir setup_udev_rules(opts.group_file, not opts.dont_reload)
|
def post_install(): if os.geteuid() != 0: print >> sys.stderr, 'You must be root to run this command.' sys.exit(1) setup_udev_rules() setup_completion() setup_desktop_integration() try: from PyQt4 import Qt if Qt.PYQT_VERSION < int('0x40301', 16): print 'WARNING: You need PyQt >= 4.3.1 for the GUI. You have', Qt.PYQT_VERSION_STR, '\nYou may experience crashes or other strange behavior.' except ImportError: print 'WARNING: You do not have PyQt4 installed. The GUI will not work.'
|
45abfd50d363c2402f8a1c54ab39710c64d8866e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/45abfd50d363c2402f8a1c54ab39710c64d8866e/linux.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5425,
13332,
309,
1140,
18,
588,
73,
1911,
1435,
480,
374,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
6225,
1297,
506,
1365,
358,
1086,
333,
1296,
1093,
2589,
18,
8593,
12,
21,
13,
225,
2552,
999,
67,
10488,
1214,
999,
67,
10488,
1214,
273,
1500,
18,
10488,
1214,
225,
3875,
67,
1317,
90,
67,
7482,
12,
4952,
18,
1655,
67,
768,
16,
486,
1500,
18,
72,
1580,
67,
17517,
13,
3875,
67,
11469,
1435,
3875,
67,
31949,
67,
27667,
1435,
225,
775,
30,
628,
4707,
23310,
24,
1930,
7354,
309,
7354,
18,
16235,
53,
56,
67,
5757,
411,
509,
2668,
20,
92,
24,
4630,
1611,
2187,
2872,
4672,
1172,
296,
9511,
30,
4554,
1608,
4707,
23310,
1545,
1059,
18,
23,
18,
21,
364,
326,
10978,
18,
4554,
1240,
2187,
7354,
18,
16235,
53,
56,
67,
5757,
67,
3902,
16,
2337,
82,
6225,
2026,
31207,
4422,
7690,
578,
1308,
609,
726,
6885,
1093,
1335,
11308,
30,
1172,
296,
9511,
30,
4554,
741,
486,
1240,
4707,
23310,
24,
5876,
18,
1021,
10978,
903,
486,
1440,
1093,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5425,
13332,
309,
1140,
18,
588,
73,
1911,
1435,
480,
374,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
6225,
1297,
506,
1365,
358,
1086,
333,
1296,
1093,
2589,
18,
8593,
12,
21,
13,
225,
2552,
999,
67,
10488,
1214,
999,
67,
10488,
1214,
273,
1500,
18,
10488,
1214,
225,
3875,
67,
1317,
90,
67,
7482,
12,
4952,
18,
1655,
67,
768,
16,
486,
1500,
18,
72,
1580,
67,
17517,
13,
3875,
67,
11469,
1435,
3875,
67,
31949,
67,
27667,
1435,
225,
775,
30,
628,
4707,
23310,
24,
1930,
7354,
309,
7354,
18,
16235,
53,
56,
67,
5757,
411,
509,
2668,
20,
92,
24,
4630,
1611,
2187,
2872,
4672,
1172,
296,
9511,
30,
4554,
1608,
4707,
2
] |
if self.parent is None: gtk.main_quit()
|
gtk.main_quit()
|
def destroy(self, widget, data=None): self.configuration_window.hide() if self.parent is None: gtk.main_quit()
|
1de0740b9143908c992922a8e39a2259609b01c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/1de0740b9143908c992922a8e39a2259609b01c8/cozy_setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
365,
18,
7025,
67,
5668,
18,
11248,
1435,
309,
365,
18,
2938,
353,
599,
30,
22718,
18,
5254,
67,
27176,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
365,
18,
7025,
67,
5668,
18,
11248,
1435,
309,
365,
18,
2938,
353,
599,
30,
22718,
18,
5254,
67,
27176,
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
] |
fileclassDirCheck = "rfstat %s 2> /dev/null | grep Protection" % fileclassDir print "Check dir existence : %s" % fileclassDirCheck try: fileclassDirCheckExitCode, fileclassDirCheckOutput = runCommandWithOutput(fileclassDirCheck) except Exception, ex: msg = "Error: Exception while invoking command:\n" msg += "%s\n" % rfstatCmd msg += "Exception: %s\n" % str(ex) msg += "Fatal error, abort stageout..." raise StageOutError(msg) if fileclassDirCheckExitCode:
|
if not self.checkDirExists(fileclassDir):
|
def createOutputDirectory(self, targetPFN): """ _createOutputDirectory_
|
8674b360d5d69889b93b75de76ac61bc98ade9a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/8674b360d5d69889b93b75de76ac61bc98ade9a5/RFCPCERNImpl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1447,
2853,
12,
2890,
16,
1018,
52,
19793,
4672,
3536,
389,
2640,
1447,
2853,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
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,
752,
1447,
2853,
12,
2890,
16,
1018,
52,
19793,
4672,
3536,
389,
2640,
1447,
2853,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_looping=1
|
_looping = map
|
def _start_loop(map): _loop_lock.acquire() try: global _looping _looping=1 while _loop_callbacks: cb, args, kw = _loop_callbacks.pop() apply(cb, (map,)+args, kw or {}) finally: _loop_lock.release()
|
5415dbe3669c0431316ed3f82bda29b29aa844b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/5415dbe3669c0431316ed3f82bda29b29aa844b9/ThreadedAsync.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
6498,
12,
1458,
4672,
389,
6498,
67,
739,
18,
1077,
1039,
1435,
775,
30,
2552,
389,
6498,
310,
389,
6498,
310,
273,
852,
1323,
389,
6498,
67,
13316,
30,
2875,
16,
833,
16,
5323,
273,
389,
6498,
67,
13316,
18,
5120,
1435,
2230,
12,
7358,
16,
261,
1458,
16,
27921,
1968,
16,
5323,
578,
2618,
13,
225,
3095,
30,
389,
6498,
67,
739,
18,
9340,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2552,
389,
6498,
310,
389,
6498,
310,
273,
852,
1323,
389,
6498,
67,
13316,
30,
2875,
16,
833,
16,
5323,
273,
389,
6498,
67,
13316,
18,
5120,
1435,
2230,
12,
7358,
16,
261,
1458,
16,
27921,
1968,
16,
5323,
578,
2618,
13,
225,
3095,
30,
389,
6498,
67,
739,
18,
9340,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
g = globals()
|
def get_config_h_filename(): return os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3], "config", "config.h")
|
def _init_posix(): import os import re import string import sys g = globals() version = sys.version[:3] config_dir = os.path.join( sys.exec_prefix, "lib", "python" + version, "config") # load the installed config.h: define_rx = re.compile("#define ([A-Z][A-Z0-9_]+) (.*)\n") undef_rx = re.compile("/[*] #undef ([A-Z][A-Z0-9_]+) [*]/\n") fp = open(os.path.join(config_dir, "config.h")) while 1: line = fp.readline() if not line: break m = define_rx.match(line) if m: n, v = m.group(1, 2) try: v = string.atoi(v) except ValueError: pass g[n] = v else: m = undef_rx.match(line) if m: g[m.group(1)] = 0 # load the installed Makefile.pre.in: variable_rx = re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)\n") done = {} notdone = {} fp = open(os.path.join(config_dir, "Makefile")) while 1: line = fp.readline() if not line: break m = variable_rx.match(line) if m: n, v = m.group(1, 2) v = string.strip(v) if "$" in v: notdone[n] = v else: try: v = string.atoi(v) except ValueError: pass done[n] = v # do variable interpolation here findvar1_rx = re.compile(r"\$\(([A-Za-z][A-Za-z0-9_]*)\)") findvar2_rx = re.compile(r"\${([A-Za-z][A-Za-z0-9_]*)}") while notdone: for name in notdone.keys(): value = notdone[name] m = findvar1_rx.search(value) if not m: m = findvar2_rx.search(value) if m: n = m.group(1) if done.has_key(n): after = value[m.end():] value = value[:m.start()] + done[n] + after if "$" in after: notdone[name] = value else: try: value = string.atoi(value) except ValueError: pass done[name] = string.strip(value) del notdone[name] elif notdone.has_key(n): # get it on a subsequent round pass else: done[n] = "" after = value[m.end():] value = value[:m.start()] + after if "$" in after: notdone[name] = value else: try: value = string.atoi(value) except ValueError: pass done[name] = string.strip(value) del notdone[name] else: # bogus variable reference; just drop it since we can't deal del notdone[name] # save the results in the global dictionary g.update(done)
|
9ddaaa1a30a8a0681b60922e877f3b7d23e6bdf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9ddaaa1a30a8a0681b60922e877f3b7d23e6bdf6/sysconfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
24463,
13332,
1930,
1140,
1930,
283,
1930,
533,
1930,
2589,
225,
1652,
336,
67,
1425,
67,
76,
67,
3459,
13332,
327,
1140,
18,
803,
18,
5701,
12,
9499,
18,
4177,
67,
3239,
16,
315,
2941,
3113,
315,
8103,
6,
397,
2589,
18,
1589,
10531,
23,
6487,
315,
1425,
3113,
315,
1425,
18,
76,
7923,
225,
1177,
273,
2589,
18,
1589,
10531,
23,
65,
642,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2589,
18,
4177,
67,
3239,
16,
315,
2941,
3113,
315,
8103,
6,
397,
1177,
16,
315,
1425,
7923,
225,
468,
1262,
326,
5876,
642,
18,
76,
30,
4426,
67,
20122,
273,
283,
18,
11100,
2932,
7,
11255,
23265,
37,
17,
62,
6362,
37,
17,
62,
20,
17,
29,
67,
7941,
29049,
5153,
82,
7923,
640,
536,
67,
20122,
273,
283,
18,
11100,
2932,
19,
63,
14,
65,
468,
318,
536,
23265,
37,
17,
62,
6362,
37,
17,
62,
20,
17,
29,
67,
7941,
306,
14,
18537,
64,
82,
7923,
4253,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
1425,
67,
1214,
16,
315,
1425,
18,
76,
6,
3719,
225,
1323,
404,
30,
980,
273,
4253,
18,
896,
1369,
1435,
309,
486,
980,
30,
898,
312,
273,
4426,
67,
20122,
18,
1916,
12,
1369,
13,
309,
312,
30,
290,
16,
331,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
775,
30,
331,
273,
533,
18,
270,
11359,
12,
90,
13,
1335,
2068,
30,
1342,
314,
63,
82,
65,
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,
389,
2738,
67,
24463,
13332,
1930,
1140,
1930,
283,
1930,
533,
1930,
2589,
225,
1652,
336,
67,
1425,
67,
76,
67,
3459,
13332,
327,
1140,
18,
803,
18,
5701,
12,
9499,
18,
4177,
67,
3239,
16,
315,
2941,
3113,
315,
8103,
6,
397,
2589,
18,
1589,
10531,
23,
6487,
315,
1425,
3113,
315,
1425,
18,
76,
7923,
225,
1177,
273,
2589,
18,
1589,
10531,
23,
65,
642,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2589,
18,
4177,
67,
3239,
16,
315,
2941,
3113,
315,
8103,
6,
397,
1177,
16,
315,
1425,
7923,
225,
468,
1262,
326,
5876,
642,
18,
76,
30,
4426,
67,
20122,
273,
283,
18,
11100,
2932,
7,
11255,
23265,
37,
17,
62,
6362,
2
] |
self.window.show( \
|
self.window.show(
|
def showanchor(self, id): for i in range(len(self.paralist)): p = self.paralist[i] if p.hasanchor(id): long1 = i, 0 long2 = i, len(p.extract()) hit = long1, long2 self.setselection(hit) self.window.show( \ (p.left, p.top), (p.right, p.bottom)) break
|
9f922de635ac8a34fcde0215dcd842d143171264 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9f922de635ac8a34fcde0215dcd842d143171264/fmt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
16215,
12,
2890,
16,
612,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
1065,
287,
376,
3719,
30,
293,
273,
365,
18,
1065,
287,
376,
63,
77,
65,
309,
293,
18,
5332,
16215,
12,
350,
4672,
1525,
21,
273,
277,
16,
374,
1525,
22,
273,
277,
16,
562,
12,
84,
18,
8004,
10756,
6800,
273,
1525,
21,
16,
1525,
22,
365,
18,
542,
10705,
12,
15989,
13,
365,
18,
5668,
18,
4500,
12,
261,
84,
18,
4482,
16,
293,
18,
3669,
3631,
261,
84,
18,
4083,
16,
293,
18,
9176,
3719,
898,
2,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
16215,
12,
2890,
16,
612,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
1065,
287,
376,
3719,
30,
293,
273,
365,
18,
1065,
287,
376,
63,
77,
65,
309,
293,
18,
5332,
16215,
12,
350,
4672,
1525,
21,
273,
277,
16,
374,
1525,
22,
273,
277,
16,
562,
12,
84,
18,
8004,
10756,
6800,
273,
1525,
21,
16,
1525,
22,
365,
18,
542,
10705,
12,
15989,
13,
365,
18,
5668,
18,
4500,
12,
261,
84,
18,
4482,
16,
293,
18,
3669,
3631,
261,
84,
18,
4083,
16,
293,
18,
9176,
3719,
898,
2,
-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.encrypt_passwords and not self._isPasswordEncrypted(pw):
|
if self.encrypt_passwords and not self._isPasswordEncrypted(password):
|
def _doChangeUser(self, name, password, roles, domains, **kw): user=self.data[name] if password is not None: if self.encrypt_passwords and not self._isPasswordEncrypted(pw): password = self._encryptPassword(password) user.__=password user.roles=roles user.domains=domains
|
980db13e6576efe6d5b94cf88c51cd4915965db0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/980db13e6576efe6d5b94cf88c51cd4915965db0/User.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
3043,
1299,
12,
2890,
16,
508,
16,
2201,
16,
4900,
16,
10128,
16,
2826,
9987,
4672,
729,
33,
2890,
18,
892,
63,
529,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
3043,
1299,
12,
2890,
16,
508,
16,
2201,
16,
4900,
16,
10128,
16,
2826,
9987,
4672,
729,
33,
2890,
18,
892,
63,
529,
65,
309,
2201,
353,
486,
599,
30,
309,
365,
18,
15890,
67,
3664,
87,
471,
486,
365,
6315,
291,
3913,
14678,
12,
3664,
4672,
2201,
273,
365,
6315,
15890,
3913,
12,
3664,
13,
729,
16186,
33,
3664,
729,
18,
7774,
33,
7774,
729,
18,
14180,
33,
14180,
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
] |
except PathBoundsError: return self.canned_handlers(environ, start_response, '501')
|
except: return self.canned_handlers(environ, start_response, '404')
|
def __call__(self, environ, start_response): selector_matches = (environ.get('wsgiorg.routing_args') or ([],{}))[1] if 'working_path' in selector_matches: # working_path is a custom key that I just happened to decide to use # for marking the portion of the URI that is palatable for static serving. # 'working_path' is the name of a regex group fed to WSGIHandlerSelector path_info = selector_matches['working_path'].decode('utf8') else: path_info = environ.get('PATH_INFO', '').decode('utf8')
|
db3bc11da4b41f34e0884ca184b09be46197429d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14630/db3bc11da4b41f34e0884ca184b09be46197429d/fuzzy_path_handler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
3451,
67,
8436,
273,
261,
28684,
18,
588,
2668,
28539,
3341,
18,
16529,
67,
1968,
6134,
578,
23265,
6487,
2916,
3719,
63,
21,
65,
309,
296,
20478,
67,
803,
11,
316,
3451,
67,
8436,
30,
468,
5960,
67,
803,
353,
279,
1679,
498,
716,
467,
2537,
17497,
358,
16288,
358,
999,
468,
364,
24073,
326,
14769,
434,
326,
3699,
716,
353,
25995,
8163,
364,
760,
20505,
18,
468,
296,
20478,
67,
803,
11,
353,
326,
508,
434,
279,
3936,
1041,
22572,
358,
7649,
13797,
1503,
4320,
589,
67,
1376,
273,
3451,
67,
8436,
3292,
20478,
67,
803,
29489,
3922,
2668,
3158,
28,
6134,
469,
30,
589,
67,
1376,
273,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
875,
2934,
3922,
2668,
3158,
28,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
3451,
67,
8436,
273,
261,
28684,
18,
588,
2668,
28539,
3341,
18,
16529,
67,
1968,
6134,
578,
23265,
6487,
2916,
3719,
63,
21,
65,
309,
296,
20478,
67,
803,
11,
316,
3451,
67,
8436,
30,
468,
5960,
67,
803,
353,
279,
1679,
498,
716,
467,
2537,
17497,
358,
16288,
358,
999,
468,
364,
24073,
326,
14769,
434,
326,
3699,
716,
353,
25995,
8163,
364,
760,
20505,
18,
468,
296,
20478,
67,
803,
11,
353,
326,
508,
434,
279,
3936,
1041,
22572,
358,
7649,
13797,
1503,
4320,
589,
67,
1376,
273,
3451,
67,
8436,
3292,
20478,
67,
803,
29489,
3922,
2668,
3158,
28,
6134,
469,
30,
589,
2
] |
delete(path)
|
delete(filename)
|
def delete_if_exists(self, pattern, message=None): """ Print a message and delete files and folders matching pattern, e.g. /home/shotfactory1/.mozilla/firefox/*/sessionstore.js to delete Firefox sessions for all profiles. """ for filename in glob(pattern): if self.verbose and message: print message, path if os.path.isdir(path): delete = shutil.rmtree else: delete = os.unlink try: delete(path) except (OSError, WindowsError), error: print error
|
8476fa487adbb7f3e358af50c8d5edfaaad170cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/8476fa487adbb7f3e358af50c8d5edfaaad170cf/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
430,
67,
1808,
12,
2890,
16,
1936,
16,
883,
33,
7036,
4672,
3536,
3038,
279,
883,
471,
1430,
1390,
471,
9907,
3607,
1936,
16,
425,
18,
75,
18,
342,
8712,
19,
2415,
6848,
21,
15865,
8683,
15990,
19,
12179,
13873,
19,
5549,
3184,
2233,
18,
2924,
358,
1430,
22950,
8856,
364,
777,
11788,
18,
3536,
364,
1544,
316,
4715,
12,
4951,
4672,
309,
365,
18,
11369,
471,
883,
30,
1172,
883,
16,
589,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1430,
273,
11060,
18,
86,
17371,
469,
30,
1430,
273,
1140,
18,
318,
1232,
775,
30,
1430,
12,
3459,
13,
1335,
261,
4618,
668,
16,
8202,
668,
3631,
555,
30,
1172,
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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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,
1430,
67,
430,
67,
1808,
12,
2890,
16,
1936,
16,
883,
33,
7036,
4672,
3536,
3038,
279,
883,
471,
1430,
1390,
471,
9907,
3607,
1936,
16,
425,
18,
75,
18,
342,
8712,
19,
2415,
6848,
21,
15865,
8683,
15990,
19,
12179,
13873,
19,
5549,
3184,
2233,
18,
2924,
358,
1430,
22950,
8856,
364,
777,
11788,
18,
3536,
364,
1544,
316,
4715,
12,
4951,
4672,
309,
365,
18,
11369,
471,
883,
30,
1172,
883,
16,
589,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1430,
273,
11060,
18,
86,
17371,
469,
30,
1430,
273,
1140,
18,
318,
1232,
775,
30,
1430,
12,
3459,
13,
1335,
261,
4618,
668,
16,
8202,
668,
3631,
555,
30,
1172,
555,
2,
-100
] |
"""ScrolledTList - TList with scrollbars."""
|
"""ScrolledTList - TList with automatic scrollbars."""
|
def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixScrolledText', ['options'], cnf, kw) self.subwidget_list['text'] = _dummyText(self, 'text') self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb') self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
|
01c920b9b56baabd2e1dd945affd1c17c1669b20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/01c920b9b56baabd2e1dd945affd1c17c1669b20/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
1541,
25054,
1528,
2187,
10228,
2116,
17337,
23118,
16,
5323,
13,
365,
18,
1717,
6587,
67,
1098,
3292,
955,
3546,
273,
389,
21050,
1528,
12,
2890,
16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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4171,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
1541,
25054,
1528,
2187,
10228,
2116,
17337,
23118,
16,
5323,
13,
365,
18,
1717,
6587,
67,
1098,
3292,
955,
3546,
273,
389,
21050,
1528,
12,
2890,
16,
296,
955,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
6904,
70,
3546,
273,
389,
21050,
31636,
12,
2890,
16,
296,
6904,
70,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
4487,
70,
3546,
273,
389,
21050,
31636,
12,
2890,
16,
296,
4487,
70,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
wanted = os.path.join(curdir, 'src', 'lxml', 'etree.so')
|
ext = sysconfig.get_config_var("SO") wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
|
def test_build_ext_inplace(self): etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c') etree_ext = Extension('lxml.etree', [etree_c]) dist = Distribution({'name': 'lxml', 'ext_modules': [etree_ext]}) cmd = build_ext(dist) cmd.inplace = 1 cmd.distribution.package_dir = {'': 'src'} cmd.distribution.packages = ['lxml', 'lxml.html'] curdir = os.getcwd() wanted = os.path.join(curdir, 'src', 'lxml', 'etree.so') path = cmd.get_ext_fullpath('lxml.etree') self.assertEquals(wanted, path)
|
cf2be775380063cf5767ac043b5663a983df95da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/cf2be775380063cf5767ac043b5663a983df95da/test_build_ext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3510,
67,
408,
67,
267,
964,
12,
2890,
4672,
12031,
67,
71,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5645,
67,
1214,
16,
296,
80,
2902,
18,
31303,
18,
71,
6134,
12031,
67,
408,
273,
10021,
2668,
80,
2902,
18,
31303,
2187,
306,
31303,
67,
71,
5717,
2411,
273,
17547,
12590,
11,
529,
4278,
296,
80,
2902,
2187,
296,
408,
67,
6400,
4278,
306,
31303,
67,
408,
65,
6792,
1797,
273,
1361,
67,
408,
12,
4413,
13,
1797,
18,
267,
964,
273,
404,
1797,
18,
16279,
18,
5610,
67,
1214,
273,
13666,
4278,
296,
4816,
11,
97,
1797,
18,
16279,
18,
10308,
273,
10228,
80,
2902,
2187,
296,
80,
2902,
18,
2620,
3546,
662,
1214,
273,
1140,
18,
588,
11089,
1435,
1110,
273,
2589,
1425,
18,
588,
67,
1425,
67,
1401,
2932,
3584,
7923,
15504,
273,
1140,
18,
803,
18,
5701,
12,
1397,
1214,
16,
296,
4816,
2187,
296,
80,
2902,
2187,
296,
31303,
11,
397,
1110,
13,
589,
273,
1797,
18,
588,
67,
408,
67,
2854,
803,
2668,
80,
2902,
18,
31303,
6134,
365,
18,
11231,
8867,
12,
25861,
16,
589,
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,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306,
31303,
67,
71,
5717,
2411,
273,
17547,
12590,
11,
529,
4278,
296,
80,
2902,
2187,
296,
408,
67,
6400,
4278,
306,
31303,
67,
408,
65,
6792,
1797,
273,
1361,
67,
408,
12,
4413,
13,
1797,
18,
267,
964,
273,
404,
1797,
18,
16279,
18,
5610,
67,
1214,
273,
13666,
4278,
296,
4816,
11,
97,
1797,
18,
16279,
18,
10308,
273,
10228,
80,
2902,
2187,
296,
80,
2902,
18,
2620,
3546,
662,
2
] |
files.append(join(*path[1:]))
|
files.append(os.path.join(*path[1:]))
|
def fixed_import(name, globals={}, locals={}, fromlist=[]): if name.startswith('itools.'): name = name[7:] return pythons_import(name, globals, locals, fromlist)
|
327bd749c1de04f1657831ea57044f31e692f658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/327bd749c1de04f1657831ea57044f31e692f658/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5499,
67,
5666,
12,
529,
16,
10941,
28793,
8985,
28793,
628,
1098,
33,
8526,
4672,
309,
508,
18,
17514,
1918,
2668,
305,
8192,
1093,
4672,
508,
273,
508,
63,
27,
26894,
327,
5790,
87,
67,
5666,
12,
529,
16,
10941,
16,
8985,
16,
628,
1098,
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,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499,
67,
5666,
12,
529,
16,
10941,
28793,
8985,
28793,
628,
1098,
33,
8526,
4672,
309,
508,
18,
17514,
1918,
2668,
305,
8192,
1093,
4672,
508,
273,
508,
63,
27,
26894,
327,
5790,
87,
67,
5666,
12,
529,
16,
10941,
16,
8985,
16,
628,
1098,
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
] |
if not self.path.startswith('/contenttype'):
|
if not self._ShouldHandleRequest("/contenttype"):
|
def ContentTypeHandler(self): """Returns a string of html with the given content type. E.g., /contenttype?text/css returns an html file with the Content-Type header set to text/css.""" if not self.path.startswith('/contenttype'): return False query_char = self.path.find('?') content_type = self.path[query_char + 1:].strip() if not content_type: content_type = 'text/html' self.send_response(200) self.send_header('Content-Type', content_type) self.end_headers() self.wfile.write("<html>\n<body>\n<p>HTML text</p>\n</body>\n</html>\n"); return True
|
fd57e3fda1b173b113442291fc77ddf1659615e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/fd57e3fda1b173b113442291fc77ddf1659615e2/testserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11691,
1503,
12,
2890,
4672,
3536,
1356,
279,
533,
434,
1729,
598,
326,
864,
913,
618,
18,
225,
512,
18,
75,
12990,
342,
1745,
723,
35,
955,
19,
5212,
1135,
392,
1729,
585,
598,
326,
3697,
17,
559,
1446,
444,
358,
977,
19,
5212,
12123,
309,
486,
365,
6315,
14309,
3259,
691,
2932,
19,
1745,
723,
6,
4672,
327,
1083,
843,
67,
3001,
273,
365,
18,
803,
18,
4720,
2668,
4899,
13,
913,
67,
723,
273,
365,
18,
803,
63,
2271,
67,
3001,
397,
404,
30,
8009,
6406,
1435,
309,
486,
913,
67,
723,
30,
913,
67,
723,
273,
296,
955,
19,
2620,
11,
365,
18,
4661,
67,
2740,
12,
6976,
13,
365,
18,
4661,
67,
3374,
2668,
1350,
17,
559,
2187,
913,
67,
723,
13,
365,
18,
409,
67,
2485,
1435,
365,
18,
91,
768,
18,
2626,
2932,
32,
2620,
5333,
82,
32,
3432,
5333,
82,
32,
84,
34,
4870,
977,
1757,
84,
5333,
82,
1757,
3432,
5333,
82,
1757,
2620,
5333,
82,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11691,
1503,
12,
2890,
4672,
3536,
1356,
279,
533,
434,
1729,
598,
326,
864,
913,
618,
18,
225,
512,
18,
75,
12990,
342,
1745,
723,
35,
955,
19,
5212,
1135,
392,
1729,
585,
598,
326,
3697,
17,
559,
1446,
444,
358,
977,
19,
5212,
12123,
309,
486,
365,
6315,
14309,
3259,
691,
2932,
19,
1745,
723,
6,
4672,
327,
1083,
843,
67,
3001,
273,
365,
18,
803,
18,
4720,
2668,
4899,
13,
913,
67,
723,
273,
365,
18,
803,
63,
2271,
67,
3001,
397,
404,
30,
8009,
6406,
1435,
309,
486,
913,
67,
723,
30,
913,
67,
723,
273,
296,
955,
19,
2620,
11,
365,
18,
4661,
67,
2740,
12,
6976,
13,
365,
18,
4661,
67,
3374,
2668,
2
] |
pass
|
if len(path)<=1: name+=" - In System" Director.pushSaveSting(plr, "mission_names", name)
|
def writemissionname(name,path): pass
|
917e934f83ea781edca1e94264eaa8ce824151a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/917e934f83ea781edca1e94264eaa8ce824151a8/dynamic_mission.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
351,
19710,
529,
12,
529,
16,
803,
4672,
1342,
2,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
351,
19710,
529,
12,
529,
16,
803,
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
] |
$Id: Publish.py,v 1.41 1997/04/11 22:46:26 jim Exp $"""
|
$Id: Publish.py,v 1.42 1997/04/23 20:04:46 brian Exp $"""
|
def taste(spam): "a favorable reviewer" return spam,'yum yum, I like ' + spam
|
4eb55fa3bdacbb1687dd464f076584bb4fc1225d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4eb55fa3bdacbb1687dd464f076584bb4fc1225d/Publish.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
14725,
12,
1752,
301,
4672,
315,
69,
18552,
429,
10725,
264,
6,
327,
24824,
11189,
93,
379,
677,
379,
16,
467,
3007,
296,
397,
24824,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
14725,
12,
1752,
301,
4672,
315,
69,
18552,
429,
10725,
264,
6,
327,
24824,
11189,
93,
379,
677,
379,
16,
467,
3007,
296,
397,
24824,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ctype must be either "text/plain" or "message/rfc822". The default content type is not stored in the Content-Type: header. """ if ctype not in ('text/plain', 'message/rfc822'): raise ValueError( 'first arg must be either "text/plain" or "message/rfc822"')
|
ctype should be either "text/plain" or "message/rfc822", although this is not enforced. The default content type is not stored in the Content-Type: header. """
|
def set_default_type(self, ctype): """Set the `default' content type.
|
f0780af3dafb43f79f08732b4f49c531fae31558 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f0780af3dafb43f79f08732b4f49c531fae31558/Message.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1886,
67,
723,
12,
2890,
16,
11920,
4672,
3536,
694,
326,
1375,
1886,
11,
913,
618,
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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1886,
11,
913,
618,
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
] |
vList.append( Violation(self, line.number, "failed '-'") )
|
vList.append( Violation(self, line, "failed '-'") )
|
def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines:
|
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
225,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
225,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
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
] |
if calc_total:
|
if rating_results:
|
def get_results_by_day(events, start_date, end_date): date_dic = {} total_label = _("Total") calc_total = False result = { 'series': [] } for event in events: key = get_date_key(event.create_date) if event.type == EventType.ORDER_RATED: if not total_label in date_dic: date_dic[total_label] = {} calc_total = True if event.rating: label = event.rating else: continue else: label = event.get_label() if not label in date_dic: date_dic[label] = {} if key in date_dic[label]: date_dic[label][key] += 1 else: date_dic[label][key] = 1 if calc_total: if key in date_dic[total_label]: date_dic[total_label][key] += 1 else: date_dic[total_label][key] = 1 current_date = start_date while current_date <= end_date: key = get_date_key(current_date) for status in date_dic.keys(): if not key in date_dic[status]: date_dic[status][key] = 0 current_date += timedelta(days=1) for status in date_dic.keys(): result['series'].append({ 'data': [[key * 1000, date_dic[status][key]] for key in date_dic[status].keys()], 'name': status, 'type': 'spline', 'pointStart': start_date, 'pointInterval':1000 * 3600 * 24 }) logging.info(result['series']) return result
|
f5e88e248cc25cd1d01bd0464b0372f02b8c9aed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7532/f5e88e248cc25cd1d01bd0464b0372f02b8c9aed/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4717,
67,
1637,
67,
2881,
12,
5989,
16,
787,
67,
712,
16,
679,
67,
712,
4672,
1509,
67,
15859,
273,
2618,
2078,
67,
1925,
273,
389,
2932,
5269,
7923,
7029,
67,
4963,
273,
1083,
563,
273,
288,
296,
10222,
4278,
5378,
289,
364,
871,
316,
2641,
30,
498,
273,
336,
67,
712,
67,
856,
12,
2575,
18,
2640,
67,
712,
13,
309,
871,
18,
723,
422,
15879,
18,
7954,
67,
54,
6344,
30,
309,
486,
2078,
67,
1925,
316,
1509,
67,
15859,
30,
1509,
67,
15859,
63,
4963,
67,
1925,
65,
273,
2618,
7029,
67,
4963,
273,
1053,
225,
309,
871,
18,
17326,
30,
1433,
273,
871,
18,
17326,
469,
30,
1324,
469,
30,
1433,
273,
871,
18,
588,
67,
1925,
1435,
309,
486,
1433,
316,
1509,
67,
15859,
30,
1509,
67,
15859,
63,
1925,
65,
273,
2618,
225,
309,
498,
316,
1509,
67,
15859,
63,
1925,
14542,
1509,
67,
15859,
63,
1925,
6362,
856,
65,
1011,
404,
469,
30,
1509,
67,
15859,
63,
1925,
6362,
856,
65,
273,
404,
225,
309,
13953,
67,
4717,
30,
309,
498,
316,
1509,
67,
15859,
63,
4963,
67,
1925,
14542,
1509,
67,
15859,
63,
4963,
67,
1925,
6362,
856,
65,
1011,
404,
469,
30,
1509,
67,
15859,
63,
4963,
67,
1925,
6362,
856,
65,
273,
404,
565,
783,
67,
712,
273,
787,
67,
712,
225,
1323,
783,
67,
712,
1648,
679,
67,
712,
30,
498,
273,
336,
67,
712,
67,
856,
12,
2972,
67,
712,
13,
364,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4717,
67,
1637,
67,
2881,
12,
5989,
16,
787,
67,
712,
16,
679,
67,
712,
4672,
1509,
67,
15859,
273,
2618,
2078,
67,
1925,
273,
389,
2932,
5269,
7923,
7029,
67,
4963,
273,
1083,
563,
273,
288,
296,
10222,
4278,
5378,
289,
364,
871,
316,
2641,
30,
498,
273,
336,
67,
712,
67,
856,
12,
2575,
18,
2640,
67,
712,
13,
309,
871,
18,
723,
422,
15879,
18,
7954,
67,
54,
6344,
30,
309,
486,
2078,
67,
1925,
316,
1509,
67,
15859,
30,
1509,
67,
15859,
63,
4963,
67,
1925,
65,
273,
2618,
7029,
67,
4963,
273,
1053,
225,
309,
871,
18,
17326,
30,
1433,
273,
871,
18,
17326,
469,
30,
1324,
469,
30,
1433,
273,
2
] |
first = True for a in t.names: if first: first = False else: self.write(", ") self.write(a.name) if a.asname: self.write(" as "+a.asname)
|
interleave(lambda: self.write(", "), self.dispatch, t.names)
|
def _Import(self, t): self.fill("import ") first = True for a in t.names: if first: first = False else: self.write(", ") self.write(a.name) if a.asname: self.write(" as "+a.asname)
|
370480032ecec8ec7718f276ca463670a69ead37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/370480032ecec8ec7718f276ca463670a69ead37/unparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5010,
12,
2890,
16,
268,
4672,
365,
18,
5935,
2932,
5666,
9369,
1122,
273,
1053,
364,
279,
316,
268,
18,
1973,
30,
309,
1122,
30,
1122,
273,
1083,
469,
30,
365,
18,
2626,
2932,
16,
9369,
365,
18,
2626,
12,
69,
18,
529,
13,
309,
279,
18,
345,
529,
30,
365,
18,
2626,
2932,
487,
13773,
69,
18,
345,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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18,
5935,
2932,
5666,
9369,
1122,
273,
1053,
364,
279,
316,
268,
18,
1973,
30,
309,
1122,
30,
1122,
273,
1083,
469,
30,
365,
18,
2626,
2932,
16,
9369,
365,
18,
2626,
12,
69,
18,
529,
13,
309,
279,
18,
345,
529,
30,
365,
18,
2626,
2932,
487,
13773,
69,
18,
345,
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
] |
AUTHORS: David Joyner (3-2006, 8-2007)
|
AUTHORS: - David Joyner (3-2006, 8-2007)
|
def desolve_system_strings(des,vars,ics=None): """ Solves any size system of 1st order ODE's. Initials conditions are optional. INPUT: de -- a list of strings representing the ODEs in maxima notation (eg, de = "diff(f(x),x,2)=diff(f(x),x)+sin(x)") vars -- a list of strings representing the variables (eg, vars = ["s","x","y"], where s is the independent variable and x,y the dependent variables) ics -- a list of numbers representing initial conditions (eg, x(0)=1, y(0)=2 is ics = [0,1,2]) WARNING: The given ics sets the initial values of the dependent vars in maxima, so subsequent ODEs involving these variables will have these initial conditions automatically imposed. EXAMPLES: sage: from sage.calculus.desolvers import desolve_system_strings sage: s = var('s') sage: function('x', s) x(s) sage: function('y', s) y(s) sage: de1 = lambda z: diff(z[0],s) + z[1] - 1 sage: de2 = lambda z: diff(z[1],s) - z[0] + 1 sage: des = [de1([x(s),y(s)]),de2([x(s),y(s)])] sage: vars = ["s","x","y"] sage: desolve_system_strings(des,vars) ["(1-'y(0))*sin(s)+('x(0)-1)*cos(s)+1", "('x(0)-1)*sin(s)+('y(0)-1)*cos(s)+1"] sage: ics = [0,1,-1] sage: soln = desolve_system_strings(des,vars,ics); soln ['2*sin(s)+1', '1-2*cos(s)'] sage: solnx, solny = map(SR, soln) sage: RR(solnx(s=3)) 1.28224001611973 sage: P1 = plot([solnx,solny],(0,1)) sage: P2 = parametric_plot((solnx,solny),(0,1)) Now type show(P1), show(P2) to view these. AUTHORS: David Joyner (3-2006, 8-2007) """ d = len(des) dess = [de._maxima_init_() + "=0" for de in des] for i in range(d): cmd="de:" + dess[int(i)] + ";" maxima.eval(cmd) desstr = "[" + ",".join(dess) + "]" d = len(vars) varss = list("'" + vars[i] + "(" + vars[0] + ")" for i in range(1,d)) varstr = "[" + ",".join(varss) + "]" if ics is not None: #d = len(ics) ## must be same as len(des) for i in range(1,d): ic = "atvalue('" + vars[i] + "("+vars[0] + ")," + str(vars[0]) + "=" + str(ics[0]) + "," + str(ics[i]) + ")" maxima.eval(ic) cmd = "desolve(" + desstr + "," + varstr + ");" soln = maxima(cmd) return [f.rhs()._maxima_init_() for f in soln]
|
a5e01917e5cb3eb9aa0a8033daad14821fe571aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a5e01917e5cb3eb9aa0a8033daad14821fe571aa/desolvers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2832,
5390,
67,
4299,
67,
10219,
12,
5489,
16,
4699,
16,
2102,
33,
7036,
4672,
3536,
348,
355,
3324,
1281,
963,
2619,
434,
404,
334,
1353,
531,
1639,
1807,
18,
10188,
87,
4636,
854,
3129,
18,
282,
12943,
30,
443,
565,
1493,
279,
666,
434,
2064,
5123,
326,
531,
1639,
87,
316,
943,
13888,
12155,
261,
1332,
16,
443,
273,
315,
5413,
12,
74,
12,
92,
3631,
92,
16,
22,
13,
33,
5413,
12,
74,
12,
92,
3631,
92,
27921,
21861,
12,
92,
2225,
13,
4153,
225,
1493,
279,
666,
434,
2064,
5123,
326,
3152,
261,
1332,
16,
4153,
273,
8247,
87,
15937,
92,
15937,
93,
6,
6487,
1625,
272,
353,
326,
14807,
2190,
471,
619,
16,
93,
326,
10460,
3152,
13,
277,
2143,
282,
1493,
279,
666,
434,
5600,
5123,
2172,
4636,
261,
1332,
16,
619,
12,
20,
13,
33,
21,
16,
677,
12,
20,
13,
33,
22,
353,
277,
2143,
273,
306,
20,
16,
21,
16,
22,
5717,
225,
9744,
30,
1021,
864,
277,
2143,
1678,
326,
2172,
924,
434,
326,
10460,
4153,
316,
943,
13888,
16,
1427,
10815,
531,
1639,
87,
29876,
6282,
4259,
3152,
903,
1240,
4259,
2172,
4636,
6635,
709,
7423,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
12780,
407,
18,
5489,
355,
2496,
1930,
2832,
5390,
67,
4299,
67,
10219,
272,
410,
30,
272,
273,
569,
2668,
87,
6134,
272,
410,
30,
445,
2668,
92,
2187,
272,
13,
619,
12,
87,
13,
272,
410,
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,
2832,
5390,
67,
4299,
67,
10219,
12,
5489,
16,
4699,
16,
2102,
33,
7036,
4672,
3536,
348,
355,
3324,
1281,
963,
2619,
434,
404,
334,
1353,
531,
1639,
1807,
18,
10188,
87,
4636,
854,
3129,
18,
282,
12943,
30,
443,
565,
1493,
279,
666,
434,
2064,
5123,
326,
531,
1639,
87,
316,
943,
13888,
12155,
261,
1332,
16,
443,
273,
315,
5413,
12,
74,
12,
92,
3631,
92,
16,
22,
13,
33,
5413,
12,
74,
12,
92,
3631,
92,
27921,
21861,
12,
92,
2225,
13,
4153,
225,
1493,
279,
666,
434,
2064,
5123,
326,
3152,
261,
1332,
16,
4153,
273,
8247,
87,
15937,
92,
15937,
93,
6,
6487,
1625,
272,
353,
326,
14807,
2190,
471,
619,
16,
93,
2
] |
import fpformat
|
def __repr__(self): taskNameWidth = 32 dtWidth = 10 priorityWidth = 10 totalDt = 0 totalAvgDt = 0 str = "The taskMgr is handling:\n" str += ('taskList'.ljust(taskNameWidth) + 'dt(ms)'.rjust(dtWidth) + 'avg'.rjust(dtWidth) + 'max'.rjust(dtWidth) + 'priority'.rjust(priorityWidth) + '\n') str += '-------------------------------------------------------------------------\n' for taskPriList in self.taskList: priority = `taskPriList.getPriority()` for task in taskPriList: if task is None: break if task.isRemoved(): taskName = '(R)' + task.name else: taskName = task.name if self.taskTimerVerbose: import fpformat totalDt = totalDt + task.dt totalAvgDt = totalAvgDt + task.avgDt str += (taskName.ljust(taskNameWidth) + fpformat.fix(task.dt*1000, 2).rjust(dtWidth) + fpformat.fix(task.avgDt*1000, 2).rjust(dtWidth) + fpformat.fix(task.maxDt*1000, 2).rjust(dtWidth) + priority.rjust(priorityWidth) + '\n') else: str += (task.name.ljust(taskNameWidth) + '----'.rjust(dtWidth) + '----'.rjust(dtWidth) + '----'.rjust(dtWidth) + priority.rjust(priorityWidth) + '\n') str += '-------------------------------------------------------------------------\n' str += 'pendingTasks\n' str += '-------------------------------------------------------------------------\n' for pri, taskList in self.pendingTaskDict.items(): for task in taskList: if task.isRemoved(): taskName = '(PR)' + task.name else: taskName = '(P)' + task.name if (self.taskTimerVerbose): import fpformat str += (' ' + taskName.ljust(taskNameWidth-2) + fpformat.fix(pri, 2).rjust(dtWidth) + '\n') else: str += (' ' + taskName.ljust(taskNameWidth-2) + '----'.rjust(dtWidth) + '\n') str += '-------------------------------------------------------------------------\n' str += ('doLaterList'.ljust(taskNameWidth) + 'waitTime(s)'.rjust(dtWidth) + '\n') str += '-------------------------------------------------------------------------\n' # When we print, show the doLaterList in actual sorted order. # The priority heap is not actually in order - it is a tree # Make a shallow copy so we can sort it sortedDoLaterList = self.__doLaterList[:] sortedDoLaterList.sort(lambda a, b: cmp(a.wakeTime, b.wakeTime)) sortedDoLaterList.reverse() for task in sortedDoLaterList: remainingTime = ((task.wakeTime) - self.currentTime) if task.isRemoved(): taskName = '(R)' + task.name else: taskName = task.name if (self.taskTimerVerbose): import fpformat str += (' ' + taskName.ljust(taskNameWidth-2) + fpformat.fix(remainingTime, 2).rjust(dtWidth) + '\n') else: str += (' ' + taskName.ljust(taskNameWidth-2) + '----'.rjust(dtWidth) + '\n') str += '-------------------------------------------------------------------------\n' if (self.taskTimerVerbose): import fpformat str += ('total'.ljust(taskNameWidth) + fpformat.fix(totalDt*1000, 2).rjust(dtWidth) + fpformat.fix(totalAvgDt*1000, 2).rjust(dtWidth) + '\n') else: str += ('total'.ljust(taskNameWidth) + '----'.rjust(dtWidth) + '----'.rjust(dtWidth) + '\n') str += "End of taskMgr info\n" return str
|
3c0d5e634275e3b2542aa1ddf5ebc1355d8fefa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/3c0d5e634275e3b2542aa1ddf5ebc1355d8fefa1/Task.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
20172,
2384,
273,
3847,
3681,
2384,
273,
1728,
4394,
2384,
273,
1728,
2078,
19739,
273,
374,
2078,
22823,
19739,
273,
374,
609,
273,
315,
1986,
1562,
9455,
353,
5057,
5581,
82,
6,
609,
1011,
7707,
4146,
682,
10332,
80,
3732,
12,
4146,
461,
2384,
13,
397,
296,
7510,
12,
959,
2506,
18,
86,
3732,
12,
7510,
2384,
13,
397,
296,
14141,
10332,
86,
3732,
12,
7510,
2384,
13,
397,
296,
1896,
10332,
86,
3732,
12,
7510,
2384,
13,
397,
296,
8457,
10332,
86,
3732,
12,
8457,
2384,
13,
397,
2337,
82,
6134,
609,
1011,
296,
29461,
6943,
82,
11,
364,
1562,
52,
566,
682,
316,
365,
18,
4146,
682,
30,
4394,
273,
1375,
4146,
52,
566,
682,
18,
588,
8183,
20338,
364,
1562,
316,
1562,
52,
566,
682,
30,
309,
1562,
353,
599,
30,
898,
309,
1562,
18,
291,
10026,
13332,
20172,
273,
7747,
54,
2506,
397,
1562,
18,
529,
469,
30,
20172,
273,
1562,
18,
529,
309,
365,
18,
4146,
6777,
14489,
30,
2078,
19739,
273,
2078,
19739,
397,
1562,
18,
7510,
2078,
22823,
19739,
273,
2078,
22823,
19739,
397,
1562,
18,
14141,
19739,
609,
1011,
261,
4146,
461,
18,
80,
3732,
12,
4146,
461,
2384,
13,
397,
4253,
2139,
18,
904,
12,
4146,
18,
7510,
14,
18088,
16,
576,
2934,
86,
3732,
12,
7510,
2384,
13,
397,
4253,
2139,
18,
904,
12,
4146,
18,
14141,
19739,
14,
18088,
16,
576,
2934,
86,
3732,
12,
7510,
2384,
13,
397,
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,
12715,
972,
12,
2890,
4672,
20172,
2384,
273,
3847,
3681,
2384,
273,
1728,
4394,
2384,
273,
1728,
2078,
19739,
273,
374,
2078,
22823,
19739,
273,
374,
609,
273,
315,
1986,
1562,
9455,
353,
5057,
5581,
82,
6,
609,
1011,
7707,
4146,
682,
10332,
80,
3732,
12,
4146,
461,
2384,
13,
397,
296,
7510,
12,
959,
2506,
18,
86,
3732,
12,
7510,
2384,
13,
397,
296,
14141,
10332,
86,
3732,
12,
7510,
2384,
13,
397,
296,
1896,
10332,
86,
3732,
12,
7510,
2384,
13,
397,
296,
8457,
10332,
86,
3732,
12,
8457,
2384,
13,
397,
2337,
82,
6134,
609,
1011,
296,
29461,
6943,
82,
11,
364,
1562,
52,
566,
682,
316,
365,
18,
4146,
682,
30,
4394,
273,
2
] |
|
raise GraphError("no internal %s property named: %d" %\
|
raise GraphError("no internal %s property named: %s" %\
|
def _prop(t, g, prop): """Returns either a property map, or an internal vertex property map with a given name""" if type(prop) == str: try: pmap = g.properties[(t,prop)] except KeyError: raise GraphError("no internal %s property named: %d" %\ ("vertex" if t == "v" else \ ("edge" if t == "e" else "graph"),prop)) else: pmap = prop if pmap == None: return libcore.any() else: return pmap._PropertyMap__map.get_map()
|
3ba46e75d5f664e1e71d425bc56b2a987c3636f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3516/3ba46e75d5f664e1e71d425bc56b2a987c3636f2/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5986,
12,
88,
16,
314,
16,
2270,
4672,
3536,
1356,
3344,
279,
1272,
852,
16,
578,
392,
2713,
5253,
1272,
852,
598,
279,
864,
508,
8395,
309,
618,
12,
5986,
13,
422,
609,
30,
775,
30,
293,
1458,
273,
314,
18,
4738,
63,
12,
88,
16,
5986,
25887,
1335,
4999,
30,
1002,
5601,
668,
2932,
2135,
2713,
738,
87,
1272,
4141,
30,
738,
87,
6,
738,
64,
7566,
15281,
6,
309,
268,
422,
315,
90,
6,
469,
521,
7566,
7126,
6,
309,
268,
422,
315,
73,
6,
469,
315,
4660,
6,
3631,
5986,
3719,
469,
30,
293,
1458,
273,
2270,
309,
293,
1458,
422,
599,
30,
327,
2561,
3644,
18,
2273,
1435,
469,
30,
327,
293,
1458,
6315,
1396,
863,
972,
1458,
18,
588,
67,
1458,
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,
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
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5986,
12,
88,
16,
314,
16,
2270,
4672,
3536,
1356,
3344,
279,
1272,
852,
16,
578,
392,
2713,
5253,
1272,
852,
598,
279,
864,
508,
8395,
309,
618,
12,
5986,
13,
422,
609,
30,
775,
30,
293,
1458,
273,
314,
18,
4738,
63,
12,
88,
16,
5986,
25887,
1335,
4999,
30,
1002,
5601,
668,
2932,
2135,
2713,
738,
87,
1272,
4141,
30,
738,
87,
6,
738,
64,
7566,
15281,
6,
309,
268,
422,
315,
90,
6,
469,
521,
7566,
7126,
6,
309,
268,
422,
315,
73,
6,
469,
315,
4660,
6,
3631,
5986,
3719,
469,
30,
293,
1458,
273,
2270,
309,
293,
1458,
422,
599,
30,
327,
2561,
3644,
18,
2273,
1435,
469,
30,
327,
293,
1458,
2
] |
self.dirCache[event.filename] = self.getChild(event.filename).fileHandle
|
self.dirCache[filename] = self.getChild(filename).fileHandle
|
def onMonitorEvent(self, event): code = event.code2str()
|
fc5e2c99905d949711a9178604f9d58b3058b50a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/fc5e2c99905d949711a9178604f9d58b3058b50a/spreadfs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7187,
1133,
12,
2890,
16,
871,
4672,
981,
273,
871,
18,
710,
22,
701,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7187,
1133,
12,
2890,
16,
871,
4672,
981,
273,
871,
18,
710,
22,
701,
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
] |
if not cacheheads: _debug(ui, 'tag cache: cache file missing or empty\n')
|
def _readtagcache(ui, repo): '''Read the tag cache and return a tuple (heads, fnodes, cachetags, shouldwrite). If the cache is completely up-to-date, cachetags is a dict of the form returned by _readtags(); otherwise, it is None and heads and fnodes are set. In that case, heads is the list of all heads currently in the repository (ordered from tip to oldest) and fnodes is a mapping from head to .hgtags filenode. If those two are set, caller is responsible for reading tag info from each head.''' try: cachefile = repo.opener('tags.cache', 'r') # force reading the file for static-http cachelines = iter(cachefile) _debug(ui, 'reading tag cache from %s\n' % cachefile.name) except IOError: cachefile = None # The cache file consists of lines like # <headrev> <headnode> [<tagnode>] # where <headrev> and <headnode> redundantly identify a repository # head from the time the cache was written, and <tagnode> is the # filenode of .hgtags on that head. Heads with no .hgtags file will # have no <tagnode>. The cache is ordered from tip to oldest (which # is part of why <headrev> is there: a quick visual check is all # that's required to ensure correct order). # # This information is enough to let us avoid the most expensive part # of finding global tags, which is looking up <tagnode> in the # manifest for each head. cacherevs = [] # list of headrev cacheheads = [] # list of headnode cachefnode = {} # map headnode to filenode if cachefile: for line in cachelines: if line == "\n": break line = line.rstrip().split() cacherevs.append(int(line[0])) headnode = bin(line[1]) cacheheads.append(headnode) if len(line) == 3: fnode = bin(line[2]) cachefnode[headnode] = fnode tipnode = repo.changelog.tip() tiprev = len(repo.changelog) - 1 # Case 1 (common): tip is the same, so nothing has changed. # (Unchanged tip trivially means no changesets have been added. # But, thanks to localrepository.destroyed(), it also means none # have been destroyed by strip or rollback.) if cacheheads and cacheheads[0] == tipnode and cacherevs[0] == tiprev: _debug(ui, "tag cache: tip unchanged\n") tags = _readtags(ui, repo, cachelines, cachefile.name) cachefile.close() return (None, None, tags, False) if cachefile: cachefile.close() # ignore rest of file repoheads = repo.heads() # Case 2 (uncommon): empty repo; get out quickly and don't bother # writing an empty cache. if repoheads == [nullid]: return ([], {}, {}, False) # Case 3 (uncommon): cache file missing or empty. if not cacheheads: _debug(ui, 'tag cache: cache file missing or empty\n') # Case 4 (uncommon): tip rev decreased. This should only happen # when we're called from localrepository.destroyed(). Refresh the # cache so future invocations will not see disappeared heads in the # cache. elif cacheheads and tiprev < cacherevs[0]: _debug(ui, 'tag cache: tip rev decremented (from %d to %d), ' 'so we must be destroying nodes\n' % (cacherevs[0], tiprev)) # Case 5 (common): tip has changed, so we've added/replaced heads. else: _debug(ui, 'tag cache: tip has changed (%d:%s); must find new heads\n' % (tiprev, short(tipnode))) # Luckily, the code to handle cases 3, 4, 5 is the same. So the # above if/elif/else can disappear once we're confident this thing # actually works and we don't need the debug output. # N.B. in case 4 (nodes destroyed), "new head" really means "newly # exposed". newheads = [head for head in repoheads if head not in set(cacheheads)] _debug(ui, 'tag cache: found %d head(s) not in cache: %s\n' % (len(newheads), map(short, newheads))) # Now we have to lookup the .hgtags filenode for every new head. # This is the most expensive part of finding tags, so performance # depends primarily on the size of newheads. Worst case: no cache # file, so newheads == repoheads. for head in newheads: cctx = repo[head] try: fnode = cctx.filenode('.hgtags') cachefnode[head] = fnode except error.LookupError: # no .hgtags file on this head pass # Caller has to iterate over all heads, but can use the filenodes in # cachefnode to get to each .hgtags revision quickly. return (repoheads, cachefnode, None, True)
|
b2451d75e661d2c1bb8833ce32d5b7db4222606b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/b2451d75e661d2c1bb8833ce32d5b7db4222606b/tags.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2692,
2493,
12,
4881,
16,
3538,
4672,
9163,
1994,
326,
1047,
1247,
471,
327,
279,
3193,
261,
20263,
16,
2295,
1145,
16,
7122,
278,
1341,
16,
1410,
2626,
2934,
225,
971,
326,
1247,
353,
14416,
731,
17,
869,
17,
712,
16,
7122,
278,
1341,
353,
279,
2065,
434,
326,
646,
2106,
635,
389,
896,
4156,
5621,
3541,
16,
518,
353,
599,
471,
22742,
471,
2295,
1145,
854,
444,
18,
225,
657,
716,
648,
16,
22742,
353,
326,
666,
434,
777,
22742,
4551,
316,
326,
3352,
261,
9885,
628,
9529,
358,
17067,
13,
471,
2295,
1145,
353,
279,
2874,
628,
910,
358,
263,
26981,
4156,
661,
20680,
18,
225,
971,
5348,
2795,
854,
444,
16,
4894,
353,
14549,
364,
6453,
1047,
1123,
628,
1517,
910,
1093,
6309,
225,
775,
30,
1247,
768,
273,
3538,
18,
25098,
2668,
4156,
18,
2493,
2187,
296,
86,
6134,
468,
2944,
6453,
326,
585,
364,
760,
17,
2505,
7122,
14567,
273,
1400,
12,
2493,
768,
13,
389,
4148,
12,
4881,
16,
296,
21803,
1047,
1247,
628,
738,
87,
64,
82,
11,
738,
1247,
768,
18,
529,
13,
1335,
8340,
30,
1247,
768,
273,
599,
225,
468,
1021,
1247,
585,
20915,
434,
2362,
3007,
468,
282,
411,
1978,
9083,
34,
411,
1978,
2159,
34,
306,
32,
2692,
2159,
34,
65,
468,
1625,
411,
1978,
9083,
34,
471,
411,
1978,
2159,
34,
19530,
715,
9786,
279,
3352,
468,
910,
628,
326,
813,
326,
1247,
1703,
5941,
16,
471,
411,
2692,
2159,
34,
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,
896,
2692,
2493,
12,
4881,
16,
3538,
4672,
9163,
1994,
326,
1047,
1247,
471,
327,
279,
3193,
261,
20263,
16,
2295,
1145,
16,
7122,
278,
1341,
16,
1410,
2626,
2934,
225,
971,
326,
1247,
353,
14416,
731,
17,
869,
17,
712,
16,
7122,
278,
1341,
353,
279,
2065,
434,
326,
646,
2106,
635,
389,
896,
4156,
5621,
3541,
16,
518,
353,
599,
471,
22742,
471,
2295,
1145,
854,
444,
18,
225,
657,
716,
648,
16,
22742,
353,
326,
666,
434,
777,
22742,
4551,
316,
326,
3352,
261,
9885,
628,
9529,
358,
17067,
13,
471,
2295,
1145,
353,
279,
2874,
628,
910,
358,
263,
26981,
4156,
661,
20680,
18,
225,
971,
5348,
2795,
854,
444,
16,
4894,
353,
2
] |
|
return os.path.normpath(os.path.join(dir, outfile))
|
output_image_filename = os.path.normpath(os.path.join(dir, outfile)) print "get_output_image_filename(): output_image_filename = ", output_image_filename return output_image_filename
|
def get_output_image_filename(self): """Returns the fullpath of the output image filename based on the <povrayscene_file> and <output_type> attrs. """ if not self.povrayscene_file: return "" if self.output_type == 'bmp': output_ext = '.bmp' else: # default output_ext = '.png' dir, tmp_pov = os.path.split(self.povrayscene_file) base, ext = os.path.splitext(tmp_pov) outfile = base + output_ext return os.path.normpath(os.path.join(dir, outfile))
|
05a09e8fce4a794de2c8e401a50f930afe649894 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/05a09e8fce4a794de2c8e401a50f930afe649894/PovrayScene.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
67,
2730,
67,
3459,
12,
2890,
4672,
3536,
1356,
326,
15170,
434,
326,
876,
1316,
1544,
2511,
603,
326,
411,
84,
1527,
435,
23694,
67,
768,
34,
471,
411,
2844,
67,
723,
34,
3422,
18,
3536,
225,
309,
486,
365,
18,
84,
1527,
435,
23694,
67,
768,
30,
327,
1408,
225,
309,
365,
18,
2844,
67,
723,
422,
296,
70,
1291,
4278,
876,
67,
408,
273,
2418,
70,
1291,
11,
469,
30,
468,
805,
876,
67,
408,
273,
2418,
6446,
11,
225,
1577,
16,
1853,
67,
84,
1527,
273,
1140,
18,
803,
18,
4939,
12,
2890,
18,
84,
1527,
435,
23694,
67,
768,
13,
1026,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
5645,
67,
84,
1527,
13,
8756,
273,
1026,
397,
876,
67,
408,
225,
876,
67,
2730,
67,
3459,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
1214,
16,
8756,
3719,
1172,
315,
588,
67,
2844,
67,
2730,
67,
3459,
13332,
876,
67,
2730,
67,
3459,
273,
3104,
876,
67,
2730,
67,
3459,
327,
876,
67,
2730,
67,
3459,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
67,
2730,
67,
3459,
12,
2890,
4672,
3536,
1356,
326,
15170,
434,
326,
876,
1316,
1544,
2511,
603,
326,
411,
84,
1527,
435,
23694,
67,
768,
34,
471,
411,
2844,
67,
723,
34,
3422,
18,
3536,
225,
309,
486,
365,
18,
84,
1527,
435,
23694,
67,
768,
30,
327,
1408,
225,
309,
365,
18,
2844,
67,
723,
422,
296,
70,
1291,
4278,
876,
67,
408,
273,
2418,
70,
1291,
11,
469,
30,
468,
805,
876,
67,
408,
273,
2418,
6446,
11,
225,
1577,
16,
1853,
67,
84,
1527,
273,
1140,
18,
803,
18,
4939,
12,
2890,
18,
84,
1527,
435,
23694,
67,
768,
13,
1026,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
2
] |
oldRuleset = self.rulesets[(server, channel)]
|
oldRuleset = self.rulesets[tuple(server), channel]
|
def setIrcRuleset(self, message): """Handle messages instructing us to add, modify, or remove the IRCRuleset instance for a particular channel. These messages are of the form:
|
e54512034c2b171037e3a9ef4fafaac4d52b2af1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/e54512034c2b171037e3a9ef4fafaac4d52b2af1/IRCMessage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20691,
1310,
4478,
278,
12,
2890,
16,
883,
4672,
3536,
3259,
2743,
316,
1697,
310,
584,
358,
527,
16,
5612,
16,
578,
1206,
326,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20691,
1310,
4478,
278,
12,
2890,
16,
883,
4672,
3536,
3259,
2743,
316,
1697,
310,
584,
358,
527,
16,
5612,
16,
578,
1206,
326,
467,
11529,
4478,
278,
791,
364,
279,
6826,
1904,
18,
8646,
2743,
854,
434,
326,
646,
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
] |
if hasattr(self, "window") and hasattr(self._window, "ShutdownDemo"):
|
if hasattr(self, "_window") and hasattr(self._window, "ShutdownDemo"):
|
def _OnCloseFrame(self, evt): """ Handles the close frame event. """ if hasattr(self, "window") and hasattr(self._window, "ShutdownDemo"): self._window.ShutdownDemo() evt.Skip()
|
efcad8aa9b0d09c282cd56842f57c8f872b7fdfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4583/efcad8aa9b0d09c282cd56842f57c8f872b7fdfa/slideshowview.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1398,
4605,
3219,
12,
2890,
16,
6324,
4672,
3536,
27020,
326,
1746,
2623,
871,
18,
3536,
309,
3859,
12,
2890,
16,
4192,
5668,
7923,
471,
3859,
12,
2890,
6315,
5668,
16,
315,
10961,
27126,
6,
4672,
365,
6315,
5668,
18,
10961,
27126,
1435,
6324,
18,
6368,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1398,
4605,
3219,
12,
2890,
16,
6324,
4672,
3536,
27020,
326,
1746,
2623,
871,
18,
3536,
309,
3859,
12,
2890,
16,
4192,
5668,
7923,
471,
3859,
12,
2890,
6315,
5668,
16,
315,
10961,
27126,
6,
4672,
365,
6315,
5668,
18,
10961,
27126,
1435,
6324,
18,
6368,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'mtime': str(self.timestamp.strftime('%Y%m%d%H%M%S')),
|
'mtime': mtime.strftime('%Y%m%d%H%M%S'),
|
def get_catalog_indexes(self): from access import RoleAware
|
e94d5f07a443410ea93a5b7a7482e3619fd384aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/e94d5f07a443410ea93a5b7a7482e3619fd384aa/catalog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7199,
67,
11265,
12,
2890,
4672,
628,
2006,
1930,
6204,
10155,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
prof_start_phase)
|
prof_start_phase, options.debug)
|
def main(): # Open file datfn = args[0] timeseries = datfile.Datfile(datfn) if options.shift_phase != 0.0: # Only shift phase by a fraction of one rotation options.shift_phase -= int(options.shift_phase) if options.shift_phase < 0.0: options.shift_phase += 1.0 else: shift_time = 0.0 print "Searching %s for single pulses." % timeseries.datfn if options.parfile is not None: print "Using parfile: %s" % options.parfile # generate polycos print "Automatically generating polycos..." polycos = mypolycos.create_polycos(options.parfile, timeseries.infdata) mjd = timeseries.infdata.epoch mjdi = int(mjd) # integer part of mjd mjdf = mjd-mjdi # fractional part of mjd phase, freq = polycos.get_phs_and_freq(mjdi, mjdf) print "DEBUG: phase at start of file: %f" % phase if options.shift_phase != 0.0: prof_start_phase = options.shift_phase shift_phase = options.shift_phase - phase if shift_phase < 0.0: shift_phase += 1.0 shift_time = shift_phase * 1.0/freq else: prof_start_phase = phase # get periods from polycos get_period = lambda mjd: 1.0/polycos.get_phs_and_freq(int(mjd), \ mjd-int(mjd))[1] elif options.polycofile is not None: print "Using polycos file: %s" % options.polycos polycos = mypolycos.polycos(options.polycos) mjd = timeseries.infdata.epoch mjdi = int(mjd) # integer part of mjd mjdf = mjd-mjdi # fractional part of mjd phase, freq = polycos.get_phs_and_freq(mjdi, mjdf) print "DEBUG: phase at start of file: %f" % phase if options.shift_phase != 0.0: prof_start_phase = options.shift_phase shift_phase = options.shift_phase - phase if shift_phase < 0.0: shift_phase += 1.0 shift_time = shift_phase * 1.0/freq else: prof_start_phase = phase # get periods from polycos get_period = lambda mjd: 1.0/polycos.get_phs_and_freq(int(mjd), \ mjd-int(mjd))[1] elif options.period is not None: print "Using constant period: %f" % options.period if options.shift_phase != 0.0: shift_time = options.shift_phase * options.period get_period = lambda mjd: options.period else: raise ValueError("Unknown option for reading periods.") print "On-pulse regions will be set to: %s" % \ ','.join(['%s:%s' % t for t in options.on_pulse_regions]) # Loop over pulses in timeseries. Examine pulses one at a time. good_pulses = [] snrs = [] notes = [] nummasked = 0 numpulses = 0 for current_pulse in timeseries.pulses(get_period, \ time_to_skip=shift_time): numpulses += 1 maxsnr = 0 bestfactor = 0 current_pulse.set_onoff_pulse_regions(options.on_pulse_regions) if current_pulse.is_masked(numchunks=5): nummasked += 1 continue for numbins in options.widths: pulse = current_pulse.make_copy() pulse.smooth(numbins) snr = get_snr(pulse) if snr > options.threshold: if snr > maxsnr: if maxsnr==0 and bestfactor==0: # First time snr is above threshold snrs.append(snr) notes.append("smoothed by %3d bins" % numbins) good_pulses.append(current_pulse) else: # Better smootfactor/snr found, update, but don't # add pulse to good_pulses again. snrs[-1] = snr notes[-1] = "smoothed by %3d bins" % numbins maxsnr = snr bestfactor = numbins print_report(good_pulses, numpulses, nummasked, snrs=snrs, notes=notes) if options.create_output_files and len(good_pulses) > 0: if options.create_text_files: print "Writing pulse text files..." write_pulses(good_pulses, timeseries) if options.create_plot_files: print "Creating pulse plots..." plot_pulses(good_pulses, timeseries, options.downfactor) if options.create_joydiv_plot: #joy_division_plot2(good_pulses, timeseries.pulses(get_period), \ # timeseries, options.downfactor, \ # options.on_pulse_start, options.on_pulse_end) print "Making JoyDiv plot..." joy_division_plot(good_pulses, timeseries, options.downfactor, \ options.heightstretch) if (options.polycofile is not None or options.parfile is not None) and \ options.write_toas and len(good_pulses) > 0: numtoas = 0 print "Generating TOAs. Please wait..." print "TOA threshold:", options.toa_threshold print "Min number of pulses for a TOA:", options.min_pulses print "Profile template used:", options.template # Extract second column from template file # First column is index template = np.loadtxt(options.template, usecols=(1,)) # Get TOAs and write them to stdout current_pulse = None numpulses = 0 for pulse in good_pulses: if current_pulse is None: current_pulse = pulse.to_summed_pulse() numpulses = 1 else: current_pulse += pulse numpulses += 1 if numpulses < options.min_pulses: continue if get_snr(current_pulse) > options.toa_threshold: # Interpolate and downsample current_pulse so # it is same size as template profile current_pulse.interp_and_downsamp(template.size) write_toa(current_pulse, polycos, template, timeseries, \ prof_start_phase) numtoas += 1 if options.write_toa_files: # TOA profiles are already downfactored # do not downfactor more when creating plot plot_toa(numtoas, current_pulse, template) current_pulse.write_to_file("TOA%d" % numtoas) current_pulse = None numpulses = 0 print "Number of TOAs: %d" % numtoas print "Number of pulses thrown out because 'min pulses' requirement " \ "or SNR threshold not met: %d" % numpulses
|
e6a4e8efe30ac55a66af024075ebbda1dcb3c7b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3485/e6a4e8efe30ac55a66af024075ebbda1dcb3c7b4/dissect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
3502,
585,
1150,
4293,
273,
833,
63,
20,
65,
18677,
273,
1150,
768,
18,
5139,
768,
12,
3404,
4293,
13,
225,
309,
702,
18,
4012,
67,
13961,
480,
374,
18,
20,
30,
468,
5098,
4654,
6855,
635,
279,
8330,
434,
1245,
6752,
702,
18,
4012,
67,
13961,
3947,
509,
12,
2116,
18,
4012,
67,
13961,
13,
309,
702,
18,
4012,
67,
13961,
411,
374,
18,
20,
30,
702,
18,
4012,
67,
13961,
1011,
404,
18,
20,
469,
30,
4654,
67,
957,
273,
374,
18,
20,
225,
1172,
315,
2979,
310,
738,
87,
364,
2202,
18072,
2420,
1199,
738,
18677,
18,
3404,
4293,
225,
309,
702,
18,
1065,
768,
353,
486,
599,
30,
1172,
315,
7736,
779,
768,
30,
738,
87,
6,
738,
702,
18,
1065,
768,
468,
2103,
7573,
14445,
1172,
315,
31910,
12516,
7573,
14445,
7070,
7573,
14445,
273,
312,
879,
355,
93,
14445,
18,
2640,
67,
16353,
14445,
12,
2116,
18,
1065,
768,
16,
18677,
18,
10625,
892,
13,
312,
20769,
273,
18677,
18,
10625,
892,
18,
12015,
312,
78,
3211,
273,
509,
12,
81,
20769,
13,
468,
3571,
1087,
434,
312,
20769,
312,
78,
2180,
273,
312,
20769,
17,
81,
78,
3211,
468,
20462,
1087,
434,
312,
20769,
6855,
16,
7684,
273,
7573,
14445,
18,
588,
67,
844,
87,
67,
464,
67,
10212,
12,
81,
78,
3211,
16,
312,
78,
2180,
13,
1172,
315,
9394,
30,
6855,
622,
787,
434,
585,
30,
738,
74,
6,
738,
6855,
309,
702,
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,
2774,
13332,
468,
3502,
585,
1150,
4293,
273,
833,
63,
20,
65,
18677,
273,
1150,
768,
18,
5139,
768,
12,
3404,
4293,
13,
225,
309,
702,
18,
4012,
67,
13961,
480,
374,
18,
20,
30,
468,
5098,
4654,
6855,
635,
279,
8330,
434,
1245,
6752,
702,
18,
4012,
67,
13961,
3947,
509,
12,
2116,
18,
4012,
67,
13961,
13,
309,
702,
18,
4012,
67,
13961,
411,
374,
18,
20,
30,
702,
18,
4012,
67,
13961,
1011,
404,
18,
20,
469,
30,
4654,
67,
957,
273,
374,
18,
20,
225,
1172,
315,
2979,
310,
738,
87,
364,
2202,
18072,
2420,
1199,
738,
18677,
18,
3404,
4293,
225,
309,
702,
18,
1065,
768,
353,
486,
599,
30,
1172,
315,
7736,
2
] |
use = repr(str(val))
|
use = repr(val)
|
def WriteEnumerationItems(self, stream): enumName = self.doc[0] # Write in name alpha order names = self.mapVars.keys() names.sort() for name in names: entry = self.mapVars[name] vdesc = entry.desc if vdesc[4] == pythoncom.VAR_CONST: val = vdesc[1] if type(val) in (type(0), type(0L)): if val==0x80000000L: # special case use = "0x80000000L" # 'L' for future warning elif val > 0x80000000L or val < 0: # avoid a FutureWarning use = long(val) else: use = hex(val) else: use = repr(str(val)) print >> stream, "\t%-30s=%-10s # from enum %s" % \ (build.MakePublicAttributeName(name, True), use, enumName)
|
c267aaff6cbecce03110cc7981e4c1ccaf315f32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/c267aaff6cbecce03110cc7981e4c1ccaf315f32/genpy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
21847,
3126,
12,
2890,
16,
1407,
4672,
2792,
461,
273,
365,
18,
2434,
63,
20,
65,
468,
2598,
316,
508,
4190,
1353,
1257,
273,
365,
18,
1458,
5555,
18,
2452,
1435,
1257,
18,
3804,
1435,
364,
508,
316,
1257,
30,
1241,
273,
365,
18,
1458,
5555,
63,
529,
65,
331,
5569,
273,
1241,
18,
5569,
309,
331,
5569,
63,
24,
65,
422,
5790,
832,
18,
7716,
67,
26411,
30,
1244,
273,
331,
5569,
63,
21,
65,
309,
618,
12,
1125,
13,
316,
261,
723,
12,
20,
3631,
618,
12,
20,
48,
3719,
30,
309,
1244,
631,
20,
92,
28,
17877,
48,
30,
468,
4582,
648,
999,
273,
315,
20,
92,
28,
17877,
48,
6,
468,
296,
48,
11,
364,
3563,
3436,
1327,
1244,
405,
374,
92,
28,
17877,
48,
578,
1244,
411,
374,
30,
468,
4543,
279,
9108,
6210,
999,
273,
1525,
12,
1125,
13,
469,
30,
999,
273,
3827,
12,
1125,
13,
469,
30,
999,
273,
8480,
12,
1125,
13,
1172,
1671,
1407,
16,
1548,
88,
9,
17,
5082,
87,
5095,
17,
2163,
87,
468,
628,
2792,
738,
87,
6,
738,
521,
261,
3510,
18,
6464,
4782,
19240,
12,
529,
16,
1053,
3631,
999,
16,
2792,
461,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
21847,
3126,
12,
2890,
16,
1407,
4672,
2792,
461,
273,
365,
18,
2434,
63,
20,
65,
468,
2598,
316,
508,
4190,
1353,
1257,
273,
365,
18,
1458,
5555,
18,
2452,
1435,
1257,
18,
3804,
1435,
364,
508,
316,
1257,
30,
1241,
273,
365,
18,
1458,
5555,
63,
529,
65,
331,
5569,
273,
1241,
18,
5569,
309,
331,
5569,
63,
24,
65,
422,
5790,
832,
18,
7716,
67,
26411,
30,
1244,
273,
331,
5569,
63,
21,
65,
309,
618,
12,
1125,
13,
316,
261,
723,
12,
20,
3631,
618,
12,
20,
48,
3719,
30,
309,
1244,
631,
20,
92,
28,
17877,
48,
30,
468,
4582,
648,
999,
273,
315,
20,
92,
28,
17877,
48,
6,
468,
296,
48,
2
] |
def __init__(self,node,type=0,dimensions={}): LinkedFileVariableStore.__init__(self,node,dimensions)
|
def __init__(self,node,type=0,dimensions={},dimensionorder=()): LinkedFileVariableStore.__init__(self,node,dimensions,dimensionorder)
|
def __init__(self,node,type=0,dimensions={}): LinkedFileVariableStore.__init__(self,node,dimensions) self.variableclass = self.LinkedMatrixVariable assert len(self.dimensions)<=1, 'Linkedmatrix objects can only be used with 0 or 1 coordinate dimensions, but %i are present.' % len(self.dimensions) self.type = type
|
0cefcd100f374a4903a8727d77d7cdd4ed6d7a80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/381/0cefcd100f374a4903a8727d77d7cdd4ed6d7a80/data.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2159,
16,
723,
33,
20,
16,
14797,
28793,
11808,
1019,
33,
1435,
4672,
6546,
812,
3092,
2257,
16186,
2738,
972,
12,
2890,
16,
2159,
16,
14797,
16,
11808,
1019,
13,
365,
18,
6105,
1106,
273,
365,
18,
13174,
4635,
3092,
1815,
562,
12,
2890,
18,
14797,
13,
32,
33,
21,
16,
296,
13174,
5667,
2184,
848,
1338,
506,
1399,
598,
374,
578,
404,
7799,
5769,
16,
1496,
738,
77,
854,
3430,
1093,
738,
562,
12,
2890,
18,
14797,
13,
365,
18,
723,
273,
618,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
12,
2890,
16,
2159,
16,
14797,
16,
11808,
1019,
13,
365,
18,
6105,
1106,
273,
365,
18,
13174,
4635,
3092,
1815,
562,
12,
2890,
18,
14797,
13,
32,
33,
21,
16,
296,
13174,
5667,
2184,
848,
1338,
506,
1399,
598,
374,
578,
404,
7799,
5769,
16,
1496,
738,
77,
854,
3430,
1093,
738,
562,
12,
2890,
18,
14797,
13,
365,
18,
723,
273,
618,
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
] |
sim.getRNG().setSeed(12345)
|
sim.getRNG().set(seed=12345)
|
def demo(gen, pop): if gen < 2: return 1000 + 100 * gen else: return [x + 50 * gen for x in pop.subPopSizes()]
|
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
12,
4507,
16,
1843,
4672,
309,
3157,
411,
576,
30,
327,
4336,
397,
2130,
380,
3157,
469,
30,
327,
306,
92,
397,
6437,
380,
3157,
364,
619,
316,
1843,
18,
1717,
7049,
11923,
1435,
65,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
12,
4507,
16,
1843,
4672,
309,
3157,
411,
576,
30,
327,
4336,
397,
2130,
380,
3157,
469,
30,
327,
306,
92,
397,
6437,
380,
3157,
364,
619,
316,
1843,
18,
1717,
7049,
11923,
1435,
65,
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
] |
raise ParseException, ( instring, loc, "Text not in expected column", self )
|
raise ParseException( instring, loc, "Text not in expected column", self )
|
def parseImpl( self, instring, loc, doActions=True ): thiscol = col( loc, instring ) if thiscol > self.col: raise ParseException, ( instring, loc, "Text not in expected column", self ) newloc = loc + self.col - thiscol ret = instring[ loc: newloc ] return newloc, ret
|
0d5c070900efe583f55b5d4d6525eb2686936701 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/0d5c070900efe583f55b5d4d6525eb2686936701/pyparsing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
333,
1293,
273,
645,
12,
1515,
16,
316,
1080,
262,
309,
333,
1293,
405,
365,
18,
1293,
30,
1002,
10616,
12,
316,
1080,
16,
1515,
16,
315,
1528,
486,
316,
2665,
1057,
3113,
365,
262,
394,
1829,
273,
1515,
397,
365,
18,
1293,
300,
333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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
333,
1293,
273,
645,
12,
1515,
16,
316,
1080,
262,
309,
333,
1293,
405,
365,
18,
1293,
30,
1002,
10616,
12,
316,
1080,
16,
1515,
16,
315,
1528,
486,
316,
2665,
1057,
3113,
365,
262,
394,
1829,
273,
1515,
397,
365,
18,
1293,
300,
333,
1293,
325,
273,
316,
1080,
63,
1515,
30,
394,
1829,
308,
327,
394,
1829,
16,
325,
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
] |
import sys
|
def test(): import sys if not sys.argv[3:]: print('usage: python makeconfig.py config.c.in outputfile', end=' ') print('modulename ...') sys.exit(2) if sys.argv[1] == '-': infp = sys.stdin else: infp = open(sys.argv[1]) if sys.argv[2] == '-': outfp = sys.stdout else: outfp = open(sys.argv[2], 'w') makeconfig(infp, outfp, sys.argv[3:]) if outfp != sys.stdout: outfp.close() if infp != sys.stdin: infp.close()
|
2114f9ecb532f94075803ef01babe780b6039c21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/2114f9ecb532f94075803ef01babe780b6039c21/makeconfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
309,
486,
2589,
18,
19485,
63,
23,
30,
14542,
1172,
2668,
9167,
30,
5790,
29796,
22703,
18,
2074,
642,
18,
71,
18,
267,
876,
768,
2187,
679,
2218,
8624,
1172,
2668,
1711,
332,
1069,
1372,
6134,
2589,
18,
8593,
12,
22,
13,
309,
2589,
18,
19485,
63,
21,
65,
422,
4014,
30,
316,
7944,
273,
2589,
18,
21772,
469,
30,
316,
7944,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
309,
2589,
18,
19485,
63,
22,
65,
422,
4014,
30,
596,
7944,
273,
2589,
18,
10283,
469,
30,
596,
7944,
273,
1696,
12,
9499,
18,
19485,
63,
22,
6487,
296,
91,
6134,
29796,
22703,
12,
267,
7944,
16,
596,
7944,
16,
2589,
18,
19485,
63,
23,
30,
5717,
309,
596,
7944,
480,
2589,
18,
10283,
30,
596,
7944,
18,
4412,
1435,
309,
316,
7944,
480,
2589,
18,
21772,
30,
316,
7944,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
309,
486,
2589,
18,
19485,
63,
23,
30,
14542,
1172,
2668,
9167,
30,
5790,
29796,
22703,
18,
2074,
642,
18,
71,
18,
267,
876,
768,
2187,
679,
2218,
8624,
1172,
2668,
1711,
332,
1069,
1372,
6134,
2589,
18,
8593,
12,
22,
13,
309,
2589,
18,
19485,
63,
21,
65,
422,
4014,
30,
316,
7944,
273,
2589,
18,
21772,
469,
30,
316,
7944,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
309,
2589,
18,
19485,
63,
22,
65,
422,
4014,
30,
596,
7944,
273,
2589,
18,
10283,
469,
30,
596,
7944,
273,
1696,
12,
9499,
18,
19485,
63,
22,
6487,
296,
91,
6134,
29796,
22703,
12,
267,
7944,
16,
596,
7944,
16,
2589,
18,
19485,
63,
2
] |
|
self.load_state_from(file)
|
self.load_state_from_string(data)
|
def upload(self, context): file = context.get_form_value('file')
|
42a08d7832e13344a0b3901159d885d6e6f2aac6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/42a08d7832e13344a0b3901159d885d6e6f2aac6/File.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
2890,
16,
819,
4672,
585,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
768,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
2890,
16,
819,
4672,
585,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
768,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
select count(bl_job.id) from bl_job,bl_runningjob where bl_runningjob.job_id=bl_job.id and bl_runningjob.task_id=bl_job.task_id and bl_job.name like '%LogCollect%' and bl_runningjob.status not in ('E','C','SA','SD');
|
select count(bl_job.id) from bl_job,bl_runningjob where bl_runningjob.job_id=bl_job.id and bl_runningjob.task_id=bl_job.task_id and bl_job.name like '%LogCollect%' and bl_runningjob.status not in ('E','C','A','SD') and bl_runningjob.closed='N';
|
def __call__(self): """ _operator()_
|
c3e9067d0f5cfffd1ac9d61af2642f2d3b53e8b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/c3e9067d0f5cfffd1ac9d61af2642f2d3b53e8b0/BlSimpleMonitors.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
3536,
389,
9497,
1435,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
3536,
389,
9497,
1435,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.alphaOff),
|
),
|
def getFadeOutIval(self, t=0.5, finishIval=None): """ Create a sequence that lerps the color out, then parents the fade to hidden """ self.noTransitions() self.loadFade()
|
d19ff570b4eb7c0e206963c289c6b28798a99f59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d19ff570b4eb7c0e206963c289c6b28798a99f59/Transitions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
2486,
1182,
45,
1125,
12,
2890,
16,
268,
33,
20,
18,
25,
16,
4076,
45,
1125,
33,
7036,
4672,
3536,
1788,
279,
3102,
716,
328,
264,
1121,
326,
2036,
596,
16,
1508,
6298,
326,
24444,
358,
5949,
3536,
365,
18,
2135,
23299,
1435,
365,
18,
945,
42,
2486,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
2486,
1182,
45,
1125,
12,
2890,
16,
268,
33,
20,
18,
25,
16,
4076,
45,
1125,
33,
7036,
4672,
3536,
1788,
279,
3102,
716,
328,
264,
1121,
326,
2036,
596,
16,
1508,
6298,
326,
24444,
358,
5949,
3536,
365,
18,
2135,
23299,
1435,
365,
18,
945,
42,
2486,
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
] |
return defer.deferToThread(socket.gethostbyname, name).chainDeferred(d)
|
return threads.deferToThread(socket.gethostbyname, name)
|
def getHostByName(self, name, timeout = 10): # XXX - Make this respect timeout return defer.deferToThread(socket.gethostbyname, name).chainDeferred(d)
|
702b60953389156b6b780a10b587e54e2808837d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/702b60953389156b6b780a10b587e54e2808837d/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8580,
5911,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8580,
5911,
12,
2890,
16,
508,
16,
2021,
273,
1728,
4672,
468,
11329,
300,
4344,
333,
8762,
2021,
327,
2220,
18,
18974,
774,
3830,
12,
7814,
18,
75,
546,
669,
1637,
529,
16,
508,
2934,
5639,
16886,
12,
72,
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
] |
>>> rev_merger(keys, rev_twdict)
|
>>> rev_merger(keys, rev_twdict, True)
|
def rev_merger(anno_dict, use_dict, verbose=True): """ merge extra bindings into reverse dict
|
2a50941be1a6c8368a3d1c517506ec114dd7579d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/2a50941be1a6c8368a3d1c517506ec114dd7579d/pyzh.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5588,
67,
6592,
693,
12,
1072,
83,
67,
1576,
16,
999,
67,
1576,
16,
3988,
33,
5510,
4672,
3536,
2691,
2870,
7394,
1368,
4219,
2065,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5588,
67,
6592,
693,
12,
1072,
83,
67,
1576,
16,
999,
67,
1576,
16,
3988,
33,
5510,
4672,
3536,
2691,
2870,
7394,
1368,
4219,
2065,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self):
|
@mock.patch('mysite.customs.bugtrackers.bugzilla.url2bug_data') def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self, mock_xml_opener):
|
def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self): # First, show that in the not-fresh case, we do hit the network. # Jack, could you write this? pass
|
ea119acae1bc5490e58f894d4a21399354b897e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/ea119acae1bc5490e58f894d4a21399354b897e3/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
632,
22851,
18,
2272,
2668,
81,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
414,
18,
925,
15990,
18,
718,
22,
925,
67,
892,
6134,
1652,
1842,
67,
925,
15990,
67,
5666,
310,
67,
15173,
67,
5185,
67,
430,
67,
10518,
67,
834,
67,
902,
67,
74,
1955,
12,
2890,
16,
5416,
67,
2902,
67,
25098,
4672,
468,
5783,
16,
2405,
716,
316,
326,
486,
17,
74,
1955,
648,
16,
732,
741,
6800,
326,
2483,
18,
468,
804,
484,
16,
3377,
1846,
1045,
333,
35,
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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18,
2272,
2668,
81,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
414,
18,
925,
15990,
18,
718,
22,
925,
67,
892,
6134,
1652,
1842,
67,
925,
15990,
67,
5666,
310,
67,
15173,
67,
5185,
67,
430,
67,
10518,
67,
834,
67,
902,
67,
74,
1955,
12,
2890,
16,
5416,
67,
2902,
67,
25098,
4672,
468,
5783,
16,
2405,
716,
316,
326,
486,
17,
74,
1955,
648,
16,
732,
741,
6800,
326,
2483,
18,
468,
804,
484,
16,
3377,
1846,
1045,
333,
35,
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
] |
for word, nbhits in browsed_words_in_colls[:-1]:
|
for phrase, nbhits in browsed_phrases_in_colls[:-1]:
|
def browse_pattern(req, colls, p, f, rg): """Browse either biliographic phrases or words indexes, and display it.""" ## do we search in words indexes? if not f: return browse_in_bibwords(req, p, f) ## prepare collection urlargument for later printing: p_orig = p urlarg_colls = "" for coll in colls: urlarg_colls += "&c=%s" % urllib.quote(coll) ## okay, "real browse" follows: browsed_words = browse_in_bibxxx(p, f, rg) while not browsed_words: # try again and again with shorter and shorter pattern: try: p = p[:-1] browsed_words = browse_in_bibxxx(p, f, rg) except: # probably there are no hits at all: req.write("<p>No values found.") return ## try to check hits in these particular collection selection: browsed_words_in_colls = [] for word,nbhits in browsed_words: word_hitlist = HitList() word_hitlists = search_pattern("", word, f, colls, 'e') for coll in colls: word_hitlist.union(word_hitlists[coll]) word_hitlist.calculate_nbhits() if word_hitlist._nbhits > 0: # okay, this word has some hits in colls, so add it: browsed_words_in_colls.append([word, word_hitlist._nbhits]) ## were there hits in collections? if browsed_words_in_colls == []: if browsed_words != []: print_warning(req, """<p>No match close to <em>%s</em> found in given collections. Please try different term.<p>Displaying matches in any collection...""" % p_orig, "") browsed_words_in_colls = browsed_words ## display results now: out = """<table class="searchresultsbox"> <thead> <tr> <th class="searchresultsboxheader" align="left"> hits </th> <th class="searchresultsboxheader" width="15"> </th> <th class="searchresultsboxheader" align="left"> %s </th> </tr> </thead> <tbody>""" % f if len(browsed_words_in_colls) == 1: # one hit only found: word, nbhits = browsed_words_in_colls[0][0], browsed_words_in_colls[0][1] out += """<tr> <td class="searchresultsboxbody" align="right"> %s </td> <td class="searchresultsboxbody" width="15"> </td> <td class="searchresultsboxbody" align="left"> <a href="%s/search.py?p=%%22%s%%22&f=%s%s">%s</a> </td> </tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) elif len(browsed_words_in_colls) > 1: # first display what was found but the last one: for word, nbhits in browsed_words_in_colls[:-1]: out += """<tr> <td class="searchresultsboxbody" align="right"> %s </td> <td class="searchresultsboxbody" width="15"> </td> <td class="searchresultsboxbody" align="left"> <a href="%s/search.py?p=%%22%s%%22&f=%s%s">%s</a> </td> </tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) # now display last hit as "next term": word, nbhits = browsed_words_in_colls[-1] out += """<tr><td colspan="2" class="normal"> </td> <td class="normal"> <img src="%s/img/sn.gif" alt="" border="0"> next %s: <a href="%s/search.py?search=Browse&p=%s&f=%s%s">%s</a> </td> </tr>""" % (weburl, f, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) out += """</tbody> </table>""" req.write(out) return
|
535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
4951,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
3344,
324,
15700,
16983,
31413,
578,
4511,
5596,
16,
471,
2562,
518,
12123,
7541,
741,
732,
1623,
316,
4511,
5596,
35,
309,
486,
284,
30,
327,
21670,
67,
267,
67,
70,
495,
3753,
12,
3658,
16,
293,
16,
284,
13,
7541,
2911,
1849,
880,
3446,
364,
5137,
19171,
30,
293,
67,
4949,
273,
293,
880,
3175,
67,
1293,
3251,
273,
1408,
364,
4508,
316,
645,
3251,
30,
880,
3175,
67,
1293,
3251,
1011,
7830,
71,
5095,
87,
6,
738,
11527,
18,
6889,
12,
12910,
13,
7541,
21194,
16,
315,
7688,
21670,
6,
13040,
30,
324,
492,
730,
67,
3753,
273,
21670,
67,
267,
67,
70,
495,
18310,
12,
84,
16,
284,
16,
14524,
13,
1323,
486,
324,
492,
730,
67,
3753,
30,
468,
775,
3382,
471,
3382,
598,
19623,
471,
19623,
1936,
30,
775,
30,
293,
273,
293,
10531,
17,
21,
65,
324,
492,
730,
67,
3753,
273,
21670,
67,
267,
67,
70,
495,
18310,
12,
84,
16,
284,
16,
14524,
13,
1335,
30,
468,
8656,
1915,
854,
1158,
11076,
622,
777,
30,
1111,
18,
2626,
2932,
32,
84,
34,
2279,
924,
1392,
1199,
13,
327,
7541,
775,
358,
866,
11076,
316,
4259,
6826,
1849,
4421,
30,
324,
492,
730,
67,
3753,
67,
267,
67,
1293,
3251,
273,
5378,
364,
2076,
16,
6423,
15173,
316,
324,
492,
730,
67,
3753,
30,
2076,
67,
15989,
1098,
273,
670,
305,
682,
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,
21670,
67,
4951,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
3344,
324,
15700,
16983,
31413,
578,
4511,
5596,
16,
471,
2562,
518,
12123,
7541,
741,
732,
1623,
316,
4511,
5596,
35,
309,
486,
284,
30,
327,
21670,
67,
267,
67,
70,
495,
3753,
12,
3658,
16,
293,
16,
284,
13,
7541,
2911,
1849,
880,
3446,
364,
5137,
19171,
30,
293,
67,
4949,
273,
293,
880,
3175,
67,
1293,
3251,
273,
1408,
364,
4508,
316,
645,
3251,
30,
880,
3175,
67,
1293,
3251,
1011,
7830,
71,
5095,
87,
6,
738,
11527,
18,
6889,
12,
12910,
13,
7541,
21194,
16,
315,
7688,
21670,
6,
13040,
30,
324,
492,
730,
67,
3753,
273,
21670,
2
] |
module = getattr(getattr(package, nom), \ nom.capitalize())
|
module = getattr(getattr(package, nom), "Module")
|
def charger_module(self, m_type, nom): """Méthode permettant de charger un module en fonction de son type et de son nom. Si le module est déjà chargé, on ne fait rien.
|
0d6dc5ebd9c0f6b77ce016ac0aadcb46a1efb756 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5973/0d6dc5ebd9c0f6b77ce016ac0aadcb46a1efb756/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
693,
67,
2978,
12,
2890,
16,
312,
67,
723,
16,
12457,
4672,
3536,
49,
132,
107,
451,
390,
4641,
278,
88,
970,
443,
1149,
693,
640,
1605,
570,
284,
265,
349,
443,
18882,
618,
3393,
443,
18882,
12457,
18,
225,
27834,
884,
1605,
4387,
302,
132,
107,
78,
132,
259,
1149,
75,
132,
107,
16,
603,
1073,
284,
1540,
12347,
275,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
693,
67,
2978,
12,
2890,
16,
312,
67,
723,
16,
12457,
4672,
3536,
49,
132,
107,
451,
390,
4641,
278,
88,
970,
443,
1149,
693,
640,
1605,
570,
284,
265,
349,
443,
18882,
618,
3393,
443,
18882,
12457,
18,
225,
27834,
884,
1605,
4387,
302,
132,
107,
78,
132,
259,
1149,
75,
132,
107,
16,
603,
1073,
284,
1540,
12347,
275,
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
] |
self.putrequest(method, url)
|
if (headers.has_key('Host') or [k for k in headers.iterkeys() if k.lower() == "host"]): self.putrequest(method, url, skip_host=1) else: self.putrequest(method, url)
|
def _send_request(self, method, url, body, headers): self.putrequest(method, url)
|
9ac184008fd86d3fe878e280b8a676065875c567 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9ac184008fd86d3fe878e280b8a676065875c567/httplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
2293,
12,
2890,
16,
707,
16,
880,
16,
1417,
16,
1607,
4672,
365,
18,
458,
2293,
12,
2039,
16,
880,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
2293,
12,
2890,
16,
707,
16,
880,
16,
1417,
16,
1607,
4672,
365,
18,
458,
2293,
12,
2039,
16,
880,
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
] |
pass def WriteClientSideValidationCode(self, file): """Writes the validation code for an argument.""" pass
|
if self.type == 'GLsizei' or self.type == 'GLsizeiptr': file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n")
|
def WriteValidationCode(self, file): """Writes the validation code for an argument.""" pass
|
85c6d6739a81098c35cb35c3430f038ed4f5ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85c6d6739a81098c35cb35c3430f038ed4f5ddab/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
4354,
1085,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
3379,
981,
364,
392,
1237,
12123,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
4354,
1085,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
3379,
981,
364,
392,
1237,
12123,
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
] |
def get(self):
|
def post(self):
|
def get(self): user = users.get_current_user() if user: key = self.request.get('key') correct = int(self.request.get('correct')) userExercise = db.get(key) if (correct==0): userExercise.streak =0 userExercise.put() else: self.redirect(users.create_login_url(self.request.uri))
|
97a329fa720bf84a8a44977480527e7fa33e5b34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/97a329fa720bf84a8a44977480527e7fa33e5b34/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
309,
729,
30,
498,
273,
365,
18,
2293,
18,
588,
2668,
856,
6134,
3434,
273,
509,
12,
2890,
18,
2293,
18,
588,
2668,
6746,
26112,
729,
424,
20603,
273,
1319,
18,
588,
12,
856,
13,
309,
261,
6746,
631,
20,
4672,
729,
424,
20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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
309,
729,
30,
498,
273,
365,
18,
2293,
18,
588,
2668,
856,
6134,
3434,
273,
509,
12,
2890,
18,
2293,
18,
588,
2668,
6746,
26112,
729,
424,
20603,
273,
1319,
18,
588,
12,
856,
13,
309,
261,
6746,
631,
20,
4672,
729,
424,
20603,
18,
334,
870,
273,
20,
729,
424,
20603,
18,
458,
1435,
469,
30,
365,
18,
7590,
12,
5577,
18,
2640,
67,
5819,
67,
718,
12,
2890,
18,
2293,
18,
1650,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if finalimg_width > self.available_image_width(): self.hscroll.show() else: self.hscroll.hide() if finalimg_height > self.available_image_height(): self.vscroll.show() else: self.vscroll.hide() self.layout.set_size(finalimg_width, finalimg_height) self.center_image(finalimg_width, finalimg_height)
|
if self.orientation == 0: self.currimg_width, self.currimg_height = finalimg_width, finalimg_height else: self.currimg_width, self.currimg_height = finalimg_height, finalimg_width self.show_scrollbars_if_needed() self.layout.set_size(self.currimg_width, self.currimg_height) self.center_image()
|
def put_zoom_image_to_window(self): previmg = self.currimg # Always start with the original image to preserve quality! # Calculate image size: finalimg_width = int(self.originalimg.get_width() * self.zoomratio) finalimg_height = int(self.originalimg.get_height() * self.zoomratio) # If self.zoomratio < 1, scale first so that rotating/flipping is performed # on the smaller image for speed improvements if self.zoomratio < 1: # Scale image: if self.originalimg.get_has_alpha() == False: self.currimg = self.originalimg.scale_simple(finalimg_width, finalimg_height, self.zoom_quality) else: colormap = self.imageview.get_colormap() light_grey = colormap.alloc_color('#666666', True, True) dark_grey = colormap.alloc_color('#999999', True, True) self.currimg = self.originalimg.composite_color_simple(finalimg_width, finalimg_height, self.zoom_quality, 255, 8, light_grey.pixel, dark_grey.pixel) # Now check if we need any rotating/flipping if self.orientation == 1: if self.location == 0: self.currimg = self.image_rotate(self.currimg, 270) self.currimg = self.image_flip(self.currimg, False) elif self.location == 1: self.currimg = self.image_rotate(self.currimg, 270) elif self.location == 2: self.currimg = self.image_rotate(self.currimg, 270) self.currimg = self.image_flip(self.currimg, True) elif self.location == 3: self.currimg = self.image_rotate(self.currimg, 90) else: if self.location == 1: self.currimg = self.image_flip(self.currimg, False) elif self.location == 2: self.currimg = self.image_rotate(self.currimg, 180) elif self.location == 3: self.currimg = self.image_flip(self.currimg, True) # If self.zoomratio >= 1, perform any rotating/flipping on the smaller image # (before scaling up) for speed improvements if self.zoomratio >= 1: # Check if we need any rotating/flipping if self.orientation == 1: finalimg_width, finalimg_height = finalimg_height, finalimg_width if self.location == 0: self.currimg = self.image_rotate(self.originalimg, 270) self.currimg = self.image_flip(self.currimg, False) elif self.location == 1: self.currimg = self.image_rotate(self.originalimg, 270) elif self.location == 2: self.currimg = self.image_rotate(self.originalimg, 270) self.currimg = self.image_flip(self.currimg, True) elif self.location == 3: self.currimg = self.image_rotate(self.originalimg, 90) else: if self.location == 0: self.currimg = self.originalimg elif self.location == 1: self.currimg = self.image_flip(self.originalimg, False) elif self.location == 2: self.currimg = self.image_rotate(self.originalimg, 180) elif self.location == 3: self.currimg = self.image_flip(self.originalimg, True) # Scale image: if self.originalimg.get_has_alpha() == False: if self.zoomratio != 1: self.currimg = self.currimg.scale_simple(finalimg_width, finalimg_height, self.zoom_quality) else: colormap = self.imageview.get_colormap() light_grey = colormap.alloc_color('#666666', True, True) dark_grey = colormap.alloc_color('#999999', True, True) self.currimg = self.currimg.composite_color_simple(finalimg_width, finalimg_height, self.zoom_quality, 255, 8, light_grey.pixel, dark_grey.pixel) if finalimg_width > self.available_image_width(): self.hscroll.show() else: self.hscroll.hide() if finalimg_height > self.available_image_height(): self.vscroll.show() else: self.vscroll.hide() self.layout.set_size(finalimg_width, finalimg_height) self.center_image(finalimg_width, finalimg_height) self.imageview.set_from_pixbuf(self.currimg) self.first_image_load = False # Clean up (free memory) because I'm lazy gc.collect() return
|
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
14932,
67,
2730,
67,
869,
67,
5668,
12,
2890,
4672,
2807,
6081,
273,
365,
18,
17016,
6081,
468,
14178,
787,
598,
326,
2282,
1316,
358,
9420,
9312,
5,
468,
9029,
1316,
963,
30,
727,
6081,
67,
2819,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
2819,
1435,
380,
365,
18,
14932,
9847,
13,
727,
6081,
67,
4210,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
4210,
1435,
380,
365,
18,
14932,
9847,
13,
468,
971,
365,
18,
14932,
9847,
411,
404,
16,
3159,
1122,
1427,
716,
4168,
1776,
19,
12357,
1382,
353,
9591,
468,
603,
326,
10648,
1316,
364,
8632,
13069,
90,
17110,
309,
365,
18,
14932,
9847,
411,
404,
30,
468,
12591,
1316,
30,
309,
365,
18,
8830,
6081,
18,
588,
67,
5332,
67,
5429,
1435,
422,
1083,
30,
365,
18,
17016,
6081,
273,
365,
18,
8830,
6081,
18,
5864,
67,
9647,
12,
6385,
6081,
67,
2819,
16,
727,
6081,
67,
4210,
16,
365,
18,
14932,
67,
16495,
13,
469,
30,
24806,
273,
365,
18,
2730,
1945,
18,
588,
67,
1293,
18804,
1435,
9052,
67,
11556,
93,
273,
24806,
18,
9853,
67,
3266,
2668,
7,
31684,
6028,
2187,
1053,
16,
1053,
13,
23433,
67,
11556,
93,
273,
24806,
18,
9853,
67,
3266,
2668,
7,
22866,
2187,
1053,
16,
1053,
13,
365,
18,
17016,
6081,
273,
365,
18,
8830,
6081,
18,
27676,
67,
3266,
67,
9647,
12,
6385,
6081,
67,
2819,
16,
727,
6081,
67,
4210,
16,
365,
18,
14932,
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,
1378,
67,
14932,
67,
2730,
67,
869,
67,
5668,
12,
2890,
4672,
2807,
6081,
273,
365,
18,
17016,
6081,
468,
14178,
787,
598,
326,
2282,
1316,
358,
9420,
9312,
5,
468,
9029,
1316,
963,
30,
727,
6081,
67,
2819,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
2819,
1435,
380,
365,
18,
14932,
9847,
13,
727,
6081,
67,
4210,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
4210,
1435,
380,
365,
18,
14932,
9847,
13,
468,
971,
365,
18,
14932,
9847,
411,
404,
16,
3159,
1122,
1427,
716,
4168,
1776,
19,
12357,
1382,
353,
9591,
468,
603,
326,
10648,
1316,
364,
8632,
13069,
90,
17110,
309,
365,
18,
14932,
9847,
411,
404,
30,
468,
2
] |
self._debug('Returning: \'%s\'' % retval)
|
def read(self, length, offset): self._debug('opcode: read | path: %s | len: %d | offset: %d' % (self._path, length, offset))
|
9a00bcecc671abd15e689eebdedc4ee47e0ef5d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/9a00bcecc671abd15e689eebdedc4ee47e0ef5d3/fusefile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
769,
16,
1384,
4672,
365,
6315,
4148,
2668,
556,
710,
30,
855,
571,
589,
30,
738,
87,
571,
562,
30,
738,
72,
571,
1384,
30,
738,
72,
11,
738,
261,
2890,
6315,
803,
16,
769,
16,
1384,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
769,
16,
1384,
4672,
365,
6315,
4148,
2668,
556,
710,
30,
855,
571,
589,
30,
738,
87,
571,
562,
30,
738,
72,
571,
1384,
30,
738,
72,
11,
738,
261,
2890,
6315,
803,
16,
769,
16,
1384,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.exportAttributes(outfile, level, namespace_, name_='CellSet')
|
self.exportAttributes(outfile, level, [], namespace_, name_='CellSet')
|
def export(self, outfile, level, namespace_='', name_='CellSet', namespacedef_=''): showIndent(outfile, level) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) self.exportAttributes(outfile, level, namespace_, name_='CellSet') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="CellSet"') if self.hasContent_(): outfile.write('>\n') self.exportChildren(outfile, level + 1, namespace_, name_) showIndent(outfile, level) outfile.write('</%s%s>\n' % (namespace_, name_)) else: outfile.write('/>\n')
|
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
4020,
694,
2187,
1981,
536,
67,
2218,
11,
4672,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
32,
9,
87,
9,
87,
9,
87,
11,
738,
261,
4937,
67,
16,
508,
67,
16,
1981,
536,
67,
471,
296,
296,
397,
1981,
536,
67,
578,
10226,
8623,
365,
18,
6530,
2498,
12,
26050,
16,
1801,
16,
5378,
16,
1981,
67,
16,
508,
67,
2218,
4020,
694,
6134,
8756,
18,
2626,
2668,
12302,
30,
29262,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976,
21,
19,
4201,
3078,
17,
1336,
5187,
13,
8756,
18,
2626,
2668,
619,
7722,
30,
723,
1546,
4020,
694,
5187,
13,
309,
365,
18,
5332,
1350,
67,
13332,
8756,
18,
2626,
2668,
5333,
82,
6134,
365,
18,
6530,
4212,
12,
26050,
16,
1801,
397,
404,
16,
1981,
67,
16,
508,
67,
13,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
1757,
9,
87,
9,
87,
5333,
82,
11,
738,
261,
4937,
67,
16,
508,
67,
3719,
469,
30,
8756,
18,
2626,
2668,
19,
5333,
82,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
4020,
694,
2187,
1981,
536,
67,
2218,
11,
4672,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
32,
9,
87,
9,
87,
9,
87,
11,
738,
261,
4937,
67,
16,
508,
67,
16,
1981,
536,
67,
471,
296,
296,
397,
1981,
536,
67,
578,
10226,
8623,
365,
18,
6530,
2498,
12,
26050,
16,
1801,
16,
5378,
16,
1981,
67,
16,
508,
67,
2218,
4020,
694,
6134,
8756,
18,
2626,
2668,
12302,
30,
29262,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976,
21,
19,
4201,
3078,
17,
1336,
5187,
13,
8756,
18,
2626,
2668,
619,
7722,
30,
723,
2
] |
if abs(pearson) < self.minPearson: return
|
if abs(pearson) <= self.minPearson: return
|
def addLinePearson(self, xDataList, yDataList, countX, countY, actual, sum): expected = float(countX*countY)/float(sum) if actual == expected == 0: return elif expected == 0: # if expected == 0 we have to solve division by zero. In reverse example (when actual == 0) pearson = -expected/sqrt(expected) pearson = actual/sqrt(actual) else: pearson = (actual - expected) / sqrt(expected)
|
770e6b5e83c272a7f8ca88d948a9b503fcdc223b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/770e6b5e83c272a7f8ca88d948a9b503fcdc223b/OWSieveMultigramGraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26772,
52,
2091,
816,
12,
2890,
16,
619,
24274,
16,
677,
24274,
16,
1056,
60,
16,
1056,
61,
16,
3214,
16,
2142,
4672,
2665,
273,
1431,
12,
1883,
60,
14,
1883,
61,
13176,
5659,
12,
1364,
13,
309,
3214,
422,
2665,
422,
374,
30,
327,
1327,
2665,
422,
374,
30,
377,
468,
309,
2665,
422,
374,
732,
1240,
358,
12439,
16536,
635,
3634,
18,
657,
4219,
3454,
261,
13723,
3214,
422,
374,
13,
293,
2091,
816,
273,
300,
3825,
19,
24492,
12,
3825,
13,
293,
2091,
816,
273,
3214,
19,
24492,
12,
18672,
13,
469,
30,
293,
2091,
816,
273,
261,
18672,
300,
2665,
13,
342,
5700,
12,
3825,
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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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26772,
52,
2091,
816,
12,
2890,
16,
619,
24274,
16,
677,
24274,
16,
1056,
60,
16,
1056,
61,
16,
3214,
16,
2142,
4672,
2665,
273,
1431,
12,
1883,
60,
14,
1883,
61,
13176,
5659,
12,
1364,
13,
309,
3214,
422,
2665,
422,
374,
30,
327,
1327,
2665,
422,
374,
30,
377,
468,
309,
2665,
422,
374,
732,
1240,
358,
12439,
16536,
635,
3634,
18,
657,
4219,
3454,
261,
13723,
3214,
422,
374,
13,
293,
2091,
816,
273,
300,
3825,
19,
24492,
12,
3825,
13,
293,
2091,
816,
273,
3214,
19,
24492,
12,
18672,
13,
469,
30,
293,
2091,
816,
273,
261,
18672,
300,
2665,
13,
342,
5700,
12,
3825,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.set_bugzilla_owner(identity.current.user.email,
|
self._set_bugzilla_owner(identity.current.user.email,
|
def toggle_owner(self, pkg_listing_id): '''Orphan package or set the owner to the logged in user.
|
50792bd5c76d57799fd3cea5c0ee3a7a9f714113 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9953/50792bd5c76d57799fd3cea5c0ee3a7a9f714113/dispatcher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
67,
8443,
12,
2890,
16,
3475,
67,
21228,
67,
350,
4672,
9163,
30509,
2181,
578,
444,
326,
3410,
358,
326,
7545,
316,
729,
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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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,
10486,
67,
8443,
12,
2890,
16,
3475,
67,
21228,
67,
350,
4672,
9163,
30509,
2181,
578,
444,
326,
3410,
358,
326,
7545,
316,
729,
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
] |
description=default_workflow.description))
|
description=desc))
|
def available_workflows(self): vocab_factory = getUtility(IVocabularyFactory, name="plone.app.vocabularies.Workflows") workflows = [dict(id=v.value, title=v.token) for v in vocab_factory(self.context)] if self.type_id: # Only offer a default workflow option on a real type default_workflow = self.default_workflow(False) workflows.insert(0, dict(id='(Default)', title=_(u"label_default_workflow_title", default=u"Default workflow (${title})", mapping=dict(title=pmf(default_workflow.title))), description=default_workflow.description))
|
e93898a37317bc411a268b219c5222f0cda90440 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12189/e93898a37317bc411a268b219c5222f0cda90440/types.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
67,
13815,
87,
12,
2890,
4672,
9623,
67,
6848,
273,
336,
6497,
12,
8188,
23348,
1733,
16,
508,
1546,
412,
476,
18,
2910,
18,
15913,
2490,
606,
18,
8484,
87,
7923,
31738,
273,
306,
1576,
12,
350,
33,
90,
18,
1132,
16,
2077,
33,
90,
18,
2316,
13,
364,
331,
316,
9623,
67,
6848,
12,
2890,
18,
2472,
25887,
309,
365,
18,
723,
67,
350,
30,
468,
5098,
10067,
279,
805,
6095,
1456,
603,
279,
2863,
618,
805,
67,
13815,
273,
365,
18,
1886,
67,
13815,
12,
8381,
13,
31738,
18,
6387,
12,
20,
16,
2065,
12,
350,
2218,
12,
1868,
13,
2187,
2077,
33,
67,
12,
89,
6,
1925,
67,
1886,
67,
13815,
67,
2649,
3113,
805,
33,
89,
6,
1868,
6095,
9253,
95,
2649,
12646,
16,
2874,
33,
1576,
12,
2649,
33,
7755,
74,
12,
1886,
67,
13815,
18,
2649,
3719,
3631,
2477,
33,
1886,
67,
13815,
18,
3384,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
67,
13815,
87,
12,
2890,
4672,
9623,
67,
6848,
273,
336,
6497,
12,
8188,
23348,
1733,
16,
508,
1546,
412,
476,
18,
2910,
18,
15913,
2490,
606,
18,
8484,
87,
7923,
31738,
273,
306,
1576,
12,
350,
33,
90,
18,
1132,
16,
2077,
33,
90,
18,
2316,
13,
364,
331,
316,
9623,
67,
6848,
12,
2890,
18,
2472,
25887,
309,
365,
18,
723,
67,
350,
30,
468,
5098,
10067,
279,
805,
6095,
1456,
603,
279,
2863,
618,
805,
67,
13815,
273,
365,
18,
1886,
67,
13815,
12,
8381,
13,
31738,
18,
6387,
12,
20,
16,
2065,
12,
350,
2218,
12,
1868,
13,
2187,
2077,
33,
67,
12,
89,
6,
1925,
67,
1886,
67,
13815,
67,
2649,
3113,
2
] |
ParseDbg.add("parse_desc [DESC] \"%s\" not active" % plugin)
|
self.pdbg("parse_desc [DESC] \"%s\" not active" % plugin) self.parse_dbg_indent = self.parse_dbg_indent[:-2]
|
def parse_desc(self): """match patterns against the description string in the plugin header.""" match = re_desc_fun.match(self.buffer) if match: p = match.span(0)[1] self.buffer = self.buffer[p:] ParseDbg.add("parse_desc new buffer = %s" % self.buffer) bang = match.group(1) # means to invert the meaning of the match pat = match.group(2) plugin = C.cname(match.group(3)) expr = "[DESC %s/%s/ %s]" % (bang, pat, plugin) ParseDbg.add("parse_desc, expr=%s" % expr) if not plugin in self.active: ParseDbg.add("parse_desc [DESC] \"%s\" not active" % plugin) return(False, expr) # file does not exist if self.datadir == None: # this case is reached when doing fromfile checks, # which do not have access to the actual plugin, so we # always assume the test is merely for file existence, # to err on the side of caution return(True, expr) re_pat = re.compile(pat) desc = plugin_description(self.datadir.find_path(plugin)) bool = (re_pat.search(desc) != None) if bang == "!": bool = not bool ParseDbg.add("parse_desc [DESC] returning: (%s, %s)" % (bool, expr)) return(bool, expr) self.parse_error(_["Invalid [DESC] function: %s"] % self.buffer) return(None, None)
|
57b9dbd56a9e011788ef60900e9a91776ddbb48d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2827/57b9dbd56a9e011788ef60900e9a91776ddbb48d/mlox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
5569,
12,
2890,
4672,
3536,
1916,
6884,
5314,
326,
2477,
533,
316,
326,
1909,
1446,
12123,
845,
273,
283,
67,
5569,
67,
12125,
18,
1916,
12,
2890,
18,
4106,
13,
309,
845,
30,
293,
273,
845,
18,
3969,
12,
20,
25146,
21,
65,
365,
18,
4106,
273,
365,
18,
4106,
63,
84,
26894,
2884,
4331,
75,
18,
1289,
2932,
2670,
67,
5569,
394,
1613,
273,
738,
87,
6,
738,
365,
18,
4106,
13,
324,
539,
273,
845,
18,
1655,
12,
21,
13,
468,
4696,
358,
9848,
326,
12256,
434,
326,
845,
9670,
273,
845,
18,
1655,
12,
22,
13,
1909,
273,
385,
18,
71,
529,
12,
1916,
18,
1655,
12,
23,
3719,
3065,
273,
5158,
10964,
738,
87,
5258,
87,
19,
738,
87,
4279,
738,
261,
70,
539,
16,
9670,
16,
1909,
13,
2884,
4331,
75,
18,
1289,
2932,
2670,
67,
5569,
16,
3065,
5095,
87,
6,
738,
3065,
13,
309,
486,
1909,
316,
365,
18,
3535,
30,
365,
18,
17414,
75,
2932,
2670,
67,
5569,
306,
10964,
65,
22049,
87,
2412,
486,
2695,
6,
738,
1909,
13,
365,
18,
2670,
67,
1966,
75,
67,
9355,
273,
365,
18,
2670,
67,
1966,
75,
67,
9355,
10531,
17,
22,
65,
327,
12,
8381,
16,
3065,
13,
468,
585,
1552,
486,
1005,
309,
365,
18,
3404,
361,
481,
422,
599,
30,
468,
333,
648,
353,
8675,
1347,
9957,
628,
768,
4271,
16,
468,
1492,
741,
486,
1240,
2006,
358,
326,
3214,
1909,
16,
1427,
732,
468,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
5569,
12,
2890,
4672,
3536,
1916,
6884,
5314,
326,
2477,
533,
316,
326,
1909,
1446,
12123,
845,
273,
283,
67,
5569,
67,
12125,
18,
1916,
12,
2890,
18,
4106,
13,
309,
845,
30,
293,
273,
845,
18,
3969,
12,
20,
25146,
21,
65,
365,
18,
4106,
273,
365,
18,
4106,
63,
84,
26894,
2884,
4331,
75,
18,
1289,
2932,
2670,
67,
5569,
394,
1613,
273,
738,
87,
6,
738,
365,
18,
4106,
13,
324,
539,
273,
845,
18,
1655,
12,
21,
13,
468,
4696,
358,
9848,
326,
12256,
434,
326,
845,
9670,
273,
845,
18,
1655,
12,
22,
13,
1909,
273,
385,
18,
71,
529,
12,
1916,
18,
1655,
12,
23,
3719,
3065,
273,
5158,
10964,
2
] |
if userhome.endswith('/'): i += 1
|
userhome = userhome.rstrip('/')
|
def expanduser(path): """Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.""" if not path.startswith('~'): return path i = path.find('/', 1) if i < 0: i = len(path) if i == 1: if 'HOME' not in os.environ: import pwd userhome = pwd.getpwuid(os.getuid()).pw_dir else: userhome = os.environ['HOME'] else: import pwd try: pwent = pwd.getpwnam(path[1:i]) except KeyError: return path userhome = pwent.pw_dir if userhome.endswith('/'): i += 1 return userhome + path[i:]
|
8d1e5bffc1249cdb5a8ced25e6f89328e7366290 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8d1e5bffc1249cdb5a8ced25e6f89328e7366290/posixpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14717,
12,
803,
4672,
3536,
12271,
4871,
471,
4871,
1355,
16171,
87,
18,
225,
971,
729,
578,
271,
14209,
353,
5917,
16,
741,
5083,
12123,
309,
486,
589,
18,
17514,
1918,
2668,
20206,
4672,
327,
589,
277,
273,
589,
18,
4720,
2668,
19,
2187,
404,
13,
309,
277,
411,
374,
30,
277,
273,
562,
12,
803,
13,
309,
277,
422,
404,
30,
309,
296,
14209,
11,
486,
316,
1140,
18,
28684,
30,
1930,
14720,
729,
8712,
273,
14720,
18,
588,
14921,
1911,
12,
538,
18,
588,
1911,
1435,
2934,
14921,
67,
1214,
469,
30,
729,
8712,
273,
1140,
18,
28684,
3292,
14209,
3546,
469,
30,
1930,
14720,
775,
30,
8772,
319,
273,
14720,
18,
588,
14921,
17808,
12,
803,
63,
21,
30,
77,
5717,
1335,
4999,
30,
327,
589,
729,
8712,
273,
8772,
319,
18,
14921,
67,
1214,
729,
8712,
273,
729,
8712,
18,
86,
6406,
2668,
2473,
13,
327,
729,
8712,
397,
589,
63,
77,
26894,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14717,
12,
803,
4672,
3536,
12271,
4871,
471,
4871,
1355,
16171,
87,
18,
225,
971,
729,
578,
271,
14209,
353,
5917,
16,
741,
5083,
12123,
309,
486,
589,
18,
17514,
1918,
2668,
20206,
4672,
327,
589,
277,
273,
589,
18,
4720,
2668,
19,
2187,
404,
13,
309,
277,
411,
374,
30,
277,
273,
562,
12,
803,
13,
309,
277,
422,
404,
30,
309,
296,
14209,
11,
486,
316,
1140,
18,
28684,
30,
1930,
14720,
729,
8712,
273,
14720,
18,
588,
14921,
1911,
12,
538,
18,
588,
1911,
1435,
2934,
14921,
67,
1214,
469,
30,
729,
8712,
273,
1140,
18,
28684,
3292,
14209,
3546,
469,
30,
1930,
14720,
775,
30,
8772,
319,
273,
14720,
18,
588,
14921,
17808,
12,
2
] |
via = req.getHFBody('via', 0)
|
via = req.getHFBodys('via')[0]
|
def recvRequest(self, req): if req.getHFBody('to').getTag() != None: # Request within dialog, but no such dialog return (req.genResponse(481, 'Call Leg/Transaction Does Not Exist'), None, None) if req.getMethod() == 'INVITE': # New dialog if req.countHFs('via') > 1: via = req.getHFBody('via', 1) else: via = req.getHFBody('via', 0) remote_ip = via.getTAddr()[0] source = req.getSource() if self.global_config['auth_enable'] and self.global_config['digest_auth'] and \ req.countHFs('authorization') == 0: resp = req.genResponse(401, 'Unauthorized') header = SipHeader(name = 'www-authenticate') header.getBody().realm = req.getRURI().host resp.appendHeader(header) return (resp, None, None) if self.global_config.has_key('accept_ips') and source[0] not in self.global_config['accept_ips']: return (req.genResponse(403, 'Forbidden'), None, None) cc = CallController(remote_ip, source, self.global_config) rval = cc.uaA.recvRequest(req) self.ccmap.append(cc) return rval if req.getMethod() in ('NOTIFY', 'PING'): # Whynot? return (req.genResponse(200, 'OK'), None, None) return (req.genResponse(501, 'Not Implemented'), None, None)
|
b521da745d3dbd0c35f0169d3978bfe8a397412b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8853/b521da745d3dbd0c35f0169d3978bfe8a397412b/b2bua_radius.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
691,
12,
2890,
16,
1111,
4672,
309,
1111,
18,
588,
44,
42,
2250,
2668,
869,
16063,
588,
1805,
1435,
480,
599,
30,
468,
1567,
3470,
6176,
16,
1496,
1158,
4123,
6176,
327,
261,
3658,
18,
4507,
1064,
12,
8875,
21,
16,
296,
1477,
17167,
19,
3342,
9637,
2288,
22558,
19899,
599,
16,
599,
13,
309,
1111,
18,
588,
1305,
1435,
422,
296,
706,
58,
5398,
4278,
468,
1166,
6176,
309,
1111,
18,
1883,
44,
12432,
2668,
21985,
6134,
405,
404,
30,
3970,
273,
1111,
18,
588,
44,
42,
2250,
2668,
21985,
2187,
404,
13,
469,
30,
3970,
273,
1111,
18,
588,
44,
42,
2250,
87,
2668,
21985,
6134,
63,
20,
65,
2632,
67,
625,
273,
3970,
18,
588,
56,
3178,
1435,
63,
20,
65,
1084,
273,
1111,
18,
588,
1830,
1435,
309,
365,
18,
6347,
67,
1425,
3292,
1944,
67,
7589,
3546,
471,
365,
18,
6347,
67,
1425,
3292,
10171,
67,
1944,
3546,
471,
521,
1111,
18,
1883,
44,
12432,
2668,
12218,
6134,
422,
374,
30,
1718,
273,
1111,
18,
4507,
1064,
12,
27002,
16,
296,
13981,
6134,
1446,
273,
13475,
1864,
12,
529,
273,
296,
5591,
17,
22035,
6134,
1446,
18,
588,
2250,
7675,
24056,
273,
1111,
18,
588,
54,
3098,
7675,
2564,
1718,
18,
6923,
1864,
12,
3374,
13,
327,
261,
12243,
16,
599,
16,
599,
13,
309,
365,
18,
6347,
67,
1425,
18,
5332,
67,
856,
2668,
9436,
67,
7146,
6134,
471,
1084,
63,
20,
65,
486,
316,
365,
18,
6347,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
691,
12,
2890,
16,
1111,
4672,
309,
1111,
18,
588,
44,
42,
2250,
2668,
869,
16063,
588,
1805,
1435,
480,
599,
30,
468,
1567,
3470,
6176,
16,
1496,
1158,
4123,
6176,
327,
261,
3658,
18,
4507,
1064,
12,
8875,
21,
16,
296,
1477,
17167,
19,
3342,
9637,
2288,
22558,
19899,
599,
16,
599,
13,
309,
1111,
18,
588,
1305,
1435,
422,
296,
706,
58,
5398,
4278,
468,
1166,
6176,
309,
1111,
18,
1883,
44,
12432,
2668,
21985,
6134,
405,
404,
30,
3970,
273,
1111,
18,
588,
44,
42,
2250,
2668,
21985,
2187,
404,
13,
469,
30,
3970,
273,
1111,
18,
588,
44,
42,
2250,
87,
2668,
21985,
6134,
63,
20,
65,
2632,
67,
625,
273,
3970,
18,
2
] |
assert doId is None or doId == self.__preallocDoId doId=self.__preallocDoId
|
assert doId is None or doId == self.doId doId=self.doId
|
def generateOtpObject(self, parentId, zoneId, optionalFields=[], doId=None): assert self.notify.debugStateCall(self) # have we already allocated a doId? if self.__preallocDoId: assert doId is None or doId == self.__preallocDoId doId=self.__preallocDoId self.__preallocDoId = 0
|
3c65c77a34e35786d0c54ba2060ea8c653a860e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/3c65c77a34e35786d0c54ba2060ea8c653a860e3/DistributedObjectAI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
51,
6834,
921,
12,
2890,
16,
11582,
16,
29939,
16,
3129,
2314,
22850,
6487,
741,
548,
33,
7036,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
468,
1240,
732,
1818,
11977,
279,
741,
548,
35,
309,
365,
16186,
1484,
9853,
3244,
548,
30,
1815,
741,
548,
353,
599,
578,
741,
548,
422,
365,
18,
2896,
548,
741,
548,
33,
2890,
18,
2896,
548,
365,
16186,
1484,
9853,
3244,
548,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2103,
51,
6834,
921,
12,
2890,
16,
11582,
16,
29939,
16,
3129,
2314,
22850,
6487,
741,
548,
33,
7036,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
468,
1240,
732,
1818,
11977,
279,
741,
548,
35,
309,
365,
16186,
1484,
9853,
3244,
548,
30,
1815,
741,
548,
353,
599,
578,
741,
548,
422,
365,
18,
2896,
548,
741,
548,
33,
2890,
18,
2896,
548,
365,
16186,
1484,
9853,
3244,
548,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
es.load('gungame/included_addons/gg_warmup_round')
|
es.server.queuecmd('es_xload gungame/included_addons/gg_warmup_round')
|
def initialize(): global countBombDeathAsSuicide global list_stripExceptions # Register addon gungame = gungamelib.registerAddon('gungame') gungame.setDisplayName('GunGame') # Print load started es.dbgmsg(0, '[GunGame] %s' % ('=' * 80)) gungamelib.echo('gungame', 0, 0, 'Load_Start', {'version': __version__}) # Load custom events es.loadevents('declare', 'addons/eventscripts/gungame/events/es_gungame_events.res') # Loop through included addons # NOTE TO DEVS: Move this over to gungamelib? for includedAddon in os.listdir(gungamelib.getGameDir('addons/eventscripts/gungame/included_addons/')): if includedAddon[:3] == 'gg_': list_includedAddonsDir.append(includedAddon) # Loop through custom addons # NOTE TO DEVS: Move this over to gungamelib? for customAddon in os.listdir(gungamelib.getGameDir('addons/eventscripts/gungame/custom_addons/')): if customAddon[:3] == 'gg_': list_customAddonsDir.append(customAddon) # Load configs gungamelib.echo('gungame', 0, 0, 'Load_Configs') gungamelib.getConfig('gg_en_config.cfg') gungamelib.getConfig('gg_default_addons.cfg') gungamelib.getConfig('gg_map_vote.cfg') # Execute addon configs gungamelib.echo('gungame', 0, 0, 'Load_CustomConfigs') for addon in list_customAddonsDir: gungamelib.echo('gungame', 0, 0, 'ExecuteCustomConfig', {'addon': addon}) gungamelib.getConfig('custom_addon_configs/%s.cfg' % addon) # Fire the gg_server.cfg es.server.cmd('exec gungame5/gg_server.cfg') # Get strip exceptions if gungamelib.getVariableValue('gg_map_strip_exceptions') != 0: list_stripExceptions = gungamelib.getVariableValue('gg_map_strip_exceptions').split(',') gungamelib.echo('gungame', 0, 0, 'Load_WeaponOrders') # Get weapon order file baseDir = gungamelib.getGameDir('cfg/gungame5/weapon_orders/') files = filter(lambda x: os.path.splitext(x)[1] == '.txt', os.listdir(baseDir)) # Loop through the weapon order files for x in files: # Get file and extension file, ext = os.path.splitext(x) # Parse the file weaponOrder = gungamelib.getWeaponOrder(file) # Check if it is the weapon order file we want if gungamelib.getVariableValue('gg_weapon_order_file') not in (file, x): continue # Set this as the weapon order and set the weapon order type weaponOrder.setWeaponOrderFile(gungamelib.getVariableValue('gg_weapon_order_type')) # Set multikill override if gungamelib.getVariableValue('gg_multikill_override') > 1: weaponOrder.setMultiKillOverride(gungamelib.getVariableValue('gg_multikill_override')) # Echo to console es.dbgmsg(0, '[GunGame]') weaponOrder.echo() es.dbgmsg(0, '[GunGame]') gungamelib.echo('gungame', 0, 0, 'Load_Commands') # Register commands gungame.registerPublicCommand('weapons', gungamelib.sendWeaponOrderMenu) # Clear out the GunGame system gungamelib.resetGunGame() # Set Up a custom variable for voting in dict_variables dict_variables['gungame_voting_started'] = False # Set up a custom variable for tracking multi-rounds dict_variables['roundsRemaining'] = gungamelib.getVariableValue('gg_multi_round') gungamelib.echo('gungame', 0, 0, 'Load_Warmup') # Start warmup timer if gungamelib.inMap(): # Check to see if the warmup round needs to be activated if gungamelib.getVariableValue('gg_warmup_timer') > 0: es.load('gungame/included_addons/gg_warmup_round') else: # Fire gg_start event es.event('initialize','gg_start') es.event('fire','gg_start') # Restart map gungamelib.msg('gungame', '#all', 'Loaded') es.server.queuecmd('mp_restartgame 2') # Create a variable to prevent bomb explosion deaths from counting a suicides countBombDeathAsSuicide = False # Load sound pack gungamelib.echo('gungame', 0, 0, 'Load_SoundSystem') gungamelib.getSoundPack(gungamelib.getVariableValue('gg_soundpack')) # Load gg_info_menus -- creates and sends ingame menus (!top, !leader, !score, !ranks, etc) es.load('gungame/included_addons/gg_info_menus') # Load gg_thanks -- credits es.load('gungame/included_addons/gg_thanks') # Fire gg_load event es.event('initialize', 'gg_load') es.event('fire', 'gg_load') # Print load completed gungamelib.echo('gungame', 0, 0, 'Load_Completed') es.dbgmsg(0, '[GunGame] %s' % ('=' * 80))
|
98ad48f336a7999f1446f7427431cbb87ef92a48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4575/98ad48f336a7999f1446f7427431cbb87ef92a48/gungame.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
13332,
2552,
1056,
38,
16659,
758,
421,
1463,
17072,
335,
831,
2552,
666,
67,
6406,
11416,
225,
468,
5433,
15466,
31475,
13957,
273,
314,
20651,
9925,
495,
18,
4861,
27901,
2668,
19339,
13957,
6134,
31475,
13957,
18,
542,
20524,
2668,
43,
318,
12496,
6134,
225,
468,
3038,
1262,
5746,
5001,
18,
1966,
75,
3576,
12,
20,
16,
5271,
43,
318,
12496,
65,
738,
87,
11,
738,
7707,
2218,
380,
8958,
3719,
314,
20651,
9925,
495,
18,
12946,
2668,
19339,
13957,
2187,
374,
16,
374,
16,
296,
2563,
67,
1685,
2187,
13666,
1589,
4278,
1001,
1589,
972,
6792,
225,
468,
4444,
1679,
2641,
5001,
18,
383,
2486,
616,
87,
2668,
29554,
2187,
296,
1289,
7008,
19,
2575,
12827,
19,
19339,
13957,
19,
5989,
19,
281,
67,
19339,
13957,
67,
5989,
18,
455,
6134,
225,
468,
9720,
3059,
5849,
31439,
468,
5219,
8493,
2030,
14640,
30,
9933,
333,
1879,
358,
314,
20651,
9925,
495,
35,
364,
5849,
27901,
316,
1140,
18,
1098,
1214,
12,
19339,
75,
9925,
495,
18,
588,
12496,
1621,
2668,
1289,
7008,
19,
2575,
12827,
19,
19339,
13957,
19,
20405,
67,
1289,
7008,
2473,
3719,
30,
309,
5849,
27901,
10531,
23,
65,
422,
296,
14253,
67,
4278,
666,
67,
20405,
986,
7008,
1621,
18,
6923,
12,
20405,
27901,
13,
225,
468,
9720,
3059,
1679,
31439,
468,
5219,
8493,
2030,
14640,
30,
9933,
333,
1879,
358,
314,
20651,
9925,
495,
35,
364,
1679,
27901,
316,
1140,
18,
1098,
1214,
12,
19339,
75,
9925,
495,
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,
4046,
13332,
2552,
1056,
38,
16659,
758,
421,
1463,
17072,
335,
831,
2552,
666,
67,
6406,
11416,
225,
468,
5433,
15466,
31475,
13957,
273,
314,
20651,
9925,
495,
18,
4861,
27901,
2668,
19339,
13957,
6134,
31475,
13957,
18,
542,
20524,
2668,
43,
318,
12496,
6134,
225,
468,
3038,
1262,
5746,
5001,
18,
1966,
75,
3576,
12,
20,
16,
5271,
43,
318,
12496,
65,
738,
87,
11,
738,
7707,
2218,
380,
8958,
3719,
314,
20651,
9925,
495,
18,
12946,
2668,
19339,
13957,
2187,
374,
16,
374,
16,
296,
2563,
67,
1685,
2187,
13666,
1589,
4278,
1001,
1589,
972,
6792,
225,
468,
4444,
1679,
2641,
5001,
18,
383,
2486,
616,
87,
2668,
29554,
2187,
296,
1289,
7008,
19,
2575,
12827,
2
] |
description = task.description + "\n\n" + description
|
description = task.description and task.description + "\n\n" + description
|
def close(self, cr, uid, ids, context=None): data = self.read(cr,uid,ids)[0] task_pool = self.pool.get('project.task') user_name = self.pool.get('res.users').browse(cr, uid, uid).name description = _("Closed By ") + user_name + _(" At ") + time.strftime('%Y-%m-%d %H:%M:%S') description += "\n" + "=======================" + "\n" + data['description'] if 'task_id' in context: task = task_pool.browse(cr, uid, context['task_id']) description = task.description + "\n\n" + description task_pool.write(cr, uid, [task.id], { 'description': description, 'state': 'done', 'date_end':time.strftime('%Y-%m-%d %H:%M:%S'), 'remaining_hours': 0.0 }) return {}
|
4f51e523a6d6c7dc44e72c49e98c46cbf8d2c1e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4f51e523a6d6c7dc44e72c49e98c46cbf8d2c1e8/project_close_task.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
501,
273,
365,
18,
896,
12,
3353,
16,
1911,
16,
2232,
25146,
20,
65,
1562,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4146,
6134,
729,
67,
529,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
529,
2477,
273,
389,
2932,
7395,
2525,
9369,
397,
729,
67,
529,
397,
389,
2932,
2380,
9369,
397,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
2477,
1011,
1548,
82,
6,
397,
315,
2429,
894,
631,
1546,
397,
1548,
82,
6,
225,
397,
501,
3292,
3384,
3546,
309,
296,
4146,
67,
350,
11,
316,
819,
30,
1562,
273,
1562,
67,
6011,
18,
25731,
12,
3353,
16,
4555,
16,
819,
3292,
4146,
67,
350,
19486,
2477,
273,
1562,
18,
3384,
471,
1562,
18,
3384,
225,
397,
1548,
82,
64,
82,
6,
397,
2477,
1562,
67,
6011,
18,
2626,
12,
3353,
16,
4555,
16,
306,
4146,
18,
350,
6487,
288,
296,
3384,
4278,
2477,
16,
296,
2019,
4278,
296,
8734,
2187,
296,
712,
67,
409,
4278,
957,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
19899,
296,
17956,
67,
16814,
4278,
374,
18,
20,
289,
13,
327,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
501,
273,
365,
18,
896,
12,
3353,
16,
1911,
16,
2232,
25146,
20,
65,
1562,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4146,
6134,
729,
67,
529,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
529,
2477,
273,
389,
2932,
7395,
2525,
9369,
397,
729,
67,
529,
397,
389,
2932,
2380,
9369,
397,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
2477,
1011,
1548,
82,
6,
397,
315,
2429,
894,
631,
1546,
397,
1548,
82,
6,
225,
397,
501,
3292,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.