rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
elif sym == 7:
|
elif enc == 7:
|
def convert_case(sym): """ return (lower, upper) for internal use. :note: direct port of http://cgit.freedesktop.org/xcb/util/tree/keysyms/keysyms.c#n361 """ lower = sym upper = sym enc = sym >> 8 if sym == 0: # latin1 if ((sym >= keysymdef.XK_A) and (sym <= keysymdef.XK_Z)): lower += (keysymdef.XK_a - keysymdef.XK_A) elif ((sym >= keysymdef.XK_a) and (sym <= keysymdef.XK_z)): upper -= (keysymdef.XK_a - keysymdef.XK_A) elif ((sym >= keysymdef.XK_Agrave) and (sym <= keysymdef.XK_Odiaeresis)): lower += (keysymdef.XK_agrave - keysymdef.XK_Agrave) elif ((sym >= keysymdef.XK_agrave) and (sym <= keysymdef.XK_odiaeresis)): upper -= (keysymdef.XK_agrave - keysymdef.XK_Agrave) elif ((sym >= keysymdef.XK_Ooblique) and (sym <= keysymdef.XK_Thorn)): lower += (keysymdef.XK_oslash - keysymdef.XK_Ooblique) elif ((sym >= keysymdef.XK_oslash) and (sym <= keysymdef.XK_thorn)): upper -= (keysymdef.XK_oslash - keysymdef.XK_Ooblique) elif sym == 1: # latin2 # Assume the KeySym is a legal value (ignore discontinuities) if (sym == keysymdef.XK_Aogonek): lower = keysymdef.XK_aogonek elif (sym >= keysymdef.XK_Lstroke and sym <= keysymdef.XK_Sacute): lower += (keysymdef.XK_lstroke - keysymdef.XK_Lstroke) elif (sym >= keysymdef.XK_Scaron and sym <= keysymdef.XK_Zacute): lower += (keysymdef.XK_scaron - keysymdef.XK_Scaron) elif (sym >= keysymdef.XK_Zcaron and sym <= keysymdef.XK_Zabovedot): lower += (keysymdef.XK_zcaron - keysymdef.XK_Zcaron) elif (sym == keysymdef.XK_aogonek): upper = keysymdef.XK_Aogonek elif (sym >= keysymdef.XK_lstroke and sym <= keysymdef.XK_sacute): upper -= (keysymdef.XK_lstroke - keysymdef.XK_Lstroke) elif (sym >= keysymdef.XK_scaron and sym <= keysymdef.XK_zacute): upper -= (keysymdef.XK_scaron - keysymdef.XK_Scaron) elif (sym >= keysymdef.XK_zcaron and sym <= keysymdef.XK_zabovedot): upper -= (keysymdef.XK_zcaron - keysymdef.XK_Zcaron) elif (sym >= keysymdef.XK_Racute and sym <= keysymdef.XK_Tcedilla): lower += (keysymdef.XK_racute - keysymdef.XK_Racute) elif (sym >= keysymdef.XK_racute and sym <= keysymdef.XK_tcedilla): upper -= (keysymdef.XK_racute - keysymdef.XK_Racute) elif sym == 2: # latin3 # Assume the KeySym is a legal value (ignore discontinuities) if (sym >= keysymdef.XK_Hstroke and sym <= keysymdef.XK_Hcircumflex): lower += (keysymdef.XK_hstroke - keysymdef.XK_Hstroke) elif (sym >= keysymdef.XK_Gbreve and sym <= keysymdef.XK_Jcircumflex): lower += (keysymdef.XK_gbreve - keysymdef.XK_Gbreve) elif (sym >= keysymdef.XK_hstroke and sym <= keysymdef.XK_hcircumflex): upper -= (keysymdef.XK_hstroke - keysymdef.XK_Hstroke) elif (sym >= keysymdef.XK_gbreve and sym <= keysymdef.XK_jcircumflex): upper -= (keysymdef.XK_gbreve - keysymdef.XK_Gbreve) elif (sym >= keysymdef.XK_Cabovedot and sym <= keysymdef.XK_Scircumflex): lower += (keysymdef.XK_cabovedot - keysymdef.XK_Cabovedot) elif (sym >= keysymdef.XK_cabovedot and sym <= keysymdef.XK_scircumflex): upper -= (keysymdef.XK_cabovedot - keysymdef.XK_Cabovedot) elif sym == 3: # latin4 # Assume the KeySym is a legal value (ignore discontinuities) if (sym >= keysymdef.XK_Rcedilla and sym <= keysymdef.XK_Tslash): lower += (keysymdef.XK_rcedilla - keysymdef.XK_Rcedilla) elif (sym >= keysymdef.XK_rcedilla and sym <= keysymdef.XK_tslash): upper -= (keysymdef.XK_rcedilla - keysymdef.XK_Rcedilla) elif (sym == keysymdef.XK_ENG): lower = keysymdef.XK_eng elif (sym == keysymdef.XK_eng): upper = keysymdef.XK_ENG elif (sym >= keysymdef.XK_Amacron and sym <= keysymdef.XK_Umacron): lower += (keysymdef.XK_amacron - keysymdef.XK_Amacron) elif (sym >= keysymdef.XK_amacron and sym <= keysymdef.XK_umacron): upper -= (keysymdef.XK_amacron - keysymdef.XK_Amacron) elif sym == 6: # cyrillic # Assume the KeySym is a legal value (ignore discontinuities) if (sym >= keysymdef.XK_Serbian_DJE and sym <= keysymdef.XK_Serbian_DZE): lower -= (keysymdef.XK_Serbian_DJE - keysymdef.XK_Serbian_dje) elif (sym >= keysymdef.XK_Serbian_dje and sym <= keysymdef.XK_Serbian_dze): upper += (keysymdef.XK_Serbian_DJE - keysymdef.XK_Serbian_dje) elif (sym >= keysymdef.XK_Cyrillic_YU and sym <= keysymdef.XK_Cyrillic_HARDSIGN): lower -= (keysymdef.XK_Cyrillic_YU - keysymdef.XK_Cyrillic_yu) elif (sym >= keysymdef.XK_Cyrillic_yu and sym <= keysymdef.XK_Cyrillic_hardsign): upper += (keysymdef.XK_Cyrillic_YU - keysymdef.XK_Cyrillic_yu) elif sym == 7: # greek if (sym >= keysymdef.XK_Greek_ALPHAaccent and sym <= keysymdef.XK_Greek_OMEGAaccent): lower += (keysymdef.XK_Greek_alphaaccent - keysymdef.XK_Greek_ALPHAaccent) elif (sym >= keysymdef.XK_Greek_alphaaccent and sym <= keysymdef.XK_Greek_omegaaccent and sym != keysymdef.XK_Greek_iotaaccentdieresis and sym != keysymdef.XK_Greek_upsilonaccentdieresis): upper -= (keysymdef.XK_Greek_alphaaccent - keysymdef.XK_Greek_ALPHAaccent) elif (sym >= keysymdef.XK_Greek_ALPHA and sym <= keysymdef.XK_Greek_OMEGA): lower += (keysymdef.XK_Greek_alpha - keysymdef.XK_Greek_ALPHA) elif (sym >= keysymdef.XK_Greek_alpha and sym <= keysymdef.XK_Greek_omega and sym != keysymdef.XK_Greek_finalsmallsigma): upper -= (keysymdef.XK_Greek_alpha - keysymdef.XK_Greek_ALPHA) elif sym == 0x14: # armenian if (sym >= keysymdef.XK_Armenian_AYB and sym <= keysymdef.XK_Armenian_fe): lower = sym | 1 upper = sym & ~1 return lower, upper
|
fcc1b7c56d3ac296156afd7a5dd9eff2848a18d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/fcc1b7c56d3ac296156afd7a5dd9eff2848a18d5/keysyms.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
3593,
12,
8117,
4672,
3536,
327,
261,
8167,
16,
3854,
13,
364,
2713,
999,
18,
225,
294,
7652,
30,
2657,
1756,
434,
1062,
2207,
71,
6845,
18,
74,
15656,
281,
11869,
18,
3341,
19,
6511,
70,
19,
1367,
19,
3413,
19,
2452,
93,
959,
19,
2452,
93,
959,
18,
71,
7,
82,
5718,
21,
3536,
2612,
273,
5382,
3854,
273,
5382,
225,
2446,
273,
5382,
1671,
1725,
225,
309,
5382,
422,
374,
30,
468,
30486,
21,
309,
14015,
8117,
1545,
1311,
2942,
536,
18,
60,
47,
67,
37,
13,
471,
261,
8117,
1648,
1311,
2942,
536,
18,
60,
47,
67,
62,
3719,
30,
2612,
1011,
261,
2452,
2942,
536,
18,
60,
47,
67,
69,
300,
1311,
2942,
536,
18,
60,
47,
67,
37,
13,
1327,
14015,
8117,
1545,
1311,
2942,
536,
18,
60,
47,
67,
69,
13,
471,
261,
8117,
1648,
1311,
2942,
536,
18,
60,
47,
67,
94,
3719,
30,
3854,
3947,
261,
2452,
2942,
536,
18,
60,
47,
67,
69,
300,
1311,
2942,
536,
18,
60,
47,
67,
37,
13,
1327,
14015,
8117,
1545,
1311,
2942,
536,
18,
60,
47,
67,
2577,
354,
537,
13,
471,
261,
8117,
1648,
1311,
2942,
536,
18,
60,
47,
67,
51,
72,
1155,
11737,
291,
3719,
30,
2612,
1011,
261,
2452,
2942,
536,
18,
60,
47,
67,
346,
354,
537,
300,
1311,
2942,
536,
18,
60,
47,
67,
2577,
354,
537,
13,
1327,
14015,
8117,
1545,
1311,
2942,
536,
18,
60,
47,
67,
346,
354,
537,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
3593,
12,
8117,
4672,
3536,
327,
261,
8167,
16,
3854,
13,
364,
2713,
999,
18,
225,
294,
7652,
30,
2657,
1756,
434,
1062,
2207,
71,
6845,
18,
74,
15656,
281,
11869,
18,
3341,
19,
6511,
70,
19,
1367,
19,
3413,
19,
2452,
93,
959,
19,
2452,
93,
959,
18,
71,
7,
82,
5718,
21,
3536,
2612,
273,
5382,
3854,
273,
5382,
225,
2446,
273,
5382,
1671,
1725,
225,
309,
5382,
422,
374,
30,
468,
30486,
21,
309,
14015,
8117,
1545,
1311,
2942,
536,
18,
60,
47,
67,
37,
13,
471,
261,
8117,
1648,
1311,
2942,
536,
18,
60,
47,
67,
62,
3719,
30,
2612,
1011,
261,
2452,
2942,
536,
18,
60,
47,
67,
69,
300,
1311,
2
] |
self.session.openWithCallback(self.returnVal, PicView, self.filelist.getFileList(), self.filelist.getSelection()[0], self.filelist.getCurrentDirectory())
|
self.session.openWithCallback(self.returnVal, PicView, self.filelist.getFileList(), self.filelist.getFilename(), self.filelist.getCurrentDirectory())
|
def KeyOk(self): if self.filelist.canDescent(): self.filelist.descent() else: self.session.openWithCallback(self.returnVal, PicView, self.filelist.getFileList(), self.filelist.getSelection()[0], self.filelist.getCurrentDirectory())
|
79de1c2ae4ba012707b99336dc4ce9e74734c6f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/79de1c2ae4ba012707b99336dc4ce9e74734c6f9/plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1929,
8809,
12,
2890,
4672,
309,
365,
18,
7540,
5449,
18,
4169,
4217,
319,
13332,
365,
18,
7540,
5449,
18,
5569,
319,
1435,
469,
30,
365,
18,
3184,
18,
3190,
1190,
2428,
12,
2890,
18,
2463,
3053,
16,
453,
335,
1767,
16,
365,
18,
7540,
5449,
18,
588,
26098,
9334,
365,
18,
7540,
5449,
18,
588,
5359,
9334,
365,
18,
7540,
5449,
18,
588,
3935,
2853,
10756,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1929,
8809,
12,
2890,
4672,
309,
365,
18,
7540,
5449,
18,
4169,
4217,
319,
13332,
365,
18,
7540,
5449,
18,
5569,
319,
1435,
469,
30,
365,
18,
3184,
18,
3190,
1190,
2428,
12,
2890,
18,
2463,
3053,
16,
453,
335,
1767,
16,
365,
18,
7540,
5449,
18,
588,
26098,
9334,
365,
18,
7540,
5449,
18,
588,
5359,
9334,
365,
18,
7540,
5449,
18,
588,
3935,
2853,
10756,
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
] |
checkProg('a LaTeX/Noweb -> LyX converter', ['tex2lyx', 'tex2lyx' + version_suffix],
|
checkProg('a LaTeX/Noweb -> LyX converter', ['tex2lyx' + version_suffix, 'tex2lyx'],
|
def checkConverterEntries(): ''' Check all converters (\converter entries) ''' checkProg('the pdflatex program', ['pdflatex $$i'], rc_entry = [ r'\converter pdflatex pdf2 "%%" "latex=pdflatex"' ]) checkProg('XeTeX', ['xelatex $$i'], rc_entry = [ r'\converter xetex pdf4 "%%" "latex=xelatex"' ]) checkProg('LuaTeX', ['lualatex $$i'], rc_entry = [ r'\converter luatex pdf5 "%%" "latex=lualatex"' ]) checkProg('LuaTeX (DVI)', ['dvilualatex $$i'], rc_entry = [ r'\converter luatex dvi3 "%%" "latex=lualatex"' ]) ''' If we're running LyX in-place then tex2lyx will be found in ../src/tex2lyx. Add this directory to the PATH temporarily and search for tex2lyx. Use PATH to avoid any problems with paths-with-spaces. ''' path_orig = os.environ["PATH"] os.environ["PATH"] = os.path.join('..', 'src', 'tex2lyx') + \ os.pathsep + path_orig checkProg('a LaTeX/Noweb -> LyX converter', ['tex2lyx', 'tex2lyx' + version_suffix], rc_entry = [r'''\converter latex lyx "%% -f $$i $$o" ""
|
225c1dbe55635a97b183909ea7194b8d92051378 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/225c1dbe55635a97b183909ea7194b8d92051378/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
5072,
5400,
13332,
9163,
2073,
777,
19414,
17938,
15747,
3222,
13,
9163,
866,
626,
75,
2668,
5787,
8169,
26264,
5402,
2187,
10228,
7699,
26264,
5366,
77,
17337,
4519,
67,
4099,
273,
306,
436,
8314,
15747,
8169,
26264,
282,
8169,
22,
4202,
2213,
16407,
202,
6,
26264,
33,
7699,
26264,
5187,
308,
13,
225,
866,
626,
75,
2668,
60,
73,
21575,
60,
2187,
10228,
92,
292,
270,
338,
5366,
77,
17337,
4519,
67,
4099,
273,
306,
436,
8314,
15747,
619,
278,
338,
1377,
8169,
24,
4202,
2213,
16407,
202,
6,
26264,
33,
92,
292,
270,
338,
5187,
308,
13,
225,
866,
626,
75,
2668,
48,
11886,
21575,
60,
2187,
10228,
80,
1462,
270,
338,
5366,
77,
17337,
4519,
67,
4099,
273,
306,
436,
8314,
15747,
20072,
270,
338,
1377,
8169,
25,
4202,
2213,
16407,
202,
6,
26264,
33,
80,
1462,
270,
338,
5187,
308,
13,
225,
866,
626,
75,
2668,
48,
11886,
21575,
60,
261,
40,
4136,
13,
2187,
10228,
15679,
330,
1462,
270,
338,
5366,
77,
17337,
4519,
67,
4099,
273,
306,
436,
8314,
15747,
20072,
270,
338,
1377,
302,
522,
23,
3639,
2213,
16407,
202,
6,
26264,
33,
80,
1462,
270,
338,
5187,
308,
13,
225,
9163,
971,
732,
4565,
3549,
511,
93,
60,
316,
17,
964,
1508,
16573,
22,
715,
92,
903,
506,
1392,
316,
6116,
19,
4816,
19,
21763,
22,
715,
92,
18,
1436,
333,
1867,
358,
326,
7767,
18917,
471,
1623,
364,
16573,
22,
715,
92,
18,
2672,
7767,
358,
4543,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
5072,
5400,
13332,
9163,
2073,
777,
19414,
17938,
15747,
3222,
13,
9163,
866,
626,
75,
2668,
5787,
8169,
26264,
5402,
2187,
10228,
7699,
26264,
5366,
77,
17337,
4519,
67,
4099,
273,
306,
436,
8314,
15747,
8169,
26264,
282,
8169,
22,
4202,
2213,
16407,
202,
6,
26264,
33,
7699,
26264,
5187,
308,
13,
225,
866,
626,
75,
2668,
60,
73,
21575,
60,
2187,
10228,
92,
292,
270,
338,
5366,
77,
17337,
4519,
67,
4099,
273,
306,
436,
8314,
15747,
619,
278,
338,
1377,
8169,
24,
4202,
2213,
16407,
202,
6,
26264,
33,
92,
292,
270,
338,
5187,
308,
13,
225,
866,
626,
75,
2668,
48,
11886,
21575,
60,
2187,
10228,
80,
1462,
270,
338,
5366,
77,
17337,
4519,
2
] |
file.Write(" uint32 data_size = 0; // TODO(gman): get correct size!\n") for arg in func.GetOriginalArgs(): arg.WriteGetAddress(file) func.WriteHandlerValidation(file) func.WriteHandlerImplementation(file) file.Write(" return parse_error::kParseNoError;\n") file.Write("}\n") file.Write("\n")
|
file.Write("// uint32 data_size = 0; // TODO(gman): get correct size!\n")
|
def WriteServiceImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write( "parse_error::ParseError GLES2DecoderImpl::Handle%s(\n" % func.name) file.Write( " uint32 immediate_data_size, const gles2::%s& c) {\n" % func.name) for arg in func.GetCmdArgs(): arg.WriteGetCode(file)
|
07f54fcc277a2d8fc3e6cecc5df5ea5c3d5ed080 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/07f54fcc277a2d8fc3e6cecc5df5ea5c3d5ed080/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
2828,
2866,
3259,
9,
87,
4713,
82,
6,
738,
1326,
18,
529,
13,
585,
18,
3067,
12,
315,
565,
2254,
1578,
14483,
67,
892,
67,
1467,
16,
1866,
314,
1040,
22,
2866,
9,
87,
10,
276,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
2828,
2866,
3259,
9,
87,
4713,
82,
6,
738,
1326,
18,
529,
13,
585,
18,
3067,
12,
315,
565,
2254,
1578,
14483,
67,
892,
67,
1467,
16,
1866,
314,
1040,
22,
2866,
9,
87,
10,
276,
13,
18890,
82,
6,
738,
1326,
18,
529,
13,
364,
1501,
316,
1326,
18,
967,
5931,
2615,
13332,
1501,
18,
3067,
967,
1085,
12,
768,
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
] |
gnome2.addmod('gtkmm-1.3',dependencies=['gtk+']) gnome2.addmod('gnomemm/libgnomemm',dependencies=['libgnome', 'gtkmm-1.3']) gnome2.addmod('gnomemm/libbonobomm',dependencies=['libbonobo']) gnome2.addmod('gnomemm/libbonobouimm',dependencies=['libbonoboui', 'gnomemm/libbonobomm']) gnome2.addmod('gnomemm/libgnomecanvasmm',dependencies=['libgnomecanvas']) gnome2.addmod('gnomemm/gconfmm',dependencies=['gconf', 'gtkmm-1.3']) gnome2.addmod('gnomemm/libgnomeuimm',dependencies=['gtkmm-1.3', 'libgnomeui', 'gnomemm/libgnomemm', 'gnomemm/gconfmm'])
|
gnome2.addmod('gtkmm-1.3', dependencies=['gtk+']) gnome2.addmod('gnomemm/libgnomemm', dependencies=['libgnome', 'gtkmm-1.3']) gnome2.addmod('gnomemm/libbonobomm', dependencies=['libbonobo']) gnome2.addmod('gnomemm/libbonobouimm', dependencies=['libbonoboui', 'gnomemm/libbonobomm']) gnome2.addmod('gnomemm/libgnomecanvasmm', dependencies=['libgnomecanvas', 'gtkmm-1.3']) gnome2.addmod('gnomemm/gconfmm', dependencies=['gconf', 'gtkmm-1.3']) gnome2.addmod('gnomemm/libgnomeuimm', dependencies=['gtkmm-1.3', 'libgnomeui', 'gnomemm/libgnomemm', 'gnomemm/gconfmm'])
|
def sfcvsroot(project): return ':pserver:anonymous@cvs.%s.sourceforge.net:/cvsroot/%s' % \ (project, project)
|
6597327c9806408d8b6bddc480f68267e4f0a08e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/6597327c9806408d8b6bddc480f68267e4f0a08e/moduleinfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
7142,
6904,
3085,
12,
4406,
4672,
327,
4290,
84,
3567,
30,
19070,
36,
71,
6904,
7866,
87,
18,
3168,
1884,
908,
18,
2758,
27824,
71,
6904,
3085,
5258,
87,
11,
738,
521,
261,
4406,
16,
1984,
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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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,
272,
7142,
6904,
3085,
12,
4406,
4672,
327,
4290,
84,
3567,
30,
19070,
36,
71,
6904,
7866,
87,
18,
3168,
1884,
908,
18,
2758,
27824,
71,
6904,
3085,
5258,
87,
11,
738,
521,
261,
4406,
16,
1984,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'start' : 0, 'reason' : 'ordinal not in range(128)'}),
|
'start' : 0, 'reason' : 'ordinal not in range'}),
|
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
|
f770301979422dc943c856c910e393f7ed206d4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f770301979422dc943c856c910e393f7ed206d4f/test_exceptions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
775,
30,
609,
12,
89,
11,
18601,
521,
89,
713,
41,
21,
6134,
1335,
1185,
16,
425,
30,
3296,
16532,
5509,
668,
273,
425,
2,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
775,
30,
609,
12,
89,
11,
18601,
521,
89,
713,
41,
21,
6134,
1335,
1185,
16,
425,
30,
3296,
16532,
5509,
668,
273,
425,
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
] |
def OnEdit(self, event): pass
|
def gotoSourceForItem(self, sel): bp = self.bps[sel] filename = bp['filename'] if not filename: return editor = self.debugger.editor editor.SetFocus() editor.openOrGotoModule(filename) sourceView = editor.getActiveModulePage().model.views['Source'] sourceView.focus() #sourceView.SetFocus() #sourceView.selectLine(bp['lineno'] - 1) sourceView.GotoLine(bp['lineno'] - 1)
|
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2897,
1830,
1290,
1180,
12,
2890,
16,
357,
4672,
9107,
273,
365,
18,
70,
1121,
63,
1786,
65,
1544,
273,
9107,
3292,
3459,
3546,
309,
486,
1544,
30,
327,
4858,
273,
365,
18,
4148,
693,
18,
9177,
4858,
18,
694,
9233,
1435,
4858,
18,
3190,
1162,
43,
6302,
3120,
12,
3459,
13,
1084,
1767,
273,
4858,
18,
588,
3896,
3120,
1964,
7675,
2284,
18,
7061,
3292,
1830,
3546,
1084,
1767,
18,
13923,
1435,
468,
3168,
1767,
18,
694,
9233,
1435,
468,
3168,
1767,
18,
4025,
1670,
12,
17152,
3292,
17782,
3546,
300,
404,
13,
1084,
1767,
18,
43,
6302,
1670,
12,
17152,
3292,
17782,
3546,
300,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2897,
1830,
1290,
1180,
12,
2890,
16,
357,
4672,
9107,
273,
365,
18,
70,
1121,
63,
1786,
65,
1544,
273,
9107,
3292,
3459,
3546,
309,
486,
1544,
30,
327,
4858,
273,
365,
18,
4148,
693,
18,
9177,
4858,
18,
694,
9233,
1435,
4858,
18,
3190,
1162,
43,
6302,
3120,
12,
3459,
13,
1084,
1767,
273,
4858,
18,
588,
3896,
3120,
1964,
7675,
2284,
18,
7061,
3292,
1830,
3546,
1084,
1767,
18,
13923,
1435,
468,
3168,
1767,
18,
694,
9233,
1435,
468,
3168,
1767,
18,
4025,
1670,
12,
17152,
3292,
17782,
3546,
300,
404,
13,
1084,
1767,
18,
43,
6302,
1670,
12,
17152,
3292,
17782,
3546,
300,
404,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.SetOverview(self.overviewText, overview) self.txt = DemoCodeViewer(self.nb, -1) self.nb.AddPage(self.txt, "Demo Code") self.LoadDemoSource('Main.py')
|
if "gtk2" in wx.PlatformInfo: self.ovr.NormalizeFontSizes() self.SetOverview(self.overviewText, mainOverview) self.log = wx.TextCtrl(splitter2, -1, style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL) wx.Log_SetActiveTarget(MyLog(self.log))
|
def OnOvrSize(evt, ovr=self.ovr): ovr.SetSize(evt.GetSize())
|
08ecc92023f15aaa5695a616f9712c980650c7c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/08ecc92023f15aaa5695a616f9712c980650c7c7/Main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
51,
18090,
1225,
12,
73,
11734,
16,
320,
18090,
33,
2890,
18,
1527,
86,
4672,
320,
18090,
18,
694,
1225,
12,
73,
11734,
18,
967,
1225,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
16,
320,
18090,
33,
2890,
18,
1527,
86,
4672,
320,
18090,
18,
694,
1225,
12,
73,
11734,
18,
967,
1225,
10756,
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
] |
assert res == (a == 1.0)
|
assert_equal(res,(a == 1.0))
|
def check_double(self,level=5): a = 1 res = inline_tools.inline('return_val = (a == 1.0);',['a']) assert res == (a == 1.0)
|
267b08d9c3e7613c126729a179f4503c91625e9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/267b08d9c3e7613c126729a179f4503c91625e9c/test_scxx_object.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
9056,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
404,
400,
273,
6370,
67,
6642,
18,
10047,
2668,
2463,
67,
1125,
273,
261,
69,
422,
404,
18,
20,
1769,
2187,
3292,
69,
19486,
1815,
400,
422,
261,
69,
422,
404,
18,
20,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
9056,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
404,
400,
273,
6370,
67,
6642,
18,
10047,
2668,
2463,
67,
1125,
273,
261,
69,
422,
404,
18,
20,
1769,
2187,
3292,
69,
19486,
1815,
400,
422,
261,
69,
422,
404,
18,
20,
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
] |
class Asomething:
|
class A_Something:
|
def m(self, i): return 1 + i
|
921ebf7bb6b67d78d6e2f6c4c3a4cb212997b867 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/921ebf7bb6b67d78d6e2f6c4c3a4cb212997b867/test_squeaktrans.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
12,
2890,
16,
277,
4672,
327,
404,
397,
277,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
12,
2890,
16,
277,
4672,
327,
404,
397,
277,
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
] |
if len(self.removedAtt)==0:
|
if len(self.removed)==0:
|
def setTable(self): self.res.setNumCols(2) self.res.setNumRows(len(self.discretizedAtts) - len(self.removedAtt))
|
dd1d765dc3e19161f4c3e8769c6d619e4b07ec77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/dd1d765dc3e19161f4c3e8769c6d619e4b07ec77/OWCategorize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
4672,
365,
18,
455,
18,
542,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
4672,
365,
18,
455,
18,
542,
2578,
8011,
12,
22,
13,
365,
18,
455,
18,
542,
2578,
4300,
12,
1897,
12,
2890,
18,
2251,
71,
1349,
1235,
3075,
87,
13,
300,
562,
12,
2890,
18,
14923,
3075,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cnt = cnt.replace('@NUMPY_INSTALLER_NAME@', installer_name)
|
cnt = cnt.replace('@SCIPY_INSTALLER_NAME@', installer_name)
|
def prepare_nsis_script(pyver, numver): if not os.path.exists(SUPERPACK_BUILD): os.makedirs(SUPERPACK_BUILD) tpl = os.path.join('tools/win32/build_scripts/nsis_scripts', 'scipy-superinstaller.nsi.in') source = open(tpl, 'r') target = open(os.path.join(SUPERPACK_BUILD, 'scipy-superinstaller.nsi'), 'w') installer_name = superpack_name(pyver, numver) cnt = "".join(source.readlines()) cnt = cnt.replace('@NUMPY_INSTALLER_NAME@', installer_name) for arch in ['nosse', 'sse2', 'sse3']: cnt = cnt.replace('@%s_BINARY@' % arch.upper(), internal_wininst_name(arch)) target.write(cnt)
|
6d54df7a95a305d63d38f64cd30dae6c1152d311 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/6d54df7a95a305d63d38f64cd30dae6c1152d311/pavement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
2387,
291,
67,
4263,
12,
2074,
502,
16,
818,
502,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
13272,
654,
12231,
67,
20215,
4672,
1140,
18,
81,
9477,
10539,
12,
13272,
654,
12231,
67,
20215,
13,
225,
6940,
273,
1140,
18,
803,
18,
5701,
2668,
6642,
19,
8082,
1578,
19,
3510,
67,
12827,
19,
2387,
291,
67,
12827,
2187,
296,
1017,
9126,
17,
9565,
20163,
18,
2387,
77,
18,
267,
6134,
1084,
273,
1696,
12,
10933,
16,
296,
86,
6134,
1018,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
13272,
654,
12231,
67,
20215,
16,
296,
1017,
9126,
17,
9565,
20163,
18,
2387,
77,
19899,
296,
91,
6134,
225,
16050,
67,
529,
273,
2240,
2920,
67,
529,
12,
2074,
502,
16,
818,
502,
13,
7599,
273,
1408,
18,
5701,
12,
3168,
18,
896,
3548,
10756,
7599,
273,
7599,
18,
2079,
2668,
36,
2312,
2579,
61,
67,
28865,
654,
67,
1985,
36,
2187,
16050,
67,
529,
13,
364,
6637,
316,
10228,
18050,
307,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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
2387,
291,
67,
4263,
12,
2074,
502,
16,
818,
502,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
13272,
654,
12231,
67,
20215,
4672,
1140,
18,
81,
9477,
10539,
12,
13272,
654,
12231,
67,
20215,
13,
225,
6940,
273,
1140,
18,
803,
18,
5701,
2668,
6642,
19,
8082,
1578,
19,
3510,
67,
12827,
19,
2387,
291,
67,
12827,
2187,
296,
1017,
9126,
17,
9565,
20163,
18,
2387,
77,
18,
267,
6134,
1084,
273,
1696,
12,
10933,
16,
296,
86,
6134,
1018,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
13272,
654,
12231,
67,
20215,
16,
296,
1017,
9126,
17,
9565,
20163,
18,
2387,
77,
19899,
296,
91,
6134,
225,
16050,
67,
529,
273,
2240,
2
] |
m[:] = 'd'*mapsize self.assertEqual(m[:], 'd' * mapsize,
|
m[:] = b'd'*mapsize self.assertEqual(m[:], b'd' * mapsize,
|
def test_access_parameter(self): # Test for "access" keyword parameter mapsize = 10 open(TESTFN, "wb").write("a"*mapsize) f = open(TESTFN, "rb") m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) self.assertEqual(m[:], 'a'*mapsize, "Readonly memory map data incorrect.")
|
d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3860,
67,
6775,
12,
2890,
4672,
468,
7766,
364,
315,
3860,
6,
4932,
1569,
852,
1467,
273,
1728,
1696,
12,
16961,
19793,
16,
315,
9464,
20387,
2626,
2932,
69,
6,
14,
1458,
1467,
13,
284,
273,
1696,
12,
16961,
19793,
16,
315,
6731,
7923,
312,
273,
30749,
18,
81,
1458,
12,
74,
18,
7540,
5764,
9334,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3860,
67,
6775,
12,
2890,
4672,
468,
7766,
364,
315,
3860,
6,
4932,
1569,
852,
1467,
273,
1728,
1696,
12,
16961,
19793,
16,
315,
9464,
20387,
2626,
2932,
69,
6,
14,
1458,
1467,
13,
284,
273,
1696,
12,
16961,
19793,
16,
315,
6731,
7923,
312,
273,
30749,
18,
81,
1458,
12,
74,
18,
7540,
5764,
9334,
852,
1467,
16,
2006,
33,
81,
1458,
18,
13204,
67,
6949,
13,
365,
18,
11231,
5812,
12,
81,
10531,
6487,
296,
69,
11,
14,
1458,
1467,
16,
315,
1994,
3700,
3778,
852,
501,
11332,
1199,
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
] |
install_python = True
|
if os.path.exists('python') : install_python = True
|
def prettylibs(libraries): libs = [] for lib in libraries: for p,v in replacetable: if p[0] == '=' : if p[1:] == lib : lib = v break else : if p in lib : lib = v break if lib: libs.append(lib) return ' '.join(libs)
|
54ab9426c36bf852c031db78b4ebf9d25862a29a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9140/54ab9426c36bf852c031db78b4ebf9d25862a29a/genCMake.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
21571,
12,
31417,
4672,
15042,
273,
5378,
364,
2561,
316,
14732,
30,
364,
293,
16,
90,
316,
6831,
1077,
278,
429,
30,
309,
293,
63,
20,
65,
422,
5214,
294,
309,
293,
63,
21,
26894,
422,
2561,
294,
2561,
273,
331,
898,
469,
294,
309,
293,
316,
2561,
294,
2561,
273,
331,
898,
309,
2561,
30,
15042,
18,
6923,
12,
2941,
13,
327,
296,
2418,
5701,
12,
21571,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
21571,
12,
31417,
4672,
15042,
273,
5378,
364,
2561,
316,
14732,
30,
364,
293,
16,
90,
316,
6831,
1077,
278,
429,
30,
309,
293,
63,
20,
65,
422,
5214,
294,
309,
293,
63,
21,
26894,
422,
2561,
294,
2561,
273,
331,
898,
469,
294,
309,
293,
316,
2561,
294,
2561,
273,
331,
898,
309,
2561,
30,
15042,
18,
6923,
12,
2941,
13,
327,
296,
2418,
5701,
12,
21571,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'comment' : None, 'contact' : None, 'exdate' : None, 'exrule' : None, 'rstatus' : None, 'related' : None, 'resources' : None, 'rdate' : None, 'rrule' : {'field':'rrule', 'type':'text'}, 'x-openobject-id' : {'field':'id', 'type':'text'}, 'x-openobject-model' : {'value':_name, 'type':'text'}, 'dtend' : {'field':'date_closed', 'type':'datetime'},
|
'comment' : None, 'contact' : None, 'exdate' : None, 'exrule' : None, 'rstatus' : None, 'related' : None, 'resources' : None, 'rdate' : None, 'rrule' : {'field':'rrule', 'type':'text'}, 'x-openobject-id' : {'field':'id', 'type':'text'}, 'x-openobject-model' : {'value':_name, 'type':'text'}, 'dtend' : {'field':'date_closed', 'type':'datetime'},
|
def import_cal(self, cr, uid, ids, context={}): self.import_ical(cr, uid) # get all property of CalDAV
|
6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
365,
18,
5666,
67,
1706,
12,
3353,
16,
4555,
13,
468,
336,
777,
1272,
434,
3596,
17735,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
365,
18,
5666,
67,
1706,
12,
3353,
16,
4555,
13,
468,
336,
777,
1272,
434,
3596,
17735,
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
] |
words = []
|
words = {}
|
def CreateTestMessage(self, spam_status): words = [] if spam_status != SPAM: words.extend(FindTopWords(self.manager.bayes, 50, False)) if spam_status != HAM: words.extend(FindTopWords(self.manager.bayes, 50, True)) # Create a new blank message with our words msg = self.manager.outlook.CreateItem(0) msg.Body = "\n".join(words) msg.Subject = TEST_SUBJECT return msg
|
dd7298bdea1152d90803967bf28763a9a3f36f01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/dd7298bdea1152d90803967bf28763a9a3f36f01/tester.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
4709,
1079,
12,
2890,
16,
24824,
67,
2327,
4672,
4511,
273,
2618,
309,
24824,
67,
2327,
480,
11405,
2192,
30,
4511,
18,
14313,
12,
3125,
3401,
7363,
12,
2890,
18,
4181,
18,
70,
528,
281,
16,
6437,
16,
1083,
3719,
309,
24824,
67,
2327,
480,
670,
2192,
30,
4511,
18,
14313,
12,
3125,
3401,
7363,
12,
2890,
18,
4181,
18,
70,
528,
281,
16,
6437,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
4709,
1079,
12,
2890,
16,
24824,
67,
2327,
4672,
4511,
273,
2618,
309,
24824,
67,
2327,
480,
11405,
2192,
30,
4511,
18,
14313,
12,
3125,
3401,
7363,
12,
2890,
18,
4181,
18,
70,
528,
281,
16,
6437,
16,
1083,
3719,
309,
24824,
67,
2327,
480,
670,
2192,
30,
4511,
18,
14313,
12,
3125,
3401,
7363,
12,
2890,
18,
4181,
18,
70,
528,
281,
16,
6437,
16,
1053,
3719,
468,
1788,
279,
394,
7052,
883,
598,
3134,
4511,
1234,
273,
365,
18,
4181,
18,
659,
7330,
18,
1684,
1180,
12,
20,
13,
1234,
18,
2250,
273,
1548,
82,
9654,
5701,
12,
3753,
13,
1234,
18,
6638,
273,
22130,
67,
8362,
5304,
327,
1234,
2,
-100,
-100,
-100,
-100,
-100
] |
c = Channel(station, channel_id + 1, q)
|
c = Channel(station, channel_id + 1, channel_timer, q)
|
def run(self): self.conf = self.get_conf_dict() #print self.conf
|
f301a42ec88d17568c5e38c8fe8c40e8d96caaea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/f301a42ec88d17568c5e38c8fe8c40e8d96caaea/d-fuzz.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
3923,
273,
365,
18,
588,
67,
3923,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
3923,
273,
365,
18,
588,
67,
3923,
67,
1576,
1435,
468,
1188,
365,
18,
3923,
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
] |
cmd = cmd + ' "' + THIRDPARTY + 'miles/lib/mss32.lib"'
|
cmd = cmd + ' ' + THIRDPARTY + 'miles/lib/mss32.lib'
|
def CompileLink(dll=0, obj=[], opts=[], xdep=[]): if (dll==0): sys.exit("Syntax error in CompileLink directive") if (COMPILER=="MSVC7"): ALLTARGETS.append(PREFIX+"/bin/"+dll) lib = PREFIX+"/lib/"+dll[:-4]+".lib" dll = PREFIX+"/bin/"+dll wobj = [] for x in obj: suffix = x[-4:] if (suffix==".obj"): wobj.append(PREFIX+"/tmp/"+x) elif (suffix==".dll"): wobj.append(PREFIX+"/lib/"+x[:-4]+".lib") elif (suffix==".lib"): wobj.append(PREFIX+"/lib/"+x) elif (suffix==".res"): wobj.append(PREFIX+"/tmp/"+x) else: sys.exit("unknown suffix in object list.") if (older(dll, wobj+xdep)): cmd = 'link.exe /nologo /NODEFAULTLIB:LIBCI.LIB' if (dll[-4:]!=".exe"): cmd = cmd + " /DLL" if (OPTIMIZE==1): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRT.LIB " if (OPTIMIZE==2): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRT.LIB " if (OPTIMIZE==3): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF " if (OPTIMIZE==4): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF /LTCG " cmd = cmd + " /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /fixed:no /incremental:no /stack:4194304 " if (opts.count("NOLIBCI")): cmd = cmd + " /NODEFAULTLIB:LIBCI.LIB " if (opts.count("MAXEGGDEF")): cmd = cmd + ' /DEF:pandatool/src/maxegg/MaxEgg.def' cmd = cmd + ' /OUT:"' + dll + '" /IMPLIB:"' + lib + '" /MAP:NUL' cmd = cmd + ' /LIBPATH:"' + PREFIX + '/python/libs" ' for x in wobj: cmd = cmd + ' "' + x + '"' if (dll[-4:]==".exe"): cmd = cmd + ' "' + PREFIX + '/tmp/pandaIcon.res"' if (opts.count("D3D8") or opts.count("D3D9") or opts.count("DXDRAW") or opts.count("DXSOUND") or opts.count("DXGUID")): cmd = cmd + ' /LIBPATH:"' + DIRECTXSDK + 'lib/x86"' cmd = cmd + ' /LIBPATH:"' + DIRECTXSDK + 'lib"' if (opts.count("D3D8")): cmd = cmd + ' d3d8.lib d3dx8.lib dxerr8.lib' if (opts.count("D3D9")): cmd = cmd + ' d3d9.lib d3dx9.lib dxerr9.lib' if (opts.count("DXDRAW")): cmd = cmd + ' ddraw.lib' if (opts.count("DXSOUND")): cmd = cmd + ' dsound.lib' if (opts.count("DXGUID")): cmd = cmd + ' dxguid.lib' if (opts.count("WINSOCK")): cmd = cmd + " wsock32.lib" if (opts.count("WINSOCK2")): cmd = cmd + " wsock32.lib ws2_32.lib" if (opts.count("WINCOMCTL")): cmd = cmd + ' comctl32.lib' if (opts.count("WINUSER")): cmd = cmd + " user32.lib" if (opts.count("WINMM")): cmd = cmd + " winmm.lib" if (opts.count("WINIMM")): cmd = cmd + " imm32.lib" if (opts.count("WINKERNEL")): cmd = cmd + " kernel32.lib" if (opts.count("WINOLDNAMES")): cmd = cmd + " oldnames.lib" if (opts.count("WINGDI")): cmd = cmd + " gdi32.lib" if (opts.count("ADVAPI")): cmd = cmd + " advapi32.lib" if (opts.count("GLUT")): cmd = cmd + " opengl32.lib glu32.lib" if (PkgSelected(opts,"ZLIB")): cmd = cmd + ' "' + THIRDPARTY + 'zlib/lib/libz.lib"' if (PkgSelected(opts,"PNG")): cmd = cmd + ' "' + THIRDPARTY + 'png/lib/libpng.lib"' if (PkgSelected(opts,"JPEG")): cmd = cmd + ' "' + THIRDPARTY + 'jpeg/lib/libjpeg.lib"' if (PkgSelected(opts,"TIFF")): cmd = cmd + ' "' + THIRDPARTY + 'tiff/lib/libtiff.lib"' if (PkgSelected(opts,"VRPN")): cmd = cmd + ' "' + THIRDPARTY + 'vrpn/lib/vrpn.lib"' cmd = cmd + ' "' + THIRDPARTY + 'vrpn/lib/quat.lib"' if (PkgSelected(opts,"FMOD")): cmd = cmd + ' "' + THIRDPARTY + 'fmod/lib/fmod.lib"' if (PkgSelected(opts,"MILES")): cmd = cmd + ' "' + THIRDPARTY + 'miles/lib/mss32.lib"' if (PkgSelected(opts,"NVIDIACG")): if (opts.count("CGGL")): cmd = cmd + ' "' + THIRDPARTY + 'nvidiacg/lib/cgGL.lib"' cmd = cmd + ' "' + THIRDPARTY + 'nvidiacg/lib/cg.lib"' if (PkgSelected(opts,"HELIX")): cmd = cmd + ' "' + THIRDPARTY + 'helix/lib/runtlib.lib"' cmd = cmd + ' "' + THIRDPARTY + 'helix/lib/syslib.lib"' cmd = cmd + ' "' + THIRDPARTY + 'helix/lib/contlib.lib"' cmd = cmd + ' "' + THIRDPARTY + 'helix/lib/debuglib.lib"' cmd = cmd + ' "' + THIRDPARTY + 'helix/lib/utillib.lib"' cmd = cmd + ' "' + THIRDPARTY + 'helix/lib/stlport_vc7.lib"' if (PkgSelected(opts,"NSPR")): cmd = cmd + ' "' + THIRDPARTY + 'nspr/lib/libnspr4.lib"' if (PkgSelected(opts,"SSL")): cmd = cmd + ' "' + THIRDPARTY + 'ssl/lib/ssleay32.lib"' cmd = cmd + ' "' + THIRDPARTY + 'ssl/lib/libeay32.lib"' if (PkgSelected(opts,"FREETYPE")): cmd = cmd + ' "' + THIRDPARTY + 'freetype/lib/libfreetype.lib"' if (PkgSelected(opts,"FFTW")): cmd = cmd + ' "' + THIRDPARTY + 'fftw/lib/rfftw.lib"' cmd = cmd + ' "' + THIRDPARTY + 'fftw/lib/fftw.lib"' if (PkgSelected(opts,"MAYA5")): cmd = cmd + ' "' + Maya5SDK + 'lib/Foundation.lib"' cmd = cmd + ' "' + Maya5SDK + 'lib/OpenMaya.lib"' cmd = cmd + ' "' + Maya5SDK + 'lib/OpenMayaAnim.lib"' if (PkgSelected(opts,"MAYA6")): cmd = cmd + ' "' + Maya6SDK + 'lib/Foundation.lib"' cmd = cmd + ' "' + Maya6SDK + 'lib/OpenMaya.lib"' cmd = cmd + ' "' + Maya6SDK + 'lib/OpenMayaAnim.lib"' for max in ["MAX5","MAX6","MAX7"]: if PkgSelected(opts,max): cmd = cmd + ' "' + MAXSDK[max] + 'lib/core.lib"' cmd = cmd + ' "' + MAXSDK[max] + 'lib/mesh.lib"' cmd = cmd + ' "' + MAXSDK[max] + 'lib/maxutil.lib"' cmd = cmd + ' "' + MAXSDK[max] + 'lib/paramblk2.lib"' oscmd(cmd) updatefiledate(dll) if ((OPTIMIZE == 1) and (dll[-4:]==".dll")): CopyFile(dll[:-4]+"_d.dll", dll) if (COMPILER=="LINUXA"): ALLTARGETS.append(PREFIX+"/lib/"+dll[:-4]+".so") if (dll[-4:]==".exe"): wdll = PREFIX+"/bin/"+dll[:-4] else: wdll = PREFIX+"/lib/"+dll[:-4]+".so" wobj = [] for x in obj: suffix = x[-4:] if (suffix==".obj"): wobj.append(PREFIX+"/tmp/"+x[:-4]+".o") elif (suffix==".dll"): wobj.append(PREFIX+"/lib/"+x[:-4]+".so") elif (suffix==".lib"): wobj.append(PREFIX+"/lib/"+x[:-4]+".a") else: sys.exit("unknown suffix in object list.") if (older(wdll, wobj+xdep)): if (dll[-4:]==".exe"): cmd = 'g++ -o "' + wdll + '" -L"' + PREFIX + '/lib"' else: cmd = 'g++ -shared -o "' + wdll + '" -L"' + PREFIX + '/lib"' for x in obj: suffix = x[-4:] if (suffix==".obj"): cmd = cmd + ' "' + PREFIX + '/tmp/' + x[:-4] + '.o"' elif (suffix==".dll"): cmd = cmd + ' -l' + x[3:-4] elif (suffix==".lib"): cmd = cmd + ' "' + PREFIX + '/lib/' + x[:-4] + '.a"' if (PkgSelected(opts,"FMOD")): cmd = cmd + ' -L"' + THIRDPARTY + 'fmod/lib" -lfmod-3.74' if (PkgSelected(opts,"NVIDIACG")): cmd = cmd + ' -L"' + THIRDPARTY + 'nvidiacg/lib" ' if (opts.count("CGGL")): cmd = cmd + " -lCgGL" cmd = cmd + " -lCg" if (PkgSelected(opts,"NSPR")): cmd = cmd + ' -L"' + THIRDPARTY + 'nspr/lib" -lpandanspr4' if (PkgSelected(opts,"ZLIB")): cmd = cmd + " -lz" if (PkgSelected(opts,"PNG")): cmd = cmd + " -lpng" if (PkgSelected(opts,"JPEG")): cmd = cmd + " -ljpeg" if (PkgSelected(opts,"TIFF")): cmd = cmd + " -ltiff" if (PkgSelected(opts,"SSL")): cmd = cmd + " -lssl" if (PkgSelected(opts,"FREETYPE")): cmd = cmd + " -lfreetype" if (PkgSelected(opts,"VRPN")): cmd = cmd + ' -L"' + THIRDPARTY + 'vrpn/lib" -lvrpn -lquat' if (PkgSelected(opts,"FFTW")): cmd = cmd + ' -L"' + THIRDPARTY + 'fftw/lib" -lrfftw -lfftw' if (opts.count("GLUT")): cmd = cmd + " -lGL -lGLU" oscmd(cmd) updatefiledate(wdll)
|
c85190276cd6a9b01b212e9fdd00c907bf653374 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c85190276cd6a9b01b212e9fdd00c907bf653374/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
2098,
12,
27670,
33,
20,
16,
1081,
22850,
6487,
1500,
22850,
6487,
619,
15037,
33,
8526,
4672,
309,
261,
27670,
631,
20,
4672,
2589,
18,
8593,
2932,
8070,
555,
316,
16143,
2098,
8655,
7923,
225,
309,
261,
31075,
14668,
31713,
3537,
13464,
27,
6,
4672,
8061,
16374,
55,
18,
6923,
12,
6307,
9078,
19,
4757,
4898,
15,
27670,
13,
2561,
273,
17154,
9078,
19,
2941,
4898,
15,
27670,
10531,
17,
24,
3737,
9654,
2941,
6,
302,
2906,
273,
17154,
9078,
19,
4757,
4898,
15,
27670,
341,
2603,
273,
5378,
364,
619,
316,
1081,
30,
3758,
273,
619,
18919,
24,
26894,
309,
282,
261,
8477,
631,
9654,
2603,
6,
4672,
341,
2603,
18,
6923,
12,
6307,
9078,
19,
5645,
4898,
15,
92,
13,
1327,
261,
8477,
631,
9654,
27670,
6,
4672,
341,
2603,
18,
6923,
12,
6307,
9078,
19,
2941,
4898,
15,
92,
10531,
17,
24,
3737,
9654,
2941,
7923,
1327,
261,
8477,
631,
9654,
2941,
6,
4672,
341,
2603,
18,
6923,
12,
6307,
9078,
19,
2941,
4898,
15,
92,
13,
1327,
261,
8477,
631,
9654,
455,
6,
4672,
341,
2603,
18,
6923,
12,
6307,
9078,
19,
5645,
4898,
15,
92,
13,
469,
30,
2589,
18,
8593,
2932,
8172,
3758,
316,
733,
666,
1199,
13,
309,
261,
1498,
12,
27670,
16,
341,
2603,
15,
92,
15037,
3719,
30,
1797,
273,
296,
1232,
18,
14880,
342,
82,
3966,
83,
342,
8744,
2636,
14484,
30,
14484,
7266,
18,
14484,
11,
309,
261,
27670,
18919,
24,
26894,
5,
1546,
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,
16143,
2098,
12,
27670,
33,
20,
16,
1081,
22850,
6487,
1500,
22850,
6487,
619,
15037,
33,
8526,
4672,
309,
261,
27670,
631,
20,
4672,
2589,
18,
8593,
2932,
8070,
555,
316,
16143,
2098,
8655,
7923,
225,
309,
261,
31075,
14668,
31713,
3537,
13464,
27,
6,
4672,
8061,
16374,
55,
18,
6923,
12,
6307,
9078,
19,
4757,
4898,
15,
27670,
13,
2561,
273,
17154,
9078,
19,
2941,
4898,
15,
27670,
10531,
17,
24,
3737,
9654,
2941,
6,
302,
2906,
273,
17154,
9078,
19,
4757,
4898,
15,
27670,
341,
2603,
273,
5378,
364,
619,
316,
1081,
30,
3758,
273,
619,
18919,
24,
26894,
309,
282,
261,
8477,
631,
9654,
2603,
6,
4672,
341,
2603,
18,
6923,
12,
6307,
9078,
19,
2
] |
fabricate was developed by Brush Technology for in-house use, but we thought
|
builder was developed by Brush Technology for in-house use, but we thought
|
def clean(): autoclean()
|
35a4c940cd25ac86249d9109056febf30a36afd7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7381/35a4c940cd25ac86249d9109056febf30a36afd7/fabricate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
13332,
23173,
298,
304,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
2721,
13332,
23173,
298,
304,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if attribute.lower() != ("@court" or "@casename" or "@docstatus" or "@doctext"):
|
if validRegex.search(attribute.lower()) == None:
|
def showResults(request, queryType="search"): """Show the results for a query as either an alert or a search""" if queryType == "alert/preview": queryType = "alert" elif queryType == "search/results": queryType = "search" try: query = request.GET['q'] except: # if somebody is URL hacking at /search/results/ or alert/preview/ query = "" # this handles the alert creation form. if request.method == 'POST': from alert.userHandling.models import Alert # an alert has been created alertForm = CreateAlertForm(request.POST) if alertForm.is_valid(): cd = alertForm.cleaned_data # save the alert a = CreateAlertForm(cd) alert = a.save() # this method saves it and returns it # associate the user with the alert try: # This works...but only if they already have an account. up = request.user.get_profile() except: # if the user doesn't have a profile yet, we make them one, and # associate it with their username. u = request.user up = UserProfile() up.user = u up.save() up.alert.add(alert) messages.add_message(request, messages.SUCCESS, 'Your alert was created successfully.') # and redirect to the alerts page return HttpResponseRedirect('/profile/alerts/') else: # the form is loading for the first time, load it, then load the rest # of the page! alertForm = CreateAlertForm(initial = {'alertText': query}) # OLD SEARCH METHOD # results = Document.objects.filter(documentPlainText__icontains=query).order_by("-dateFiled") # Sphinx search """Known problems: - date fields don't work""" # before searching, check that all attributes are valid. Create message if not. attributes = re.findall('@\w*', query) badAttrs = [] for attribute in attributes: if attribute.lower() != ("@court" or "@casename" or "@docstatus" or "@doctext"): badAttrs.append(attribute) # pluralization is a pain, but we must do it... if len(badAttrs) == 1: messageText = 'We completed your search, but <strong>' + \ oxford_comma(badAttrs) + '</strong> is not a valid attribute.<br>\ Valid attributes are @court, @caseName, @docStatus and @docText.' else: messageText = 'We completed your search, but <strong>' + \ oxford_comma(badAttrs) + '</strong> are not valid attributes.<br>\ Valid attributes are @court, @caseName, @docStatus and @docText.' messages.add_message(request, messages.INFO, messageText) try: queryset = Document.search.query(query) results = queryset.set_options(mode="SPH_MATCH_EXTENDED2")\ .order_by('-dateFiled') except: results = [] # next, we paginate we will show ten results/page paginator = Paginator(results, 10) # Make sure page request is an int. If not, deliver first page. try: page = int(request.GET.get('page', '1')) except ValueError: page = 1 # If page request is out of range, deliver last page of results. try: results = paginator.page(page) except (EmptyPage, InvalidPage): results = paginator.page(paginator.num_pages) except: results = [] return render_to_response('search/results.html', {'results': results, 'queryType': queryType, 'query': query, 'alertForm': alertForm}, RequestContext(request))
|
f24a2c70d62e718293ada80a428894af53cf3d5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/f24a2c70d62e718293ada80a428894af53cf3d5c/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3447,
12,
2293,
16,
843,
559,
1546,
3072,
6,
4672,
3536,
5706,
326,
1686,
364,
279,
843,
487,
3344,
392,
6881,
578,
279,
1623,
8395,
309,
843,
559,
422,
315,
11798,
19,
12102,
6877,
843,
559,
273,
315,
11798,
6,
1327,
843,
559,
422,
315,
3072,
19,
4717,
6877,
843,
559,
273,
315,
3072,
6,
225,
775,
30,
843,
273,
590,
18,
3264,
3292,
85,
3546,
1335,
30,
468,
309,
2690,
3432,
353,
1976,
11769,
310,
622,
342,
3072,
19,
4717,
19,
578,
6881,
19,
12102,
19,
843,
273,
1408,
225,
468,
333,
7372,
326,
6881,
6710,
646,
18,
309,
590,
18,
2039,
422,
296,
3798,
4278,
628,
6881,
18,
1355,
14701,
18,
7665,
1930,
17913,
468,
392,
6881,
711,
2118,
2522,
6881,
1204,
273,
1788,
13298,
1204,
12,
2293,
18,
3798,
13,
309,
6881,
1204,
18,
291,
67,
877,
13332,
7976,
273,
6881,
1204,
18,
6200,
329,
67,
892,
225,
468,
1923,
326,
6881,
279,
273,
1788,
13298,
1204,
12,
4315,
13,
6881,
273,
279,
18,
5688,
1435,
468,
333,
707,
14649,
518,
471,
1135,
518,
225,
468,
13251,
326,
729,
598,
326,
6881,
775,
30,
468,
1220,
6330,
2777,
12885,
1338,
309,
2898,
1818,
1240,
392,
2236,
18,
731,
273,
590,
18,
1355,
18,
588,
67,
5040,
1435,
1335,
30,
468,
309,
326,
729,
3302,
1404,
1240,
279,
3042,
4671,
16,
732,
1221,
2182,
1245,
16,
471,
468,
13251,
518,
598,
3675,
2718,
18,
582,
273,
590,
18,
1355,
731,
273,
2177,
4029,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3447,
12,
2293,
16,
843,
559,
1546,
3072,
6,
4672,
3536,
5706,
326,
1686,
364,
279,
843,
487,
3344,
392,
6881,
578,
279,
1623,
8395,
309,
843,
559,
422,
315,
11798,
19,
12102,
6877,
843,
559,
273,
315,
11798,
6,
1327,
843,
559,
422,
315,
3072,
19,
4717,
6877,
843,
559,
273,
315,
3072,
6,
225,
775,
30,
843,
273,
590,
18,
3264,
3292,
85,
3546,
1335,
30,
468,
309,
2690,
3432,
353,
1976,
11769,
310,
622,
342,
3072,
19,
4717,
19,
578,
6881,
19,
12102,
19,
843,
273,
1408,
225,
468,
333,
7372,
326,
6881,
6710,
646,
18,
309,
590,
18,
2039,
422,
296,
3798,
4278,
628,
6881,
18,
1355,
14701,
18,
7665,
1930,
17913,
468,
2
] |
<!-- <p>Affects: <label><input type=checkbox name=affects_authors checked> <img src="icons/authors" alt=""> Authors</label> <label><input type=checkbox name=affects_conformance-checkers checked> <img src="icons/conformance-checkers" alt=""> Validators</label> <label><input type=checkbox name=affects_gecko checked> <img src="icons/gecko" alt=""> Gecko</label> <label><input type=checkbox name=affects_internet-explorer checked> <img src="icons/internet-explorer" alt=""> IE</label> <label><input type=checkbox name=affects_opera checked> <img src="icons/opera" alt=""> Opera</label> <label><input type=checkbox name=affects_webkit checked> <img src="icons/webkit" alt=""> WebKit</label> <label><input type=checkbox name=affects_google-gears checked> <img src="icons/google-gears" alt=""> Gears</label> <label><input type=checkbox name=affects_tools checked> <img src="icons/tools" alt=""> Tools</label> <label><input type=checkbox name=affects_none checked> None</label> <p>Stability: <label class=draft-content><input type=checkbox name=stability_draft-content checked> Draft content</label> <label class=stable-draft><input type=checkbox name=stability_stable-draft checked> Stable draft</label> <label class=implemented><input type=checkbox name=stability_implemented checked> Implemented</label> <label class=stable><input type=checkbox name=stability_stable checked> Stable</label> --> <label class=editorial>Show editorial changes <input type=checkbox name=editorial checked></label>
|
<label class="editorial">Show editorial changes <input type="checkbox" id="editorial" checked="" onchange="updateEditorial()"></label>
|
def startFormatting(title, identifier, source): document = """Content-Type:text/html;charset=UTF-8
|
f5f4c3ed6200811f1911f1b21ca420f1c2697ec6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5033/f5f4c3ed6200811f1911f1b21ca420f1c2697ec6/trackerlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
topSizer.Add((50,1))
|
topSizer.Add((30,1))
|
def Configure( self, choices=[], fore = (0, 0, 0), back = (255, 255, 255), fontInfo = None
|
5a9e24db893d311594502a931adac4c0bc74b70e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/5a9e24db893d311594502a931adac4c0bc74b70e/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11758,
12,
365,
16,
7246,
22850,
6487,
895,
273,
261,
20,
16,
374,
16,
374,
3631,
1473,
273,
261,
10395,
16,
4561,
16,
4561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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11758,
12,
365,
16,
7246,
22850,
6487,
895,
273,
261,
20,
16,
374,
16,
374,
3631,
1473,
273,
261,
10395,
16,
4561,
16,
4561,
3631,
3512,
966,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
yield Bytes(self, "value", self['size'].value) self.xml=lambda prefix:prefix + "<data>\n%s\n%s</data>"%(self['value'].value.encode('base64').strip(),prefix)
|
if self['size'].value: yield Bytes(self, "value", self['size'].value) self.xml=lambda prefix:prefix + "<data>\n%s\n%s</data>"%(self['value'].value.encode('base64').strip(),prefix) else: self.xml=lambda prefix:prefix + '<data></data>'
|
def createFields(self): yield Enum(Bits(self, "marker_type", 4), {0: "Simple", 1: "Int", 2: "Real", 3: "Date", 4: "Data", 5: "ASCII String", 6: "UTF-16-BE String", 8: "UID", 10: "Array", 13: "Dict",}) markertype = self['marker_type'].value if markertype == 0: # Simple (Null) yield Enum(Bits(self, "value", 4), {0: "Null", 8: "False", 9: "True", 15: "Fill Byte",}) if self['value'].display == "False": self.xml=lambda prefix:prefix + "<false/>" elif self['value'].display == "True": self.xml=lambda prefix:prefix + "<true/>" else: self.xml=lambda prefix:prefix + ""
|
739f4752fd699eb9a057be40ba3871da271297c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9327/739f4752fd699eb9a057be40ba3871da271297c7/bplist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
6057,
12,
6495,
12,
2890,
16,
315,
11145,
67,
723,
3113,
1059,
3631,
288,
20,
30,
315,
5784,
3113,
404,
30,
315,
1702,
3113,
576,
30,
315,
6955,
3113,
890,
30,
315,
1626,
3113,
1059,
30,
315,
751,
3113,
1381,
30,
315,
13756,
514,
3113,
1666,
30,
315,
5159,
17,
2313,
17,
5948,
514,
3113,
1725,
30,
315,
3060,
3113,
1728,
30,
315,
1076,
3113,
5958,
30,
315,
5014,
3113,
6792,
5373,
723,
273,
365,
3292,
11145,
67,
723,
29489,
1132,
309,
5373,
723,
422,
374,
30,
468,
4477,
261,
2041,
13,
2824,
6057,
12,
6495,
12,
2890,
16,
315,
1132,
3113,
1059,
3631,
288,
20,
30,
315,
2041,
3113,
1725,
30,
315,
8381,
3113,
2468,
30,
315,
5510,
3113,
4711,
30,
315,
8026,
3506,
3113,
6792,
309,
365,
3292,
1132,
29489,
5417,
422,
315,
8381,
6877,
365,
18,
2902,
33,
14661,
1633,
30,
3239,
397,
3532,
5743,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
6057,
12,
6495,
12,
2890,
16,
315,
11145,
67,
723,
3113,
1059,
3631,
288,
20,
30,
315,
5784,
3113,
404,
30,
315,
1702,
3113,
576,
30,
315,
6955,
3113,
890,
30,
315,
1626,
3113,
1059,
30,
315,
751,
3113,
1381,
30,
315,
13756,
514,
3113,
1666,
30,
315,
5159,
17,
2313,
17,
5948,
514,
3113,
1725,
30,
315,
3060,
3113,
1728,
30,
315,
1076,
3113,
5958,
30,
315,
5014,
3113,
6792,
5373,
723,
273,
365,
3292,
11145,
67,
723,
29489,
1132,
309,
5373,
723,
422,
374,
30,
468,
4477,
261,
2041,
13,
2824,
6057,
12,
6495,
12,
2890,
16,
315,
1132,
3113,
1059,
3631,
288,
20,
30,
315,
2041,
3113,
1725,
30,
2
] |
output = query(lines = text.splitlines())
|
output = SearchEngine().query(lines = text.splitlines())
|
def main(): gen = None # pages which will be processed when the -page parameter is used PageTitles = [] # IDs which will be processed when the -ids parameter is used ids = None # Which namespaces should be processed? # default to [] which means all namespaces will be processed namespaces = [] # repeat = False # text = None # Number of pages to load at a time by Preload generator pageNumber = 40 # Default number of pages for NewPages generator number = 60 firstPageTitle = None # This factory is responsible for processing command line arguments # that are also used by other scripts and that determine on which pages # to work on. genFactory = pagegenerators.GeneratorFactory() # Read commandline parameters. for arg in wikipedia.handleArgs(): if arg == '-y': config.copyright_yahoo = True elif arg == '-g': config.copyright_google = True elif arg == '-l': config.copyright_msn = True elif arg == '-ny': config.copyright_yahoo = False elif arg == '-ng': config.copyright_google = False elif arg == '-nl': config.copyright_msn = False elif arg.startswith('-output'): if len(arg) >= 8: setSavepath(arg[8:]) elif arg.startswith('-maxquery'): if len(arg) >= 10: config.copyright_max_query_for_page = int(arg[10:]) elif arg.startswith('-skipquery'): if len(arg) >= 11: config.copyright_skip_query = int(arg[11:]) elif arg.startswith('-nwords'): if len(arg) >= 8: number_of_words = int(arg[8:]) elif arg.startswith('-text'): if len(arg) >= 6: text = arg[6:] elif arg.startswith('-page'): if len(arg) == 5: PageTitles.append(wikipedia.input(u'Which page do you want to change?')) else: PageTitles.append(arg[6:]) elif arg.startswith('-namespace:'): try: namespaces.append(int(arg[11:])) except ValueError: namespaces.append(arg[11:]) elif arg.startswith('-forceupdate'): URLExclusion().update() elif arg == '-repeat': repeat = True elif arg.startswith('-new'): if len(arg) >=5: number = int(arg[5:]) gen = pagegenerators.NewpagesPageGenerator(number = number, repeat = repeat) # Preload generator work better if 'pageNumber' is not major than 'number', # this avoid unnecessary delay. if number < pageNumber: pageNumber = number else: genFactory.handleArg(arg) if PageTitles: pages = [wikipedia.Page(wikipedia.getSite(), PageTitle) for PageTitle in PageTitles] gen = iter(pages) config.copyright_yahoo = check_config(config.copyright_yahoo, config.yahoo_appid, "Yahoo AppID") config.copyright_google = check_config(config.copyright_google, config.google_key, "Google Web API license key") config.copyright_msn = check_config(config.copyright_msn, config.msn_appid, "Live Search AppID") if ids: checks_by_ids(ids) if not gen: gen = genFactory.getCombinedGenerator() if not gen and not ids and not text: # syntax error, show help text from the top of this file wikipedia.output(__doc__, 'utf-8') if text: output = query(lines = text.splitlines()) if output: wikipedia.output(output) if not gen: return if namespaces != []: gen = pagegenerators.NamespaceFilterPageGenerator(gen, namespaces) preloadingGen = pagegenerators.PreloadingGenerator(gen, pageNumber = pageNumber) bot = CheckRobot(preloadingGen) bot.run()
|
7e45715708331d0e763b295fedfe7f4f6aee82ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7e45715708331d0e763b295fedfe7f4f6aee82ca/copyright.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3157,
273,
599,
468,
4689,
1492,
903,
506,
5204,
1347,
326,
300,
2433,
1569,
353,
1399,
3460,
25088,
273,
5378,
468,
7115,
1492,
903,
506,
5204,
1347,
326,
300,
2232,
1569,
353,
1399,
3258,
273,
599,
468,
21918,
7728,
1410,
506,
5204,
35,
468,
805,
358,
5378,
1492,
4696,
777,
7728,
903,
506,
5204,
7728,
273,
5378,
468,
7666,
273,
1083,
468,
977,
273,
599,
468,
3588,
434,
4689,
358,
1262,
622,
279,
813,
635,
2962,
945,
4456,
26484,
273,
8063,
468,
2989,
1300,
434,
4689,
364,
1166,
5716,
4456,
1300,
273,
4752,
225,
1122,
1964,
4247,
273,
599,
468,
1220,
3272,
353,
14549,
364,
4929,
1296,
980,
1775,
468,
716,
854,
2546,
1399,
635,
1308,
8873,
471,
716,
4199,
603,
1492,
4689,
468,
358,
1440,
603,
18,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
225,
468,
2720,
28305,
1472,
18,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
2400,
93,
4278,
642,
18,
29187,
67,
93,
9795,
5161,
273,
1053,
1327,
1501,
422,
2400,
75,
4278,
642,
18,
29187,
67,
9536,
273,
1053,
1327,
1501,
422,
2400,
80,
4278,
642,
18,
29187,
67,
959,
82,
273,
1053,
1327,
1501,
422,
2400,
18538,
4278,
642,
18,
29187,
67,
93,
9795,
5161,
273,
1083,
1327,
1501,
422,
2400,
3368,
4278,
642,
18,
29187,
67,
9536,
273,
1083,
1327,
1501,
422,
2400,
14039,
4278,
642,
18,
29187,
67,
959,
82,
273,
1083,
1327,
1501,
18,
17514,
1918,
2668,
17,
2844,
11,
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,
3157,
273,
599,
468,
4689,
1492,
903,
506,
5204,
1347,
326,
300,
2433,
1569,
353,
1399,
3460,
25088,
273,
5378,
468,
7115,
1492,
903,
506,
5204,
1347,
326,
300,
2232,
1569,
353,
1399,
3258,
273,
599,
468,
21918,
7728,
1410,
506,
5204,
35,
468,
805,
358,
5378,
1492,
4696,
777,
7728,
903,
506,
5204,
7728,
273,
5378,
468,
7666,
273,
1083,
468,
977,
273,
599,
468,
3588,
434,
4689,
358,
1262,
622,
279,
813,
635,
2962,
945,
4456,
26484,
273,
8063,
468,
2989,
1300,
434,
4689,
364,
1166,
5716,
4456,
1300,
273,
4752,
225,
1122,
1964,
4247,
273,
599,
468,
1220,
3272,
353,
14549,
364,
4929,
1296,
980,
1775,
468,
716,
854,
2546,
1399,
635,
1308,
2
] |
self.log_path = os.path.join(log_folder, "conversion-%d-to-%s-log" % (self.item_info.id, self.converter_info.identifier))
|
self.log_path = os.path.join(log_folder, "conversion-%d-to-%s.log" % (self.item_info.id, self.converter_info.identifier))
|
def _start_logging(self, executable, params): log_folder = os.path.dirname(config.get(prefs.LOG_PATHNAME)) self.log_path = os.path.join(log_folder, "conversion-%d-to-%s-log" % (self.item_info.id, self.converter_info.identifier)) self.log_file = file(self.log_path, "w") self._log_progress("STARTING CONVERSION") self._log_progress("-> Item: %s" % util.stringify(self.item_info.name)) self._log_progress("-> Converter used: %s" % self.converter_info.name) self._log_progress("-> Executable: %s" % executable) self._log_progress("-> Parameters: %s" % ' '.join(params)) self._log_progress("")
|
b639c0dfd11759e2a218e8a5b3fc23377572d362 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/b639c0dfd11759e2a218e8a5b3fc23377572d362/videoconversion.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
11167,
12,
2890,
16,
9070,
16,
859,
4672,
613,
67,
5609,
273,
1140,
18,
803,
18,
12287,
12,
1425,
18,
588,
12,
1484,
2556,
18,
4842,
67,
4211,
1985,
3719,
365,
18,
1330,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
1330,
67,
5609,
16,
315,
20990,
6456,
72,
17,
869,
6456,
87,
18,
1330,
6,
738,
261,
2890,
18,
1726,
67,
1376,
18,
350,
16,
365,
18,
15747,
67,
1376,
18,
5644,
3719,
365,
18,
1330,
67,
768,
273,
585,
12,
2890,
18,
1330,
67,
803,
16,
315,
91,
7923,
365,
6315,
1330,
67,
8298,
2932,
7570,
1360,
3492,
5757,
7923,
365,
6315,
1330,
67,
8298,
2932,
2122,
4342,
30,
738,
87,
6,
738,
1709,
18,
25650,
12,
2890,
18,
1726,
67,
1376,
18,
529,
3719,
365,
6315,
1330,
67,
8298,
2932,
2122,
14768,
1399,
30,
738,
87,
6,
738,
365,
18,
15747,
67,
1376,
18,
529,
13,
365,
6315,
1330,
67,
8298,
2932,
2122,
18342,
30,
738,
87,
6,
738,
9070,
13,
365,
6315,
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8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
11167,
12,
2890,
16,
9070,
16,
859,
4672,
613,
67,
5609,
273,
1140,
18,
803,
18,
12287,
12,
1425,
18,
588,
12,
1484,
2556,
18,
4842,
67,
4211,
1985,
3719,
365,
18,
1330,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
1330,
67,
5609,
16,
315,
20990,
6456,
72,
17,
869,
6456,
87,
18,
1330,
6,
738,
261,
2890,
18,
1726,
67,
1376,
18,
350,
16,
365,
18,
15747,
67,
1376,
18,
5644,
3719,
365,
18,
1330,
67,
768,
273,
585,
12,
2890,
18,
1330,
67,
803,
16,
315,
91,
7923,
365,
6315,
1330,
67,
8298,
2932,
7570,
1360,
3492,
5757,
7923,
365,
6315,
1330,
67,
8298,
2932,
2122,
4342,
30,
738,
87,
6,
2
] |
f = open(filename, 'rb')
|
f = open(filename, 'rT')
|
def showframe(self, stackindex): (frame, lineno) = self.stack[stackindex] W.SetCursor('watch') filename = frame.f_code.co_filename if filename <> self.file: editor = self.geteditor(filename) if editor: self.w.panes.bottom.src.source.set(editor.get(), filename) else: try: f = open(filename, 'rb') data = f.read() f.close() except IOError: if filename[-3:] == '.py': import imp modname = os.path.basename(filename)[:-3] try: f, filename, (suff, mode, dummy) = imp.find_module(modname) except ImportError: self.w.panes.bottom.src.source.set("can't find file") else: if f: f.close() if f and suff == '.py': f = open(filename, 'rb') data = f.read() f.close() self.w.panes.bottom.src.source.set(data, filename) else: self.w.panes.bottom.src.source.set("can't find file") else: self.w.panes.bottom.src.source.set("can't find file") else: self.w.panes.bottom.src.source.set(data, filename) self.file = filename self.w.panes.bottom.srctitle.set('Source: ' + filename + ((lineno > 0) and (' (line %d)' % lineno) or ' ')) self.goto_line(lineno) self.lineno = lineno self.showvars((frame, lineno))
|
b8225b026906a9a6f3e751f60a4db164266bb85b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b8225b026906a9a6f3e751f60a4db164266bb85b/PyDebugger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3789,
12,
2890,
16,
2110,
1615,
4672,
261,
3789,
16,
7586,
13,
273,
365,
18,
3772,
63,
3772,
1615,
65,
678,
18,
694,
6688,
2668,
7585,
6134,
1544,
273,
2623,
18,
74,
67,
710,
18,
2894,
67,
3459,
309,
1544,
2813,
365,
18,
768,
30,
4858,
273,
365,
18,
588,
9177,
12,
3459,
13,
309,
4858,
30,
365,
18,
91,
18,
7355,
281,
18,
9176,
18,
4816,
18,
3168,
18,
542,
12,
9177,
18,
588,
9334,
1544,
13,
469,
30,
775,
30,
284,
273,
1696,
12,
3459,
16,
296,
86,
56,
6134,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
1335,
8340,
30,
309,
1544,
18919,
23,
26894,
422,
2418,
2074,
4278,
1930,
1646,
16037,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
10531,
17,
23,
65,
775,
30,
284,
16,
1544,
16,
261,
87,
3809,
16,
1965,
16,
9609,
13,
273,
1646,
18,
4720,
67,
2978,
12,
1711,
529,
13,
1335,
11308,
30,
365,
18,
91,
18,
7355,
281,
18,
9176,
18,
4816,
18,
3168,
18,
542,
2932,
4169,
1404,
1104,
585,
7923,
469,
30,
309,
284,
30,
284,
18,
4412,
1435,
309,
284,
471,
272,
3809,
422,
2418,
2074,
4278,
284,
273,
1696,
12,
3459,
16,
296,
86,
56,
6134,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
365,
18,
91,
18,
7355,
281,
18,
9176,
18,
4816,
18,
3168,
18,
542,
12,
892,
16,
1544,
13,
469,
30,
365,
18,
91,
18,
7355,
281,
18,
9176,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3789,
12,
2890,
16,
2110,
1615,
4672,
261,
3789,
16,
7586,
13,
273,
365,
18,
3772,
63,
3772,
1615,
65,
678,
18,
694,
6688,
2668,
7585,
6134,
1544,
273,
2623,
18,
74,
67,
710,
18,
2894,
67,
3459,
309,
1544,
2813,
365,
18,
768,
30,
4858,
273,
365,
18,
588,
9177,
12,
3459,
13,
309,
4858,
30,
365,
18,
91,
18,
7355,
281,
18,
9176,
18,
4816,
18,
3168,
18,
542,
12,
9177,
18,
588,
9334,
1544,
13,
469,
30,
775,
30,
284,
273,
1696,
12,
3459,
16,
296,
86,
56,
6134,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
1335,
8340,
30,
309,
1544,
18919,
23,
26894,
422,
2418,
2074,
4278,
1930,
1646,
16037,
2
] |
output(u"ERROR> link from %s to %s:%s has leading colon?!" % (self.linkname(), newsite, newname))
|
output(u"ERROR: link from %s to [[%s:%s]] has leading colon?!" % (self.aslink(), newsite, newname))
|
def interwiki(self): """A list of interwiki links in the page. This will retrieve the page text to do its work, so it can raise the same exceptions that are raised by the get() method.
|
4d4b100c0c4a5b0a22bf72174e33f887a4a5106f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4d4b100c0c4a5b0a22bf72174e33f887a4a5106f/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1554,
13044,
12,
2890,
4672,
3536,
37,
666,
434,
1554,
13044,
4716,
316,
326,
1363,
18,
1220,
903,
4614,
326,
1363,
977,
358,
741,
2097,
1440,
16,
1427,
518,
848,
1002,
326,
1967,
4798,
716,
854,
11531,
635,
326,
336,
1435,
707,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1554,
13044,
12,
2890,
4672,
3536,
37,
666,
434,
1554,
13044,
4716,
316,
326,
1363,
18,
1220,
903,
4614,
326,
1363,
977,
358,
741,
2097,
1440,
16,
1427,
518,
848,
1002,
326,
1967,
4798,
716,
854,
11531,
635,
326,
336,
1435,
707,
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
] |
except DistutilsExecError, msg:
|
except DistutilsExecError as msg:
|
def link(self, target_desc, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None):
|
4fca9553791a03c69c398ad5bd01c118b49b73e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/4fca9553791a03c69c398ad5bd01c118b49b73e3/msvc9compiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
12,
2890,
16,
1018,
67,
5569,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
3099,
67,
12083,
67,
8291,
33,
7036,
16,
3359,
67,
15536,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
1968,
33,
7036,
16,
1361,
67,
5814,
33,
7036,
16,
1018,
67,
4936,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
12,
2890,
16,
1018,
67,
5569,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
3099,
67,
12083,
67,
8291,
33,
7036,
16,
3359,
67,
15536,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
1968,
33,
7036,
16,
1361,
67,
5814,
33,
7036,
16,
1018,
67,
4936,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.tk.call(self._w, 'info', 'down', index)
|
return self.tk.call(self._w, 'info', 'down', index)
|
def info_down(self, index):
|
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
2378,
12,
2890,
16,
770,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
1123,
67,
2378,
12,
2890,
16,
770,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if sites is not None:
|
if sites is not None:
|
def makeBlockList(self, onlyClosedBlocks = False, sites=None, providedOnlyBlocks=None): """ _makeBlockList_
|
1d2e2ee1b3fce9fc44394ff757ed95b41e944755 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/1d2e2ee1b3fce9fc44394ff757ed95b41e944755/TwoFileFeeder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1768,
682,
12,
2890,
16,
1338,
7395,
6450,
273,
1083,
16,
9180,
33,
7036,
16,
2112,
3386,
6450,
33,
7036,
4672,
3536,
389,
6540,
1768,
682,
67,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1768,
682,
12,
2890,
16,
1338,
7395,
6450,
273,
1083,
16,
9180,
33,
7036,
16,
2112,
3386,
6450,
33,
7036,
4672,
3536,
389,
6540,
1768,
682,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _get_index_items(self, tree, link, dict=None):
|
def _get_index_items(self, tree, link, dict): """ @param dict: in/out parameter. """
|
def _get_index_items(self, tree, link, dict=None): if tree is None: return if dict == None: dict = {} if isinstance(tree, _Text): return dict elif tree.tagName != 'index': for child in tree.childNodes: self._get_index_items(child, link, dict) else: children = [self._dom_to_html(c) for c in tree.childNodes] key = ''.join(children).lower().strip() if dict.has_key(key): dict[key].append(link) else: dict[key] = [link] return dict
|
60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1615,
67,
3319,
12,
2890,
16,
2151,
16,
1692,
16,
2065,
4672,
3536,
632,
891,
2065,
30,
316,
19,
659,
1569,
18,
3536,
309,
2151,
353,
599,
30,
327,
309,
2065,
422,
599,
30,
2065,
273,
2618,
225,
309,
1549,
12,
3413,
16,
389,
1528,
4672,
327,
2065,
1327,
2151,
18,
2692,
461,
480,
296,
1615,
4278,
364,
1151,
316,
2151,
18,
3624,
3205,
30,
365,
6315,
588,
67,
1615,
67,
3319,
12,
3624,
16,
1692,
16,
2065,
13,
469,
30,
2325,
273,
306,
2890,
6315,
9859,
67,
869,
67,
2620,
12,
71,
13,
364,
276,
316,
2151,
18,
3624,
3205,
65,
498,
273,
875,
18,
5701,
12,
5906,
2934,
8167,
7675,
6406,
1435,
309,
2065,
18,
5332,
67,
856,
12,
856,
4672,
2065,
63,
856,
8009,
6923,
12,
1232,
13,
469,
30,
2065,
63,
856,
65,
273,
306,
1232,
65,
327,
2065,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1615,
67,
3319,
12,
2890,
16,
2151,
16,
1692,
16,
2065,
4672,
3536,
632,
891,
2065,
30,
316,
19,
659,
1569,
18,
3536,
309,
2151,
353,
599,
30,
327,
309,
2065,
422,
599,
30,
2065,
273,
2618,
225,
309,
1549,
12,
3413,
16,
389,
1528,
4672,
327,
2065,
1327,
2151,
18,
2692,
461,
480,
296,
1615,
4278,
364,
1151,
316,
2151,
18,
3624,
3205,
30,
365,
6315,
588,
67,
1615,
67,
3319,
12,
3624,
16,
1692,
16,
2065,
13,
469,
30,
2325,
273,
306,
2890,
6315,
9859,
67,
869,
67,
2620,
12,
71,
13,
364,
276,
316,
2151,
18,
3624,
3205,
65,
498,
273,
875,
18,
5701,
12,
5906,
2934,
8167,
7675,
6406,
1435,
309,
2
] |
open(path, 'wb').write(getattr(css, 'cssText', css).encode('utf-8'))
|
raw = getattr(css, 'cssText', css) if isinstance(raw, unicode): raw = raw.encode('utf-8') open(path, 'wb').write(raw)
|
def parse_content(filelist, opts, tdir): os.makedirs(os.path.join(tdir, 'content', 'resources')) resource_map, stylesheets = {}, {} toc = TOC(base_path=tdir, type='root') stylesheet_map = {} for htmlfile in filelist: logging.getLogger('html2epub').debug('Processing %s...'%htmlfile) hp = HTMLProcessor(htmlfile, opts, os.path.join(tdir, 'content'), resource_map, filelist, stylesheets) hp.populate_toc(toc) hp.save() stylesheet_map[os.path.basename(hp.save_path())] = \ [s for s in hp.external_stylesheets + [hp.stylesheet, hp.font_css, hp.override_css] if s is not None] logging.getLogger('html2epub').debug('Saving stylesheets...') if opts.base_font_size2 > 0: Rationalizer.remove_font_size_information(stylesheets.values()) for path, css in stylesheets.items(): open(path, 'wb').write(getattr(css, 'cssText', css).encode('utf-8')) if toc.count('chapter') > opts.toc_threshold: toc.purge(['file', 'link', 'unknown']) if toc.count('chapter') + toc.count('file') > opts.toc_threshold: toc.purge(['link', 'unknown']) toc.purge(['link'], max=opts.max_toc_links) return resource_map, hp.htmlfile_map, toc, stylesheet_map
|
fce9c872517d4774c54339f5d38b589e073f1027 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/fce9c872517d4774c54339f5d38b589e073f1027/from_html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1745,
12,
7540,
5449,
16,
1500,
16,
268,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
538,
18,
803,
18,
5701,
12,
88,
1214,
16,
296,
1745,
2187,
296,
4683,
26112,
1058,
67,
1458,
16,
30163,
273,
10615,
2618,
17919,
273,
8493,
39,
12,
1969,
67,
803,
33,
88,
1214,
16,
618,
2218,
3085,
6134,
13820,
67,
1458,
273,
2618,
364,
1729,
768,
316,
26204,
30,
2907,
18,
588,
3328,
2668,
2620,
22,
881,
373,
16063,
4148,
2668,
7798,
738,
87,
7821,
9,
2620,
768,
13,
16460,
273,
3982,
5164,
12,
2620,
768,
16,
1500,
16,
1140,
18,
803,
18,
5701,
12,
88,
1214,
16,
296,
1745,
19899,
1058,
67,
1458,
16,
26204,
16,
30163,
13,
16460,
18,
19936,
67,
1391,
12,
1391,
13,
16460,
18,
5688,
1435,
13820,
67,
1458,
63,
538,
18,
803,
18,
13909,
12,
15373,
18,
5688,
67,
803,
10756,
65,
273,
521,
306,
87,
364,
272,
316,
16460,
18,
9375,
67,
10218,
10245,
397,
306,
15373,
18,
19403,
16,
16460,
18,
5776,
67,
5212,
16,
16460,
18,
10601,
67,
5212,
65,
309,
272,
353,
486,
599,
65,
225,
2907,
18,
588,
3328,
2668,
2620,
22,
881,
373,
16063,
4148,
2668,
24660,
30163,
7821,
13,
309,
1500,
18,
1969,
67,
5776,
67,
1467,
22,
405,
374,
30,
534,
8371,
1824,
18,
4479,
67,
5776,
67,
1467,
67,
13117,
12,
10218,
10245,
18,
2372,
10756,
364,
589,
16,
3747,
316,
30163,
18,
3319,
13332,
1831,
273,
3869,
12,
5212,
16,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1745,
12,
7540,
5449,
16,
1500,
16,
268,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
538,
18,
803,
18,
5701,
12,
88,
1214,
16,
296,
1745,
2187,
296,
4683,
26112,
1058,
67,
1458,
16,
30163,
273,
10615,
2618,
17919,
273,
8493,
39,
12,
1969,
67,
803,
33,
88,
1214,
16,
618,
2218,
3085,
6134,
13820,
67,
1458,
273,
2618,
364,
1729,
768,
316,
26204,
30,
2907,
18,
588,
3328,
2668,
2620,
22,
881,
373,
16063,
4148,
2668,
7798,
738,
87,
7821,
9,
2620,
768,
13,
16460,
273,
3982,
5164,
12,
2620,
768,
16,
1500,
16,
1140,
18,
803,
18,
5701,
12,
88,
1214,
16,
296,
1745,
19899,
1058,
67,
1458,
16,
26204,
16,
30163,
13,
2
] |
def quiter(ctx, args, this): global interactive interactive = False
|
def quiter(ctx, args, this): global interactive interactive = False
|
bd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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if (not PyUnicode_Check(result)):
|
if (not isinstance(result,unicode)):
|
def PyUnicode_Decode(s,size,encoding,errors): if (encoding == None): encoding = PyUnicode_GetDefaultEncoding()
|
0e540b97b49394c1d38eed66d9b3eec5969d6c9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/0e540b97b49394c1d38eed66d9b3eec5969d6c9a/unicodecodec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4707,
16532,
67,
6615,
12,
87,
16,
1467,
16,
5999,
16,
4324,
4672,
225,
309,
261,
5999,
422,
599,
4672,
2688,
273,
4707,
16532,
67,
967,
1868,
4705,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
el1 = etree.SubElement(root, 'dc:creator')
|
el1 = SubElement(root, 'dc:creator')
|
def create_meta(self): root = etree.Element('office:document-meta', attrib=META_NAMESPACE_DICT) doc = etree.ElementTree(root) root = etree.SubElement(root, 'office:meta') el1 = etree.SubElement(root, 'meta:generator') el1.text = 'Docutils/rst2odf.py/%s' % (VERSION, ) s1 = os.environ.get('USER', '') el1 = etree.SubElement(root, 'meta:initial-creator') el1.text = s1 s2 = time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime()) el1 = etree.SubElement(root, 'meta:creation-date') el1.text = s2 el1 = etree.SubElement(root, 'dc:creator') el1.text = s1 el1 = etree.SubElement(root, 'dc:date') el1.text = s2 el1 = etree.SubElement(root, 'dc:language') el1.text = 'en-US' el1 = etree.SubElement(root, 'meta:editing-cycles') el1.text = '1' el1 = etree.SubElement(root, 'meta:editing-duration') el1.text = 'PT00M01S' title = self.visitor.get_title() el1 = etree.SubElement(root, 'dc:title') if title: el1.text = title else: el1.text = '[no title]' s1 = etree.tostring(doc) #doc = minidom.parseString(s1) #s1 = doc.toprettyxml(' ') return s1
|
57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3901,
12,
2890,
4672,
1365,
273,
12031,
18,
1046,
2668,
19789,
30,
5457,
17,
3901,
2187,
5885,
33,
19294,
67,
11368,
67,
31456,
13,
997,
273,
12031,
18,
1046,
2471,
12,
3085,
13,
1365,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
19789,
30,
3901,
6134,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
8812,
6134,
415,
21,
18,
955,
273,
296,
1759,
5471,
19,
16114,
22,
369,
74,
18,
2074,
5258,
87,
11,
738,
261,
5757,
16,
262,
272,
21,
273,
1140,
18,
28684,
18,
588,
2668,
4714,
2187,
28707,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
6769,
17,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
272,
22,
273,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
5319,
55,
2187,
813,
18,
3729,
957,
10756,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
17169,
17,
712,
6134,
415,
21,
18,
955,
273,
272,
22,
415,
21,
273,
5479,
12,
3085,
16,
296,
7201,
30,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
712,
6134,
415,
21,
18,
955,
273,
272,
22,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
4923,
6134,
415,
21,
18,
955,
273,
296,
275,
17,
3378,
11,
415,
21,
273,
12031,
18,
1676,
1046,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3901,
12,
2890,
4672,
1365,
273,
12031,
18,
1046,
2668,
19789,
30,
5457,
17,
3901,
2187,
5885,
33,
19294,
67,
11368,
67,
31456,
13,
997,
273,
12031,
18,
1046,
2471,
12,
3085,
13,
1365,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
19789,
30,
3901,
6134,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
8812,
6134,
415,
21,
18,
955,
273,
296,
1759,
5471,
19,
16114,
22,
369,
74,
18,
2074,
5258,
87,
11,
738,
261,
5757,
16,
262,
272,
21,
273,
1140,
18,
28684,
18,
588,
2668,
4714,
2187,
28707,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
6769,
17,
20394,
6134,
415,
21,
2
] |
def resolve_internal_targets(self): """ Given:: <paragraph> <reference refname="direct internal"> direct internal <target id="id1" name="direct internal"> The "refname" attribute is replaced by "refid" linking to the target's "id":: <paragraph> <reference refid="id1"> direct internal <target id="id1" name="direct internal"> """
|
class InternalTargets(Transform): """ Given:: <paragraph> <reference refname="direct internal"> direct internal <target id="id1" name="direct internal"> The "refname" attribute is replaced by "refid" linking to the target's "id":: <paragraph> <reference refid="id1"> direct internal <target id="id1" name="direct internal"> """ default_priority = 660 def apply(self):
|
def resolve_internal_targets(self): """ Given::
|
8f79e17adb34ec6ac6e9aef23e7b146a9221ec29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/8f79e17adb34ec6ac6e9aef23e7b146a9221ec29/references.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
67,
7236,
67,
11358,
12,
2890,
4672,
3536,
16803,
2866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: val = `val` if len(val) > maxwidth: val = val[:maxwidth-3] + '...' val = self._text_to_latex(val, 1, 1)
|
try: val = `val`
|
def _pprint_var_value(self, var, maxwidth=100): val = var.uid().value() try: val = `val` if len(val) > maxwidth: val = val[:maxwidth-3] + '...' val = self._text_to_latex(val, 1, 1) except: val = '...' return '\\texttt{%s}' % val
|
f84aee6945de1bd0d9a58c39dc9c17b7755e8f52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/f84aee6945de1bd0d9a58c39dc9c17b7755e8f52/latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
84,
1188,
67,
1401,
67,
1132,
12,
2890,
16,
569,
16,
943,
2819,
33,
6625,
4672,
1244,
273,
569,
18,
1911,
7675,
1132,
1435,
775,
30,
1244,
273,
1375,
1125,
68,
1335,
30,
1244,
273,
20243,
327,
3718,
955,
748,
95,
9,
87,
1713,
738,
1244,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
84,
1188,
67,
1401,
67,
1132,
12,
2890,
16,
569,
16,
943,
2819,
33,
6625,
4672,
1244,
273,
569,
18,
1911,
7675,
1132,
1435,
775,
30,
1244,
273,
1375,
1125,
68,
1335,
30,
1244,
273,
20243,
327,
3718,
955,
748,
95,
9,
87,
1713,
738,
1244,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'process_type_id' :fields.many2one('change.process.type','Type Change'),
|
'process_type_id' :fields.many2one('document.change.process.type','Type Change'),
|
def _latestmodification(self, cr, uid, ids, field_name, arg, context={}): res = {} #TODOto calculate latest modified date from all related documents return res
|
0fee286988daca3188403f8491e42faad892fccb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0fee286988daca3188403f8491e42faad892fccb/document_change.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13550,
31064,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
468,
6241,
869,
4604,
4891,
4358,
1509,
628,
777,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13550,
31064,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
468,
6241,
869,
4604,
4891,
4358,
1509,
628,
777,
3746,
7429,
327,
400,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
file.Write("namespace command_buffer {\n")
|
file.Write("namespace gpu {\n")
|
def WriteNamespaceOpen(self, file): """Writes the code for the namespace.""" file.Write("namespace command_buffer {\n") file.Write("namespace gles2 {\n") file.Write("\n")
|
a7a27ace0760f1ed19016822a45c6ec5300e861c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/a7a27ace0760f1ed19016822a45c6ec5300e861c/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3402,
3678,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
981,
364,
326,
1981,
12123,
585,
18,
3067,
2932,
4937,
21810,
18890,
82,
7923,
585,
18,
3067,
2932,
4937,
314,
1040,
22,
18890,
82,
7923,
585,
18,
3067,
31458,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3402,
3678,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
981,
364,
326,
1981,
12123,
585,
18,
3067,
2932,
4937,
21810,
18890,
82,
7923,
585,
18,
3067,
2932,
4937,
314,
1040,
22,
18890,
82,
7923,
585,
18,
3067,
31458,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
url = string.strip(url)
|
url = url.strip()
|
def unwrap(url): """unwrap('<URL:type://host/path>') --> 'type://host/path'.""" url = string.strip(url) if url[:1] == '<' and url[-1:] == '>': url = string.strip(url[1:-1]) if url[:4] == 'URL:': url = string.strip(url[4:]) return url
|
71b965f6e0b5f68cbaa0e8ee02f092736e43e951 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71b965f6e0b5f68cbaa0e8ee02f092736e43e951/urllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11014,
12,
718,
4672,
3536,
318,
4113,
2668,
32,
1785,
30,
723,
2207,
2564,
19,
803,
1870,
13,
15431,
296,
723,
2207,
2564,
19,
803,
11,
12123,
880,
273,
880,
18,
6406,
1435,
309,
880,
10531,
21,
65,
422,
9138,
471,
880,
18919,
21,
26894,
422,
7481,
30,
880,
273,
533,
18,
6406,
12,
718,
63,
21,
30,
17,
21,
5717,
309,
880,
10531,
24,
65,
422,
296,
1785,
2497,
30,
880,
273,
533,
18,
6406,
12,
718,
63,
24,
30,
5717,
327,
880,
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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435,
309,
880,
10531,
21,
65,
422,
9138,
471,
880,
18919,
21,
26894,
422,
7481,
30,
880,
273,
533,
18,
6406,
12,
718,
63,
21,
30,
17,
21,
5717,
309,
880,
10531,
24,
65,
422,
296,
1785,
2497,
30,
880,
273,
533,
18,
6406,
12,
718,
63,
24,
30,
5717,
327,
880,
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
] |
INPUT::
|
INPUT:
|
def HyperStarGraph(self,n,k): r''' Returns the hyper-star graph HS(n,k). The vertices of the hyper-star graph are the set of binary strings of length n which contain k 1s. Two vertices, u and v, are adjacent only if u can be obtained from v by swapping the first bit with a different symbol in another position. INPUT:: - ``n`` - ``k`` EXAMPLES:: sage: g = graphs.HyperStarGraph(6,3) sage: g.plot() # long time REFERENCES: - Lee, Hyeong-Ok, Jong-Seok Kim, Eunseuk Oh, and Hyeong-Seok Lim. "Hyper-Star Graph: A New Interconnection Network Improving the Network Cost of the Hypercube." In Proceedings of the First EurAsian Conference on Information and Communication Technology, 858-865. Springer-Verlag, 2002. AUTHORS: - Michael Yurko (2009-09-01)
|
8a1fde824a0f61c02dc074d7262b217e10a072d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8a1fde824a0f61c02dc074d7262b217e10a072d2/graph_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18274,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
9512,
17,
10983,
2667,
670,
55,
12,
82,
16,
79,
2934,
225,
1021,
6928,
434,
326,
9512,
17,
10983,
2667,
854,
326,
444,
434,
3112,
2064,
434,
769,
290,
1492,
912,
417,
404,
87,
18,
16896,
6928,
16,
582,
471,
331,
16,
854,
16335,
1338,
309,
582,
848,
506,
12700,
628,
331,
635,
7720,
1382,
326,
1122,
2831,
598,
279,
3775,
3273,
316,
4042,
1754,
18,
225,
12943,
30,
225,
300,
225,
12176,
82,
10335,
225,
300,
225,
12176,
79,
10335,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
314,
273,
19422,
18,
15996,
18379,
4137,
12,
26,
16,
23,
13,
272,
410,
30,
314,
18,
4032,
1435,
468,
1525,
813,
225,
22898,
55,
30,
225,
300,
511,
1340,
16,
14881,
73,
932,
17,
8809,
16,
804,
932,
17,
1761,
601,
1475,
381,
16,
512,
318,
307,
19445,
531,
76,
16,
471,
14881,
73,
932,
17,
1761,
601,
511,
381,
18,
315,
15996,
17,
18379,
5601,
30,
432,
1166,
5294,
4071,
5128,
2221,
685,
6282,
326,
5128,
28108,
434,
326,
18274,
21186,
1199,
657,
1186,
5288,
899,
434,
326,
5783,
512,
295,
1463,
2779,
735,
1134,
603,
15353,
471,
31598,
30960,
4676,
16,
1725,
8204,
17,
5292,
25,
18,
348,
683,
6658,
17,
3945,
22532,
16,
4044,
22,
18,
225,
12790,
14006,
30,
225,
300,
490,
1354,
69,
292,
1624,
20628,
83,
261,
6976,
29,
17,
5908,
17,
1611,
13,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18274,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
9512,
17,
10983,
2667,
670,
55,
12,
82,
16,
79,
2934,
225,
1021,
6928,
434,
326,
9512,
17,
10983,
2667,
854,
326,
444,
434,
3112,
2064,
434,
769,
290,
1492,
912,
417,
404,
87,
18,
16896,
6928,
16,
582,
471,
331,
16,
854,
16335,
1338,
309,
582,
848,
506,
12700,
628,
331,
635,
7720,
1382,
326,
1122,
2831,
598,
279,
3775,
3273,
316,
4042,
1754,
18,
225,
12943,
30,
225,
300,
225,
12176,
82,
10335,
225,
300,
225,
12176,
79,
10335,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
314,
273,
19422,
18,
15996,
18379,
4137,
12,
26,
16,
23,
13,
272,
410,
2
] |
print 'Starting depth %s at %0.2f' % (depth, time())
|
def go (queue): """ Finds and prints the best move from the current position """ searchLock.acquire() try: queue.put(None) # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not movestr: global mytime, increment, scr lsearch.searching = True if mytime == None: mvs, scr = alphaBeta (board, sd) else: # We bet that the game will be about 40 moves. That gives us # starttime / 40 seconds per turn + the incremnt. # TODO: Create more sophisticated method. if mytime <= 60: usetime = float(mytime) / 30 else: usetime = float(mytime) / max((40-len(board.history)/2), 2) usetime = max (usetime, 0.5) # We don't wan't to search for e.g. 0 secs starttime = time() lsearch.endtime = starttime + usetime prevtime = 0 print "Time left: %3.2f seconds; Plan to thinking for %3.2f seconds; Endtime at %0.2f" % \ (mytime, usetime, lsearch.endtime) for depth in range(1, sd+1): # Heuristic time saving # Don't waste time, if the estimated isn't enough to complete next depth if usetime > prevtime*4 or usetime <= 1: print 'Starting depth %s at %0.2f' % (depth, time()) lsearch.timecheck_counter = lsearch.TIMECHECK_FREQ search_result = alphaBeta(board, depth) if lsearch.searching: mvs, scr = search_result if time() > lsearch.endtime: print 'Endtime occured after depth %s' % depth break else: print 'Endtime occured in depth %s' % depth break prevtime = time()-starttime - prevtime else: print 'Not enough time for depth %s' % depth break print 'Move at %0.1f' % time() mytime -= time() - starttime mytime += increment if not mvs: if not lsearch.searching: # We were interupted lsearch.movesearches = 0 lsearch.nodes = 0 searchLock.release() return if lsearch.last == 4: print "resign" else: if scr == 0: print "result", reprResult[DRAW] elif scr < 0: if board.color == WHITE: print "result", reprResult[BLACKWON] else: print "result", reprResult[WHITEWON] else: if board.color == WHITE: print "result", reprResult[WHITEWON] else: print "result", reprResult[BLACKWON] print "last:", lsearch.last, scr return print "moves were:", " ".join(listToSan(board, mvs)), scr lsearch.movesearches = 0 lsearch.nodes = 0 lsearch.searching = False move = mvs[0] print "move", toSAN(board, move) board.applyMove(move) finally: searchLock.release()
|
6195ab01b21d419f1148d6c07190f7630a4d17fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/6195ab01b21d419f1148d6c07190f7630a4d17fb/PyChess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
261,
4000,
4672,
3536,
4163,
87,
471,
14971,
326,
3796,
3635,
628,
326,
783,
1754,
3536,
1623,
2531,
18,
1077,
1039,
1435,
775,
30,
2389,
18,
458,
12,
7036,
13,
468,
2660,
30,
11311,
1123,
1410,
506,
1378,
316,
326,
6978,
18,
468,
605,
11246,
18,
1728,
353,
486,
7304,
18,
6161,
4200,
309,
562,
12,
3752,
18,
8189,
13,
411,
5045,
30,
13934,
313,
273,
28782,
21378,
12,
3752,
13,
309,
13934,
313,
30,
312,
6904,
273,
306,
2670,
22721,
12,
3752,
16,
13934,
313,
25887,
225,
309,
562,
12,
3752,
18,
8189,
13,
1545,
5045,
578,
486,
13934,
313,
30,
225,
2552,
3399,
957,
16,
5504,
16,
11991,
328,
3072,
18,
3072,
310,
273,
1053,
225,
309,
3399,
957,
422,
599,
30,
312,
6904,
16,
11991,
273,
4190,
38,
1066,
261,
3752,
16,
8349,
13,
225,
469,
30,
468,
1660,
2701,
716,
326,
7920,
903,
506,
2973,
8063,
13934,
18,
12466,
14758,
584,
468,
23437,
342,
8063,
3974,
1534,
7005,
397,
326,
7033,
21818,
18,
468,
2660,
30,
1788,
1898,
272,
23169,
5846,
690,
707,
18,
309,
3399,
957,
1648,
4752,
30,
584,
2374,
273,
1431,
12,
4811,
957,
13,
342,
5196,
469,
30,
584,
2374,
273,
1431,
12,
4811,
957,
13,
342,
943,
12443,
7132,
17,
1897,
12,
3752,
18,
8189,
13176,
22,
3631,
576,
13,
584,
2374,
273,
943,
261,
407,
2374,
16,
374,
18,
25,
13,
468,
1660,
2727,
1404,
341,
304,
1404,
358,
1623,
364,
425,
18,
75,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
261,
4000,
4672,
3536,
4163,
87,
471,
14971,
326,
3796,
3635,
628,
326,
783,
1754,
3536,
1623,
2531,
18,
1077,
1039,
1435,
775,
30,
2389,
18,
458,
12,
7036,
13,
468,
2660,
30,
11311,
1123,
1410,
506,
1378,
316,
326,
6978,
18,
468,
605,
11246,
18,
1728,
353,
486,
7304,
18,
6161,
4200,
309,
562,
12,
3752,
18,
8189,
13,
411,
5045,
30,
13934,
313,
273,
28782,
21378,
12,
3752,
13,
309,
13934,
313,
30,
312,
6904,
273,
306,
2670,
22721,
12,
3752,
16,
13934,
313,
25887,
225,
309,
562,
12,
3752,
18,
8189,
13,
1545,
5045,
578,
486,
13934,
313,
30,
225,
2552,
3399,
957,
16,
5504,
16,
11991,
328,
3072,
18,
3072,
310,
273,
1053,
2
] |
|
Draw a frame made of 3D rulers, with major and minor ticks.
|
Draw a frame made of 3-D rulers, with major and minor ticks.
|
def ruler_frame(lower_left, upper_right, ticks=4, sub_ticks=4, **kwds): """ Draw a frame made of 3D rulers, with major and minor ticks. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, or vector - ``ticks`` - (default: 4) the number of major ticks shown on each ruler - ``sub_ticks`` - (default: 4) the number of shown subdivisions between each major tick Type ``line3d.options`` for a dictionary of the default options for lines which are also available. EXAMPLES: A ruler frame:: sage: from sage.plot.plot3d.shapes2 import ruler_frame sage: F = ruler_frame([1,2,3],vector([2,3,4])); F A ruler frame with some options:: sage: F = ruler_frame([1,2,3],vector([2,3,4]),ticks=6, sub_ticks=2, color='red'); F """ return ruler(lower_left, (upper_right[0], lower_left[1], lower_left[2]), ticks=ticks, sub_ticks=sub_ticks, absolute=True, **kwds) \ + ruler(lower_left, (lower_left[0], upper_right[1], lower_left[2]), ticks=ticks, sub_ticks=sub_ticks, absolute=True, **kwds) \ + ruler(lower_left, (lower_left[0], lower_left[1], upper_right[2]), ticks=ticks, sub_ticks=sub_ticks, absolute=True, **kwds)
|
25144c93b092a09ccf947d595af3b9e9d463ccf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/25144c93b092a09ccf947d595af3b9e9d463ccf2/shapes2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
17,
40,
436,
332,
414,
16,
598,
7888,
471,
8439,
13003,
18,
225,
12943,
30,
225,
300,
12176,
8167,
67,
4482,
10335,
300,
326,
2612,
2002,
11055,
434,
326,
2623,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
5797,
67,
4083,
10335,
300,
326,
3854,
2145,
11055,
434,
326,
2623,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
11767,
10335,
300,
261,
1886,
30,
1059,
13,
326,
1300,
434,
7888,
13003,
12188,
603,
1517,
436,
17040,
225,
300,
12176,
1717,
67,
11767,
10335,
300,
261,
1886,
30,
1059,
13,
326,
1300,
434,
12188,
25741,
12682,
3086,
1517,
7888,
4024,
225,
1412,
12176,
1369,
23,
72,
18,
2116,
10335,
364,
279,
3880,
434,
326,
805,
702,
364,
2362,
1492,
854,
2546,
2319,
18,
225,
5675,
8900,
11386,
30,
225,
432,
436,
17040,
2623,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4032,
18,
4032,
23,
72,
18,
17648,
22,
1930,
436,
17040,
67,
3789,
272,
410,
30,
478,
273,
436,
17040,
67,
3789,
3816,
21,
16,
22,
16,
23,
6487,
7737,
3816,
22,
16,
23,
16,
24,
5717,
1769,
478,
225,
432,
436,
17040,
2623,
598,
2690,
702,
2866,
225,
272,
410,
30,
478,
273,
436,
17040,
67,
3789,
3816,
21,
16,
22,
16,
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,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
17,
40,
436,
332,
414,
16,
598,
7888,
471,
8439,
13003,
18,
225,
12943,
30,
225,
300,
12176,
8167,
67,
4482,
10335,
300,
326,
2612,
2002,
11055,
434,
326,
2623,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
5797,
67,
4083,
10335,
300,
326,
3854,
2145,
11055,
434,
326,
2623,
16,
487,
279,
666,
16,
3193,
16,
578,
3806,
225,
300,
12176,
11767,
10335,
300,
261,
1886,
30,
1059,
13,
326,
1300,
434,
7888,
13003,
12188,
603,
1517,
436,
17040,
225,
2
] |
return {'H1':[],'H2':[],'L1':[],'H1H2':[], \ 'H1L1':[],'H2L1':[],'H1H2L1':[]}
|
return {'H1':[],'H2':[],'L1':[],'V1':[],'H1H2':[], 'H1L1':[],'H2L1':[], \ 'H1V1':[],'H2V1':[],'L1V1':[],'H1H2L1':[],'H1H2V1':[], \ 'H1L1V1':[],'H2L1V1':[],'H1H2L1V1':[]}
|
def ifoDict(self): return {'H1':[],'H2':[],'L1':[],'H1H2':[], \ 'H1L1':[],'H2L1':[],'H1H2L1':[]}
|
bbfb9d5951b943975f4b18b4cf9f16aff1996eaa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/bbfb9d5951b943975f4b18b4cf9f16aff1996eaa/fu_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21479,
5014,
12,
2890,
4672,
327,
13666,
44,
21,
4278,
63,
6487,
11,
44,
22,
4278,
63,
6487,
11,
48,
21,
4278,
63,
6487,
11,
44,
21,
44,
22,
4278,
63,
6487,
521,
296,
44,
21,
48,
21,
4278,
63,
6487,
11,
44,
22,
48,
21,
4278,
63,
6487,
11,
44,
21,
44,
22,
48,
21,
4278,
8526,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21479,
5014,
12,
2890,
4672,
327,
13666,
44,
21,
4278,
63,
6487,
11,
44,
22,
4278,
63,
6487,
11,
48,
21,
4278,
63,
6487,
11,
44,
21,
44,
22,
4278,
63,
6487,
521,
296,
44,
21,
48,
21,
4278,
63,
6487,
11,
44,
22,
48,
21,
4278,
63,
6487,
11,
44,
21,
44,
22,
48,
21,
4278,
8526,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.__disk.delete_all()
|
if self.__disk.delete_all(): self._refreshPartitions = True return True else: return False
|
def deleteAllPartitions(self): """Removes and destroys all Partitions in this Disk.""" return self.__disk.delete_all()
|
6c5023786f21173a96a177fedf7b1e979538307b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/6c5023786f21173a96a177fedf7b1e979538307b/disk.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27283,
13738,
12,
2890,
4672,
3536,
6220,
471,
1570,
28599,
777,
6393,
5029,
316,
333,
12951,
12123,
327,
365,
16186,
10863,
18,
3733,
67,
454,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27283,
13738,
12,
2890,
4672,
3536,
6220,
471,
1570,
28599,
777,
6393,
5029,
316,
333,
12951,
12123,
327,
365,
16186,
10863,
18,
3733,
67,
454,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
kernel.build_timed(threads, output = logfile)
|
kernel.build_timed(threads, output=logfile)
|
def execute(self, iterations = 1, threads = None, dir = None, version = None): if not threads: threads = self.job.cpu_count()*2 if dir: build_dir = dir else: build_dir = os.path.join(self.tmpdir, "src") if not os.path.exists(build_dir): os.makedirs(build_dir)
|
c165c11c6c397f0e290ddf6858a3e6d088599bf5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/c165c11c6c397f0e290ddf6858a3e6d088599bf5/kernbench.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
404,
16,
7403,
273,
599,
16,
1577,
273,
599,
16,
1177,
273,
599,
4672,
309,
486,
7403,
30,
7403,
273,
365,
18,
4688,
18,
11447,
67,
1883,
1435,
14,
22,
309,
1577,
30,
1361,
67,
1214,
273,
1577,
469,
30,
1361,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5645,
1214,
16,
315,
4816,
7923,
309,
486,
1140,
18,
803,
18,
1808,
12,
3510,
67,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
3510,
67,
1214,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
404,
16,
7403,
273,
599,
16,
1577,
273,
599,
16,
1177,
273,
599,
4672,
309,
486,
7403,
30,
7403,
273,
365,
18,
4688,
18,
11447,
67,
1883,
1435,
14,
22,
309,
1577,
30,
1361,
67,
1214,
273,
1577,
469,
30,
1361,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5645,
1214,
16,
315,
4816,
7923,
309,
486,
1140,
18,
803,
18,
1808,
12,
3510,
67,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
3510,
67,
1214,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import gui
|
def main(): """NVDA's core main loop.
|
9b9bf7c5411b3f6b8906ee86a76346702a65bdfc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/9b9bf7c5411b3f6b8906ee86a76346702a65bdfc/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
11679,
9793,
1807,
2922,
2774,
2798,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
11679,
9793,
1807,
2922,
2774,
2798,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
stdout_thread.setDaemon(True)
|
stdout_thread.set_daemon(True)
|
def _communicate(self, input): stdout = None # Return stderr = None # Return
|
d0e8e83cfbcadb18e751fb2a4229c0e51df93456 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/d0e8e83cfbcadb18e751fb2a4229c0e51df93456/subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5702,
318,
2659,
12,
2890,
16,
810,
4672,
3909,
273,
599,
468,
2000,
4514,
273,
599,
468,
2000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5702,
318,
2659,
12,
2890,
16,
810,
4672,
3909,
273,
599,
468,
2000,
4514,
273,
599,
468,
2000,
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
] |
elif sys.platform[:5] == "hp-ux":
|
elif sys.platform[:5] == "hp-ux":
|
def runtime_library_dir_option(self, dir): # XXX Hackish, at the very least. See Python bug #445902: # http://sourceforge.net/tracker/index.php # ?func=detail&aid=445902&group_id=5470&atid=105470 # Linkers on different platforms need different options to # specify that directories need to be added to the list of # directories searched for dependencies when a dynamic library # is sought. GCC has to be told to pass the -R option through # to the linker, whereas other compilers just know this. # Other compilers may need something slightly different. At # this time, there's no way to determine this information from # the configuration data stored in the Python installation, so # we use this hack. compiler = os.path.basename(sysconfig.get_config_var("CC")) if sys.platform[:6] == "darwin": # MacOSX's linker doesn't understand the -R flag at all return "-L" + dir elif sys.platform[:5] == "hp-ux": return "+s -L" + dir elif compiler[:3] == "gcc" or compiler[:3] == "g++": return "-Wl,-R" + dir else: return "-R" + dir
|
b27cf34f04461c30d60bc807c118537b02bf010a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b27cf34f04461c30d60bc807c118537b02bf010a/unixccompiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3099,
67,
12083,
67,
1214,
67,
3482,
12,
2890,
16,
1577,
4672,
468,
11329,
670,
484,
1468,
16,
622,
326,
8572,
4520,
18,
225,
2164,
6600,
7934,
468,
6334,
6162,
3103,
30,
468,
1062,
2207,
3168,
1884,
908,
18,
2758,
19,
16543,
19,
1615,
18,
2684,
468,
282,
692,
644,
33,
8992,
10,
20736,
33,
6334,
6162,
3103,
10,
1655,
67,
350,
33,
6564,
7301,
10,
270,
350,
33,
2163,
6564,
7301,
468,
4048,
414,
603,
3775,
17422,
1608,
3775,
702,
358,
468,
4800,
716,
6402,
1608,
358,
506,
3096,
358,
326,
666,
434,
468,
6402,
19242,
364,
5030,
1347,
279,
5976,
5313,
468,
353,
1427,
9540,
18,
225,
611,
6743,
711,
358,
506,
268,
1673,
358,
1342,
326,
300,
54,
1456,
3059,
468,
358,
326,
28058,
16,
1625,
345,
1308,
1161,
330,
414,
2537,
5055,
333,
18,
468,
4673,
1161,
330,
414,
2026,
1608,
5943,
21980,
3775,
18,
225,
2380,
468,
333,
813,
16,
1915,
1807,
1158,
4031,
358,
4199,
333,
1779,
628,
468,
326,
1664,
501,
4041,
316,
326,
6600,
13193,
16,
1427,
468,
732,
999,
333,
11769,
18,
5274,
273,
1140,
18,
803,
18,
13909,
12,
9499,
1425,
18,
588,
67,
1425,
67,
1401,
2932,
6743,
6,
3719,
309,
2589,
18,
9898,
10531,
26,
65,
422,
315,
28076,
6877,
468,
13217,
4618,
60,
1807,
28058,
3302,
1404,
22413,
326,
300,
54,
2982,
622,
777,
327,
3701,
48,
6,
397,
1577,
1327,
2589,
18,
9898,
10531,
25,
65,
422,
315,
15373,
17,
2616,
6877,
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,
3099,
67,
12083,
67,
1214,
67,
3482,
12,
2890,
16,
1577,
4672,
468,
11329,
670,
484,
1468,
16,
622,
326,
8572,
4520,
18,
225,
2164,
6600,
7934,
468,
6334,
6162,
3103,
30,
468,
1062,
2207,
3168,
1884,
908,
18,
2758,
19,
16543,
19,
1615,
18,
2684,
468,
282,
692,
644,
33,
8992,
10,
20736,
33,
6334,
6162,
3103,
10,
1655,
67,
350,
33,
6564,
7301,
10,
270,
350,
33,
2163,
6564,
7301,
468,
4048,
414,
603,
3775,
17422,
1608,
3775,
702,
358,
468,
4800,
716,
6402,
1608,
358,
506,
3096,
358,
326,
666,
434,
468,
6402,
19242,
364,
5030,
1347,
279,
5976,
5313,
468,
353,
1427,
9540,
18,
225,
611,
6743,
711,
358,
506,
268,
1673,
358,
1342,
2
] |
if self.category == 'BUG':
|
if self.category == tr('BUG'):
|
def type(self): if self.category == 'BUG': return 0 elif self.category == 'STUCK': return 1 elif self.category == 'GAMEPLAY': return 2 else: return 3
|
d8b7b7c1b9e926bd4732e104ef67fe1e1cc770bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d8b7b7c1b9e926bd4732e104ef67fe1e1cc770bf/pages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
12,
2890,
4672,
309,
365,
18,
4743,
422,
433,
2668,
4827,
11,
4672,
327,
374,
1327,
365,
18,
4743,
422,
296,
882,
57,
3507,
4278,
327,
404,
1327,
365,
18,
4743,
422,
296,
43,
1642,
52,
7868,
4278,
327,
576,
469,
30,
327,
890,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
12,
2890,
4672,
309,
365,
18,
4743,
422,
433,
2668,
4827,
11,
4672,
327,
374,
1327,
365,
18,
4743,
422,
296,
882,
57,
3507,
4278,
327,
404,
1327,
365,
18,
4743,
422,
296,
43,
1642,
52,
7868,
4278,
327,
576,
469,
30,
327,
890,
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
] |
if debug: print 'Next end tag found at ' + str(pos + next_end_tag.start())
|
if debug: print "Next end tag found at " + str(pos + next_end_tag.start())
|
def get_table(text): pos = 0 # find first start tag first_start_tag = re.search(startR, text) if not first_start_tag: if debug: print 'No table found' pass else: if debug: print 'First start tag found at ' + str(first_start_tag.start()) pos = first_start_tag.end() table_level = 1 remaining_text = text while table_level != 0: remaining_text = text[pos:] next_start_tag = re.search(startR, remaining_text, pos) next_end_tag = re.search(endR, remaining_text, pos) if not next_end_tag: if debug: print 'Error: missing end tag' pass if next_start_tag and next_start_tag.start() < next_end_tag.start(): if debug: print 'Next start tag found at ' + str(pos + next_start_tag.start()) pos += next_start_tag.end() table_level += 1 if debug: print 'Table level is ' + str(table_level) else: if debug: print 'Next end tag found at ' + str(pos + next_end_tag.start()) pos += next_end_tag.end() table_level -= 1 if debug: print 'Table level is ' + str(table_level) if debug: print 'Table starts at ' + str(first_start_tag.start()) + ' and ends at ' + str(pos) if debug: print text[first_start_tag.start():pos] return text[first_start_tag.start():pos]
|
4fdfce26072f0411d6e124ab82fef024a3154034 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4fdfce26072f0411d6e124ab82fef024a3154034/copy_table.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2121,
12,
955,
4672,
949,
273,
374,
468,
1104,
1122,
787,
1047,
1122,
67,
1937,
67,
2692,
273,
283,
18,
3072,
12,
1937,
54,
16,
977,
13,
309,
486,
1122,
67,
1937,
67,
2692,
30,
309,
1198,
30,
1172,
296,
2279,
1014,
1392,
11,
1342,
469,
30,
309,
1198,
30,
1172,
296,
3759,
787,
1047,
1392,
622,
296,
397,
609,
12,
3645,
67,
1937,
67,
2692,
18,
1937,
10756,
949,
273,
1122,
67,
1937,
67,
2692,
18,
409,
1435,
1014,
67,
2815,
273,
404,
4463,
67,
955,
273,
977,
1323,
1014,
67,
2815,
480,
374,
30,
4463,
67,
955,
273,
977,
63,
917,
26894,
1024,
67,
1937,
67,
2692,
273,
283,
18,
3072,
12,
1937,
54,
16,
4463,
67,
955,
16,
949,
13,
1024,
67,
409,
67,
2692,
273,
283,
18,
3072,
12,
409,
54,
16,
4463,
67,
955,
16,
949,
13,
309,
486,
1024,
67,
409,
67,
2692,
30,
309,
1198,
30,
1172,
296,
668,
30,
3315,
679,
1047,
11,
1342,
309,
1024,
67,
1937,
67,
2692,
471,
1024,
67,
1937,
67,
2692,
18,
1937,
1435,
411,
1024,
67,
409,
67,
2692,
18,
1937,
13332,
309,
1198,
30,
1172,
296,
2134,
787,
1047,
1392,
622,
296,
397,
609,
12,
917,
397,
1024,
67,
1937,
67,
2692,
18,
1937,
10756,
949,
1011,
1024,
67,
1937,
67,
2692,
18,
409,
1435,
1014,
67,
2815,
1011,
404,
309,
1198,
30,
1172,
296,
1388,
1801,
353,
296,
397,
609,
12,
2121,
67,
2815,
13,
469,
30,
309,
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,
2121,
12,
955,
4672,
949,
273,
374,
468,
1104,
1122,
787,
1047,
1122,
67,
1937,
67,
2692,
273,
283,
18,
3072,
12,
1937,
54,
16,
977,
13,
309,
486,
1122,
67,
1937,
67,
2692,
30,
309,
1198,
30,
1172,
296,
2279,
1014,
1392,
11,
1342,
469,
30,
309,
1198,
30,
1172,
296,
3759,
787,
1047,
1392,
622,
296,
397,
609,
12,
3645,
67,
1937,
67,
2692,
18,
1937,
10756,
949,
273,
1122,
67,
1937,
67,
2692,
18,
409,
1435,
1014,
67,
2815,
273,
404,
4463,
67,
955,
273,
977,
1323,
1014,
67,
2815,
480,
374,
30,
4463,
67,
955,
273,
977,
63,
917,
26894,
1024,
67,
1937,
67,
2692,
273,
283,
18,
3072,
12,
1937,
54,
2
] |
'WHERE name = %s' \
|
'WHERE name = %s ' \
|
def import_record(self, model, values, fs_id):
|
ba7282c405a39811a159dd8edfcee9f6702fe8d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/ba7282c405a39811a159dd8edfcee9f6702fe8d6/convert.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3366,
12,
2890,
16,
938,
16,
924,
16,
2662,
67,
350,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
def setEndExecTime(self,jobID,endDate=None):
|
def setEndExecTime( self, jobID, endDate = None ):
|
def setEndExecTime(self,jobID,endDate=None): """ Set EndExecTime time stamp """
|
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19743,
1905,
950,
12,
365,
16,
28913,
16,
13202,
273,
599,
262,
30,
3536,
1000,
4403,
1905,
950,
813,
14429,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19743,
1905,
950,
12,
365,
16,
28913,
16,
13202,
273,
599,
262,
30,
3536,
1000,
4403,
1905,
950,
813,
14429,
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
] |
txt = self.doc.createTextNode(datas[atr['value']].decode('utf-8'))
|
txt = self.doc.createTextNode(datas[atr['value']])
|
def parse_result_tree(node, parent, datas): if node.nodeType == node.ELEMENT_NODE: el = self.doc.createElement(node.localName) parent.appendChild(el) atr = self.node_attrs_get(node) if 'value' in atr: if not isinstance(datas[atr['value']], (str, unicode)): txt = self.doc.createTextNode(str(datas[atr['value']])) else: txt = self.doc.createTextNode(datas[atr['value']].decode('utf-8')) el.appendChild(txt) else: el_cld = node.firstChild while el_cld: parse_result_tree(el_cld, el, datas) el_cld = el_cld.nextSibling elif node.nodeType==node.TEXT_NODE: el = self.doc.createTextNode(node.nodeValue) parent.appendChild(el) else: pass
|
a1072bed43b4612a810b9ac3dc5cb190ee487e1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a1072bed43b4612a810b9ac3dc5cb190ee487e1d/print_xml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2088,
67,
3413,
12,
2159,
16,
982,
16,
5386,
4672,
309,
756,
18,
2159,
559,
422,
756,
18,
10976,
67,
8744,
30,
415,
273,
365,
18,
2434,
18,
2640,
1046,
12,
2159,
18,
3729,
461,
13,
982,
18,
6923,
1763,
12,
292,
13,
622,
86,
273,
365,
18,
2159,
67,
7039,
67,
588,
12,
2159,
13,
309,
296,
1132,
11,
316,
622,
86,
30,
309,
486,
1549,
12,
13178,
63,
270,
86,
3292,
1132,
3546,
6487,
261,
701,
16,
5252,
3719,
30,
6463,
273,
365,
18,
2434,
18,
2640,
17299,
12,
701,
12,
13178,
63,
270,
86,
3292,
1132,
3546,
22643,
469,
30,
225,
6463,
273,
365,
18,
2434,
18,
2640,
17299,
12,
13178,
63,
270,
86,
3292,
1132,
3546,
5717,
415,
18,
6923,
1763,
12,
5830,
13,
469,
30,
415,
67,
830,
72,
273,
756,
18,
3645,
1763,
1323,
415,
67,
830,
72,
30,
1109,
67,
2088,
67,
3413,
12,
292,
67,
830,
72,
16,
415,
16,
5386,
13,
415,
67,
830,
72,
273,
415,
67,
830,
72,
18,
4285,
10291,
1327,
756,
18,
2159,
559,
631,
2159,
18,
5151,
67,
8744,
30,
415,
273,
365,
18,
2434,
18,
2640,
17299,
12,
2159,
18,
2159,
620,
13,
982,
18,
6923,
1763,
12,
292,
13,
469,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2088,
67,
3413,
12,
2159,
16,
982,
16,
5386,
4672,
309,
756,
18,
2159,
559,
422,
756,
18,
10976,
67,
8744,
30,
415,
273,
365,
18,
2434,
18,
2640,
1046,
12,
2159,
18,
3729,
461,
13,
982,
18,
6923,
1763,
12,
292,
13,
622,
86,
273,
365,
18,
2159,
67,
7039,
67,
588,
12,
2159,
13,
309,
296,
1132,
11,
316,
622,
86,
30,
309,
486,
1549,
12,
13178,
63,
270,
86,
3292,
1132,
3546,
6487,
261,
701,
16,
5252,
3719,
30,
6463,
273,
365,
18,
2434,
18,
2640,
17299,
12,
701,
12,
13178,
63,
270,
86,
3292,
1132,
3546,
22643,
469,
30,
225,
6463,
273,
365,
18,
2434,
18,
2640,
17299,
12,
13178,
63,
270,
2
] |
if not self.results:
|
if (self.results == None):
|
def getunread(self): if not self.results: self.scan() return self.unread
|
6948f718ab847aa74edb0d4bd19dc64968411422 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3083/6948f718ab847aa74edb0d4bd19dc64968411422/vfolder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
318,
896,
12,
2890,
4672,
309,
261,
2890,
18,
4717,
422,
599,
4672,
365,
18,
9871,
1435,
327,
365,
18,
318,
896,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
318,
896,
12,
2890,
4672,
309,
261,
2890,
18,
4717,
422,
599,
4672,
365,
18,
9871,
1435,
327,
365,
18,
318,
896,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.show_lyrics and self.lyrics_location != self.LYRICS_LOCATION_HOME:
|
if self.show_lyrics and self.lyrics_location != consts.LYRICS_LOCATION_HOME:
|
def prefs_window_response(self, window, response, prefsnotebook, exit_stop, win_ontop, display_art_combo, win_sticky, direntry, minimize, update_start, autoconnect, currentoptions, libraryoptions, titleoptions, currsongoptions1, currsongoptions2, crossfadecheck, crossfadespin, infopath_options, using_mpd_env_vars, prev_host, prev_port, prev_password): if response == gtk.RESPONSE_CLOSE: self.stop_on_exit = exit_stop.get_active() self.ontop = win_ontop.get_active() self.covers_pref = display_art_combo.get_active() self.sticky = win_sticky.get_active() if self.show_lyrics and self.lyrics_location != self.LYRICS_LOCATION_HOME: if not os.path.isdir(misc.file_from_utf8(self.musicdir[self.profile_num])): ui.show_msg(self.window, _("To save lyrics to the music file's directory, you must specify a valid music directory."), _("Music Dir Verification"), 'musicdirVerificationError', gtk.BUTTONS_CLOSE) # Set music_dir entry focused: prefsnotebook.set_current_page(0) direntry.grab_focus() return if self.show_covers and self.art_location != self.ART_LOCATION_HOMECOVERS: if not os.path.isdir(misc.file_from_utf8(self.musicdir[self.profile_num])): ui.show_msg(self.window, _("To save artwork to the music file's directory, you must specify a valid music directory."), _("Music Dir Verification"), 'musicdirVerificationError', gtk.BUTTONS_CLOSE) # Set music_dir entry focused: prefsnotebook.set_current_page(0) direntry.grab_focus() return self.minimize_to_systray = minimize.get_active() self.update_on_start = update_start.get_active() self.autoconnect = autoconnect.get_active() if self.currentformat != currentoptions.get_text(): self.currentformat = currentoptions.get_text() for column in self.current_treeview.get_columns(): self.current_treeview.remove_column(column) self.current.initialize_columns() self.current.update_format() if self.libraryformat != libraryoptions.get_text(): self.libraryformat = libraryoptions.get_text() self.library.library_browse(root=self.wd) if self.titleformat != titleoptions.get_text(): self.titleformat = titleoptions.get_text() self.update_wintitle() if (self.currsongformat1 != currsongoptions1.get_text()) or (self.currsongformat2 != currsongoptions2.get_text()): self.currsongformat1 = currsongoptions1.get_text() self.currsongformat2 = currsongoptions2.get_text() self.update_cursong() if self.window_owner: if self.ontop: self.window.set_keep_above(True) else: self.window.set_keep_above(False) if self.sticky: self.window.stick() else: self.window.unstick() self.xfade = crossfadespin.get_value_as_int() if crossfadecheck.get_active(): self.xfade_enabled = True if self.conn: mpdh.call(self.client, 'crossfade', self.xfade) else: self.xfade_enabled = False if self.conn: mpdh.call(self.client, 'crossfade', 0) if self.infofile_path != infopath_options.get_text(): self.infofile_path = os.path.expanduser(infopath_options.get_text()) if self.use_infofile: self.update_infofile() if not using_mpd_env_vars: if prev_host != self.host[self.profile_num] or prev_port != self.port[self.profile_num] or prev_password != self.password[self.profile_num]: # Try to connect if mpd connection info has been updated: ui.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) self.mpd_connect(force=True) if self.as_enabled: gobject.idle_add(self.scrobbler.init) self.settings_save() self.populate_profiles_for_menu() ui.change_cursor(None) window.destroy()
|
7db37f4b4deed9563bae6ce768b1202d3a5e68f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7db37f4b4deed9563bae6ce768b1202d3a5e68f1/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15503,
67,
5668,
67,
2740,
12,
2890,
16,
2742,
16,
766,
16,
15503,
24422,
16,
2427,
67,
5681,
16,
5657,
67,
1580,
556,
16,
2562,
67,
485,
67,
25053,
16,
5657,
67,
334,
13055,
16,
302,
577,
82,
698,
16,
18935,
16,
1089,
67,
1937,
16,
2059,
16550,
2517,
16,
783,
2116,
16,
5313,
2116,
16,
2077,
2116,
16,
4306,
816,
75,
2116,
21,
16,
4306,
816,
75,
2116,
22,
16,
6828,
507,
323,
1893,
16,
6828,
74,
16601,
13097,
16,
8286,
556,
421,
67,
2116,
16,
1450,
67,
1291,
72,
67,
3074,
67,
4699,
16,
2807,
67,
2564,
16,
2807,
67,
655,
16,
2807,
67,
3664,
4672,
309,
766,
422,
22718,
18,
14508,
67,
13384,
30,
365,
18,
5681,
67,
265,
67,
8593,
273,
2427,
67,
5681,
18,
588,
67,
3535,
1435,
365,
18,
1580,
556,
273,
5657,
67,
1580,
556,
18,
588,
67,
3535,
1435,
365,
18,
14014,
414,
67,
25724,
273,
2562,
67,
485,
67,
25053,
18,
588,
67,
3535,
1435,
365,
18,
334,
13055,
273,
5657,
67,
334,
13055,
18,
588,
67,
3535,
1435,
309,
365,
18,
4500,
67,
715,
1512,
87,
471,
365,
18,
715,
1512,
87,
67,
3562,
480,
15677,
18,
7076,
2259,
4596,
67,
15277,
67,
14209,
30,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
23667,
18,
768,
67,
2080,
67,
3158,
28,
12,
2890,
18,
81,
14894,
1214,
63,
2890,
18,
5040,
67,
2107,
22643,
30,
5915,
18,
4500,
67,
3576,
12,
2890,
18,
5668,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15503,
67,
5668,
67,
2740,
12,
2890,
16,
2742,
16,
766,
16,
15503,
24422,
16,
2427,
67,
5681,
16,
5657,
67,
1580,
556,
16,
2562,
67,
485,
67,
25053,
16,
5657,
67,
334,
13055,
16,
302,
577,
82,
698,
16,
18935,
16,
1089,
67,
1937,
16,
2059,
16550,
2517,
16,
783,
2116,
16,
5313,
2116,
16,
2077,
2116,
16,
4306,
816,
75,
2116,
21,
16,
4306,
816,
75,
2116,
22,
16,
6828,
507,
323,
1893,
16,
6828,
74,
16601,
13097,
16,
8286,
556,
421,
67,
2116,
16,
1450,
67,
1291,
72,
67,
3074,
67,
4699,
16,
2807,
67,
2564,
16,
2807,
67,
655,
16,
2807,
67,
3664,
4672,
309,
766,
422,
22718,
18,
14508,
67,
13384,
30,
365,
2
] |
html_theme_options = {'stickysidebar':'true'}
|
html_theme_options = {'stickysidebar':'true','collapsiblesidebar':'true','rightsidebar':'false'}
|
def setup(app): from sphinx.highlighting import lexers from pygments.lexers.compiled import CppLexer lexers['cpp'] = CppLexer(tabsize=3) lexers['c++'] = CppLexer(tabsize=3) from pygments.lexers.agile import PythonLexer lexers['python'] = PythonLexer(tabsize=3) app.connect('source-read',fixSrc) app.connect('autodoc-skip-member',customExclude) app.connect('autodoc-process-signature',fixSignature) app.connect('autodoc-process-docstring',fixDocstring) app.add_description_unit('ystaticattr',None,objname='static attribute',indextemplate='pair: %s; static method',parse_node=parse_ystaticattr)
|
17254a8cd489eb47f98883f224b0f6c931c6c0e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2081/17254a8cd489eb47f98883f224b0f6c931c6c0e0/conf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2910,
4672,
628,
26296,
18,
15978,
310,
1930,
5275,
414,
628,
2395,
75,
1346,
18,
4149,
414,
18,
19397,
1930,
385,
11858,
13356,
5275,
414,
3292,
4057,
84,
3546,
273,
385,
11858,
13356,
12,
7032,
1467,
33,
23,
13,
5275,
414,
3292,
71,
9904,
3546,
273,
385,
11858,
13356,
12,
7032,
1467,
33,
23,
13,
628,
2395,
75,
1346,
18,
4149,
414,
18,
346,
398,
1930,
6600,
13356,
5275,
414,
3292,
8103,
3546,
273,
6600,
13356,
12,
7032,
1467,
33,
23,
13,
225,
595,
18,
3612,
2668,
3168,
17,
896,
2187,
904,
7740,
13,
225,
595,
18,
3612,
2668,
5854,
369,
504,
17,
7457,
17,
5990,
2187,
3662,
12689,
13,
595,
18,
3612,
2668,
5854,
369,
504,
17,
2567,
17,
8195,
2187,
904,
5374,
13,
595,
18,
3612,
2668,
5854,
369,
504,
17,
2567,
17,
24675,
2187,
904,
1759,
1080,
13,
595,
18,
1289,
67,
3384,
67,
4873,
2668,
1094,
2126,
1747,
2187,
7036,
16,
2603,
529,
2218,
3845,
1566,
2187,
1615,
3202,
2218,
6017,
30,
738,
87,
31,
760,
707,
2187,
2670,
67,
2159,
33,
2670,
67,
1094,
2126,
1747,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2910,
4672,
628,
26296,
18,
15978,
310,
1930,
5275,
414,
628,
2395,
75,
1346,
18,
4149,
414,
18,
19397,
1930,
385,
11858,
13356,
5275,
414,
3292,
4057,
84,
3546,
273,
385,
11858,
13356,
12,
7032,
1467,
33,
23,
13,
5275,
414,
3292,
71,
9904,
3546,
273,
385,
11858,
13356,
12,
7032,
1467,
33,
23,
13,
628,
2395,
75,
1346,
18,
4149,
414,
18,
346,
398,
1930,
6600,
13356,
5275,
414,
3292,
8103,
3546,
273,
6600,
13356,
12,
7032,
1467,
33,
23,
13,
225,
595,
18,
3612,
2668,
3168,
17,
896,
2187,
904,
7740,
13,
225,
595,
18,
3612,
2668,
5854,
369,
504,
17,
7457,
17,
5990,
2187,
3662,
12689,
13,
595,
18,
3612,
2668,
5854,
369,
2
] |
dst = thumbnail_dir + '/failed/pyimlib/'
|
dst = thumbnail_dir + '/failed/pyimlib2/'
|
def thumbnail_create(src, thumbnail_dir = ''): """ Create a freedesktop.org thumbnail. """ if thumbnail_dir: dst = thumbnail_dir + '/large/' if not os.path.isdir(dst): os.makedirs(dst, 0700) dst = dst + md5.md5('file://' + src).hexdigest() + '.' else: dst = _thumbnail_dir + md5.md5('file://' + src).hexdigest() + '.' if src.lower().endswith('jpg'): try: _Imlib2.epeg_thumbnail(src, dst + 'jpg', (256,256)) return dst + 'jpg' except IOError: pass try: _Imlib2.png_thumbnail(src, dst + 'png', (256,256)) return dst + 'png' except: # image is broken if thumbnail_dir: dst = thumbnail_dir + '/failed/pyimlib/' if not os.path.isdir(dst): os.makedirs(dst, 0700) dst = dst + md5.md5('file://' + src).hexdigest() + '.png' else: dst = _failed_dir + md5.md5('file://' + src).hexdigest() + '.png' _Imlib2.fail_thumbnail(src, dst) return dst
|
60c6ea02526356ad5e79eb15934abdab1dc9107d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/60c6ea02526356ad5e79eb15934abdab1dc9107d/Imlib2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9134,
67,
2640,
12,
4816,
16,
9134,
67,
1214,
273,
875,
4672,
3536,
1788,
279,
28004,
281,
11869,
18,
3341,
9134,
18,
3536,
309,
9134,
67,
1214,
30,
3046,
273,
9134,
67,
1214,
397,
1173,
14095,
2473,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
11057,
4672,
1140,
18,
81,
9477,
10539,
12,
11057,
16,
10934,
713,
13,
3046,
273,
3046,
397,
3481,
25,
18,
1264,
25,
2668,
768,
8931,
397,
1705,
2934,
7118,
10171,
1435,
397,
2611,
469,
30,
3046,
273,
389,
14904,
67,
1214,
397,
3481,
25,
18,
1264,
25,
2668,
768,
8931,
397,
1705,
2934,
7118,
10171,
1435,
397,
2611,
309,
1705,
18,
8167,
7675,
5839,
1918,
2668,
14362,
11,
4672,
775,
30,
389,
45,
781,
495,
22,
18,
73,
9001,
67,
14904,
12,
4816,
16,
3046,
397,
296,
14362,
2187,
261,
5034,
16,
5034,
3719,
327,
3046,
397,
296,
14362,
11,
1335,
8340,
30,
1342,
775,
30,
389,
45,
781,
495,
22,
18,
6446,
67,
14904,
12,
4816,
16,
3046,
397,
296,
6446,
2187,
261,
5034,
16,
5034,
3719,
327,
3046,
397,
296,
6446,
11,
1335,
30,
468,
1316,
353,
12933,
309,
9134,
67,
1214,
30,
3046,
273,
9134,
67,
1214,
397,
1173,
7307,
19,
2074,
381,
2941,
22,
2473,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
11057,
4672,
1140,
18,
81,
9477,
10539,
12,
11057,
16,
10934,
713,
13,
3046,
273,
3046,
397,
3481,
25,
18,
1264,
25,
2668,
768,
8931,
397,
1705,
2934,
7118,
10171,
1435,
397,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9134,
67,
2640,
12,
4816,
16,
9134,
67,
1214,
273,
875,
4672,
3536,
1788,
279,
28004,
281,
11869,
18,
3341,
9134,
18,
3536,
309,
9134,
67,
1214,
30,
3046,
273,
9134,
67,
1214,
397,
1173,
14095,
2473,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
11057,
4672,
1140,
18,
81,
9477,
10539,
12,
11057,
16,
10934,
713,
13,
3046,
273,
3046,
397,
3481,
25,
18,
1264,
25,
2668,
768,
8931,
397,
1705,
2934,
7118,
10171,
1435,
397,
2611,
469,
30,
3046,
273,
389,
14904,
67,
1214,
397,
3481,
25,
18,
1264,
25,
2668,
768,
8931,
397,
1705,
2934,
7118,
10171,
1435,
397,
2611,
309,
1705,
18,
8167,
7675,
5839,
1918,
2668,
14362,
11,
4672,
775,
30,
389,
2
] |
if len(line) >= 3: if (line[:3] == '"""' or line[:3] == "'''"): if line[-3:] == line[:3]: continue incomment = line[:3] continue if line[0] != '
|
if brackets <= 0 and line[0] not in (' break
|
def checkline(self, filename, lineno): """Return line number of first line at or after input argument such that if the input points to a 'def', the returned line number is the first non-blank/non-comment line to follow. If the input points to a blank or comment line, return 0. At end of file, also return 0."""
|
324b341bb176b2e1a3ded859d41ac23010744cc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/324b341bb176b2e1a3ded859d41ac23010744cc6/pdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1369,
12,
2890,
16,
1544,
16,
7586,
4672,
3536,
990,
980,
1300,
434,
1122,
980,
622,
578,
1839,
810,
1237,
4123,
716,
309,
326,
810,
3143,
358,
279,
296,
536,
2187,
326,
2106,
980,
1300,
353,
326,
1122,
1661,
17,
12111,
19,
5836,
17,
3469,
980,
358,
2805,
18,
225,
971,
326,
810,
3143,
358,
279,
7052,
578,
2879,
980,
16,
327,
374,
18,
225,
2380,
679,
434,
585,
16,
2546,
327,
374,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1369,
12,
2890,
16,
1544,
16,
7586,
4672,
3536,
990,
980,
1300,
434,
1122,
980,
622,
578,
1839,
810,
1237,
4123,
716,
309,
326,
810,
3143,
358,
279,
296,
536,
2187,
326,
2106,
980,
1300,
353,
326,
1122,
1661,
17,
12111,
19,
5836,
17,
3469,
980,
358,
2805,
18,
225,
971,
326,
810,
3143,
358,
279,
7052,
578,
2879,
980,
16,
327,
374,
18,
225,
2380,
679,
434,
585,
16,
2546,
327,
374,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.layer is None:
|
if self.layer is None or self.updating:
|
def gui_refresh(self, *args): if self.layer is None: return
|
30093beb2981ba47380749a3f1c597965f66f39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/30093beb2981ba47380749a3f1c597965f66f39e/gvrasterpropdlg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13238,
67,
9144,
12,
2890,
16,
380,
1968,
4672,
309,
365,
18,
6363,
353,
599,
578,
365,
18,
5533,
1776,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13238,
67,
9144,
12,
2890,
16,
380,
1968,
4672,
309,
365,
18,
6363,
353,
599,
578,
365,
18,
5533,
1776,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, aspect_ratio=[1,1,1], **kwds)
|
if 'aspect_ratio' not in kwds: kwds['aspect_ratio'] = [1,1,1] return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, **kwds)
|
def tetrahedron(center=(0,0,0), size=1, **kwds): """ A 3d tetrahedron. INPUTS: center -- (default: (0,0,0)) size -- (default: 1) color -- a word that describes a color rgbcolor -- (r,g,b) with r, g, b between 0 and 1 that describes a color opacity -- (default: 1) if less than 1 then is transparent EXAMPLES: A default colored tetrahedron at the origin: sage: tetrahedron() A transparent green tetrahedron in front of a solid red one: sage: tetrahedron(opacity=0.8, color='green') + tetrahedron((-2,1,0),color='red') A translucent tetrahedron sharing space with a sphere: sage: tetrahedron(color='yellow',opacity=0.7) + sphere(r=.5, color='red') A big tetrahedron: sage: tetrahedron(size=10) A wide tetrahedron: sage: tetrahedron(aspect_ratio=[1,1,1]).scale((4,4,1)) A red and blue tetrahedron touching noses: sage: tetrahedron(color='red') + tetrahedron((0,0,-2)).scale([1,1,-1]) AUTHOR: -- Robert Bradshaw and William Stein """ RR = RDF one = RR(1) sqrt2 = RR(2).sqrt() sqrt6 = RR(6).sqrt() point_list = [(0,0,1), (2*sqrt2/3, 0, -one/3), ( -sqrt2/3, sqrt6/3, -one/3), ( -sqrt2/3, -sqrt6/3, -one/3)] face_list = [[0,1,2],[1,3,2],[0,2,3],[0,3,1]] return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, aspect_ratio=[1,1,1], **kwds)
|
b07e23896f226c4ad242e2bff78468927abfdd39 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b07e23896f226c4ad242e2bff78468927abfdd39/platonic.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
30710,
18550,
1949,
12,
5693,
28657,
20,
16,
20,
16,
20,
3631,
963,
33,
21,
16,
2826,
25577,
4672,
3536,
432,
890,
72,
268,
30710,
18550,
1949,
18,
225,
12943,
55,
30,
4617,
1493,
261,
1886,
30,
261,
20,
16,
20,
16,
20,
3719,
963,
1493,
261,
1886,
30,
404,
13,
2036,
1493,
279,
2076,
716,
19605,
279,
2036,
6917,
3266,
1493,
261,
86,
16,
75,
16,
70,
13,
598,
436,
16,
314,
16,
324,
3086,
374,
471,
404,
716,
19605,
279,
2036,
12636,
1493,
261,
1886,
30,
404,
13,
309,
5242,
2353,
404,
1508,
353,
17270,
225,
5675,
8900,
11386,
30,
432,
805,
19757,
268,
30710,
18550,
1949,
622,
326,
4026,
30,
272,
410,
30,
268,
30710,
18550,
1949,
1435,
225,
432,
17270,
10004,
268,
30710,
18550,
1949,
316,
6641,
434,
279,
18035,
1755,
1245,
30,
272,
410,
30,
268,
30710,
18550,
1949,
12,
19515,
33,
20,
18,
28,
16,
2036,
2218,
11571,
6134,
397,
268,
30710,
18550,
1949,
12443,
17,
22,
16,
21,
16,
20,
3631,
3266,
2218,
1118,
6134,
225,
432,
2162,
89,
2998,
268,
30710,
18550,
1949,
21001,
3476,
598,
279,
20041,
30,
272,
410,
30,
268,
30710,
18550,
1949,
12,
3266,
2218,
19227,
2187,
19515,
33,
20,
18,
27,
13,
397,
20041,
12,
86,
33,
18,
25,
16,
2036,
2218,
1118,
6134,
282,
432,
5446,
268,
30710,
18550,
1949,
30,
272,
410,
30,
268,
30710,
18550,
1949,
12,
1467,
33,
2163,
13,
225,
432,
14812,
268,
30710,
18550,
1949,
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,
268,
30710,
18550,
1949,
12,
5693,
28657,
20,
16,
20,
16,
20,
3631,
963,
33,
21,
16,
2826,
25577,
4672,
3536,
432,
890,
72,
268,
30710,
18550,
1949,
18,
225,
12943,
55,
30,
4617,
1493,
261,
1886,
30,
261,
20,
16,
20,
16,
20,
3719,
963,
1493,
261,
1886,
30,
404,
13,
2036,
1493,
279,
2076,
716,
19605,
279,
2036,
6917,
3266,
1493,
261,
86,
16,
75,
16,
70,
13,
598,
436,
16,
314,
16,
324,
3086,
374,
471,
404,
716,
19605,
279,
2036,
12636,
1493,
261,
1886,
30,
404,
13,
309,
5242,
2353,
404,
1508,
353,
17270,
225,
5675,
8900,
11386,
30,
432,
805,
19757,
268,
30710,
18550,
1949,
622,
326,
4026,
30,
272,
410,
30,
268,
2
] |
def _fix_legend(self, legend):
|
def _fix_latex(self, legend):
|
def _fix_legend(self, legend): """Enclose legend in $$ if latex syntax is detected.""" legend = legend.strip() if len(legend) >= 2 and legend[0] !='$' and legend[-1] != '$': chars = '\\', '^', '_' latex = False for c in chars: if c in legend: latex = True break if latex: legend = '$' + legend + '$' # fix sin, cos, exp, ln, log, etc: def _fix_func(func, newfunc, legend): if re.search(r'[^\\]'+func, legend): legend = legend.replace(func, '\\'+newfunc) return legend funcs = 'sin', 'cos', 'tan', 'exp', 'ln', 'log', \ 'sinh', 'cosh', 'tanh' for func in funcs: legend = _fix_func(func, func, legend) funcs = [('atan', 'arctan'), ('asin', 'arcsin'), ('acos', 'arccos'),] for func, newfunc in funcs: legend = _fix_func(func, newfunc, legend)
|
b042009462bcf36c413bbe6a4bcd923c6ff0dea7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4727/b042009462bcf36c413bbe6a4bcd923c6ff0dea7/matplotlib_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
26264,
12,
2890,
16,
7241,
4672,
3536,
4280,
2061,
7241,
316,
5366,
309,
25079,
6279,
353,
8316,
12123,
7241,
273,
7241,
18,
6406,
1435,
309,
562,
12,
16292,
13,
1545,
576,
471,
7241,
63,
20,
65,
480,
11,
9227,
471,
7241,
18919,
21,
65,
480,
3365,
4278,
5230,
273,
3718,
2187,
10731,
2187,
4427,
25079,
273,
1083,
364,
276,
316,
5230,
30,
309,
276,
316,
7241,
30,
25079,
273,
1053,
898,
309,
25079,
30,
7241,
273,
11874,
397,
7241,
397,
11874,
468,
2917,
5367,
16,
4987,
16,
1329,
16,
7211,
16,
613,
16,
5527,
30,
1652,
389,
904,
67,
644,
12,
644,
16,
394,
644,
16,
7241,
4672,
309,
283,
18,
3072,
12,
86,
11,
5969,
1695,
3864,
15,
644,
16,
7241,
4672,
7241,
273,
7241,
18,
2079,
12,
644,
16,
5282,
15,
2704,
644,
13,
327,
7241,
15630,
273,
296,
21861,
2187,
296,
14445,
2187,
296,
88,
304,
2187,
296,
2749,
2187,
296,
2370,
2187,
296,
1330,
2187,
521,
296,
21861,
76,
2187,
296,
14445,
76,
2187,
296,
88,
304,
76,
11,
364,
1326,
316,
15630,
30,
7241,
273,
389,
904,
67,
644,
12,
644,
16,
1326,
16,
7241,
13,
15630,
273,
306,
2668,
270,
304,
2187,
296,
297,
299,
304,
19899,
7707,
345,
267,
2187,
296,
297,
2143,
267,
19899,
7707,
1077,
538,
2187,
296,
297,
952,
538,
19899,
65,
364,
1326,
16,
394,
644,
316,
15630,
30,
7241,
273,
389,
904,
67,
644,
12,
644,
16,
394,
644,
16,
7241,
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,
904,
67,
26264,
12,
2890,
16,
7241,
4672,
3536,
4280,
2061,
7241,
316,
5366,
309,
25079,
6279,
353,
8316,
12123,
7241,
273,
7241,
18,
6406,
1435,
309,
562,
12,
16292,
13,
1545,
576,
471,
7241,
63,
20,
65,
480,
11,
9227,
471,
7241,
18919,
21,
65,
480,
3365,
4278,
5230,
273,
3718,
2187,
10731,
2187,
4427,
25079,
273,
1083,
364,
276,
316,
5230,
30,
309,
276,
316,
7241,
30,
25079,
273,
1053,
898,
309,
25079,
30,
7241,
273,
11874,
397,
7241,
397,
11874,
468,
2917,
5367,
16,
4987,
16,
1329,
16,
7211,
16,
613,
16,
5527,
30,
1652,
389,
904,
67,
644,
12,
644,
16,
394,
644,
16,
7241,
4672,
309,
283,
18,
3072,
12,
86,
11,
2
] |
error_handler=log.err)
|
error_handler=d.errback)
|
def get_contact_cb(reply): reply = list(reply) self.assertIn(name, reply) self.assertIn(number, reply) self.assertIn(index, reply)
|
45c00959c14e666ef31b3f93137f14e6d66959e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/45c00959c14e666ef31b3f93137f14e6d66959e4/test_dbus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8994,
67,
7358,
12,
10629,
4672,
4332,
273,
666,
12,
10629,
13,
365,
18,
11231,
382,
12,
529,
16,
4332,
13,
365,
18,
11231,
382,
12,
2696,
16,
4332,
13,
365,
18,
11231,
382,
12,
1615,
16,
4332,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8994,
67,
7358,
12,
10629,
4672,
4332,
273,
666,
12,
10629,
13,
365,
18,
11231,
382,
12,
529,
16,
4332,
13,
365,
18,
11231,
382,
12,
2696,
16,
4332,
13,
365,
18,
11231,
382,
12,
1615,
16,
4332,
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
] |
C{r.Create('%(localstatedir)s/log/acpid', mode=0640)} Demonstrates calling C{r.Create()} specifying the creation of C{%(localstatedir)s/log/acpid} with mode C{0640}.
|
C{r.MakeFIFO('/path/to/fifo', mode=0640)} Demonstrates calling C{r.MakeFIFO()} specifying the creation of C{/path/to/fifo} with mode C{0640}.
|
def do(self, macros): for arg in self.args: # specified license and file if isinstance(arg,tuple): if not os.path.isfile(arg[0]): raise RuntimeError, arg[0]+' is not a normal file' text = open(arg[0]).read() self.writeLicenses(text,arg[1])
|
ca4645f7069c3d8b2fb90cb718f3d09ca707561e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/ca4645f7069c3d8b2fb90cb718f3d09ca707561e/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
24302,
4672,
364,
1501,
316,
365,
18,
1968,
30,
468,
1269,
8630,
471,
585,
309,
1549,
12,
3175,
16,
8052,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
3175,
63,
20,
65,
4672,
1002,
7265,
16,
1501,
63,
20,
30658,
353,
486,
279,
2212,
585,
11,
977,
273,
1696,
12,
3175,
63,
20,
65,
2934,
896,
1435,
365,
18,
2626,
48,
16548,
12,
955,
16,
3175,
63,
21,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
24302,
4672,
364,
1501,
316,
365,
18,
1968,
30,
468,
1269,
8630,
471,
585,
309,
1549,
12,
3175,
16,
8052,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
3175,
63,
20,
65,
4672,
1002,
7265,
16,
1501,
63,
20,
30658,
353,
486,
279,
2212,
585,
11,
977,
273,
1696,
12,
3175,
63,
20,
65,
2934,
896,
1435,
365,
18,
2626,
48,
16548,
12,
955,
16,
3175,
63,
21,
5717,
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
] |
host = '127.0.0.1' port = 19999 while 1:
|
for i in range(NPORTS): trigger.portoffset = (trigger.portoffset + 1) % NPORTS port = MINPORT + trigger.portoffset address = (HOST, port)
|
def __init__(self): a = socket.socket(socket.AF_INET, socket.SOCK_STREAM) w = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
4ff0c9ad8086c2bdec7550cb4c139175ca92a708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/4ff0c9ad8086c2bdec7550cb4c139175ca92a708/trigger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
279,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
341,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
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,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18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
341,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
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
] |
'\\end_inset']
|
'\\end_inset']
|
def convert_pagebreaks(document): ' Convert inline Newpage insets to new format ' i = 0 while True: i = find_token(document.body, '\\newpage', i) if i == -1: break document.body[i:i+1] = ['\\begin_inset Newpage newpage', '\\end_inset'] i = 0 while True: i = find_token(document.body, '\\pagebreak', i) if i == -1: break document.body[i:i+1] = ['\\begin_inset Newpage pagebreak', '\\end_inset'] i = 0 while True: i = find_token(document.body, '\\clearpage', i) if i == -1: break document.body[i:i+1] = ['\\begin_inset Newpage clearpage', '\\end_inset'] i = 0 while True: i = find_token(document.body, '\\cleardoublepage', i) if i == -1: break document.body[i:i+1] = ['\\begin_inset Newpage cleardoublepage', '\\end_inset']
|
a97fbaa6858229f4bef56786ffb07688ef5a4d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/a97fbaa6858229f4bef56786ffb07688ef5a4d82/lyx_1_6.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2433,
29292,
12,
5457,
4672,
296,
4037,
6370,
1166,
2433,
23576,
358,
394,
740,
296,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
2704,
2433,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
898,
1668,
18,
3432,
63,
77,
30,
77,
15,
21,
65,
273,
10228,
1695,
10086,
67,
267,
542,
1166,
2433,
394,
2433,
2187,
3718,
409,
67,
267,
542,
3546,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
2433,
8820,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
898,
1668,
18,
3432,
63,
77,
30,
77,
15,
21,
65,
273,
10228,
1695,
10086,
67,
267,
542,
1166,
2433,
1363,
8820,
2187,
3718,
409,
67,
267,
542,
3546,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
8507,
2433,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
898,
1668,
18,
3432,
63,
77,
30,
77,
15,
21,
65,
273,
10228,
1695,
10086,
67,
267,
542,
1166,
2433,
2424,
2433,
2187,
3718,
409,
67,
267,
542,
3546,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
2131,
1060,
83,
1255,
2433,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
898,
1668,
18,
3432,
63,
77,
30,
77,
15,
21,
65,
273,
10228,
1695,
10086,
67,
267,
542,
1166,
2433,
1619,
1060,
83,
1255,
2433,
2187,
3718,
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,
1765,
67,
2433,
29292,
12,
5457,
4672,
296,
4037,
6370,
1166,
2433,
23576,
358,
394,
740,
296,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
2704,
2433,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
898,
1668,
18,
3432,
63,
77,
30,
77,
15,
21,
65,
273,
10228,
1695,
10086,
67,
267,
542,
1166,
2433,
394,
2433,
2187,
3718,
409,
67,
267,
542,
3546,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
2433,
8820,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
898,
1668,
18,
3432,
63,
77,
30,
77,
15,
21,
65,
273,
10228,
1695,
10086,
67,
2
] |
recording.autoincrease = False
|
self.recording[self.selectedEntry].autoincrease = False
|
def TimeDateInputClosed(self, ret): if len(ret) > 1: if ret[0]: localendtime = localtime(ret[1]) print "stopping recording at", strftime("%c", localendtime) if self.recording[self.selectedEntry].end != ret[1]: recording.autoincrease = False self.recording[self.selectedEntry].end = ret[1] self.session.nav.RecordTimer.timeChanged(self.recording[self.selectedEntry])
|
0663e43025ddbeb02efc57343b10e1304681c290 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/0663e43025ddbeb02efc57343b10e1304681c290/InfoBarGenerics.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2647,
1626,
1210,
7395,
12,
2890,
16,
325,
4672,
309,
562,
12,
1349,
13,
405,
404,
30,
309,
325,
63,
20,
14542,
1191,
409,
957,
273,
1191,
957,
12,
1349,
63,
21,
5717,
1172,
315,
5681,
1382,
14949,
622,
3113,
10405,
27188,
71,
3113,
1191,
409,
957,
13,
309,
365,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
8009,
409,
480,
325,
63,
21,
14542,
365,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
8009,
5854,
885,
11908,
273,
1083,
365,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
8009,
409,
273,
325,
63,
21,
65,
365,
18,
3184,
18,
11589,
18,
2115,
6777,
18,
957,
5033,
12,
2890,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2647,
1626,
1210,
7395,
12,
2890,
16,
325,
4672,
309,
562,
12,
1349,
13,
405,
404,
30,
309,
325,
63,
20,
14542,
1191,
409,
957,
273,
1191,
957,
12,
1349,
63,
21,
5717,
1172,
315,
5681,
1382,
14949,
622,
3113,
10405,
27188,
71,
3113,
1191,
409,
957,
13,
309,
365,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
8009,
409,
480,
325,
63,
21,
14542,
365,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
8009,
5854,
885,
11908,
273,
1083,
365,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
8009,
409,
273,
325,
63,
21,
65,
365,
18,
3184,
18,
11589,
18,
2115,
6777,
18,
957,
5033,
12,
2890,
18,
3366,
310,
63,
2890,
18,
8109,
1622,
5717,
2
] |
mypath = " ".join(mypath[:-1],"/")
|
mypath = "/".join(mypath[:-1])
|
def capture(self): if self.check_autoresume("capture"): msg("Resume point detected, skipping capture operation...") else: """ Capture target in a tarball """ mypath=self.settings["target_path"].split("/") """ Remove filename from path """ mypath = " ".join(mypath[:-1],"/")
|
c5f5c64a5045a6291b2be9dacbc6b837112b91e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7327/c5f5c64a5045a6291b2be9dacbc6b837112b91e7/generic_stage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7477,
12,
2890,
4672,
309,
365,
18,
1893,
67,
6079,
25158,
2932,
19250,
6,
4672,
1234,
2932,
20911,
1634,
8316,
16,
14195,
7477,
1674,
7070,
13,
469,
30,
3536,
18477,
1018,
316,
279,
29441,
3536,
3399,
803,
33,
2890,
18,
4272,
9614,
3299,
67,
803,
6,
8009,
4939,
2932,
4898,
13,
3536,
3581,
1544,
628,
589,
3536,
3399,
803,
273,
315,
3552,
5701,
12,
4811,
803,
10531,
17,
21,
6487,
6,
4898,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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2890,
4672,
309,
365,
18,
1893,
67,
6079,
25158,
2932,
19250,
6,
4672,
1234,
2932,
20911,
1634,
8316,
16,
14195,
7477,
1674,
7070,
13,
469,
30,
3536,
18477,
1018,
316,
279,
29441,
3536,
3399,
803,
33,
2890,
18,
4272,
9614,
3299,
67,
803,
6,
8009,
4939,
2932,
4898,
13,
3536,
3581,
1544,
628,
589,
3536,
3399,
803,
273,
315,
3552,
5701,
12,
4811,
803,
10531,
17,
21,
6487,
6,
4898,
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
] |
array of indices with the same shape as a.
|
array of indices with the same shape as v.
|
def searchsorted(a, v, side='left'): """-> index array. Inserting v[i] before a[index[i]] maintains a in order. Required arguments: a -- sorted 1-D array to be searched. v -- array of keys to be searched for in a. Keyword arguments: side -- {'left', 'right'}, default('left'). Returns: array of indices with the same shape as a. The array to be searched must be 1-D and is assumed to be sorted in ascending order. The function call searchsorted(a, v, side='left') returns an index array with the same shape as v such that for each value i in the index and the corresponding key in v the following holds: a[j] < key <= a[i] for all j < i, If such an index does not exist, a.size() is used. Consequently, i is the index of the first item in 'a' that is >= key. If the key were to be inserted into a in the slot before the index i, then the order of a would be preserved and i would be the smallest index with that property. The function call searchsorted(a, v, side='right') returns an index array with the same shape as v such that for each value i in the index and the corresponding key in v the following holds: a[j] <= key < a[i] for all j < i, If such an index does not exist, a.size() is used. Consequently, i is the index of the first item in 'a' that is > key. If the key were to be inserted into a in the slot before the index i, then the order of a would be preserved and i would be the largest index with that property. """ try: searchsorted = a.searchsorted except AttributeError: return _wrapit(a, 'searchsorted', v, side) return searchsorted(v, side)
|
6481ff29ec06bce69814dc91dc310442029f0370 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/6481ff29ec06bce69814dc91dc310442029f0370/fromnumeric.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
10350,
12,
69,
16,
331,
16,
4889,
2218,
4482,
11,
4672,
3536,
2122,
770,
526,
18,
8040,
310,
331,
63,
77,
65,
1865,
279,
63,
1615,
63,
77,
13563,
11566,
4167,
279,
316,
1353,
18,
225,
10647,
1775,
30,
279,
1493,
3115,
404,
17,
40,
526,
358,
506,
19242,
18,
331,
1493,
526,
434,
1311,
358,
506,
19242,
364,
316,
279,
18,
225,
18317,
1775,
30,
4889,
1493,
13666,
4482,
2187,
296,
4083,
11,
5779,
805,
2668,
4482,
16063,
225,
2860,
30,
526,
434,
4295,
598,
326,
1967,
2179,
487,
331,
18,
225,
1021,
526,
358,
506,
19242,
1297,
506,
404,
17,
40,
471,
353,
12034,
358,
506,
3115,
316,
13976,
1353,
18,
225,
1021,
445,
745,
225,
1623,
10350,
12,
69,
16,
331,
16,
4889,
2218,
4482,
6134,
225,
1135,
392,
770,
526,
598,
326,
1967,
2179,
487,
331,
4123,
716,
364,
1517,
460,
277,
316,
326,
770,
471,
326,
4656,
498,
316,
331,
326,
3751,
14798,
30,
225,
279,
63,
78,
65,
411,
498,
1648,
279,
63,
77,
65,
364,
777,
525,
411,
277,
16,
225,
971,
4123,
392,
770,
1552,
486,
1005,
16,
279,
18,
1467,
1435,
353,
1399,
18,
735,
9116,
715,
16,
277,
353,
326,
770,
434,
326,
1122,
761,
316,
296,
69,
11,
716,
353,
1545,
498,
18,
971,
326,
498,
4591,
358,
506,
9564,
1368,
279,
316,
326,
4694,
1865,
326,
770,
277,
16,
1508,
326,
1353,
434,
279,
4102,
506,
21096,
471,
277,
4102,
506,
326,
13541,
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,
1623,
10350,
12,
69,
16,
331,
16,
4889,
2218,
4482,
11,
4672,
3536,
2122,
770,
526,
18,
8040,
310,
331,
63,
77,
65,
1865,
279,
63,
1615,
63,
77,
13563,
11566,
4167,
279,
316,
1353,
18,
225,
10647,
1775,
30,
279,
1493,
3115,
404,
17,
40,
526,
358,
506,
19242,
18,
331,
1493,
526,
434,
1311,
358,
506,
19242,
364,
316,
279,
18,
225,
18317,
1775,
30,
4889,
1493,
13666,
4482,
2187,
296,
4083,
11,
5779,
805,
2668,
4482,
16063,
225,
2860,
30,
526,
434,
4295,
598,
326,
1967,
2179,
487,
331,
18,
225,
1021,
526,
358,
506,
19242,
1297,
506,
404,
17,
40,
471,
353,
12034,
358,
506,
3115,
316,
13976,
1353,
18,
225,
1021,
445,
745,
2
] |
j = titleish(re.sub('</?b>', '', j))
|
j = titleish(re.sub('</?(b|strong)>(?i)', '', j))
|
def ParseOffOppPage(fr, gp): m = re.search('offoppose(\d+)_(\d+-\d+-\d+)', gp) (num, filedate) = m.groups() num = int(num) stime = '%02d:%02d' % (num/60, num%60) # Will break at 86,400 :) if num == 37 or num == 79: return "SKIPTHIS", None # Reshuffling #elif num == 38: # sdate = "2005-12-09" # Moved back to date of reshuffle #elif num == 80: # sdate = "2007-07-03" # Moved back to date of reshuffle elif num <= 64: frupdated = re.search('<td class="lastupdated">\s*Updated (.*?)(?: | )(.*?)\s*</td>', fr) if not frupdated: print "Failed to find lastupdated on:", gp lsudate = re.match("(\d\d)/(\d\d)/(\d\d\d\d)$", frupdated.group(1)) if lsudate: sdate = "%s-%s-%s" % (lsudate.group(3), lsudate.group(2), lsudate.group(1)) else: lsudate = re.match("(\d\d)/(\d\d)/(\d\d)$", frupdated.group(1)) y2k = int(lsudate.group(3)) < 50 and "20" or "19" # I don't think our records go back far enough to merit this! sdate = "%s%s-%s-%s" % (y2k, lsudate.group(3), lsudate.group(2), lsudate.group(1)) elif num <= 75: sdate = filedate else: frdate = re.search(">This list was last updated on\s+<(?:b|strong)>\s*(.*?)\s+<", fr) if not frdate: print num, filedate sys.exit() sdate = mx.DateTime.DateTimeFrom(frdate.group(1)).date # extract the alphabetical list if num <= 97: table = re.search("(?s)>HER MAJESTY'S OFFICIAL OPPOSITION<(.*?)</table>", fr) else: table = re.search("(?si)>Her Majesty's\s+Official Opposition<(.*?)</table>", fr) list = re.split("</?tr>(?i)", table.group(1)) res = [ ] pos = '' dept = '' inothermins = False for row in list: cells = re.search('<td[^>]*>\s*(.*?)\s*</td>\s*(?:<td[^>]*>\s*(.*?)\s*</td>\s*)?<td[^>]*>\s*(.*?)\s*</td>(?si)', row) if not cells: continue j = cells.group(1) name = cells.group(3) responsibility = '' if j and j != ' ': if re.match('\(Also in', j): continue j = re.sub('(?i) \((Lords|Commons)\)', '', j) if (not name or name == ' ') and not re.search('Shadow Ministers', j): dept = titleish(re.sub('</?(font|b)[^>]*>', '', j)) if re.match('Opposition Whip', dept): dept = 'Whips' inothermins = False continue j = re.sub('<br>', ' ', j) j = re.sub('</?font[^>]*>', '', j) j = re.sub(' |\s+', ' ', j) j = titleish(re.sub('</?b>', '', j)) if j=='Whips': j = 'Whip' resp = re.match('Shadow Minister for (.*)', j) if resp and inothermins: responsibility = resp.group(1) elif re.match('(Other)?\s*Shadow Ministers?\s*(\(|$)', j): pos = 'Shadow Minister' inothermins = True else: pos = j inothermins = False if not name or name == ' ' or re.search('vacant(?i)', name): continue name = re.sub("\s+\((until|also|as from) .*?\)", '', name) name = re.sub('\s+', ' ', re.sub('</?b>', '', name.replace(' ', ' '))) name = re.sub('</?font[^>]*>\s*', '', name) name = re.sub('Rt Hon the |Professor the |The ', '', name) # Don't care about non MP/Lord if name == 'Michael Bates' or re.search('Kulveer Ranger', name): continue names = re.split('\s*<br>\s*(?i)', name) names = [ re.sub('\s*(\*|\*\*|#)$', '', n) for n in names ] for name in names: # Done here instead of alias because two Baroness Morrises if name == 'Baroness Morris': name = 'Baroness Morris of Bolton' if re.search('Sayeeda Warsi', name): name = 'Baroness Warsi' ec = protooffice() ec.OffOppproto((sdate, stime), name, pos, dept, responsibility, "chgpages/offoppose") res.append(ec) return (sdate, stime), res
|
e6d15b30bbe196bbb3366f06ccd7c43a0171a891 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8428/e6d15b30bbe196bbb3366f06ccd7c43a0171a891/minpostparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
7210,
3817,
84,
1964,
12,
4840,
16,
4178,
4672,
312,
273,
283,
18,
3072,
2668,
3674,
556,
4150,
4713,
72,
6975,
67,
4713,
72,
15,
6943,
72,
15,
6943,
72,
6975,
2187,
4178,
13,
261,
2107,
16,
585,
712,
13,
273,
312,
18,
4650,
1435,
818,
273,
509,
12,
2107,
13,
225,
384,
494,
273,
1995,
3103,
72,
5319,
3103,
72,
11,
738,
261,
2107,
19,
4848,
16,
818,
9,
4848,
13,
468,
9980,
898,
622,
20457,
16,
16010,
294,
13,
225,
309,
818,
422,
18091,
578,
818,
422,
26517,
30,
327,
315,
11129,
45,
22561,
5127,
3113,
599,
468,
1124,
76,
696,
2242,
310,
468,
292,
430,
818,
422,
18012,
30,
468,
3639,
272,
712,
273,
315,
6976,
25,
17,
2138,
17,
5908,
6,
468,
490,
9952,
1473,
358,
1509,
434,
400,
76,
10148,
468,
292,
430,
818,
422,
8958,
30,
468,
3639,
272,
712,
273,
315,
6976,
27,
17,
8642,
17,
4630,
6,
468,
490,
9952,
1473,
358,
1509,
434,
400,
76,
10148,
1327,
818,
1648,
5178,
30,
3812,
7007,
273,
283,
18,
3072,
2668,
32,
4465,
667,
1546,
2722,
7007,
6,
5333,
87,
14,
7381,
29049,
8535,
6503,
10,
10600,
31,
96,
262,
27482,
87,
14,
1757,
4465,
1870,
16,
3812,
13,
309,
486,
3812,
7007,
30,
1172,
315,
2925,
358,
1104,
1142,
7007,
603,
2773,
16,
4178,
7180,
89,
712,
273,
283,
18,
1916,
2932,
4713,
72,
64,
72,
13176,
4713,
72,
64,
72,
13176,
4713,
72,
64,
72,
64,
72,
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,
2884,
7210,
3817,
84,
1964,
12,
4840,
16,
4178,
4672,
312,
273,
283,
18,
3072,
2668,
3674,
556,
4150,
4713,
72,
6975,
67,
4713,
72,
15,
6943,
72,
15,
6943,
72,
6975,
2187,
4178,
13,
261,
2107,
16,
585,
712,
13,
273,
312,
18,
4650,
1435,
818,
273,
509,
12,
2107,
13,
225,
384,
494,
273,
1995,
3103,
72,
5319,
3103,
72,
11,
738,
261,
2107,
19,
4848,
16,
818,
9,
4848,
13,
468,
9980,
898,
622,
20457,
16,
16010,
294,
13,
225,
309,
818,
422,
18091,
578,
818,
422,
26517,
30,
327,
315,
11129,
45,
22561,
5127,
3113,
599,
468,
1124,
76,
696,
2242,
310,
468,
292,
430,
818,
422,
18012,
30,
468,
3639,
272,
712,
273,
2
] |
_log('< %s' % line)
|
self._log('< %s' % line)
|
def _get_line(self): line = self._readline() if not line: raise self.abort('socket error: EOF') # Protocol mandates all lines terminated by CRLF line = line[:-2] if __debug__: if self.debug >= 4: _mesg('< %s' % line) else: _log('< %s' % line) return line
|
462597f79dfd214c27990197f9e742d00e0c9fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9777/462597f79dfd214c27990197f9e742d00e0c9fed/managesieve.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
12,
2890,
4672,
980,
273,
365,
6315,
896,
1369,
1435,
309,
486,
980,
30,
1002,
365,
18,
18623,
2668,
7814,
555,
30,
6431,
6134,
468,
4547,
312,
464,
815,
777,
2362,
14127,
635,
21791,
980,
273,
980,
10531,
17,
22,
65,
309,
1001,
4148,
972,
30,
309,
365,
18,
4148,
1545,
1059,
30,
389,
26244,
75,
2668,
32,
738,
87,
11,
738,
980,
13,
469,
30,
365,
6315,
1330,
2668,
32,
738,
87,
11,
738,
980,
13,
327,
980,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
12,
2890,
4672,
980,
273,
365,
6315,
896,
1369,
1435,
309,
486,
980,
30,
1002,
365,
18,
18623,
2668,
7814,
555,
30,
6431,
6134,
468,
4547,
312,
464,
815,
777,
2362,
14127,
635,
21791,
980,
273,
980,
10531,
17,
22,
65,
309,
1001,
4148,
972,
30,
309,
365,
18,
4148,
1545,
1059,
30,
389,
26244,
75,
2668,
32,
738,
87,
11,
738,
980,
13,
469,
30,
365,
6315,
1330,
2668,
32,
738,
87,
11,
738,
980,
13,
327,
980,
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
] |
2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 5^5 + 3*5^7 + 2*5^8 + 4*5^9 + 2*5^10 + 2*5^11 + 5^12 + 5^14 + 3*5^15 + 5^16 + 4*5^18 + 4*5^19 + 5^20 + 3*5^21 + 2*5^22 + 2*5^23 + 5^24 + 5^25 + 3*5^27 + 2*5^28 + 4*5^29 + O(5^30)
|
2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 5^5 + 3*5^7 + 2*5^8 + 4*5^9 + 2*5^10 + 2*5^11 + 5^12 + 5^14 + 3*5^15 + 5^16 + 4*5^18 + 4*5^19 + 5^20 + 3*5^21 + 2*5^22 + 2*5^23 + 5^24 + 5^25 + 3*5^27 + 2*5^28 + 3*5^29 + O(5^30) Check that results are consistent over a range of precision: sage: max_prec = 40 sage: p = 3 sage: K = pAdicField(p, max_prec) sage: full_log = (1 + p + O(p**max_prec)).log() sage: for prec in range(2, max_prec): ... assert (1 + p + O(p**prec)).log() == full_log AUTHORS: -- David Harvey (2006-09-13): corrected subtle precision bug (need to take denominators into account! -- see trac TODO: -- Surely there must exist an $O(N^{1+\epsilon})$ time algorithm for this? The current one is pretty much quadratic in the precision.
|
def log(self): r""" Compute the p-adic logarithm of any nonzero element of $\Q_p$. (See below for normalization.) The usual power series for log with values in the additive group of $\Q_p$ only converges for 1-units (units congruent to 1 modulo p). However, there is a unique extension of log to a homomorphism defined on all the units. If u = a*v is a unit with v = 1 (mod p), then we define log(u) = log(v). This is the correct extension because the units U of Z_p splits as a product U = V x <w>, where V is the subgroup of 1-units and w is a (p-1)st root of unity. The <w> factor is torsion, so must go to 0 under any homomorphism to the torsion free group $(\Q_p, +)$.
|
376368d00b58b0a2c4b9a9b77c4fa848862c2747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/376368d00b58b0a2c4b9a9b77c4fa848862c2747/padic.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
4672,
436,
8395,
8155,
326,
293,
17,
20333,
613,
31249,
434,
1281,
16966,
930,
434,
271,
64,
53,
67,
84,
8,
18,
261,
9704,
5712,
364,
13728,
12998,
225,
1021,
25669,
7212,
4166,
364,
613,
598,
924,
316,
326,
527,
3720,
1041,
434,
271,
64,
53,
67,
84,
8,
1338,
14581,
2852,
364,
404,
17,
7705,
261,
7705,
356,
3197,
10744,
358,
404,
26109,
293,
2934,
225,
10724,
16,
1915,
353,
279,
3089,
2710,
434,
613,
358,
279,
13995,
362,
7657,
6228,
2553,
603,
777,
326,
4971,
18,
225,
971,
582,
273,
279,
14,
90,
353,
279,
2836,
598,
331,
273,
404,
261,
1711,
293,
3631,
1508,
732,
4426,
613,
12,
89,
13,
273,
613,
12,
90,
2934,
225,
1220,
353,
326,
3434,
2710,
2724,
326,
4971,
587,
434,
2285,
67,
84,
11019,
487,
279,
3017,
587,
273,
776,
619,
411,
91,
20401,
1625,
776,
353,
326,
720,
1655,
434,
404,
17,
7705,
471,
341,
353,
279,
261,
84,
17,
21,
13,
334,
1365,
434,
640,
560,
18,
225,
1021,
411,
91,
34,
5578,
353,
268,
1383,
285,
16,
1427,
1297,
1960,
358,
374,
3613,
1281,
13995,
362,
7657,
6228,
358,
326,
268,
1383,
285,
4843,
1041,
271,
4713,
53,
67,
84,
16,
397,
21877,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
4672,
436,
8395,
8155,
326,
293,
17,
20333,
613,
31249,
434,
1281,
16966,
930,
434,
271,
64,
53,
67,
84,
8,
18,
261,
9704,
5712,
364,
13728,
12998,
225,
1021,
25669,
7212,
4166,
364,
613,
598,
924,
316,
326,
527,
3720,
1041,
434,
271,
64,
53,
67,
84,
8,
1338,
14581,
2852,
364,
404,
17,
7705,
261,
7705,
356,
3197,
10744,
358,
404,
26109,
293,
2934,
225,
10724,
16,
1915,
353,
279,
3089,
2710,
434,
613,
358,
279,
13995,
362,
7657,
6228,
2553,
603,
777,
326,
4971,
18,
225,
971,
582,
273,
279,
14,
90,
353,
279,
2836,
598,
331,
273,
404,
261,
1711,
293,
3631,
1508,
732,
4426,
613,
12,
89,
13,
273,
613,
2
] |
sage: J.basis()
|
sage: J.basis()
|
def basis(self): """ Return an immutable sequence of elements of this ideal (note: their parent is the number field) that form a basis for this ideal viewed as a ZZ-module.
|
bc4a4d2755a402e5fd9f962479b2ebb5e686adb6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/bc4a4d2755a402e5fd9f962479b2ebb5e686adb6/number_field_ideal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
12,
2890,
4672,
3536,
2000,
392,
11732,
3102,
434,
2186,
434,
333,
23349,
261,
7652,
30,
3675,
982,
353,
326,
1300,
652,
13,
716,
646,
279,
10853,
364,
333,
23349,
1476,
329,
487,
279,
2285,
62,
17,
2978,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
12,
2890,
4672,
3536,
2000,
392,
11732,
3102,
434,
2186,
434,
333,
23349,
261,
7652,
30,
3675,
982,
353,
326,
1300,
652,
13,
716,
646,
279,
10853,
364,
333,
23349,
1476,
329,
487,
279,
2285,
62,
17,
2978,
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
] |
if type==2: res += LazyExpression.slices2prettystring(self.slice,self.args[0].getDimensions()) else: res += LazyExpression.slices2string(self.slice)
|
res += LazyExpression.slices2prettystring(self.slice,self.args[0].getDimensions())
|
def getText(self,type=0,addparentheses=True): assert type>=0 and type<=2, 'Argument "type" must be 0, 1 or 2.' if type==0 or type==1: # Return the short name of the object (optionally with slice specification). res = self.args[0].getName() if self.slice!=None: if type==2: res += LazyExpression.slices2prettystring(self.slice,self.args[0].getDimensions()) else: res += LazyExpression.slices2string(self.slice) return res else: # Return the long name of the object (optionally with slice specification). res = self.args[0].getLongName() if self.slice!=None: if type==2: res += LazyExpression.slices2prettystring(self.slice,self.args[0].getDimensions()) else: res += LazyExpression.slices2string(self.slice) return res
|
7cd2a2d4dddc4c0f3964e3677772561675ef9a44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/7cd2a2d4dddc4c0f3964e3677772561675ef9a44/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6701,
12,
2890,
16,
723,
33,
20,
16,
1289,
13012,
7915,
281,
33,
5510,
4672,
1815,
618,
34,
33,
20,
471,
618,
32,
33,
22,
16,
296,
1379,
315,
723,
6,
1297,
506,
374,
16,
404,
578,
576,
1093,
309,
618,
631,
20,
578,
618,
631,
21,
30,
468,
2000,
326,
3025,
508,
434,
326,
733,
261,
3482,
1230,
598,
2788,
7490,
2934,
400,
273,
365,
18,
1968,
63,
20,
8009,
17994,
1435,
309,
365,
18,
6665,
5,
33,
7036,
30,
400,
1011,
12805,
2300,
18,
21562,
22,
19073,
1080,
12,
2890,
18,
6665,
16,
2890,
18,
1968,
63,
20,
8009,
588,
10796,
10756,
327,
400,
469,
30,
468,
2000,
326,
1525,
508,
434,
326,
733,
261,
3482,
1230,
598,
2788,
7490,
2934,
400,
273,
365,
18,
1968,
63,
20,
8009,
588,
3708,
461,
1435,
309,
365,
18,
6665,
5,
33,
7036,
30,
400,
1011,
12805,
2300,
18,
21562,
22,
19073,
1080,
12,
2890,
18,
6665,
16,
2890,
18,
1968,
63,
20,
8009,
588,
10796,
10756,
327,
400,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6701,
12,
2890,
16,
723,
33,
20,
16,
1289,
13012,
7915,
281,
33,
5510,
4672,
1815,
618,
34,
33,
20,
471,
618,
32,
33,
22,
16,
296,
1379,
315,
723,
6,
1297,
506,
374,
16,
404,
578,
576,
1093,
309,
618,
631,
20,
578,
618,
631,
21,
30,
468,
2000,
326,
3025,
508,
434,
326,
733,
261,
3482,
1230,
598,
2788,
7490,
2934,
400,
273,
365,
18,
1968,
63,
20,
8009,
17994,
1435,
309,
365,
18,
6665,
5,
33,
7036,
30,
400,
1011,
12805,
2300,
18,
21562,
22,
19073,
1080,
12,
2890,
18,
6665,
16,
2890,
18,
1968,
63,
20,
8009,
588,
10796,
10756,
327,
400,
469,
30,
468,
2000,
326,
1525,
508,
434,
326,
733,
261,
3482,
2
] |
workers.append(proc.spawn(stream.start, sdp_notification.local_sdp.media[index], sdp_notification.remote_sdp, index))
|
workers.append(proc.spawn(stream.start, sdp_notification.local_sdp, sdp_notification.remote_sdp, index))
|
def accept(self): assert self.state == 'INCOMING', self.state self.greenlet = api.getcurrent() ERROR = (500, None, 'local') # code, reason, originator self._set_state('ACCEPTING') streams = self.streams try: workers = [proc.spawn(stream.initialize, self) for stream in streams] proc.waitall(workers) workers = [] media = [stream.get_local_media(False) for stream in streams] remote_sdp = self.inv.get_offered_remote_sdp() local_ip = SIPSimpleSettings().local_ip.normalized local_sdp = SDPSession(local_ip, connection=SDPConnection(local_ip), media=media, start_time=remote_sdp.start_time, stop_time=remote_sdp.stop_time) self.inv.set_offered_local_sdp(local_sdp) self.start_time = datetime.datetime.now() confirmed_notification, sdp_notification = self.inv.accept_invite() for index, stream in enumerate(streams): workers.append(proc.spawn(stream.start, sdp_notification.local_sdp.media[index], sdp_notification.remote_sdp, index)) proc.waitall(workers) ERROR = None except: typ, exc, tb = sys.exc_info() ERROR = (500, str(exc) or str(typ.__name__), 'local') raise finally: self.greenlet = None if ERROR is None: self._set_state('ESTABLISHED') self.notification_center.post_notification("SIPSessionDidStart", self) else: code, reason, originator = ERROR if code is not None: data = TimestampedNotificationData(originator=originator, code=code, reason=reason) self.notification_center.post_notification("SIPSessionDidFail", self, data) proc.spawn_greenlet(self._terminate, code or 486) killall(workers, wait=False) for stream in streams: proc.spawn_greenlet(stream.end)
|
8bbd23515c32720a8942a54618e75e89143ff511 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/8bbd23515c32720a8942a54618e75e89143ff511/session2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
1815,
365,
18,
2019,
422,
296,
706,
4208,
1360,
2187,
365,
18,
2019,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
5475,
273,
261,
12483,
16,
599,
16,
296,
3729,
6134,
468,
981,
16,
3971,
16,
4026,
639,
365,
6315,
542,
67,
2019,
2668,
21417,
1360,
6134,
8205,
273,
365,
18,
16320,
775,
30,
9798,
273,
306,
9381,
18,
1752,
9533,
12,
3256,
18,
11160,
16,
365,
13,
364,
1407,
316,
8205,
65,
5418,
18,
7048,
454,
12,
15625,
13,
9798,
273,
5378,
3539,
273,
306,
3256,
18,
588,
67,
3729,
67,
5829,
12,
8381,
13,
364,
1407,
316,
8205,
65,
2632,
67,
6427,
84,
273,
365,
18,
5768,
18,
588,
67,
23322,
329,
67,
7222,
67,
6427,
84,
1435,
1191,
67,
625,
273,
348,
2579,
5784,
2628,
7675,
3729,
67,
625,
18,
17762,
1191,
67,
6427,
84,
273,
348,
8640,
2157,
12,
3729,
67,
625,
16,
1459,
33,
55,
8640,
1952,
12,
3729,
67,
625,
3631,
3539,
33,
5829,
16,
787,
67,
957,
33,
7222,
67,
6427,
84,
18,
1937,
67,
957,
16,
2132,
67,
957,
33,
7222,
67,
6427,
84,
18,
5681,
67,
957,
13,
365,
18,
5768,
18,
542,
67,
23322,
329,
67,
3729,
67,
6427,
84,
12,
3729,
67,
6427,
84,
13,
365,
18,
1937,
67,
957,
273,
3314,
18,
6585,
18,
3338,
1435,
19979,
67,
9927,
16,
25967,
67,
9927,
273,
365,
18,
5768,
18,
9436,
67,
27154,
1435,
364,
770,
16,
1407,
316,
4241,
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,
2791,
12,
2890,
4672,
1815,
365,
18,
2019,
422,
296,
706,
4208,
1360,
2187,
365,
18,
2019,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
5475,
273,
261,
12483,
16,
599,
16,
296,
3729,
6134,
468,
981,
16,
3971,
16,
4026,
639,
365,
6315,
542,
67,
2019,
2668,
21417,
1360,
6134,
8205,
273,
365,
18,
16320,
775,
30,
9798,
273,
306,
9381,
18,
1752,
9533,
12,
3256,
18,
11160,
16,
365,
13,
364,
1407,
316,
8205,
65,
5418,
18,
7048,
454,
12,
15625,
13,
9798,
273,
5378,
3539,
273,
306,
3256,
18,
588,
67,
3729,
67,
5829,
12,
8381,
13,
364,
1407,
316,
8205,
65,
2632,
67,
6427,
84,
273,
365,
18,
5768,
18,
588,
67,
2
] |
print 'fsme: ', fsme
|
def map_fs(fs, mp): """Try to map the filesystem to one of the env variables.""" for k in mp.keys(): if k == fs: return mp[k] # Failed exact path match, try to match to path by chopping off a component # from the end and replacing it with the username. This should deal with # the automounter wildcard mounts hopefully without accidentally matching # incorrectly. fschop = os.path.dirname(fs) fsme = os.path.join(fschop, os.getenv("LOGNAME")) print 'fsme: ', fsme foundme = False for line in open("/etc/mtab"): ls = line.split()[0] if ls == fsme: foundme = True if foundme: if fsme in mp.keys(): return mp[fsme] else: return fsme return fs
|
919978fe56451bf91a166f10200fc30ef36dfd96 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8733/919978fe56451bf91a166f10200fc30ef36dfd96/fysquota.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
2556,
12,
2556,
16,
6749,
4672,
3536,
7833,
358,
852,
326,
6496,
358,
1245,
434,
326,
1550,
3152,
12123,
364,
417,
316,
6749,
18,
2452,
13332,
309,
417,
422,
2662,
30,
327,
6749,
63,
79,
65,
225,
468,
11175,
5565,
589,
845,
16,
775,
358,
845,
358,
589,
635,
31258,
1382,
3397,
279,
1794,
468,
628,
326,
679,
471,
13993,
518,
598,
326,
2718,
18,
1220,
1410,
10490,
598,
468,
326,
18472,
2096,
8531,
19399,
27370,
4095,
2887,
25961,
1230,
3607,
468,
25621,
18,
225,
2662,
343,
556,
273,
1140,
18,
803,
18,
12287,
12,
2556,
13,
2662,
3501,
273,
1140,
18,
803,
18,
5701,
12,
2556,
343,
556,
16,
1140,
18,
588,
3074,
2932,
4842,
1985,
6,
3719,
1392,
3501,
273,
1083,
364,
980,
316,
1696,
2932,
19,
14175,
19,
1010,
378,
6,
4672,
7180,
273,
980,
18,
4939,
1435,
63,
20,
65,
309,
7180,
422,
2662,
3501,
30,
1392,
3501,
273,
1053,
309,
1392,
3501,
30,
309,
2662,
3501,
316,
6749,
18,
2452,
13332,
327,
6749,
63,
2556,
3501,
65,
469,
30,
327,
2662,
3501,
327,
2662,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
2556,
12,
2556,
16,
6749,
4672,
3536,
7833,
358,
852,
326,
6496,
358,
1245,
434,
326,
1550,
3152,
12123,
364,
417,
316,
6749,
18,
2452,
13332,
309,
417,
422,
2662,
30,
327,
6749,
63,
79,
65,
225,
468,
11175,
5565,
589,
845,
16,
775,
358,
845,
358,
589,
635,
31258,
1382,
3397,
279,
1794,
468,
628,
326,
679,
471,
13993,
518,
598,
326,
2718,
18,
1220,
1410,
10490,
598,
468,
326,
18472,
2096,
8531,
19399,
27370,
4095,
2887,
25961,
1230,
3607,
468,
25621,
18,
225,
2662,
343,
556,
273,
1140,
18,
803,
18,
12287,
12,
2556,
13,
2662,
3501,
273,
1140,
18,
803,
18,
5701,
12,
2556,
343,
556,
16,
1140,
18,
588,
3074,
2932,
4842,
2
] |
|
""" Test cases for DaemonContext._make_signal_handler function """ def setUp(self): """ Set up test fixtures """
|
""" Test cases for DaemonContext._make_signal_handler function. """ def setUp(self): """ Set up test fixtures. """
|
def test_returns_empty_list_if_no_files(self): """ Should return empty list if no file options """ instance = self.test_instance for name in ['files_preserve', 'stdin', 'stdout', 'stderr']: setattr(instance, name, None) expect_result = [] result = instance._get_exclude_file_descriptors() self.failUnlessEqual(sorted(expect_result), sorted(result))
|
33a5bfc655a6417210c5c80d9f942714bf596533 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/33a5bfc655a6417210c5c80d9f942714bf596533/test_daemon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6154,
67,
5531,
67,
1098,
67,
430,
67,
2135,
67,
2354,
12,
2890,
4672,
3536,
9363,
327,
1008,
666,
309,
1158,
585,
702,
3536,
791,
273,
365,
18,
3813,
67,
1336,
364,
508,
316,
10228,
2354,
67,
27297,
2187,
296,
21772,
2187,
296,
10283,
2187,
296,
11241,
3546,
30,
9241,
12,
1336,
16,
508,
16,
599,
13,
4489,
67,
2088,
273,
5378,
563,
273,
791,
6315,
588,
67,
10157,
67,
768,
67,
72,
8379,
1435,
365,
18,
6870,
984,
2656,
5812,
12,
10350,
12,
12339,
67,
2088,
3631,
3115,
12,
2088,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6154,
67,
5531,
67,
1098,
67,
430,
67,
2135,
67,
2354,
12,
2890,
4672,
3536,
9363,
327,
1008,
666,
309,
1158,
585,
702,
3536,
791,
273,
365,
18,
3813,
67,
1336,
364,
508,
316,
10228,
2354,
67,
27297,
2187,
296,
21772,
2187,
296,
10283,
2187,
296,
11241,
3546,
30,
9241,
12,
1336,
16,
508,
16,
599,
13,
4489,
67,
2088,
273,
5378,
563,
273,
791,
6315,
588,
67,
10157,
67,
768,
67,
72,
8379,
1435,
365,
18,
6870,
984,
2656,
5812,
12,
10350,
12,
12339,
67,
2088,
3631,
3115,
12,
2088,
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
] |
if self.existsABetterSimilarProjection(i, allowedPercentOfEqualAttributes = percents):
|
if self.existsABetterSimilarProjection(i, allowedPercentOfEqualAttributes = allowedPercentOfEqualAttributes):
|
def removeTooSimilarProjections(self): (text, ok) = QInputDialog.getText('Qt Allowed Similarity', 'How many attributes can be present in some better projection for a projection to be still considered as different (in pecents. Default = 70)?') if not ok: return percents = int(str(text)) qApp.setOverrideCursor(QWidget.waitCursor) self.setStatusBarText("Removing similar projections") i=0 while i < self.resultList.count(): qApp.processEvents() if self.existsABetterSimilarProjection(i, allowedPercentOfEqualAttributes = percents): self.results.pop(i) self.shownResults.pop(i) self.resultList.removeItem(i) else: i += 1 self.setStatusBarText("") qApp.restoreOverrideCursor()
|
0e455036d7905fe252ea1c33a7b2b3eb0f3b722a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/0e455036d7905fe252ea1c33a7b2b3eb0f3b722a/OWkNNOptimization.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
10703,
16891,
14789,
87,
12,
2890,
4672,
261,
955,
16,
1529,
13,
273,
2238,
1210,
6353,
18,
588,
1528,
2668,
23310,
16740,
22967,
560,
2187,
296,
44,
543,
4906,
1677,
848,
506,
3430,
316,
2690,
7844,
8106,
364,
279,
8106,
358,
506,
4859,
7399,
487,
3775,
261,
267,
293,
557,
4877,
18,
2989,
273,
16647,
13,
4899,
13,
309,
486,
1529,
30,
327,
5551,
87,
273,
509,
12,
701,
12,
955,
3719,
1043,
3371,
18,
542,
6618,
6688,
12,
53,
4609,
18,
7048,
6688,
13,
365,
18,
542,
1482,
5190,
1528,
2932,
18939,
7281,
8106,
87,
7923,
277,
33,
20,
1323,
277,
411,
365,
18,
2088,
682,
18,
1883,
13332,
1043,
3371,
18,
2567,
3783,
1435,
309,
365,
18,
1808,
2090,
11214,
16891,
14789,
12,
77,
16,
2935,
8410,
951,
5812,
2498,
273,
2935,
8410,
951,
5812,
2498,
4672,
365,
18,
4717,
18,
5120,
12,
77,
13,
365,
18,
674,
995,
3447,
18,
5120,
12,
77,
13,
365,
18,
2088,
682,
18,
4479,
1180,
12,
77,
13,
469,
30,
277,
1011,
404,
225,
365,
18,
542,
1482,
5190,
1528,
2932,
7923,
1043,
3371,
18,
13991,
6618,
6688,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
10703,
16891,
14789,
87,
12,
2890,
4672,
261,
955,
16,
1529,
13,
273,
2238,
1210,
6353,
18,
588,
1528,
2668,
23310,
16740,
22967,
560,
2187,
296,
44,
543,
4906,
1677,
848,
506,
3430,
316,
2690,
7844,
8106,
364,
279,
8106,
358,
506,
4859,
7399,
487,
3775,
261,
267,
293,
557,
4877,
18,
2989,
273,
16647,
13,
4899,
13,
309,
486,
1529,
30,
327,
5551,
87,
273,
509,
12,
701,
12,
955,
3719,
1043,
3371,
18,
542,
6618,
6688,
12,
53,
4609,
18,
7048,
6688,
13,
365,
18,
542,
1482,
5190,
1528,
2932,
18939,
7281,
8106,
87,
7923,
277,
33,
20,
1323,
277,
411,
365,
18,
2088,
682,
18,
1883,
13332,
1043,
3371,
18,
2567,
3783,
1435,
309,
2
] |
scope -- see the documentaion of this class.
|
scope -- see the documentation of this class.
|
def set_synthesis_voice(self, value, scope=Scope.SELF): """Set voice by its real name.
|
7c9633115d399a569dd8e2ac33c37854b07f2e0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7484/7c9633115d399a569dd8e2ac33c37854b07f2e0f/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11982,
20432,
67,
25993,
12,
2890,
16,
460,
16,
2146,
33,
3876,
18,
26280,
4672,
3536,
694,
15063,
635,
2097,
2863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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11982,
20432,
67,
25993,
12,
2890,
16,
460,
16,
2146,
33,
3876,
18,
26280,
4672,
3536,
694,
15063,
635,
2097,
2863,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
renwin.StereoRenderOn() exec("renwin.SetStereoTypeTo"+mode+"()")
|
exec("iren.GetRenderWindow().SetStereoTypeTo"+mode+"()")
|
def set_stereo_mode(self, on=True, mode="CrystalEyes"): """set_stereo_mode(on = [_True_, False], type = [_"CrystalEyes"_, "RedBlue", "Interlaced", "Left", "Right", "Dresden"] """ iren = self.iren renwin = iren.GetRenderWindow() if on: renwin.StereoRenderOn() exec("renwin.SetStereoTypeTo"+mode+"()") else: renwin.StereoRenderOff() iren.Render()
|
aebed9d98ec54bc8a1c5961fd6686f014ca2a21d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5000/aebed9d98ec54bc8a1c5961fd6686f014ca2a21d/data_viewer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
334,
822,
83,
67,
3188,
12,
2890,
16,
603,
33,
5510,
16,
1965,
1546,
12893,
31365,
41,
9707,
6,
4672,
3536,
542,
67,
334,
822,
83,
67,
3188,
12,
265,
273,
306,
67,
5510,
67,
16,
1083,
6487,
618,
273,
306,
9548,
12893,
31365,
41,
9707,
6,
67,
16,
315,
3715,
27986,
3113,
315,
2465,
80,
623,
72,
3113,
315,
3910,
3113,
315,
4726,
3113,
315,
40,
455,
13002,
11929,
3536,
277,
1187,
273,
365,
18,
577,
82,
1654,
8082,
273,
277,
1187,
18,
967,
3420,
3829,
1435,
309,
603,
30,
1196,
2932,
577,
82,
18,
967,
3420,
3829,
7675,
694,
55,
22854,
559,
774,
6,
15,
3188,
9078,
1435,
7923,
469,
30,
1654,
8082,
18,
55,
22854,
3420,
7210,
1435,
225,
277,
1187,
18,
3420,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
41,
9707,
6,
67,
16,
315,
3715,
27986,
3113,
315,
2465,
80,
623,
72,
3113,
315,
3910,
3113,
315,
4726,
3113,
315,
40,
455,
13002,
11929,
3536,
277,
1187,
273,
365,
18,
577,
82,
1654,
8082,
273,
277,
1187,
18,
967,
3420,
3829,
1435,
309,
603,
30,
1196,
2932,
577,
82,
18,
967,
3420,
3829,
7675,
694,
55,
22854,
559,
774,
6,
15,
3188,
9078,
1435,
7923,
469,
30,
1654,
8082,
18,
2
] |
dc.DrawRotatedText(label, (width-tw)/2+dx, height+dy, 90.0)
|
dc.DrawRotatedText(label, (width-tw)/2+dx, height + dy - item.border, 90.0)
|
def DrawLabel(self, item, dc, width, height, dx=0, dy=0): dc.SetFont(item.GetFont()) if item.IsEnabled(): dc.SetTextForeground(item.GetForegroundColour()) else: dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT)) label = item.GetLabel() th, tw = dc.GetTextExtent(label) #dc.DrawText(label, (width-tw)/2+dx, (height-th)/2+dy) dc.DrawRotatedText(label, (width-tw)/2+dx, height+dy, 90.0)
|
dfb0001908470a3c66065d87e9916623f9a610ff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/dfb0001908470a3c66065d87e9916623f9a610ff/springtabs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2224,
12,
2890,
16,
761,
16,
6744,
16,
1835,
16,
2072,
16,
6633,
33,
20,
16,
7732,
33,
20,
4672,
6744,
18,
694,
5711,
12,
1726,
18,
967,
5711,
10756,
309,
761,
18,
2520,
1526,
13332,
6744,
18,
694,
1528,
23206,
12,
1726,
18,
967,
23206,
26404,
10756,
469,
30,
6744,
18,
694,
1528,
23206,
12,
27226,
18,
3163,
2628,
18,
967,
26404,
12,
27226,
18,
30664,
67,
3865,
1502,
1099,
67,
43,
6722,
5151,
3719,
1433,
273,
761,
18,
967,
2224,
1435,
286,
16,
2339,
273,
6744,
18,
967,
1528,
17639,
12,
1925,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2224,
12,
2890,
16,
761,
16,
6744,
16,
1835,
16,
2072,
16,
6633,
33,
20,
16,
7732,
33,
20,
4672,
6744,
18,
694,
5711,
12,
1726,
18,
967,
5711,
10756,
309,
761,
18,
2520,
1526,
13332,
6744,
18,
694,
1528,
23206,
12,
1726,
18,
967,
23206,
26404,
10756,
469,
30,
6744,
18,
694,
1528,
23206,
12,
27226,
18,
3163,
2628,
18,
967,
26404,
12,
27226,
18,
30664,
67,
3865,
1502,
1099,
67,
43,
6722,
5151,
3719,
1433,
273,
761,
18,
967,
2224,
1435,
286,
16,
2339,
273,
6744,
18,
967,
1528,
17639,
12,
1925,
13,
468,
7201,
18,
6493,
1528,
12,
1925,
16,
261,
2819,
17,
11246,
13176,
22,
15,
13437,
16,
261,
4210,
17,
451,
13176,
2
] |
line_surf = font.render(line, True, (255,255,255)) self.notes_surface.blit(line_surf, (0,y)) y = y + font.get_linesize()
|
if not fixed_mode and line == '{': fixed_mode = True continue if fixed_mode and line == '}': fixed_mode = False continue if not fixed_mode: line_surf = font.render(line, True, (255,255,255)) self.notes_surface.blit(line_surf, (0,y)) y = y + font.get_linesize() else: line_surf = fixed_font.render(line, True, (255,255,255)) self.notes_surface.blit(line_surf, (0,y)) y = y + fixed_font.get_linesize()
|
def paint_notes(self): screen_size = self.screen.get_size() margin_x = self.screen.get_size()[0]/50 margin_y = self.screen.get_size()[1]/50 if not self.notes_surface: if self.font_size == None: self.font_size = self.screen.get_size()[1] / 12 font = pygame.font.SysFont("Helvetica, Sans, Arial", size=self.font_size) line_height = font.get_linesize()
|
571640c83813b5ab1f297405a6ec6fab9e453edc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3598/571640c83813b5ab1f297405a6ec6fab9e453edc/xpressent-remote.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
67,
12903,
12,
2890,
4672,
5518,
67,
1467,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
7333,
67,
92,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
20,
18537,
3361,
7333,
67,
93,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
21,
18537,
3361,
309,
486,
365,
18,
12903,
67,
18266,
30,
309,
365,
18,
5776,
67,
1467,
422,
599,
30,
365,
18,
5776,
67,
1467,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
21,
65,
342,
2593,
225,
3512,
273,
2395,
13957,
18,
5776,
18,
12712,
5711,
2932,
44,
292,
90,
7943,
69,
16,
348,
634,
16,
432,
566,
287,
3113,
963,
33,
2890,
18,
5776,
67,
1467,
13,
980,
67,
4210,
273,
3512,
18,
588,
67,
3548,
554,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
67,
12903,
12,
2890,
4672,
5518,
67,
1467,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
7333,
67,
92,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
20,
18537,
3361,
7333,
67,
93,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
21,
18537,
3361,
309,
486,
365,
18,
12903,
67,
18266,
30,
309,
365,
18,
5776,
67,
1467,
422,
599,
30,
365,
18,
5776,
67,
1467,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
21,
65,
342,
2593,
225,
3512,
273,
2395,
13957,
18,
5776,
18,
12712,
5711,
2932,
44,
292,
90,
7943,
69,
16,
348,
634,
16,
432,
566,
287,
3113,
963,
33,
2890,
18,
5776,
67,
1467,
13,
2
] |
sage: q.time()
|
sage.: q.time()
|
def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], '', out # whole thing else: verbose = out[:i] out = out[i+len('FACTORS:')+1:].strip() if time: w = out.split('\n') for i in range(len(w)): if 'user' in w[i]: break if i < len(w): t = w[i].strip() out = '\n'.join([w[j] for j in range(i)]) else: t = '' else: t = '' Z = sage.rings.integer.Integer v = out.split() v = list(set([Z(m) for m in v if Z(m) != n])) v.sort() return v, t, verbose
|
2deb32b0c430790b2ca2a961fbc8993d90dc478c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2deb32b0c430790b2ca2a961fbc8993d90dc478c/qsieve.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434,
977,
876,
434,
670,
485,
1807,
27258,
20004,
55,
21271,
5402,
290,
1493,
326,
3571,
3832,
5410,
7653,
225,
11550,
30,
666,
1493,
5338,
14490,
1392,
1427,
10247,
609,
1493,
813,
1779,
3536,
277,
273,
596,
18,
4720,
2668,
11625,
14006,
2497,
13,
309,
277,
422,
300,
21,
30,
327,
5378,
16,
10226,
596,
282,
468,
7339,
7757,
469,
30,
3988,
273,
596,
10531,
77,
65,
596,
273,
596,
63,
77,
15,
1897,
2668,
11625,
14006,
2497,
27921,
21,
30,
8009,
6406,
1435,
309,
813,
30,
341,
273,
596,
18,
4939,
2668,
64,
82,
6134,
364,
277,
316,
1048,
12,
1897,
12,
91,
3719,
30,
309,
296,
1355,
11,
316,
341,
63,
77,
14542,
898,
309,
277,
411,
562,
12,
91,
4672,
268,
273,
341,
63,
77,
8009,
6406,
1435,
596,
273,
2337,
82,
10332,
5701,
3816,
91,
63,
78,
65,
364,
525,
316,
1048,
12,
77,
13,
5717,
469,
30,
268,
273,
875,
469,
30,
268,
273,
875,
2285,
273,
272,
410,
18,
86,
899,
18,
7745,
18,
4522,
331,
273,
596,
18,
4939,
1435,
331,
273,
666,
12,
542,
3816,
62,
12,
81,
13,
364,
312,
316,
331,
309,
2285,
12,
81,
13,
480,
290,
22643,
331,
18,
3804,
1435,
327,
331,
16,
268,
16,
3988,
282,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434,
977,
876,
434,
670,
485,
1807,
27258,
20004,
55,
21271,
5402,
290,
1493,
326,
3571,
3832,
5410,
7653,
225,
11550,
30,
666,
1493,
5338,
14490,
1392,
1427,
10247,
609,
1493,
813,
1779,
3536,
277,
273,
596,
18,
4720,
2668,
11625,
14006,
2497,
13,
309,
277,
422,
300,
21,
30,
327,
5378,
16,
10226,
596,
282,
468,
7339,
7757,
469,
30,
3988,
273,
596,
10531,
77,
65,
596,
273,
596,
63,
77,
15,
1897,
2668,
11625,
14006,
2497,
27921,
21,
30,
8009,
6406,
2
] |
continue if c == 27:
|
elif c == 10: break elif c == 27:
|
def bs(s): y, x = self.win.getyx() if x == ix: return s s = s[:-1] self.win.delch(y, x - 1) self.win.move(y, x - 1) return s
|
18f3d519035beea0ede3d85f69fec3a24f7e26c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/18f3d519035beea0ede3d85f69fec3a24f7e26c1/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
12,
87,
4672,
677,
16,
619,
273,
365,
18,
8082,
18,
588,
93,
92,
1435,
309,
619,
422,
8288,
30,
327,
272,
272,
273,
272,
10531,
17,
21,
65,
365,
18,
8082,
18,
3771,
343,
12,
93,
16,
619,
300,
404,
13,
365,
18,
8082,
18,
8501,
12,
93,
16,
619,
300,
404,
13,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
12,
87,
4672,
677,
16,
619,
273,
365,
18,
8082,
18,
588,
93,
92,
1435,
309,
619,
422,
8288,
30,
327,
272,
272,
273,
272,
10531,
17,
21,
65,
365,
18,
8082,
18,
3771,
343,
12,
93,
16,
619,
300,
404,
13,
365,
18,
8082,
18,
8501,
12,
93,
16,
619,
300,
404,
13,
327,
272,
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
] |
if not self.getHasBeenRendered(): self.setRange( datetime.now().date() ) self.setHasBeenRendered()
|
super(CalendarControl, self).instantiateWidget()
|
def instantiateWidget(self): if not self.getHasBeenRendered(): self.setRange( datetime.now().date() ) self.setHasBeenRendered() w = wxCalendarControl(self.parentBlock.widget, -1, tzCharacterStyle=self.tzCharacterStyle) return w
|
2f4dad4f9db6b78f40ef58923c0b547c2c24460b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/2f4dad4f9db6b78f40ef58923c0b547c2c24460b/CalendarCanvas.py
|
[
1,
8585,
326,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
4609,
12,
2890,
4672,
2240,
12,
7335,
3367,
16,
365,
2934,
24628,
3840,
4609,
1435,
341,
273,
7075,
7335,
3367,
12,
2890,
18,
2938,
1768,
18,
6587,
16,
300,
21,
16,
6016,
7069,
2885,
33,
2890,
18,
12994,
7069,
2885,
13,
327,
341,
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
] |
if self.path.find("/echoheader") != 0:
|
if not self._ShouldHandleRequest("/echoheader"):
|
def EchoHeader(self): """This handler echoes back the value of a specific request header."""
|
41f6cf83747d6ca25a473f2e42d08288be9d7a5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/41f6cf83747d6ca25a473f2e42d08288be9d7a5d/testserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1864,
12,
2890,
4672,
3536,
2503,
1838,
3376,
281,
1473,
326,
460,
434,
279,
2923,
590,
1446,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1864,
12,
2890,
4672,
3536,
2503,
1838,
3376,
281,
1473,
326,
460,
434,
279,
2923,
590,
1446,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
linkName += "_T: " + values[2]
|
linkName += ": " + values[2] url = url_format % (results_server, values[0]) link = link_format % (url, linkName) first_results = first_results + "RETURN:" + link + '<br>'
|
def send_to_graph(results_server, results_link, title, date, browser_config, results): tbox = title url_format = "http://%s/%s" link_format= "<a href = \"%s\">%s</a>" #value, testname, tbox, timeval, date, branch, buildid, type, data result_format = "%.2f,%s,%s,%d,%d,%s,%s,%s,%s,\n" result_format2 = "%.2f,%s,%s,%d,%d,%s,%s,%s,\n" links = '' for res in results: browser_dump, counter_dump = results[res] utils.debug("Working with test: " + res) utils.debug("Sending results: " + " ".join(browser_dump)) filename = tempfile.mktemp() tmpf = open(filename, "w") if res in ('ts', 'twinopen'): i = 0 for val in browser_dump: val_list = val.split('|') for v in val_list: tmpf.write(result_format % (float(v), res, tbox, i, date, browser_config['branch'], browser_config['buildid'], "discrete", "ms")) i += 1 else: # each line of the string is of the format i;page_name;median;mean;min;max;time vals\n name = '' if ((res == 'tp') or (res == 'tp_js')): name = '_loadtime' for bd in browser_dump: bd.rstrip('\n') page_results = bd.splitlines() i = 0 for mypage in page_results: r = mypage.split(';') #skip this line if it isn't the correct format if len(r) == 1: continue r[1] = r[1].rstrip('/') if r[1].find('/') > -1 : page = r[1].split('/')[1] else: page = r[1] try: val = float(r[2]) except ValueError: print 'WARNING: value error for median in tp' val = 0 tmpf.write(result_format % (val, res + name, tbox, i, date, browser_config['branch'], browser_config['buildid'], "discrete", page)) i += 1 tmpf.flush() tmpf.close() links += post_chunk(results_server, results_link, res, filename) os.remove(filename) for cd in counter_dump: for count_type in cd: val_list = cd[count_type] chunks = chunk_list(val_list) chunk_link = '' i = 0 for chunk in chunks: filename = tempfile.mktemp() tmpf = open(filename, "w") for val in chunk: tmpf.write(result_format2 % (float(val), res + "_" + count_type.replace("%", "Percent"), tbox, i, date, browser_config['branch'], browser_config['buildid'], "discrete")) i += 1 tmpf.flush() tmpf.close() chunk_link = post_chunk(results_server, results_link, '%s_%s (%d values)' % (res, count_type, len(chunk)), filename) os.remove(filename) links += chunk_link lines = links.split('\n') for line in lines: if line == "": continue values = line.split(":") linkName = values[1] if float(values[2]) > 0: linkName += "_T: " + values[2] else: linkName += "_1" url = url_format % (results_server, values[0],) link = link_format % (url, linkName,) print "RETURN: " + link
|
6cfc8f3ee9fb233d5eb99b068036fc3bc4546c1e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/6cfc8f3ee9fb233d5eb99b068036fc3bc4546c1e/run_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
4660,
12,
4717,
67,
3567,
16,
1686,
67,
1232,
16,
2077,
16,
1509,
16,
4748,
67,
1425,
16,
1686,
4672,
268,
2147,
273,
2077,
880,
67,
2139,
273,
315,
2505,
23155,
87,
5258,
87,
6,
1692,
67,
2139,
33,
3532,
69,
3897,
273,
22049,
87,
2412,
9822,
87,
1757,
69,
2984,
468,
1132,
16,
1842,
529,
16,
268,
2147,
16,
813,
1125,
16,
1509,
16,
3803,
16,
1361,
350,
16,
618,
16,
501,
563,
67,
2139,
273,
26209,
22,
74,
15529,
87,
15529,
87,
15529,
72,
15529,
72,
15529,
87,
15529,
87,
15529,
87,
15529,
87,
17211,
82,
6,
563,
67,
2139,
22,
273,
26209,
22,
74,
15529,
87,
15529,
87,
15529,
72,
15529,
72,
15529,
87,
15529,
87,
15529,
87,
17211,
82,
6,
4716,
273,
875,
225,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2990,
18,
4148,
2932,
14836,
598,
1842,
30,
315,
397,
400,
13,
2990,
18,
4148,
2932,
16322,
1686,
30,
315,
397,
315,
3552,
5701,
12,
11213,
67,
8481,
3719,
1544,
273,
13275,
18,
24816,
5814,
1435,
1853,
74,
273,
1696,
12,
3459,
16,
315,
91,
7923,
309,
400,
316,
7707,
3428,
2187,
296,
88,
8082,
3190,
11,
4672,
277,
273,
374,
364,
1244,
316,
4748,
67,
8481,
30,
1244,
67,
1098,
273,
1244,
18,
4939,
2668,
96,
6134,
364,
331,
316,
1244,
67,
1098,
30,
1853,
74,
18,
2626,
12,
2088,
67,
2139,
738,
261,
5659,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
4660,
12,
4717,
67,
3567,
16,
1686,
67,
1232,
16,
2077,
16,
1509,
16,
4748,
67,
1425,
16,
1686,
4672,
268,
2147,
273,
2077,
880,
67,
2139,
273,
315,
2505,
23155,
87,
5258,
87,
6,
1692,
67,
2139,
33,
3532,
69,
3897,
273,
22049,
87,
2412,
9822,
87,
1757,
69,
2984,
468,
1132,
16,
1842,
529,
16,
268,
2147,
16,
813,
1125,
16,
1509,
16,
3803,
16,
1361,
350,
16,
618,
16,
501,
563,
67,
2139,
273,
26209,
22,
74,
15529,
87,
15529,
87,
15529,
72,
15529,
72,
15529,
87,
15529,
87,
15529,
87,
15529,
87,
17211,
82,
6,
563,
67,
2139,
22,
273,
26209,
22,
74,
15529,
87,
15529,
87,
15529,
72,
15529,
2
] |
self.db = sqlite3.connect(dbpath) self.cursor = self.db.cursor()
|
try: self.db = sqlite3.connect(dbpath) self.cursor = self.db.cursor() except sqlite3.Error, msg: print 'Error:', msg print 'DBpath:', dbpath
|
def __init__(self, dbpath): self.db = sqlite3.connect(dbpath) self.cursor = self.db.cursor()
|
5b918ae9990c06e40525ab6dcdfececdce95b6fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8874/5b918ae9990c06e40525ab6dcdfececdce95b6fc/dbsearch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1319,
803,
4672,
775,
30,
365,
18,
1966,
273,
16184,
23,
18,
3612,
12,
1966,
803,
13,
365,
18,
9216,
273,
365,
18,
1966,
18,
9216,
1435,
1335,
16184,
23,
18,
668,
16,
1234,
30,
1172,
296,
668,
30,
2187,
1234,
1172,
296,
2290,
803,
30,
2187,
1319,
803,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1319,
803,
4672,
775,
30,
365,
18,
1966,
273,
16184,
23,
18,
3612,
12,
1966,
803,
13,
365,
18,
9216,
273,
365,
18,
1966,
18,
9216,
1435,
1335,
16184,
23,
18,
668,
16,
1234,
30,
1172,
296,
668,
30,
2187,
1234,
1172,
296,
2290,
803,
30,
2187,
1319,
803,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = self._dbmtype.open(self._dbmfile, 'c')
|
result = self._dbmtype.open(self._dbmfile, 'c', stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
|
def _get_dbm(self): result = self._dbmtype.open(self._dbmfile, 'c') if self._dbmtype is anydbm: self._set_dbm_type() return result
|
fcd73b380b082bdd416fee01c9e158c54741697b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/fcd73b380b082bdd416fee01c9e158c54741697b/Session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1966,
81,
12,
2890,
4672,
563,
273,
365,
6315,
1966,
81,
723,
18,
3190,
12,
2890,
6315,
1966,
81,
768,
16,
296,
71,
2187,
610,
18,
55,
67,
7937,
27984,
571,
610,
18,
55,
67,
45,
59,
27984,
571,
610,
18,
55,
67,
7937,
6997,
52,
13,
309,
365,
6315,
1966,
81,
723,
353,
1281,
1966,
81,
30,
365,
6315,
542,
67,
1966,
81,
67,
723,
1435,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1966,
81,
12,
2890,
4672,
563,
273,
365,
6315,
1966,
81,
723,
18,
3190,
12,
2890,
6315,
1966,
81,
768,
16,
296,
71,
2187,
610,
18,
55,
67,
7937,
27984,
571,
610,
18,
55,
67,
45,
59,
27984,
571,
610,
18,
55,
67,
7937,
6997,
52,
13,
309,
365,
6315,
1966,
81,
723,
353,
1281,
1966,
81,
30,
365,
6315,
542,
67,
1966,
81,
67,
723,
1435,
327,
563,
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
] |
for dirname in rl_config.TTFSearchPath: abp = os.path.abspath(dirname) if os.path.isdir(abp): dirpath.append(abp)
|
searchpath = [] if config.get_misc('ttfonts', 'search_path', False): searchpath += map(str.strip, config.get_misc('ttfonts', 'search_path').split(',')) if os.name == 'nt': pass elif os.uname()[0] == 'Linux': searchpath += TTFSearchPath_Linux else: pass if config.get_misc('ttfonts', 'use_default_path', True): searchpath += rl_config.TTFSearchPath for dirglob in searchpath: dirglob = os.path.expanduser(dirglob) for dirname in glob.iglob(dirglob): abp = os.path.abspath(dirname) if os.path.isdir(abp): dirpath.append(abp)
|
def FindCustomFonts(): """Fill the __foundFonts list with those filenames, whose fonts can be found in the reportlab ttf font path. This process needs only be done once per loading of this module, it is cached. But, if the system admin adds some font in the meanwhile, the server must be restarted eventually. """ dirpath = [] log = logging.getLogger('report.fonts') global __foundFonts for dirname in rl_config.TTFSearchPath: abp = os.path.abspath(dirname) if os.path.isdir(abp): dirpath.append(abp) for k, (name, font, fname, mode) in enumerate(CustomTTFonts): if fname in __foundFonts: continue for d in dirpath: if os.path.exists(os.path.join(d, fname)): log.debug("Found font %s in %s as %s", fname, d, name) __foundFonts.append(fname) break # print "Found fonts:", __foundFonts
|
fef5091319af2da11c67fb7bd6097c038b894880 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/fef5091319af2da11c67fb7bd6097c038b894880/customfonts.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3802,
5711,
87,
13332,
3536,
8026,
326,
1001,
7015,
5711,
87,
666,
598,
5348,
9066,
16,
8272,
16450,
848,
506,
1392,
316,
326,
2605,
7411,
26826,
3512,
589,
18,
225,
1220,
1207,
4260,
1338,
506,
2731,
3647,
1534,
7153,
434,
333,
1605,
16,
518,
353,
3472,
18,
12484,
16,
309,
326,
2619,
3981,
4831,
2690,
3512,
316,
326,
3722,
17523,
16,
326,
1438,
1297,
506,
28893,
18011,
18,
3536,
17803,
273,
225,
5378,
613,
273,
2907,
18,
588,
3328,
2668,
6006,
18,
22052,
6134,
2552,
1001,
7015,
5711,
87,
1623,
803,
273,
5378,
225,
309,
642,
18,
588,
67,
23667,
2668,
748,
22052,
2187,
296,
3072,
67,
803,
2187,
1083,
4672,
1623,
803,
1011,
852,
12,
701,
18,
6406,
16,
642,
18,
588,
67,
23667,
2668,
748,
22052,
2187,
296,
3072,
67,
803,
16063,
4939,
12,
17023,
3719,
225,
309,
1140,
18,
529,
422,
296,
496,
4278,
1342,
1327,
1140,
18,
318,
339,
1435,
63,
20,
65,
422,
296,
19475,
4278,
1623,
803,
1011,
399,
17963,
2979,
743,
67,
19475,
469,
30,
1342,
225,
309,
642,
18,
588,
67,
23667,
2668,
748,
22052,
2187,
296,
1202,
67,
1886,
67,
803,
2187,
1053,
4672,
225,
1623,
803,
1011,
11618,
67,
1425,
18,
1470,
42,
2979,
743,
225,
364,
1577,
10581,
316,
1623,
803,
30,
1577,
10581,
273,
1140,
18,
803,
18,
12320,
1355,
12,
1214,
10581,
13,
364,
4283,
316,
4715,
18,
360,
1295,
12,
1214,
10581,
4672,
1223,
84,
273,
1140,
18,
803,
18,
5113,
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,
4163,
3802,
5711,
87,
13332,
3536,
8026,
326,
1001,
7015,
5711,
87,
666,
598,
5348,
9066,
16,
8272,
16450,
848,
506,
1392,
316,
326,
2605,
7411,
26826,
3512,
589,
18,
225,
1220,
1207,
4260,
1338,
506,
2731,
3647,
1534,
7153,
434,
333,
1605,
16,
518,
353,
3472,
18,
12484,
16,
309,
326,
2619,
3981,
4831,
2690,
3512,
316,
326,
3722,
17523,
16,
326,
1438,
1297,
506,
28893,
18011,
18,
3536,
17803,
273,
225,
5378,
613,
273,
2907,
18,
588,
3328,
2668,
6006,
18,
22052,
6134,
2552,
1001,
7015,
5711,
87,
1623,
803,
273,
5378,
225,
309,
642,
18,
588,
67,
23667,
2668,
748,
22052,
2187,
296,
3072,
67,
803,
2187,
1083,
4672,
1623,
803,
1011,
852,
12,
701,
2
] |
self.field_id = res and res[0] return self.field_id
|
self.field_id[cr.dbname] = res and res[0] return self.field_id[cr.dbname]
|
def _field_get(self, self2, cr, uid, prop): if not self.field_id: cr.execute('select id from ir_model_fields where name=%s and model=%s', (prop, self2._name)) res = cr.fetchone() self.field_id = res and res[0] return self.field_id
|
a230dfb364a5586ae582f6ae99d35a124c64e563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/a230dfb364a5586ae582f6ae99d35a124c64e563/fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
588,
12,
2890,
16,
365,
22,
16,
4422,
16,
4555,
16,
2270,
4672,
309,
486,
365,
18,
1518,
67,
350,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
2284,
67,
2821,
1625,
508,
5095,
87,
471,
938,
5095,
87,
2187,
261,
5986,
16,
365,
22,
6315,
529,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
365,
18,
1518,
67,
350,
273,
400,
471,
400,
63,
20,
65,
327,
365,
18,
1518,
67,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
588,
12,
2890,
16,
365,
22,
16,
4422,
16,
4555,
16,
2270,
4672,
309,
486,
365,
18,
1518,
67,
350,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
2284,
67,
2821,
1625,
508,
5095,
87,
471,
938,
5095,
87,
2187,
261,
5986,
16,
365,
22,
6315,
529,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
365,
18,
1518,
67,
350,
273,
400,
471,
400,
63,
20,
65,
327,
365,
18,
1518,
67,
350,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.error("No handler found for '%s'" % subject)
|
log.err("No handler found for '%s'" % subject)
|
def main(): """ Here we do the job """ global MBOT_ADDRESS, CONFIG_FILE, LOG_LEVEL, MODULES config_file = CONFIG_FILE try: opts, args = getopt.getopt(sys.argv[1:], "c:") except getopt.GetoptError: # print help information and exit: usage() sys.exit(2) for o, a in opts: if o == "-c": config_file = a Conf = read_defaults(config_file) log = Logger.Logger(LOG_LEVEL) log.notice("Using config file %s\n" % config_file) log.debug("Configuration values: MBOT_ADDRESS='%s'" \ % MBOT_ADDRESS + \ "LOG_LEVEL='%s' MODULES='%s'" \ % (LOG_LEVEL, MODULES)) # we read the mail mesg = read_email() sender = mesg.get('From') subject = mime_decode_header(mesg.get('Subject')) mesg_id = mesg.get('Message-Id') date = mesg.get('Date') dest = mesg.get('To') log.notice("Incoming mail: the %s, from '%s' [%s] to '%s' " \ % (date, sender, mesg_id, dest) + \ "with subject '%s'" % subject) # we only consider (parse) the text/plain parts of message if mesg.is_multipart(): body = [] for part in mesg.walk(): if part.get_content_type() == "text/plain": body.append(part.get_payload(decode=1)) else: body.append(part) else: body = [mesg.get_payload()] log.notice("message: %s %s %s \n" % (mesg_id, sender, subject)) # we prepare the response resp = MIMEMultipart() resp['Subject'] = 'Re: %s' % subject resp['To'] = sender resp['In-Reply-To'] = mesg_id # we initialize a handler corresponding to the given subject # first we create a new dict reverse from module one rev_modules = {} for m in MODULES: log.debug("m: %s" % m) for s in MODULES[m]: log.debug("s: %s" % s) rev_modules[s] = m # now we can try to import appropriate module and use it h = None for s in rev_modules: if subject.find(s) == 0: handler = rev_modules[s] log.debug("using handler: %s" % handler) try: handlerModule = __import__(handler) log.notice("Using handler: %s" % handler) handlerClass = getattr(handlerModule, handler) log.debug("handlerClass: %s" % handlerClass) h = handlerClass(log, subject[len(s):], dest, sender, date) log.debug("Instanciate handler %s for '%s'" \ % (handler, subject[len(s):])) except: log.error("Impossible to load handler: %s" \ % handler) log.error("%s: %s" \ % (sys.exc_type, sys.exc_value)) break # If we have no handler, we send an error mail if h is None: log.error("No handler found for '%s'" % subject) mesg = "Sorry, mbot is not configured to handle your request" resp.attach(MIMEText(mesg)) # Here we apply the found handler else: # then we read the handler config h.read_conf(Conf) # we pass each part of the message to the handler for part in body: for (type, out) in h.handle(part): maintype, subtype = type.split('/', 1) log.debug("%s part type" % maintype) if maintype == 'text': data = MIMEText(out, _subtype=subtype) log.debug("Result is:\n%s" % out) elif maintype == 'image': data = MIMEImage(out, _subtype=subtype) elif maintype == 'audio': data = MIMEAudio(out, _subtype=subtype) else: # Generic mime encoding data = MIMEBase(maintype, subtype) data.set_payload(out) Encoders.encode_base64(data) resp.attach(data) # Then we send the mail log.notice("Sending from %s to %s \n" % (MBOT_ADDRESS, sender)) s = smtplib.SMTP() s.connect() s.sendmail(MBOT_ADDRESS, sender, resp.as_string()) s.close()
|
2169b15d1ec57f89b4b007ebbd0c6ca0dd857283 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3144/2169b15d1ec57f89b4b007ebbd0c6ca0dd857283/mbot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
13743,
732,
741,
326,
1719,
3536,
2552,
17897,
1974,
67,
15140,
16,
9128,
67,
3776,
16,
2018,
67,
10398,
16,
14057,
55,
225,
642,
67,
768,
273,
9128,
67,
3776,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
71,
2773,
13,
1335,
336,
3838,
18,
967,
3838,
668,
30,
468,
1172,
2809,
1779,
471,
2427,
30,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
225,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
3701,
71,
6877,
642,
67,
768,
273,
279,
225,
9675,
273,
855,
67,
7606,
12,
1425,
67,
768,
13,
613,
225,
273,
4242,
18,
3328,
12,
4842,
67,
10398,
13,
225,
613,
18,
20392,
2932,
7736,
642,
585,
738,
87,
64,
82,
6,
738,
642,
67,
768,
13,
613,
18,
4148,
2932,
1750,
924,
30,
17897,
1974,
67,
15140,
28713,
87,
4970,
521,
738,
17897,
1974,
67,
15140,
397,
521,
315,
4842,
67,
10398,
28713,
87,
11,
14057,
55,
28713,
87,
4970,
521,
738,
261,
4842,
67,
10398,
16,
14057,
55,
3719,
225,
468,
732,
855,
326,
4791,
15216,
75,
273,
855,
67,
3652,
1435,
225,
5793,
225,
273,
15216,
75,
18,
588,
2668,
1265,
6134,
3221,
273,
4892,
67,
3922,
67,
3374,
12,
26244,
75,
18,
588,
2668,
6638,
26112,
15216,
75,
67,
350,
273,
15216,
75,
18,
588,
2668,
1079,
17,
548,
6134,
1509,
565,
273,
15216,
75,
18,
588,
2668,
1626,
6134,
1570,
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,
3536,
13743,
732,
741,
326,
1719,
3536,
2552,
17897,
1974,
67,
15140,
16,
9128,
67,
3776,
16,
2018,
67,
10398,
16,
14057,
55,
225,
642,
67,
768,
273,
9128,
67,
3776,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
71,
2773,
13,
1335,
336,
3838,
18,
967,
3838,
668,
30,
468,
1172,
2809,
1779,
471,
2427,
30,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
225,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
3701,
71,
6877,
642,
67,
768,
273,
279,
225,
9675,
273,
855,
67,
7606,
12,
1425,
67,
768,
13,
613,
225,
273,
4242,
18,
3328,
12,
4842,
67,
2
] |
from errno import ENOENT, ENOTDIR
|
def _execvpe(file, args, env=None): from errno import ENOENT, ENOTDIR if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ head, tail = path.split(file) if head: func(file, *argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath PATH = envpath.split(pathsep) saved_exc = None saved_tb = None for dir in PATH: fullname = path.join(dir, file) try: func(fullname, *argrest) except error, e: tb = sys.exc_info()[2] if (e.errno != ENOENT and e.errno != ENOTDIR and saved_exc is None): saved_exc = e saved_tb = tb if saved_exc: raise error, saved_exc, saved_tb raise error, e, tb
|
13c3e26f5044f63c940ac463612ee9161b2be422 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/13c3e26f5044f63c940ac463612ee9161b2be422/os.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196,
90,
1501,
8792,
273,
261,
1968,
16,
13,
1550,
273,
5473,
225,
910,
16,
5798,
273,
589,
18,
4939,
12,
768,
13,
309,
910,
30,
1326,
12,
768,
16,
380,
3175,
8792,
13,
327,
309,
296,
4211,
11,
316,
1550,
30,
1550,
803,
273,
1550,
3292,
4211,
3546,
469,
30,
1550,
803,
273,
1652,
803,
7767,
273,
1550,
803,
18,
4939,
12,
803,
10814,
13,
5198,
67,
10075,
273,
599,
5198,
67,
18587,
273,
599,
364,
1577,
316,
7767,
30,
13321,
273,
589,
18,
5701,
12,
1214,
16,
585,
13,
775,
30,
1326,
12,
21885,
16,
380,
3175,
8792,
13,
1335,
555,
16,
425,
30,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
63,
22,
65,
309,
261,
73,
18,
19088,
480,
29018,
471,
425,
18,
19088,
480,
512,
4400,
4537,
471,
5198,
67,
10075,
353,
599,
4672,
5198,
67,
10075,
273,
425,
5198,
67,
18587,
273,
8739,
309,
5198,
67,
10075,
30,
1002,
555,
16,
5198,
67,
10075,
16,
5198,
67,
18587,
1002,
555,
16,
425,
16,
8739,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196,
90,
1501,
8792,
273,
261,
1968,
16,
13,
1550,
273,
5473,
225,
910,
16,
5798,
273,
589,
18,
4939,
12,
768,
13,
309,
910,
30,
1326,
12,
768,
16,
380,
3175,
8792,
13,
327,
309,
296,
4211,
11,
316,
1550,
30,
1550,
803,
273,
1550,
3292,
4211,
3546,
469,
30,
1550,
803,
273,
1652,
803,
7767,
273,
1550,
803,
18,
4939,
12,
803,
10814,
13,
5198,
67,
10075,
273,
599,
5198,
67,
18587,
273,
599,
364,
1577,
316,
7767,
30,
13321,
273,
2
] |
|
ll_lines2 = []
|
ll_lines2, calltag, declaretag = [], 'call ', 'declare '
|
def get_ll(ccode, extern_dir, functions=[]): # goto codespeak and compile our c code request = urllib.urlencode({'ccode':ccode}) llcode = urllib.urlopen('http://codespeak.net/pypy/llvm-gcc.cgi', request).read() # get rid of the struct that llvm-gcc introduces to struct types llcode = llcode.replace("%struct.", "%") #find function names, declare them internal with fastcc calling convertion ll_lines = [] funcnames = { "%ll_frexp_result__Float_Signed" : True, "%prepare_and_raise_ZeroDivisionError" : True, "%prepare_and_raise_OverflowError" : True, "%prepare_and_raise_ValueError" : True, } for line in llcode.split('\n'): comment = line.find(';') if comment >= 0: line = line[:comment] line = line.rstrip() if line[-1:] == '{': returntype, s = line.split(' ', 1) funcname , s = s.split('(', 1) funcnames[funcname] = True line = 'internal fastcc ' + line ll_lines.append(line) #patch calls to function that we just declared fastcc ll_lines2 = [] for line in ll_lines: calltag = 'call ' i = line.find(calltag) if i >= 0: cconv = 'ccc' for funcname in funcnames.keys(): if line.find(funcname) >= 0: cconv = 'fastcc' break line = "%scall %s %s" % (line[:i], cconv, line[i+len(calltag):]) ll_lines2.append(line) llcode = '\n'.join(ll_lines2) # create file llfilename = extern_dir.join("externs").new(ext='.ll') f = open(str(llfilename), 'w') f.write(llcode) f.close() # create bytecode os.chdir(str(extern_dir)) cmdexec('llvm-as externs.ll') bcfilename = extern_dir.join("externs").new(ext='.bc') if functions: for func in functions: # extract cmdexec('llvm-extract -func %s -o %s.bc externs.bc' % (func, func)) # link all the ll files functions_bcs = ' '.join(['%s.bc' % func for func in functions]) cmdexec('llvm-link -o externs_linked.bc ' + functions_bcs) bcfilename = extern_dir.join("externs_linked").new(ext='.bc') return bcfilename
|
4e54dbd41ea7bee20e17169a68acd168f028c9bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/4e54dbd41ea7bee20e17169a68acd168f028c9bd/genllvm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2906,
12,
71,
710,
16,
18885,
67,
1214,
16,
4186,
33,
8526,
4672,
225,
468,
2897,
6198,
10244,
471,
4074,
3134,
276,
981,
590,
273,
11527,
18,
718,
3015,
12590,
11,
71,
710,
4278,
71,
710,
6792,
6579,
710,
273,
11527,
18,
295,
18589,
2668,
2505,
2207,
7000,
10244,
18,
2758,
19,
22680,
93,
19,
2906,
3489,
17,
75,
952,
18,
19062,
2187,
590,
2934,
896,
1435,
225,
468,
336,
10911,
434,
326,
1958,
716,
328,
3070,
81,
17,
75,
952,
16658,
764,
358,
1958,
1953,
6579,
710,
273,
6579,
710,
18,
2079,
27188,
1697,
1199,
16,
2213,
7923,
225,
468,
4720,
445,
1257,
16,
14196,
2182,
2713,
598,
4797,
952,
4440,
1765,
285,
6579,
67,
3548,
273,
5378,
1326,
1973,
273,
288,
2213,
2906,
67,
74,
266,
23829,
67,
2088,
972,
4723,
67,
12294,
6,
4202,
294,
1053,
16,
2213,
9366,
67,
464,
67,
11628,
67,
7170,
28223,
668,
6,
294,
1053,
16,
2213,
9366,
67,
464,
67,
11628,
67,
15526,
668,
6,
377,
294,
1053,
16,
2213,
9366,
67,
464,
67,
11628,
67,
23610,
6,
3639,
294,
1053,
16,
289,
364,
980,
316,
6579,
710,
18,
4939,
2668,
64,
82,
11,
4672,
2879,
273,
980,
18,
4720,
2668,
4359,
13,
309,
2879,
1545,
374,
30,
980,
273,
980,
10531,
3469,
65,
980,
273,
980,
18,
86,
6406,
1435,
309,
980,
18919,
21,
26894,
422,
2292,
4278,
327,
723,
16,
272,
273,
980,
18,
4939,
2668,
2265,
404,
13,
1326,
529,
225,
269,
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,
2906,
12,
71,
710,
16,
18885,
67,
1214,
16,
4186,
33,
8526,
4672,
225,
468,
2897,
6198,
10244,
471,
4074,
3134,
276,
981,
590,
273,
11527,
18,
718,
3015,
12590,
11,
71,
710,
4278,
71,
710,
6792,
6579,
710,
273,
11527,
18,
295,
18589,
2668,
2505,
2207,
7000,
10244,
18,
2758,
19,
22680,
93,
19,
2906,
3489,
17,
75,
952,
18,
19062,
2187,
590,
2934,
896,
1435,
225,
468,
336,
10911,
434,
326,
1958,
716,
328,
3070,
81,
17,
75,
952,
16658,
764,
358,
1958,
1953,
6579,
710,
273,
6579,
710,
18,
2079,
27188,
1697,
1199,
16,
2213,
7923,
225,
468,
4720,
445,
1257,
16,
14196,
2182,
2713,
598,
4797,
952,
4440,
1765,
285,
6579,
67,
2
] |
self.check_prerequisite_command('umount')
|
Util().check_prerequisite_command('umount')
|
def unmount_image(self, mount_point): try: self.check_prerequisite_command('umount') except NotFoundError: sys.exit(1)
|
7af1f9e3c7085c3b64dfc2df7ca7079cf56f25b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/7af1f9e3c7085c3b64dfc2df7ca7079cf56f25b4/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25670,
67,
2730,
12,
2890,
16,
5344,
67,
1153,
4672,
775,
30,
3564,
7675,
1893,
67,
683,
822,
16608,
1137,
67,
3076,
2668,
379,
592,
6134,
1335,
25576,
30,
2589,
18,
8593,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25670,
67,
2730,
12,
2890,
16,
5344,
67,
1153,
4672,
775,
30,
3564,
7675,
1893,
67,
683,
822,
16608,
1137,
67,
3076,
2668,
379,
592,
6134,
1335,
25576,
30,
2589,
18,
8593,
12,
21,
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
] |
LOG.info("Connecting to cluster at: %s" % self.HeadNode)
|
def DoIt(self): scheduler = Scheduler() # make a connection to the cluster LOG.info("Connecting to cluster at: %s" % self.HeadNode) try: scheduler.Connect(self.HeadNode) except Exception, e: LOG.error("Unable to reach cluster head node: %s" % self.HeadNode) LOG.error(e) LOG.info("Exiting...") sys.exit(2)
|
577cb2bd2414a26ea5fdbfa305c7c8f61ea2a861 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14622/577cb2bd2414a26ea5fdbfa305c7c8f61ea2a861/hpc-spool-script.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
7193,
12,
2890,
4672,
8129,
273,
12620,
1435,
468,
1221,
279,
1459,
358,
326,
2855,
698,
30,
8129,
18,
5215,
12,
2890,
18,
1414,
907,
13,
1335,
1185,
16,
425,
30,
2018,
18,
1636,
2932,
3370,
358,
9287,
2855,
910,
756,
30,
738,
87,
6,
738,
365,
18,
1414,
907,
13,
2018,
18,
1636,
12,
73,
13,
2018,
18,
1376,
2932,
6767,
310,
7070,
13,
2589,
18,
8593,
12,
22,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
30,
8129,
18,
5215,
12,
2890,
18,
1414,
907,
13,
1335,
1185,
16,
425,
30,
2018,
18,
1636,
2932,
3370,
358,
9287,
2855,
910,
756,
30,
738,
87,
6,
738,
365,
18,
1414,
907,
13,
2018,
18,
1636,
12,
73,
13,
2018,
18,
1376,
2932,
6767,
310,
7070,
13,
2589,
18,
8593,
12,
22,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
flist += operator+'('+f+') as '+f
|
flist += group_operator+'('+f+') as '+f
|
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): """ Get the list of records in list view grouped by the given ``groupby`` fields
|
99608428f8798699de8a678ed91f2ea221f5030b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/99608428f8798699de8a678ed91f2ea221f5030b/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
1466,
16,
13126,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
968,
326,
666,
434,
3853,
316,
666,
1476,
10303,
635,
326,
864,
12176,
1655,
1637,
10335,
1466,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
1466,
16,
13126,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
968,
326,
666,
434,
3853,
316,
666,
1476,
10303,
635,
326,
864,
12176,
1655,
1637,
10335,
1466,
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
] |
oldrating = self.lastratinglabel self.lastratinglabel = rating if self.chainbox.active and self.__clamp(rating) != self.__clamp(oldrating): oldclamp = self.__clamp(oldrating) oldcenter = int(self.widgets["ratingCenterSlider"].get_value()) * RATING_SLIDER_STEP difference = oldclamp - oldcenter newclamp = self.__clamp(rating) self.widgets["ratingCenterSlider"].set_value((newclamp - difference) / RATING_SLIDER_STEP)
|
center = int(self.widgets["ratingCenterSlider"].get_value()) * RATING_SLIDER_STEP newclamp = self.__clamp(rating) difference = newclamp - center if self.chainbox.active and difference is not self.lastdifference: newsliderval = (newclamp - self.lastdifference) / RATING_SLIDER_STEP self.widgets["ratingCenterSlider"].set_value(newsliderval) else: self.lastdifference = difference
|
def __updateYourRatingHBox (self): if self.finger == None: return if self.widgets["untimedCheck"].get_active(): gameTypeName = self.__getNameOfTimeControl(0, 0) ratingType = self.__getTypeOfTimeControl(0, 0) elif self.widgets["noVariantRadio"].get_active(): min = int(self.widgets["minutesSpin"].get_value()) gain = int(self.widgets["gainSpin"].get_value()) gameTypeName = self.__getNameOfTimeControl(min, gain) ratingType = self.__getTypeOfTimeControl(min, gain) else: variant_combo_getter = self.seekEditorWidgetGettersSetters["variantCombo"][0] variant = variant_combo_getter(self.widgets["variantCombo"]) gameTypeName = variants[variant].name ratingType = self.variants[variant]
|
722dcd889fab912f15e7688b07f1ddcedb21e013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/722dcd889fab912f15e7688b07f1ddcedb21e013/ICLounge.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
15446,
20388,
44,
3514,
261,
2890,
4672,
309,
365,
18,
74,
6658,
422,
599,
30,
327,
225,
309,
365,
18,
18148,
9614,
318,
20905,
1564,
6,
8009,
588,
67,
3535,
13332,
7920,
7947,
273,
365,
16186,
17994,
951,
950,
3367,
12,
20,
16,
374,
13,
13953,
559,
273,
365,
16186,
588,
559,
951,
950,
3367,
12,
20,
16,
374,
13,
1327,
365,
18,
18148,
9614,
2135,
9356,
19984,
6,
8009,
588,
67,
3535,
13332,
1131,
273,
509,
12,
2890,
18,
18148,
9614,
17916,
3389,
267,
6,
8009,
588,
67,
1132,
10756,
17527,
273,
509,
12,
2890,
18,
18148,
9614,
25540,
3389,
267,
6,
8009,
588,
67,
1132,
10756,
7920,
7947,
273,
365,
16186,
17994,
951,
950,
3367,
12,
1154,
16,
17527,
13,
13953,
559,
273,
365,
16186,
588,
559,
951,
950,
3367,
12,
1154,
16,
17527,
13,
469,
30,
5437,
67,
25053,
67,
11990,
273,
365,
18,
16508,
6946,
4609,
967,
5432,
694,
5432,
9614,
8688,
16156,
6,
6362,
20,
65,
5437,
273,
5437,
67,
25053,
67,
11990,
12,
2890,
18,
18148,
9614,
8688,
16156,
6,
5717,
7920,
7947,
273,
12935,
63,
8688,
8009,
529,
13953,
559,
273,
365,
18,
15886,
63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30,
327,
225,
309,
365,
18,
18148,
9614,
318,
20905,
1564,
6,
8009,
588,
67,
3535,
13332,
7920,
7947,
273,
365,
16186,
17994,
951,
950,
3367,
12,
20,
16,
374,
13,
13953,
559,
273,
365,
16186,
588,
559,
951,
950,
3367,
12,
20,
16,
374,
13,
1327,
365,
18,
18148,
9614,
2135,
9356,
19984,
6,
8009,
588,
67,
3535,
13332,
1131,
273,
509,
12,
2890,
18,
18148,
9614,
17916,
3389,
267,
6,
8009,
588,
67,
1132,
10756,
17527,
273,
509,
12,
2890,
18,
18148,
9614,
25540,
3389,
267,
6,
8009,
588,
67,
1132,
10756,
7920,
7947,
273,
365,
16186,
17994,
951,
950,
2
] |
res += char.lower()
|
res += char.upper()
|
def _format_iban(string): ''' This function removes all characters from given 'string' that isn't a alpha numeric and converts it to lower case. ''' res = "" for char in string: if char.isalnum(): res += char.lower() return res
|
562dcd893fb70e74d5bfd2f49f79f2220c9fce86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/562dcd893fb70e74d5bfd2f49f79f2220c9fce86/base_iban.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
67,
495,
304,
12,
1080,
4672,
9163,
1220,
445,
7157,
777,
3949,
628,
864,
296,
1080,
11,
716,
5177,
1404,
279,
4190,
6389,
471,
7759,
518,
358,
2612,
648,
18,
9163,
400,
273,
1408,
364,
1149,
316,
533,
30,
309,
1149,
18,
291,
287,
2107,
13332,
400,
1011,
1149,
18,
5797,
1435,
327,
400,
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,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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,
389,
2139,
67,
495,
304,
12,
1080,
4672,
9163,
1220,
445,
7157,
777,
3949,
628,
864,
296,
1080,
11,
716,
5177,
1404,
279,
4190,
6389,
471,
7759,
518,
358,
2612,
648,
18,
9163,
400,
273,
1408,
364,
1149,
316,
533,
30,
309,
1149,
18,
291,
287,
2107,
13332,
400,
1011,
1149,
18,
5797,
1435,
327,
400,
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
] |
for widget in self._loaded_types[group]:
|
types = self._loaded_types[group] types.sort(key=lambda x: (str.lower(x[0]))) for widget in types:
|
def _group_selected_cb(self, li, it): group = it.label_get() self._group = group
|
84350fb0160c5c85d522d3c62131e70edbcf7975 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/84350fb0160c5c85d522d3c62131e70edbcf7975/widgets_list.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1655,
67,
8109,
67,
7358,
12,
2890,
16,
4501,
16,
518,
4672,
1041,
273,
518,
18,
1925,
67,
588,
1435,
365,
6315,
1655,
273,
1041,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1655,
67,
8109,
67,
7358,
12,
2890,
16,
4501,
16,
518,
4672,
1041,
273,
518,
18,
1925,
67,
588,
1435,
365,
6315,
1655,
273,
1041,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.