rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
"setparameters%r: returned %r" % (config + result)) | "setparameters%r: returned %r" % (config, result)) | def test_setparameters(dsp): # Two configurations for testing: # config1 (8-bit, mono, 8 kHz) should work on even the most # ancient and crufty sound card, but maybe not on special- # purpose high-end hardware # config2 (16-bit, stereo, 44.1kHz) should work on all but the # most ancient and crufty hardware config1 = (ossaudiodev.AFMT_U8, 1, 8000) config2 = (AFMT_S16_NE, 2, 44100) for config in [config1, config2]: (fmt, channels, rate) = config if (dsp.setfmt(fmt) == fmt and dsp.channels(channels) == channels and dsp.speed(rate) == rate): break else: raise RuntimeError("unable to set audio sampling parameters: " "you must have really weird audio hardware") # setparameters() should be able to set this configuration in # either strict or non-strict mode. result = dsp.setparameters(fmt, channels, rate, False) _assert(result == (fmt, channels, rate), "setparameters%r: returned %r" % (config + result)) result = dsp.setparameters(fmt, channels, rate, True) _assert(result == (fmt, channels, rate), "setparameters%r: returned %r" % (config + result)) | 1caede4dcc9d545c626817689e8985ddb2c0be2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1caede4dcc9d545c626817689e8985ddb2c0be2b/test_ossaudiodev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
3977,
12,
72,
1752,
4672,
468,
16896,
10459,
364,
7769,
30,
468,
282,
642,
21,
261,
28,
17,
3682,
16,
6921,
83,
16,
1725,
417,
25688,
13,
1410,
1440,
603,
5456,
326,
4486,
468,
1377,
392,
71,
1979,
471,
4422,
696,
4098,
14190,
5270,
16,
1496,
6944,
486,
603,
4582,
17,
468,
1377,
13115,
3551,
17,
409,
16251,
468,
282,
642,
22,
261,
2313,
17,
3682,
16,
29558,
16,
13291,
18,
21,
79,
25688,
13,
1410,
1440,
603,
777,
1496,
326,
468,
1377,
4486,
392,
71,
1979,
471,
4422,
696,
4098,
16251,
642,
21,
273,
261,
8464,
24901,
77,
390,
90,
18,
6799,
6152,
67,
57,
28,
16,
404,
16,
1725,
3784,
13,
642,
22,
273,
261,
6799,
6152,
67,
55,
2313,
67,
5407,
16,
576,
16,
13291,
6625,
13,
225,
364,
642,
316,
306,
1425,
21,
16,
642,
22,
14542,
261,
8666,
16,
5750,
16,
4993,
13,
273,
642,
309,
261,
72,
1752,
18,
542,
8666,
12,
8666,
13,
422,
1325,
471,
302,
1752,
18,
9114,
12,
9114,
13,
422,
5750,
471,
302,
1752,
18,
13871,
12,
5141,
13,
422,
4993,
4672,
898,
469,
30,
1002,
7265,
2932,
18828,
358,
444,
7447,
11558,
1472,
30,
315,
315,
19940,
1297,
1240,
8654,
20843,
7447,
16251,
7923,
225,
468,
444,
3977,
1435,
1410,
506,
7752,
358,
444,
333,
1664,
316,
468,
3344,
5490,
578,
1661,
17,
13948,
1965,
18,
563,
273,
302,
1752,
18,
542,
3977,
12,
8666,
16,
5750,
16,
4993,
16,
1083,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
3977,
12,
72,
1752,
4672,
468,
16896,
10459,
364,
7769,
30,
468,
282,
642,
21,
261,
28,
17,
3682,
16,
6921,
83,
16,
1725,
417,
25688,
13,
1410,
1440,
603,
5456,
326,
4486,
468,
1377,
392,
71,
1979,
471,
4422,
696,
4098,
14190,
5270,
16,
1496,
6944,
486,
603,
4582,
17,
468,
1377,
13115,
3551,
17,
409,
16251,
468,
282,
642,
22,
261,
2313,
17,
3682,
16,
29558,
16,
13291,
18,
21,
79,
25688,
13,
1410,
1440,
603,
777,
1496,
326,
468,
1377,
4486,
392,
71,
1979,
471,
4422,
696,
4098,
16251,
642,
21,
273,
261,
8464,
24901,
77,
390,
90,
18,
6799,
6152,
67,
57,
28,
16,
404,
16,
1725,
3784,
13,
642,
22,
2
] |
def opening(self, node): s = u'' | def opening(s, node): r = u'' | def opening(self, node): s = u'' # Additional new line before each switch/try if not node.isFirstChild(True) and not node.getChild("commentsBefore", False): prev = node.getPreviousSibling(False, True) # No separation after case statements if prev != None and prev.type in ["case", "default"]: pass else: sep() if node.get("switchType") == "catch": s += write("try") elif node.get("switchType") == "case": s += write("switch") return s | 01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10890,
12,
87,
16,
756,
4672,
436,
273,
582,
6309,
468,
15119,
394,
980,
1865,
1517,
1620,
19,
698,
309,
486,
756,
18,
291,
3759,
1763,
12,
5510,
13,
471,
486,
756,
18,
588,
1763,
2932,
9231,
4649,
3113,
1083,
4672,
2807,
273,
756,
18,
588,
8351,
10291,
12,
8381,
16,
1053,
13,
468,
2631,
5102,
367,
1839,
648,
6317,
309,
2807,
480,
599,
471,
2807,
18,
723,
316,
8247,
3593,
3113,
315,
1886,
11929,
30,
1342,
469,
30,
5478,
1435,
309,
756,
18,
588,
2932,
9610,
559,
7923,
422,
315,
14683,
6877,
272,
1011,
1045,
2932,
698,
7923,
1327,
756,
18,
588,
2932,
9610,
559,
7923,
422,
315,
3593,
6877,
272,
1011,
1045,
2932,
9610,
7923,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10890,
12,
87,
16,
756,
4672,
436,
273,
582,
6309,
468,
15119,
394,
980,
1865,
1517,
1620,
19,
698,
309,
486,
756,
18,
291,
3759,
1763,
12,
5510,
13,
471,
486,
756,
18,
588,
1763,
2932,
9231,
4649,
3113,
1083,
4672,
2807,
273,
756,
18,
588,
8351,
10291,
12,
8381,
16,
1053,
13,
468,
2631,
5102,
367,
1839,
648,
6317,
309,
2807,
480,
599,
471,
2807,
18,
723,
316,
8247,
3593,
3113,
315,
1886,
11929,
30,
1342,
469,
30,
5478,
1435,
309,
756,
18,
588,
2932,
9610,
559,
7923,
422,
315,
14683,
6877,
272,
1011,
1045,
2932,
698,
7923,
1327,
756,
18,
588,
2932,
9610,
559,
7923,
422,
315,
3593,
6877,
272,
1011,
1045,
2932,
9610,
7923,
327,
2
] |
if check: | if check and self.base_ring().is_exact(): | def __call__(self, x, coerce=True, copy=True, check=True): """ Create an element of this free module. | 30ec3f0d7dcc276fdc1c2af733b22b72e64ffd36 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/30ec3f0d7dcc276fdc1c2af733b22b72e64ffd36/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
3536,
1788,
392,
930,
434,
333,
4843,
1605,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
3536,
1788,
392,
930,
434,
333,
4843,
1605,
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
] |
for l in self._windows.values(): l.do_idle() | if self.active: self.active.do_idle() | def idle(self, *args): for l in self._windows.values(): l.do_idle() | 4e0726f4da81ce97d19f5ddb53c6fb214d6c77fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4e0726f4da81ce97d19f5ddb53c6fb214d6c77fd/ped.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
12,
2890,
16,
380,
1968,
4672,
364,
328,
316,
365,
6315,
13226,
18,
2372,
13332,
328,
18,
2896,
67,
20390,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
with open(os.path.join(__dir__, "bookmarks","a")) as f: | with open(os.path.join(__dir__, "bookmarks"), "a") as f: | def bookmark(self): '''Put the current url in a file named bookmarks''' with open(os.path.join(__dir__, "bookmarks","a")) as f: f.write(self.web_view.get_main_frame().get_uri() + "\n") | ce21729f26c3274212696ba339405d54734ae04e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6734/ce21729f26c3274212696ba339405d54734ae04e/ulr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13696,
12,
2890,
4672,
9163,
6426,
326,
783,
880,
316,
279,
585,
4141,
13696,
87,
26418,
598,
1696,
12,
538,
18,
803,
18,
5701,
12,
972,
1214,
972,
16,
315,
3618,
17439,
6,
3631,
315,
69,
7923,
487,
284,
30,
284,
18,
2626,
12,
2890,
18,
4875,
67,
1945,
18,
588,
67,
5254,
67,
3789,
7675,
588,
67,
1650,
1435,
397,
1548,
82,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13696,
12,
2890,
4672,
9163,
6426,
326,
783,
880,
316,
279,
585,
4141,
13696,
87,
26418,
598,
1696,
12,
538,
18,
803,
18,
5701,
12,
972,
1214,
972,
16,
315,
3618,
17439,
6,
3631,
315,
69,
7923,
487,
284,
30,
284,
18,
2626,
12,
2890,
18,
4875,
67,
1945,
18,
588,
67,
5254,
67,
3789,
7675,
588,
67,
1650,
1435,
397,
1548,
82,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise ValueError(msg) | raise BadIdError(msg) | def extractNodeInformation(self): """ For the mathematician in this object, extract the list of advisor ids, the mathematician name, the mathematician institution, and the year of the mathematician's degree. """ if self.pagestr is None: self.getPage() self.advisors = [] self.descendants = [] | 359dd305c1cb8223726e8230d141ef8221ca0034 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12348/359dd305c1cb8223726e8230d141ef8221ca0034/grab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
907,
5369,
12,
2890,
4672,
3536,
2457,
326,
4233,
351,
2126,
2779,
316,
333,
733,
16,
2608,
326,
666,
434,
1261,
10227,
3258,
16,
326,
4233,
351,
2126,
2779,
508,
16,
326,
4233,
351,
2126,
2779,
1804,
305,
1421,
16,
471,
326,
3286,
434,
326,
4233,
351,
2126,
2779,
1807,
10782,
18,
3536,
309,
365,
18,
7267,
313,
353,
599,
30,
365,
18,
588,
1964,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
907,
5369,
12,
2890,
4672,
3536,
2457,
326,
4233,
351,
2126,
2779,
316,
333,
733,
16,
2608,
326,
666,
434,
1261,
10227,
3258,
16,
326,
4233,
351,
2126,
2779,
508,
16,
326,
4233,
351,
2126,
2779,
1804,
305,
1421,
16,
471,
326,
3286,
434,
326,
4233,
351,
2126,
2779,
1807,
10782,
18,
3536,
309,
365,
18,
7267,
313,
353,
599,
30,
365,
18,
588,
1964,
1435,
225,
365,
18,
361,
3516,
1383,
273,
5378,
365,
18,
26236,
4388,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.expanders = sender.SenderMapper() | def __init__(self, parent, id=-1, pos=wxDefaultPosition, size=wxDefaultSize, style=wxHSCROLL | wxVSCROLL, name='scrolledWindow'): NameValueEditorScrollWin.__init__(self, parent, id, pos, size, style, name) | 2acebc2691912dd4b702b7c73f43f549de770335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2acebc2691912dd4b702b7c73f43f549de770335/Inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
29711,
21,
16,
949,
33,
27226,
1868,
2555,
16,
963,
33,
27226,
1868,
1225,
16,
2154,
33,
27226,
44,
2312,
14555,
571,
7075,
58,
2312,
14555,
16,
508,
2218,
1017,
25054,
3829,
11,
4672,
1770,
620,
6946,
6806,
18049,
16186,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
949,
16,
963,
16,
2154,
16,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
29711,
21,
16,
949,
33,
27226,
1868,
2555,
16,
963,
33,
27226,
1868,
1225,
16,
2154,
33,
27226,
44,
2312,
14555,
571,
7075,
58,
2312,
14555,
16,
508,
2218,
1017,
25054,
3829,
11,
4672,
1770,
620,
6946,
6806,
18049,
16186,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
949,
16,
963,
16,
2154,
16,
508,
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
] |
|
deltah=deltah-3.61 deltas=deltas-1.5 | deltah -= 3.61 deltas -= 1.5 | def tercorr(stri): deltah=0 deltas=0 if rna==0: #DNA/DNA #Allawi and SantaLucia (1997). Biochemistry 36 : 10581-10594 if stri.startswith('G') or stri.startswith('C'): deltah=deltah-0.1 deltas=deltas+2.8 elif stri.startswith('A') or stri.startswith('T'): deltah=deltah-2.3 deltas=deltas-4.1 if stri.endswith('G') or stri.endswith('C'): deltah=deltah-0.1 deltas=deltas+2.8 elif stri.endswith('A') or stri.endswith('T'): deltah=deltah-2.3 deltas=deltas-4.1 dhL=dh+deltah dsL=ds+deltas return dsL,dhL elif rna==1: #RNA if stri.startswith('G') or stri.startswith('C'): deltah=deltah-3.61 deltas=deltas-1.5 elif stri.startswith('A') or stri.startswith('T') or \ stri.startswith('U'): deltah=deltah-3.72 deltas=deltas+10.5 if stri.endswith('G') or stri.endswith('C'): deltah=deltah-3.61 deltas=deltas-1.5 elif stri.endswith('A') or stri.endswith('T') or \ stri.endswith('U'): deltah=deltah-3.72 deltas=deltas+10.5 dhL=dh+deltah dsL=ds+deltas # print "delta h=",dhL return dsL,dhL | 9d20501f87a48e7d08b8c8ab193dd1ec8b75d714 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/9d20501f87a48e7d08b8c8ab193dd1ec8b75d714/MeltingTemp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19272,
17515,
12,
701,
77,
4672,
3622,
76,
33,
20,
20113,
33,
20,
309,
436,
6582,
631,
20,
30,
468,
8609,
37,
19,
8609,
37,
468,
1595,
2219,
77,
471,
348,
27677,
48,
5286,
1155,
261,
19818,
27,
2934,
21209,
1036,
2128,
6580,
294,
1728,
8204,
21,
17,
2163,
6162,
24,
309,
609,
77,
18,
17514,
1918,
2668,
43,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
76,
17,
20,
18,
21,
20113,
33,
3771,
9158,
15,
22,
18,
28,
1327,
609,
77,
18,
17514,
1918,
2668,
37,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
56,
11,
4672,
3622,
76,
33,
9878,
76,
17,
22,
18,
23,
20113,
33,
3771,
9158,
17,
24,
18,
21,
309,
609,
77,
18,
5839,
1918,
2668,
43,
6134,
578,
609,
77,
18,
5839,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
76,
17,
20,
18,
21,
20113,
33,
3771,
9158,
15,
22,
18,
28,
1327,
609,
77,
18,
5839,
1918,
2668,
37,
6134,
578,
609,
77,
18,
5839,
1918,
2668,
56,
11,
4672,
3622,
76,
33,
9878,
76,
17,
22,
18,
23,
20113,
33,
3771,
9158,
17,
24,
18,
21,
11007,
48,
33,
19153,
15,
9878,
76,
3780,
48,
33,
2377,
15,
3771,
9158,
327,
3780,
48,
16,
19153,
48,
1327,
436,
6582,
631,
21,
30,
468,
29712,
309,
609,
77,
18,
17514,
1918,
2668,
43,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
39,
11,
4672,
3622,
76,
3947,
890,
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,
19272,
17515,
12,
701,
77,
4672,
3622,
76,
33,
20,
20113,
33,
20,
309,
436,
6582,
631,
20,
30,
468,
8609,
37,
19,
8609,
37,
468,
1595,
2219,
77,
471,
348,
27677,
48,
5286,
1155,
261,
19818,
27,
2934,
21209,
1036,
2128,
6580,
294,
1728,
8204,
21,
17,
2163,
6162,
24,
309,
609,
77,
18,
17514,
1918,
2668,
43,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
76,
17,
20,
18,
21,
20113,
33,
3771,
9158,
15,
22,
18,
28,
1327,
609,
77,
18,
17514,
1918,
2668,
37,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
56,
11,
4672,
3622,
76,
33,
9878,
76,
17,
22,
18,
23,
20113,
33,
3771,
2
] |
locator = VistrailLocator(VistrailLocator.ORIGIN.DB, name) if config != None: locator.host = config['host'] locator.port = config['port'] locator.db = config['db'] if config.has_key('id'): locator.conn_id = config['id'] vistrailView.controller.writeVistrailDB(locator) vistrailView.locator = locator | if vistrailView.locator is None or \ vistrailView.locator.origin != VistrailLocator.ORIGIN.DB: locator = VistrailLocator(VistrailLocator.ORIGIN.DB, name) if config != None: locator.host = config['host'] locator.port = config['port'] locator.db = config['db'] if config.has_key('id'): locator.conn_id = config['id'] vistrailView.locator = locator vistrailView.controller.writeVistrailDB(vistrailView.locator) | def saveVistrailDB(self, vistrailView=None, name='', config=None): """saveVistrailDB(vistrailView: QVistrailView) -> Boolean Save vistrailView or the current active vistrail to the database It returns True if the operation was successful """ if not vistrailView: vistrailView = self.currentWidget() if vistrailView: if name == '': name = vistrailView.controller.fileName if name == '': ok = False name = QtGui.QInputDialog.getText(self, "Save Vistrail...", "Vistrail name:", QtGui.QLineEdit.Normal, "", ok) if name != '' and name != None: locator = VistrailLocator(VistrailLocator.ORIGIN.DB, name) if config != None: locator.host = config['host'] locator.port = config['port'] locator.db = config['db'] if config.has_key('id'): locator.conn_id = config['id'] vistrailView.controller.writeVistrailDB(locator) vistrailView.locator = locator return True else: return False | 57907f9d9c321b9cf4a1daef1995115016e2938b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/57907f9d9c321b9cf4a1daef1995115016e2938b/view_manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
3282,
15565,
2290,
12,
2890,
16,
2281,
15565,
1767,
33,
7036,
16,
508,
2218,
2187,
642,
33,
7036,
4672,
3536,
5688,
3282,
15565,
2290,
12,
90,
3337,
671,
1767,
30,
2238,
3282,
15565,
1767,
13,
317,
3411,
7074,
2281,
15565,
1767,
578,
326,
783,
2695,
2281,
15565,
358,
326,
2063,
2597,
1135,
1053,
309,
326,
1674,
1703,
6873,
225,
3536,
309,
486,
2281,
15565,
1767,
30,
2281,
15565,
1767,
273,
365,
18,
2972,
4609,
1435,
309,
2281,
15565,
1767,
30,
309,
508,
422,
875,
30,
508,
273,
2281,
15565,
1767,
18,
5723,
18,
17812,
309,
508,
422,
875,
30,
1529,
273,
1083,
508,
273,
23425,
18,
53,
1210,
6353,
18,
588,
1528,
12,
2890,
16,
315,
4755,
776,
3337,
671,
7070,
16,
315,
3282,
15565,
508,
2773,
16,
23425,
18,
53,
1670,
4666,
18,
5506,
16,
23453,
1529,
13,
225,
309,
508,
480,
875,
471,
508,
480,
599,
30,
309,
2281,
15565,
1767,
18,
20048,
353,
599,
578,
521,
2281,
15565,
1767,
18,
20048,
18,
10012,
480,
776,
3337,
671,
5786,
18,
24685,
18,
2290,
30,
8871,
273,
776,
3337,
671,
5786,
12,
3282,
15565,
5786,
18,
24685,
18,
2290,
16,
508,
13,
309,
642,
480,
599,
30,
8871,
18,
2564,
273,
642,
3292,
2564,
3546,
8871,
18,
655,
273,
642,
3292,
655,
3546,
8871,
18,
1966,
273,
642,
3292,
1966,
3546,
309,
642,
18,
5332,
67,
856,
2668,
350,
11,
4672,
8871,
18,
4646,
67,
350,
273,
642,
3292,
350,
3546,
2281,
15565,
1767,
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,
1923,
3282,
15565,
2290,
12,
2890,
16,
2281,
15565,
1767,
33,
7036,
16,
508,
2218,
2187,
642,
33,
7036,
4672,
3536,
5688,
3282,
15565,
2290,
12,
90,
3337,
671,
1767,
30,
2238,
3282,
15565,
1767,
13,
317,
3411,
7074,
2281,
15565,
1767,
578,
326,
783,
2695,
2281,
15565,
358,
326,
2063,
2597,
1135,
1053,
309,
326,
1674,
1703,
6873,
225,
3536,
309,
486,
2281,
15565,
1767,
30,
2281,
15565,
1767,
273,
365,
18,
2972,
4609,
1435,
309,
2281,
15565,
1767,
30,
309,
508,
422,
875,
30,
508,
273,
2281,
15565,
1767,
18,
5723,
18,
17812,
309,
508,
422,
875,
30,
1529,
273,
1083,
508,
273,
23425,
18,
53,
1210,
6353,
18,
588,
1528,
12,
2890,
16,
315,
4755,
2
] |
return True | return None | def validate(self, value, instance, errors={}, **kwargs): """ Validate passed-in value using all field validators. Return None if all validations pass; otherwise, return failed result returned by validator """ name = self.getName() if errors and errors.has_key(name): return 1 | ea5de49765c91d305bd4df36c6d1fc27054c9528 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ea5de49765c91d305bd4df36c6d1fc27054c9528/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
460,
16,
791,
16,
1334,
28793,
2826,
4333,
4672,
3536,
3554,
2275,
17,
267,
460,
1450,
777,
652,
11632,
18,
2000,
599,
309,
777,
20808,
1342,
31,
3541,
16,
327,
2535,
563,
2106,
635,
4213,
3536,
508,
273,
365,
18,
17994,
1435,
309,
1334,
471,
1334,
18,
5332,
67,
856,
12,
529,
4672,
327,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
460,
16,
791,
16,
1334,
28793,
2826,
4333,
4672,
3536,
3554,
2275,
17,
267,
460,
1450,
777,
652,
11632,
18,
2000,
599,
309,
777,
20808,
1342,
31,
3541,
16,
327,
2535,
563,
2106,
635,
4213,
3536,
508,
273,
365,
18,
17994,
1435,
309,
1334,
471,
1334,
18,
5332,
67,
856,
12,
529,
4672,
327,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
home = os.environ['HOME'] | home = os.environ.get('HOME') | def addpackage(sitedir, name): global _dirs_in_sys_path if _dirs_in_sys_path is None: _init_pathinfo() reset = 1 else: reset = 0 fullname = os.path.join(sitedir, name) try: f = open(fullname) except IOError: return while 1: dir = f.readline() if not dir: break if dir[0] == '#': continue if dir.startswith("import"): exec dir continue if dir[-1] == '\n': dir = dir[:-1] dir, dircase = makepath(sitedir, dir) if not dircase in _dirs_in_sys_path and os.path.exists(dir): sys.path.append(dir) _dirs_in_sys_path[dircase] = 1 if reset: _dirs_in_sys_path = None | 470b0c0e1f7247539210cb5c13f8cb0f28894714 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/470b0c0e1f7247539210cb5c13f8cb0f28894714/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
2552,
389,
8291,
67,
267,
67,
9499,
67,
803,
309,
389,
8291,
67,
267,
67,
9499,
67,
803,
353,
599,
30,
389,
2738,
67,
803,
1376,
1435,
2715,
273,
404,
469,
30,
2715,
273,
374,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,
404,
30,
1577,
273,
284,
18,
896,
1369,
1435,
309,
486,
1577,
30,
898,
309,
1577,
63,
20,
65,
422,
2946,
4278,
1324,
309,
1577,
18,
17514,
1918,
2932,
5666,
6,
4672,
1196,
1577,
1324,
309,
1577,
18919,
21,
65,
422,
2337,
82,
4278,
1577,
273,
1577,
10531,
17,
21,
65,
1577,
16,
1577,
3593,
273,
1221,
803,
12,
87,
16261,
481,
16,
1577,
13,
309,
486,
1577,
3593,
316,
389,
8291,
67,
267,
67,
9499,
67,
803,
471,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
2589,
18,
803,
18,
6923,
12,
1214,
13,
389,
8291,
67,
267,
67,
9499,
67,
803,
63,
1214,
3593,
65,
273,
404,
309,
2715,
30,
389,
8291,
67,
267,
67,
9499,
67,
803,
273,
599,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
2552,
389,
8291,
67,
267,
67,
9499,
67,
803,
309,
389,
8291,
67,
267,
67,
9499,
67,
803,
353,
599,
30,
389,
2738,
67,
803,
1376,
1435,
2715,
273,
404,
469,
30,
2715,
273,
374,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,
404,
30,
1577,
273,
284,
18,
896,
1369,
1435,
309,
486,
1577,
30,
898,
309,
1577,
63,
20,
65,
422,
2946,
4278,
1324,
309,
1577,
18,
17514,
1918,
2932,
5666,
6,
4672,
1196,
1577,
1324,
309,
1577,
18919,
21,
65,
422,
2337,
82,
4278,
1577,
273,
1577,
2
] |
self.actualScore = self.actualScore - int((100 * globalClock.getDt())) self.thisScore.setText('Score: '+str(self.actualScore)) | global actualScore actualScore = actualScore - int((100 * globalClock.getDt())) self.thisScore.setText('Score: '+str(actualScore)) | def moveUpdateTask(self,task): #Function that update players position # move where the keys set it self.node.setPos(self.node,Vec3(0,1.0*globalClock.getDt()*self.speed,0)) # update scoring system self.actualScore = self.actualScore - int((100 * globalClock.getDt())) self.thisScore.setText('Score: '+str(self.actualScore)) return task.cont | bd2cf555f80d535aa25511a61d82267027e3adb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4878/bd2cf555f80d535aa25511a61d82267027e3adb4/Gaivota.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
1891,
2174,
12,
2890,
16,
4146,
4672,
468,
2083,
716,
1089,
18115,
1754,
468,
3635,
1625,
326,
1311,
444,
518,
365,
18,
2159,
18,
542,
1616,
12,
2890,
18,
2159,
16,
12991,
23,
12,
20,
16,
21,
18,
20,
14,
6347,
14027,
18,
588,
19739,
1435,
14,
2890,
18,
13871,
16,
20,
3719,
468,
1089,
22958,
2619,
2552,
3214,
7295,
3214,
7295,
273,
3214,
7295,
300,
509,
12443,
6625,
380,
2552,
14027,
18,
588,
19739,
1435,
3719,
365,
18,
2211,
7295,
18,
542,
1528,
2668,
7295,
30,
15126,
701,
12,
18672,
7295,
3719,
327,
1562,
18,
1213,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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444,
518,
365,
18,
2159,
18,
542,
1616,
12,
2890,
18,
2159,
16,
12991,
23,
12,
20,
16,
21,
18,
20,
14,
6347,
14027,
18,
588,
19739,
1435,
14,
2890,
18,
13871,
16,
20,
3719,
468,
1089,
22958,
2619,
2552,
3214,
7295,
3214,
7295,
273,
3214,
7295,
300,
509,
12443,
6625,
380,
2552,
14027,
18,
588,
19739,
1435,
3719,
365,
18,
2211,
7295,
18,
542,
1528,
2668,
7295,
30,
15126,
701,
12,
18672,
7295,
3719,
327,
1562,
18,
1213,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.__add_document(document) self.__view_document(document) | def cmd_open_file(self, filename, quiet=False): if (len(filename) and (self.__currentdocument is None or filename != self.__currentdocument.filename)): filename = os.path.abspath(filename) if filename in self.__documents: document = self.__documents[filename] self.__view_document(document) else: try: document = self.__open_file(filename) self.__add_document(document) self.__view_document(document) except: if not quiet: raise | 7d13316998ca63a65624ff9dd5e7d7ddf50d40af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/7d13316998ca63a65624ff9dd5e7d7ddf50d40af/buffermanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
3190,
67,
768,
12,
2890,
16,
1544,
16,
10902,
33,
8381,
4672,
309,
261,
1897,
12,
3459,
13,
471,
261,
2890,
16186,
2972,
5457,
353,
599,
578,
1544,
480,
365,
16186,
2972,
5457,
18,
3459,
3719,
30,
1544,
273,
1140,
18,
803,
18,
5113,
803,
12,
3459,
13,
309,
1544,
316,
365,
16186,
24795,
30,
1668,
273,
365,
16186,
24795,
63,
3459,
65,
365,
16186,
1945,
67,
5457,
12,
5457,
13,
469,
30,
775,
30,
1668,
273,
365,
16186,
3190,
67,
768,
12,
3459,
13,
1335,
30,
309,
486,
10902,
30,
1002,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
3190,
67,
768,
12,
2890,
16,
1544,
16,
10902,
33,
8381,
4672,
309,
261,
1897,
12,
3459,
13,
471,
261,
2890,
16186,
2972,
5457,
353,
599,
578,
1544,
480,
365,
16186,
2972,
5457,
18,
3459,
3719,
30,
1544,
273,
1140,
18,
803,
18,
5113,
803,
12,
3459,
13,
309,
1544,
316,
365,
16186,
24795,
30,
1668,
273,
365,
16186,
24795,
63,
3459,
65,
365,
16186,
1945,
67,
5457,
12,
5457,
13,
469,
30,
775,
30,
1668,
273,
365,
16186,
3190,
67,
768,
12,
3459,
13,
1335,
30,
309,
486,
10902,
30,
1002,
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
] |
|
return self.checkout(module, revision, checkoutdir) | return self.checkout(buildscript, module, revision, checkoutdir) | def update(self, buildscript, module, revision=None, checkoutdir=None): '''Perform a "cvs update" (or possibly a checkout)''' dir = self.getcheckoutdir(module, checkoutdir) if not os.path.exists(dir): return self.checkout(module, revision, checkoutdir) os.chdir(dir) cmd = 'cvs -z3 -q -d %s update -dP ' % self.cvsroot | 0d63709816442efd5f418b82e90c2534f6c72c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/0d63709816442efd5f418b82e90c2534f6c72c3f/cvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
1361,
4263,
16,
1605,
16,
6350,
33,
7036,
16,
13926,
1214,
33,
7036,
4672,
9163,
4990,
279,
315,
71,
6904,
1089,
6,
261,
280,
10016,
279,
13926,
2506,
6309,
1577,
273,
365,
18,
588,
17300,
1214,
12,
2978,
16,
13926,
1214,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
327,
365,
18,
17300,
12,
3510,
4263,
16,
1605,
16,
6350,
16,
13926,
1214,
13,
225,
1140,
18,
343,
1214,
12,
1214,
13,
1797,
273,
296,
71,
6904,
300,
94,
23,
300,
85,
300,
72,
738,
87,
1089,
300,
72,
52,
296,
738,
365,
18,
71,
6904,
3085,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
1361,
4263,
16,
1605,
16,
6350,
33,
7036,
16,
13926,
1214,
33,
7036,
4672,
9163,
4990,
279,
315,
71,
6904,
1089,
6,
261,
280,
10016,
279,
13926,
2506,
6309,
1577,
273,
365,
18,
588,
17300,
1214,
12,
2978,
16,
13926,
1214,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
327,
365,
18,
17300,
12,
3510,
4263,
16,
1605,
16,
6350,
16,
13926,
1214,
13,
225,
1140,
18,
343,
1214,
12,
1214,
13,
1797,
273,
296,
71,
6904,
300,
94,
23,
300,
85,
300,
72,
738,
87,
1089,
300,
72,
52,
296,
738,
365,
18,
71,
6904,
3085,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Create a temporary directory, and return its name. | Create a temporary directory, and return its name. | def setup_temp (): """ Create a temporary directory, and return its name. """ global temp_dir if not keep_temp_dir_p: temp_dir = tempfile.mktemp (program_name) try: os.mkdir (temp_dir, 0700) except OSError: pass return temp_dir | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
5814,
1832,
30,
3536,
1788,
279,
6269,
1867,
16,
471,
327,
2097,
508,
18,
3536,
2552,
1906,
67,
1214,
309,
486,
3455,
67,
5814,
67,
1214,
67,
84,
30,
1906,
67,
1214,
273,
13275,
18,
24816,
5814,
261,
12890,
67,
529,
13,
775,
30,
1140,
18,
26686,
261,
5814,
67,
1214,
16,
10934,
713,
13,
1335,
10002,
30,
1342,
225,
327,
1906,
67,
1214,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
5814,
1832,
30,
3536,
1788,
279,
6269,
1867,
16,
471,
327,
2097,
508,
18,
3536,
2552,
1906,
67,
1214,
309,
486,
3455,
67,
5814,
67,
1214,
67,
84,
30,
1906,
67,
1214,
273,
13275,
18,
24816,
5814,
261,
12890,
67,
529,
13,
775,
30,
1140,
18,
26686,
261,
5814,
67,
1214,
16,
10934,
713,
13,
1335,
10002,
30,
1342,
225,
327,
1906,
67,
1214,
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
] |
unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()]) | unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()]) | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalunitdict() """ from sage.misc.all import sage_eval for key, value in unitdict.iteritems(): unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()]) # FEATURE IDEA: create a function that would allow users to add # new entries to the table without having to know anything about # how the table is stored internally. # # Format the table for easier use. # for k, v in unitdict.iteritems(): for a in v: unit_to_type[a] = k for w in unitdict.iterkeys(): for j in unitdict[w].iterkeys(): if type(unitdict[w][j]) == tuple: unitdict[w][j] = unitdict[w][j][0] value_to_unit[w] = dict(zip(unitdict[w].itervalues(), unitdict[w].iterkeys())) | ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
31457,
1399,
12963,
16,
364,
30325,
261,
464,
16600,
3628,
13,
13694,
16,
10480,
518,
15857,
358,
6401,
326,
4971,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
8622,
4873,
1576,
1435,
3536,
628,
272,
410,
18,
23667,
18,
454,
1930,
272,
410,
67,
8622,
364,
498,
16,
460,
316,
2836,
1576,
18,
2165,
3319,
13332,
2836,
1576,
63,
856,
65,
273,
2065,
3816,
12,
69,
16,
87,
410,
67,
8622,
12,
12715,
12,
70,
20349,
364,
279,
16,
324,
316,
460,
18,
2165,
3319,
1435,
5717,
225,
468,
25201,
1599,
41,
37,
30,
752,
279,
445,
716,
4102,
1699,
3677,
358,
527,
468,
394,
3222,
358,
326,
1014,
2887,
7999,
358,
5055,
6967,
2973,
468,
3661,
326,
1014,
353,
4041,
12963,
18,
225,
468,
468,
4077,
326,
1014,
364,
15857,
999,
18,
468,
364,
417,
16,
331,
316,
2836,
1576,
18,
2165,
3319,
13332,
364,
279,
316,
331,
30,
2836,
67,
869,
67,
723,
63,
69,
65,
273,
417,
225,
364,
341,
316,
2836,
1576,
18,
2165,
2452,
13332,
364,
525,
316,
2836,
1576,
63,
91,
8009,
2165,
2452,
13332,
309,
618,
12,
4873,
1576,
63,
91,
6362,
78,
5717,
422,
3193,
30,
2836,
1576,
63,
91,
6362,
78,
65,
273,
2836,
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,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
31457,
1399,
12963,
16,
364,
30325,
261,
464,
16600,
3628,
13,
13694,
16,
10480,
518,
15857,
358,
6401,
326,
4971,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
8622,
4873,
1576,
1435,
3536,
628,
272,
410,
18,
23667,
18,
454,
1930,
272,
410,
67,
8622,
364,
498,
16,
460,
316,
2836,
1576,
18,
2165,
3319,
13332,
2836,
1576,
63,
856,
65,
273,
2065,
3816,
12,
69,
16,
87,
410,
67,
8622,
12,
12715,
12,
70,
2
] |
if not (start + (count+1) * step)*sign > end*sign: | if not (start + count * step)*sign > end*sign: | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): """ Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This is the best way to get an iterator over SAGE integers as opposed to Python int's. It also allows you to specify step sizes to iterate. It is potentially much slower than the Python range statement, depending on your application. INPUT: a -- number b -- number (default: None) step -- number (default: 1) include_endpoint -- whether or not to include the endpoint (default: False) OUTPUT: list If b is None, then b is set equal to a and a is set equal to the 0 in the parent of b. Unlike range, a and b can be any type of numbers, and the resulting list involves numbers of that type. NOTE: This function is called \code{srange} to distinguish it from the builtin Python \code{range} command. The s at the beginning of the name stands for ``SAGE''. SEE ALSO: xsrange -- iterator version EXAMPLES: sage: v = srange(5); v [0, 1, 2, 3, 4] sage: type(v[2]) <type 'sage.rings.integer.Integer'> sage: srange(1, 10) [1, 2, 3, 4, 5, 6, 7, 8, 9] sage: srange(10, 1, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2] sage: srange(10,1,-1, include_endpoint=True) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] sage: Q = RationalField() sage: srange(1,10,Q('1/2')) [1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 11/2, 6, 13/2, 7, 15/2, 8, 17/2, 9, 19/2] sage: R = RealField() sage: srange(1,5,R('0.5')) [1.00000000000000, 1.50000000000000, 2.00000000000000, 2.50000000000000, 3.00000000000000, 3.50000000000000, 4.00000000000000, 4.50000000000000] sage: srange(0,1,R('0.4')) [0.000000000000000, 0.400000000000000, 0.800000000000000] sage: srange(1.0, 5.0, include_endpoint=True) [1.00000000000000, 2.00000000000000, 3.00000000000000, 4.00000000000000, 5.00000000000000] sage: V = VectorSpace(QQ, 2) sage: srange(V([0,0]), V([5,5]), step=V([2,2])) [(0, 0), (2, 2), (4, 4)] """ from sage.structure.sequence import Sequence from sage.rings.all import ZZ if end is None: end = start start = 0 if check: if universe is None: universe = Sequence([start, end, step]).universe() start, end, step = universe(start), universe(end), universe(step) if include_endpoint: if universe in [int, long, ZZ]: if (end-start) % step == 0: end += step else: count = (end-start)/step if count == int(float(count)): end += step if universe is int or universe is long: return range(start, end, step) elif universe is ZZ: return ZZ.range(start, end, step) else: L = [] sign = 1 if step > 0 else -1 # In order for range to make sense, start, end, and step must lie in a 1-dim real subspace... count = int(float((end-start)/step)) if count <= 0: return L # we assume that a+b*c = a + b + ... + b if not (start + (count+1) * step)*sign > end*sign: # we won't get there by adding, perhaps comparison in the ring is bad # rather than enter an infinite loop, do something sensible # the 'not' is hear because incomparable items return False L = [start + k*step for k in range(count)] # this is slower due to coercion and mult elif step > 0: while start < end: L.append(start) start += step elif step < 0: while start > end: L.append(start) start += step else: raise ValueError, "step must not be 0" return L | b0407bebdcafbc7357b33c8faa600978ff6cc467 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b0407bebdcafbc7357b33c8faa600978ff6cc467/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
4672,
3536,
2000,
666,
434,
5600,
521,
710,
95,
69,
16,
279,
15,
4119,
16,
1372,
16,
279,
15,
79,
14,
4119,
5779,
1625,
521,
710,
95,
69,
15,
79,
14,
4119,
411,
324,
97,
471,
521,
710,
95,
69,
15,
12,
79,
15,
21,
17653,
4119,
405,
324,
5496,
225,
1220,
353,
326,
3796,
4031,
358,
336,
392,
2775,
1879,
348,
2833,
12321,
487,
1061,
7423,
358,
6600,
509,
1807,
18,
225,
2597,
2546,
5360,
1846,
358,
4800,
2235,
8453,
358,
7401,
18,
225,
2597,
353,
13935,
9816,
27926,
2353,
326,
6600,
1048,
3021,
16,
8353,
603,
3433,
2521,
18,
225,
12943,
30,
279,
1493,
1300,
324,
1493,
1300,
261,
1886,
30,
599,
13,
2235,
1493,
1300,
261,
1886,
30,
404,
13,
2341,
67,
8003,
1493,
2856,
578,
486,
358,
2341,
326,
2494,
261,
1886,
30,
1083,
13,
225,
11550,
30,
666,
225,
971,
324,
353,
599,
16,
1508,
324,
353,
444,
3959,
358,
279,
471,
279,
353,
444,
3959,
358,
326,
374,
316,
326,
982,
434,
324,
18,
225,
25448,
1048,
16,
279,
471,
324,
848,
506,
1281,
618,
434,
5600,
16,
471,
326,
8156,
666,
29876,
3324,
5600,
434,
716,
618,
18,
225,
5219,
30,
1220,
445,
353,
2566,
521,
710,
95,
87,
3676,
97,
358,
23926,
518,
628,
326,
15273,
6600,
521,
710,
95,
3676,
97,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
4672,
3536,
2000,
666,
434,
5600,
521,
710,
95,
69,
16,
279,
15,
4119,
16,
1372,
16,
279,
15,
79,
14,
4119,
5779,
1625,
521,
710,
95,
69,
15,
79,
14,
4119,
411,
324,
97,
471,
521,
710,
95,
69,
15,
12,
79,
15,
21,
17653,
4119,
405,
324,
5496,
225,
1220,
353,
326,
3796,
4031,
358,
336,
392,
2775,
1879,
348,
2833,
12321,
487,
1061,
7423,
358,
6600,
509,
1807,
18,
225,
2597,
2546,
5360,
1846,
358,
4800,
2235,
8453,
358,
7401,
18,
225,
2597,
353,
13935,
9816,
27926,
2353,
326,
2
] |
return hangul_decompose[c] | return hangul_decompose(c) | def decompose(c): s=ord(c) if s>=SBase and s-SBase<SCount: return hangul_decompose[c] d=decompositions_3_2_0.get(c,unicodedata.decomposition(c)) if not d: return [c] if d.startswith("<"): d=d[d.index(">")+1:] print "Compatibility decomposition: %r -> %r" % (c,d) else: print "Canonical decomposition: %r -> %r" % (c,d) ret=[] for c in d.split(): ret+=decompose(unichr(string.atoi(c,16))) return ret | 4b799685143d171cbd6a55572a7a3267581b90a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/4b799685143d171cbd6a55572a7a3267581b90a6/nfkc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24476,
12,
71,
4672,
272,
33,
517,
12,
71,
13,
309,
272,
34,
33,
55,
2171,
471,
272,
17,
55,
2171,
32,
55,
1380,
30,
327,
25733,
332,
67,
323,
23658,
12,
71,
13,
225,
302,
33,
323,
832,
12388,
67,
23,
67,
22,
67,
20,
18,
588,
12,
71,
16,
9124,
892,
18,
323,
24388,
12,
71,
3719,
225,
309,
486,
302,
30,
327,
306,
71,
65,
309,
302,
18,
17514,
1918,
2932,
32,
6,
4672,
302,
33,
72,
63,
72,
18,
1615,
2932,
2984,
27921,
21,
26894,
1172,
315,
21633,
26288,
30,
738,
86,
317,
738,
86,
6,
738,
261,
71,
16,
72,
13,
469,
30,
1172,
315,
15512,
26288,
30,
738,
86,
317,
738,
86,
6,
738,
261,
71,
16,
72,
13,
225,
325,
33,
8526,
364,
276,
316,
302,
18,
4939,
13332,
325,
15,
33,
323,
23658,
12,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24476,
12,
71,
4672,
272,
33,
517,
12,
71,
13,
309,
272,
34,
33,
55,
2171,
471,
272,
17,
55,
2171,
32,
55,
1380,
30,
327,
25733,
332,
67,
323,
23658,
12,
71,
13,
225,
302,
33,
323,
832,
12388,
67,
23,
67,
22,
67,
20,
18,
588,
12,
71,
16,
9124,
892,
18,
323,
24388,
12,
71,
3719,
225,
309,
486,
302,
30,
327,
306,
71,
65,
309,
302,
18,
17514,
1918,
2932,
32,
6,
4672,
302,
33,
72,
63,
72,
18,
1615,
2932,
2984,
27921,
21,
26894,
1172,
315,
21633,
26288,
30,
738,
86,
317,
738,
86,
6,
738,
261,
71,
16,
72,
13,
469,
30,
1172,
315,
15512,
26288,
30,
738,
86,
317,
738,
86,
2
] |
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 = '' | baf4101b94fbd3dfe0f2e79f9e4d6a402a0b5cb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/baf4101b94fbd3dfe0f2e79f9e4d6a402a0b5cb6/httplib.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,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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,
875,
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
] |
fmt = 'cbxxxxxxhhhhiillffd' fmt3 = '3c3b18x12h6i6l6f3d' | fmt = 'cbxxxxxxhhhhiillffdt' fmt3 = '3c3b18x12h6i6l6f3d3t' | def deprecated_err(func, *args): try: func(*args) except (struct.error, TypeError): pass except DeprecationWarning: if not PY_STRUCT_OVERFLOW_MASKING: raise TestFailed, "%s%s expected to raise struct.error" % ( func.__name__, args) else: raise TestFailed, "%s%s did not raise error" % ( func.__name__, args) | 0e4d150e0dd1cf02df4aaa31696fdb3863442f8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0e4d150e0dd1cf02df4aaa31696fdb3863442f8e/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6849,
67,
370,
12,
644,
16,
380,
1968,
4672,
775,
30,
1326,
30857,
1968,
13,
1335,
261,
1697,
18,
1636,
16,
3580,
4672,
1342,
1335,
24041,
30,
309,
486,
12191,
67,
13915,
67,
12959,
17430,
67,
11704,
1360,
30,
1002,
7766,
2925,
16,
2213,
87,
9,
87,
2665,
358,
1002,
1958,
18,
1636,
6,
738,
261,
1326,
16186,
529,
972,
16,
833,
13,
469,
30,
1002,
7766,
2925,
16,
2213,
87,
9,
87,
5061,
486,
1002,
555,
6,
738,
261,
1326,
16186,
529,
972,
16,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6849,
67,
370,
12,
644,
16,
380,
1968,
4672,
775,
30,
1326,
30857,
1968,
13,
1335,
261,
1697,
18,
1636,
16,
3580,
4672,
1342,
1335,
24041,
30,
309,
486,
12191,
67,
13915,
67,
12959,
17430,
67,
11704,
1360,
30,
1002,
7766,
2925,
16,
2213,
87,
9,
87,
2665,
358,
1002,
1958,
18,
1636,
6,
738,
261,
1326,
16186,
529,
972,
16,
833,
13,
469,
30,
1002,
7766,
2925,
16,
2213,
87,
9,
87,
5061,
486,
1002,
555,
6,
738,
261,
1326,
16186,
529,
972,
16,
833,
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
] |
default='/usr') | default='/usr', odesc='</path>') | def parse(self, argv, do_getopt=True): '''Parse options''' ret = {} if do_getopt: try: opts, args = getopt.getopt(argv, self.buildGetopt(), []) except getopt.GetoptError, err: self.helpExit(err) if '-h' in argv: self.helpExit('', 0) self['args'] = args for key in self.keys(): if key == 'args': continue option = self[key] if do_getopt: option.parse(opts, []) else: option.parse([], argv) if hasattr(option, '_value'): val = option.value self[key] = val | 6ec2e7a30c30d6a8cd96c9ffa4fc4d1f484596a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/6ec2e7a30c30d6a8cd96c9ffa4fc4d1f484596a5/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
5261,
16,
741,
67,
588,
3838,
33,
5510,
4672,
9163,
3201,
702,
26418,
325,
273,
2618,
309,
741,
67,
588,
3838,
30,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
19485,
16,
365,
18,
3510,
967,
3838,
9334,
5378,
13,
1335,
336,
3838,
18,
967,
3838,
668,
16,
393,
30,
365,
18,
5201,
6767,
12,
370,
13,
309,
2400,
76,
11,
316,
5261,
30,
365,
18,
5201,
6767,
2668,
2187,
374,
13,
365,
3292,
1968,
3546,
273,
833,
364,
498,
316,
365,
18,
2452,
13332,
309,
498,
422,
296,
1968,
4278,
1324,
1456,
273,
365,
63,
856,
65,
309,
741,
67,
588,
3838,
30,
1456,
18,
2670,
12,
4952,
16,
5378,
13,
469,
30,
1456,
18,
2670,
3816,
6487,
5261,
13,
309,
3859,
12,
3482,
16,
2070,
1132,
11,
4672,
1244,
273,
1456,
18,
1132,
365,
63,
856,
65,
273,
1244,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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273,
336,
3838,
18,
588,
3838,
12,
19485,
16,
365,
18,
3510,
967,
3838,
9334,
5378,
13,
1335,
336,
3838,
18,
967,
3838,
668,
16,
393,
30,
365,
18,
5201,
6767,
12,
370,
13,
309,
2400,
76,
11,
316,
5261,
30,
365,
18,
5201,
6767,
2668,
2187,
374,
13,
365,
3292,
1968,
3546,
273,
833,
364,
498,
316,
365,
18,
2452,
13332,
309,
498,
422,
296,
1968,
4278,
1324,
1456,
273,
365,
63,
856,
65,
309,
741,
67,
588,
3838,
30,
1456,
18,
2670,
12,
4952,
16,
2
] |
form = DataForm(title = 'Enter the radius', data=['Enter the radius of the circle (numbers only)',DataField(label='Radius',name='radius',typ='text-single')]) | form = DataForm(title = 'Enter the radius', data=['Enter the radius of the circle (numbers only)',DataField(desc='Radius',name='radius',typ='text-single')]) | def cmdSecondStageReply(self,conn,request): reply = request.buildReply('result') form = DataForm(title = 'Enter the radius', data=['Enter the radius of the circle (numbers only)',DataField(label='Radius',name='radius',typ='text-single')]) replypayload = [Node('actions',attrs={'execute':'complete'},payload=[Node('complete'),Node('prev')]),form] reply.addChild(name='command',namespace=NS_COMMAND,attrs={'node':request.getTagAttr('command','node'),'sessionid':request.getTagAttr('command','sessionid'),'status':'executing'},payload=replypayload) self._owner.send(reply) raise NodeProcessed | 20e0ee4d2947d3c87389d11c8d269bbcd3037b2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/20e0ee4d2947d3c87389d11c8d269bbcd3037b2e/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
8211,
8755,
7817,
12,
2890,
16,
4646,
16,
2293,
4672,
4332,
273,
590,
18,
3510,
7817,
2668,
2088,
6134,
646,
273,
1910,
1204,
12,
2649,
273,
296,
10237,
326,
5725,
2187,
501,
33,
3292,
10237,
326,
5725,
434,
326,
12470,
261,
13851,
1338,
13,
2187,
751,
974,
12,
5569,
2218,
10196,
2187,
529,
2218,
11282,
2187,
12846,
2218,
955,
17,
7526,
6134,
5717,
6831,
879,
1859,
273,
306,
907,
2668,
4905,
2187,
7039,
5899,
11,
8837,
11,
2497,
6226,
11,
5779,
7648,
22850,
907,
2668,
6226,
19899,
907,
2668,
10001,
6134,
65,
3631,
687,
65,
4332,
18,
1289,
1763,
12,
529,
2218,
3076,
2187,
4937,
33,
3156,
67,
19104,
16,
7039,
5899,
11,
2159,
4278,
2293,
18,
588,
1805,
3843,
2668,
3076,
17023,
2159,
19899,
11,
3184,
350,
4278,
2293,
18,
588,
1805,
3843,
2668,
3076,
17023,
3184,
350,
19899,
11,
2327,
11,
2497,
4177,
8490,
11,
5779,
7648,
33,
26745,
879,
1859,
13,
365,
6315,
8443,
18,
4661,
12,
10629,
13,
1002,
2029,
13533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
8211,
8755,
7817,
12,
2890,
16,
4646,
16,
2293,
4672,
4332,
273,
590,
18,
3510,
7817,
2668,
2088,
6134,
646,
273,
1910,
1204,
12,
2649,
273,
296,
10237,
326,
5725,
2187,
501,
33,
3292,
10237,
326,
5725,
434,
326,
12470,
261,
13851,
1338,
13,
2187,
751,
974,
12,
5569,
2218,
10196,
2187,
529,
2218,
11282,
2187,
12846,
2218,
955,
17,
7526,
6134,
5717,
6831,
879,
1859,
273,
306,
907,
2668,
4905,
2187,
7039,
5899,
11,
8837,
11,
2497,
6226,
11,
5779,
7648,
22850,
907,
2668,
6226,
19899,
907,
2668,
10001,
6134,
65,
3631,
687,
65,
4332,
18,
1289,
1763,
12,
529,
2218,
3076,
2187,
4937,
33,
3156,
67,
19104,
16,
7039,
5899,
11,
2159,
4278,
2293,
18,
2
] |
self._saveCSV(fname) | self._saveCSV(fileName) | def save(self,fname): ''' Dump the class data into a csv or pickle file The encoding is determined by the filename's extension: 'csv' : When the filename ends in '.csv' the routine tries to interpret the file as comma seperated values. The variable names must be in the first row Any other extension is considered to mean a file in Python's pickle format. Arguments: fname : filename; string Returns: None ''' fext = self._getExtension(fname) if fext == 'csv': self._saveCSV(fname) else: #elif fext == 'pickle': self._savePickle(fname) | 45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
12749,
4672,
9163,
18242,
326,
667,
501,
1368,
279,
6101,
578,
13379,
585,
225,
1021,
2688,
353,
11383,
635,
326,
1544,
1807,
2710,
30,
296,
6715,
11,
294,
5203,
326,
1544,
3930,
316,
2418,
6715,
11,
326,
12245,
9327,
358,
10634,
326,
585,
487,
8716,
22282,
690,
924,
18,
1021,
2190,
1257,
1297,
506,
316,
326,
1122,
1027,
5502,
1308,
2710,
353,
7399,
358,
3722,
279,
585,
316,
6600,
1807,
13379,
740,
18,
225,
13599,
30,
5299,
565,
294,
1544,
31,
533,
225,
2860,
30,
599,
9163,
284,
408,
273,
365,
6315,
588,
3625,
12,
12749,
13,
309,
284,
408,
422,
296,
6715,
4278,
365,
6315,
5688,
16570,
12,
17812,
13,
469,
30,
468,
292,
430,
284,
408,
422,
296,
20847,
4278,
365,
6315,
5688,
17968,
298,
12,
12749,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
12749,
4672,
9163,
18242,
326,
667,
501,
1368,
279,
6101,
578,
13379,
585,
225,
1021,
2688,
353,
11383,
635,
326,
1544,
1807,
2710,
30,
296,
6715,
11,
294,
5203,
326,
1544,
3930,
316,
2418,
6715,
11,
326,
12245,
9327,
358,
10634,
326,
585,
487,
8716,
22282,
690,
924,
18,
1021,
2190,
1257,
1297,
506,
316,
326,
1122,
1027,
5502,
1308,
2710,
353,
7399,
358,
3722,
279,
585,
316,
6600,
1807,
13379,
740,
18,
225,
13599,
30,
5299,
565,
294,
1544,
31,
533,
225,
2860,
30,
599,
9163,
284,
408,
273,
365,
6315,
588,
3625,
12,
12749,
13,
309,
284,
408,
422,
296,
6715,
4278,
365,
6315,
5688,
16570,
12,
17812,
13,
469,
30,
468,
2
] |
bt.clicked = (my_pager_pop, (pg,info)) | bt.callback_clicked_add(my_pager_pop, pg,info) | def pager_clicked(obj, it, *args, **kwargs): win = elementary.Window("pager", elementary.ELM_WIN_BASIC) win.autodel_set(True) win.title_set("Pager") bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() pg = elementary.Pager(win) win.resize_object_add(pg) pg.show() info = dict() bx = elementary.Box(win) bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bx.show() lb = elementary.Label(win) lb.label_set("This is page 1 in a pager stack.<br>" "<br>" "So what is a pager stack? It is a stack<br>" "of pages that hold widgets in it. The<br>" "pages can be pushed and popped on and<br>" "off the stack, activated and otherwise<br>" "activated if already in the stack<br>" "(activated means promoted to the top of<br>" "the stack).<br>" "<br>" "The theme may define the animation how<br>" "show and hide of pages.") bx.pack_end(lb) lb.show() bt = elementary.Button(win) bt.label_set("Flip to 2") bt.clicked = (my_pager_1, (pg, info)) bx.pack_end(bt) bt.show() bt = elementary.Button(win) bt.label_set("Popme") bt.clicked = (my_pager_pop, (pg, info)) bx.pack_end(bt) bt.show() pg.content_push(bx) info["pg1"] = bx; bx = elementary.Box(win) bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bx.show() lb = elementary.Label(win) lb.label_set("This is page 2 in a pager stack.<br>" "<br>" "This is just like the previous page in<br>" "the pager stack.") bx.pack_end(lb) lb.show() bt = elementary.Button(win) bt.label_set("Flip to 3") bt.clicked = (my_pager_2, (pg, info)) bx.pack_end(bt) bt.show() bt = elementary.Button(win) bt.label_set("Popme") bt.clicked = (my_pager_pop, (pg,info)) bx.pack_end(bt) bt.show() pg.content_push(bx) info["pg2"] = bx bx = elementary.Box(win) bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bx.show() lb = elementary.Label(win) lb.label_set("This is page 3 in a pager stack.<br>" "<br>" "This is just like the previous page in<br>" "the pager stack.") bx.pack_end(lb) lb.show() bt = elementary.Button(win) bt.label_set("Flip to 1") bt.clicked = (my_pager_3, (pg,info)) bx.pack_end(bt) bt.show() bt = elementary.Button(win) bt.label_set("Popme") bt.clicked = (my_pager_pop, (pg,info)) bx.pack_end(bt) bt.show() pg.content_push(bx) info["pg3"] = bx win.resize(320, 320) win.show() | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12679,
67,
7475,
329,
12,
2603,
16,
518,
16,
380,
1968,
16,
2826,
4333,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
24081,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
5657,
18,
2649,
67,
542,
2932,
19115,
7923,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
7184,
273,
930,
814,
18,
19115,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
8365,
13,
7184,
18,
4500,
1435,
225,
1123,
273,
2065,
1435,
225,
24356,
273,
930,
814,
18,
3514,
12,
8082,
13,
24356,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
24356,
18,
4500,
1435,
225,
7831,
273,
930,
814,
18,
2224,
12,
8082,
13,
7831,
18,
1925,
67,
542,
2932,
2503,
353,
1363,
404,
316,
279,
12679,
2110,
22782,
2848,
2984,
3532,
2848,
2984,
315,
10225,
4121,
353,
279,
12679,
2110,
35,
2597,
353,
279,
2110,
32,
2848,
2984,
315,
792,
4689,
716,
6887,
10965,
316,
518,
18,
1021,
32,
2848,
2984,
315,
7267,
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,
12679,
67,
7475,
329,
12,
2603,
16,
518,
16,
380,
1968,
16,
2826,
4333,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
24081,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
5657,
18,
2649,
67,
542,
2932,
19115,
7923,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
7184,
273,
930,
814,
18,
19115,
12,
8082,
2
] |
self.fp.write('\nclass %s(aetools.ComponentItem):\n' % pname) self.fp.write('\t"""%s - %s """\n' % (name, desc)) self.fp.write('\twant = %s\n' % `code`) self.classnames[pname] = code self.classcodes[code] = pname | if self.fp: self.fp.write('\nclass %s(aetools.ComponentItem):\n' % pname) self.fp.write('\t"""%s - %s """\n' % (name, desc)) self.fp.write('\twant = %s\n' % `code`) self.namemappers[0].addnamecode('class', pname, code) | def compileclass(self, cls): [name, code, desc, properties, elements] = cls pname = identify(name) if self.classcodes.has_key(code): # plural forms and such self.fp.write("\n%s = %s\n"%(pname, self.classcodes[code])) self.classnames[pname] = code else: self.fp.write('\nclass %s(aetools.ComponentItem):\n' % pname) self.fp.write('\t"""%s - %s """\n' % (name, desc)) self.fp.write('\twant = %s\n' % `code`) self.classnames[pname] = code self.classcodes[code] = pname for prop in properties: self.compileproperty(prop) for elem in elements: self.compileelement(elem) | 42eee53a968a82394c0e1946ffbb8abc26471a5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/42eee53a968a82394c0e1946ffbb8abc26471a5d/gensuitemodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
1106,
12,
2890,
16,
2028,
4672,
306,
529,
16,
981,
16,
3044,
16,
1790,
16,
2186,
65,
273,
2028,
19952,
273,
9786,
12,
529,
13,
309,
365,
18,
1106,
7000,
18,
5332,
67,
856,
12,
710,
4672,
468,
7978,
10138,
471,
4123,
365,
18,
7944,
18,
2626,
31458,
82,
9,
87,
273,
738,
87,
64,
82,
6,
17105,
84,
529,
16,
365,
18,
1106,
7000,
63,
710,
22643,
365,
18,
1106,
1973,
63,
84,
529,
65,
273,
981,
469,
30,
309,
365,
18,
7944,
30,
365,
18,
7944,
18,
2626,
2668,
64,
82,
1106,
738,
87,
12,
69,
278,
8192,
18,
1841,
1180,
4672,
64,
82,
11,
738,
19952,
13,
365,
18,
7944,
18,
2626,
2668,
64,
88,
8395,
9,
87,
300,
738,
87,
3536,
64,
82,
11,
738,
261,
529,
16,
3044,
3719,
365,
18,
7944,
18,
2626,
2668,
64,
11246,
970,
273,
738,
87,
64,
82,
11,
738,
1375,
710,
24065,
365,
18,
529,
1458,
10422,
63,
20,
8009,
1289,
529,
710,
2668,
1106,
2187,
19952,
16,
981,
13,
364,
2270,
316,
1790,
30,
365,
18,
11100,
4468,
12,
5986,
13,
364,
3659,
316,
2186,
30,
365,
18,
11100,
2956,
12,
10037,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
1106,
12,
2890,
16,
2028,
4672,
306,
529,
16,
981,
16,
3044,
16,
1790,
16,
2186,
65,
273,
2028,
19952,
273,
9786,
12,
529,
13,
309,
365,
18,
1106,
7000,
18,
5332,
67,
856,
12,
710,
4672,
468,
7978,
10138,
471,
4123,
365,
18,
7944,
18,
2626,
31458,
82,
9,
87,
273,
738,
87,
64,
82,
6,
17105,
84,
529,
16,
365,
18,
1106,
7000,
63,
710,
22643,
365,
18,
1106,
1973,
63,
84,
529,
65,
273,
981,
469,
30,
309,
365,
18,
7944,
30,
365,
18,
7944,
18,
2626,
2668,
64,
82,
1106,
738,
87,
12,
69,
278,
8192,
18,
1841,
1180,
4672,
64,
82,
11,
738,
19952,
13,
365,
18,
7944,
18,
2626,
2668,
64,
2
] |
class ContourPlotFactory(GraphicPrimitiveFactory_contour_plot): | class ContourPlotFactory(GraphicPrimitiveFactory): | def _from_xdata_ydata(self, point, r, options): g = Graphics() g._circle(float(point[0]), float(point[1]), float(r), options) return g | 04a6df69dc4131eb63863357d3630867f997c0b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/04a6df69dc4131eb63863357d3630867f997c0b8/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
92,
892,
67,
93,
892,
12,
2890,
16,
1634,
16,
436,
16,
702,
4672,
314,
273,
16830,
1435,
314,
6315,
18970,
12,
5659,
12,
1153,
63,
20,
65,
3631,
1431,
12,
1153,
63,
21,
65,
3631,
1431,
12,
86,
3631,
702,
13,
327,
314,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
92,
892,
67,
93,
892,
12,
2890,
16,
1634,
16,
436,
16,
702,
4672,
314,
273,
16830,
1435,
314,
6315,
18970,
12,
5659,
12,
1153,
63,
20,
65,
3631,
1431,
12,
1153,
63,
21,
65,
3631,
1431,
12,
86,
3631,
702,
13,
327,
314,
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
] |
time.sleep(0.01) | def server(evt, buf): try: serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serv.settimeout(3) serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serv.bind(("", 0)) global PORT PORT = serv.getsockname()[1] serv.listen(5) conn, addr = serv.accept() except socket.timeout: pass else: n = 500 while buf and n > 0: r, w, e = select.select([], [conn], []) if w: sent = conn.send(buf) buf = buf[sent:] n -= 1 time.sleep(0.01) conn.close() finally: serv.close() PORT = None evt.set() | 75992edfaebbe08966746c7179b5c8ff8da8caeb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/75992edfaebbe08966746c7179b5c8ff8da8caeb/test_smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
73,
11734,
16,
1681,
4672,
775,
30,
13515,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
13515,
18,
542,
4538,
12,
23,
13,
13515,
18,
4424,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
862,
8001,
14142,
16,
404,
13,
13515,
18,
4376,
12,
2932,
3113,
374,
3719,
2552,
20987,
20987,
273,
13515,
18,
14665,
975,
529,
1435,
63,
21,
65,
13515,
18,
18085,
12,
25,
13,
1487,
16,
3091,
273,
13515,
18,
9436,
1435,
1335,
2987,
18,
4538,
30,
1342,
469,
30,
290,
273,
6604,
1323,
1681,
471,
290,
405,
374,
30,
436,
16,
341,
16,
425,
273,
2027,
18,
4025,
3816,
6487,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
73,
11734,
16,
1681,
4672,
775,
30,
13515,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
13515,
18,
542,
4538,
12,
23,
13,
13515,
18,
4424,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
862,
8001,
14142,
16,
404,
13,
13515,
18,
4376,
12,
2932,
3113,
374,
3719,
2552,
20987,
20987,
273,
13515,
18,
14665,
975,
529,
1435,
63,
21,
65,
13515,
18,
18085,
12,
25,
13,
1487,
16,
3091,
273,
13515,
18,
9436,
1435,
1335,
2987,
18,
4538,
30,
1342,
469,
30,
290,
273,
6604,
1323,
1681,
471,
290,
405,
374,
30,
436,
16,
341,
16,
425,
273,
2027,
18,
4025,
2
] |
|
vasp = os.environ['VASP_SCRIPT'] locals={} execfile(vasp, {}, locals) exitcode = locals['exitcode'] | if os.environ.has_key('VASP_COMMAND'): vasp = os.environ['VASP_COMMAND'] exitcode = os.system(vasp) elif os.environ.has_key('VASP_SCRIPT'): vasp = os.environ['VASP_SCRIPT'] locals={} execfile(vasp, {}, locals) exitcode = locals['exitcode'] else: raise RuntimeError('Please set either VASP_COMMAND or VASP_SCRIPT environment variable') | def calculate(self, atoms): """Generate necessary files in the working directory. If the directory does not exist it will be created. | 3f6573d59a6a06e07a56ebb8cf2b4a43a2725223 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/3f6573d59a6a06e07a56ebb8cf2b4a43a2725223/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
12,
2890,
16,
9006,
4672,
3536,
4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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
12,
2890,
16,
9006,
4672,
3536,
4625,
4573,
1390,
316,
326,
5960,
1867,
18,
225,
971,
326,
1867,
1552,
486,
1005,
518,
903,
506,
2522,
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
] |
self.assertNotEqual(True, self.ag.has([]) | self.assertNotEqual(True, self.ag.has([])) | def test_has( self ): " See if AbstractGroup.has() works as expected. " | a1fa875821a09dd15812ee16a73b26455943cd74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/a1fa875821a09dd15812ee16a73b26455943cd74/sprite_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5332,
12,
365,
262,
30,
315,
2164,
309,
4115,
1114,
18,
5332,
1435,
6330,
487,
2665,
18,
315,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5332,
12,
365,
262,
30,
315,
2164,
309,
4115,
1114,
18,
5332,
1435,
6330,
487,
2665,
18,
315,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.verbose_logger.log(yum.logginglevels.INFO_2, msg) | self.verbose_logger.log(yum.logginglevels.INFO_2, to_unicode(msg)) | def _maybeYouMeant(self, arg): """ If install argument doesn't match with case, tell the user. """ matches = self.doPackageLists(patterns=[arg], ignore_case=True) matches = matches.installed + matches.available matches = set(map(lambda x: x.name, matches)) if matches: msg = self.fmtKeyValFill(_(' * Maybe you meant: '), ", ".join(matches)) self.verbose_logger.log(yum.logginglevels.INFO_2, msg) | 7e418ff40a374215d52e53ec33412a23f3a26c50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/7e418ff40a374215d52e53ec33412a23f3a26c50/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19133,
6225,
4667,
970,
12,
2890,
16,
1501,
4672,
3536,
971,
3799,
1237,
3302,
1404,
845,
598,
648,
16,
9276,
326,
729,
18,
3536,
1885,
273,
365,
18,
2896,
2261,
7432,
12,
13317,
22850,
3175,
6487,
2305,
67,
3593,
33,
5510,
13,
1885,
273,
1885,
18,
13435,
397,
1885,
18,
5699,
1885,
273,
444,
12,
1458,
12,
14661,
619,
30,
619,
18,
529,
16,
1885,
3719,
309,
1885,
30,
1234,
273,
365,
18,
8666,
653,
3053,
8026,
24899,
2668,
225,
380,
14024,
1846,
20348,
30,
296,
3631,
3104,
3552,
5701,
12,
8436,
3719,
365,
18,
11369,
67,
4901,
18,
1330,
12,
93,
379,
18,
1330,
75,
1714,
941,
87,
18,
5923,
67,
22,
16,
1234,
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,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0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19133,
6225,
4667,
970,
12,
2890,
16,
1501,
4672,
3536,
971,
3799,
1237,
3302,
1404,
845,
598,
648,
16,
9276,
326,
729,
18,
3536,
1885,
273,
365,
18,
2896,
2261,
7432,
12,
13317,
22850,
3175,
6487,
2305,
67,
3593,
33,
5510,
13,
1885,
273,
1885,
18,
13435,
397,
1885,
18,
5699,
1885,
273,
444,
12,
1458,
12,
14661,
619,
30,
619,
18,
529,
16,
1885,
3719,
309,
1885,
30,
1234,
273,
365,
18,
8666,
653,
3053,
8026,
24899,
2668,
225,
380,
14024,
1846,
20348,
30,
296,
3631,
3104,
3552,
5701,
12,
8436,
3719,
365,
18,
11369,
67,
4901,
18,
1330,
12,
93,
379,
18,
1330,
75,
1714,
941,
87,
18,
5923,
67,
22,
16,
1234,
13,
2,
-100
] |
if code == errno.ECONNABORTED or \ code == errno.ECONNRESET: | if code in (errno.ECONNABORTED, errno.ECONNRESET, errno.WSAENOTSOCK): | def runChunkPump(self): self.cond.acquire() try: while True: while len(self.chunkQueue) == 0: self.cond.wait() (mimeType, body) = self.chunkQueue[0] self.chunkQueue = self.chunkQueue[1:] | 6d97d27a8bfe15febfa2b361b037463a41ba58fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/6d97d27a8bfe15febfa2b361b037463a41ba58fa/HTMLDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5579,
52,
2801,
12,
2890,
4672,
365,
18,
10013,
18,
1077,
1039,
1435,
775,
30,
1323,
1053,
30,
1323,
562,
12,
2890,
18,
6551,
3183,
13,
422,
374,
30,
365,
18,
10013,
18,
7048,
1435,
225,
261,
19176,
16,
1417,
13,
273,
365,
18,
6551,
3183,
63,
20,
65,
365,
18,
6551,
3183,
273,
365,
18,
6551,
3183,
63,
21,
26894,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5579,
52,
2801,
12,
2890,
4672,
365,
18,
10013,
18,
1077,
1039,
1435,
775,
30,
1323,
1053,
30,
1323,
562,
12,
2890,
18,
6551,
3183,
13,
422,
374,
30,
365,
18,
10013,
18,
7048,
1435,
225,
261,
19176,
16,
1417,
13,
273,
365,
18,
6551,
3183,
63,
20,
65,
365,
18,
6551,
3183,
273,
365,
18,
6551,
3183,
63,
21,
26894,
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
] |
if isinstance(right, basestring): | def _get_expression(field_obj,cr, uid, left, right, operator, context=None): if context is None: context = {} | def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type) | c9dcc96cd979cd9aa5f9d8a61e0f77de894bbde6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c9dcc96cd979cd9aa5f9d8a61e0f77de894bbde6/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
16,
652,
6315,
350,
22,
16,
3258,
16,
3726,
16,
652,
6315,
723,
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
] |
self._step += self.growStep() | self.growStep() | def grow(self, maxCost = None): oldStep = self._step if maxCost: while self._queue and self._queue.top()[1] <= maxCost: self._step += self.growStep() else: while self._queue: self._step += self.growStep() return self._step - oldStep | 43fa35262c81565391129ff8b1d3eee04166fe34 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/43fa35262c81565391129ff8b1d3eee04166fe34/maputils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
12,
2890,
16,
943,
8018,
273,
599,
4672,
1592,
4160,
273,
365,
6315,
4119,
309,
943,
8018,
30,
1323,
365,
6315,
4000,
471,
365,
6315,
4000,
18,
3669,
1435,
63,
21,
65,
1648,
943,
8018,
30,
365,
18,
75,
492,
4160,
1435,
469,
30,
1323,
365,
6315,
4000,
30,
365,
18,
75,
492,
4160,
1435,
327,
365,
6315,
4119,
300,
1592,
4160,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13334,
12,
2890,
16,
943,
8018,
273,
599,
4672,
1592,
4160,
273,
365,
6315,
4119,
309,
943,
8018,
30,
1323,
365,
6315,
4000,
471,
365,
6315,
4000,
18,
3669,
1435,
63,
21,
65,
1648,
943,
8018,
30,
365,
18,
75,
492,
4160,
1435,
469,
30,
1323,
365,
6315,
4000,
30,
365,
18,
75,
492,
4160,
1435,
327,
365,
6315,
4119,
300,
1592,
4160,
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
] |
GEARS_DBG_PATH = r'src\gears\bin-dbg\win32-i386\npapi' GEARS_OPT_PATH = r'src\gears\bin-opt\win32-i386\npapi' | GEARS_DBG_PATH = r'src\gears\gears\bin-dbg\win32-i386\npapi' GEARS_OPT_PATH = r'src\gears\gears\bin-opt\win32-i386\npapi' | def _buildPath(self, directory): return self._findBuildPath('chrome', directory) | 5e9395001ba7d1e66539d595c6ca596797bfe2f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1918/5e9395001ba7d1e66539d595c6ca596797bfe2f8/installer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
743,
12,
2890,
16,
1867,
4672,
327,
365,
6315,
4720,
3116,
743,
2668,
343,
10896,
2187,
1867,
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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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
] |
print init() | init() | def Init(self,component_name): rospy.loginfo("Waiting for %s_controller init...", component_name) service_name = component_name + "_controller/Init" try: rospy.wait_for_service(service_name,rospy.get_param('server_timeout',1)) except rospy.ROSException, e: print "Service not available: %s"%e return False try: init = rospy.ServiceProxy(service_name,Trigger) print init() except rospy.ServiceException, e: print "Service call failed: %s"%e return False return True | 98bbf3e9216af2935a0c25f6d3523b8683f9c0c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12032/98bbf3e9216af2935a0c25f6d3523b8683f9c0c6/simple_script_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
12,
2890,
16,
4652,
67,
529,
4672,
721,
30884,
18,
1330,
1376,
2932,
15946,
364,
738,
87,
67,
5723,
1208,
7070,
16,
1794,
67,
529,
13,
1156,
67,
529,
273,
1794,
67,
529,
397,
4192,
5723,
19,
2570,
6,
775,
30,
721,
30884,
18,
7048,
67,
1884,
67,
3278,
12,
3278,
67,
529,
16,
303,
30884,
18,
588,
67,
891,
2668,
3567,
67,
4538,
2187,
21,
3719,
1335,
721,
30884,
18,
1457,
55,
503,
16,
425,
30,
1172,
315,
1179,
486,
2319,
30,
738,
87,
28385,
73,
327,
1083,
775,
30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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
12,
2890,
16,
4652,
67,
529,
4672,
721,
30884,
18,
1330,
1376,
2932,
15946,
364,
738,
87,
67,
5723,
1208,
7070,
16,
1794,
67,
529,
13,
1156,
67,
529,
273,
1794,
67,
529,
397,
4192,
5723,
19,
2570,
6,
775,
30,
721,
30884,
18,
7048,
67,
1884,
67,
3278,
12,
3278,
67,
529,
16,
303,
30884,
18,
588,
67,
891,
2668,
3567,
67,
4538,
2187,
21,
3719,
1335,
721,
30884,
18,
1457,
55,
503,
16,
425,
30,
1172,
315,
1179,
486,
2319,
30,
738,
87,
28385,
73,
327,
1083,
775,
30,
1208,
273,
721,
30884,
18,
1179,
3886,
12,
3278,
67,
529,
16,
6518,
13,
225,
1208,
1435,
1335,
721,
30884,
18,
15133,
16,
425,
30,
1172,
2
] |
"if ((([ENTRY]->data[[ENTRY]->offset_opcode] >> 3) & 0x7) == 2) msg.cpu->actv_state |= 2", | "if ((([ENTRY]->data[[ENTRY]->offset_opcode] >> 3) & 0x7) == 2) msg.cpu->intr_state |= 2", | def add_helper(l, flags, params): if "[ENTRY]" in params: flags.append("ENTRY") for x in l: name = reduce(lambda x,y: x.replace(y, "_"), "% ,", x.upper()) if "NO_OS" not in flags: name += "<[os]>" opcodes.append((x, flags, ["helper_%s(msg %s)"%(name, params and "," + params or "")])) | 1f09433d9a30eb861d5fedbd3de488778deb51ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6150/1f09433d9a30eb861d5fedbd3de488778deb51ba/build_instructions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4759,
12,
80,
16,
2943,
16,
859,
4672,
309,
5158,
19083,
4279,
316,
859,
30,
2943,
18,
6923,
2932,
19083,
7923,
364,
619,
316,
328,
30,
508,
273,
5459,
12,
14661,
619,
16,
93,
30,
619,
18,
2079,
12,
93,
16,
8802,
3631,
2213,
269,
3113,
619,
18,
5797,
10756,
309,
315,
3417,
67,
4618,
6,
486,
316,
2943,
30,
508,
1011,
3532,
63,
538,
65,
2984,
1061,
7000,
18,
6923,
12443,
92,
16,
2943,
16,
8247,
4759,
10185,
87,
12,
3576,
738,
87,
2225,
17105,
529,
16,
859,
471,
5753,
397,
859,
578,
1408,
13,
22643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4759,
12,
80,
16,
2943,
16,
859,
4672,
309,
5158,
19083,
4279,
316,
859,
30,
2943,
18,
6923,
2932,
19083,
7923,
364,
619,
316,
328,
30,
508,
273,
5459,
12,
14661,
619,
16,
93,
30,
619,
18,
2079,
12,
93,
16,
8802,
3631,
2213,
269,
3113,
619,
18,
5797,
10756,
309,
315,
3417,
67,
4618,
6,
486,
316,
2943,
30,
508,
1011,
3532,
63,
538,
65,
2984,
1061,
7000,
18,
6923,
12443,
92,
16,
2943,
16,
8247,
4759,
10185,
87,
12,
3576,
738,
87,
2225,
17105,
529,
16,
859,
471,
5753,
397,
859,
578,
1408,
13,
22643,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"--title='C-H bond length distribution'", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", | "--title=C-H bond length distribution", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", | def test_df(self): self.from_xyz("thf01", "pos") self.from_cp2k_ener("thf01") self.execute("tr-ic-psf", ['tracks/atom.pos', 'bond', '1,2,3,4', '5,6,7,8,9,10,11,12', os.path.join(input_dir, "thf01/init.psf")]) # ordinary df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.df"]) df_hist = load_track("tracks/atom.pos.bond.df.hist") self.assertAlmostEqual(df_hist.sum(), 1.0, 2) self.execute("tr-plot", [ "--title='C-H bond length distribution'", "--xlabel='C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.hist", os.path.join(output_dir, "df_noerror.png"), ]) # cumulative df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["-c", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.cdf"]) cdf_hist = load_track("tracks/atom.pos.bond.cdf.hist") self.assertAlmostEqual(cdf_hist[-1], 1.0, 2) self.execute("tr-plot", [ "--title='Cumulative C-H bond length distribution'", "--xlabel='C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.cdf.bins", "tracks/atom.pos.bond.cdf.hist", os.path.join(output_dir, "df_cumul_noerror.png"), ]) # ordinary df, with error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.df"]) lines = [] for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.df.bin.???????")): output = self.execute("tr-blav", [bin_filename, "tracks/time", "-b10"]) lines.append(output[0]) self.execute("tr-write", ["tracks/atom.pos.bond.df.hist", "tracks/atom.pos.bond.df.hist.error"], stdin=lines) df_hist_bis = load_track("tracks/atom.pos.bond.df.hist") self.assertAlmostEqual(df_hist_bis.sum(), 1.0, 2) self.assertArraysAlmostEqual(df_hist, df_hist_bis, 1e-5) self.execute("tr-plot", [ "--title='C-H bond length distribution'", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.hist", "tracks/atom.pos.bond.df.hist.error", os.path.join(output_dir, "df_error.png"), ]) # cumulative df, with error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["-c", "--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.cdf"]) lines = [] for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.cdf.bin.???????")): output = self.execute("tr-blav", [bin_filename, "tracks/time", "-b10"]) lines.append(output[0]) self.execute("tr-write", ["tracks/atom.pos.bond.cdf.hist", "tracks/atom.pos.bond.cdf.hist.error"], stdin=lines) cdf_hist_bis = load_track("tracks/atom.pos.bond.cdf.hist") self.assertAlmostEqual(cdf_hist_bis[-1], 1.0, 2) self.assertArraysAlmostEqual(cdf_hist, cdf_hist_bis, 1e-5) self.execute("tr-plot", [ "--title='C-H bond length distribution'", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.cdf.bins", "tracks/atom.pos.bond.cdf.hist", "tracks/atom.pos.bond.cdf.hist.error", os.path.join(output_dir, "df_cumul_error.png"), ]) | d5a077734d4b0c5a3fbddf6c66de01cad46658ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11050/d5a077734d4b0c5a3fbddf6c66de01cad46658ff/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
8837,
2932,
313,
17,
335,
17,
1121,
74,
3113,
10228,
21499,
19,
7466,
18,
917,
2187,
296,
26425,
2187,
296,
21,
16,
22,
16,
23,
16,
24,
2187,
296,
25,
16,
26,
16,
27,
16,
28,
16,
29,
16,
2163,
16,
2499,
16,
2138,
2187,
1140,
18,
803,
18,
5701,
12,
2630,
67,
1214,
16,
315,
451,
74,
1611,
19,
2738,
18,
1121,
74,
7923,
5717,
468,
4642,
2101,
3013,
16,
1158,
555,
22252,
365,
18,
8837,
2932,
313,
17,
2180,
3113,
4715,
18,
10581,
2932,
21499,
19,
7466,
18,
917,
18,
26425,
18,
14646,
14646,
14646,
35,
18,
14646,
14646,
14646,
7225,
13,
397,
8247,
21,
18,
20,
14,
37,
3113,
315,
21,
18,
22,
14,
37,
3113,
315,
3462,
3113,
315,
21499,
19,
7466,
18,
917,
18,
26425,
18,
2180,
6,
5717,
3013,
67,
11488,
273,
1262,
67,
4101,
2932,
21499,
19,
7466,
18,
917,
18,
26425,
18,
2180,
18,
11488,
7923,
365,
18,
11231,
1067,
10329,
5812,
12,
2180,
67,
11488,
18,
1364,
9334,
404,
18,
20,
16,
576,
13,
365,
18,
8837,
2932,
313,
17,
4032,
3113,
306,
5238,
2649,
2218,
39,
17,
44,
8427,
769,
7006,
11,
3113,
5238,
19909,
2218,
39,
17,
44,
20335,
3113,
5238,
92,
4873,
33,
37,
3113,
5238,
93,
4873,
33,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
8837,
2932,
313,
17,
335,
17,
1121,
74,
3113,
10228,
21499,
19,
7466,
18,
917,
2187,
296,
26425,
2187,
296,
21,
16,
22,
16,
23,
16,
24,
2187,
296,
25,
16,
26,
16,
27,
16,
28,
16,
29,
16,
2163,
16,
2499,
16,
2138,
2187,
1140,
18,
803,
18,
5701,
12,
2630,
67,
1214,
16,
315,
451,
74,
1611,
19,
2738,
18,
1121,
74,
7923,
5717,
468,
4642,
2101,
3013,
16,
1158,
555,
22252,
365,
18,
8837,
2932,
313,
17,
2180,
3113,
4715,
2
] |
util.wait(defer.DeferredList(L, consumeErrors=True)) | return defer.DeferredList(L, consumeErrors=True) | def tearDown(self): if self.serverPort is not None: self.serverPort.stopListening() if self.clientConn is not None: self.clientConn.disconnect() | 6305a011c61d2e3075143d6d1aac62b453e35f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/6305a011c61d2e3075143d6d1aac62b453e35f67/test_sslverify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
309,
365,
18,
3567,
2617,
353,
486,
599,
30,
365,
18,
3567,
2617,
18,
5681,
31594,
1435,
309,
365,
18,
2625,
3543,
353,
486,
599,
30,
365,
18,
2625,
3543,
18,
20177,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
309,
365,
18,
3567,
2617,
353,
486,
599,
30,
365,
18,
3567,
2617,
18,
5681,
31594,
1435,
309,
365,
18,
2625,
3543,
353,
486,
599,
30,
365,
18,
2625,
3543,
18,
20177,
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
] |
miller_array = miller_array.f_sq_as_f() | miller_array = miller_array.enforce_positive_amplitudes() | def run(args, command_name="phenix.xtriage"): command_line = (option_parser( usage=command_name+" [options] reflection_file parameters [...]", description="Example: %s data1.mtz" % command_name) .option(None, "--long_help", action="store_true", help="show more help and exit") .enable_show_defaults() .enable_symmetry_comprehensive() .option(None, "--weak_symmetry", action="store_true", default=False, help="symmetry on command line is weaker than symmetry found in files") .option(None, "--quiet", action="store_true", help="suppress output") ).process(args=args) co = command_line.options if (len(command_line.args) == 0): command_line.parser.show_help() elif (co.long_help): print_help(appl=command_name) elif (command_line.expert_level is not None): master_params.show( expert_level=command_line.expert_level, attributes_level=command_line.attributes_level) else: log = multi_out() if (not co.quiet): log.register(label="stdout", file_object=sys.stdout) string_buffer = StringIO() string_buffer_plots = StringIO() log.register(label="log_buffer", file_object=string_buffer) print_banner(appl=command_name, out=log) print >> log, "#phil __OFF__" print >> log print >> log, date_and_time() print >> log print >> log phil_objects = [] argument_interpreter = libtbx.phil.command_line.argument_interpreter( master_phil=master_params) reflection_file = None for arg in command_line.args: command_line_params = None arg_is_processed = False if (os.path.isfile(arg)): ## is this a file name? ## Check if this is a phil file try: command_line_params = iotbx.phil.parse(file_name=arg) except KeyboardInterrupt: raise except : pass if command_line_params is not None: phil_objects.append(command_line_params) arg_is_processed = True if (not arg_is_processed): ## Check if this file is a reflection file if command_line_params is None: reflection_file = reflection_file_reader.any_reflection_file( file_name=arg, ensure_read_access=False) if (reflection_file is not None): reflection_file = arg arg_is_processed = True ## If it is not a file, it must be a phil command else: command_line_params = argument_interpreter.process(arg=arg) phil_objects.append(command_line_params) arg_is_processed = True if not arg_is_processed: print >> log, "##--------------------------------------------------------------------##" print >> log, "## Unknown phil-file or phil-command:", arg print >> log, "##--------------------------------------------------------------------##" print >> log raise Sorry("Unknown file format or phil command: %s" % arg) effective_params = master_params.fetch(sources=phil_objects) params = effective_params.extract() if reflection_file is not None: params.scaling.input.xray_data.file_name=reflection_file verbose = params.scaling.input.parameters.reporting.verbose scope = params.scaling.input.xray_data if (scope.unit_cell is None or not co.weak_symmetry): if command_line.symmetry.unit_cell() is not None: scope.unit_cell = command_line.symmetry.unit_cell() if (scope.space_group is None or not co.weak_symmetry): if command_line.symmetry.space_group_info() is not None: scope.space_group = command_line.symmetry.space_group_info() ## Check for number of residues reset_space_group = False reset_unit_cell = False if params.scaling.input.parameters.asu_contents.n_residues is None: print >> log, "##-------------------------------------------##" print >> log, "## WARNING: ##" print >> log, "## Number of residues unspecified ##" print >> log, "##-------------------------------------------##" if params.scaling.input.xray_data.file_name is None: print >> log,"##-------------------------------------------##" print >> log,"## No reflection name is defined. ##" print >> log,"##-------------------------------------------##" raise Sorry("No reflection file defined") crystal_symmetry = crystal_symmetry_from_any.extract_from( file_name=params.scaling.input.xray_data.file_name) if crystal_symmetry is None: print >> log, "Cell and symmetry not specified in reflection file" if params.scaling.input.xray_data.space_group is None: raise Sorry("""No space group info available. Use keyword 'xray_data.space_group' to specify space group""" ) if (params.scaling.input.xray_data.unit_cell is None) : raise Sorry(""" | 13a75370045bada02375005fee407a091a9f9fdf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/13a75370045bada02375005fee407a091a9f9fdf/xtriage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1968,
16,
1296,
67,
529,
1546,
13819,
697,
18,
92,
16857,
410,
6,
4672,
1296,
67,
1369,
273,
261,
3482,
67,
4288,
12,
4084,
33,
3076,
67,
529,
9078,
306,
2116,
65,
5463,
67,
768,
1472,
306,
2777,
65,
3113,
2477,
1546,
10908,
30,
738,
87,
501,
21,
18,
1010,
94,
6,
738,
1296,
67,
529,
13,
263,
3482,
12,
7036,
16,
5238,
5748,
67,
5201,
3113,
1301,
1546,
2233,
67,
3767,
3113,
2809,
1546,
4500,
1898,
2809,
471,
2427,
7923,
263,
7589,
67,
4500,
67,
7606,
1435,
263,
7589,
67,
8117,
18042,
67,
832,
1484,
76,
14315,
1435,
263,
3482,
12,
7036,
16,
5238,
26008,
67,
8117,
18042,
3113,
1301,
1546,
2233,
67,
3767,
3113,
805,
33,
8381,
16,
2809,
1546,
8117,
18042,
603,
1296,
980,
353,
732,
6388,
2353,
26144,
1392,
316,
1390,
7923,
263,
3482,
12,
7036,
16,
5238,
20380,
3113,
1301,
1546,
2233,
67,
3767,
3113,
2809,
1546,
10840,
876,
7923,
262,
18,
2567,
12,
1968,
33,
1968,
13,
1825,
273,
1296,
67,
1369,
18,
2116,
309,
261,
1897,
12,
3076,
67,
1369,
18,
1968,
13,
422,
374,
4672,
1296,
67,
1369,
18,
4288,
18,
4500,
67,
5201,
1435,
1327,
261,
2894,
18,
5748,
67,
5201,
4672,
1172,
67,
5201,
12,
438,
412,
33,
3076,
67,
529,
13,
1327,
261,
3076,
67,
1369,
18,
338,
672,
67,
2815,
353,
486,
599,
4672,
4171,
67,
2010,
18,
4500,
12,
431,
672,
67,
2815,
33,
3076,
67,
1369,
18,
338,
672,
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,
1086,
12,
1968,
16,
1296,
67,
529,
1546,
13819,
697,
18,
92,
16857,
410,
6,
4672,
1296,
67,
1369,
273,
261,
3482,
67,
4288,
12,
4084,
33,
3076,
67,
529,
9078,
306,
2116,
65,
5463,
67,
768,
1472,
306,
2777,
65,
3113,
2477,
1546,
10908,
30,
738,
87,
501,
21,
18,
1010,
94,
6,
738,
1296,
67,
529,
13,
263,
3482,
12,
7036,
16,
5238,
5748,
67,
5201,
3113,
1301,
1546,
2233,
67,
3767,
3113,
2809,
1546,
4500,
1898,
2809,
471,
2427,
7923,
263,
7589,
67,
4500,
67,
7606,
1435,
263,
7589,
67,
8117,
18042,
67,
832,
1484,
76,
14315,
1435,
263,
3482,
12,
7036,
16,
5238,
26008,
67,
8117,
18042,
3113,
1301,
1546,
2233,
67,
3767,
3113,
2
] |
return generators[self.generator_index] | return generators[self.generator_id] | def get_generator_from_config(self): if self.generator_index: generators = self.get_generators() return generators[self.generator_index] else: config = ConfigParser.RawConfigParser() config.read(self.config_filepath()) return config.get('cmake', 'generator') | 2fc53db7d8cb3d5e734c94335c9edc43f1b1a9fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7412/2fc53db7d8cb3d5e734c94335c9edc43f1b1a9fd/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8812,
67,
2080,
67,
1425,
12,
2890,
4672,
309,
365,
18,
8812,
67,
1615,
30,
13327,
273,
365,
18,
588,
67,
25959,
1435,
327,
13327,
63,
2890,
18,
8812,
67,
350,
65,
469,
30,
642,
273,
25076,
18,
4809,
809,
2678,
1435,
642,
18,
896,
12,
2890,
18,
1425,
67,
10561,
10756,
327,
642,
18,
588,
2668,
71,
6540,
2187,
296,
8812,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8812,
67,
2080,
67,
1425,
12,
2890,
4672,
309,
365,
18,
8812,
67,
1615,
30,
13327,
273,
365,
18,
588,
67,
25959,
1435,
327,
13327,
63,
2890,
18,
8812,
67,
350,
65,
469,
30,
642,
273,
25076,
18,
4809,
809,
2678,
1435,
642,
18,
896,
12,
2890,
18,
1425,
67,
10561,
10756,
327,
642,
18,
588,
2668,
71,
6540,
2187,
296,
8812,
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
] |
for (int i = 0; i < dim_zz[0]*dim_zz[1]; ++i) | for (int i = 0; i < dim_zz[0]*dim_zz[1]; ++i) | def c_code(self, node, name, (img2d, filtersflipped), (z, ), sub): if node.inputs[0].type.dtype != node.inputs[1].type.dtype: raise NotImplementedError() assert node.inputs[0].type.dtype == node.inputs[1].type.dtype d=locals() d.update(sub) | aaea1d322c657ba643c240526cb3f00d5d2d997d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/aaea1d322c657ba643c240526cb3f00d5d2d997d/conv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
6081,
22,
72,
16,
3415,
12357,
1845,
3631,
261,
94,
16,
262,
16,
720,
4672,
309,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
480,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
30,
1002,
11206,
1435,
1815,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
422,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
302,
33,
17977,
1435,
302,
18,
2725,
12,
1717,
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,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206,
1435,
1815,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
422,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
302,
33,
17977,
1435,
302,
18,
2725,
12,
1717,
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
] |
id = self.pool.get('ir.model.data')._update(cr, uid, self._name, current_module, res, xml_id=data_id, mode=mode, noupdate=noupdate) | try: id = self.pool.get('ir.model.data')._update(cr, uid, self._name, current_module, res, xml_id=data_id, mode=mode, noupdate=noupdate) except Exception, e: import psycopg2 if isinstance(e,psycopg2.IntegrityError): msg= 'Insertion Failed!' for key in self.pool._sql_error.keys(): if key in e[0]: msg = self.pool._sql_error[key] break return (-1, res,msg,'' ) | fields_def = self.fields_get(cr, uid, context=context) | e6f4c4fb2b2f868f757719077690cf3bf15a343b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e6f4c4fb2b2f868f757719077690cf3bf15a343b/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
url = "http://pypi.python.org/pypi/ZODB3", packages = packages, | packages = find_packages(), | def read_file(*path): base_dir = os.path.dirname(__file__) file_path = (base_dir, ) + tuple(path) return file(os.path.join(*file_path)).read() | 16d64841c93a69cae03b19fca5c30829be71f6db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10048/16d64841c93a69cae03b19fca5c30829be71f6db/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
768,
30857,
803,
4672,
1026,
67,
1214,
273,
1140,
18,
803,
18,
12287,
12,
972,
768,
972,
13,
585,
67,
803,
273,
261,
1969,
67,
1214,
16,
262,
397,
3193,
12,
803,
13,
327,
585,
12,
538,
18,
803,
18,
5701,
30857,
768,
67,
803,
13,
2934,
896,
1435,
225,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
768,
30857,
803,
4672,
1026,
67,
1214,
273,
1140,
18,
803,
18,
12287,
12,
972,
768,
972,
13,
585,
67,
803,
273,
261,
1969,
67,
1214,
16,
262,
397,
3193,
12,
803,
13,
327,
585,
12,
538,
18,
803,
18,
5701,
30857,
768,
67,
803,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'MODIFIED': date.Date(self.item.modified).format(DATES_FORMAT, sLang), | 'MODIFIED': modified.format(DATES_FORMAT, sLang), | def setParams(self): sLang = self.request.getLang() self.params = { 'ICON': self.item.__image__, 'NAME': self.item.originalName, 'LOC': self.item.originalLocation, 'MODIFIED': date.Date(self.item.modified).format(DATES_FORMAT, sLang), 'MODIFIED_BY': self.item.modifiedBy, 'CONTENTCLASS': self.item.getDeletedItem().contentclass } | 9a2f8b99a4794ca66a515bfe9ca832718bd20756 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/9a2f8b99a4794ca66a515bfe9ca832718bd20756/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31705,
12,
2890,
4672,
272,
7275,
273,
365,
18,
2293,
18,
588,
7275,
1435,
365,
18,
2010,
273,
288,
296,
21745,
4278,
365,
18,
1726,
16186,
2730,
972,
16,
296,
1985,
4278,
365,
18,
1726,
18,
8830,
461,
16,
296,
29450,
4278,
365,
18,
1726,
18,
8830,
2735,
16,
296,
21143,
4278,
4358,
18,
2139,
12,
4594,
55,
67,
7254,
16,
272,
7275,
3631,
296,
21143,
67,
6486,
4278,
365,
18,
1726,
18,
7342,
858,
16,
296,
9689,
5237,
4278,
365,
18,
1726,
18,
588,
7977,
1180,
7675,
26053,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31705,
12,
2890,
4672,
272,
7275,
273,
365,
18,
2293,
18,
588,
7275,
1435,
365,
18,
2010,
273,
288,
296,
21745,
4278,
365,
18,
1726,
16186,
2730,
972,
16,
296,
1985,
4278,
365,
18,
1726,
18,
8830,
461,
16,
296,
29450,
4278,
365,
18,
1726,
18,
8830,
2735,
16,
296,
21143,
4278,
4358,
18,
2139,
12,
4594,
55,
67,
7254,
16,
272,
7275,
3631,
296,
21143,
67,
6486,
4278,
365,
18,
1726,
18,
7342,
858,
16,
296,
9689,
5237,
4278,
365,
18,
1726,
18,
588,
7977,
1180,
7675,
26053,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
request = urllib2.Request(self.baseURL, body, headers) | request = urllib2.Request(self.baseURL + "?" + urllib.urlencode({'actionType': 'importExport', 'export': ' Import Configuration ', 'passwordIn': configPassword}), body, headers) | def importConfig(self, gsaConfig, configPassword): fields = [("actionType", "importExport"), ("passwordIn", configPassword), ("import", " Import Configuration ")] | 6708e57e50c6e607b1ada5f205796225a601a166 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6393/6708e57e50c6e607b1ada5f205796225a601a166/gsa_admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
809,
12,
2890,
16,
10763,
69,
809,
16,
642,
3913,
4672,
1466,
273,
306,
2932,
1128,
559,
3113,
315,
5666,
6144,
6,
3631,
7566,
3664,
382,
3113,
642,
3913,
3631,
7566,
5666,
3113,
315,
6164,
4659,
9369,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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566,
5666,
3113,
315,
6164,
4659,
9369,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.log_event(event) | logger.log_event(event) | def wow64_breakpoint(self, event): event.continueStatus = win32.DBG_EXCEPTION_HANDLED self.log_event(event) | 6d6079c7bcc0ba519b666a5d46e251aede9525d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/6d6079c7bcc0ba519b666a5d46e251aede9525d0/sehtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
543,
1105,
67,
8820,
1153,
12,
2890,
16,
871,
4672,
871,
18,
17143,
1482,
273,
5657,
1578,
18,
2290,
43,
67,
12658,
67,
12346,
6687,
365,
18,
1330,
67,
2575,
12,
2575,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
543,
1105,
67,
8820,
1153,
12,
2890,
16,
871,
4672,
871,
18,
17143,
1482,
273,
5657,
1578,
18,
2290,
43,
67,
12658,
67,
12346,
6687,
365,
18,
1330,
67,
2575,
12,
2575,
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
] |
runQueueRunInit = 3 runQueueRunning = 4 runQueueFailed = 6 runQueueCleanUp = 7 runQueueComplete = 8 runQueueChildProcess = 9 | runQueueSceneInit = 3 runQueueSceneRun = 4 runQueueRunInit = 5 runQueueRunning = 6 runQueueFailed = 7 runQueueCleanUp = 8 runQueueComplete = 9 runQueueChildProcess = 10 | def taskActive(self): self.active = self.active + 1 | 787c1cf81195e97dda5fdab3a0a5d8bda97f6770 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/787c1cf81195e97dda5fdab3a0a5d8bda97f6770/runqueue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
3896,
12,
2890,
4672,
365,
18,
3535,
273,
365,
18,
3535,
397,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
3896,
12,
2890,
4672,
365,
18,
3535,
273,
365,
18,
3535,
397,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.ui.warn(_("applying %s\n") % patchname) | self.ui.status(_("applying %s\n") % patchname) | def _apply(self, repo, series, list=False, update_status=True, strict=False, patchdir=None, merge=None, all_files={}): '''returns (error, hash) error = 1 for unable to read, 2 for patch failed, 3 for patch fuzz''' # TODO unify with commands.py if not patchdir: patchdir = self.path err = 0 n = None for patchname in series: pushable, reason = self.pushable(patchname) if not pushable: self.explain_pushable(patchname, all_patches=True) continue self.ui.warn(_("applying %s\n") % patchname) pf = os.path.join(patchdir, patchname) | d1ee4df7c6a8e10cbc5b223fb0de0d1ccd030845 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/d1ee4df7c6a8e10cbc5b223fb0de0d1ccd030845/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
12,
2890,
16,
3538,
16,
4166,
16,
666,
33,
8381,
16,
1089,
67,
2327,
33,
5510,
16,
5490,
33,
8381,
16,
4729,
1214,
33,
7036,
16,
2691,
33,
7036,
16,
777,
67,
2354,
12938,
4672,
9163,
6154,
261,
1636,
16,
1651,
13,
555,
273,
404,
364,
13496,
358,
855,
16,
576,
364,
4729,
2535,
16,
890,
364,
4729,
31839,
26418,
468,
2660,
640,
1164,
598,
4364,
18,
2074,
309,
486,
4729,
1214,
30,
4729,
1214,
273,
365,
18,
803,
393,
273,
374,
290,
273,
599,
364,
4729,
529,
316,
4166,
30,
1817,
429,
16,
3971,
273,
365,
18,
6206,
429,
12,
2272,
529,
13,
309,
486,
1817,
429,
30,
365,
18,
338,
7446,
67,
6206,
429,
12,
2272,
529,
16,
777,
67,
30278,
33,
5510,
13,
1324,
365,
18,
4881,
18,
2327,
24899,
2932,
9010,
310,
738,
87,
64,
82,
7923,
738,
4729,
529,
13,
10811,
273,
1140,
18,
803,
18,
5701,
12,
2272,
1214,
16,
4729,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
12,
2890,
16,
3538,
16,
4166,
16,
666,
33,
8381,
16,
1089,
67,
2327,
33,
5510,
16,
5490,
33,
8381,
16,
4729,
1214,
33,
7036,
16,
2691,
33,
7036,
16,
777,
67,
2354,
12938,
4672,
9163,
6154,
261,
1636,
16,
1651,
13,
555,
273,
404,
364,
13496,
358,
855,
16,
576,
364,
4729,
2535,
16,
890,
364,
4729,
31839,
26418,
468,
2660,
640,
1164,
598,
4364,
18,
2074,
309,
486,
4729,
1214,
30,
4729,
1214,
273,
365,
18,
803,
393,
273,
374,
290,
273,
599,
364,
4729,
529,
316,
4166,
30,
1817,
429,
16,
3971,
273,
365,
18,
6206,
429,
12,
2272,
529,
13,
309,
486,
1817,
429,
30,
365,
18,
338,
7446,
67,
6206,
429,
2
] |
direction : {'x', 'y', 'z'} | direction: {'x', 'y', 'z'} | def truncate_along_axis(h, s, direction, centers_ic, cutoff): """Truncate h and s such along a cartesian axis. Parameters ========== h : (N, N) ndarray Hamiltonian matrix. s : (N, N) ndarray Overlap matrix. direction : {'x', 'y', 'z'} Truncate allong a cartesian axis. centers_ic : (N, 3) ndarray Centers of the basis functions. cutoff : float The (direction-axis projected) cutoff distance. """ dtype = h.dtype ni = len(centers_ic) d = 'xyz'.index(direction) pos_i = centers_ic[:, d] for i in range(ni): dpos_i = abs(pos_i - pos_i[i]) mask_i = (dpos_i < cutoff).astype(dtype) h[i, :] *= mask_i h[:, i] *= mask_i s[i, :] *= mask_i s[:, i] *= mask_i | d236dc8ff1ca61edf48f028c90c09247da820194 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/d236dc8ff1ca61edf48f028c90c09247da820194/siesta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
67,
287,
932,
67,
4890,
12,
76,
16,
272,
16,
4068,
16,
17723,
67,
335,
16,
13383,
4672,
3536,
25871,
366,
471,
272,
4123,
7563,
279,
24549,
2654,
18,
7012,
422,
1432,
366,
294,
261,
50,
16,
423,
13,
8304,
670,
11580,
1917,
2779,
3148,
18,
272,
294,
261,
50,
16,
423,
13,
8304,
10752,
3762,
3148,
18,
4068,
30,
13666,
92,
2187,
296,
93,
2187,
296,
94,
11,
97,
25869,
777,
932,
279,
24549,
2654,
18,
17723,
67,
335,
294,
261,
50,
16,
890,
13,
8304,
22321,
414,
434,
326,
10853,
4186,
18,
13383,
294,
1431,
1021,
261,
9855,
17,
4890,
20939,
13,
13383,
3888,
18,
3536,
3182,
273,
366,
18,
8972,
16398,
273,
562,
12,
20051,
67,
335,
13,
302,
273,
296,
17177,
10332,
1615,
12,
9855,
13,
949,
67,
77,
273,
17723,
67,
335,
10531,
16,
302,
65,
364,
277,
316,
1048,
12,
15834,
4672,
302,
917,
67,
77,
273,
2417,
12,
917,
67,
77,
300,
949,
67,
77,
63,
77,
5717,
3066,
67,
77,
273,
261,
72,
917,
67,
77,
411,
13383,
2934,
689,
388,
12,
8972,
13,
366,
63,
77,
16,
294,
65,
6413,
3066,
67,
77,
366,
10531,
16,
277,
65,
6413,
3066,
67,
77,
272,
63,
77,
16,
294,
65,
6413,
3066,
67,
77,
272,
10531,
16,
277,
65,
6413,
3066,
67,
77,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
67,
287,
932,
67,
4890,
12,
76,
16,
272,
16,
4068,
16,
17723,
67,
335,
16,
13383,
4672,
3536,
25871,
366,
471,
272,
4123,
7563,
279,
24549,
2654,
18,
7012,
422,
1432,
366,
294,
261,
50,
16,
423,
13,
8304,
670,
11580,
1917,
2779,
3148,
18,
272,
294,
261,
50,
16,
423,
13,
8304,
10752,
3762,
3148,
18,
4068,
30,
13666,
92,
2187,
296,
93,
2187,
296,
94,
11,
97,
25869,
777,
932,
279,
24549,
2654,
18,
17723,
67,
335,
294,
261,
50,
16,
890,
13,
8304,
22321,
414,
434,
326,
10853,
4186,
18,
13383,
294,
1431,
1021,
261,
9855,
17,
4890,
20939,
13,
13383,
3888,
18,
3536,
3182,
273,
366,
18,
8972,
16398,
273,
562,
12,
2
] |
"""Launch an application.""" foseButtons = [] def __init__(self,exePathArgs,image,tip,foseTip=None,foseArg=None): """Initialize exePathArgs (string): exePath exePathArgs (tuple): (exePath,*exeArgs)""" Link.__init__(self) self.gButton = None if isinstance(exePathArgs,tuple): self.exePath = exePathArgs[0] self.exeArgs = exePathArgs[1:] else: self.exePath = exePathArgs self.exeArgs = tuple() self.image = image self.tip = tip self.foseTip = foseTip self.foseArg = foseArg exeFose = bosh.dirs['app'].join('fose_loader.exe') def IsPresent(self): return self.exePath.exists() def GetBitmapButton(self,window,style=0): if self.IsPresent(): self.gButton = bitmapButton(window,self.image.GetBitmap(),style=style, onClick=self.Execute,tip=self.tip) if self.foseArg != None: App_Button.foseButtons.append(self) exeFose = bosh.dirs['app'].join('fose_loader.exe') if settings.get('bash.fose.on',False) and exeFose.exists(): self.gButton.SetToolTip(tooltip(self.foseTip)) return self.gButton else: return None def Execute(self,event,extraArgs=None): exeFose = bosh.dirs['app'].join('fose_loader.exe') exeArgs = self.exeArgs if self.foseArg != None and settings.get('bash.fose.on',False) and exeFose.exists(): exePath = exeFose if self.foseArg != '': exeArgs += (self.foseArg,) else: exePath = self.exePath exeArgs = (exePath.stail,)+exeArgs if extraArgs: exeArgs += extraArgs statusBar.SetStatusText(' '.join(exeArgs),1) cwd = bolt.Path.getcwd() exePath.head.setcwd() os.spawnv(os.P_NOWAIT,exePath.s,exeArgs) cwd.setcwd() | """Launch an application.""" foseButtons = [] def __init__(self,exePathArgs,image,tip,foseTip=None,foseArg=None): """Initialize exePathArgs (string): exePath exePathArgs (tuple): (exePath,*exeArgs)""" Link.__init__(self) self.gButton = None if isinstance(exePathArgs,tuple): self.exePath = exePathArgs[0] self.exeArgs = exePathArgs[1:] else: self.exePath = exePathArgs self.exeArgs = tuple() self.image = image self.tip = tip self.foseTip = foseTip self.foseArg = foseArg exeFose = bosh.dirs['app'].join('fose_loader.exe') def IsPresent(self): return self.exePath.exists() def GetBitmapButton(self,window,style=0): if self.IsPresent(): self.gButton = bitmapButton(window,self.image.GetBitmap(),style=style, onClick=self.Execute,tip=self.tip) if self.foseArg != None: App_Button.foseButtons.append(self) exeFose = bosh.dirs['app'].join('fose_loader.exe') if settings.get('bash.fose.on',False) and exeFose.exists(): self.gButton.SetToolTip(tooltip(self.foseTip)) return self.gButton else: return None def Execute(self,event,extraArgs=None): exeFose = bosh.dirs['app'].join('fose_loader.exe') exeArgs = self.exeArgs if self.foseArg != None and settings.get('bash.fose.on',False) and exeFose.exists(): exePath = exeFose if self.foseArg != '': exeArgs += (self.foseArg,) else: exePath = self.exePath exeArgs = (exePath.stail,)+exeArgs if extraArgs: exeArgs += extraArgs statusBar.SetStatusText(' '.join(exeArgs),1) cwd = bolt.Path.getcwd() exePath.head.setcwd() os.spawnv(os.P_NOWAIT,exePath.s,exeArgs) cwd.setcwd() | def Execute(self,event): itemId = self.data[0] masterInfo = self.window.data[itemId] masterName = masterInfo.name newName = GPath(re.sub('[mM]$','p','XX'+masterName.s)) #--Save Name masterInfo.setName(newName) self.window.ReList() self.window.PopulateItems() | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
18424,
273,
365,
18,
892,
63,
20,
65,
4171,
966,
273,
365,
18,
5668,
18,
892,
63,
1726,
548,
65,
4171,
461,
273,
4171,
966,
18,
529,
13253,
273,
611,
743,
12,
266,
18,
1717,
2668,
63,
81,
49,
65,
8,
17023,
84,
17023,
5619,
11,
15,
7525,
461,
18,
87,
3719,
468,
413,
4755,
1770,
4171,
966,
18,
542,
461,
12,
2704,
461,
13,
365,
18,
5668,
18,
426,
682,
1435,
365,
18,
5668,
18,
19097,
3126,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
18424,
273,
365,
18,
892,
63,
20,
65,
4171,
966,
273,
365,
18,
5668,
18,
892,
63,
1726,
548,
65,
4171,
461,
273,
4171,
966,
18,
529,
13253,
273,
611,
743,
12,
266,
18,
1717,
2668,
63,
81,
49,
65,
8,
17023,
84,
17023,
5619,
11,
15,
7525,
461,
18,
87,
3719,
468,
413,
4755,
1770,
4171,
966,
18,
542,
461,
12,
2704,
461,
13,
365,
18,
5668,
18,
426,
682,
1435,
365,
18,
5668,
18,
19097,
3126,
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
] |
Gives the images the page shows, as a list of Page objects. | Gives the images the page shows, as a list of ImagePage objects. | def imagelinks(self, followRedirects = False, loose = False): """ Gives the images the page shows, as a list of Page objects. This includes images in galleries. If loose is set to true, this will find anything that looks like it could be an image. This is useful for finding, say, images that are passed as parameters to templates. """ results = [] # Find normal images for page in self.linkedPages(): if page.isImage(): results.append(page) # Find images in galleries pageText = self.get() galleryR = re.compile('<gallery>.*?</gallery>', re.DOTALL) galleryEntryR = re.compile('(?P<title>(%s|%s):.+?)(\|.+)?\n' % (self.site().image_namespace(), self.site().family.image_namespace(code = '_default'))) for gallery in galleryR.findall(pageText): for match in galleryEntryR.finditer(gallery): page = ImagePage(self.site(), match.group('title')) results.append(page) if loose: ns = getSite().image_namespace() imageR = re.compile('\w\w\w+\.(?:gif|png|jpg|jpeg|svg)', re.IGNORECASE) for imageName in imageR.findall(pageText): results.append(ImagePage(self.site(), ns + ':' + imageName)) return set(results) | 4533a666d4a7cc618f4769355db41503436a4951 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/4533a666d4a7cc618f4769355db41503436a4951/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8902,
27269,
87,
12,
2890,
16,
2805,
21978,
273,
1083,
16,
28393,
273,
1083,
4672,
3536,
611,
3606,
326,
4602,
326,
1363,
17975,
16,
487,
279,
666,
434,
3421,
1964,
2184,
18,
1220,
6104,
4602,
316,
314,
30912,
18,
971,
28393,
353,
444,
358,
638,
16,
333,
903,
1104,
6967,
716,
10192,
3007,
518,
3377,
506,
392,
1316,
18,
1220,
353,
5301,
364,
13727,
16,
12532,
16,
4602,
716,
854,
2275,
487,
1472,
358,
5539,
18,
3536,
1686,
273,
5378,
468,
4163,
2212,
4602,
364,
1363,
316,
365,
18,
17738,
5716,
13332,
309,
1363,
18,
291,
2040,
13332,
1686,
18,
6923,
12,
2433,
13,
468,
4163,
4602,
316,
314,
30912,
1363,
1528,
273,
365,
18,
588,
1435,
13624,
54,
273,
283,
18,
11100,
2668,
32,
21454,
34,
23498,
1757,
21454,
1870,
16,
283,
18,
17591,
4685,
13,
13624,
1622,
54,
273,
283,
18,
11100,
2668,
3680,
52,
32,
2649,
34,
9275,
87,
30574,
87,
4672,
15591,
8535,
4713,
96,
18,
6975,
10936,
82,
11,
738,
261,
2890,
18,
4256,
7675,
2730,
67,
4937,
9334,
365,
18,
4256,
7675,
9309,
18,
2730,
67,
4937,
12,
710,
273,
2070,
1886,
11,
20349,
364,
13624,
316,
13624,
54,
18,
4720,
454,
12,
2433,
1528,
4672,
364,
845,
316,
13624,
1622,
54,
18,
4720,
2165,
12,
21454,
4672,
1363,
273,
3421,
1964,
12,
2890,
18,
4256,
9334,
845,
18,
1655,
2668,
2649,
26112,
1686,
18,
6923,
12,
2433,
13,
309,
28393,
30,
3153,
273,
11021,
7675,
2730,
67,
4937,
1435,
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,
8902,
27269,
87,
12,
2890,
16,
2805,
21978,
273,
1083,
16,
28393,
273,
1083,
4672,
3536,
611,
3606,
326,
4602,
326,
1363,
17975,
16,
487,
279,
666,
434,
3421,
1964,
2184,
18,
1220,
6104,
4602,
316,
314,
30912,
18,
971,
28393,
353,
444,
358,
638,
16,
333,
903,
1104,
6967,
716,
10192,
3007,
518,
3377,
506,
392,
1316,
18,
1220,
353,
5301,
364,
13727,
16,
12532,
16,
4602,
716,
854,
2275,
487,
1472,
358,
5539,
18,
3536,
1686,
273,
5378,
468,
4163,
2212,
4602,
364,
1363,
316,
365,
18,
17738,
5716,
13332,
309,
1363,
18,
291,
2040,
13332,
1686,
18,
6923,
12,
2433,
13,
468,
4163,
4602,
316,
314,
30912,
1363,
1528,
273,
365,
18,
588,
1435,
13624,
2
] |
print 'Garbage collecting %r' % self | def __del__(self): print 'Garbage collecting %r' % self self.stderr = self.tempTables = None try: self.dbh.close() except: pass self.dbh = self.database = None self.closed = True | aed605c8138b6549463d0064429311607ccf2b63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/aed605c8138b6549463d0064429311607ccf2b63/base_drv.py | [
1,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
11241,
273,
365,
18,
5814,
6905,
273,
599,
775,
30,
365,
18,
1966,
76,
18,
4412,
1435,
1335,
30,
1342,
365,
18,
1966,
76,
273,
365,
18,
6231,
273,
599,
365,
18,
12204,
273,
1053,
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
] |
|
'text:style-name': self.rststyle(style_name), | def make_field_element(self, parent, text, style_name, automatic_styles): if text == 'p': el1 = SubElement(parent, 'text:page-number', attrib={ 'text:style-name': self.rststyle(style_name), 'text:select-page': 'current', }) elif text == 'P': el1 = SubElement(parent, 'text:page-count', attrib={ 'text:style-name': self.rststyle(style_name), }) elif text == 't1': self.style_index += 1 el1 = SubElement(parent, 'text:time', attrib={ 'text:style-name': self.rststyle(style_name), 'text:fixed': 'true', 'style:data-style-name': 'rst-time-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:time-style', attrib={ 'style:name': 'rst-time-style-%d' % self.style_index, 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:hours', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ':' el3 = SubElement(el2, 'number:minutes', attrib={ 'number:style': 'long', }) elif text == 't2': self.style_index += 1 el1 = SubElement(parent, 'text:time', attrib={ 'text:style-name': self.rststyle(style_name), 'text:fixed': 'true', 'style:data-style-name': 'rst-time-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:time-style', attrib={ 'style:name': 'rst-time-style-%d' % self.style_index, 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:hours', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ':' el3 = SubElement(el2, 'number:minutes', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ':' el3 = SubElement(el2, 'number:seconds', attrib={ 'number:style': 'long', }) elif text == 't3': self.style_index += 1 el1 = SubElement(parent, 'text:time', attrib={ 'text:style-name': self.rststyle(style_name), 'text:fixed': 'true', 'style:data-style-name': 'rst-time-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:time-style', attrib={ 'style:name': 'rst-time-style-%d' % self.style_index, 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:hours', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ':' el3 = SubElement(el2, 'number:minutes', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ' ' el3 = SubElement(el2, 'number:am-pm') elif text == 't4': self.style_index += 1 el1 = SubElement(parent, 'text:time', attrib={ 'text:style-name': self.rststyle(style_name), 'text:fixed': 'true', 'style:data-style-name': 'rst-time-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:time-style', attrib={ 'style:name': 'rst-time-style-%d' % self.style_index, 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:hours', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ':' el3 = SubElement(el2, 'number:minutes', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ':' el3 = SubElement(el2, 'number:seconds', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ' ' el3 = SubElement(el2, 'number:am-pm') elif text == 'd1': self.style_index += 1 el1 = SubElement(parent, 'text:date', attrib={ 'text:style-name': self.rststyle(style_name), 'style:data-style-name': 'rst-date-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:date-style', attrib={ 'style:name': 'rst-date-style-%d' % self.style_index, 'number:automatic-order': 'true', 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:month', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = '/' el3 = SubElement(el2, 'number:day', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = '/' el3 = SubElement(el2, 'number:year') elif text == 'd2': self.style_index += 1 el1 = SubElement(parent, 'text:date', attrib={ 'text:style-name': self.rststyle(style_name), 'style:data-style-name': 'rst-date-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:date-style', attrib={ 'style:name': 'rst-date-style-%d' % self.style_index, 'number:automatic-order': 'true', 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:month', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = '/' el3 = SubElement(el2, 'number:day', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = '/' el3 = SubElement(el2, 'number:year', attrib={ 'number:style': 'long', }) elif text == 'd3': self.style_index += 1 el1 = SubElement(parent, 'text:date', attrib={ 'text:style-name': self.rststyle(style_name), 'style:data-style-name': 'rst-date-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:date-style', attrib={ 'style:name': 'rst-date-style-%d' % self.style_index, 'number:automatic-order': 'true', 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:month', attrib={ 'number:textual': 'true', }) el3 = SubElement(el2, 'number:text') el3.text = ' ' el3 = SubElement(el2, 'number:day', attrib={ }) el3 = SubElement(el2, 'number:text') el3.text = ', ' el3 = SubElement(el2, 'number:year', attrib={ 'number:style': 'long', }) elif text == 'd4': self.style_index += 1 el1 = SubElement(parent, 'text:date', attrib={ 'text:style-name': self.rststyle(style_name), 'style:data-style-name': 'rst-date-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:date-style', attrib={ 'style:name': 'rst-date-style-%d' % self.style_index, 'number:automatic-order': 'true', 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:month', attrib={ 'number:textual': 'true', 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = ' ' el3 = SubElement(el2, 'number:day', attrib={ }) el3 = SubElement(el2, 'number:text') el3.text = ', ' el3 = SubElement(el2, 'number:year', attrib={ 'number:style': 'long', }) elif text == 'd5': self.style_index += 1 el1 = SubElement(parent, 'text:date', attrib={ 'text:style-name': self.rststyle(style_name), 'style:data-style-name': 'rst-date-style-%d' % self.style_index, }) el2 = SubElement(automatic_styles, 'number:date-style', attrib={ 'style:name': 'rst-date-style-%d' % self.style_index, 'xmlns:number': SNSD['number'], 'xmlns:style': SNSD['style'], }) el3 = SubElement(el2, 'number:year', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = '-' el3 = SubElement(el2, 'number:month', attrib={ 'number:style': 'long', }) el3 = SubElement(el2, 'number:text') el3.text = '-' el3 = SubElement(el2, 'number:day', attrib={ 'number:style': 'long', }) elif text == 's': el1 = SubElement(parent, 'text:subject', attrib={ 'text:style-name': self.rststyle(style_name), }) elif text == 't': el1 = SubElement(parent, 'text:title', attrib={ 'text:style-name': self.rststyle(style_name), }) elif text == 'a': el1 = SubElement(parent, 'text:author-name', attrib={ 'text:fixed': 'false', }) else: el1 = None return el1 | 8028253043bbb345d2ed582302a80f5c5aee5de2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/8028253043bbb345d2ed582302a80f5c5aee5de2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1518,
67,
2956,
12,
2890,
16,
982,
16,
977,
16,
2154,
67,
529,
16,
5859,
67,
10218,
4672,
309,
977,
422,
296,
84,
4278,
415,
21,
273,
5479,
12,
2938,
16,
296,
955,
30,
2433,
17,
2696,
2187,
5885,
5899,
225,
296,
955,
30,
4025,
17,
2433,
4278,
296,
2972,
2187,
289,
13,
1327,
977,
422,
296,
52,
4278,
415,
21,
273,
5479,
12,
2938,
16,
296,
955,
30,
2433,
17,
1883,
2187,
5885,
5899,
225,
289,
13,
1327,
977,
422,
296,
88,
21,
4278,
365,
18,
4060,
67,
1615,
1011,
404,
415,
21,
273,
5479,
12,
2938,
16,
296,
955,
30,
957,
2187,
5885,
5899,
225,
296,
955,
30,
12429,
4278,
296,
3767,
2187,
296,
4060,
30,
892,
17,
4060,
17,
529,
4278,
296,
16114,
17,
957,
17,
4060,
6456,
72,
11,
738,
365,
18,
4060,
67,
1615,
16,
289,
13,
415,
22,
273,
5479,
12,
5854,
4941,
67,
10218,
16,
296,
2696,
30,
957,
17,
4060,
2187,
5885,
5899,
296,
4060,
30,
529,
4278,
296,
16114,
17,
957,
17,
4060,
6456,
72,
11,
738,
365,
18,
4060,
67,
1615,
16,
296,
16741,
30,
2696,
4278,
25297,
40,
3292,
2696,
17337,
296,
16741,
30,
4060,
4278,
25297,
40,
3292,
4060,
17337,
289,
13,
415,
23,
273,
5479,
12,
292,
22,
16,
296,
2696,
30,
16814,
2187,
5885,
5899,
296,
2696,
30,
4060,
4278,
296,
5748,
2187,
289,
13,
415,
23,
273,
5479,
12,
292,
22,
16,
296,
2696,
30,
955,
6134,
415,
23,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1518,
67,
2956,
12,
2890,
16,
982,
16,
977,
16,
2154,
67,
529,
16,
5859,
67,
10218,
4672,
309,
977,
422,
296,
84,
4278,
415,
21,
273,
5479,
12,
2938,
16,
296,
955,
30,
2433,
17,
2696,
2187,
5885,
5899,
225,
296,
955,
30,
4025,
17,
2433,
4278,
296,
2972,
2187,
289,
13,
1327,
977,
422,
296,
52,
4278,
415,
21,
273,
5479,
12,
2938,
16,
296,
955,
30,
2433,
17,
1883,
2187,
5885,
5899,
225,
289,
13,
1327,
977,
422,
296,
88,
21,
4278,
365,
18,
4060,
67,
1615,
1011,
404,
415,
21,
273,
5479,
12,
2938,
16,
296,
955,
30,
957,
2187,
5885,
5899,
225,
296,
955,
30,
12429,
4278,
296,
3767,
2187,
296,
2
] |
|
if self.debug > 0: print 'getting ', key | log.debug('getting key: %s' % key) | def update_input_parameters(self): '''read in all the input parameters from the netcdfile''' for key in self.valid_input: getf = 'self.get_%s()' % key if self.debug > 0: print 'getting ', key self.pars[key] = eval(getf) self.pars_uptodate[key] = True return self.pars | e111e7f7da49e775bf6f578ffb8369e435e7a68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e111e7f7da49e775bf6f578ffb8369e435e7a68c/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2630,
67,
3977,
12,
2890,
4672,
9163,
896,
316,
777,
326,
810,
1472,
628,
326,
2901,
4315,
768,
26418,
364,
498,
316,
365,
18,
877,
67,
2630,
30,
336,
74,
273,
296,
2890,
18,
588,
10185,
87,
11866,
738,
498,
613,
18,
4148,
2668,
588,
1787,
498,
30,
738,
87,
11,
738,
498,
13,
365,
18,
8954,
63,
856,
65,
273,
5302,
12,
588,
74,
13,
365,
18,
8954,
67,
3648,
31756,
63,
856,
65,
273,
1053,
327,
365,
18,
8954,
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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,
1089,
67,
2630,
67,
3977,
12,
2890,
4672,
9163,
896,
316,
777,
326,
810,
1472,
628,
326,
2901,
4315,
768,
26418,
364,
498,
316,
365,
18,
877,
67,
2630,
30,
336,
74,
273,
296,
2890,
18,
588,
10185,
87,
11866,
738,
498,
613,
18,
4148,
2668,
588,
1787,
498,
30,
738,
87,
11,
738,
498,
13,
365,
18,
8954,
63,
856,
65,
273,
5302,
12,
588,
74,
13,
365,
18,
8954,
67,
3648,
31756,
63,
856,
65,
273,
1053,
327,
365,
18,
8954,
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
] |
break else: if not create_new: raise KeyError, table_names id = coincdeftable.sync_ids().next() for name in table_names: row = lsctables.CoincDef() row.coinc_def_id = id row.table_name = name coincdeftable.append(row) | return id if not create_new: raise KeyError, table_names id = coincdeftable.sync_ids().next() for name in table_names: row = lsctables.CoincDef() row.coinc_def_id = id row.table_name = name coincdeftable.append(row) | def get_coinc_def_id(xmldoc, table_names, create_new = True): """ Return the coinc_def_id corresponding to coincidences consisting exclusively of events from the given table names. If no matching coinc_def_id is found, then a new one is created and the ID returned. If the document does not contain a coinc_definer table, then one is added, a new coind_def_id created, and the ID returned. If, however, create_new is False, and for any reason the ID isn't found then KeyError is raised. """ try: coincdeftable = table.get_table(xmldoc, lsctables.CoincDefTable.tableName) except ValueError: # table not found if not create_new: raise KeyError, table_names coincdeftable = lsctables.New(lsctables.CoincDefTable) xmldoc.childNodes[0].appendChild(coincdeftable) table_names.sort() for id in coincdeftable.dict.iterkeys(): if coincdeftable.get_contributors(id) == table_names: break else: # contributor list not found in table if not create_new: raise KeyError, table_names id = coincdeftable.sync_ids().next() for name in table_names: row = lsctables.CoincDef() row.coinc_def_id = id row.table_name = name coincdeftable.append(row) return id | 746dc24fef0e7b9b0196c6c520b606157fa47211 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/746dc24fef0e7b9b0196c6c520b606157fa47211/llwapp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12645,
71,
67,
536,
67,
350,
12,
2902,
2434,
16,
1014,
67,
1973,
16,
752,
67,
2704,
273,
1053,
4672,
3536,
2000,
326,
13170,
71,
67,
536,
67,
350,
4656,
358,
13170,
13478,
2369,
23570,
4687,
407,
4492,
434,
2641,
628,
326,
864,
1014,
1257,
18,
225,
971,
1158,
3607,
13170,
71,
67,
536,
67,
350,
353,
1392,
16,
1508,
279,
394,
1245,
353,
2522,
471,
326,
1599,
2106,
18,
225,
971,
326,
1668,
1552,
486,
912,
279,
13170,
71,
67,
5649,
264,
1014,
16,
1508,
1245,
353,
3096,
16,
279,
394,
1825,
728,
67,
536,
67,
350,
2522,
16,
471,
326,
1599,
2106,
18,
971,
16,
14025,
16,
752,
67,
2704,
353,
1083,
16,
471,
364,
1281,
3971,
326,
1599,
5177,
1404,
1392,
1508,
4999,
353,
11531,
18,
3536,
775,
30,
13170,
71,
536,
2121,
273,
1014,
18,
588,
67,
2121,
12,
2902,
2434,
16,
7180,
299,
1538,
18,
27055,
71,
3262,
1388,
18,
18033,
13,
1335,
2068,
30,
468,
1014,
486,
1392,
309,
486,
752,
67,
2704,
30,
1002,
4999,
16,
1014,
67,
1973,
13170,
71,
536,
2121,
273,
7180,
299,
1538,
18,
1908,
12,
3251,
299,
1538,
18,
27055,
71,
3262,
1388,
13,
2025,
2434,
18,
3624,
3205,
63,
20,
8009,
6923,
1763,
12,
12645,
71,
536,
2121,
13,
1014,
67,
1973,
18,
3804,
1435,
364,
612,
316,
13170,
71,
536,
2121,
18,
1576,
18,
2165,
2452,
13332,
309,
13170,
71,
536,
2121,
18,
588,
67,
26930,
13595,
12,
350,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12645,
71,
67,
536,
67,
350,
12,
2902,
2434,
16,
1014,
67,
1973,
16,
752,
67,
2704,
273,
1053,
4672,
3536,
2000,
326,
13170,
71,
67,
536,
67,
350,
4656,
358,
13170,
13478,
2369,
23570,
4687,
407,
4492,
434,
2641,
628,
326,
864,
1014,
1257,
18,
225,
971,
1158,
3607,
13170,
71,
67,
536,
67,
350,
353,
1392,
16,
1508,
279,
394,
1245,
353,
2522,
471,
326,
1599,
2106,
18,
225,
971,
326,
1668,
1552,
486,
912,
279,
13170,
71,
67,
5649,
264,
1014,
16,
1508,
1245,
353,
3096,
16,
279,
394,
1825,
728,
67,
536,
67,
350,
2522,
16,
471,
326,
1599,
2106,
18,
971,
16,
14025,
16,
752,
67,
2704,
353,
1083,
16,
471,
2
] |
merge_base = self._Run(['merge-base', 'HEAD', 'origin']) | merge_base = self._Capture(['merge-base', 'HEAD', 'origin']) | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | 9ee5d919647ed29a24b35149e866c885fd04b9bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/9ee5d919647ed29a24b35149e866c885fd04b9bd/gclient_scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
6653,
279,
4729,
585,
1492,
848,
506,
6754,
358,
326,
1365,
434,
326,
3352,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
6653,
279,
4729,
585,
1492,
848,
506,
6754,
358,
326,
1365,
434,
326,
3352,
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
] |
tar.add(file) | tar.add(file, arcname=prefix) | def tarzip_image(self, prefix, file, path): print 'Tarring image' tar_file = '%s.tar.gz' % (path + '/' + prefix) tar = tarfile.open(tar_file, "w|gz") tar.add(file) tar.close() return tar_file | 4626c80707c4f952d795b45391f8bc8f8ed7bdc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/4626c80707c4f952d795b45391f8bc8f8ed7bdc1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8232,
4450,
67,
2730,
12,
2890,
16,
1633,
16,
585,
16,
589,
4672,
1172,
296,
56,
5399,
310,
1316,
11,
8232,
67,
768,
273,
1995,
87,
18,
11718,
18,
9764,
11,
738,
261,
803,
397,
2023,
397,
1633,
13,
8232,
273,
25857,
18,
3190,
12,
11718,
67,
768,
16,
315,
91,
96,
9764,
7923,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8232,
4450,
67,
2730,
12,
2890,
16,
1633,
16,
585,
16,
589,
4672,
1172,
296,
56,
5399,
310,
1316,
11,
8232,
67,
768,
273,
1995,
87,
18,
11718,
18,
9764,
11,
738,
261,
803,
397,
2023,
397,
1633,
13,
8232,
273,
25857,
18,
3190,
12,
11718,
67,
768,
16,
315,
91,
96,
9764,
7923,
8232,
18,
1289,
12,
768,
16,
8028,
529,
33,
3239,
13,
8232,
18,
4412,
1435,
327,
8232,
67,
768,
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
] |
shortopts = 'c:fh:n:o:pt:u:Vvq?:' | shortopts = 'c:fh:n:o:t:u:Vvq?:' | def _parse_args(): """ Process the command line arguments; return a dictionary containing the relevant info. @return: A dictionary mapping from configuration parameters to values. If a parameter is specified on the command line, then that value is used; otherwise, a default value is used. Currently, the following configuration parameters are set: C{target}, C{modules}, C{verbosity}, C{prj_name}, C{output}, C{show_imports}, C{frames}, C{private}, C{debug}, C{top}, C{list_classes_separately}, C{docformat}, C{inheritance}, C{autogen_vars}, and C{test}. @rtype: C{None} """ # Default values. options = {'target':None, 'modules':[], 'verbosity':1, 'prj_name':'', 'action':'html', 'show_imports':0, 'frames':1, 'private':None, 'list_classes_separately': 0, 'debug':0, 'docformat':None, 'top':None, 'inheritance': 'grouped', 'autogen_vars': 1, 'tests':{}} # Get the command-line arguments, using getopts. shortopts = 'c:fh:n:o:pt:u:Vvq?:' longopts = ('check frames help= usage= helpfile= help-file= '+ 'help_file= output= target= url= version verbose ' + 'private-css= private_css= quiet show-imports '+ 'show_imports css= no_private no-private name= '+ 'builtins no-frames no_frames noframes debug '+ 'docformat= doc-format= doc_format= top= navlink= '+ 'nav_link= nav-link= latex html dvi ps pdf '+ 'separate-classes separate_classes '+ 'inheritance= inheritence= '+ 'test= tests= checks= private'+ 'no-autogen-vars no_autogen_vars').split() try: (opts, modules) = getopt.getopt(sys.argv[1:], shortopts, longopts) except getopt.GetoptError, e: if e.opt in ('h', '?', 'help', 'usage'): _usage(0) print >>sys.stderr, ('%s; run "%s -h" for usage' % (e,os.path.basename(sys.argv[0]))) sys.exit(1) # Parse the arguments. for (opt, val) in opts: if opt in ('--check',): options['action'] = 'check' elif opt in ('--css', '-c'): options['css'] = val elif opt in ('--debug',): options['debug']=1 elif opt in ('--dvi',): options['action'] = 'dvi' elif opt in ('--docformat', '--doc-format', '--doc_format'): from epydoc.objdoc import set_default_docformat set_default_docformat(val) elif opt in ('--frames', '-f'): print ('Warning: the "--frames" argument is depreciated; '+ 'frames are now\n generated by default.') elif opt in ('--no-frames', '--no_frames', '--noframes'): options['frames'] = 0 elif opt in ('--help', '-?', '--usage', '-h'): _help(val) elif opt in ('--helpfile', '--help-file', '--help_file'): options['help'] = val elif opt in ('--html',): options['action'] = 'html' elif opt in ('--inheritance', '--inheritence'): options['inheritance']=val.lower() elif opt in ('--latex',): options['action']='latex' elif opt in ('--name', '-n'): options['prj_name']=val elif opt in ('--navlink', '--nav-link', '--nav_link'): options['prj_link'] = val elif opt in ('--no-autogen-vars', '--no_autogen_vars'): options['autogen_vars'] = 0 elif opt in ('--no-private', '--no_private'): options['private']=0 elif opt in ('--output', '--target', '-o'): options['target']=val elif opt in ('--pdf',): options['action'] = 'pdf' elif opt in ('-p', '--private', '--private'): options['private']=1 elif opt in ('--private-css', '--private_css'): options['private_css'] = val elif opt in ('--ps',): options['action'] = 'ps' elif opt in ('--quiet', '-q'): options['verbosity'] -= 1 elif opt in ('--separate-classes', '--separate_classes'): options['list_classes_separately'] = 1 elif opt in ('--show-imports', '--show_imports'): options['show_imports'] = 1 elif opt in ('-t', '--top'): options['top'] = val elif opt in ('--url', '-u'): options['prj_url']=val elif opt in ('--verbose', '-v'): options['verbosity'] += 1 elif opt in ('--version', '-V'): _version() elif opt in ('--builtins',): modules += sys.builtin_module_names modules.remove('__main__') elif opt in ('--test', '--tests', '--checks'): for test in re.split('\s*[,\s]\s*', val.lower()): options['tests'][test] = 1 else: _usage() # Make sure inheritance has a valid value if options['inheritance'] not in ('grouped', 'listed', 'included'): estr = 'Bad inheritance style. Valid options are ' estr += 'grouped, listed, included' print >>sys.stderr, ('%s;\nrun "%s -h" for usage.' % (estr,os.path.basename(sys.argv[0]))) sys.exit(1) # Make sure tests has a valid value. for test in options['tests']: if test not in TESTS: estr = 'Bad epydoc test %r. Valid options are:' % test for t in TESTS: estr += '\n - %r' % t print >>sys.stderr, ('%s\nrun "%s -h" for usage.' % (estr,os.path.basename(sys.argv[0]))) sys.exit(1) # Pick a default target directory, if none was specified. if options['target'] is None: if options['action'] == 'html': options['target'] = 'html' elif options['action'] in ('latex', 'dvi', 'ps', 'pdf'): options['target'] = 'latex' # Default for private depends on action. if options['private'] is None: if options['action'] == 'html': options['private'] = 1 else: options['private'] = 0 # Check that the options all preceed the filenames. for m in modules: if m == '-': break elif m[0:1] == '-': estr = 'options must preceed modules' print >>sys.stderr, ('%s; run "%s -h" for usage.' % (estr,os.path.basename(sys.argv[0]))) sys.exit(1) # Make sure we got some modules. modules = [m for m in modules if m != '-'] if len(modules) == 0: print >>sys.stderr, ('no modules specified; run "%s -h" for usage.' % os.path.basename(sys.argv[0])) sys.exit(1) options['modules'] = modules return options | 55668059b93c1d811a0940669739c36e1bda8a13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/55668059b93c1d811a0940669739c36e1bda8a13/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
1968,
13332,
3536,
4389,
326,
1296,
980,
1775,
31,
327,
279,
3880,
4191,
326,
9368,
1123,
18,
225,
632,
2463,
30,
432,
3880,
2874,
628,
1664,
1472,
358,
924,
18,
225,
971,
279,
1569,
353,
1269,
603,
326,
1296,
980,
16,
1508,
716,
460,
353,
1399,
31,
3541,
16,
279,
805,
460,
353,
1399,
18,
15212,
16,
326,
3751,
1664,
1472,
854,
444,
30,
385,
95,
3299,
5779,
385,
95,
6400,
5779,
385,
95,
16629,
8807,
5779,
385,
95,
683,
78,
67,
529,
5779,
385,
95,
2844,
5779,
385,
95,
4500,
67,
21350,
5779,
385,
95,
10278,
5779,
385,
95,
1152,
5779,
385,
95,
4148,
5779,
385,
95,
3669,
5779,
385,
95,
1098,
67,
4701,
67,
16627,
5173,
5779,
385,
95,
2434,
2139,
5779,
385,
95,
6018,
1359,
5779,
385,
95,
5854,
19409,
67,
4699,
5779,
471,
385,
95,
3813,
5496,
632,
86,
723,
30,
385,
95,
7036,
97,
3536,
468,
2989,
924,
18,
702,
273,
13666,
3299,
4278,
7036,
16,
296,
6400,
4278,
63,
6487,
296,
16629,
8807,
4278,
21,
16,
296,
683,
78,
67,
529,
11,
2497,
2187,
296,
1128,
11,
2497,
2620,
2187,
296,
4500,
67,
21350,
4278,
20,
16,
296,
10278,
4278,
21,
16,
296,
1152,
4278,
7036,
16,
296,
1098,
67,
4701,
67,
16627,
5173,
4278,
374,
16,
296,
4148,
4278,
20,
16,
296,
2434,
2139,
4278,
7036,
16,
296,
3669,
4278,
7036,
16,
296,
6018,
1359,
4278,
296,
25472,
2187,
296,
5854,
19409,
67,
4699,
4278,
404,
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,
2670,
67,
1968,
13332,
3536,
4389,
326,
1296,
980,
1775,
31,
327,
279,
3880,
4191,
326,
9368,
1123,
18,
225,
632,
2463,
30,
432,
3880,
2874,
628,
1664,
1472,
358,
924,
18,
225,
971,
279,
1569,
353,
1269,
603,
326,
1296,
980,
16,
1508,
716,
460,
353,
1399,
31,
3541,
16,
279,
805,
460,
353,
1399,
18,
15212,
16,
326,
3751,
1664,
1472,
854,
444,
30,
385,
95,
3299,
5779,
385,
95,
6400,
5779,
385,
95,
16629,
8807,
5779,
385,
95,
683,
78,
67,
529,
5779,
385,
95,
2844,
5779,
385,
95,
4500,
67,
21350,
5779,
385,
95,
10278,
5779,
385,
95,
1152,
5779,
385,
95,
4148,
5779,
385,
95,
3669,
5779,
385,
95,
1098,
67,
4701,
2
] |
elif axisname=='y' and not dat.get('tight',True): | elif axisname=='y': | def update(self): """Update the figure. Everything happens here. The current set of customized properties is interpreted, data slice are obtained from the data sources, default figure properties are set based on properties of the obtained data, and the figure is built and shown. """ # We are called whenever figure properties change. If we do not want to update now, # just register that an update is needed and exit. if not self.updating: self.dirty = True return | 5225d332b35d0704078cf3882da381a95f7ad9ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/5225d332b35d0704078cf3882da381a95f7ad9ad/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
1891,
326,
7837,
18,
225,
26553,
10555,
2674,
18,
1021,
783,
444,
434,
29063,
1790,
353,
19898,
16,
501,
2788,
854,
12700,
628,
326,
501,
5550,
16,
805,
7837,
1790,
854,
444,
2511,
603,
1790,
434,
326,
12700,
501,
16,
471,
326,
7837,
353,
6650,
471,
12188,
18,
3536,
225,
468,
1660,
854,
2566,
17334,
7837,
1790,
2549,
18,
971,
732,
741,
486,
2545,
358,
1089,
2037,
16,
468,
2537,
1744,
716,
392,
1089,
353,
3577,
471,
2427,
18,
309,
486,
365,
18,
5533,
1776,
30,
365,
18,
18013,
273,
1053,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
1891,
326,
7837,
18,
225,
26553,
10555,
2674,
18,
1021,
783,
444,
434,
29063,
1790,
353,
19898,
16,
501,
2788,
854,
12700,
628,
326,
501,
5550,
16,
805,
7837,
1790,
854,
444,
2511,
603,
1790,
434,
326,
12700,
501,
16,
471,
326,
7837,
353,
6650,
471,
12188,
18,
3536,
225,
468,
1660,
854,
2566,
17334,
7837,
1790,
2549,
18,
971,
732,
741,
486,
2545,
358,
1089,
2037,
16,
468,
2537,
1744,
716,
392,
1089,
353,
3577,
471,
2427,
18,
309,
486,
365,
18,
5533,
1776,
30,
365,
18,
18013,
273,
1053,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif re.match(r'[a-zA-Z\])]', code[start-1]): | elif re.match(r'[a-zA-Z0-9_\])]', code[start-1]): | def extract_numeric_literals(code): """ To eliminate the re-parsing and creation of numeric literals (e.g. during every iteration of a loop) we wish to pull them out and assign them to global variables. This function takes a block of code and returns a new block of code with literals replaced by variable names, as well as a dictionary of what variables need to be created. EXAMPLES: sage: from sage.misc.preparser import extract_numeric_literals sage: code, nums = extract_numeric_literals("1.2 + 5") sage: print code _sage_const_1p2 + _sage_const_5 sage: print nums {'_sage_const_1p2': "RealNumber('1.2')", '_sage_const_5': 'Integer(5)'} sage: extract_numeric_literals("[1, 1.1, 1e1, -1e-1, 1.]")[0] '[_sage_const_1 , _sage_const_1p1 , _sage_const_1e1 , -_sage_const_1en1 , _sage_const_1p ]' sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, (_sage_const_1 .._sage_const_5 )]' """ literals = {} last = 0 new_code = [] dec_num = r"\b\d+\b" hex_num = r"\b0x[0-9a-fA-F]\b" # This is slightly annoying as floating point numbers may start # with a decimal point, but if they do the \b will not match. float_num = r"((\b\d+([.]\d*)?)|([.]\d+))([eE][-+]?\d+)?\b" all_num = r"(%s)|(%s)|(%s)" % (float_num, dec_num, hex_num) for m in re.finditer(all_num, code): num, start, end = m.group(), m.start(), m.end() # The Sage preparser does extra things with numbers, which we need to handle here. if '.' in num: if start > 0 and num[0] == '.': if code[start-1] == '.': # handle Ellipsis start += 1 num = num[1:] elif re.match(r'[a-zA-Z\])]', code[start-1]): # handle R.0 continue elif end < len(code) and num[-1] == '.': if re.match('[a-zA-Z]', code[end]): # handle 4.sqrt() end -= 1 num = num[:-1] elif re.match(r'\d', code[end]): # handle 4.0r continue elif end < len(code) and code[end] == '.': # \b does not match after the . # two dots in a row would be an ellipsis if end+1 == len(code) or code[end+1] != '.': end += 1 num += '.' if '.' in num or 'e' in num or 'E' in num: num_name = numeric_literal_prefix + num.replace('.', 'p').replace('-', 'n').replace('+', '') num_make = "RealNumber('%s')" % num else: num_name = numeric_literal_prefix + num num_make = "Integer(%s)" % num literals[num_name] = num_make new_code.append(code[last:start]) new_code.append(num_name+' ') last = end new_code.append(code[last:]) return ''.join(new_code), literals | 2ad14cdfab4d14103fa42cfdf8aa85a475090d79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2ad14cdfab4d14103fa42cfdf8aa85a475090d79/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302,
358,
6892,
2182,
596,
471,
2683,
2182,
358,
2552,
3152,
18,
225,
1220,
445,
5530,
279,
1203,
434,
981,
471,
1135,
279,
394,
1203,
434,
981,
598,
18228,
8089,
635,
2190,
1257,
16,
487,
5492,
487,
279,
3880,
434,
4121,
3152,
1608,
358,
506,
2522,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
4288,
1930,
2608,
67,
5246,
67,
80,
11235,
272,
410,
30,
981,
16,
21060,
273,
2608,
67,
5246,
67,
80,
11235,
2932,
21,
18,
22,
397,
1381,
7923,
272,
410,
30,
1172,
981,
389,
87,
410,
67,
10248,
67,
21,
84,
22,
225,
397,
389,
87,
410,
67,
10248,
67,
25,
272,
410,
30,
1172,
21060,
13666,
67,
87,
410,
67,
10248,
67,
21,
84,
22,
4278,
315,
6955,
1854,
2668,
21,
18,
22,
23291,
16,
2070,
87,
410,
67,
10248,
67,
25,
4278,
296,
4522,
12,
25,
2506,
97,
225,
272,
410,
30,
2608,
67,
5246,
67,
80,
11235,
2932,
63,
21,
16,
404,
18,
21,
16,
404,
73,
21,
16,
300,
21,
73,
17,
21,
16,
404,
18,
4279,
25146,
20,
65,
5271,
67,
87,
410,
67,
10248,
67,
21,
269,
389,
87,
410,
67,
10248,
67,
21,
84,
21,
269,
389,
87,
410,
67,
10248,
67,
21,
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,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302,
358,
6892,
2182,
596,
471,
2683,
2182,
358,
2552,
3152,
18,
225,
1220,
445,
5530,
279,
1203,
434,
981,
471,
1135,
279,
394,
1203,
434,
981,
598,
18228,
8089,
635,
2190,
1257,
16,
487,
5492,
487,
279,
3880,
434,
4121,
3152,
1608,
358,
506,
2522,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
4288,
1930,
2608,
67,
5246,
67,
80,
11235,
272,
410,
30,
981,
16,
21060,
273,
2608,
67,
5246,
67,
80,
11235,
2932,
2
] |
def __show_context_menu(self): | def __show_context_menu(self, button=None, activate_time=None): | def __show_context_menu(self): if self.app.blocked == False: # show context menu self.get_widget('status_menu').popup(None, None, None, button, activate_time) else: # when blocked, don't show context menu but a notification self.popup("OTR-Verwaltung arbeitet gerade...", self.app.get_notify_text(), 3) | 67ae3691eb4b368f280e474a6e85459e42379973 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11048/67ae3691eb4b368f280e474a6e85459e42379973/notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4500,
67,
2472,
67,
5414,
12,
2890,
16,
3568,
33,
7036,
16,
10235,
67,
957,
33,
7036,
4672,
309,
365,
18,
2910,
18,
23156,
422,
1083,
30,
468,
2405,
819,
3824,
365,
18,
588,
67,
6587,
2668,
2327,
67,
5414,
16063,
16086,
12,
7036,
16,
599,
16,
599,
16,
3568,
16,
10235,
67,
957,
13,
469,
30,
468,
1347,
14547,
16,
2727,
1404,
2405,
819,
3824,
1496,
279,
3851,
365,
18,
16086,
2932,
1974,
54,
17,
3945,
91,
2390,
20651,
419,
2196,
305,
278,
314,
264,
2486,
7070,
16,
365,
18,
2910,
18,
588,
67,
12336,
67,
955,
9334,
890,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
4500,
67,
2472,
67,
5414,
12,
2890,
16,
3568,
33,
7036,
16,
10235,
67,
957,
33,
7036,
4672,
309,
365,
18,
2910,
18,
23156,
422,
1083,
30,
468,
2405,
819,
3824,
365,
18,
588,
67,
6587,
2668,
2327,
67,
5414,
16063,
16086,
12,
7036,
16,
599,
16,
599,
16,
3568,
16,
10235,
67,
957,
13,
469,
30,
468,
1347,
14547,
16,
2727,
1404,
2405,
819,
3824,
1496,
279,
3851,
365,
18,
16086,
2932,
1974,
54,
17,
3945,
91,
2390,
20651,
419,
2196,
305,
278,
314,
264,
2486,
7070,
16,
365,
18,
2910,
18,
588,
67,
12336,
67,
955,
9334,
890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
py = py - textHeight - textGap | py = py - textHeight | def makeSplitViewFigure(session, pixelIds, zStart, zEnd, splitIndexes, channelNames, colourChannels, mergedIndexes, mergedColours, mergedNames, width, height, imageLabels = None, algorithm = None, stepping = 1, scalebar=None, overlayColour=(255,255,255)): """ This method makes a figure of a number of images, arranged in rows with each row being the split-view of a single image. The channels are arranged left to right, with the combined image added on the right. The combined image is rendered according to current settings on the server, but it's channels will be turned on/off according to @mergedIndexes. The colour of each channel turned white if colourChannels is false or the channel is not in the merged image. Otherwise channel is changed to mergedColours[i] Text is added at the top of the figure, to display channel names above each column, and the combined image may have it's various channels named in coloured text. The optional imageLabels is a list of string lists for naming the images at the left of the figure (Each image may have 0 or multiple labels). The figure is returned as a PIL 'Image' @ session session for server access @ pixelIds a list of the Ids for the pixels we want to display @ zStart the start of Z-range for projection @ zEnd the end of Z-range for projection @ splitIndexes a list of the channel indexes to display. Same channels for each image/row @ channelNames map of index:name to go above the columns for each split channel @ colourChannels true if split channels are @ mergedIndexes list (or set) of channels in the merged image @ mergedColours index: colour map of channels in the merged image @ mergedNames if true, label with merged panel with channel names (otherwise, label "Merged") @ width the width of primary image (all images zoomed to this height) @ height the height of primary image @ imageLabels optional list of string lists. @ algorithm for projection MAXIMUMINTENSITY or MEANINTENSITY @ stepping projection increment """ fontsize = 12 if width > 500: fontsize = 48 elif width > 400: fontsize = 36 elif width > 300: fontsize = 24 elif width > 200: fontsize = 16 spacer = (width/25) + 2 textGap = 5 # gap between text and image panels leftTextWidth = 0 textHeight = 0 # get the rendered splitview, with images surrounded on all sides by spacer sv = getSplitView(session, pixelIds, zStart, zEnd, splitIndexes, channelNames, colourChannels, mergedIndexes, mergedColours, width, height, spacer, algorithm, stepping, scalebar, overlayColour) font = imgUtil.getFont(fontsize) mode = "RGB" white = (255, 255, 255) textHeight = font.getsize("Textq")[1] topSpacer = spacer + textHeight + textGap #textCanvas = Image.new(mode, (1,1), white) #textdraw = ImageDraw.Draw(textCanvas) #h = textdraw.textsize("Textq", font=font) [1] # if adding text to the left, write the text on horizontal canvas, then rotate to vertical (below) if imageLabels: # find max number of labels maxCount = 0 rowHeights = [] for row in imageLabels: maxCount = max(maxCount, len(row)) leftTextWidth = (textHeight + textGap) * maxCount size = (sv.size[1], leftTextWidth) # make the canvas as wide as the panels height textCanvas = Image.new(mode, size, white) textdraw = ImageDraw.Draw(textCanvas) px = spacer imageLabels.reverse() for row in imageLabels: py = leftTextWidth - textGap # start at bottom for l, label in enumerate(row): py = py - textHeight # find the top of this row w = textdraw.textsize(label, font=font) [0] inset = int((height - w) / 2) textdraw.text((px+inset, py), label, font=font, fill=(0,0,0)) py = py - textGap # add space between rows px = px + spacer + height # spacer between each row topTextHeight = textHeight + textGap if (mergedNames): topTextHeight = ((textHeight + textGap) * len(mergedIndexes)) # make a canvas big-enough to add text to the images. canvasWidth = leftTextWidth + sv.size[0] canvasHeight = topTextHeight + sv.size[1] size = (canvasWidth, canvasHeight) canvas = Image.new(mode, size, white) # create a canvas of appropriate width, height # add the split-view panel pasteX = leftTextWidth pasteY = topTextHeight imgUtil.pasteImage(sv, canvas, pasteX, pasteY) draw = ImageDraw.Draw(canvas) # add text to rows # want it to be vertical. Rotate and paste the text canvas from above if imageLabels: textV = textCanvas.rotate(90) imgUtil.pasteImage(textV, canvas, spacer, topTextHeight) # add text to columns px = spacer + leftTextWidth py = topTextHeight + spacer - (textHeight + textGap) # edges of panels - rowHeight for index in splitIndexes: # calculate the position of the text, centered above the image w = font.getsize(channelNames[index]) [0] inset = int((width - w) / 2) # text is coloured if channel is grey AND in the merged image rgb = (0,0,0) if index in mergedIndexes: if not colourChannels: rgb = tuple(mergedColours[index]) if rgb == (255,255,255): # if white (unreadable), needs to be black! rgb = (0,0,0) draw.text((px+inset, py), channelNames[index], font=font, fill=rgb) px = px + width + spacer # add text for combined image if (mergedNames): for index in mergedIndexes: rgb = tuple(mergedColours[index]) name = channelNames[index] combTextWidth = font.getsize(name)[0] inset = int((width - combTextWidth) / 2) draw.text((px + inset, py), name, font=font, fill=rgb) py = py - textHeight - textGap else: combTextWidth = font.getsize("Merged")[0] inset = int((width - combTextWidth) / 2) px = px + inset draw.text((px, py), "Merged", font=font, fill=(0,0,0)) return canvas | 534d67c39c43fe52be30a75f3ce5a83b11ea6ade /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/534d67c39c43fe52be30a75f3ce5a83b11ea6ade/splitViewFigure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5521,
1767,
42,
15906,
12,
3184,
16,
4957,
2673,
16,
998,
1685,
16,
998,
1638,
16,
1416,
8639,
16,
1904,
1557,
16,
15046,
10585,
16,
5384,
8639,
16,
5384,
914,
4390,
16,
5384,
1557,
16,
1835,
16,
2072,
16,
1316,
5888,
273,
599,
16,
4886,
273,
599,
16,
2235,
1382,
273,
404,
16,
3159,
3215,
33,
7036,
16,
9218,
26404,
28657,
10395,
16,
10395,
16,
10395,
3719,
30,
225,
3536,
1220,
707,
7297,
279,
7837,
434,
279,
1300,
434,
4602,
16,
2454,
2330,
316,
2595,
598,
1517,
1027,
3832,
326,
1416,
17,
1945,
434,
279,
2202,
1316,
18,
1021,
5750,
854,
2454,
2330,
2002,
358,
2145,
16,
598,
326,
8224,
1316,
3096,
603,
326,
2145,
18,
1021,
8224,
1316,
353,
7935,
4888,
358,
783,
1947,
603,
326,
1438,
16,
1496,
518,
1807,
5750,
903,
506,
21826,
603,
19,
3674,
4888,
358,
632,
15459,
8639,
18,
1021,
15046,
434,
1517,
1904,
21826,
9578,
309,
15046,
10585,
353,
629,
578,
326,
1904,
353,
486,
316,
326,
5384,
1316,
18,
5272,
1904,
353,
3550,
358,
5384,
914,
4390,
63,
77,
65,
3867,
353,
3096,
622,
326,
1760,
434,
326,
7837,
16,
358,
2562,
1904,
1257,
5721,
1517,
1057,
16,
471,
326,
8224,
1316,
2026,
1240,
518,
1807,
11191,
5750,
4141,
316,
645,
83,
2862,
977,
18,
1021,
3129,
1316,
5888,
353,
279,
666,
434,
533,
6035,
364,
14634,
326,
4602,
622,
326,
2002,
434,
326,
7837,
261,
3442,
1316,
2026,
1240,
374,
578,
3229,
3249,
2934,
225,
1021,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5521,
1767,
42,
15906,
12,
3184,
16,
4957,
2673,
16,
998,
1685,
16,
998,
1638,
16,
1416,
8639,
16,
1904,
1557,
16,
15046,
10585,
16,
5384,
8639,
16,
5384,
914,
4390,
16,
5384,
1557,
16,
1835,
16,
2072,
16,
1316,
5888,
273,
599,
16,
4886,
273,
599,
16,
2235,
1382,
273,
404,
16,
3159,
3215,
33,
7036,
16,
9218,
26404,
28657,
10395,
16,
10395,
16,
10395,
3719,
30,
225,
3536,
1220,
707,
7297,
279,
7837,
434,
279,
1300,
434,
4602,
16,
2454,
2330,
316,
2595,
598,
1517,
1027,
3832,
326,
1416,
17,
1945,
434,
279,
2202,
1316,
18,
1021,
5750,
854,
2454,
2330,
2002,
358,
2145,
16,
598,
326,
8224,
1316,
3096,
603,
326,
2145,
18,
1021,
2
] |
table.StripTableName(CoincDefTable.tableName): CoincDefTable, table.StripTableName(CoincTable.tableName): CoincTable, table.StripTableName(CoincMapTable.tableName): CoincMapTable, table.StripTableName(MultiBurstTable.tableName): MultiBurstTable | table.StripTableName(CoincDefTable.tableName): CoincDefTable | def build_indexes(verbose = False): """ Using the how_to_index annotations in the table class definitions, construct a set of indexes for the database at the current connection. """ cursor = DBTable_get_connection().cursor() for table_name in DBTable_table_names(): try: # FIXME: figure out how to do this extensibly how_to_index = TableByName[table_name].how_to_index except KeyError: continue if how_to_index: if verbose: print >>sys.stderr, "indexing %s table ..." % table_name for index_name, cols in how_to_index.iteritems(): cursor.execute("CREATE INDEX IF NOT EXISTS %s ON %s (%s)" % (index_name, table_name, ",".join(cols))) | 8994913ae6ac57e8ee70b7fa9d9dde61fc8f3bb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/8994913ae6ac57e8ee70b7fa9d9dde61fc8f3bb8/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
11265,
12,
11369,
273,
1083,
4672,
3536,
11637,
326,
3661,
67,
869,
67,
1615,
5617,
316,
326,
1014,
667,
6377,
16,
4872,
279,
444,
434,
5596,
364,
326,
2063,
622,
326,
783,
1459,
18,
3536,
3347,
273,
2383,
1388,
67,
588,
67,
4071,
7675,
9216,
1435,
364,
1014,
67,
529,
316,
2383,
1388,
67,
2121,
67,
1973,
13332,
775,
30,
468,
9852,
30,
225,
7837,
596,
3661,
358,
741,
333,
1110,
773,
24755,
3661,
67,
869,
67,
1615,
273,
3555,
5911,
63,
2121,
67,
529,
8009,
13606,
67,
869,
67,
1615,
1335,
4999,
30,
1324,
309,
3661,
67,
869,
67,
1615,
30,
309,
3988,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
1615,
310,
738,
87,
1014,
18483,
738,
1014,
67,
529,
364,
770,
67,
529,
16,
5347,
316,
3661,
67,
869,
67,
1615,
18,
2165,
3319,
13332,
3347,
18,
8837,
2932,
9344,
12425,
11083,
4269,
20476,
738,
87,
6229,
738,
87,
6142,
87,
2225,
738,
261,
1615,
67,
529,
16,
1014,
67,
529,
16,
5753,
18,
5701,
12,
6842,
20349,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
11265,
12,
11369,
273,
1083,
4672,
3536,
11637,
326,
3661,
67,
869,
67,
1615,
5617,
316,
326,
1014,
667,
6377,
16,
4872,
279,
444,
434,
5596,
364,
326,
2063,
622,
326,
783,
1459,
18,
3536,
3347,
273,
2383,
1388,
67,
588,
67,
4071,
7675,
9216,
1435,
364,
1014,
67,
529,
316,
2383,
1388,
67,
2121,
67,
1973,
13332,
775,
30,
468,
9852,
30,
225,
7837,
596,
3661,
358,
741,
333,
1110,
773,
24755,
3661,
67,
869,
67,
1615,
273,
3555,
5911,
63,
2121,
67,
529,
8009,
13606,
67,
869,
67,
1615,
1335,
4999,
30,
1324,
309,
3661,
67,
869,
67,
1615,
30,
309,
3988,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
1615,
310,
738,
87,
2
] |
tcolor = "yellow" if status == 'A': tcolor = "green" | tcolor = '' if status == 'U': tcolor = 'orange' tag_end += '<img src="/site_media/images/orange_flag.png" width="16" height="16" alt="orange_flag.png">' | def flag_policy_issue(value, status): # to highlight the issues tag_start = '<span class="' tag_mid = '">' tag_end = '</span>' tcolor = "yellow" if status == 'A': tcolor = "green" if status == 'D': tcolor = "red" tag_end += '<img src="/site_media/images/red_flag.png" width="16" height="16" alt="red_flag.png">' value = tag_start + tcolor + tag_mid + value + tag_end return value | 415573da1155cf94fc2dd3395f825ce2161d45e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4228/415573da1155cf94fc2dd3395f825ce2161d45e4/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2982,
67,
5086,
67,
13882,
12,
1132,
16,
1267,
4672,
468,
358,
8839,
326,
8296,
1047,
67,
1937,
273,
2368,
3969,
667,
5300,
1047,
67,
13138,
273,
13192,
1047,
67,
409,
273,
4357,
3969,
1870,
268,
3266,
273,
875,
309,
1267,
422,
296,
57,
4278,
268,
3266,
273,
296,
280,
726,
11,
1047,
67,
409,
1011,
2368,
6081,
1705,
1546,
19,
4256,
67,
5829,
19,
7369,
19,
280,
726,
67,
6420,
18,
6446,
6,
1835,
1546,
2313,
6,
2072,
1546,
2313,
6,
3770,
1546,
280,
726,
67,
6420,
18,
6446,
7918,
309,
1267,
422,
296,
40,
4278,
268,
3266,
273,
315,
1118,
6,
1047,
67,
409,
1011,
2368,
6081,
1705,
1546,
19,
4256,
67,
5829,
19,
7369,
19,
1118,
67,
6420,
18,
6446,
6,
1835,
1546,
2313,
6,
2072,
1546,
2313,
6,
3770,
1546,
1118,
67,
6420,
18,
6446,
7918,
460,
273,
1047,
67,
1937,
397,
268,
3266,
397,
1047,
67,
13138,
397,
460,
397,
1047,
67,
409,
327,
460,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2982,
67,
5086,
67,
13882,
12,
1132,
16,
1267,
4672,
468,
358,
8839,
326,
8296,
1047,
67,
1937,
273,
2368,
3969,
667,
5300,
1047,
67,
13138,
273,
13192,
1047,
67,
409,
273,
4357,
3969,
1870,
268,
3266,
273,
875,
309,
1267,
422,
296,
57,
4278,
268,
3266,
273,
296,
280,
726,
11,
1047,
67,
409,
1011,
2368,
6081,
1705,
1546,
19,
4256,
67,
5829,
19,
7369,
19,
280,
726,
67,
6420,
18,
6446,
6,
1835,
1546,
2313,
6,
2072,
1546,
2313,
6,
3770,
1546,
280,
726,
67,
6420,
18,
6446,
7918,
309,
1267,
422,
296,
40,
4278,
268,
3266,
273,
315,
1118,
6,
1047,
67,
409,
1011,
2368,
6081,
1705,
1546,
19,
4256,
67,
5829,
19,
7369,
19,
2
] |
p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid) | if sys.platform[:3] == 'win': p = subprocess.Popen(cmdline) else: setsid = getattr(os, 'setsid', None) if not setsid: setsid = getattr(os, 'setpgrp', None) p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid) | def open(self, url, new=0, autoraise=1): cmdline = [self.name] + [arg.replace("%s", url) for arg in self.args] setsid = getattr(os, 'setsid', None) if not setsid: setsid = getattr(os, 'setpgrp', None) try: p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid) return (p.poll() is None) except OSError: return False | 2347074bf78cc5fc84022389f87d6a7159ca9649 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2347074bf78cc5fc84022389f87d6a7159ca9649/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
22877,
273,
306,
2890,
18,
529,
65,
397,
306,
3175,
18,
2079,
27188,
87,
3113,
880,
13,
364,
1501,
316,
365,
18,
1968,
65,
1678,
350,
273,
3869,
12,
538,
16,
296,
4424,
350,
2187,
599,
13,
309,
486,
1678,
350,
30,
1678,
350,
273,
3869,
12,
538,
16,
296,
542,
84,
17532,
2187,
599,
13,
775,
30,
309,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
4278,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
13,
469,
30,
1678,
350,
273,
3869,
12,
538,
16,
296,
4424,
350,
2187,
599,
13,
309,
486,
1678,
350,
30,
1678,
350,
273,
3869,
12,
538,
16,
296,
542,
84,
17532,
2187,
599,
13,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
22877,
273,
306,
2890,
18,
529,
65,
397,
306,
3175,
18,
2079,
27188,
87,
3113,
880,
13,
364,
1501,
316,
365,
18,
1968,
65,
1678,
350,
273,
3869,
12,
538,
16,
296,
4424,
350,
2187,
599,
13,
309,
486,
1678,
350,
30,
1678,
350,
273,
3869,
12,
538,
16,
296,
542,
84,
17532,
2187,
599,
13,
775,
30,
309,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
4278,
293,
273,
6652,
18,
52,
3190,
12,
4172,
1369,
13,
469,
30,
1678,
350,
273,
3869,
12,
538,
16,
296,
4424,
350,
2187,
599,
13,
309,
486,
1678,
350,
30,
1678,
350,
273,
2
] |
return "%s (%s)" % (self.__class__, self.__testFunc.__name__) | return "%s (%s)" % (_strclass(self.__class__), self.__testFunc.__name__) | def __str__(self): return "%s (%s)" % (self.__class__, self.__testFunc.__name__) | dc391a67e39df5f23d62d50b4cdb74728c24684e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dc391a67e39df5f23d62d50b4cdb74728c24684e/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
2213,
87,
6142,
87,
2225,
738,
261,
2890,
16186,
1106,
972,
16,
365,
16186,
3813,
2622,
16186,
529,
972,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
2213,
87,
6142,
87,
2225,
738,
261,
2890,
16186,
1106,
972,
16,
365,
16186,
3813,
2622,
16186,
529,
972,
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
] |
self._w_send_header(k,v) | self._w_send_header(k,v) | def _w_turn_header(self,resp): self.ContentType = 'text/plain' # default if hasattr(resp.msg, 'headers'): for header in resp.msg.headers: k,v = header.split(':',1) k,v = k.strip(),v.strip() self._w_send_header(k,v) if header.lower().startswith('content-type'): self.ContentType = v | 8802315bb56da7d2c792725a7959c936a23d59b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/8802315bb56da7d2c792725a7959c936a23d59b9/ApacheHandler_wrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
91,
67,
20922,
67,
3374,
12,
2890,
16,
12243,
4672,
365,
18,
8046,
273,
296,
955,
19,
7446,
11,
468,
805,
309,
3859,
12,
12243,
18,
3576,
16,
296,
2485,
11,
4672,
364,
1446,
316,
1718,
18,
3576,
18,
2485,
30,
417,
16,
90,
273,
1446,
18,
4939,
2668,
30,
2187,
21,
13,
417,
16,
90,
273,
417,
18,
6406,
9334,
90,
18,
6406,
1435,
365,
6315,
91,
67,
4661,
67,
3374,
12,
79,
16,
90,
13,
309,
1446,
18,
8167,
7675,
17514,
1918,
2668,
1745,
17,
723,
11,
4672,
365,
18,
8046,
273,
331,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
91,
67,
20922,
67,
3374,
12,
2890,
16,
12243,
4672,
365,
18,
8046,
273,
296,
955,
19,
7446,
11,
468,
805,
309,
3859,
12,
12243,
18,
3576,
16,
296,
2485,
11,
4672,
364,
1446,
316,
1718,
18,
3576,
18,
2485,
30,
417,
16,
90,
273,
1446,
18,
4939,
2668,
30,
2187,
21,
13,
417,
16,
90,
273,
417,
18,
6406,
9334,
90,
18,
6406,
1435,
365,
6315,
91,
67,
4661,
67,
3374,
12,
79,
16,
90,
13,
309,
1446,
18,
8167,
7675,
17514,
1918,
2668,
1745,
17,
723,
11,
4672,
365,
18,
8046,
273,
331,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.addView(('objects',), self.session.ObjectView, treeView = objectTreeView) | def __init__(self, methodTreeView = None, objectTreeView = None, location = None, methodInteraction = None, relatedMethods = None, **kw): super(ClientView, self).__init__(**kw) if not (methodTreeView and objectTreeView and location and methodInteraction and relatedMethods): self.client = self.session.Client(view = self, showMethodTree = True, showObjectTree = True, showMethodInteraction = True) methodTreeView = self.client.methodTreeView objectTreeView = self.client.objectTreeView location = self.client.location methodInteraction = self.client.methodInteraction relatedMethods = self.client.relatedMethods self.addView(('tree',), self.session.CombinationView, methodTreeView = methodTreeView, objectTreeView = objectTreeView) self.addView(('objects',), self.session.ObjectView, treeView = objectTreeView) self.addView(('selection',), self.session.Selection, location = location, methodInteraction = methodInteraction, relatedMethods = relatedMethods) | 4fadf73203be069e1abb0745e50de808e949d82c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/4fadf73203be069e1abb0745e50de808e949d82c/gnomoire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
707,
2471,
1767,
273,
599,
16,
733,
2471,
1767,
273,
599,
16,
2117,
273,
599,
16,
707,
17419,
273,
599,
16,
3746,
4712,
273,
599,
16,
2826,
9987,
4672,
2240,
12,
1227,
1767,
16,
365,
2934,
972,
2738,
972,
12,
636,
9987,
13,
309,
486,
261,
2039,
2471,
1767,
471,
733,
2471,
1767,
471,
2117,
471,
707,
17419,
471,
3746,
4712,
4672,
365,
18,
2625,
273,
4202,
365,
18,
3184,
18,
1227,
12,
1945,
273,
365,
16,
2405,
1305,
2471,
273,
1053,
16,
2405,
921,
2471,
273,
1053,
16,
2405,
1305,
17419,
273,
1053,
13,
707,
2471,
1767,
273,
565,
365,
18,
2625,
18,
2039,
2471,
1767,
733,
2471,
1767,
273,
565,
365,
18,
2625,
18,
1612,
2471,
1767,
2117,
273,
1850,
365,
18,
2625,
18,
3562,
707,
17419,
273,
365,
18,
2625,
18,
2039,
17419,
3746,
4712,
273,
565,
365,
18,
2625,
18,
9243,
4712,
365,
18,
1289,
1767,
12,
2668,
3413,
2187,
3631,
365,
18,
3184,
18,
26062,
1767,
16,
707,
2471,
1767,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
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
707,
2471,
1767,
273,
599,
16,
733,
2471,
1767,
273,
599,
16,
2117,
273,
599,
16,
707,
17419,
273,
599,
16,
3746,
4712,
273,
599,
16,
2826,
9987,
4672,
2240,
12,
1227,
1767,
16,
365,
2934,
972,
2738,
972,
12,
636,
9987,
13,
309,
486,
261,
2039,
2471,
1767,
471,
733,
2471,
1767,
471,
2117,
471,
707,
17419,
471,
3746,
4712,
4672,
365,
18,
2625,
273,
4202,
365,
18,
3184,
18,
1227,
12,
1945,
273,
365,
16,
2405,
1305,
2471,
273,
1053,
16,
2405,
921,
2471,
273,
1053,
16,
2405,
1305,
17419,
273,
1053,
13,
707,
2471,
1767,
273,
565,
365,
18,
2625,
18,
2039,
2471,
1767,
733,
2471,
1767,
273,
565,
2
] |
|
context['textinput']['name'] = value | context['name'] = value | def _end_name(self): value = self.pop('name') if self.inpublisher: self._save_author('name', value, 'publisher') elif self.inauthor: self._save_author('name', value) elif self.incontributor: self._save_contributor('name', value) elif self.intextinput: context = self._getContext() context['textinput']['name'] = value | 44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
529,
12,
2890,
4672,
460,
273,
365,
18,
5120,
2668,
529,
6134,
309,
365,
18,
267,
26018,
30,
365,
6315,
5688,
67,
4161,
2668,
529,
2187,
460,
16,
296,
26018,
6134,
1327,
365,
18,
267,
4161,
30,
365,
6315,
5688,
67,
4161,
2668,
529,
2187,
460,
13,
1327,
365,
18,
267,
591,
19293,
30,
365,
6315,
5688,
67,
591,
19293,
2668,
529,
2187,
460,
13,
1327,
365,
18,
474,
408,
2630,
30,
819,
273,
365,
6315,
29120,
1435,
819,
3292,
955,
2630,
21712,
529,
3546,
273,
460,
2,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
529,
12,
2890,
4672,
460,
273,
365,
18,
5120,
2668,
529,
6134,
309,
365,
18,
267,
26018,
30,
365,
6315,
5688,
67,
4161,
2668,
529,
2187,
460,
16,
296,
26018,
6134,
1327,
365,
18,
267,
4161,
30,
365,
6315,
5688,
67,
4161,
2668,
529,
2187,
460,
13,
1327,
365,
18,
267,
591,
19293,
30,
365,
6315,
5688,
67,
591,
19293,
2668,
529,
2187,
460,
13,
1327,
365,
18,
474,
408,
2630,
30,
819,
273,
365,
6315,
29120,
1435,
819,
3292,
955,
2630,
21712,
529,
3546,
273,
460,
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
] |
for p in self.phases: if(p[0] != phase[0]): continue list = data.dmesg[p]['list'] for devname in list: if devname in devlist: idlist.append(list[devname]['id']) | list = self.dmesg[phase]['list'] for devname in list: if devname in devlist: idlist.append(list[devname]['id']) | def deviceIDs(self, devlist, phase): idlist = [] for p in self.phases: if(p[0] != phase[0]): continue list = data.dmesg[p]['list'] for devname in list: if devname in devlist: idlist.append(list[devname]['id']) return idlist | 0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2346,
5103,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2346,
5103,
12,
2890,
16,
4461,
1098,
16,
6855,
4672,
612,
1098,
273,
5378,
666,
273,
365,
18,
10956,
281,
75,
63,
13961,
23962,
1098,
3546,
364,
4461,
529,
316,
666,
30,
309,
4461,
529,
316,
4461,
1098,
30,
612,
1098,
18,
6923,
12,
1098,
63,
5206,
529,
23962,
350,
19486,
327,
612,
1098,
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
] |
r.nameservers = [_resolve_name(server)] | r.nameservers = [_resolve_name(server, None)] | def _resolve_name(name, server): """ Resolve the given name to an IP address. """ if is_ip_addr(name): return name r = dns.resolver.Resolver() if server: r.nameservers = [_resolve_name(server)] answers = r.query(name) answer = None for answer in answers: # @CTB !? break assert answer return str(answer) | 7598ed2bc981d258c3e5fff90c4ec8ae8f5bf22b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/7598ed2bc981d258c3e5fff90c4ec8ae8f5bf22b/dns_check.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10828,
67,
529,
12,
529,
16,
1438,
4672,
3536,
9910,
326,
864,
508,
358,
392,
2971,
1758,
18,
3536,
309,
353,
67,
625,
67,
4793,
12,
529,
4672,
327,
508,
225,
436,
273,
6605,
18,
14122,
18,
4301,
1435,
309,
1438,
30,
436,
18,
1973,
29638,
273,
306,
67,
10828,
67,
529,
12,
3567,
16,
599,
25887,
225,
12415,
273,
436,
18,
2271,
12,
529,
13,
225,
5803,
273,
599,
364,
5803,
316,
12415,
30,
2868,
468,
632,
1268,
38,
401,
35,
898,
225,
1815,
5803,
327,
609,
12,
13490,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10828,
67,
529,
12,
529,
16,
1438,
4672,
3536,
9910,
326,
864,
508,
358,
392,
2971,
1758,
18,
3536,
309,
353,
67,
625,
67,
4793,
12,
529,
4672,
327,
508,
225,
436,
273,
6605,
18,
14122,
18,
4301,
1435,
309,
1438,
30,
436,
18,
1973,
29638,
273,
306,
67,
10828,
67,
529,
12,
3567,
16,
599,
25887,
225,
12415,
273,
436,
18,
2271,
12,
529,
13,
225,
5803,
273,
599,
364,
5803,
316,
12415,
30,
2868,
468,
632,
1268,
38,
401,
35,
898,
225,
1815,
5803,
327,
609,
12,
13490,
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
] |
logging.debug("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__)) | logging.info("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__)) | def main(logToFile): try: os.makedirs(constants._data_path_) except OSError, e: if e.errno != 17: raise telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE')) if logToFile: logging.basicConfig( level=logging.DEBUG, filename=constants._user_logpath_, format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', datefmt='%H:%M:%S', ) else: logging.basicConfig( level=logging.INFO, format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', datefmt='%H:%M:%S', ) logging.debug("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__)) logging.debug("OS: %s" % (os.uname()[0], )) logging.debug("Kernel: %s (%s) for %s" % os.uname()[2:]) logging.debug("Hostname: %s" % os.uname()[1]) persist = 'THEONERING_PERSIST' in os.environ try: run_theonering(persist) finally: logging.shutdown() | 407d5b467c28c20f2073833001ed871766a68bc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/407d5b467c28c20f2073833001ed871766a68bc5/theonering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1330,
15450,
4672,
775,
30,
1140,
18,
81,
9477,
10539,
12,
13358,
6315,
892,
67,
803,
67,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8043,
30,
1002,
225,
268,
6516,
803,
93,
67,
5471,
18,
4148,
67,
2892,
1051,
67,
6833,
12,
538,
18,
588,
3074,
2668,
24644,
673,
654,
1360,
67,
4842,
3776,
26112,
309,
613,
15450,
30,
2907,
18,
13240,
809,
12,
1801,
33,
11167,
18,
9394,
16,
1544,
33,
13358,
6315,
1355,
67,
1330,
803,
67,
16,
740,
2218,
9275,
12,
345,
21261,
13,
87,
13,
8975,
31994,
13,
87,
5319,
12,
529,
13,
87,
5319,
12,
2150,
13,
87,
2187,
1509,
8666,
28713,
44,
5319,
49,
5319,
55,
2187,
262,
469,
30,
2907,
18,
13240,
809,
12,
1801,
33,
11167,
18,
5923,
16,
740,
2218,
9275,
12,
345,
21261,
13,
87,
13,
8975,
31994,
13,
87,
5319,
12,
529,
13,
87,
5319,
12,
2150,
13,
87,
2187,
1509,
8666,
28713,
44,
5319,
49,
5319,
55,
2187,
262,
2907,
18,
1376,
2932,
29170,
803,
93,
17,
5787,
31430,
310,
738,
87,
6456,
87,
6,
738,
261,
13358,
16186,
1589,
972,
16,
6810,
16186,
3510,
972,
3719,
2907,
18,
4148,
2932,
4618,
30,
738,
87,
6,
738,
261,
538,
18,
318,
339,
1435,
63,
20,
6487,
8623,
2907,
18,
4148,
2932,
11286,
30,
738,
87,
6142,
87,
13,
364,
738,
87,
6,
738,
1140,
18,
318,
339,
1435,
63,
22,
30,
5717,
2907,
18,
4148,
2932,
13769,
30,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1330,
15450,
4672,
775,
30,
1140,
18,
81,
9477,
10539,
12,
13358,
6315,
892,
67,
803,
67,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8043,
30,
1002,
225,
268,
6516,
803,
93,
67,
5471,
18,
4148,
67,
2892,
1051,
67,
6833,
12,
538,
18,
588,
3074,
2668,
24644,
673,
654,
1360,
67,
4842,
3776,
26112,
309,
613,
15450,
30,
2907,
18,
13240,
809,
12,
1801,
33,
11167,
18,
9394,
16,
1544,
33,
13358,
6315,
1355,
67,
1330,
803,
67,
16,
740,
2218,
9275,
12,
345,
21261,
13,
87,
13,
8975,
31994,
13,
87,
5319,
12,
529,
13,
87,
5319,
12,
2150,
13,
87,
2187,
1509,
8666,
28713,
44,
5319,
49,
5319,
55,
2
] |
ICUDATA_DAT = ICUDATA + ".dat" | def main(): global ANDROID_BUILD_TOP # $ANDROID_BUILD_TOP global ICU4C_DIR # $ANDROID_BUILD_TOP/external/icu4c global ICU_VERSION # ICU version number global ICUDATA # e.g. "icudt42l" global ICUDATA_DAT # e.g. "icudt42l.dat" global CLDR_VERSION # CLDR version. The value can be vary upon ICU release. global TMP_DAT_PATH # temp directory to store all resource files and # intermediate dat files. global VERBOSE VERBOSE = False show_help = False try: opts, args = getopt.getopt(sys.argv[1:], 'hv', ['help', 'verbose']) except getopt.error: PrintHelpAndExit() for opt, arg in opts: if opt in ('-h', '--help'): show_help = True elif opt in ('-v', '--verbose'): VERBOSE = True if len(args) < 1: show_help = True if show_help: PrintHelpAndExit() # TODO: is there any advantage to requiring this as an argument? couldn't we just glob it from # the file system, looking for "icudt\d+l.*\.txt"? ICU_VERSION = args[0] if re.search(r'[0-9]+\.[0-9]+', ICU_VERSION) == None: print "'%s' is not a valid icu version number!" % (ICU_VERSION) sys.exit(1) ICUDATA = "icudt" + re.sub(r'([^0-9])', "", ICU_VERSION) + "l" CLDR_VERSION = "1.8" ANDROID_BUILD_TOP = os.environ.get("ANDROID_BUILD_TOP") if not ANDROID_BUILD_TOP: print "$ANDROID_BUILD_TOP not set! Run 'env_setup.sh'." sys.exit(1) ICU4C_DIR = os.path.join(ANDROID_BUILD_TOP, "external", "icu4c") ICUDATA_DAT = ICUDATA + ".dat" # Check for required source files. stubdata_dir = os.path.join(ICU4C_DIR, "stubdata") full_data_filename = os.path.join(stubdata_dir, ICUDATA + "-all.dat") if not os.path.isfile(full_data_filename): print "%s not present." % full_data_filename sys.exit(1) # Create a temporary working directory. TMP_DAT_PATH = os.path.join(ICU4C_DIR, "tmp") if os.path.exists(TMP_DAT_PATH): shutil.rmtree(TMP_DAT_PATH) os.mkdir(TMP_DAT_PATH) # Extract resource files from icudtxxl-all.dat to TMP_DAT_PATH. ExtractAllResourceToTempDir() # TODO: is there any advantage to hard-coding this? couldn't we just glob it from the file system? datlist = ["us", "us-euro", "default", "us-japan", "zh", "medium", "large"] for dat_subtag in datlist: output_filename = os.path.join(stubdata_dir, ICUDATA + "-" + dat_subtag + ".dat") MakeDat(stubdata_dir, dat_subtag) # Copy icudtxxl.dat to stubdata directory with corresponding subtag. shutil.copyfile(os.path.join(TMP_DAT_PATH, ICUDATA_DAT), output_filename) print "Generated ICU data: %s" % (output_filename) # Cleanup temporary working directory and icudtxxl.dat shutil.rmtree(TMP_DAT_PATH) os.remove(os.path.join(stubdata_dir, ICUDATA_DAT)) | 7173c2a35d19fbdcad4e894b17842fdc2b6dfa81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10672/7173c2a35d19fbdcad4e894b17842fdc2b6dfa81/icu_dat_generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
4116,
1457,
734,
67,
20215,
67,
10462,
225,
468,
271,
4307,
1457,
734,
67,
20215,
67,
10462,
2552,
28009,
24,
39,
67,
4537,
377,
468,
271,
4307,
1457,
734,
67,
20215,
67,
10462,
19,
9375,
19,
335,
89,
24,
71,
2552,
28009,
67,
5757,
282,
468,
28009,
1177,
1300,
2552,
28009,
4883,
4202,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
6,
2552,
28009,
4883,
67,
11102,
282,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
18,
3404,
6,
2552,
14934,
6331,
67,
5757,
225,
468,
14934,
6331,
1177,
18,
1021,
460,
848,
506,
23674,
12318,
28009,
3992,
18,
2552,
399,
4566,
67,
11102,
67,
4211,
225,
468,
1906,
1867,
358,
1707,
777,
1058,
1390,
471,
468,
12110,
1150,
1390,
18,
2552,
27857,
225,
27857,
273,
1083,
225,
2405,
67,
5201,
273,
1083,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
90,
2187,
10228,
5201,
2187,
296,
11369,
19486,
1335,
336,
3838,
18,
1636,
30,
3038,
6696,
29000,
1435,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7707,
17,
76,
2187,
3534,
5201,
11,
4672,
2405,
67,
5201,
273,
1053,
1327,
2153,
316,
7707,
17,
90,
2187,
3534,
11369,
11,
4672,
27857,
273,
1053,
309,
562,
12,
1968,
13,
411,
404,
30,
2405,
67,
5201,
273,
1053,
225,
309,
2405,
67,
5201,
30,
3038,
6696,
29000,
1435,
225,
468,
2660,
30,
353,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
4116,
1457,
734,
67,
20215,
67,
10462,
225,
468,
271,
4307,
1457,
734,
67,
20215,
67,
10462,
2552,
28009,
24,
39,
67,
4537,
377,
468,
271,
4307,
1457,
734,
67,
20215,
67,
10462,
19,
9375,
19,
335,
89,
24,
71,
2552,
28009,
67,
5757,
282,
468,
28009,
1177,
1300,
2552,
28009,
4883,
4202,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
6,
2552,
28009,
4883,
67,
11102,
282,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
18,
3404,
6,
2552,
14934,
6331,
67,
5757,
225,
468,
14934,
6331,
1177,
18,
1021,
460,
848,
506,
23674,
12318,
28009,
3992,
18,
2552,
399,
4566,
67,
11102,
67,
4211,
225,
468,
1906,
2
] |
|
allowed_files = [ | allowed_files = set([ | def UploadFile(file_name, data, mode, uid, gid, atime, mtime): """Write a file to the filesystem. This allows the master to overwrite(!) a file. It will only perform the operation if the file belongs to a list of configuration files. @type file_name: str @param file_name: the target file name @type data: str @param data: the new contents of the file @type mode: int @param mode: the mode to give the file (can be None) @type uid: int @param uid: the owner of the file (can be -1 for default) @type gid: int @param gid: the group of the file (can be -1 for default) @type atime: float @param atime: the atime to set on the file (can be None) @type mtime: float @param mtime: the mtime to set on the file (can be None) @rtype: boolean @return: the success of the operation; errors are logged in the node daemon log """ if not os.path.isabs(file_name): logging.error("Filename passed to UploadFile is not absolute: '%s'", file_name) return False allowed_files = [ constants.CLUSTER_CONF_FILE, constants.ETC_HOSTS, constants.SSH_KNOWN_HOSTS_FILE, constants.VNC_PASSWORD_FILE, ] if file_name not in allowed_files: logging.error("Filename passed to UploadFile not in allowed" " upload targets: '%s'", file_name) return False raw_data = _Decompress(data) utils.WriteFile(file_name, data=raw_data, mode=mode, uid=uid, gid=gid, atime=atime, mtime=mtime) return True | 4501a443735a9948276db4aeb6752226a37770c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/4501a443735a9948276db4aeb6752226a37770c7/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
812,
12,
768,
67,
529,
16,
501,
16,
1965,
16,
4555,
16,
11399,
16,
622,
494,
16,
13158,
4672,
3536,
3067,
279,
585,
358,
326,
6496,
18,
225,
1220,
5360,
326,
4171,
358,
6156,
12,
24949,
279,
585,
18,
2597,
903,
1338,
3073,
326,
1674,
309,
326,
585,
11081,
358,
279,
666,
434,
1664,
1390,
18,
225,
632,
723,
585,
67,
529,
30,
609,
632,
891,
585,
67,
529,
30,
326,
1018,
585,
508,
632,
723,
501,
30,
609,
632,
891,
501,
30,
326,
394,
2939,
434,
326,
585,
632,
723,
1965,
30,
509,
632,
891,
1965,
30,
326,
1965,
358,
8492,
326,
585,
261,
4169,
506,
599,
13,
632,
723,
4555,
30,
509,
632,
891,
4555,
30,
326,
3410,
434,
326,
585,
261,
4169,
506,
300,
21,
364,
805,
13,
632,
723,
11399,
30,
509,
632,
891,
11399,
30,
326,
1041,
434,
326,
585,
261,
4169,
506,
300,
21,
364,
805,
13,
632,
723,
622,
494,
30,
1431,
632,
891,
622,
494,
30,
326,
622,
494,
358,
444,
603,
326,
585,
261,
4169,
506,
599,
13,
632,
723,
13158,
30,
1431,
632,
891,
13158,
30,
326,
13158,
358,
444,
603,
326,
585,
261,
4169,
506,
599,
13,
632,
86,
723,
30,
1250,
632,
2463,
30,
326,
2216,
434,
326,
1674,
31,
1334,
854,
7545,
316,
326,
756,
8131,
613,
225,
3536,
309,
486,
1140,
18,
803,
18,
291,
5113,
12,
768,
67,
529,
4672,
2907,
18,
1636,
2932,
5359,
2275,
358,
9414,
812,
353,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
812,
12,
768,
67,
529,
16,
501,
16,
1965,
16,
4555,
16,
11399,
16,
622,
494,
16,
13158,
4672,
3536,
3067,
279,
585,
358,
326,
6496,
18,
225,
1220,
5360,
326,
4171,
358,
6156,
12,
24949,
279,
585,
18,
2597,
903,
1338,
3073,
326,
1674,
309,
326,
585,
11081,
358,
279,
666,
434,
1664,
1390,
18,
225,
632,
723,
585,
67,
529,
30,
609,
632,
891,
585,
67,
529,
30,
326,
1018,
585,
508,
632,
723,
501,
30,
609,
632,
891,
501,
30,
326,
394,
2939,
434,
326,
585,
632,
723,
1965,
30,
509,
632,
891,
1965,
30,
326,
1965,
358,
8492,
326,
585,
261,
4169,
506,
599,
13,
632,
723,
4555,
30,
509,
632,
891,
4555,
2
] |
defaultName = 'wx.Wizard' | defaultName = 'wx.wizard.Wizard' | def getSimpleRunnerSrc(self): return '' | b69356508054fc9760f797ebed8c2603130041bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b69356508054fc9760f797ebed8c2603130041bb/wxPythonEditorModels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8120,
9709,
7740,
12,
2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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8120,
9709,
7740,
12,
2890,
4672,
327,
875,
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
] |
self.stop() | if self.is_playing: self.stop() | def _try_select_current(self): self.cancel_update_timer() self.cancel_mark_as_watched() if self.is_playing: self.video_display.stop() if 0 <= self.position < len(self.playlist): item_info = self.playlist[self.position] if not self._item_is_playable(item_info): self.position += 1 return self._try_select_current() else: self.stop() return False return True | 44fe4bef4daed6413ec675979afdfa4aa436fc6b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/44fe4bef4daed6413ec675979afdfa4aa436fc6b/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
698,
67,
4025,
67,
2972,
12,
2890,
4672,
365,
18,
10996,
67,
2725,
67,
12542,
1435,
365,
18,
10996,
67,
3355,
67,
345,
67,
7585,
329,
1435,
309,
365,
18,
291,
67,
1601,
310,
30,
365,
18,
9115,
67,
5417,
18,
5681,
1435,
309,
374,
1648,
365,
18,
3276,
411,
562,
12,
2890,
18,
1601,
1098,
4672,
761,
67,
1376,
273,
365,
18,
1601,
1098,
63,
2890,
18,
3276,
65,
309,
486,
365,
6315,
1726,
67,
291,
67,
1601,
429,
12,
1726,
67,
1376,
4672,
365,
18,
3276,
1011,
404,
327,
365,
6315,
698,
67,
4025,
67,
2972,
1435,
469,
30,
309,
365,
18,
291,
67,
1601,
310,
30,
365,
18,
5681,
1435,
327,
1083,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
698,
67,
4025,
67,
2972,
12,
2890,
4672,
365,
18,
10996,
67,
2725,
67,
12542,
1435,
365,
18,
10996,
67,
3355,
67,
345,
67,
7585,
329,
1435,
309,
365,
18,
291,
67,
1601,
310,
30,
365,
18,
9115,
67,
5417,
18,
5681,
1435,
309,
374,
1648,
365,
18,
3276,
411,
562,
12,
2890,
18,
1601,
1098,
4672,
761,
67,
1376,
273,
365,
18,
1601,
1098,
63,
2890,
18,
3276,
65,
309,
486,
365,
6315,
1726,
67,
291,
67,
1601,
429,
12,
1726,
67,
1376,
4672,
365,
18,
3276,
1011,
404,
327,
365,
6315,
698,
67,
4025,
67,
2972,
1435,
469,
30,
309,
365,
18,
291,
67,
1601,
310,
30,
365,
18,
5681,
1435,
327,
1083,
327,
1053,
2
] |
shapes="a,b", extradoc=""" | shapes="a, b", extradoc=""" | def _stats(self, a, b): nA, nB = self.na, self.nb d = nB - nA pA, pB = norm._pdf(a), norm._pdf(b) mu = (pA - pB) / d #correction sign mu2 = 1 + (a*pA - b*pB) / d - mu*mu return mu, mu2, None, None | 48ba19baad4689b1adfc686887dc76e1a520ab52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/48ba19baad4689b1adfc686887dc76e1a520ab52/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5296,
12,
2890,
16,
279,
16,
324,
4672,
290,
37,
16,
290,
38,
273,
365,
18,
6582,
16,
365,
18,
6423,
302,
273,
290,
38,
300,
290,
37,
293,
37,
16,
293,
38,
273,
4651,
6315,
7699,
12,
69,
3631,
4651,
6315,
7699,
12,
70,
13,
4129,
273,
261,
84,
37,
300,
293,
38,
13,
342,
302,
282,
468,
20916,
1573,
4129,
22,
273,
404,
397,
261,
69,
14,
84,
37,
300,
324,
14,
84,
38,
13,
342,
302,
300,
4129,
14,
13297,
327,
4129,
16,
4129,
22,
16,
599,
16,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
290,
37,
16,
290,
38,
273,
365,
18,
6582,
16,
365,
18,
6423,
302,
273,
290,
38,
300,
290,
37,
293,
37,
16,
293,
38,
273,
4651,
6315,
7699,
12,
69,
3631,
4651,
6315,
7699,
12,
70,
13,
4129,
273,
261,
84,
37,
300,
293,
38,
13,
342,
302,
282,
468,
20916,
1573,
4129,
22,
273,
404,
397,
261,
69,
14,
84,
37,
300,
324,
14,
84,
38,
13,
342,
302,
300,
4129,
14,
13297,
327,
4129,
16,
4129,
22,
16,
599,
16,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'Forcing DISTUTILS_USE_SDK=1' | print('Forcing DISTUTILS_USE_SDK=1') | def msvc_on_amd64(): if not (sys.platform=='win32' or os.name=='nt'): return if get_build_architecture() != 'AMD64': return if 'DISTUTILS_USE_SDK' in os.environ: return # try to avoid _MSVCCompiler__root attribute error print 'Forcing DISTUTILS_USE_SDK=1' os.environ['DISTUTILS_USE_SDK']='1' return | c85421c3b85e794d07e8de0304136c068c7f2e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/c85421c3b85e794d07e8de0304136c068c7f2e17/misc_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
265,
67,
301,
72,
1105,
13332,
309,
486,
261,
9499,
18,
9898,
18920,
8082,
1578,
11,
578,
1140,
18,
529,
18920,
496,
11,
4672,
327,
309,
336,
67,
3510,
67,
991,
18123,
1435,
480,
296,
2192,
40,
1105,
4278,
327,
309,
296,
2565,
882,
1693,
2627,
55,
67,
8001,
67,
22625,
11,
316,
1140,
18,
28684,
30,
327,
468,
775,
358,
4543,
389,
3537,
13464,
9213,
972,
3085,
1566,
555,
1172,
2668,
1290,
2822,
3690,
882,
1693,
2627,
55,
67,
8001,
67,
22625,
33,
21,
6134,
1140,
18,
28684,
3292,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
265,
67,
301,
72,
1105,
13332,
309,
486,
261,
9499,
18,
9898,
18920,
8082,
1578,
11,
578,
1140,
18,
529,
18920,
496,
11,
4672,
327,
309,
336,
67,
3510,
67,
991,
18123,
1435,
480,
296,
2192,
40,
1105,
4278,
327,
309,
296,
2565,
882,
1693,
2627,
55,
67,
8001,
67,
22625,
11,
316,
1140,
18,
28684,
30,
327,
468,
775,
358,
4543,
389,
3537,
13464,
9213,
972,
3085,
1566,
555,
1172,
2668,
1290,
2822,
3690,
882,
1693,
2627,
55,
67,
8001,
67,
22625,
33,
21,
6134,
1140,
18,
28684,
3292,
2565,
882,
1693,
2627,
55,
67,
8001,
67,
22625,
3546,
2218,
21,
11,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.stats.add(line) | if self.stats: self.stats.add(line) else: print("No statistics object is loaded.", file=self.stream) | def do_add(self, line): self.stats.add(line) return 0 | 3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e/pstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1289,
12,
2890,
16,
980,
4672,
309,
365,
18,
5296,
30,
365,
18,
5296,
18,
1289,
12,
1369,
13,
469,
30,
1172,
2932,
2279,
7691,
733,
353,
4203,
1199,
16,
585,
33,
2890,
18,
3256,
13,
327,
374,
2,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1289,
12,
2890,
16,
980,
4672,
309,
365,
18,
5296,
30,
365,
18,
5296,
18,
1289,
12,
1369,
13,
469,
30,
1172,
2932,
2279,
7691,
733,
353,
4203,
1199,
16,
585,
33,
2890,
18,
3256,
13,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
<html>... | <html... | def consume_digest(self): digest = list(self.digest) del self.digest[:] return digest | f0b04506a5c04612b3f8b659e09d5165d893bbef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12308/f0b04506a5c04612b3f8b659e09d5165d893bbef/digest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7865,
67,
10171,
12,
2890,
4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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7865,
67,
10171,
12,
2890,
4672,
5403,
273,
666,
12,
2890,
18,
10171,
13,
1464,
365,
18,
10171,
10531,
65,
327,
5403,
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
] |
filter_compiler = libpath + sep + 'gateway-compile2' | filter_compiler = libpath + sep + 'filter-compile2' | def compileFilters(config): sep = config.get('system','sep') projectname = config.get('system','projectname') tmppath = config.get('system','tmppath') libpath = config.get('system','libpath') projpath = config.get('system','projpath') filter = projpath + sep + config.get('system','filter') reject = tmppath + sep + projectname + '-filter-reject' accept = tmppath + sep + projectname + '-filter-accept' config.set('system','filter_reject',reject) config.set('system','filter_accept',accept) # compile filters here filter_compiler = libpath + sep + 'gateway-compile1' transform(config,filter_compiler,filter,accept + '.xsl','version="2.0"') filter_compiler = libpath + sep + 'gateway-compile2' transform(config,filter_compiler,filter,reject + '.xsl','version="2.0"') return config | d9c4d437ea936d86348887855fe0ae45f9227eee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8937/d9c4d437ea936d86348887855fe0ae45f9227eee/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
5422,
12,
1425,
4672,
5478,
273,
642,
18,
588,
2668,
4299,
17023,
10814,
6134,
1984,
529,
273,
642,
18,
588,
2668,
4299,
17023,
4406,
529,
6134,
1853,
803,
273,
642,
18,
588,
2668,
4299,
17023,
5645,
803,
6134,
2561,
803,
273,
642,
18,
588,
2668,
4299,
17023,
2941,
803,
6134,
10296,
803,
273,
642,
18,
588,
2668,
4299,
17023,
17995,
803,
6134,
225,
1034,
273,
10296,
803,
397,
5478,
397,
642,
18,
588,
2668,
4299,
17023,
2188,
6134,
4925,
273,
1853,
803,
397,
5478,
397,
1984,
529,
397,
2400,
2188,
17,
24163,
11,
2791,
273,
1853,
803,
397,
5478,
397,
1984,
529,
397,
2400,
2188,
17,
9436,
11,
642,
18,
542,
2668,
4299,
17023,
2188,
67,
24163,
2187,
24163,
13,
642,
18,
542,
2668,
4299,
17023,
2188,
67,
9436,
2187,
9436,
13,
225,
468,
4074,
3415,
2674,
1034,
67,
9576,
273,
2561,
803,
397,
5478,
397,
296,
11127,
17,
11100,
21,
11,
2510,
12,
1425,
16,
2188,
67,
9576,
16,
2188,
16,
9436,
397,
2418,
30903,
17023,
1589,
1546,
22,
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8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
5422,
12,
1425,
4672,
5478,
273,
642,
18,
588,
2668,
4299,
17023,
10814,
6134,
1984,
529,
273,
642,
18,
588,
2668,
4299,
17023,
4406,
529,
6134,
1853,
803,
273,
642,
18,
588,
2668,
4299,
17023,
5645,
803,
6134,
2561,
803,
273,
642,
18,
588,
2668,
4299,
17023,
2941,
803,
6134,
10296,
803,
273,
642,
18,
588,
2668,
4299,
17023,
17995,
803,
6134,
225,
1034,
273,
10296,
803,
397,
5478,
397,
642,
18,
588,
2668,
4299,
17023,
2188,
6134,
4925,
273,
1853,
803,
397,
5478,
397,
1984,
529,
397,
2400,
2188,
17,
24163,
11,
2791,
273,
1853,
803,
397,
5478,
397,
1984,
529,
397,
2400,
2188,
17,
9436,
11,
642,
18,
542,
2668,
4299,
17023,
2188,
67,
24163,
2
] |
msg = "*** THIS MESSAGE WAS SENT IN DEBUG MODE, DON'T TAKE IT INTO ACCOUNT ***\n\n" | msg = "*** THIS MESSAGE WAS SENT IN DEBUG MODE ***\n\n" | def email_notify(alert, records, argstr): global FROMADDR global ALERTURL global DEBUGLEVEL global DEVELOPERADDR if len(records) == 0: return msg = "" if DEBUGLEVEL > 0: msg = "*** THIS MESSAGE WAS SENT IN DEBUG MODE, DON'T TAKE IT INTO ACCOUNT ***\n\n" msg += "Hello\n\n" msg += wrap("Below are the results of the email alert that you set up with the CERN Document Server. This is an automatic message, please don't reply to its address. For any question, use <%s> instead." % supportemail) email = get_email(alert[0]) url = weburl + "/search.py?" + argstr pattern = get_pattern(argstr) catalogue = get_catalogue(argstr) catword = 'collection' if get_catalogue_num(argstr) > 1: catword += 's' time = strftime("%d-%m-%Y") msg += '\n' + wrap('alert name: %s' % alert[5]) if pattern: msg += wrap('pattern: %s' % pattern) if catalogue: msg += wrap('%s: %s' % (catword, catalogue)) msg += wrap('frequency: %s ' % format_frequency(alert[3])) msg += wrap('run time: %s ' % strftime("%a %d-%m-%Y %H:%M:%S")) recword = 'record' if len(records) > 1: recword += 's' msg += wrap('found: %s %s' % (len(records), recword)) msg += "url: <%s/search.py?%s>\n" % (weburl, argstr) msg += wrap_records(print_records(records)) msg += "\n-- \nCERN Document Server Alert Service <%s>\nUnsubscribe? See <%s>\nNeed human intervention? Contact <%s>" % (weburl, ALERTURL, supportemail) subject = 'Alert %s run on %s' % (alert[5], time) body = forge_email(FROMADDR, email, subject, msg) if DEBUGLEVEL > 0: print "********************************************************************************" print body print "********************************************************************************" if DEBUGLEVEL < 2: send_email(FROMADDR, email, body) if DEBUGLEVEL == 4: for a in DEVELOPERADDR: send_email(FROMADDR, a, body) | 7525d89c310ce7dc2bf057b2e30e62a621ab091c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/7525d89c310ce7dc2bf057b2e30e62a621ab091c/alert_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2699,
67,
12336,
12,
11798,
16,
3853,
16,
833,
313,
4672,
2552,
4571,
14142,
2552,
7981,
11539,
1785,
2552,
6369,
10398,
2552,
2030,
24397,
3194,
14142,
225,
309,
562,
12,
7094,
13,
422,
374,
30,
327,
225,
1234,
273,
1408,
225,
309,
6369,
10398,
405,
374,
30,
1234,
273,
315,
14465,
20676,
9841,
678,
3033,
348,
2222,
2120,
6369,
11741,
18852,
64,
82,
64,
82,
6,
225,
1234,
1011,
315,
18601,
64,
82,
64,
82,
6,
1234,
1011,
2193,
2932,
28730,
854,
326,
1686,
434,
326,
2699,
6881,
716,
1846,
444,
731,
598,
326,
385,
654,
50,
4319,
3224,
18,
225,
1220,
353,
392,
5859,
883,
16,
9582,
2727,
1404,
4332,
358,
2097,
1758,
18,
225,
2457,
1281,
5073,
16,
999,
23930,
87,
34,
3560,
1199,
738,
2865,
3652,
13,
225,
2699,
273,
336,
67,
3652,
12,
11798,
63,
20,
5717,
225,
880,
273,
3311,
718,
397,
2206,
3072,
18,
2074,
7225,
397,
833,
313,
1936,
273,
336,
67,
4951,
12,
1968,
313,
13,
20833,
273,
336,
67,
7199,
344,
12,
1968,
313,
13,
6573,
1095,
273,
296,
5548,
11,
309,
336,
67,
7199,
344,
67,
2107,
12,
1968,
313,
13,
405,
404,
30,
6573,
1095,
1011,
296,
87,
11,
225,
813,
273,
10405,
27188,
72,
6456,
81,
6456,
61,
7923,
225,
1234,
1011,
2337,
82,
11,
397,
2193,
2668,
11798,
508,
30,
738,
87,
11,
738,
6881,
63,
25,
5717,
309,
1936,
30,
1234,
1011,
2193,
2668,
4951,
30,
738,
87,
11,
738,
1936,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2699,
67,
12336,
12,
11798,
16,
3853,
16,
833,
313,
4672,
2552,
4571,
14142,
2552,
7981,
11539,
1785,
2552,
6369,
10398,
2552,
2030,
24397,
3194,
14142,
225,
309,
562,
12,
7094,
13,
422,
374,
30,
327,
225,
1234,
273,
1408,
225,
309,
6369,
10398,
405,
374,
30,
1234,
273,
315,
14465,
20676,
9841,
678,
3033,
348,
2222,
2120,
6369,
11741,
18852,
64,
82,
64,
82,
6,
225,
1234,
1011,
315,
18601,
64,
82,
64,
82,
6,
1234,
1011,
2193,
2932,
28730,
854,
326,
1686,
434,
326,
2699,
6881,
716,
1846,
444,
731,
598,
326,
385,
654,
50,
4319,
3224,
18,
225,
1220,
353,
392,
5859,
883,
16,
9582,
2727,
1404,
4332,
358,
2097,
1758,
18,
225,
2457,
1281,
2
] |
raise ValidationError(_('You have to select the user that ' 'gets the posts assigned.')) | raise ValidationError(_('You have to select a user to reassign ' 'the posts to.')) | def context_validate(self, data): if data['action'] == 'reassign' and not data['reassign_to']: # XXX: Bad wording raise ValidationError(_('You have to select the user that ' 'gets the posts assigned.')) | bcd14320601435d7b7d798dfcd075eea5bed6090 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12815/bcd14320601435d7b7d798dfcd075eea5bed6090/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
819,
67,
5662,
12,
2890,
16,
501,
4672,
309,
501,
3292,
1128,
3546,
422,
296,
266,
6145,
11,
471,
486,
501,
3292,
266,
6145,
67,
869,
3546,
30,
468,
11329,
30,
6107,
2076,
310,
1002,
13167,
24899,
2668,
6225,
1240,
358,
2027,
326,
729,
716,
296,
296,
14665,
326,
10775,
6958,
1093,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
819,
67,
5662,
12,
2890,
16,
501,
4672,
309,
501,
3292,
1128,
3546,
422,
296,
266,
6145,
11,
471,
486,
501,
3292,
266,
6145,
67,
869,
3546,
30,
468,
11329,
30,
6107,
2076,
310,
1002,
13167,
24899,
2668,
6225,
1240,
358,
2027,
326,
729,
716,
296,
296,
14665,
326,
10775,
6958,
1093,
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
] |
nodelist.append(nodes.literal_block(data, data)) | literal_block = nodes.literal_block(data, data) literal_block.line = offset + 1 nodelist = [literal_block] | def literal_block(self): """Return a list of nodes.""" indented, indent, offset, blank_finish = \ self.state_machine.get_indented() while indented and not indented[-1].strip(): indented.trim_end() if not indented: return self.quoted_literal_block() nodelist = [] data = '\n'.join(indented) nodelist.append(nodes.literal_block(data, data)) if not blank_finish: nodelist.append(self.unindent_warning('Literal block')) return nodelist | e55bfbc04bc47e7ceb1130fcd5507ee1539002a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/e55bfbc04bc47e7ceb1130fcd5507ee1539002a3/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7158,
67,
2629,
12,
2890,
4672,
3536,
990,
279,
666,
434,
2199,
12123,
23786,
16,
3504,
16,
1384,
16,
7052,
67,
13749,
273,
521,
365,
18,
2019,
67,
9149,
18,
588,
67,
9355,
329,
1435,
1323,
23786,
471,
486,
23786,
18919,
21,
8009,
6406,
13332,
23786,
18,
5290,
67,
409,
1435,
309,
486,
23786,
30,
327,
365,
18,
15179,
67,
13107,
67,
2629,
1435,
30068,
273,
5378,
501,
273,
2337,
82,
10332,
5701,
12,
9355,
329,
13,
7158,
67,
2629,
273,
2199,
18,
13107,
67,
2629,
12,
892,
16,
501,
13,
7158,
67,
2629,
18,
1369,
273,
1384,
397,
404,
30068,
273,
306,
13107,
67,
2629,
65,
309,
486,
7052,
67,
13749,
30,
30068,
18,
6923,
12,
2890,
18,
318,
9355,
67,
8551,
2668,
6177,
1203,
26112,
327,
30068,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7158,
67,
2629,
12,
2890,
4672,
3536,
990,
279,
666,
434,
2199,
12123,
23786,
16,
3504,
16,
1384,
16,
7052,
67,
13749,
273,
521,
365,
18,
2019,
67,
9149,
18,
588,
67,
9355,
329,
1435,
1323,
23786,
471,
486,
23786,
18919,
21,
8009,
6406,
13332,
23786,
18,
5290,
67,
409,
1435,
309,
486,
23786,
30,
327,
365,
18,
15179,
67,
13107,
67,
2629,
1435,
30068,
273,
5378,
501,
273,
2337,
82,
10332,
5701,
12,
9355,
329,
13,
7158,
67,
2629,
273,
2199,
18,
13107,
67,
2629,
12,
892,
16,
501,
13,
7158,
67,
2629,
18,
1369,
273,
1384,
397,
404,
30068,
273,
306,
13107,
67,
2629,
65,
309,
486,
7052,
67,
13749,
30,
30068,
18,
6923,
12,
2890,
2
] |
result = wikiutil.normalize_pagename(test) | result = wikiutil.normalize_pagename(test, self.request.cfg) | def testUnderscoreTestCase(self): """ request: normalize pagename: underscore convert to spaces and normalized | 5371901b400ada61e194af162d1330dcd4fce34c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/5371901b400ada61e194af162d1330dcd4fce34c/test_wikiutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
31489,
4709,
2449,
12,
2890,
4672,
3536,
590,
30,
3883,
4262,
1069,
30,
13677,
1765,
358,
7292,
471,
5640,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
31489,
4709,
2449,
12,
2890,
4672,
3536,
590,
30,
3883,
4262,
1069,
30,
13677,
1765,
358,
7292,
471,
5640,
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
] |
_introspecting[oid] = routine_doc | def introspect_routine(routine): """Add API documentation information about the function C{routine} to C{routine_doc} (specializing it to C{Routine_doc}).""" oid = id(routine) if oid in _introspecting: return _introspecting[oid] # Create the RoutineDoc. routine_doc = RoutineDoc(pyval=routine, repr=value_repr(routine), canonical_name = get_canonical_name(routine)) _introspecting[oid] = routine_doc # Extract the underying function if isinstance(routine, MethodType): func = routine.im_func elif isinstance(routine, staticmethod): func = routine.__get__(0) elif isinstance(routine, classmethod): func = routine.__get__(0).im_func else: func = routine # Record the function's docstring. routine_doc.docstring = get_docstring(func) # Record the function's signature. if isinstance(func, FunctionType): (args, vararg, kwarg, defaults) = inspect.getargspec(func) # Add the arguments. routine_doc.posargs = args routine_doc.vararg = vararg routine_doc.kwarg = kwarg # Set default values for positional arguments. routine_doc.posarg_defaults = [None]*len(args) if defaults is not None: offset = len(args)-len(defaults) for i in range(len(defaults)): default_val = introspect_docs(defaults[i]) routine_doc.posarg_defaults[i+offset] = default_val # If it's a bound method, then strip off the first argument. if isinstance(routine, MethodType) and routine.im_self is not None: routine_doc.posargs = routine_doc.posargs[1:] routine_doc.posarg_defaults = routine_doc.posarg_defaults[1:] else: # [XX] I should probably use UNKNOWN here?? routine_doc.posargs = ['...'] routine_doc.posarg_defaults = [None] routine_doc.kwarg = None routine_doc.vararg = None # Change type, if appropriate. if isinstance(routine, staticmethod): routine_doc.specialize_to(StaticMethodDoc) if isinstance(routine, classmethod): routine_doc.specialize_to(ClassMethodDoc) return routine_doc | 8306498614e7db9ddd2c5e78aa700eded3f33a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8306498614e7db9ddd2c5e78aa700eded3f33a2e/docintrospecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
22640,
12,
22640,
4672,
3536,
986,
1491,
7323,
1779,
2973,
326,
445,
385,
95,
22640,
97,
358,
385,
95,
22640,
67,
2434,
97,
261,
9371,
6894,
518,
358,
385,
95,
4583,
558,
67,
2434,
6792,
12123,
225,
7764,
273,
612,
12,
22640,
13,
309,
7764,
316,
389,
474,
26170,
310,
30,
327,
389,
474,
26170,
310,
63,
839,
65,
225,
468,
1788,
326,
7271,
558,
1759,
18,
12245,
67,
2434,
273,
7271,
558,
1759,
12,
2074,
1125,
33,
22640,
16,
8480,
33,
1132,
67,
12715,
12,
22640,
3631,
7378,
67,
529,
273,
336,
67,
18288,
67,
529,
12,
22640,
3719,
225,
468,
8152,
326,
22927,
627,
310,
445,
309,
1549,
12,
22640,
16,
2985,
559,
4672,
1326,
273,
12245,
18,
381,
67,
644,
1327,
1549,
12,
22640,
16,
760,
2039,
4672,
1326,
273,
12245,
16186,
588,
972,
12,
20,
13,
1327,
1549,
12,
22640,
16,
667,
2039,
4672,
1326,
273,
12245,
16186,
588,
972,
12,
20,
2934,
381,
67,
644,
469,
30,
1326,
273,
12245,
225,
468,
5059,
326,
445,
1807,
14525,
18,
12245,
67,
2434,
18,
24675,
273,
336,
67,
24675,
12,
644,
13,
225,
468,
5059,
326,
445,
1807,
3372,
18,
309,
1549,
12,
644,
16,
4284,
559,
4672,
261,
1968,
16,
569,
3175,
16,
19554,
16,
3467,
13,
273,
5334,
18,
588,
23172,
12,
644,
13,
225,
468,
1436,
326,
1775,
18,
12245,
67,
2434,
18,
917,
1968,
273,
833,
12245,
67,
2434,
18,
24823,
273,
569,
3175,
12245,
67,
2434,
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,
30165,
67,
22640,
12,
22640,
4672,
3536,
986,
1491,
7323,
1779,
2973,
326,
445,
385,
95,
22640,
97,
358,
385,
95,
22640,
67,
2434,
97,
261,
9371,
6894,
518,
358,
385,
95,
4583,
558,
67,
2434,
6792,
12123,
225,
7764,
273,
612,
12,
22640,
13,
309,
7764,
316,
389,
474,
26170,
310,
30,
327,
389,
474,
26170,
310,
63,
839,
65,
225,
468,
1788,
326,
7271,
558,
1759,
18,
12245,
67,
2434,
273,
7271,
558,
1759,
12,
2074,
1125,
33,
22640,
16,
8480,
33,
1132,
67,
12715,
12,
22640,
3631,
7378,
67,
529,
273,
336,
67,
18288,
67,
529,
12,
22640,
3719,
225,
468,
8152,
326,
22927,
627,
310,
445,
309,
1549,
12,
22640,
16,
2985,
559,
4672,
2
] |
|
('TCP', (80, self.f), {'interface':'', 'backlog':5})) | ('TCP', (80, self.f), {'interface':'', 'backlog':50})) | def testAllKeywords(self): self.assertEqual(strports.parse('port=80', self.f), ('TCP', (80, self.f), {'interface':'', 'backlog':5})) | 67b1d6b02f0fa3aad8d8e3b6f4a7ba811c22853e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/67b1d6b02f0fa3aad8d8e3b6f4a7ba811c22853e/test_strports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1595,
14149,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
701,
4363,
18,
2670,
2668,
655,
33,
3672,
2187,
365,
18,
74,
3631,
7707,
13891,
2187,
261,
3672,
16,
365,
18,
74,
3631,
13666,
5831,
11,
2497,
2187,
296,
823,
1330,
4278,
25,
31700,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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3631,
13666,
5831,
11,
2497,
2187,
296,
823,
1330,
4278,
25,
31700,
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
] |
'base_url': urlparse.urlunsplit((scheme, host, '', '', '')).rstrip('/') + '/', | 'base_url': base_url, | def open(self, *args, **kwargs): """Takes the same arguments as the :class:`EnvironBuilder` class with some additions: You can provide a :class:`EnvironBuilder` or a WSGI environment as only argument instead of the :class:`EnvironBuilder` arguments and two optional keyword arguments (`as_tuple`, `buffered`) that change the type of the return value or the way the application is executed. | ee081ac62ddf6504d206ff518279243d6899744b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14437/ee081ac62ddf6504d206ff518279243d6899744b/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11524,
326,
1967,
1775,
487,
326,
294,
1106,
28288,
28248,
1263,
68,
667,
598,
2690,
26260,
30,
225,
4554,
848,
5615,
279,
294,
1106,
28288,
28248,
1263,
68,
578,
279,
7649,
13797,
3330,
487,
1338,
1237,
3560,
434,
326,
294,
1106,
28288,
28248,
1263,
68,
1775,
471,
2795,
3129,
4932,
1775,
21863,
345,
67,
8052,
9191,
1375,
26385,
24065,
716,
2549,
326,
618,
434,
326,
327,
460,
578,
326,
4031,
326,
2521,
353,
7120,
18,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11524,
326,
1967,
1775,
487,
326,
294,
1106,
28288,
28248,
1263,
68,
667,
598,
2690,
26260,
30,
225,
4554,
848,
5615,
279,
294,
1106,
28288,
28248,
1263,
68,
578,
279,
7649,
13797,
3330,
487,
1338,
1237,
3560,
434,
326,
294,
1106,
28288,
28248,
1263,
68,
1775,
471,
2795,
3129,
4932,
1775,
21863,
345,
67,
8052,
9191,
1375,
26385,
24065,
716,
2549,
326,
618,
434,
326,
327,
460,
578,
326,
4031,
326,
2521,
353,
7120,
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
] |
self.push("250 OK\r\n") | self.push("354 Enter data ending with a . on a line by itself\r\n") | def onData(self, command, args): self.inData = True if self.train_as_ham == True or self.train_as_spam == True: self.push("250 OK\r\n") return None rv = command for arg in args: rv += ' ' + arg return rv | b130ca2c1f692ee7a831ee6420d6a35372d8b1f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b130ca2c1f692ee7a831ee6420d6a35372d8b1f9/smtpproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
751,
12,
2890,
16,
1296,
16,
833,
4672,
365,
18,
267,
751,
273,
1053,
309,
365,
18,
9754,
67,
345,
67,
31698,
422,
1053,
578,
365,
18,
9754,
67,
345,
67,
1752,
301,
422,
1053,
30,
365,
18,
6206,
2932,
4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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
751,
12,
2890,
16,
1296,
16,
833,
4672,
365,
18,
267,
751,
273,
1053,
309,
365,
18,
9754,
67,
345,
67,
31698,
422,
1053,
578,
365,
18,
9754,
67,
345,
67,
1752,
301,
422,
1053,
30,
365,
18,
6206,
2932,
4763,
24,
15439,
501,
11463,
598,
279,
263,
603,
279,
980,
635,
6174,
64,
86,
64,
82,
7923,
327,
599,
5633,
273,
1296,
364,
1501,
316,
833,
30,
5633,
1011,
296,
296,
397,
1501,
327,
5633,
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
] |
def print_control_parameters(self, simulatorCP, optimiserCP) : """Print all the optimisation procedure control parameters. The control parameters are printed as comments. """ self.nf.write(str(simulatorCP)) self.nf.write(str(optimiserCP)) self.tf.write(str(simulatorCP)) self.tf.write(str(optimiserCP)) | def print_control_parameters(self, simulatorCP, optimiserCP) : """Print all the optimisation procedure control parameters. | b33dea50d1aabad247006bfd73e621d2e0f236fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1770/b33dea50d1aabad247006bfd73e621d2e0f236fd/randomLocalSearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
7098,
67,
3977,
12,
2890,
16,
3142,
11775,
4258,
16,
5213,
15914,
4258,
13,
294,
3536,
5108,
777,
326,
5213,
10742,
12131,
3325,
1472,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
67,
7098,
67,
3977,
12,
2890,
16,
3142,
11775,
4258,
16,
5213,
15914,
4258,
13,
294,
3536,
5108,
777,
326,
5213,
10742,
12131,
3325,
1472,
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
] |
|
output = self.proc.read(timeout) output = output.replace(chr(0), '') if output == '': return if not update_buffer: return output logging.debug('read *********************************************************************') debug_profile_start = time.time() chunks = CONQUE_SEQ_REGEX.split(output) logging.debug('ouput chunking took ' + str((time.time() - debug_profile_start) * 1000) + ' ms') logging.debug(str(chunks)) debug_profile_start = time.time() if len(chunks) == 1: logging.debug('short circuit') self.plain_text(chunks[0]) else: for s in chunks: if s == '': continue logging.debug('chgs ' + str(self.color_changes)) logging.debug('at line ' + str(self.l) + ' column ' + str(self.c)) if CONQUE_SEQ_REGEX_CTL.match(s[0]): logging.debug('control match') nr = ord(s[0]) if nr in CONQUE_CTL: getattr(self, 'ctl_' + CONQUE_CTL[nr])() | output = '' try: output = self.proc.read(timeout) output = output.replace(chr(0), '') if output == '': return if not update_buffer: return output logging.debug('read *********************************************************************') debug_profile_start = time.time() chunks = CONQUE_SEQ_REGEX.split(output) logging.debug('ouput chunking took ' + str((time.time() - debug_profile_start) * 1000) + ' ms') logging.debug(str(chunks)) debug_profile_start = time.time() if len(chunks) == 1: logging.debug('short circuit') self.plain_text(chunks[0]) else: for s in chunks: if s == '': continue logging.debug('chgs ' + str(self.color_changes)) logging.debug('at line ' + str(self.l) + ' column ' + str(self.c)) if CONQUE_SEQ_REGEX_CTL.match(s[0]): logging.debug('control match') nr = ord(s[0]) if nr in CONQUE_CTL: getattr(self, 'ctl_' + CONQUE_CTL[nr])() else: logging.info('escape not found for ' + str(s)) pass elif CONQUE_SEQ_REGEX_CSI.match(s): logging.debug('csi match') if s[-1] in CONQUE_ESCAPE: csi = self.parse_csi(s[2:]) logging.debug(str(csi)) getattr(self, 'csi_' + CONQUE_ESCAPE[s[-1]])(csi) else: logging.info('escape not found for ' + str(s)) pass elif CONQUE_SEQ_REGEX_TITLE.match(s): logging.debug('title match') self.change_title(s[2], s[4:-1]) elif CONQUE_SEQ_REGEX_HASH.match(s): logging.debug('hash match') if s[-1] in CONQUE_ESCAPE_HASH: getattr(self, 'hash_' + CONQUE_ESCAPE_HASH[s[-1]])() else: logging.info('escape not found for ' + str(s)) pass elif CONQUE_SEQ_REGEX_CHAR.match(s): logging.debug('char match') if s[-1] in CONQUE_ESCAPE_CHARSET: getattr(self, 'charset_' + CONQUE_ESCAPE_CHARSET[s[-1]])() else: logging.info('escape not found for ' + str(s)) pass elif CONQUE_SEQ_REGEX_ESC.match(s): logging.debug('escape match') if s[-1] in CONQUE_ESCAPE_PLAIN: getattr(self, 'esc_' + CONQUE_ESCAPE_PLAIN[s[-1]])() else: logging.info('escape not found for ' + str(s)) pass | def read(self, timeout=1, set_cursor=True, return_output=False, update_buffer=True): # {{{ # read from subprocess output = self.proc.read(timeout) # and strip null chars output = output.replace(chr(0), '') | c3a8ddb8ecf948c8319c57662c32f39da3a1b603 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8972/c3a8ddb8ecf948c8319c57662c32f39da3a1b603/conque.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2021,
33,
21,
16,
444,
67,
9216,
33,
5510,
16,
327,
67,
2844,
33,
8381,
16,
1089,
67,
4106,
33,
5510,
4672,
468,
10179,
95,
468,
855,
628,
6652,
876,
273,
365,
18,
9381,
18,
896,
12,
4538,
13,
468,
471,
2569,
446,
5230,
876,
273,
876,
18,
2079,
12,
15182,
12,
20,
3631,
28707,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2021,
33,
21,
16,
444,
67,
9216,
33,
5510,
16,
327,
67,
2844,
33,
8381,
16,
1089,
67,
4106,
33,
5510,
4672,
468,
10179,
95,
468,
855,
628,
6652,
876,
273,
365,
18,
9381,
18,
896,
12,
4538,
13,
468,
471,
2569,
446,
5230,
876,
273,
876,
18,
2079,
12,
15182,
12,
20,
3631,
28707,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else: Output(" self.prefix, self.typename) | def generate(self): # XXX This should use long strings and %(varname)s substitution! | a54aa7d6b2b6af5d0207815044cd26f6dbd35b79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a54aa7d6b2b6af5d0207815044cd26f6dbd35b79/bgenObjectDefinition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
468,
11329,
1220,
1410,
999,
1525,
2064,
471,
8975,
1401,
529,
13,
87,
12785,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
468,
11329,
1220,
1410,
999,
1525,
2064,
471,
8975,
1401,
529,
13,
87,
12785,
5,
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
] |
|
return """ drwxr-xr-x 2 root wheel 1024 1 sty 14:59 bin/\r | return """drwxr-xr-x 2 root wheel 1024 1 sty 14:59 bin/\r | def ls(shell, args): if shell.cwd == '/': return """ | b72e321c09bf83de3ea500686e67aaff3b09ea6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2252/b72e321c09bf83de3ea500686e67aaff3b09ea6c/shell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7180,
12,
10304,
16,
833,
4672,
309,
5972,
18,
11089,
422,
2023,
30,
327,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7180,
12,
10304,
16,
833,
4672,
309,
5972,
18,
11089,
422,
2023,
30,
327,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
suffixes_map). | suffix_map). | def guess_type(url): """Guess the type of a file based on its URL. Return value is a tuple (type, encoding) where type is None if the type can't be guessed (no or unknown suffix) or a string of the form type/subtype, usable for a MIME Content-type header; and encoding is None for no encoding or the name of the program used to encode (e.g. compress or gzip). The mappings are table driven. Encoding suffixes are case sensitive; type suffixes are first tried case sensitive, then case insensitive. The suffixes .tgz, .taz and .tz (case sensitive!) are all mapped to ".tar.gz". (This is table-driven too, using the dictionary suffixes_map). """ if not inited: init() base, ext = posixpath.splitext(url) while suffix_map.has_key(ext): base, ext = posixpath.splitext(base + suffix_map[ext]) if encodings_map.has_key(ext): encoding = encodings_map[ext] base, ext = posixpath.splitext(base) else: encoding = None if types_map.has_key(ext): return types_map[ext], encoding elif types_map.has_key(string.lower(ext)): return types_map[string.lower(ext)], encoding else: return None, encoding | 3130b7a2a97dbb322342b248cb9d9fae5b89b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3130b7a2a97dbb322342b248cb9d9fae5b89b8f5/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
723,
12,
718,
4672,
3536,
15977,
326,
618,
434,
279,
585,
2511,
603,
2097,
1976,
18,
225,
2000,
460,
353,
279,
3193,
261,
723,
16,
2688,
13,
1625,
618,
353,
599,
309,
326,
618,
848,
1404,
506,
3058,
281,
730,
261,
2135,
578,
5917,
3758,
13,
578,
279,
533,
434,
326,
646,
618,
19,
21974,
16,
15603,
364,
279,
13195,
3697,
17,
723,
1446,
31,
471,
2688,
353,
599,
364,
1158,
2688,
578,
326,
508,
434,
326,
5402,
1399,
358,
2017,
261,
73,
18,
75,
18,
8099,
578,
10331,
2934,
225,
1021,
7990,
854,
1014,
5081,
837,
18,
225,
13400,
18333,
854,
648,
16692,
31,
618,
18333,
854,
1122,
12928,
648,
16692,
16,
1508,
648,
17904,
18,
225,
1021,
18333,
263,
88,
9764,
16,
263,
88,
1561,
471,
263,
12994,
261,
3593,
16692,
24949,
854,
777,
5525,
358,
3552,
11718,
18,
9764,
9654,
225,
261,
2503,
353,
1014,
17,
3069,
837,
4885,
16,
1450,
326,
3880,
3758,
67,
1458,
2934,
225,
3536,
309,
486,
1208,
329,
30,
1208,
1435,
1026,
16,
1110,
273,
16366,
803,
18,
4939,
408,
12,
718,
13,
1323,
3758,
67,
1458,
18,
5332,
67,
856,
12,
408,
4672,
1026,
16,
1110,
273,
16366,
803,
18,
4939,
408,
12,
1969,
397,
3758,
67,
1458,
63,
408,
5717,
309,
24118,
67,
1458,
18,
5332,
67,
856,
12,
408,
4672,
2688,
273,
24118,
67,
1458,
63,
408,
65,
1026,
16,
1110,
273,
16366,
803,
18,
4939,
408,
12,
1969,
13,
469,
30,
2688,
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,
7274,
67,
723,
12,
718,
4672,
3536,
15977,
326,
618,
434,
279,
585,
2511,
603,
2097,
1976,
18,
225,
2000,
460,
353,
279,
3193,
261,
723,
16,
2688,
13,
1625,
618,
353,
599,
309,
326,
618,
848,
1404,
506,
3058,
281,
730,
261,
2135,
578,
5917,
3758,
13,
578,
279,
533,
434,
326,
646,
618,
19,
21974,
16,
15603,
364,
279,
13195,
3697,
17,
723,
1446,
31,
471,
2688,
353,
599,
364,
1158,
2688,
578,
326,
508,
434,
326,
5402,
1399,
358,
2017,
261,
73,
18,
75,
18,
8099,
578,
10331,
2934,
225,
1021,
7990,
854,
1014,
5081,
837,
18,
225,
13400,
18333,
854,
648,
16692,
31,
618,
18333,
854,
1122,
12928,
648,
16692,
16,
1508,
648,
17904,
2
] |
svnlook_cmd = "svnlook" | dprint ("process_main() start \n") svnlook_cmd = "/usr/bin/svnlook" | def process_main(): svnlook_cmd = "svnlook" logfile = '' revision = '' repository = '' argc = len (sys.argv) i = 1 while i < argc: arg = sys.argv[i] i = i + 1 if arg == '-rev' : revision = sys.argv[i] i = i + 1 elif arg == '-svnrepo' : repository = sys.argv[i] i = i + 1 elif arg == '-l' : logfile = sys.argv[i] i = i + 1 #else : #nop #print "? Ignored : [%s] ?" %(arg) if logfile == '': sys.stderr.write ("You must specify at least the logfile\n") sys.stderr.write (usage ()) sys.exit (2) sys.stderr.write ("You must specify at least the logfile\n") ### Let's get the message content (from CVS) text = '' #date = strftime ("%A %B %d, %Y @ %H:%M:%S", localtime(time())) date = output_of ("%s date %s -r %s" % (svnlook_cmd, repository, revision)) text_dirchanged = output_of ("%s dirs-changed %s -r %s" %(svnlook_cmd, repository, revision)) text_changed = output_of ("%s changed %s -r %s" %(svnlook_cmd, repository, revision)) text_logs = output_of ("%s log %s -r %s" %(svnlook_cmd, repository, revision)) login = output_of ("%s author %s -r %s" % (svnlook_cmd, repository, revision)) if len (login) == 0: login = os.environ['USER'] + "?" text = "%s\n" % (text) ### Build the log text text = "------------------------------------------------------------------------\n" text = "%sDate:\t%s\n" % (text, date) text = "%sAuthor:\t%s\n" % (text, login) text = "%sRevision:\t%s\n" % (text, revision) text = "%sDirChanged:%d\n%s\n" % (text, 1 + string.count (text_dirchanged,"\n"), text_dirchanged) text = "%sChanged:%d\n%s\n" % (text, 1 + string.count (text_changed,"\n"), text_changed) text = "%sLogs:%d\n%s\n" % (text, string.count (text_logs, "\n"), text_logs) text = "%s\n" % (text) ### Save the log text in the log file z_logfile = open (logfile, 'a'); z_logfile.write (text) z_logfile.close (); sys.exit(); | 9383527daf5bf4c90a7b329dc9ac5fa4c7a98820 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2574/9383527daf5bf4c90a7b329dc9ac5fa4c7a98820/svn_log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
5254,
13332,
302,
1188,
7566,
2567,
67,
5254,
1435,
787,
521,
82,
7923,
5893,
82,
7330,
67,
4172,
273,
2206,
13640,
19,
4757,
19,
31505,
7330,
6,
15204,
273,
875,
6350,
273,
875,
3352,
273,
875,
1501,
71,
273,
562,
261,
9499,
18,
19485,
13,
277,
273,
404,
1323,
277,
411,
1501,
71,
30,
1501,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
309,
1501,
422,
2400,
9083,
11,
294,
6350,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
1327,
1501,
422,
2400,
31505,
7422,
11,
294,
3352,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
1327,
1501,
422,
2400,
80,
11,
294,
15204,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
468,
12107,
294,
468,
82,
556,
468,
1188,
18101,
8049,
72,
294,
9799,
87,
65,
17921,
8975,
3175,
13,
225,
309,
15204,
422,
875,
30,
2589,
18,
11241,
18,
2626,
7566,
6225,
1297,
4800,
622,
4520,
326,
15204,
64,
82,
7923,
2589,
18,
11241,
18,
2626,
261,
9167,
1832,
13,
2589,
18,
8593,
261,
22,
13,
2589,
18,
11241,
18,
2626,
7566,
6225,
1297,
4800,
622,
4520,
326,
15204,
64,
82,
7923,
225,
11849,
10559,
1807,
336,
326,
883,
913,
261,
2080,
385,
14640,
13,
977,
273,
875,
225,
468,
712,
273,
10405,
7566,
9,
37,
738,
38,
738,
72,
16,
738,
61,
632,
738,
44,
5319,
49,
5319,
55,
3113,
1191,
957,
12,
957,
1435,
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,
1207,
67,
5254,
13332,
302,
1188,
7566,
2567,
67,
5254,
1435,
787,
521,
82,
7923,
5893,
82,
7330,
67,
4172,
273,
2206,
13640,
19,
4757,
19,
31505,
7330,
6,
15204,
273,
875,
6350,
273,
875,
3352,
273,
875,
1501,
71,
273,
562,
261,
9499,
18,
19485,
13,
277,
273,
404,
1323,
277,
411,
1501,
71,
30,
1501,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
309,
1501,
422,
2400,
9083,
11,
294,
6350,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
1327,
1501,
422,
2400,
31505,
7422,
11,
294,
3352,
273,
2589,
18,
19485,
63,
77,
65,
277,
273,
277,
397,
404,
1327,
1501,
422,
2400,
80,
11,
294,
15204,
2
] |
self.assertRaises(OverflowError, complex.__eq__, 1+1j, 1<<10000) | self.assertIs(complex.__eq__(1+1j, 1<<10000), False) | def test_richcompare(self): self.assertRaises(OverflowError, complex.__eq__, 1+1j, 1<<10000) self.assertIs(complex.__lt__(1+1j, None), NotImplemented) self.assertIs(complex.__eq__(1+1j, 1+1j), True) self.assertIs(complex.__eq__(1+1j, 2+2j), False) self.assertIs(complex.__ne__(1+1j, 1+1j), False) self.assertIs(complex.__ne__(1+1j, 2+2j), True) self.assertIs(complex.__lt__(1+1j, 2+2j), NotImplemented) self.assertIs(complex.__le__(1+1j, 2+2j), NotImplemented) self.assertIs(complex.__gt__(1+1j, 2+2j), NotImplemented) self.assertIs(complex.__ge__(1+1j, 2+2j), NotImplemented) self.assertRaises(TypeError, operator.lt, 1+1j, 2+2j) self.assertRaises(TypeError, operator.le, 1+1j, 2+2j) self.assertRaises(TypeError, operator.gt, 1+1j, 2+2j) self.assertRaises(TypeError, operator.ge, 1+1j, 2+2j) self.assertIs(operator.eq(1+1j, 1+1j), True) self.assertIs(operator.eq(1+1j, 2+2j), False) self.assertIs(operator.ne(1+1j, 1+1j), False) self.assertIs(operator.ne(1+1j, 2+2j), True) | c3828e6592ac8638d7f022554faa858f414c2b21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/c3828e6592ac8638d7f022554faa858f414c2b21/test_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12761,
9877,
12,
2890,
4672,
365,
18,
11231,
2520,
12,
14259,
16186,
11253,
972,
12,
21,
15,
21,
78,
16,
404,
17685,
23899,
3631,
1083,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
5618,
972,
12,
21,
15,
21,
78,
16,
599,
3631,
10051,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
11253,
972,
12,
21,
15,
21,
78,
16,
404,
15,
21,
78,
3631,
1053,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
11253,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
1083,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
4644,
972,
12,
21,
15,
21,
78,
16,
404,
15,
21,
78,
3631,
1083,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
4644,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
1053,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
5618,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
10051,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
298,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
10051,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
4521,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
10051,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
908,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
10051,
13,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
3726,
18,
5618,
16,
404,
15,
21,
78,
16,
576,
15,
22,
78,
13,
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,
1842,
67,
12761,
9877,
12,
2890,
4672,
365,
18,
11231,
2520,
12,
14259,
16186,
11253,
972,
12,
21,
15,
21,
78,
16,
404,
17685,
23899,
3631,
1083,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
5618,
972,
12,
21,
15,
21,
78,
16,
599,
3631,
10051,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
11253,
972,
12,
21,
15,
21,
78,
16,
404,
15,
21,
78,
3631,
1053,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
11253,
972,
12,
21,
15,
21,
78,
16,
576,
15,
22,
78,
3631,
1083,
13,
365,
18,
11231,
2520,
12,
14259,
16186,
4644,
972,
12,
21,
15,
21,
78,
16,
404,
15,
21,
78,
3631,
1083,
13,
365,
18,
11231,
2520,
12,
2
] |
for res in result['Value']: site = res[0] count = res[1] if site: if not summary_dict.has_key(site): summary_dict[site] = {} summary_dict[site][st] = int(count) | for res in result['Value']: site = res[0] count = res[1] if site: if not summary_dict.has_key(site): summary_dict[site] = {} summary_dict[site][st] = int(count) | def getLCGPilotSummary(self,startdate='',enddate=''): """ Get summary of the pilot jobs status by site """ st_list = ['Aborted','Running','Done','Submitted','Ready','Scheduled','Waiting'] | bdfa23e095823805a4f6a3e95f6692e9c0b8786e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/bdfa23e095823805a4f6a3e95f6692e9c0b8786e/PilotAgentsDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9014,
39,
9681,
22797,
4733,
12,
2890,
16,
1937,
712,
2218,
2187,
409,
712,
2218,
11,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
6550,
1267,
635,
2834,
3536,
384,
67,
1098,
273,
10228,
27821,
17023,
7051,
17023,
7387,
17023,
28882,
17023,
8367,
17023,
10660,
17023,
15946,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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585,
326,
22398,
316,
326,
981,
30,
1652,
9014,
39,
9681,
22797,
4733,
12,
2890,
16,
1937,
712,
2218,
2187,
409,
712,
2218,
11,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
6550,
1267,
635,
2834,
3536,
384,
67,
1098,
273,
10228,
27821,
17023,
7051,
17023,
7387,
17023,
28882,
17023,
8367,
17023,
10660,
17023,
15946,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def translate(self, domain, msgid, mapping=None, default=None): | def translate(self, msgid, domain=None, mapping=None, default=None): | def evaluateMacro(self, expr): macro = Context.evaluateMacro(self, expr) macro = removeAllProxies(macro) return macro | bc1908020050391c5f2e6d27e23cbd13f73c1fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9525/bc1908020050391c5f2e6d27e23cbd13f73c1fe8/engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
17392,
12,
2890,
16,
3065,
4672,
11522,
273,
1772,
18,
21024,
17392,
12,
2890,
16,
3065,
13,
11522,
273,
12787,
21488,
12,
26448,
13,
327,
11522,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
17392,
12,
2890,
16,
3065,
4672,
11522,
273,
1772,
18,
21024,
17392,
12,
2890,
16,
3065,
13,
11522,
273,
12787,
21488,
12,
26448,
13,
327,
11522,
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
] |
storesemi = semitrans semitrans = {} child = node.children while child: if isFinalNode(child): PlaceHolder += 1 newmsg = doSerialize(child) result = '<placeholder-%d/>' % (PlaceHolder) if mode=='merge': semitrans[PlaceHolder] = getTranslation(newmsg, isSpacePreserveNode(node)) else: result = doSerialize(child) outtxt += result child = child.next if final: outtxt = processFinalTag(node, outtxt) PlaceHolder = storeholder semitrans = storesemi return '<%s>%s</%s>' % (startTagForNode(node), outtxt, node.name) else: if worthOutputting(node): if mode == 'merge': replaceNodeContentsWithText(node,getTranslation(outtxt, isSpacePreserveNode(node))) | submsgs = {} child = node.children while child: if isFinalNode(child): PlaceHolder += 1 (starttag, submsg, endtag) = processElementTag(child) outtxt += '<placeholder-%d/>' % (PlaceHolder) if mode=='merge': submsgs[PlaceHolder] = (starttag, getTranslation(submsg, isSpacePreserveNode(node)), endtag) | def processElementTag(node): """Process node with node.type == 'element'.""" if node.type == 'element': global PlaceHolder global semitrans final = isFinalNode(node) outtxt = '' if final: storeholder = PlaceHolder PlaceHolder = 0 storesemi = semitrans semitrans = {} child = node.children while child: if isFinalNode(child): PlaceHolder += 1 newmsg = doSerialize(child) result = '<placeholder-%d/>' % (PlaceHolder) if mode=='merge': semitrans[PlaceHolder] = getTranslation(newmsg, isSpacePreserveNode(node)) else: result = doSerialize(child) outtxt += result child = child.next if final: outtxt = processFinalTag(node, outtxt) PlaceHolder = storeholder semitrans = storesemi return '<%s>%s</%s>' % (startTagForNode(node), outtxt, node.name) else: if worthOutputting(node): if mode == 'merge': replaceNodeContentsWithText(node,getTranslation(outtxt, isSpacePreserveNode(node))) else: msg.outputMessage(outtxt, node.lineNo(), getCommentForNode(node), isSpacePreserveNode(node)) return '<%s>%s</%s>' % (startTagForNode(node), outtxt, node.name) else: raise Exception("You must pass node with node.type=='element'.") | 7df7f38ebfe0a2ba10334c996b94f4d81999bf11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/7df7f38ebfe0a2ba10334c996b94f4d81999bf11/xml2po.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1046,
1805,
12,
2159,
4672,
3536,
2227,
756,
598,
756,
18,
723,
422,
296,
2956,
11,
12123,
309,
756,
18,
723,
422,
296,
2956,
4278,
2552,
13022,
6064,
2552,
6111,
305,
28001,
727,
273,
29200,
907,
12,
2159,
13,
596,
5830,
273,
875,
309,
727,
30,
1707,
4505,
273,
13022,
6064,
13022,
6064,
273,
374,
720,
27439,
273,
2618,
225,
1151,
273,
756,
18,
5906,
1323,
1151,
30,
309,
29200,
907,
12,
3624,
4672,
13022,
6064,
1011,
404,
261,
1937,
2692,
16,
720,
3576,
16,
679,
2692,
13,
273,
1207,
1046,
1805,
12,
3624,
13,
596,
5830,
1011,
2368,
12988,
6456,
72,
18280,
738,
261,
6029,
6064,
13,
309,
1965,
18920,
2702,
4278,
720,
27439,
63,
6029,
6064,
65,
273,
261,
1937,
2692,
16,
23316,
12,
1717,
3576,
16,
353,
3819,
12236,
6527,
907,
12,
2159,
13,
3631,
679,
2692,
13,
469,
30,
1234,
18,
2844,
1079,
12,
659,
5830,
16,
756,
18,
1369,
2279,
9334,
25524,
31058,
12,
2159,
3631,
353,
3819,
12236,
6527,
907,
12,
2159,
3719,
327,
2368,
9,
87,
9822,
87,
1757,
9,
87,
1870,
738,
261,
1937,
1805,
31058,
12,
2159,
3631,
596,
5830,
16,
756,
18,
529,
13,
469,
30,
1002,
1185,
2932,
6225,
1297,
1342,
756,
598,
756,
18,
723,
18920,
2956,
14550,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1046,
1805,
12,
2159,
4672,
3536,
2227,
756,
598,
756,
18,
723,
422,
296,
2956,
11,
12123,
309,
756,
18,
723,
422,
296,
2956,
4278,
2552,
13022,
6064,
2552,
6111,
305,
28001,
727,
273,
29200,
907,
12,
2159,
13,
596,
5830,
273,
875,
309,
727,
30,
1707,
4505,
273,
13022,
6064,
13022,
6064,
273,
374,
720,
27439,
273,
2618,
225,
1151,
273,
756,
18,
5906,
1323,
1151,
30,
309,
29200,
907,
12,
3624,
4672,
13022,
6064,
1011,
404,
261,
1937,
2692,
16,
720,
3576,
16,
679,
2692,
13,
273,
1207,
1046,
1805,
12,
3624,
13,
596,
5830,
1011,
2368,
12988,
6456,
72,
18280,
738,
261,
6029,
6064,
13,
309,
1965,
18920,
2702,
4278,
720,
27439,
63,
6029,
2
] |
tr_cls = TranslationModelAdmin | tr_cls = type("%s.Translation" % cls.__name__, (TranslationModelAdmin,), {}) | def get_translation_modeladmin(cls, model): if hasattr(cls, 'Translation'): tr_cls = cls.Translation if not issubclass(tr_cls, TranslationModelAdmin): raise ValueError, ("%s.Translation must be a subclass " + " of multilingual.TranslationModelAdmin.") % cls.name else: tr_cls = TranslationModelAdmin tr_cls.model = model._meta.translation_model tr_cls.fk_name = 'master' tr_cls.extra = get_language_count() tr_cls.max_num = get_language_count() return tr_cls | e4c60cb253faaec824c60c5a528434b5b1ec2a09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12035/e4c60cb253faaec824c60c5a528434b5b1ec2a09/translation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10173,
67,
2284,
3666,
12,
6429,
16,
938,
4672,
309,
3859,
12,
6429,
16,
296,
6717,
11,
4672,
433,
67,
6429,
273,
2028,
18,
6717,
309,
486,
14664,
12,
313,
67,
6429,
16,
17427,
1488,
4446,
4672,
1002,
2068,
16,
7566,
9,
87,
18,
6717,
1297,
506,
279,
10177,
315,
397,
315,
434,
1778,
25853,
18,
6717,
1488,
4446,
1199,
13,
738,
2028,
18,
529,
469,
30,
433,
67,
6429,
273,
618,
27188,
87,
18,
6717,
6,
738,
2028,
16186,
529,
972,
16,
261,
6717,
1488,
4446,
16,
3631,
2618,
13,
433,
67,
6429,
18,
2284,
273,
938,
6315,
3901,
18,
10173,
67,
2284,
433,
67,
6429,
18,
23120,
67,
529,
273,
296,
7525,
11,
433,
67,
6429,
18,
7763,
273,
336,
67,
4923,
67,
1883,
1435,
433,
67,
6429,
18,
1896,
67,
2107,
273,
336,
67,
4923,
67,
1883,
1435,
327,
433,
67,
6429,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10173,
67,
2284,
3666,
12,
6429,
16,
938,
4672,
309,
3859,
12,
6429,
16,
296,
6717,
11,
4672,
433,
67,
6429,
273,
2028,
18,
6717,
309,
486,
14664,
12,
313,
67,
6429,
16,
17427,
1488,
4446,
4672,
1002,
2068,
16,
7566,
9,
87,
18,
6717,
1297,
506,
279,
10177,
315,
397,
315,
434,
1778,
25853,
18,
6717,
1488,
4446,
1199,
13,
738,
2028,
18,
529,
469,
30,
433,
67,
6429,
273,
618,
27188,
87,
18,
6717,
6,
738,
2028,
16186,
529,
972,
16,
261,
6717,
1488,
4446,
16,
3631,
2618,
13,
433,
67,
6429,
18,
2284,
273,
938,
6315,
3901,
18,
10173,
67,
2284,
433,
67,
6429,
18,
23120,
67,
529,
273,
296,
7525,
11,
433,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.