rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
"<p><b>Trilinos Libary Package Dependencies</b></p>\n"+\
|
"<p><b><huge>Trilinos Libary Package Dependencies</huge></b></p>\n"+\
|
def createFullHtmlForTables(self):
|
6e5082bbd417a8dc58aa99502bc172825250a2f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1130/6e5082bbd417a8dc58aa99502bc172825250a2f2/TrilinosDependencies.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
5080,
4353,
1290,
6905,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5080,
4353,
1290,
6905,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
proc = rabbitvcs.util.helper.launch_ui_window("ignore", [self.base_dir, os.path.basename(path)])
|
base_dir = os.path.join(self.base_dir, os.path.dirname(path)) proc = rabbitvcs.util.helper.launch_ui_window("ignore", [base_dir, os.path.basename(path)])
|
def ignore_by_filename(self, widget, data1=None, data2=None): path = self.paths[0] proc = rabbitvcs.util.helper.launch_ui_window("ignore", [self.base_dir, os.path.basename(path)]) self.caller.rescan_after_process_exit(proc, self.paths)
|
7972e1a40497ffd41faa5d6affd618fcdcbce39c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/7972e1a40497ffd41faa5d6affd618fcdcbce39c/contextmenu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2305,
67,
1637,
67,
3459,
12,
2890,
16,
3604,
16,
501,
21,
33,
7036,
16,
501,
22,
33,
7036,
4672,
589,
273,
365,
18,
4481,
63,
20,
65,
1026,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1969,
67,
1214,
16,
1140,
18,
803,
18,
12287,
12,
803,
3719,
5418,
273,
767,
70,
3682,
18982,
18,
1367,
18,
4759,
18,
20738,
67,
4881,
67,
5668,
2932,
6185,
3113,
306,
1969,
67,
1214,
16,
1140,
18,
803,
18,
13909,
12,
803,
13,
5717,
365,
18,
16140,
18,
455,
4169,
67,
5205,
67,
2567,
67,
8593,
12,
9381,
16,
365,
18,
4481,
13,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2305,
67,
1637,
67,
3459,
12,
2890,
16,
3604,
16,
501,
21,
33,
7036,
16,
501,
22,
33,
7036,
4672,
589,
273,
365,
18,
4481,
63,
20,
65,
1026,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1969,
67,
1214,
16,
1140,
18,
803,
18,
12287,
12,
803,
3719,
5418,
273,
767,
70,
3682,
18982,
18,
1367,
18,
4759,
18,
20738,
67,
4881,
67,
5668,
2932,
6185,
3113,
306,
1969,
67,
1214,
16,
1140,
18,
803,
18,
13909,
12,
803,
13,
5717,
365,
18,
16140,
18,
455,
4169,
67,
5205,
67,
2567,
67,
8593,
12,
9381,
16,
365,
18,
4481,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.f.write('%s%04d%s%s\n' % (uid, year, element,
|
self.f.write('%s%04d%s%s\n' % (id11, year, element,
|
def writeyear(self, uid, element, year, temps): """Write a single year's worth of data out. *temps* should contain 12 monthly values."""
|
a71ab7b92d8043413ba119ed6e49a88e9820a6e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/a71ab7b92d8043413ba119ed6e49a88e9820a6e0/io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
402,
2091,
12,
2890,
16,
4555,
16,
930,
16,
3286,
16,
1022,
1121,
4672,
3536,
3067,
279,
2202,
3286,
1807,
26247,
434,
501,
596,
18,
225,
380,
874,
1121,
14,
1410,
912,
2593,
31114,
924,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
402,
2091,
12,
2890,
16,
4555,
16,
930,
16,
3286,
16,
1022,
1121,
4672,
3536,
3067,
279,
2202,
3286,
1807,
26247,
434,
501,
596,
18,
225,
380,
874,
1121,
14,
1410,
912,
2593,
31114,
924,
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
] |
result.append(c)
|
try: result.append(c.data) except AttributeError: result.append(c)
|
def collapse_text(self, doctree, result): """Remove all HTML markup and return only the text nodes.""" for c in doctree.children: if isinstance(c, nodes.Text): result.append(c) else: result = self.collapse_text(c, result) return result
|
f61718a1bfdcdc17ff2bbf594cd6291114bfb8fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/f61718a1bfdcdc17ff2bbf594cd6291114bfb8fd/epub.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
67,
955,
12,
2890,
16,
31263,
992,
16,
563,
4672,
3536,
3288,
777,
3982,
9813,
471,
327,
1338,
326,
977,
2199,
12123,
364,
276,
316,
31263,
992,
18,
5906,
30,
309,
1549,
12,
71,
16,
2199,
18,
1528,
4672,
775,
30,
225,
563,
18,
6923,
12,
71,
18,
892,
13,
1335,
6394,
30,
225,
563,
18,
6923,
12,
71,
13,
469,
30,
563,
273,
365,
18,
21405,
67,
955,
12,
71,
16,
563,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
67,
955,
12,
2890,
16,
31263,
992,
16,
563,
4672,
3536,
3288,
777,
3982,
9813,
471,
327,
1338,
326,
977,
2199,
12123,
364,
276,
316,
31263,
992,
18,
5906,
30,
309,
1549,
12,
71,
16,
2199,
18,
1528,
4672,
775,
30,
225,
563,
18,
6923,
12,
71,
18,
892,
13,
1335,
6394,
30,
225,
563,
18,
6923,
12,
71,
13,
469,
30,
563,
273,
365,
18,
21405,
67,
955,
12,
71,
16,
563,
13,
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
] |
Baranoski G.V.G.
|
Baranoski G.V.G.
|
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
|
201e02de114f2b2224726de7b64c2dde98debac1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13808/201e02de114f2b2224726de7b64c2dde98debac1/abmb_c.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
2250,
12,
2890,
4672,
327,
436,
8395,
8646,
854,
326,
1686,
434,
3433,
938,
1086,
434,
521,
955,
17156,
95,
2090,
49,
17,
38,
97,
364,
326,
423,
270,
3766,
4360,
275,
362,
275,
265,
9587,
6234,
3756,
261,
50,
5857,
43,
13,
622,
326,
1351,
6760,
560,
434,
678,
2045,
383,
83,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
2250,
12,
2890,
4672,
327,
436,
8395,
8646,
854,
326,
1686,
434,
3433,
938,
1086,
434,
521,
955,
17156,
95,
2090,
49,
17,
38,
97,
364,
326,
423,
270,
3766,
4360,
275,
362,
275,
265,
9587,
6234,
3756,
261,
50,
5857,
43,
13,
622,
326,
1351,
6760,
560,
434,
678,
2045,
383,
83,
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
] |
if not _SOCK: raise Exception('Not logged!')
|
if not _SOCK or not _SOCK.connected: raise Exception('NotLogged')
|
def execute(obj, method, *args): global _SOCK, _DATABASE, _USER, _SESSION if not _SOCK: raise Exception('Not logged!') logging.getLogger('rpc.request').info(str((obj, method, args))) key = False if len(args) >= 6 and args[1] == 'fields_view_get': key = str(args) if key in _VIEW_CACHE and _VIEW_CACHE[key][0]: args = args[:] args = args + (_VIEW_CACHE[key][0],) try: _SEMAPHORE.acquire() try: _SOCK.send((obj, method, _DATABASE, _USER, _SESSION) + args) result = _SOCK.receive() finally: _SEMAPHORE.release() except socket.error: _SEMAPHORE.acquire() try: _SOCK.reconnect() _SOCK.send((obj, method, _DATABASE, _USER, _SESSION) + args) result = _SOCK.receive() finally: _SEMAPHORE.release() if key: if result is True and key in _VIEW_CACHE: result = _VIEW_CACHE[key][1] else: _VIEW_CACHE[key] = (result['md5'], result) return result
|
ab65f572b844d2ba2ce0fb7342b0215e7b461c72 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/ab65f572b844d2ba2ce0fb7342b0215e7b461c72/rpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2603,
16,
707,
16,
380,
1968,
4672,
2552,
389,
3584,
3507,
16,
389,
22366,
16,
389,
4714,
16,
389,
7042,
309,
486,
389,
3584,
3507,
578,
486,
389,
3584,
3507,
18,
8537,
30,
1002,
1185,
2668,
1248,
19862,
6134,
2907,
18,
588,
3328,
2668,
7452,
18,
2293,
16063,
1376,
12,
701,
12443,
2603,
16,
707,
16,
833,
20349,
498,
273,
1083,
309,
562,
12,
1968,
13,
1545,
1666,
471,
833,
63,
21,
65,
422,
296,
2821,
67,
1945,
67,
588,
4278,
498,
273,
609,
12,
1968,
13,
309,
498,
316,
389,
12145,
67,
8495,
471,
389,
12145,
67,
8495,
63,
856,
6362,
20,
14542,
833,
273,
833,
10531,
65,
833,
273,
833,
397,
261,
67,
12145,
67,
8495,
63,
856,
6362,
20,
6487,
13,
775,
30,
389,
1090,
8352,
7995,
862,
18,
1077,
1039,
1435,
775,
30,
389,
3584,
3507,
18,
4661,
12443,
2603,
16,
707,
16,
389,
22366,
16,
389,
4714,
16,
389,
7042,
13,
397,
833,
13,
563,
273,
389,
3584,
3507,
18,
18149,
1435,
3095,
30,
389,
1090,
8352,
7995,
862,
18,
9340,
1435,
1335,
2987,
18,
1636,
30,
389,
1090,
8352,
7995,
862,
18,
1077,
1039,
1435,
775,
30,
389,
3584,
3507,
18,
25913,
1435,
389,
3584,
3507,
18,
4661,
12443,
2603,
16,
707,
16,
389,
22366,
16,
389,
4714,
16,
389,
7042,
13,
397,
833,
13,
563,
273,
389,
3584,
3507,
18,
18149,
1435,
3095,
30,
389,
1090,
8352,
7995,
862,
18,
9340,
1435,
309,
498,
30,
309,
563,
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,
1836,
12,
2603,
16,
707,
16,
380,
1968,
4672,
2552,
389,
3584,
3507,
16,
389,
22366,
16,
389,
4714,
16,
389,
7042,
309,
486,
389,
3584,
3507,
578,
486,
389,
3584,
3507,
18,
8537,
30,
1002,
1185,
2668,
1248,
19862,
6134,
2907,
18,
588,
3328,
2668,
7452,
18,
2293,
16063,
1376,
12,
701,
12443,
2603,
16,
707,
16,
833,
20349,
498,
273,
1083,
309,
562,
12,
1968,
13,
1545,
1666,
471,
833,
63,
21,
65,
422,
296,
2821,
67,
1945,
67,
588,
4278,
498,
273,
609,
12,
1968,
13,
309,
498,
316,
389,
12145,
67,
8495,
471,
389,
12145,
67,
8495,
63,
856,
6362,
20,
14542,
833,
273,
833,
10531,
65,
833,
273,
833,
397,
261,
67,
12145,
2
] |
properties['outgoingEmailMonitorLevel'] = 'HEADERS_ONLY'
|
properties['outgoingEmailMonitorLevel'] = 'HEADER_ONLY'
|
def createEmailMonitor(self, source_user, destination_user, end_date, begin_date=None, incoming_headers_only=False, outgoing_headers_only=False, drafts=False, drafts_headers_only=False, chats=False, chats_headers_only=False): """Creates a email monitor, forwarding the source_users emails/chats
|
44cbd29ee2489cc677ae89edfc75c7572028c50d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/44cbd29ee2489cc677ae89edfc75c7572028c50d/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
3700,
33,
8381,
16,
12246,
87,
33,
8381,
16,
12246,
87,
67,
2485,
67,
3700,
33,
8381,
16,
462,
2323,
33,
8381,
16,
462,
2323,
67,
2485,
67,
3700,
33,
8381,
4672,
3536,
2729,
279,
2699,
6438,
16,
20635,
326,
1084,
67,
5577,
14255,
19,
343,
2323,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
3700,
33,
8381,
16,
12246,
87,
33,
8381,
16,
12246,
87,
67,
2485,
67,
3700,
33,
8381,
16,
462,
2323,
33,
8381,
16,
462,
2323,
67,
2485,
67,
3700,
33,
8381,
4672,
3536,
2729,
279,
2699,
6438,
16,
20635,
326,
1084,
67,
5577,
14255,
19,
343,
2323,
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
] |
setMetadata(filename,
|
setMetadata(destFSfullPath,
|
def HTMLFormUploadFile(self, upload, comment, clientMD5=None): """ upload a file via HTML form-based file upload mechanism """
|
986267974a25fceea33e15da2a6f7317243ba92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/986267974a25fceea33e15da2a6f7317243ba92b/PloneLocalFolderNG.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3982,
1204,
4777,
812,
12,
2890,
16,
3617,
16,
2879,
16,
1004,
6188,
25,
33,
7036,
4672,
3536,
3617,
279,
585,
3970,
3982,
646,
17,
12261,
585,
3617,
12860,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3982,
1204,
4777,
812,
12,
2890,
16,
3617,
16,
2879,
16,
1004,
6188,
25,
33,
7036,
4672,
3536,
3617,
279,
585,
3970,
3982,
646,
17,
12261,
585,
3617,
12860,
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
] |
name_1 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_1) name_2 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_2)
|
name_1 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_1)[0][0] name_2 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_2)[0][0]
|
def perform_switchfldvaluescore(colID, id_1, id_fldvalue_1, id_fldvalue_2, ln=cdslang): """Switch the score of id_1 and id_2 in collection_field_fieldvalue. colID - the current collection id_1/id_2 - the id's to change the score for.""" name_1 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_1) name_2 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_2) if switch_fld_value_score(colID, id_1, id_fldvalue_1, id_fldvalue_2): output = """<br><b><span class="info">'%s' changed position with '%s'</span></b> """ % (name_1[0][0], name_2[0][0]) else: output = """<br><b><span class="info">Could not complete the operation.</span></b>""" return perform_showsearchoptions(colID, ln, content=output)
|
e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
9610,
19794,
4531,
742,
479,
12,
1293,
734,
16,
612,
67,
21,
16,
612,
67,
19794,
1132,
67,
21,
16,
612,
67,
19794,
1132,
67,
22,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
10200,
326,
4462,
434,
612,
67,
21,
471,
612,
67,
22,
316,
1849,
67,
1518,
67,
1518,
1132,
18,
645,
734,
300,
326,
783,
1849,
612,
67,
21,
19,
350,
67,
22,
300,
326,
612,
1807,
358,
2549,
326,
4462,
364,
12123,
225,
508,
67,
21,
273,
1086,
67,
4669,
2932,
4803,
508,
628,
652,
1132,
1625,
612,
5095,
87,
6,
738,
612,
67,
19794,
1132,
67,
21,
25146,
20,
6362,
20,
65,
508,
67,
22,
273,
1086,
67,
4669,
2932,
4803,
508,
628,
652,
1132,
1625,
612,
5095,
87,
6,
738,
612,
67,
19794,
1132,
67,
22,
25146,
20,
6362,
20,
65,
225,
309,
1620,
67,
19794,
67,
1132,
67,
6355,
12,
1293,
734,
16,
612,
67,
21,
16,
612,
67,
19794,
1132,
67,
21,
16,
612,
67,
19794,
1132,
67,
22,
4672,
876,
273,
3536,
32,
2848,
4438,
70,
4438,
3969,
667,
1546,
1376,
7918,
9,
87,
11,
3550,
1754,
598,
1995,
87,
11,
1757,
3969,
4695,
70,
34,
3536,
738,
261,
529,
67,
21,
63,
20,
6362,
20,
6487,
508,
67,
22,
63,
20,
6362,
20,
5717,
469,
30,
876,
273,
3536,
32,
2848,
4438,
70,
4438,
3969,
667,
1546,
1376,
6441,
4445,
486,
3912,
326,
1674,
17347,
3969,
4695,
70,
2984,
3660,
282,
327,
3073,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
9610,
19794,
4531,
742,
479,
12,
1293,
734,
16,
612,
67,
21,
16,
612,
67,
19794,
1132,
67,
21,
16,
612,
67,
19794,
1132,
67,
22,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
10200,
326,
4462,
434,
612,
67,
21,
471,
612,
67,
22,
316,
1849,
67,
1518,
67,
1518,
1132,
18,
645,
734,
300,
326,
783,
1849,
612,
67,
21,
19,
350,
67,
22,
300,
326,
612,
1807,
358,
2549,
326,
4462,
364,
12123,
225,
508,
67,
21,
273,
1086,
67,
4669,
2932,
4803,
508,
628,
652,
1132,
1625,
612,
5095,
87,
6,
738,
612,
67,
19794,
1132,
67,
21,
25146,
20,
6362,
20,
65,
508,
67,
22,
273,
1086,
67,
4669,
2932,
4803,
2
] |
iNetwork.resetNetworkConfig('lan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'wlan0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'ath0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan-mpci',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) else: self.resetfinishedCB(False)
|
self.isInterfaceUp = iNetwork.checkforInterface(iface) self.currStep = self.getStepWithID(self.NextStep) self.afterAsyncCode() else: self.resetNetworkConfigFinished(False)
|
def checkInterface(self,iface): self.Adapterlist = iNetwork.getAdapterList() if self.NextStep is not 'end': if len(self.Adapterlist) == 0: #Reset Network to defaults if network broken iNetwork.resetNetworkConfig('lan', self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) if iface == 'eth0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('lan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'wlan0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'ath0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan-mpci',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) else: self.resetfinishedCB(False)
|
d6e258a761abb1074a1157d17b9c42b7f28959ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/d6e258a761abb1074a1157d17b9c42b7f28959ce/NetworkWizard.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1358,
12,
2890,
16,
31479,
4672,
365,
18,
4216,
1098,
273,
277,
3906,
18,
588,
4216,
682,
1435,
309,
365,
18,
2134,
4160,
353,
486,
296,
409,
4278,
309,
562,
12,
2890,
18,
4216,
1098,
13,
422,
374,
30,
468,
7013,
5128,
358,
3467,
309,
2483,
12933,
277,
3906,
18,
6208,
3906,
809,
2668,
6115,
2187,
365,
18,
1893,
1358,
8876,
13,
365,
18,
4811,
1734,
273,
365,
18,
3184,
18,
3190,
1190,
2428,
12,
2890,
18,
6208,
13527,
8876,
16,
2350,
3514,
16,
389,
2932,
8496,
2529,
1323,
732,
2911,
3433,
2483,
7349,
7070,
3631,
618,
273,
2350,
3514,
18,
2399,
67,
5923,
16,
4237,
67,
2630,
273,
1083,
13,
309,
9751,
422,
296,
546,
20,
4278,
309,
9751,
316,
277,
3906,
18,
16449,
3906,
26620,
471,
562,
12,
77,
3906,
18,
16449,
3906,
26620,
13,
422,
404,
30,
309,
277,
3906,
18,
588,
4216,
1499,
12,
31479,
16,
296,
416,
6134,
353,
1053,
30,
365,
18,
291,
1358,
1211,
273,
1053,
469,
30,
365,
18,
291,
1358,
1211,
273,
1083,
365,
18,
6208,
13527,
8876,
12,
8381,
13,
469,
30,
365,
18,
291,
1358,
1211,
273,
277,
3906,
18,
1893,
1884,
1358,
12,
31479,
13,
365,
18,
17016,
4160,
273,
365,
18,
588,
4160,
1190,
734,
12,
2890,
18,
2134,
4160,
13,
365,
18,
5205,
2771,
1085,
1435,
469,
30,
365,
18,
6208,
3906,
809,
10577,
12,
8381,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1358,
12,
2890,
16,
31479,
4672,
365,
18,
4216,
1098,
273,
277,
3906,
18,
588,
4216,
682,
1435,
309,
365,
18,
2134,
4160,
353,
486,
296,
409,
4278,
309,
562,
12,
2890,
18,
4216,
1098,
13,
422,
374,
30,
468,
7013,
5128,
358,
3467,
309,
2483,
12933,
277,
3906,
18,
6208,
3906,
809,
2668,
6115,
2187,
365,
18,
1893,
1358,
8876,
13,
365,
18,
4811,
1734,
273,
365,
18,
3184,
18,
3190,
1190,
2428,
12,
2890,
18,
6208,
13527,
8876,
16,
2350,
3514,
16,
389,
2932,
8496,
2529,
1323,
732,
2911,
3433,
2483,
7349,
7070,
3631,
618,
273,
2350,
3514,
18,
2399,
67,
5923,
16,
4237,
67,
2630,
273,
1083,
13,
309,
9751,
422,
296,
546,
20,
2
] |
"localmoduletable", "manpage", "input"])
|
"localmoduletable"])
|
def main(): if len(sys.argv) == 2: ifp = open(sys.argv[1]) ofp = sys.stdout elif len(sys.argv) == 3: ifp = open(sys.argv[1]) ofp = open(sys.argv[2], "w") else: usage() sys.exit(2) convert(ifp, ofp, { # entries are name # -> ([list of attribute names], first_is_optional, empty) "cfuncdesc": (["type", "name", ("args",)], 0, 0), "chapter": ([("title",)], 0, 0), "chapter*": ([("title",)], 0, 0), "classdesc": (["name", ("constructor-args",)], 0, 0), "ctypedesc": (["name"], 0, 0), "cvardesc": (["type", "name"], 0, 0), "datadesc": (["name"], 0, 0), "declaremodule": (["id", "type", "name"], 1, 1), "deprecated": (["release"], 0, 1), "documentclass": (["classname"], 0, 1), "excdesc": (["name"], 0, 0), "funcdesc": (["name", ("args",)], 0, 0), "funcdescni": (["name", ("args",)], 0, 0), "indexii": (["ie1", "ie2"], 0, 1), "indexiii": (["ie1", "ie2", "ie3"], 0, 1), "indexiv": (["ie1", "ie2", "ie3", "ie4"], 0, 1), "input": (["source"], 0, 1), "item": ([("leader",)], 1, 0), "label": (["id"], 0, 1), "manpage": (["name", "section"], 0, 1), "memberdesc": (["class", "name"], 1, 0), "methoddesc": (["class", "name", ("args",)], 1, 0), "methoddescni": (["class", "name", ("args",)], 1, 0), "opcodedesc": (["name", "var"], 0, 0), "par": ([], 0, 1), "rfc": (["number"], 0, 1), "section": ([("title",)], 0, 0), "seemodule": (["ref", "name"], 1, 0), "tableii": (["colspec", "style", "head1", "head2"], 0, 0), "tableiii": (["colspec", "style", "head1", "head2", "head3"], 0, 0), "tableiv": (["colspec", "style", "head1", "head2", "head3", "head4"], 0, 0), "versionadded": (["version"], 0, 1), "versionchanged": (["version"], 0, 1), # "ABC": "ABC", "ASCII": "ASCII", "C": "C", "Cpp": "Cpp", "EOF": "EOF", "e": "backslash", "ldots": "ldots", "NULL": "NULL", "POSIX": "POSIX", "UNIX": "Unix", # # Things that will actually be going away! # "fi": ([], 0, 1), "ifhtml": ([], 0, 1), "makeindex": ([], 0, 1), "makemodindex": ([], 0, 1), "maketitle": ([], 0, 1), "noindent": ([], 0, 1), "tableofcontents": ([], 0, 1), }, discards=["fi", "ifhtml", "makeindex", "makemodindex", "maketitle", "noindent", "tableofcontents"], autoclosing=["chapter", "section", "subsection", "subsubsection", "paragraph", "subparagraph", ], knownempties=["rfc", "declaremodule", "appendix", "maketitle", "makeindex", "makemodindex", "localmoduletable", "manpage", "input"])
|
177c5005c27b072f67098dea66be9f3528dd0fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/177c5005c27b072f67098dea66be9f3528dd0fe8/latex2esis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
422,
576,
30,
309,
84,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
434,
84,
273,
2589,
18,
10283,
1327,
562,
12,
9499,
18,
19485,
13,
422,
890,
30,
309,
84,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
434,
84,
273,
1696,
12,
9499,
18,
19485,
63,
22,
6487,
315,
91,
7923,
469,
30,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
1765,
12,
430,
84,
16,
434,
84,
16,
288,
468,
3222,
854,
508,
468,
1850,
317,
23265,
1098,
434,
1566,
1257,
6487,
1122,
67,
291,
67,
10444,
16,
1008,
13,
315,
71,
644,
5569,
6877,
261,
9614,
723,
3113,
315,
529,
3113,
7566,
1968,
3113,
13,
6487,
374,
16,
374,
3631,
315,
31254,
6877,
23265,
2932,
2649,
3113,
13,
6487,
374,
16,
374,
3631,
315,
31254,
14,
6877,
23265,
2932,
2649,
3113,
13,
6487,
374,
16,
374,
3631,
315,
1106,
5569,
6877,
261,
9614,
529,
3113,
7566,
12316,
17,
1968,
3113,
13,
6487,
374,
16,
374,
3631,
315,
299,
6140,
742,
6877,
261,
9614,
529,
6,
6487,
374,
16,
374,
3631,
315,
19774,
1060,
742,
6877,
225,
261,
9614,
723,
3113,
315,
529,
6,
6487,
374,
16,
374,
3631,
315,
3404,
361,
742,
6877,
225,
261,
9614,
529,
6,
6487,
374,
16,
374,
3631,
315,
29554,
2978,
6877,
261,
9614,
350,
3113,
315,
723,
3113,
315,
529,
6,
6487,
404,
16,
404,
3631,
315,
14089,
6877,
261,
9614,
9340,
6,
6487,
374,
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,
309,
562,
12,
9499,
18,
19485,
13,
422,
576,
30,
309,
84,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
434,
84,
273,
2589,
18,
10283,
1327,
562,
12,
9499,
18,
19485,
13,
422,
890,
30,
309,
84,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
434,
84,
273,
1696,
12,
9499,
18,
19485,
63,
22,
6487,
315,
91,
7923,
469,
30,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
1765,
12,
430,
84,
16,
434,
84,
16,
288,
468,
3222,
854,
508,
468,
1850,
317,
23265,
1098,
434,
1566,
1257,
6487,
1122,
67,
291,
67,
10444,
16,
1008,
13,
315,
71,
644,
5569,
6877,
261,
9614,
723,
3113,
315,
529,
3113,
7566,
1968,
2
] |
os.system('maxima --very-quiet -r "describe(%s);"'%s)
|
subprocess.Popen(cmd, shell=True) def help(self, s): """ EXAMPLES: sage: maxima.help('gcd') -- Function: gcd (<p_1>, <p_2>, <x_1>, ...) ... """ return self._command_runner("describe", s)
|
def help(self, s): """ EXAMPLES: sage: maxima.help('gcd') #not tested -- Function: gcd (<p_1>, <p_2>, <x_1>, ...) ... """ if sage.server.support.EMBEDDED_MODE: os.system('maxima --very-quiet -r "describe(%s); "< /dev/null'%s) else: os.system('maxima --very-quiet -r "describe(%s);"'%s)
|
45240fcde870afe2eb7934ed596546cff10b7cf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/45240fcde870afe2eb7934ed596546cff10b7cf4/maxima.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
12,
2890,
16,
272,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
943,
13888,
18,
5201,
2668,
75,
4315,
6134,
468,
902,
18432,
1493,
4284,
30,
14876,
261,
32,
84,
67,
21,
20401,
411,
84,
67,
22,
20401,
411,
92,
67,
21,
20401,
1372,
13,
1372,
3536,
309,
272,
410,
18,
3567,
18,
13261,
18,
3375,
22235,
7660,
67,
7038,
30,
1140,
18,
4299,
2668,
1896,
13888,
1493,
3242,
17,
20380,
300,
86,
315,
22748,
9275,
87,
1769,
3532,
342,
5206,
19,
2011,
11,
9,
87,
13,
469,
30,
1140,
18,
4299,
2668,
1896,
13888,
1493,
3242,
17,
20380,
300,
86,
315,
22748,
9275,
87,
1769,
5187,
9,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
32,
84,
67,
21,
20401,
411,
84,
67,
22,
20401,
411,
92,
67,
21,
20401,
1372,
13,
1372,
3536,
309,
272,
410,
18,
3567,
18,
13261,
18,
3375,
22235,
7660,
67,
7038,
30,
1140,
18,
4299,
2668,
1896,
13888,
1493,
3242,
17,
20380,
300,
86,
315,
22748,
9275,
87,
1769,
3532,
342,
5206,
19,
2011,
11,
9,
87,
13,
469,
30,
1140,
18,
4299,
2668,
1896,
13888,
1493,
3242,
17,
20380,
300,
86,
315,
22748,
9275,
87,
1769,
5187,
9,
87,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
pagename = page.title()
|
pagename = page.aslink()
|
def main(): """ Main Function """ # Loading the comments global templateToRemove; global categoryToCheck; global comment; global project_inserted if config.mylang not in project_inserted: wikipedia.output(u"Your project is not supported by this script. You have to edit the script and add it!") wikipedia.stopme() # always, define a generator to understand if the user sets one, defining what's genFactory always = False; generator = False; debug = False moveBlockCheck = False; genFactory = pagegenerators.GeneratorFactory() # To prevent Infinite loops errorCount = 0 # Loading the default options. for arg in wikipedia.handleArgs(): if arg == '-always': always = True elif arg == '-move': moveBlockCheck = True elif arg == '-debug': debug = True elif arg.startswith('-protectedpages'): if len(arg) == 15: generator = ProtectedPages(0) else: generator = ProtectedPages(int(arg[16:])) elif arg.startswith('-page'): if len(arg) == 5: generator = [wikipedia.Page(wikipedia.getSite(), wikipedia.input(u'What page do you want to use?'))] else: generator = [wikipedia.Page(wikipedia.getSite(), arg[6:])] else: generator = genFactory.handleArg(arg) # Load the right site site = wikipedia.getSite() # Take the right templates to use, the category and the comment TTR = wikipedia.translate(site, templateToRemove) TSP = wikipedia.translate(site, templateSemiProtection) TTP = wikipedia.translate(site, templateTotalProtection) TSMP = wikipedia.translate(site, templateSemiMoveProtection) TTMP = wikipedia.translate(site, templateTotalMoveProtection) TNR = wikipedia.translate(site, templateNoRegex) category = wikipedia.translate(site, categoryToCheck) commentUsed = wikipedia.translate(site, comment) if not generator: generator = list() wikipedia.output(u'Loading categories...') # Define the category if no other generator has been setted for CAT in category: cat = catlib.Category(site, CAT) # Define the generator gen = pagegenerators.CategorizedPageGenerator(cat) for pageCat in gen: generator.append(pageCat) wikipedia.output(u'Categories loaded, start!') # Main Loop preloadingGen = pagegenerators.PreloadingGenerator(generator, pageNumber = 60) for page in preloadingGen: pagename = page.title() wikipedia.output('Loading %s...' % pagename) try: text = page.get() editRestriction = getRestrictions(page) except wikipedia.NoPage: wikipedia.output("%s doesn't exist! Skipping..." % pagename) continue except wikipedia.IsRedirectPage: wikipedia.output("%s is a redirect! Skipping..." % pagename) if debug: debugQuest(site, page) continue # Understand, according to the template in the page, what should be the protection # and compare it with what there really is. TemplateInThePage = understandBlock(text, TTP, TSP, TSMP, TTMP) # Only to see if the text is the same or not... oldtext = text if editRestriction == 'sysop': if TemplateInThePage[0] == 'sysop-total' and TTP != None: wikipedia.output(u'The page is protected to the sysop, skipping...') continue else: wikipedia.output(u'The page is protected to the sysop, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[1], text) elif moveBlockCheck and editRestriction == 'sysop-move': if TemplateInThePage[0] == 'sysop-move' and TTMP != None: wikipedia.output(u'The page is protected from moving to the sysop, skipping...') continue else: wikipedia.output(u'The page is protected from moving to the sysop, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[3], text) elif editRestriction == 'autoconfirmed' and TSP != None: if TemplateInThePage[0] == 'autoconfirmed-total': wikipedia.output(u'The page is editable only for the autoconfirmed users, skipping...') continue else: wikipedia.output(u'The page is editable only for the autoconfirmed users, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[0], text) elif moveBlockCheck == True and editRestriction == 'autoconfirmed-move' and TSMP != None: if TemplateInThePage[0] == 'autoconfirmed-move': wikipedia.output(u'The page is movable only for the autoconfirmed users, skipping...') continue else: wikipedia.output(u'The page is movable only for the autoconfirmed users, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[2], text) else: wikipedia.output(u'The page is editable for all, deleting the template...') # Deleting the template because the page doesn't need it. for replaceToPerform in TTR: text = re.sub('(?:<noinclude>|)%s(?:</noinclude>|)' % replaceToPerform, '', text) if oldtext != text: # Ok, asking if the change has to be performed and do it if yes. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) wikipedia.showDiff(oldtext, text) choice = '' while 1: if not always: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice.lower() in ['a', 'all']: always = True if choice.lower() in ['n', 'no']: break if choice.lower() in ['y', 'yes'] or always: try: page.put(text, commentUsed, force=True) except wikipedia.EditConflict: wikipedia.output(u'Edit conflict! skip!') break except wikipedia.ServerError: # Sometimes there is this error that's quite annoying because # can block the whole process for nothing. errorCount += 1 if errorCount < 5: wikipedia.output(u'Server Error! Wait..') time.sleep(3) continue else: # Prevent Infinite Loops raise wikipedia.ServerError(u'Fifth Server Error!') except wikipedia.SpamfilterError, e: wikipedia.output(u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url)) break except wikipedia.PageNotSaved, error: wikipedia.output(u'Error putting page: %s' % (error.args,)) break except wikipedia.LockedPage: wikipedia.output(u'The page is still protected. Skipping...') break else: # Break only if the errors are one after the other errorCount = 0 break else: wikipedia.output(u'No changes! Strange! Check the regex!') if debug == True: debugQuest(site, page)
|
2cc92c62063cef777422da460490a49e1bf499d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/2cc92c62063cef777422da460490a49e1bf499d1/blockpageschecker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
12740,
4284,
3536,
468,
4444,
310,
326,
5678,
2552,
1542,
12765,
31,
2552,
3150,
18126,
31,
2552,
2879,
31,
2552,
1984,
67,
6387,
329,
309,
642,
18,
4811,
4936,
486,
316,
1984,
67,
6387,
329,
30,
21137,
18,
2844,
12,
89,
6,
15446,
1984,
353,
486,
3260,
635,
333,
2728,
18,
4554,
1240,
358,
3874,
326,
2728,
471,
527,
518,
4442,
13,
21137,
18,
5681,
3501,
1435,
468,
3712,
16,
4426,
279,
4456,
358,
22413,
309,
326,
729,
1678,
1245,
16,
9364,
4121,
1807,
3157,
1733,
3712,
273,
1083,
31,
4456,
273,
1083,
31,
1198,
273,
1083,
3635,
1768,
1564,
273,
1083,
31,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
468,
2974,
5309,
657,
9551,
14075,
555,
1380,
273,
374,
468,
4444,
310,
326,
805,
702,
18,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
2400,
17737,
4278,
3712,
273,
1053,
1327,
1501,
422,
2400,
8501,
4278,
3635,
1768,
1564,
273,
1053,
1327,
1501,
422,
2400,
4148,
4278,
1198,
273,
1053,
1327,
1501,
18,
17514,
1918,
2668,
17,
1117,
7267,
11,
4672,
309,
562,
12,
3175,
13,
422,
4711,
30,
4456,
273,
1186,
1050,
5716,
12,
20,
13,
469,
30,
4456,
273,
1186,
1050,
5716,
12,
474,
12,
3175,
63,
2313,
30,
22643,
1327,
1501,
18,
17514,
1918,
2668,
17,
2433,
11,
4672,
309,
562,
12,
3175,
13,
422,
1381,
30,
4456,
273,
306,
11999,
13744,
18,
1964,
12,
11999,
13744,
18,
588,
4956,
9334,
21137,
18,
2630,
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,
12740,
4284,
3536,
468,
4444,
310,
326,
5678,
2552,
1542,
12765,
31,
2552,
3150,
18126,
31,
2552,
2879,
31,
2552,
1984,
67,
6387,
329,
309,
642,
18,
4811,
4936,
486,
316,
1984,
67,
6387,
329,
30,
21137,
18,
2844,
12,
89,
6,
15446,
1984,
353,
486,
3260,
635,
333,
2728,
18,
4554,
1240,
358,
3874,
326,
2728,
471,
527,
518,
4442,
13,
21137,
18,
5681,
3501,
1435,
468,
3712,
16,
4426,
279,
4456,
358,
22413,
309,
326,
729,
1678,
1245,
16,
9364,
4121,
1807,
3157,
1733,
3712,
273,
1083,
31,
4456,
273,
1083,
31,
1198,
273,
1083,
3635,
1768,
1564,
273,
1083,
31,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
468,
2974,
5309,
2
] |
files = popenx(cmdline, 'b') fi = files[0] fo = files[1] if self.have_popen3: fe = files[2]
|
files = subprocess.Popen(cmdline, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE )
|
def run_cgi(self): """Execute a CGI script.""" path = self.path dir, rest = self.cgi_info
|
251c033bc17013e89812207d8301cc937b6a3cd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/251c033bc17013e89812207d8301cc937b6a3cd1/CGIHTTPServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
589,
273,
365,
18,
803,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
589,
273,
365,
18,
803,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
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
] |
def assert_completion_in_result(self, name, kind, result):
|
def assert_completion_in_result(self, name, scope, result):
|
def assert_completion_in_result(self, name, kind, result): for proposal in result: if proposal.name == name and proposal.kind == kind: return self.fail('completion <%s> not proposed' % name)
|
6d539fe256ff5d47931d765fcb7729894783cbf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8286/6d539fe256ff5d47931d765fcb7729894783cbf0/codeassisttest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
11469,
67,
267,
67,
2088,
12,
2890,
16,
508,
16,
2146,
16,
563,
4672,
364,
14708,
316,
563,
30,
309,
14708,
18,
529,
422,
508,
471,
14708,
18,
9224,
422,
3846,
30,
327,
365,
18,
6870,
2668,
11469,
23930,
87,
34,
486,
20084,
11,
738,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
30,
327,
365,
18,
6870,
2668,
11469,
23930,
87,
34,
486,
20084,
11,
738,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
predata['wpStarttime'] = time.strftime('%Y%m%d%H%M%S', time.gmtime())
|
predata['wpStarttime'] = time.strftime('%Y%m%d%H%M%S', time.gmtime())
|
def _putPageOld(self, text, comment=None, watchArticle=False, minorEdit=True, newPage=False, token=None, newToken=False, sysop=False, captcha=None, botflag=True, maxTries=-1): """Upload 'text' as new content of Page by filling out the edit form.
|
dd69ba008e92f2f3d64571439cc434364aa01062 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/dd69ba008e92f2f3d64571439cc434364aa01062/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
1964,
7617,
12,
2890,
16,
977,
16,
2879,
33,
7036,
16,
4267,
7880,
33,
8381,
16,
8439,
4666,
33,
5510,
16,
394,
1964,
33,
8381,
16,
1147,
33,
7036,
16,
394,
1345,
33,
8381,
16,
2589,
556,
33,
8381,
16,
21083,
33,
7036,
16,
2512,
6420,
33,
5510,
16,
943,
13652,
29711,
21,
4672,
3536,
4777,
296,
955,
11,
487,
394,
913,
434,
3460,
635,
25740,
596,
326,
3874,
646,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
1964,
7617,
12,
2890,
16,
977,
16,
2879,
33,
7036,
16,
4267,
7880,
33,
8381,
16,
8439,
4666,
33,
5510,
16,
394,
1964,
33,
8381,
16,
1147,
33,
7036,
16,
394,
1345,
33,
8381,
16,
2589,
556,
33,
8381,
16,
21083,
33,
7036,
16,
2512,
6420,
33,
5510,
16,
943,
13652,
29711,
21,
4672,
3536,
4777,
296,
955,
11,
487,
394,
913,
434,
3460,
635,
25740,
596,
326,
3874,
646,
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
] |
and j*i=-i*j. K is a field not of characteristic and a,b are nonzero elements of K.
|
and j*i=-i*j. K is a field not of characteristic 2 and a,b are nonzero elements of K.
|
def vector_space(self): """ Return the vector space associated to self with inner product given by the reduced norm.
|
847201ec0c8c2fb99710c5f165a7e692579364eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/847201ec0c8c2fb99710c5f165a7e692579364eb/quaternion_algebra.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
67,
2981,
12,
2890,
4672,
3536,
2000,
326,
3806,
3476,
3627,
358,
365,
598,
3443,
3017,
864,
635,
326,
13162,
4651,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
67,
2981,
12,
2890,
4672,
3536,
2000,
326,
3806,
3476,
3627,
358,
365,
598,
3443,
3017,
864,
635,
326,
13162,
4651,
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
] |
print "OOffice.to_html"
|
def to_html(self): print "OOffice.to_html" raise NotImplementedError
|
5acf607fe866693c0a2b88b17b7895c564d2f2bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/5acf607fe866693c0a2b88b17b7895c564d2f2bd/office.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
2620,
12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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
2620,
12,
2890,
4672,
1002,
11206,
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
] |
|
elif existing_dev_info == "exists": raise XendError("The virtual device %s is already defined" % dev['v-dev'])
|
if _is_vscsi_defined(cur_dev_sxp, v_devs = v_devs): raise XendError('The virtual device "%s" is already defined' % \ v_devs[0]) if int(dev_config['feature-host']) != \ int(sxp.child_value(cur_dev_sxp, 'feature-host')): raise XendError('The physical device "%s" cannot define ' 'because mode is different' % devs[0]['p-dev']) new_be = dev_config.get('backend', None) if new_be is not None: cur_be = sxp.child_value(cur_dev_sxp, 'backend', None) if cur_be is None: cur_be = xen.xend.XendDomain.DOM0_ID new_be_dom = _vscsi_be(new_be) cur_be_dom = _vscsi_be(cur_be) if new_be_dom != cur_be_dom: raise XendError('The physical device "%s" cannot define ' 'because backend is different' % devs[0]['p-dev'])
|
def vscsi_device_configure(self, dev_sxp): """Configure an existing vscsi device. quoted pci funciton """ dev_class = sxp.name(dev_sxp) if dev_class != 'vscsi': return False
|
78f60fdd5727aeab7c26368447af1065a6064f76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/78f60fdd5727aeab7c26368447af1065a6064f76/XendDomainInfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
1017,
7722,
67,
5964,
67,
14895,
12,
2890,
16,
4461,
67,
87,
23829,
4672,
3536,
11207,
392,
2062,
331,
1017,
7722,
2346,
18,
9298,
6125,
77,
1326,
26949,
3536,
4461,
67,
1106,
273,
13280,
84,
18,
529,
12,
5206,
67,
87,
23829,
13,
309,
4461,
67,
1106,
480,
296,
90,
1017,
7722,
4278,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
1017,
7722,
67,
5964,
67,
14895,
12,
2890,
16,
4461,
67,
87,
23829,
4672,
3536,
11207,
392,
2062,
331,
1017,
7722,
2346,
18,
9298,
6125,
77,
1326,
26949,
3536,
4461,
67,
1106,
273,
13280,
84,
18,
529,
12,
5206,
67,
87,
23829,
13,
309,
4461,
67,
1106,
480,
296,
90,
1017,
7722,
4278,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "serve_forever_stoppable received stop request"
|
self.stopped = True
|
def serve_forever_stoppable(self): """Handle one request at a time until stop_serve_forever(). http://code.activestate.com/recipes/336012/ """ self.stop = False while not self.stop: self.handle_request() print "serve_forever_stoppable received stop request"
|
7c2367edf75fd27698ddc10dddec2487c13b4016 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/7c2367edf75fd27698ddc10dddec2487c13b4016/ext_wsgiutils_server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
67,
5681,
19586,
12,
2890,
4672,
3536,
3259,
1245,
590,
622,
279,
813,
3180,
2132,
67,
30104,
67,
1405,
502,
7675,
225,
1062,
2207,
710,
18,
11422,
395,
340,
18,
832,
19,
266,
3449,
281,
19,
3707,
26,
1611,
22,
19,
3536,
365,
18,
5681,
273,
1083,
1323,
486,
365,
18,
5681,
30,
365,
18,
4110,
67,
2293,
1435,
1172,
315,
30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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
67,
5681,
19586,
12,
2890,
4672,
3536,
3259,
1245,
590,
622,
279,
813,
3180,
2132,
67,
30104,
67,
1405,
502,
7675,
225,
1062,
2207,
710,
18,
11422,
395,
340,
18,
832,
19,
266,
3449,
281,
19,
3707,
26,
1611,
22,
19,
3536,
365,
18,
5681,
273,
1083,
1323,
486,
365,
18,
5681,
30,
365,
18,
4110,
67,
2293,
1435,
1172,
315,
30104,
67,
1405,
502,
67,
5681,
19586,
5079,
2132,
590,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
p1.delete()
|
objectstore.delete(p1)
|
def test_oneway_backref(self): # FIXME: I don't know why, but it seems that my backwards relationship # on preferences still ends up being a list even though I pass # in uselist=False... # FIXED: the backref is a new PropertyLoader which needs its own "uselist". # uses a function which I dont think existed when you first wrote ActiveMapper. p1 = self.create_person_one() self.assertEquals(p1.preferences.person, p1) p1.delete() objectstore.flush() objectstore.clear()
|
a0ed498ff553b90e805eafa8fad85fe3c60fdb37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/a0ed498ff553b90e805eafa8fad85fe3c60fdb37/activemapper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
265,
359,
528,
67,
823,
1734,
12,
2890,
4672,
468,
9852,
30,
467,
2727,
1404,
5055,
11598,
16,
1496,
518,
12001,
716,
3399,
12727,
5232,
468,
3639,
603,
12750,
4859,
3930,
731,
3832,
279,
666,
5456,
11376,
467,
1342,
468,
3639,
316,
584,
5449,
33,
8381,
2777,
468,
26585,
30,
326,
1473,
1734,
353,
279,
394,
4276,
2886,
1492,
4260,
2097,
4953,
315,
407,
5449,
9654,
468,
4692,
279,
445,
1492,
467,
14046,
15507,
20419,
1347,
1846,
1122,
341,
21436,
8857,
4597,
18,
293,
21,
273,
365,
18,
2640,
67,
12479,
67,
476,
1435,
365,
18,
11231,
8867,
12,
84,
21,
18,
23219,
18,
12479,
16,
293,
21,
13,
733,
2233,
18,
3733,
12,
84,
21,
13,
225,
733,
2233,
18,
11330,
1435,
733,
2233,
18,
8507,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
265,
359,
528,
67,
823,
1734,
12,
2890,
4672,
468,
9852,
30,
467,
2727,
1404,
5055,
11598,
16,
1496,
518,
12001,
716,
3399,
12727,
5232,
468,
3639,
603,
12750,
4859,
3930,
731,
3832,
279,
666,
5456,
11376,
467,
1342,
468,
3639,
316,
584,
5449,
33,
8381,
2777,
468,
26585,
30,
326,
1473,
1734,
353,
279,
394,
4276,
2886,
1492,
4260,
2097,
4953,
315,
407,
5449,
9654,
468,
4692,
279,
445,
1492,
467,
14046,
15507,
20419,
1347,
1846,
1122,
341,
21436,
8857,
4597,
18,
293,
21,
273,
365,
18,
2640,
67,
12479,
67,
476,
1435,
365,
18,
11231,
8867,
12,
84,
21,
18,
23219,
18,
12479,
16,
293,
21,
13,
733,
2233,
18,
3733,
12,
84,
21,
2
] |
WalkTests
|
WalkTests, MakedirTests,
|
def test_main(): test_support.run_unittest( TemporaryFileTests, StatAttributeTests, EnvironTests, WalkTests )
|
b386f6a50993f49fb62180c5a1e2a562a97cb368 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b386f6a50993f49fb62180c5a1e2a562a97cb368/test_os.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
22791,
812,
14650,
16,
8269,
1499,
14650,
16,
27912,
14650,
16,
7564,
14650,
16,
490,
9477,
481,
14650,
16,
262,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
22791,
812,
14650,
16,
8269,
1499,
14650,
16,
27912,
14650,
16,
7564,
14650,
16,
490,
9477,
481,
14650,
16,
262,
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
] |
return 52 + (bar_count*13)
|
proposed_height = 52 + (bar_count*13) if proposed_height > CHART_HEIGHT: return CHART_HEIGHT else: return proposed_height
|
def _BarGraphHeight(bar_count): return 52 + (bar_count*13)
|
1646b0eb5eab245a2c95d1705f9aae185cd04cad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/1646b0eb5eab245a2c95d1705f9aae185cd04cad/charts.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5190,
4137,
2686,
12,
3215,
67,
1883,
4672,
225,
20084,
67,
4210,
273,
18106,
397,
261,
3215,
67,
1883,
14,
3437,
13,
309,
20084,
67,
4210,
405,
6469,
4928,
67,
14595,
30,
327,
6469,
4928,
67,
14595,
469,
30,
327,
20084,
67,
4210,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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190,
4137,
2686,
12,
3215,
67,
1883,
4672,
225,
20084,
67,
4210,
273,
18106,
397,
261,
3215,
67,
1883,
14,
3437,
13,
309,
20084,
67,
4210,
405,
6469,
4928,
67,
14595,
30,
327,
6469,
4928,
67,
14595,
469,
30,
327,
20084,
67,
4210,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.add(_("Plugin %(module) returned something weird, '%(value)', ignoring") % {'module':module, 'value':ret})
|
log.add(_("Plugin %(module)s returned something weird, '%(value)s', ignoring") % {'module':module, 'value':str(ret)})
|
def _TriggerCommand(self, strfunc, command, source, args): for (module, plugin) in self.plugins: try: func = eval(strfunc) ret = func(command, source, args) if ret != None: if ret == returncode['zap']: return True elif ret == returncode['pass']: pass else: log.add(_("Plugin %(module) returned something weird, '%(value)', ignoring") % {'module':module, 'value':ret}) except: log.add(_("Plugin %(module)s failed with error %(errortype)s: %(error)s.\nTrace: %(trace)s\nProblem area:%(area)s") % {'module':module, 'errortype':sys.exc_info()[0], 'error':sys.exc_info()[1], 'trace':''.join(format_list(extract_stack())), 'area':''.join(format_list(extract_tb(sys.exc_info()[2])))}) return False
|
81804d71d3f7a6bc7f66bad48c732c45319ea8dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/81804d71d3f7a6bc7f66bad48c732c45319ea8dd/pluginsystem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6518,
2189,
12,
2890,
16,
609,
644,
16,
1296,
16,
1084,
16,
833,
4672,
364,
261,
2978,
16,
1909,
13,
316,
365,
18,
8057,
30,
775,
30,
1326,
273,
5302,
12,
701,
644,
13,
325,
273,
1326,
12,
3076,
16,
1084,
16,
833,
13,
309,
325,
480,
599,
30,
309,
325,
422,
18125,
3292,
94,
438,
3546,
30,
327,
1053,
1327,
325,
422,
18125,
3292,
5466,
3546,
30,
1342,
469,
30,
613,
18,
1289,
24899,
2932,
3773,
8975,
2978,
13,
87,
2106,
5943,
20843,
16,
21063,
1132,
13,
87,
2187,
14398,
7923,
738,
13666,
2978,
4278,
2978,
16,
296,
1132,
4278,
701,
12,
1349,
13,
6792,
1335,
30,
613,
18,
1289,
24899,
2932,
3773,
8975,
2978,
13,
87,
2535,
598,
555,
8975,
370,
499,
388,
13,
87,
30,
8975,
1636,
13,
87,
8403,
82,
3448,
30,
8975,
5129,
13,
87,
64,
82,
13719,
5091,
5319,
12,
5036,
13,
87,
7923,
738,
13666,
2978,
4278,
2978,
16,
296,
370,
499,
388,
4278,
9499,
18,
10075,
67,
1376,
1435,
63,
20,
6487,
296,
1636,
4278,
9499,
18,
10075,
67,
1376,
1435,
63,
21,
6487,
296,
5129,
11,
2497,
10332,
5701,
12,
2139,
67,
1098,
12,
8004,
67,
3772,
10756,
3631,
296,
5036,
11,
2497,
10332,
5701,
12,
2139,
67,
1098,
12,
8004,
67,
18587,
12,
9499,
18,
10075,
67,
1376,
1435,
63,
22,
65,
20349,
6792,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
6518,
2189,
12,
2890,
16,
609,
644,
16,
1296,
16,
1084,
16,
833,
4672,
364,
261,
2978,
16,
1909,
13,
316,
365,
18,
8057,
30,
775,
30,
1326,
273,
5302,
12,
701,
644,
13,
325,
273,
1326,
12,
3076,
16,
1084,
16,
833,
13,
309,
325,
480,
599,
30,
309,
325,
422,
18125,
3292,
94,
438,
3546,
30,
327,
1053,
1327,
325,
422,
18125,
3292,
5466,
3546,
30,
1342,
469,
30,
613,
18,
1289,
24899,
2932,
3773,
8975,
2978,
13,
87,
2106,
5943,
20843,
16,
21063,
1132,
13,
87,
2187,
14398,
7923,
738,
13666,
2978,
4278,
2978,
16,
296,
1132,
4278,
701,
12,
1349,
13,
6792,
1335,
30,
613,
18,
1289,
24899,
2932,
3773,
8975,
2978,
13,
2
] |
print """Receive a MARC XML file and update the appropriate database tables according to options
|
print """Receive MARC XML file and update appropriate database tables according to options.
|
def usage(): """Print help""" print """Receive a MARC XML file and update the appropriate database tables according to options Usage: bibupload [options] input.xml Examples: $ bibupload -i input.xml Options: Input: -a --append : new fields are appended to the existing record -c --correct : fields are replaced by the new ones in the existing record -f --format : takes only the FMT fields into account. Does not update -i --insert : insert the new record in the database -r --replace : the existing record is entirely replaced by the new one -z --reference : update references (update only 999 fields) -s --stage : stage to start from in the algorithme (0: always done; 1: FMT tags; 2:FFT tags; 3: BibFmt; 4: Metadata update; 5: time update) Scheduling options: -u, --user=USER user name to store task, password needed General options: -h, --help print this help and exit -v, --verbose=LEVEL verbose level (from 0 to 9, default 1) -n --notimechange : do not change record last modification date when updating -V --version : print the script version """
|
c01e7675eac4ac02844b96fe38be4646d43de28c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c01e7675eac4ac02844b96fe38be4646d43de28c/bibupload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
3536,
5108,
2809,
8395,
1172,
3536,
11323,
490,
27206,
3167,
585,
471,
1089,
5505,
2063,
4606,
4888,
358,
702,
18,
225,
10858,
30,
25581,
6327,
306,
2116,
65,
810,
18,
2902,
19830,
30,
225,
271,
25581,
6327,
300,
77,
810,
18,
2902,
225,
5087,
30,
282,
2741,
30,
225,
300,
69,
1493,
6923,
294,
394,
1466,
854,
12317,
358,
326,
2062,
1409,
300,
71,
1493,
6746,
294,
1466,
854,
8089,
635,
326,
394,
5945,
316,
326,
2062,
1409,
300,
74,
1493,
2139,
565,
294,
5530,
1338,
326,
478,
6152,
1466,
1368,
2236,
18,
9637,
486,
1089,
300,
77,
1493,
6387,
294,
2243,
326,
394,
1409,
316,
326,
2063,
300,
86,
1493,
2079,
294,
326,
2062,
1409,
353,
21658,
8089,
635,
326,
394,
1245,
300,
94,
1493,
6180,
294,
1089,
5351,
261,
2725,
1338,
22249,
1466,
13,
300,
87,
1493,
12869,
294,
6009,
358,
787,
628,
316,
326,
4886,
73,
261,
20,
30,
3712,
2731,
31,
404,
30,
478,
6152,
2342,
31,
576,
30,
2246,
56,
2342,
31,
890,
30,
605,
495,
16090,
31,
1059,
30,
6912,
1089,
31,
1381,
30,
813,
1089,
13,
225,
348,
13252,
702,
30,
300,
89,
16,
225,
1493,
1355,
33,
4714,
1850,
729,
508,
358,
1707,
1562,
16,
2201,
3577,
225,
9544,
702,
30,
300,
76,
16,
225,
1493,
5201,
9079,
1172,
333,
2809,
471,
2427,
300,
90,
16,
225,
1493,
11369,
33,
10398,
1377,
3988,
1801,
261,
2080,
374,
358,
2468,
16,
805,
404,
13,
300,
82,
225,
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,
4084,
13332,
3536,
5108,
2809,
8395,
1172,
3536,
11323,
490,
27206,
3167,
585,
471,
1089,
5505,
2063,
4606,
4888,
358,
702,
18,
225,
10858,
30,
25581,
6327,
306,
2116,
65,
810,
18,
2902,
19830,
30,
225,
271,
25581,
6327,
300,
77,
810,
18,
2902,
225,
5087,
30,
282,
2741,
30,
225,
300,
69,
1493,
6923,
294,
394,
1466,
854,
12317,
358,
326,
2062,
1409,
300,
71,
1493,
6746,
294,
1466,
854,
8089,
635,
326,
394,
5945,
316,
326,
2062,
1409,
300,
74,
1493,
2139,
565,
294,
5530,
1338,
326,
478,
6152,
1466,
1368,
2236,
18,
9637,
486,
1089,
300,
77,
1493,
6387,
294,
2243,
326,
394,
1409,
316,
326,
2063,
300,
86,
1493,
2079,
294,
326,
2062,
1409,
2
] |
def __init__(self, this=m2.dh_new()): self.this=this
|
def __init__(self, this=None, _pyfree=0): if this is not None: self.this = this self._pyfree = _pyfree else: self.this = m2.dh_new() self._pyfree = 1
|
def __init__(self, this=m2.dh_new()): self.this=this
|
ea2953656e44d776d56203682310a6cc498fdacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/ea2953656e44d776d56203682310a6cc498fdacb/DH.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
333,
33,
81,
22,
18,
19153,
67,
2704,
1435,
4672,
365,
18,
2211,
33,
2211,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
333,
33,
81,
22,
18,
19153,
67,
2704,
1435,
4672,
365,
18,
2211,
33,
2211,
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
] |
try: if int(opt_value) > 0 and int(opt_value) < 999: options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) except ValueError: if opt_value == 'FMT' or opt_value == 'FFT': options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) else: options['mode'] = 'correct' options['file_path'] = os.path.abspath(opt_value)
|
options['mode'] = 'correct' options['file_path'] = os.path.abspath(args[0])
|
def parse_command(): """Analyze the command line and retrieve arguments (xml file, mode, etc) into global options variable. Return 0 in case everything went well, 1 in case of errors, 2 in case only help or version number were asked for. """ # FIXME: add treatment of `time' try: opts, args = getopt.getopt(sys.argv[1:], "i:r:c:a:z:s:f:u:hv:Vn", [ "insert=", "replace=", "correct=", "append=", "reference=", "stage=", "format=", "user=", "help", "verbose", "version", "notimechange", ]) except getopt.GetoptError,erro: usage() write_message("Stage 0 error: %s" % erro, verbose=1, stream=sys.stderr) return 1 # set the proper mode depending on the argument value for opt, opt_value in opts: # Verbose mode option if opt in ["-v", "--verbose"]: try: options['verbose'] = int(opt_value) except ValueError: write_message("Failed: enter a valid number for verbose mode (between 0 and 9).", verbose=1, stream=sys.stderr) return 1 # stage mode option if opt in ["-s", "--stage"]: try: options['stage_to_start_from'] = int(opt_value) except ValueError: write_message("Failed: enter a valid number for the stage to start from(>0).", verbose=1, stream=sys.stderr) return 1 # No time change option if opt in ["-n", "--notimechange"]: options['notimechange'] = 1 # Insert mode option if opt in ["-i", "--insert"]: options['mode'] = 'insert' options['file_path'] = os.path.abspath(opt_value) # Replace mode option if opt in ["-r", "--replace"]: # We check if there is not the mode insert after replace if opt_value == '-i' or opt_value == '--insert': options['replace_insert'] = 1 options['mode'] = 'replace_insert' options['file_path'] = os.path.abspath(args[0]) else: # Creation of the records from the xml Marc in argument options['mode'] = 'replace' options['file_path'] = os.path.abspath(opt_value) # Correct mode option if opt in ["-c", "--correct"]: # We check if there is not just a special tag to correct try: if int(opt_value) > 0 and int(opt_value) < 999: options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) except ValueError: if opt_value == 'FMT' or opt_value == 'FFT': options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) else: options['mode'] = 'correct' options['file_path'] = os.path.abspath(opt_value) # Append mode option if opt in ["-a", "--append"]: # We check if there is not just a special tag to append try: if int(opt_value) > 0 and int(opt_value) < 999: options['mode'] = 'append' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) except ValueError: if opt_value == 'FMT' or opt_value == 'FFT': options['mode'] = 'append' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) else: options['mode'] = 'append' options['file_path'] = os.path.abspath(opt_value) # Reference mode option if opt in ["-z", "--reference"]: options['mode'] = 'reference' options['file_path'] = os.path.abspath(opt_value) # Format mode option if opt in ["-f", "--format"]: options['mode'] = 'format' options['file_path'] = os.path.abspath(opt_value) # Detection of user if opt in ["-u", "--user"]: options['user'] = opt_value # Help mode option if opt in ["-h", "--help"]: usage() return 2 # Version mode option if opt in ["-V", "--version"]: write_message(__revision__, verbose=1) return 2 if options['mode'] is None: write_message("Please specify at least one update/insert mode!") return 1 if options['file_path'] is None: write_message("Missing filename! -h for help.") return 1 return 0
|
1743992f0cfbbd7112c376e34c6d95d4396980d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/1743992f0cfbbd7112c376e34c6d95d4396980d9/bibupload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
13332,
3536,
31984,
326,
1296,
980,
471,
4614,
1775,
261,
2902,
585,
16,
1965,
16,
5527,
13,
1368,
2552,
702,
2190,
18,
225,
2000,
374,
316,
648,
7756,
16343,
5492,
16,
404,
316,
648,
434,
1334,
16,
576,
316,
648,
1338,
2809,
578,
1177,
1300,
4591,
19279,
364,
18,
3536,
468,
9852,
30,
527,
24266,
434,
1375,
957,
11,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
77,
30,
86,
30,
71,
30,
69,
30,
94,
30,
87,
30,
74,
30,
89,
30,
76,
90,
30,
58,
82,
3113,
306,
315,
6387,
1546,
16,
315,
2079,
1546,
16,
315,
6746,
1546,
16,
315,
6923,
1546,
16,
315,
6180,
1546,
16,
315,
12869,
1546,
16,
315,
2139,
1546,
16,
315,
1355,
1546,
16,
315,
5201,
3113,
315,
11369,
3113,
315,
1589,
3113,
315,
902,
494,
3427,
3113,
308,
13,
1335,
336,
3838,
18,
967,
3838,
668,
16,
264,
303,
30,
4084,
1435,
1045,
67,
2150,
2932,
8755,
374,
555,
30,
738,
87,
6,
738,
6445,
303,
16,
3988,
33,
21,
16,
1407,
33,
9499,
18,
11241,
13,
327,
404,
225,
468,
444,
326,
5338,
1965,
8353,
603,
326,
1237,
460,
364,
2153,
16,
2153,
67,
1132,
316,
1500,
30,
468,
29846,
1965,
1456,
309,
2153,
316,
8247,
17,
90,
3113,
5238,
11369,
11929,
30,
775,
30,
702,
3292,
11369,
3546,
273,
509,
12,
3838,
67,
1132,
13,
1335,
2068,
30,
1045,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
13332,
3536,
31984,
326,
1296,
980,
471,
4614,
1775,
261,
2902,
585,
16,
1965,
16,
5527,
13,
1368,
2552,
702,
2190,
18,
225,
2000,
374,
316,
648,
7756,
16343,
5492,
16,
404,
316,
648,
434,
1334,
16,
576,
316,
648,
1338,
2809,
578,
1177,
1300,
4591,
19279,
364,
18,
3536,
468,
9852,
30,
527,
24266,
434,
1375,
957,
11,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
77,
30,
86,
30,
71,
30,
69,
30,
94,
30,
87,
30,
74,
30,
89,
30,
76,
90,
30,
58,
82,
3113,
306,
315,
6387,
1546,
16,
315,
2079,
1546,
16,
315,
6746,
1546,
16,
315,
2
] |
if ext.language == "c++": self.compiler.compiler_so = self.compiler.compiler_cxx
|
"""Work around distutils bug which uses the C compiler for C++ code. """ if hasattr(ext, "language") and ext.language == "c++": if hasattr(ext, "cxx"): self.compiler.compiler = ext.cxx self.compiler.compiler_so = ext.cxx else: self.compiler.compiler_so = self.compiler.compiler_cxx
|
def build_extension(self, ext): if ext.language == "c++": self.compiler.compiler_so = self.compiler.compiler_cxx else: self.compiler.compiler_so = self._original_compiler_so
|
a573247d8dab5e2102e9fc6281b9cc72d84ab8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/a573247d8dab5e2102e9fc6281b9cc72d84ab8cd/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
6447,
12,
2890,
16,
1110,
4672,
3536,
2421,
6740,
2411,
5471,
7934,
1492,
4692,
326,
385,
5274,
364,
385,
9904,
981,
18,
3536,
309,
3859,
12,
408,
16,
315,
4923,
7923,
471,
1110,
18,
4923,
422,
315,
71,
9904,
6877,
225,
309,
3859,
12,
408,
16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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
6447,
12,
2890,
16,
1110,
4672,
3536,
2421,
6740,
2411,
5471,
7934,
1492,
4692,
326,
385,
5274,
364,
385,
9904,
981,
18,
3536,
309,
3859,
12,
408,
16,
315,
4923,
7923,
471,
1110,
18,
4923,
422,
315,
71,
9904,
6877,
225,
309,
3859,
12,
408,
16,
315,
71,
5279,
6,
4672,
365,
18,
9576,
18,
9576,
273,
1110,
18,
71,
5279,
365,
18,
9576,
18,
9576,
67,
2048,
273,
1110,
18,
71,
5279,
469,
30,
365,
18,
9576,
18,
9576,
67,
2048,
273,
365,
18,
9576,
18,
9576,
67,
71,
5279,
469,
30,
365,
18,
9576,
18,
9576,
67,
2048,
273,
365,
6315,
8830,
67,
9576,
67,
2048,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EMR.EXTTEXTOUTA.__init__(self,x,y,txt)
|
_EMR._EXTTEXTOUTA.__init__(self,x,y,txt)
|
def __init__(self,x=0,y=0,txt=u''): EMR.EXTTEXTOUTA.__init__(self,x,y,txt) self.charsize=2
|
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
92,
33,
20,
16,
93,
33,
20,
16,
5830,
33,
89,
6309,
4672,
389,
3375,
54,
6315,
4142,
5151,
5069,
37,
16186,
2738,
972,
12,
2890,
16,
92,
16,
93,
16,
5830,
13,
365,
18,
3001,
1467,
33,
22,
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
] |
sender = sender[0]
|
def _pongHandler(sender, id=node.id, host=node.host, port=node.port, table=self.table): sender = sender[0] if id != 20 * ' ' and id != sender['id'].data: # whoah, got response from different peer than we were expecting pass else: sender['host'] = host sender['port'] = port n = Node().initWithDict(sender) table.insertNode(n) return
|
8af8fd84094b75c0a37a3b17a2b63d6db2c42563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/8af8fd84094b75c0a37a3b17a2b63d6db2c42563/khashmir.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
500,
75,
1503,
12,
15330,
16,
612,
33,
2159,
18,
350,
16,
1479,
33,
2159,
18,
2564,
16,
1756,
33,
2159,
18,
655,
16,
1014,
33,
2890,
18,
2121,
4672,
309,
612,
480,
4200,
380,
296,
296,
471,
612,
480,
5793,
3292,
350,
29489,
892,
30,
468,
10354,
9795,
16,
2363,
766,
628,
3775,
4261,
2353,
732,
4591,
17012,
1342,
469,
30,
5793,
3292,
2564,
3546,
273,
1479,
5793,
3292,
655,
3546,
273,
1756,
290,
273,
2029,
7675,
2738,
1190,
5014,
12,
15330,
13,
1014,
18,
6387,
907,
12,
82,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
500,
75,
1503,
12,
15330,
16,
612,
33,
2159,
18,
350,
16,
1479,
33,
2159,
18,
2564,
16,
1756,
33,
2159,
18,
655,
16,
1014,
33,
2890,
18,
2121,
4672,
309,
612,
480,
4200,
380,
296,
296,
471,
612,
480,
5793,
3292,
350,
29489,
892,
30,
468,
10354,
9795,
16,
2363,
766,
628,
3775,
4261,
2353,
732,
4591,
17012,
1342,
469,
30,
5793,
3292,
2564,
3546,
273,
1479,
5793,
3292,
655,
3546,
273,
1756,
290,
273,
2029,
7675,
2738,
1190,
5014,
12,
15330,
13,
1014,
18,
6387,
907,
12,
82,
13,
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
] |
|
if width == '':
|
if width == '':
|
def do_table(self, args): '''Usage: table classname [property[,property]*] List the instances of a class in tabular form.
|
8db273cafa102a40f99c0dde8ea0913e7a82990e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8db273cafa102a40f99c0dde8ea0913e7a82990e/admin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2121,
12,
2890,
16,
833,
4672,
9163,
5357,
30,
1014,
7479,
306,
4468,
63,
16,
4468,
5772,
65,
987,
326,
3884,
434,
279,
667,
316,
28342,
646,
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,
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,
306,
4468,
63,
16,
4468,
5772,
65,
987,
326,
3884,
434,
279,
667,
316,
28342,
646,
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
] |
rml = etree.tostring( transform(etree.fromstring(new_doc.toxml())))
|
rml = etree.tostring(transform(new_doc))
|
def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n)
|
32aa89f603ce93d4388ce6f049f482862969ced9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/32aa89f603ce93d4388ce6f049f482862969ced9/custom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
88,
13,
642,
18,
6923,
1763,
12,
82,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
88,
13,
642,
18,
6923,
1763,
12,
82,
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
] |
off.setAllele(pop.gen(), 0) return True
|
off.setAllele(pop.gen(), 0) return True
|
def setGen(pop, off, dad, mom): off.setAllele(pop.gen(), 0) return True
|
467f05af36b87d2f819d1a9dc7420d10e3ebf810 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/467f05af36b87d2f819d1a9dc7420d10e3ebf810/test_05_matings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
7642,
12,
5120,
16,
3397,
16,
302,
361,
16,
312,
362,
4672,
3397,
18,
542,
1595,
6516,
12,
5120,
18,
4507,
9334,
374,
13,
327,
1053,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
7642,
12,
5120,
16,
3397,
16,
302,
361,
16,
312,
362,
4672,
3397,
18,
542,
1595,
6516,
12,
5120,
18,
4507,
9334,
374,
13,
327,
1053,
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
] |
while (con.mapper_dict == None) and path != None:
|
while (con.mapper_dict == None) and path != '/' and path != None:
|
def default(self, *args, **kwargs):
|
8ba7f949b44f9640813943a41b0cbc92a39bf62a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12732/8ba7f949b44f9640813943a41b0cbc92a39bf62a/controllers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
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
] |
loc, tmptokens = self.expr.parse( instring, loc, doActions )
|
loc, tmptokens = self.expr._parse( instring, loc, doActions )
|
def parseImpl( self, instring, loc, doActions=True ): tokens = [] try: loc, tokens = self.expr.parse( instring, loc, doActions ) hasIgnoreExprs = ( len(self.ignoreExprs) > 0 ) while 1: if hasIgnoreExprs: loc = self.skipIgnorables( instring, loc ) loc, tmptokens = self.expr.parse( instring, loc, doActions ) if tmptokens or tmptokens.keys(): tokens += tmptokens except (ParseException,IndexError): pass
|
cf270a876802009d82e8d28923bdd6b889a1f506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/cf270a876802009d82e8d28923bdd6b889a1f506/pyparsing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
2430,
273,
5378,
775,
30,
1515,
16,
2430,
273,
365,
18,
8638,
18,
2670,
12,
316,
1080,
16,
1515,
16,
741,
6100,
262,
711,
3777,
22947,
273,
261,
562,
12,
2890,
18,
6185,
22947,
13,
405,
374,
262,
1323,
404,
30,
309,
711,
3777,
22947,
30,
1515,
273,
365,
18,
7457,
45,
1600,
280,
1538,
12,
316,
1080,
16,
1515,
262,
1515,
16,
6118,
337,
3573,
273,
365,
18,
8638,
6315,
2670,
12,
316,
1080,
16,
1515,
16,
741,
6100,
262,
309,
6118,
337,
3573,
578,
6118,
337,
3573,
18,
2452,
13332,
2430,
1011,
6118,
337,
3573,
1335,
261,
13047,
16,
1016,
668,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
741,
6100,
262,
711,
3777,
22947,
273,
261,
562,
12,
2890,
18,
6185,
22947,
13,
405,
374,
262,
1323,
404,
30,
309,
711,
3777,
22947,
30,
1515,
273,
365,
18,
7457,
45,
1600,
280,
1538,
12,
316,
1080,
16,
1515,
262,
1515,
16,
6118,
337,
3573,
273,
365,
18,
8638,
6315,
2670,
12,
316,
1080,
16,
1515,
16,
741,
6100,
262,
309,
6118,
337,
3573,
578,
6118,
337,
3573,
18,
2452,
13332,
2430,
1011,
6118,
337,
3573,
1335,
261,
13047,
16,
1016,
2
] |
else :
|
where = self.thePile.get_focus().get_body().get_focus()[1] else:
|
def update_focusloc(self): # Location of last known focus is remapped to current location. # This might need to be cleaned up later.
|
b78b4c8d3bc27b35a33b53c3d42bb4f77863a8eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/b78b4c8d3bc27b35a33b53c3d42bb4f77863a8eb/wicd-curses.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
13923,
1829,
12,
2890,
4672,
468,
7050,
434,
1142,
4846,
7155,
353,
21674,
1845,
358,
783,
2117,
18,
468,
1220,
4825,
1608,
358,
506,
9426,
731,
5137,
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,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326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
13923,
1829,
12,
2890,
4672,
468,
7050,
434,
1142,
4846,
7155,
353,
21674,
1845,
358,
783,
2117,
18,
468,
1220,
4825,
1608,
358,
506,
9426,
731,
5137,
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
] |
print "pathsegments %r, treeDepth %r" % (pathSegments, treeDepth)
|
def findRootPath(self, request, additionalDepth=0): """Find the URL path referring to the root of the current stats tree The returned path begins and ends with a slash.
|
4fb2208598d1668d88ec00afa0974bd184cc066e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/4fb2208598d1668d88ec00afa0974bd184cc066e/StatsBrowser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
21302,
12,
2890,
16,
590,
16,
3312,
6148,
33,
20,
4672,
3536,
3125,
326,
1976,
589,
1278,
20245,
358,
326,
1365,
434,
326,
783,
3177,
2151,
1021,
2106,
589,
17874,
471,
3930,
598,
279,
9026,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
21302,
12,
2890,
16,
590,
16,
3312,
6148,
33,
20,
4672,
3536,
3125,
326,
1976,
589,
1278,
20245,
358,
326,
1365,
434,
326,
783,
3177,
2151,
1021,
2106,
589,
17874,
471,
3930,
598,
279,
9026,
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
] |
|
self.wantnick = nickname
|
self.wantnick = nickname
|
def __init__(self, nickname, password, channels, status, categories): """ @type nickname: string @param nickname: the nickname by which this bot should be known @type password: string @param password: the password to use for identifying with Nickserv @type channels: list of strings @param channels: the bot will maintain a presence in these channels @type status: L{buildbot.status.builder.Status} @param status: the build master's Status object, through which the bot retrieves all status information """ self.nickname = nickname
|
c8dc6496fcdea91de7fd32e1a604f8130e3c8357 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5901/c8dc6496fcdea91de7fd32e1a604f8130e3c8357/words.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19570,
16,
2201,
16,
5750,
16,
1267,
16,
6477,
4672,
3536,
632,
723,
225,
19570,
30,
533,
632,
891,
19570,
30,
326,
19570,
635,
1492,
333,
2512,
1410,
506,
4846,
632,
723,
225,
2201,
30,
533,
632,
891,
2201,
30,
326,
2201,
358,
999,
364,
29134,
598,
423,
1200,
23039,
632,
723,
225,
5750,
30,
666,
434,
2064,
632,
891,
5750,
30,
326,
2512,
903,
17505,
279,
9805,
316,
4259,
5750,
632,
723,
225,
1267,
30,
511,
95,
3510,
4819,
18,
2327,
18,
9574,
18,
1482,
97,
632,
891,
1267,
30,
326,
1361,
4171,
1807,
2685,
733,
16,
3059,
1492,
326,
2512,
9023,
777,
1267,
1779,
3536,
365,
18,
17091,
529,
273,
19570,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19570,
16,
2201,
16,
5750,
16,
1267,
16,
6477,
4672,
3536,
632,
723,
225,
19570,
30,
533,
632,
891,
19570,
30,
326,
19570,
635,
1492,
333,
2512,
1410,
506,
4846,
632,
723,
225,
2201,
30,
533,
632,
891,
2201,
30,
326,
2201,
358,
999,
364,
29134,
598,
423,
1200,
23039,
632,
723,
225,
5750,
30,
666,
434,
2064,
632,
891,
5750,
30,
326,
2512,
903,
17505,
279,
9805,
316,
4259,
5750,
632,
723,
225,
1267,
30,
511,
95,
3510,
4819,
18,
2327,
18,
9574,
18,
1482,
97,
632,
891,
1267,
30,
326,
1361,
4171,
1807,
2685,
733,
16,
3059,
1492,
326,
2512,
9023,
777,
1267,
1779,
3536,
365,
18,
17091,
529,
273,
2
] |
playback_history.pop()
|
if playback_history and playback_history.complete: playback_history.pop()
|
def playback_last(n, count): # Retrieve playback-action from recognition observer. playback_history.pop() # Remove playback recognition itself. action = playback_history[-n:] # Retrieve last *n* recognitions. action.speed = 10 # Playback at 10x original speed. # Playback action. playback_history.unregister() # Don't record playback. try: for index in range(count): # Playback *count* times. action.execute() # Perform playback. finally: playback_history.register() # Continue recording after playback.
|
d4eb00e6e43f92aba44fc77c590809a545eb20c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6570/d4eb00e6e43f92aba44fc77c590809a545eb20c2/_cmdmemory.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26335,
67,
2722,
12,
82,
16,
1056,
4672,
468,
10708,
26335,
17,
1128,
628,
1950,
7909,
9655,
18,
309,
26335,
67,
8189,
471,
26335,
67,
8189,
18,
6226,
30,
26335,
67,
8189,
18,
5120,
1435,
1850,
468,
3581,
26335,
1950,
7909,
6174,
18,
1301,
273,
26335,
67,
8189,
18919,
82,
26894,
225,
468,
10708,
1142,
380,
82,
14,
14603,
5029,
18,
1301,
18,
13871,
273,
1728,
9079,
468,
19592,
823,
622,
1728,
92,
2282,
8632,
18,
225,
468,
19592,
823,
1301,
18,
26335,
67,
8189,
18,
318,
4861,
1435,
282,
468,
7615,
1404,
1409,
26335,
18,
775,
30,
364,
770,
316,
1048,
12,
1883,
4672,
225,
468,
19592,
823,
380,
1883,
14,
4124,
18,
1301,
18,
8837,
1435,
3639,
468,
11217,
26335,
18,
3095,
30,
26335,
67,
8189,
18,
4861,
1435,
468,
16773,
14949,
1839,
26335,
18,
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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
18,
1301,
273,
26335,
67,
8189,
18919,
82,
26894,
225,
468,
10708,
1142,
380,
82,
14,
14603,
5029,
18,
1301,
18,
13871,
273,
1728,
9079,
468,
19592,
823,
622,
1728,
92,
2282,
8632,
18,
225,
468,
19592,
823,
1301,
18,
26335,
67,
8189,
18,
318,
4861,
1435,
282,
468,
7615,
1404,
1409,
26335,
18,
775,
30,
364,
770,
316,
1048,
12,
1883,
4672,
225,
468,
19592,
823,
380,
1883,
14,
4124,
18,
1301,
18,
8837,
1435,
2
] |
from pecan import conf, set_config set_config('config')
|
conf = configuration.initconf() conf.update_with_module('config')
|
def test_update_set_config(self): """Update an empty configuration with the default values""" from pecan import conf, set_config set_config('config')
|
be62d192c6350b0776e8bde5ed34dd9156e3fd67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3117/be62d192c6350b0776e8bde5ed34dd9156e3fd67/test_conf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2725,
67,
542,
67,
1425,
12,
2890,
4672,
3536,
1891,
392,
1008,
1664,
598,
326,
805,
924,
8395,
628,
293,
557,
304,
1930,
2195,
16,
444,
67,
1425,
444,
67,
1425,
2668,
1425,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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981,
30,
1652,
1842,
67,
2725,
67,
542,
67,
1425,
12,
2890,
4672,
3536,
1891,
392,
1008,
1664,
598,
326,
805,
924,
8395,
628,
293,
557,
304,
1930,
2195,
16,
444,
67,
1425,
444,
67,
1425,
2668,
1425,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert)
|
server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert, options.ssl_client_auth)
|
def main(options, args): # redirect output to a log file so it doesn't spam the unit test output logfile = open('testserver.log', 'w') sys.stderr = sys.stdout = logfile port = options.port # Try to free up the port if there's an orphaned old instance. TryKillingOldServer(port) if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): print 'specified cert file not found: ' + options.cert + ' exiting...' return server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert) print 'HTTPS server started on port %d...' % port else: server = StoppableHTTPServer(('127.0.0.1', port), TestPageHandler) print 'HTTP server started on port %d...' % port server.data_dir = MakeDataDir() server.file_root_url = options.file_root_url server._sync_handler = None MakeDumpDir(server.data_dir) # means FTP Server else: my_data_dir = MakeDataDir() def line_logger(msg): if (msg.find("kill") >= 0): server.stop = True print 'shutting down server' sys.exit(0) # Instantiate a dummy authorizer for managing 'virtual' users authorizer = pyftpdlib.ftpserver.DummyAuthorizer() # Define a new user having full r/w permissions and a read-only # anonymous user authorizer.add_user('chrome', 'chrome', my_data_dir, perm='elradfmw') authorizer.add_anonymous(my_data_dir) # Instantiate FTP handler class ftp_handler = pyftpdlib.ftpserver.FTPHandler ftp_handler.authorizer = authorizer pyftpdlib.ftpserver.logline = line_logger # Define a customized banner (string returned when client connects) ftp_handler.banner = ("pyftpdlib %s based ftpd ready." % pyftpdlib.ftpserver.__ver__) # Instantiate FTP server class and listen to 127.0.0.1:port address = ('127.0.0.1', port) server = pyftpdlib.ftpserver.FTPServer(address, ftp_handler) print 'FTP server started on port %d...' % port try: server.serve_forever() except KeyboardInterrupt: print 'shutting down server' server.stop = True
|
8df162ae8daedfa09971f7b59420212df505a2b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8df162ae8daedfa09971f7b59420212df505a2b7/testserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
468,
3136,
876,
358,
279,
613,
585,
1427,
518,
3302,
1404,
24824,
326,
2836,
1842,
876,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
11241,
273,
2589,
18,
10283,
273,
15204,
225,
1756,
273,
702,
18,
655,
225,
468,
6161,
358,
4843,
731,
326,
1756,
309,
1915,
1807,
392,
31124,
1592,
791,
18,
6161,
47,
5789,
7617,
2081,
12,
655,
13,
225,
309,
702,
18,
3567,
67,
723,
422,
15061,
67,
3693,
30,
309,
702,
18,
7593,
30,
468,
2231,
1807,
1221,
3071,
326,
3320,
585,
1704,
18,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
2116,
18,
7593,
4672,
1172,
296,
13827,
3320,
585,
486,
1392,
30,
296,
397,
702,
18,
7593,
397,
296,
15702,
7821,
327,
1438,
273,
18904,
2081,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
3631,
7766,
1964,
1503,
16,
702,
18,
7593,
16,
702,
18,
8157,
67,
2625,
67,
1944,
13,
1172,
296,
18657,
1438,
5746,
603,
1756,
738,
72,
7821,
738,
1756,
469,
30,
1438,
273,
5131,
19586,
3693,
2081,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
3631,
7766,
1964,
1503,
13,
1172,
296,
3693,
1438,
5746,
603,
1756,
738,
72,
7821,
738,
1756,
225,
1438,
18,
892,
67,
1214,
273,
4344,
751,
1621,
1435,
1438,
18,
768,
67,
3085,
67,
718,
273,
702,
18,
768,
67,
3085,
67,
718,
1438,
6315,
8389,
67,
4176,
273,
599,
225,
4344,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
468,
3136,
876,
358,
279,
613,
585,
1427,
518,
3302,
1404,
24824,
326,
2836,
1842,
876,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
11241,
273,
2589,
18,
10283,
273,
15204,
225,
1756,
273,
702,
18,
655,
225,
468,
6161,
358,
4843,
731,
326,
1756,
309,
1915,
1807,
392,
31124,
1592,
791,
18,
6161,
47,
5789,
7617,
2081,
12,
655,
13,
225,
309,
702,
18,
3567,
67,
723,
422,
15061,
67,
3693,
30,
309,
702,
18,
7593,
30,
468,
2231,
1807,
1221,
3071,
326,
3320,
585,
1704,
18,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
2116,
18,
7593,
4672,
1172,
296,
13827,
3320,
585,
2
] |
pass
|
t[0] = ''
|
def p_array_opt(t): """ array_opt : array_opt : array_opt LBRACKET RBRACKET array_opt : array_opt LBRACKET skiplist_all RBRACKET """ pass
|
fd6e74705730e8bfe77462fc585dc1b6c5368739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/fd6e74705730e8bfe77462fc585dc1b6c5368739/ddf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
1126,
67,
3838,
12,
88,
4672,
3536,
526,
67,
3838,
294,
526,
67,
3838,
294,
526,
67,
3838,
511,
21217,
534,
21217,
526,
67,
3838,
294,
526,
67,
3838,
511,
21217,
4343,
77,
17842,
67,
454,
534,
21217,
3536,
268,
63,
20,
65,
273,
875,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
1126,
67,
3838,
12,
88,
4672,
3536,
526,
67,
3838,
294,
526,
67,
3838,
294,
526,
67,
3838,
511,
21217,
534,
21217,
526,
67,
3838,
294,
526,
67,
3838,
511,
21217,
4343,
77,
17842,
67,
454,
534,
21217,
3536,
268,
63,
20,
65,
273,
875,
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
] |
assert 'Department:</strong> <br/>' in dept_readonly, dept_readonly
|
assert '<br/>' == dept_readonly, repr(dept_readonly)
|
def test_2_field_department_none(self): # Create package model.repo.new_revision() pkg = model.Package(name=u'test3') model.Session.add(pkg) model.repo.commit_and_remove()
|
d5b92a835dfd85b05248b7f3ac94a0bd85a4b78d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/d5b92a835dfd85b05248b7f3ac94a0bd85a4b78d/test_package_gov.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22,
67,
1518,
67,
323,
15750,
67,
6102,
12,
2890,
4672,
468,
1788,
2181,
938,
18,
7422,
18,
2704,
67,
13057,
1435,
3475,
273,
938,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22,
67,
1518,
67,
323,
15750,
67,
6102,
12,
2890,
4672,
468,
1788,
2181,
938,
18,
7422,
18,
2704,
67,
13057,
1435,
3475,
273,
938,
18,
2261,
12,
529,
33,
89,
1404,
395,
23,
6134,
938,
18,
2157,
18,
1289,
12,
10657,
13,
938,
18,
7422,
18,
7371,
67,
464,
67,
4479,
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
] |
if self.repo_type == 1: steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)] if not os.path.exists('qemu/pc-bios/bios.bin'): steps.append("make -C bios") steps.append("make -C extboot") steps.append("cp -f bios/BIOS-bochs-latest" " qemu/pc-bios/bios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.bin" " qemu/pc-bios/vgabios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.cirrus.bin" " qemu/pc-bios/vgabios-cirrus.bin") steps.append("cp -f extboot/extboot.bin" " qemu/pc-bios/extboot.bin") elif self.repo_type == 2: steps = [cfg, "make clean", "make -j %s" % utils.count_cpus()]
|
steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)]
|
def __build(self): os.chdir(self.srcdir) # For testing purposes, it's better to build qemu binaries with # debugging symbols, so we can extract more meaningful stack traces. cfg = "./configure --disable-strip --prefix=%s" % self.prefix if self.repo_type == 1: steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)] if not os.path.exists('qemu/pc-bios/bios.bin'): steps.append("make -C bios") steps.append("make -C extboot") steps.append("cp -f bios/BIOS-bochs-latest" " qemu/pc-bios/bios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.bin" " qemu/pc-bios/vgabios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.cirrus.bin" " qemu/pc-bios/vgabios-cirrus.bin") steps.append("cp -f extboot/extboot.bin" " qemu/pc-bios/extboot.bin") elif self.repo_type == 2: steps = [cfg, "make clean", "make -j %s" % utils.count_cpus()]
|
e05779048facff81f29df2d9abf1bfb857241db3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/e05779048facff81f29df2d9abf1bfb857241db3/kvm_install.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
12,
2890,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
4816,
1214,
13,
468,
2457,
7769,
13694,
16,
518,
1807,
7844,
358,
1361,
1043,
24995,
4158,
5646,
598,
468,
10450,
7963,
16,
1427,
732,
848,
2608,
1898,
26271,
2110,
19649,
18,
2776,
273,
25165,
14895,
1493,
8394,
17,
6406,
1493,
3239,
5095,
87,
6,
738,
365,
18,
3239,
309,
365,
18,
7422,
67,
723,
422,
404,
30,
6075,
273,
306,
7066,
16,
315,
6540,
2721,
3113,
315,
6540,
300,
78,
738,
87,
6,
738,
261,
5471,
18,
1883,
67,
20696,
1435,
397,
404,
25887,
309,
486,
1140,
18,
803,
18,
1808,
2668,
85,
24995,
19,
2436,
17,
70,
7441,
19,
70,
7441,
18,
4757,
11,
4672,
6075,
18,
6923,
2932,
6540,
300,
39,
324,
7441,
7923,
6075,
18,
6923,
2932,
6540,
300,
39,
1110,
7137,
7923,
6075,
18,
6923,
2932,
4057,
300,
74,
324,
7441,
19,
38,
30520,
17,
1075,
343,
87,
17,
13550,
6,
315,
1043,
24995,
19,
2436,
17,
70,
7441,
19,
70,
7441,
18,
4757,
7923,
6075,
18,
6923,
2932,
4057,
300,
74,
19524,
378,
7441,
19,
9266,
2090,
30520,
17,
23623,
412,
17,
13550,
18,
4757,
6,
315,
1043,
24995,
19,
2436,
17,
70,
7441,
19,
20105,
378,
7441,
18,
4757,
7923,
6075,
18,
6923,
2932,
4057,
300,
74,
19524,
378,
7441,
19,
9266,
2090,
30520,
17,
23623,
412,
17,
13550,
18,
71,
7439,
407,
18,
4757,
6,
315,
1043,
24995,
19,
2436,
17,
70,
7441,
19,
20105,
378,
7441,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
12,
2890,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
4816,
1214,
13,
468,
2457,
7769,
13694,
16,
518,
1807,
7844,
358,
1361,
1043,
24995,
4158,
5646,
598,
468,
10450,
7963,
16,
1427,
732,
848,
2608,
1898,
26271,
2110,
19649,
18,
2776,
273,
25165,
14895,
1493,
8394,
17,
6406,
1493,
3239,
5095,
87,
6,
738,
365,
18,
3239,
309,
365,
18,
7422,
67,
723,
422,
404,
30,
6075,
273,
306,
7066,
16,
315,
6540,
2721,
3113,
315,
6540,
300,
78,
738,
87,
6,
738,
261,
5471,
18,
1883,
67,
20696,
1435,
397,
404,
25887,
309,
486,
1140,
18,
803,
18,
1808,
2668,
85,
24995,
19,
2436,
17,
70,
7441,
19,
70,
7441,
18,
4757,
11,
4672,
2
] |
self.user = user
|
self.user = user
|
def __init__(self, site, user=None, password=None, timeout=5, format=formats.XMLFormat): """Initialize a new Connection object.
|
647edf2efecc75d6970b3c2ff5905f24d147dd19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6884/647edf2efecc75d6970b3c2ff5905f24d147dd19/connection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2834,
16,
729,
33,
7036,
16,
2201,
33,
7036,
16,
2021,
33,
25,
16,
740,
33,
11962,
18,
4201,
1630,
4672,
3536,
7520,
279,
394,
4050,
733,
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
] |
class EditPostForm(forms.ModelForm): name = forms.CharField(required=False, label=_('Subject'), widget=forms.TextInput(attrs={'size':'115'})) class Meta: model = Post fields = ['body'] def __init__(self, *args, **kwargs): self.topic = kwargs.pop('topic', None) super(EditPostForm, self).__init__(*args, **kwargs) self.fields['name'].initial = self.topic self.fields['body'].widget = forms.Textarea(attrs={'class':'bbcode'}) def save(self, commit=True): post = super(EditPostForm, self).save(commit=False) post.updated = datetime.now() if commit: post.save() return post
|
def __init__(self, *args, **kwargs): super(PrivacyProfileForm, self).__init__(*args, **kwargs) self.fields['privacy_permission'].widget = forms.RadioSelect( choices=self.fields['privacy_permission'].choices )
|
00e4db1ce19618dbae7e4b236d1bdecef91899b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/00e4db1ce19618dbae7e4b236d1bdecef91899b5/forms.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
15475,
3505,
4029,
1204,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
365,
18,
2821,
3292,
14427,
67,
9827,
29489,
6587,
273,
10138,
18,
19984,
3391,
12,
7246,
33,
2890,
18,
2821,
3292,
14427,
67,
9827,
29489,
11937,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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968,
16,
2826,
4333,
4672,
2240,
12,
15475,
3505,
4029,
1204,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
365,
18,
2821,
3292,
14427,
67,
9827,
29489,
6587,
273,
10138,
18,
19984,
3391,
12,
7246,
33,
2890,
18,
2821,
3292,
14427,
67,
9827,
29489,
11937,
262,
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
] |
|
def cdiffstat(ui, summary, patchlines): s = patch.diffstat(patchlines) if summary: ui.write(summary, '\n') ui.write(s, '\n') if ui.promptchoice(_('does the diffstat above look okay (yn)?'), (_('&Yes'), _('&No'))): raise util.Abort(_('diffstat rejected')) return s
|
def cdiffstat(ui, summary, patchlines): s = patch.diffstat(patchlines) if summary: ui.write(summary, '\n') ui.write(s, '\n') if ui.promptchoice(_('does the diffstat above look okay (yn)?'), (_('&Yes'), _('&No'))): raise util.Abort(_('diffstat rejected')) return s
|
9da6032086f09e0116442acbe6e7d1fe447e0b5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/9da6032086f09e0116442acbe6e7d1fe447e0b5e/patchbomb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
5413,
5642,
12,
4881,
16,
4916,
16,
4729,
3548,
4672,
272,
273,
4729,
18,
5413,
5642,
12,
2272,
3548,
13,
309,
4916,
30,
5915,
18,
2626,
12,
7687,
16,
2337,
82,
6134,
5915,
18,
2626,
12,
87,
16,
2337,
82,
6134,
309,
5915,
18,
13325,
11569,
24899,
2668,
20657,
326,
3122,
5642,
5721,
2324,
21194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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
5413,
5642,
12,
4881,
16,
4916,
16,
4729,
3548,
4672,
272,
273,
4729,
18,
5413,
5642,
12,
2272,
3548,
13,
309,
4916,
30,
5915,
18,
2626,
12,
7687,
16,
2337,
82,
6134,
5915,
18,
2626,
12,
87,
16,
2337,
82,
6134,
309,
5915,
18,
13325,
11569,
24899,
2668,
20657,
326,
3122,
5642,
5721,
2324,
21194,
261,
878,
13,
4899,
3631,
261,
67,
2668,
10,
22352,
19899,
389,
2668,
10,
2279,
26112,
4672,
1002,
1709,
18,
13572,
24899,
2668,
5413,
5642,
11876,
26112,
327,
272,
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
] |
|
"""Check if binary package should be upgraded
|
"""Check if a binary package should be upgraded
|
def should_upgrade_srcarch(self, src, arch, suite): """Check if binary package should be upgraded
|
644caa3f3125e8104b46e0ef2774fdb1917b2f5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2784/644caa3f3125e8104b46e0ef2774fdb1917b2f5c/britney.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
15097,
67,
4816,
991,
12,
2890,
16,
1705,
16,
6637,
16,
11371,
4672,
3536,
1564,
309,
3112,
2181,
1410,
506,
31049,
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
] |
return _("If this is not intentional, it is a bug. Please report it. If it is intentional, please get into a contact with network administrators to arrange new project entry with you own ESSID for you.")
|
return _("If this is not intentional, it is a bug. Please report it. If it is intentional, please get in contact with network administrators to arrange a new project entry with your own ESSID for you.")
|
def to_help_string(code): """ A helper method for transforming a warning code to a human readable help string.
|
d2fcb4c3cbb9c2e72ca5af1f6972909525d65735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11345/d2fcb4c3cbb9c2e72ca5af1f6972909525d65735/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
5201,
67,
1080,
12,
710,
4672,
3536,
432,
4222,
707,
364,
27734,
279,
3436,
981,
358,
279,
8672,
7471,
2809,
533,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
67,
5201,
67,
1080,
12,
710,
4672,
3536,
432,
4222,
707,
364,
27734,
279,
3436,
981,
358,
279,
8672,
7471,
2809,
533,
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
] |
f = open(TESTFN, 'w+') data = 'aabaac\x00deef\x00\x00aa\x00'
|
f = open(TESTFN, 'wb+') data = b'aabaac\x00deef\x00\x00aa\x00'
|
def test_tougher_find(self): # Do a tougher .find() test. SF bug 515943 pointed out that, in 2.2, # searching for data with embedded \0 bytes didn't work. f = open(TESTFN, 'w+')
|
3c5b3f3090b6007274572d236a3d5ae5856203ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3c5b3f3090b6007274572d236a3d5ae5856203ec/test_mmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
869,
637,
1614,
67,
4720,
12,
2890,
4672,
468,
2256,
279,
358,
637,
1614,
263,
4720,
1435,
1842,
18,
225,
21318,
7934,
1381,
24872,
8942,
25874,
596,
716,
16,
316,
576,
18,
22,
16,
468,
15300,
364,
501,
598,
7488,
521,
20,
1731,
10242,
1404,
1440,
18,
284,
273,
1696,
12,
16961,
19793,
16,
296,
91,
15,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
869,
637,
1614,
67,
4720,
12,
2890,
4672,
468,
2256,
279,
358,
637,
1614,
263,
4720,
1435,
1842,
18,
225,
21318,
7934,
1381,
24872,
8942,
25874,
596,
716,
16,
316,
576,
18,
22,
16,
468,
15300,
364,
501,
598,
7488,
521,
20,
1731,
10242,
1404,
1440,
18,
284,
273,
1696,
12,
16961,
19793,
16,
296,
91,
15,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Method: AddControl
|
def AddControl(self,ctrl): """ Method: AddControl Created: 27.04.2006, KP Description: Add a control to the toolbar """ self.ctrls.append(ctrl) self.idToTool[ctrl.GetId()] = ctrl self.sizes.append(ctrl.GetSize()[0]) #self.sizer.Add(ctrl,(self.y,self.x)) self.x+=1
|
e254d019e70ae28ba06fea2b44855a033523da03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2877/e254d019e70ae28ba06fea2b44855a033523da03/Toolbar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
3367,
12,
2890,
16,
16277,
4672,
3536,
12953,
30,
12732,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
1436,
279,
3325,
358,
326,
12748,
3536,
365,
18,
16277,
87,
18,
6923,
12,
16277,
13,
365,
18,
350,
774,
6364,
63,
16277,
18,
967,
548,
1435,
65,
273,
6414,
365,
18,
11914,
18,
6923,
12,
16277,
18,
967,
1225,
1435,
63,
20,
5717,
468,
2890,
18,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
3367,
12,
2890,
16,
16277,
4672,
3536,
12953,
30,
12732,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
1436,
279,
3325,
358,
326,
12748,
3536,
365,
18,
16277,
87,
18,
6923,
12,
16277,
13,
365,
18,
350,
774,
6364,
63,
16277,
18,
967,
548,
1435,
65,
273,
6414,
365,
18,
11914,
18,
6923,
12,
16277,
18,
967,
1225,
1435,
63,
20,
5717,
468,
2890,
18,
87,
1824,
18,
986,
12,
16277,
16,
12,
2890,
18,
93,
16,
2890,
18,
92,
3719,
365,
18,
92,
15,
33,
21,
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
] |
|
job.lock_status = None
|
def RunTask(self, job): # pylint: disable-msg=W0221 """Job executor.
|
9bdab6219839d70dcea52ad9ffa3b4b449794854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/9bdab6219839d70dcea52ad9ffa3b4b449794854/jqueue.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
2174,
12,
2890,
16,
1719,
4672,
468,
7601,
30,
4056,
17,
3576,
33,
59,
3103,
5340,
3536,
2278,
6601,
18,
2,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
2174,
12,
2890,
16,
1719,
4672,
468,
7601,
30,
4056,
17,
3576,
33,
59,
3103,
5340,
3536,
2278,
6601,
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
] |
|
if __name__ == '__main__':
|
def main(): root = 'http://10.1.1.3:8000/xcap-root' xcap_user_id = 'sip:alice@example.com' password = '123' client = XCAPClient(root, xcap_user_id, password=password)
|
def __exit__(self, exc_type, exc_value, traceback): if self.result: print self.result if exc_type is None: assert False, 'expecting exception %s' % self.klass.__name__ elif issubclass(exc_type, self.klass): for (k, v) in self.kwargs.items(): if getattr(exc_value, k, None)!=v: return False return True
|
dab938f43cc9e2d9b6c4311724fbb11ba5f93070 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3443/dab938f43cc9e2d9b6c4311724fbb11ba5f93070/test_client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8593,
972,
12,
2890,
16,
3533,
67,
723,
16,
3533,
67,
1132,
16,
10820,
4672,
309,
365,
18,
2088,
30,
1172,
365,
18,
2088,
309,
3533,
67,
723,
353,
599,
30,
1815,
1083,
16,
296,
12339,
310,
1520,
738,
87,
11,
738,
365,
18,
22626,
16186,
529,
972,
1327,
14664,
12,
10075,
67,
723,
16,
365,
18,
22626,
4672,
364,
261,
79,
16,
331,
13,
316,
365,
18,
4333,
18,
3319,
13332,
309,
3869,
12,
10075,
67,
1132,
16,
417,
16,
599,
13,
5,
33,
90,
30,
327,
1083,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8593,
972,
12,
2890,
16,
3533,
67,
723,
16,
3533,
67,
1132,
16,
10820,
4672,
309,
365,
18,
2088,
30,
1172,
365,
18,
2088,
309,
3533,
67,
723,
353,
599,
30,
1815,
1083,
16,
296,
12339,
310,
1520,
738,
87,
11,
738,
365,
18,
22626,
16186,
529,
972,
1327,
14664,
12,
10075,
67,
723,
16,
365,
18,
22626,
4672,
364,
261,
79,
16,
331,
13,
316,
365,
18,
4333,
18,
3319,
13332,
309,
3869,
12,
10075,
67,
1132,
16,
417,
16,
599,
13,
5,
33,
90,
30,
327,
1083,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._rollback(trans)
|
conn.rollback()
|
def _runInteraction(self, interaction, *args, **kw): trans = Transaction(self) try: result = interaction(trans, *args, **kw) trans.close() trans._connection.commit() return result except: self._rollback(trans) raise
|
77d242150ff3e2dffc1e2c3b9227f423cc311926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/77d242150ff3e2dffc1e2c3b9227f423cc311926/adbapi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
17419,
12,
2890,
16,
13581,
16,
380,
1968,
16,
2826,
9987,
4672,
906,
273,
5947,
12,
2890,
13,
775,
30,
563,
273,
13581,
12,
2338,
16,
380,
1968,
16,
2826,
9987,
13,
906,
18,
4412,
1435,
906,
6315,
4071,
18,
7371,
1435,
327,
563,
1335,
30,
1487,
18,
20050,
1435,
1002,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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890,
13,
775,
30,
563,
273,
13581,
12,
2338,
16,
380,
1968,
16,
2826,
9987,
13,
906,
18,
4412,
1435,
906,
6315,
4071,
18,
7371,
1435,
327,
563,
1335,
30,
1487,
18,
20050,
1435,
1002,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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(params) != 4:
|
if len(params) != 5:
|
def __init__(self, n, ranges_labels, callback): QWidget.__init__(self)
|
186eee357ab9a9a1d91f0651f6a9efcffa5aff79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/186eee357ab9a9a1d91f0651f6a9efcffa5aff79/qt_plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
16,
7322,
67,
5336,
16,
1348,
4672,
2238,
4609,
16186,
2738,
972,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
1001,
2738,
972,
12,
2890,
16,
290,
16,
7322,
67,
5336,
16,
1348,
4672,
2238,
4609,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 interpret(self, fn, args, policy=None): f = self._compile(fn, args)
|
def _compile(self, fn, args, ann=None): if ann is None: ann = [lltype_to_annotation(typeOf(x)) for x in args] if self._func is fn and self._ann == ann: return self._llvm_func else: self._llvm_func = compile_function(fn, ann) self._func = fn self._ann = ann return self._llvm_func def _skip_win(self, reason): if platform.system() == 'Windows': py.test.skip('Windows --> %s' % reason) def _skip_powerpc(self, reason): if platform.processor() == 'powerpc': py.test.skip('PowerPC --> %s' % reason) def _skip_llinterpreter(self, reason, skipLL=True, skipOO=True): pass def interpret(self, fn, args, annotation=None): f = self._compile(fn, args, annotation)
|
def interpret(self, fn, args, policy=None): f = self._compile(fn, args) res = f(*args) return res
|
a3aa3769b13a707180a2dfafe3f37a2f5592a574 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/a3aa3769b13a707180a2dfafe3f37a2f5592a574/runtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
12,
2890,
16,
2295,
16,
833,
16,
8226,
33,
7036,
4672,
309,
8226,
353,
599,
30,
8226,
273,
306,
2906,
723,
67,
869,
67,
11495,
12,
723,
951,
12,
92,
3719,
364,
619,
316,
833,
65,
309,
365,
6315,
644,
353,
2295,
471,
365,
6315,
1072,
422,
8226,
30,
327,
365,
6315,
2906,
3489,
67,
644,
469,
30,
365,
6315,
2906,
3489,
67,
644,
273,
4074,
67,
915,
12,
4293,
16,
8226,
13,
365,
6315,
644,
273,
2295,
365,
6315,
1072,
273,
8226,
327,
365,
6315,
2906,
3489,
67,
644,
225,
1652,
389,
7457,
67,
8082,
12,
2890,
16,
3971,
4672,
309,
4072,
18,
4299,
1435,
422,
296,
10399,
4278,
2395,
18,
3813,
18,
7457,
2668,
10399,
15431,
738,
87,
11,
738,
3971,
13,
225,
1652,
389,
7457,
67,
12238,
2436,
12,
2890,
16,
3971,
4672,
309,
4072,
18,
8700,
1435,
422,
296,
12238,
2436,
4278,
2395,
18,
3813,
18,
7457,
2668,
13788,
3513,
15431,
738,
87,
11,
738,
3971,
13,
225,
1652,
389,
7457,
67,
2906,
2761,
11599,
12,
2890,
16,
3971,
16,
2488,
4503,
33,
5510,
16,
2488,
25148,
33,
5510,
4672,
1342,
225,
1652,
10634,
12,
2890,
16,
2295,
16,
833,
16,
3204,
33,
7036,
4672,
284,
273,
365,
6315,
11100,
12,
4293,
16,
833,
16,
3204,
13,
400,
273,
284,
30857,
1968,
13,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11100,
12,
2890,
16,
2295,
16,
833,
16,
8226,
33,
7036,
4672,
309,
8226,
353,
599,
30,
8226,
273,
306,
2906,
723,
67,
869,
67,
11495,
12,
723,
951,
12,
92,
3719,
364,
619,
316,
833,
65,
309,
365,
6315,
644,
353,
2295,
471,
365,
6315,
1072,
422,
8226,
30,
327,
365,
6315,
2906,
3489,
67,
644,
469,
30,
365,
6315,
2906,
3489,
67,
644,
273,
4074,
67,
915,
12,
4293,
16,
8226,
13,
365,
6315,
644,
273,
2295,
365,
6315,
1072,
273,
8226,
327,
365,
6315,
2906,
3489,
67,
644,
225,
1652,
389,
7457,
67,
8082,
12,
2890,
16,
3971,
4672,
309,
4072,
18,
4299,
1435,
422,
296,
10399,
4278,
2395,
18,
3813,
18,
7457,
2668,
2
] |
self.output_cache = [CacheEntry(",".join(instruments), None, segments.segmentlist([c.segment for c in self.input_cache if c.segment is not None]).extent(), "file://localhost" + os.path.abspath(self.get_opts()["database"]))]
|
self.output_cache = [CacheEntry(",".join(instruments), None, segments.segmentlist([c.segment for c in self.input_cache if c.segment is not None]).extent(), "file://localhost" + os.path.abspath(self.get_opts()["macrodatabase"]))]
|
def get_output_cache(self): if not self.output_cache: instruments = set() for c in self.input_cache: if c.observatory is not None: instruments |= set([ins for ins in c.observatory.split(",")]) instruments = list(instruments) instruments.sort() self.output_cache = [CacheEntry(",".join(instruments), None, segments.segmentlist([c.segment for c in self.input_cache if c.segment is not None]).extent(), "file://localhost" + os.path.abspath(self.get_opts()["database"]))] return self.output_cache
|
485b68b2ae23fe707b6c1eb11cabd6b02fd18107 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/485b68b2ae23fe707b6c1eb11cabd6b02fd18107/power.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
67,
2493,
12,
2890,
4672,
309,
486,
365,
18,
2844,
67,
2493,
30,
29555,
273,
444,
1435,
364,
276,
316,
365,
18,
2630,
67,
2493,
30,
309,
276,
18,
12199,
90,
8452,
353,
486,
599,
30,
29555,
5626,
444,
3816,
2679,
364,
2763,
316,
276,
18,
12199,
90,
8452,
18,
4939,
2932,
16,
7923,
5717,
29555,
273,
666,
12,
22818,
87,
13,
29555,
18,
3804,
1435,
365,
18,
2844,
67,
2493,
273,
306,
27630,
2932,
16,
9654,
5701,
12,
22818,
87,
3631,
599,
16,
5155,
18,
9273,
1098,
3816,
71,
18,
9273,
364,
276,
316,
365,
18,
2630,
67,
2493,
309,
276,
18,
9273,
353,
486,
599,
65,
2934,
18181,
9334,
315,
768,
2207,
13014,
6,
397,
1140,
18,
803,
18,
5113,
803,
12,
2890,
18,
588,
67,
4952,
1435,
9614,
26448,
6231,
11929,
3719,
65,
327,
365,
18,
2844,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
67,
2493,
12,
2890,
4672,
309,
486,
365,
18,
2844,
67,
2493,
30,
29555,
273,
444,
1435,
364,
276,
316,
365,
18,
2630,
67,
2493,
30,
309,
276,
18,
12199,
90,
8452,
353,
486,
599,
30,
29555,
5626,
444,
3816,
2679,
364,
2763,
316,
276,
18,
12199,
90,
8452,
18,
4939,
2932,
16,
7923,
5717,
29555,
273,
666,
12,
22818,
87,
13,
29555,
18,
3804,
1435,
365,
18,
2844,
67,
2493,
273,
306,
27630,
2932,
16,
9654,
5701,
12,
22818,
87,
3631,
599,
16,
5155,
18,
9273,
1098,
3816,
71,
18,
9273,
364,
276,
316,
365,
18,
2630,
67,
2493,
309,
276,
18,
9273,
353,
486,
599,
65,
2934,
18181,
9334,
315,
768,
2207,
13014,
2
] |
print "grepping " + inname + " for " + string + " and sending it to " + outname
|
def grep(string, inname, outname, append_cache=None): o = open(outname, "w") print "grepping " + inname + " for " + string + " and sending it to " + outname expr = re.compile(string) o.write(''.join(filter(expr.search,open(inname).readlines()))) if append_cache: o.write(''.join(append_cache)) o.close()
|
0b97313a1079214d63930999cbf916815e37ccaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b97313a1079214d63930999cbf916815e37ccaf/highmass_post_process.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
12,
1080,
16,
316,
529,
16,
596,
529,
16,
714,
67,
2493,
33,
7036,
4672,
320,
273,
1696,
12,
659,
529,
16,
315,
91,
7923,
282,
3065,
273,
283,
18,
11100,
12,
1080,
13,
320,
18,
2626,
2668,
10332,
5701,
12,
2188,
12,
8638,
18,
3072,
16,
3190,
12,
267,
529,
2934,
896,
3548,
1435,
20349,
309,
714,
67,
2493,
30,
320,
18,
2626,
2668,
10332,
5701,
12,
6923,
67,
2493,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
12,
1080,
16,
316,
529,
16,
596,
529,
16,
714,
67,
2493,
33,
7036,
4672,
320,
273,
1696,
12,
659,
529,
16,
315,
91,
7923,
282,
3065,
273,
283,
18,
11100,
12,
1080,
13,
320,
18,
2626,
2668,
10332,
5701,
12,
2188,
12,
8638,
18,
3072,
16,
3190,
12,
267,
529,
2934,
896,
3548,
1435,
20349,
309,
714,
67,
2493,
30,
320,
18,
2626,
2668,
10332,
5701,
12,
6923,
67,
2493,
3719,
320,
18,
4412,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
for pto,dias,apartir,horas in horarios.parse_hor_html(html): print 'ponto: %s, dias: %s' % (pto, dias)
|
for pto,dia,apartir,horas in horarios.parse_hor_html(html): print 'ponto: %s, dias: %s' % (pto, dia)
|
def fetch_horarios(idhor, nome): c = env.db.cursor() idlinha = get_linha_hor(idhor, nome) c.execute('delete from hs, h \ using horsets hs, horarios h \ where hs.idlinha=%s and h.idset=hs.id', [idlinha]) html = horarios.get_horarios_html(idhor) for pto,dias,apartir,horas in horarios.parse_hor_html(html): print 'ponto: %s, dias: %s' % (pto, dias) idponto = get_ponto_hor(pto) d = dias.id_dias(dias) c.insert_one('horsets', idlinha=idlinha, idponto=idponto, dia=d, apartir=apartir) idset = c.lastrowid for sp,h in horas: c.insert_one('horarios', idset=idset, hora=h, special=sp) c.close()
|
8f02e80df367ccd3870110c069898969f20924da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14322/8f02e80df367ccd3870110c069898969f20924da/fetch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
76,
280,
297,
7441,
12,
350,
76,
280,
16,
290,
1742,
4672,
276,
273,
1550,
18,
1966,
18,
9216,
1435,
225,
612,
7511,
3395,
273,
336,
67,
7511,
3395,
67,
76,
280,
12,
350,
76,
280,
16,
290,
1742,
13,
225,
276,
18,
8837,
2668,
3733,
628,
12670,
16,
366,
521,
1450,
29404,
4424,
12670,
16,
29404,
297,
7441,
366,
521,
1625,
12670,
18,
350,
7511,
3395,
5095,
87,
471,
366,
18,
350,
542,
33,
4487,
18,
350,
2187,
306,
350,
7511,
3395,
5717,
225,
1729,
273,
29404,
297,
7441,
18,
588,
67,
76,
280,
297,
7441,
67,
2620,
12,
350,
76,
280,
13,
364,
293,
869,
16,
72,
1155,
16,
438,
485,
481,
16,
76,
280,
345,
316,
29404,
297,
7441,
18,
2670,
67,
76,
280,
67,
2620,
12,
2620,
4672,
1172,
296,
500,
869,
30,
738,
87,
16,
302,
1795,
30,
738,
87,
11,
738,
261,
21910,
16,
302,
1155,
13,
612,
500,
869,
273,
336,
67,
500,
869,
67,
76,
280,
12,
21910,
13,
302,
273,
302,
1795,
18,
350,
67,
72,
1795,
12,
72,
1795,
13,
276,
18,
6387,
67,
476,
2668,
76,
280,
4424,
2187,
612,
7511,
3395,
33,
350,
7511,
3395,
16,
612,
500,
869,
33,
350,
500,
869,
16,
302,
1155,
33,
72,
16,
513,
485,
481,
33,
438,
485,
481,
13,
612,
542,
273,
276,
18,
2722,
492,
350,
364,
1694,
16,
76,
316,
29404,
345,
30,
276,
18,
6387,
67,
476,
2668,
76,
280,
297,
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,
2158,
67,
76,
280,
297,
7441,
12,
350,
76,
280,
16,
290,
1742,
4672,
276,
273,
1550,
18,
1966,
18,
9216,
1435,
225,
612,
7511,
3395,
273,
336,
67,
7511,
3395,
67,
76,
280,
12,
350,
76,
280,
16,
290,
1742,
13,
225,
276,
18,
8837,
2668,
3733,
628,
12670,
16,
366,
521,
1450,
29404,
4424,
12670,
16,
29404,
297,
7441,
366,
521,
1625,
12670,
18,
350,
7511,
3395,
5095,
87,
471,
366,
18,
350,
542,
33,
4487,
18,
350,
2187,
306,
350,
7511,
3395,
5717,
225,
1729,
273,
29404,
297,
7441,
18,
588,
67,
76,
280,
297,
7441,
67,
2620,
12,
350,
76,
280,
13,
364,
293,
869,
16,
72,
1155,
16,
438,
485,
481,
16,
76,
2
] |
for mod_name, enabled in self.madcow.config.modules.__dict__.items():
|
for mod_name, enabled in self.madcow.config.modules.settings.items():
|
def load_modules(self): disabled = list(self._ignore_mods) for mod_name, enabled in self.madcow.config.modules.__dict__.items(): if not enabled: disabled.append(mod_name) log.info('reading modules from %s' % self.mod_dir) try: filenames = os.walk(self.mod_dir).next()[2] except Exception, e: log.warn("Couldn't load modules from %s: %s" % (self.mod_dir, e)) return for filename in filenames: if not self._pyext.search(filename): continue mod_name = self._pyext.sub('', filename) if mod_name in disabled: log.info('skipping %s: disabled' % mod_name) continue if self.modules.has_key(mod_name): mod = self.modules[mod_name]['mod'] try: reload(mod) log.info('reloaded module %s' % mod_name) except Exception, e: log.warn("couldn't reload %s: %s" % (mod_name, e)) del self.modules[mod_name] continue else: try: mod = __import__( '%s.%s' % (self.subdir, mod_name), globals(), locals(), [self.entry], ) except Exception, e: log.warn("couldn't load module %s: %s" % (mod_name, e)) continue self.modules[mod_name] = {'mod': mod} try: Main = getattr(mod, self.entry) obj = Main(self.madcow) except Exception, e: log.warn("failure loading %s: %s" % (mod_name, e)) del self.modules[mod_name] continue if not obj.enabled: log.info("skipped loading %s: disabled" % mod_name) del self.modules[mod_name] continue try: if obj.help: self.help.append(obj.help) else: raise Exception except: log.warn('no help for module: %s' % mod_name) self.modules[mod_name]['obj'] = obj log.info('loaded module: %s' % mod_name)
|
8539d13e78a623775fd0538a2cd2c9dbab011bd4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/8539d13e78a623775fd0538a2cd2c9dbab011bd4/madcow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
6400,
12,
2890,
4672,
5673,
273,
666,
12,
2890,
6315,
6185,
67,
22760,
13,
364,
681,
67,
529,
16,
3696,
316,
365,
18,
81,
361,
71,
543,
18,
1425,
18,
6400,
18,
4272,
18,
3319,
13332,
309,
486,
3696,
30,
5673,
18,
6923,
12,
1711,
67,
529,
13,
613,
18,
1376,
2668,
21803,
4381,
628,
738,
87,
11,
738,
365,
18,
1711,
67,
1214,
13,
775,
30,
9066,
273,
1140,
18,
11348,
12,
2890,
18,
1711,
67,
1214,
2934,
4285,
1435,
63,
22,
65,
1335,
1185,
16,
425,
30,
613,
18,
8935,
2932,
16342,
1404,
1262,
4381,
628,
738,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
1711,
67,
1214,
16,
425,
3719,
327,
364,
1544,
316,
9066,
30,
309,
486,
365,
6315,
2074,
408,
18,
3072,
12,
3459,
4672,
1324,
681,
67,
529,
273,
365,
6315,
2074,
408,
18,
1717,
2668,
2187,
1544,
13,
309,
681,
67,
529,
316,
5673,
30,
613,
18,
1376,
2668,
7457,
1382,
738,
87,
30,
5673,
11,
738,
681,
67,
529,
13,
1324,
309,
365,
18,
6400,
18,
5332,
67,
856,
12,
1711,
67,
529,
4672,
681,
273,
365,
18,
6400,
63,
1711,
67,
529,
23962,
1711,
3546,
775,
30,
7749,
12,
1711,
13,
613,
18,
1376,
2668,
266,
4230,
1605,
738,
87,
11,
738,
681,
67,
529,
13,
1335,
1185,
16,
425,
30,
613,
18,
8935,
2932,
15195,
82,
1404,
7749,
738,
87,
30,
738,
87,
6,
738,
261,
1711,
67,
529,
16,
425,
3719,
1464,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
6400,
12,
2890,
4672,
5673,
273,
666,
12,
2890,
6315,
6185,
67,
22760,
13,
364,
681,
67,
529,
16,
3696,
316,
365,
18,
81,
361,
71,
543,
18,
1425,
18,
6400,
18,
4272,
18,
3319,
13332,
309,
486,
3696,
30,
5673,
18,
6923,
12,
1711,
67,
529,
13,
613,
18,
1376,
2668,
21803,
4381,
628,
738,
87,
11,
738,
365,
18,
1711,
67,
1214,
13,
775,
30,
9066,
273,
1140,
18,
11348,
12,
2890,
18,
1711,
67,
1214,
2934,
4285,
1435,
63,
22,
65,
1335,
1185,
16,
425,
30,
613,
18,
8935,
2932,
16342,
1404,
1262,
4381,
628,
738,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
1711,
67,
1214,
16,
425,
3719,
327,
364,
2
] |
kwargs['command'] = ["./installdmg.ex", "$FILENAME"]
|
kwargs['command'] = ["expect", "installdmg.ex", "$FILENAME"]
|
def __init__(self, **kwargs): self.filename = "" self.branch = "" if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filename' in kwargs: self.filename = kwargs['filename'] if not 'command' in kwargs: kwargs['command'] = ["./installdmg.ex", "$FILENAME"] ShellCommand.__init__(self, **kwargs)
|
60a7d5b751173ba0b040535f4489dc3a629cd7be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/60a7d5b751173ba0b040535f4489dc3a629cd7be/perfrunner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
4333,
4672,
365,
18,
3459,
273,
1408,
365,
18,
7500,
273,
1408,
309,
296,
7500,
11,
316,
1205,
30,
365,
18,
7500,
273,
1205,
3292,
7500,
3546,
309,
296,
3459,
11,
316,
1205,
30,
365,
18,
3459,
273,
1205,
3292,
3459,
3546,
309,
486,
296,
3076,
11,
316,
1205,
30,
1205,
3292,
3076,
3546,
273,
8247,
12339,
3113,
315,
5425,
10956,
75,
18,
338,
3113,
4662,
16080,
11929,
19433,
2189,
16186,
2738,
972,
12,
2890,
16,
2826,
4333,
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,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1205,
3292,
7500,
3546,
309,
296,
3459,
11,
316,
1205,
30,
365,
18,
3459,
273,
1205,
3292,
3459,
3546,
309,
486,
296,
3076,
11,
316,
1205,
30,
1205,
3292,
3076,
3546,
273,
8247,
12339,
3113,
315,
5425,
10956,
75,
18,
338,
3113,
4662,
16080,
11929,
19433,
2189,
16186,
2738,
972,
12,
2890,
16,
2826,
4333,
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
] |
self.assertRaises(ValueError, time.strftime, '', (1900, 1, 1, 0, 0, 0, 0, 1, -2)) self.assertRaises(ValueError, time.strftime, '', (1900, 1, 1, 0, 0, 0, 0, 1, 2))
|
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values).
|
9dac2ebe79054c6105df7e63584c32710ab38d85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/9dac2ebe79054c6105df7e63584c32710ab38d85/test_time.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
380,
454,
14,
924,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
380,
454,
14,
924,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
\t\t\"
|
\t\t\"
|
#ifdef F2PY_REPORT_ATEXIT
|
ed916ff07cf2f1fbb6056cdc01fe3ae82a027ed5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/ed916ff07cf2f1fbb6056cdc01fe3ae82a027ed5/rules.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
478,
22,
16235,
67,
22710,
67,
1777,
60,
1285,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
478,
22,
16235,
67,
22710,
67,
1777,
60,
1285,
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
] |
if not is_unavailable_exception(e): self.fail("%s\n%s" % (e, e.headers))
|
self.fail("%s\n%s" % (e, e.headers))
|
def test_multicall(self): try: p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) multicall = xmlrpclib.MultiCall(p) multicall.add(2,3) multicall.pow(6,8) multicall.div(127,42) add_result, pow_result, div_result = multicall() self.assertEqual(add_result, 2+3) self.assertEqual(pow_result, 6**8) self.assertEqual(div_result, 127//42) except xmlrpclib.ProtocolError as e: # ignore failures due to non-blocking socket 'unavailable' errors if not is_unavailable_exception(e): # protocol error; provide additional information in test output self.fail("%s\n%s" % (e, e.headers))
|
80e909fe423bada8cfd4c5bf95f48a61f0dd2c3b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/80e909fe423bada8cfd4c5bf95f48a61f0dd2c3b/test_xmlrpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5421,
335,
454,
12,
2890,
4672,
775,
30,
293,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
2668,
2505,
2207,
13014,
5319,
72,
11,
738,
20987,
13,
1778,
335,
454,
273,
2025,
13832,
830,
495,
18,
5002,
1477,
12,
84,
13,
1778,
335,
454,
18,
1289,
12,
22,
16,
23,
13,
1778,
335,
454,
18,
23509,
12,
26,
16,
28,
13,
1778,
335,
454,
18,
2892,
12,
14260,
16,
9452,
13,
527,
67,
2088,
16,
7602,
67,
2088,
16,
3739,
67,
2088,
273,
1778,
335,
454,
1435,
365,
18,
11231,
5812,
12,
1289,
67,
2088,
16,
576,
15,
23,
13,
365,
18,
11231,
5812,
12,
23509,
67,
2088,
16,
1666,
636,
28,
13,
365,
18,
11231,
5812,
12,
2892,
67,
2088,
16,
12331,
759,
9452,
13,
1335,
2025,
13832,
830,
495,
18,
5752,
668,
487,
425,
30,
468,
2305,
11720,
6541,
358,
1661,
17,
18926,
2987,
296,
318,
5699,
11,
1334,
309,
486,
353,
67,
318,
5699,
67,
4064,
12,
73,
4672,
468,
1771,
555,
31,
5615,
3312,
1779,
316,
1842,
876,
365,
18,
6870,
27188,
87,
64,
82,
9,
87,
6,
738,
261,
73,
16,
425,
18,
2485,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5421,
335,
454,
12,
2890,
4672,
775,
30,
293,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
2668,
2505,
2207,
13014,
5319,
72,
11,
738,
20987,
13,
1778,
335,
454,
273,
2025,
13832,
830,
495,
18,
5002,
1477,
12,
84,
13,
1778,
335,
454,
18,
1289,
12,
22,
16,
23,
13,
1778,
335,
454,
18,
23509,
12,
26,
16,
28,
13,
1778,
335,
454,
18,
2892,
12,
14260,
16,
9452,
13,
527,
67,
2088,
16,
7602,
67,
2088,
16,
3739,
67,
2088,
273,
1778,
335,
454,
1435,
365,
18,
11231,
5812,
12,
1289,
67,
2088,
16,
576,
15,
23,
13,
365,
18,
11231,
5812,
12,
23509,
67,
2088,
16,
1666,
636,
28,
13,
365,
18,
11231,
2
] |
if self.model.size['x'] < 0 or \ self.model.size['y'] < 0 or \ self.model.size['x'] + self.model.size['width'] > screenSize[0] or \ self.model.size['y'] + self.model.size['height'] > screenSize[1]:
|
if self.model.size['x'] < screenSize[0] or \ self.model.size['y'] < screenSize[1] or \ self.model.size['x'] + self.model.size['width'] > screenSize[2] or \ self.model.size['y'] + self.model.size['height'] > screenSize[3]:
|
def MoveOntoScreen(self): """ Check to see if the window location is off screen and moves it onto screen. The code below is currently a place holder. It will change depending on how we handle multiple windows (e.g. tiling), multiple monitors and various error conditions, like changing monitor size and windows off the screen. """ screenSize = wxDisplaySize () """ If the window isn't on the screen, set it to the default size and position. """ if self.model.size['x'] < 0 or \ self.model.size['y'] < 0 or \ self.model.size['x'] + self.model.size['width'] > screenSize[0] or \ self.model.size['y'] + self.model.size['height'] > screenSize[1]: preferences = application.Application.app.model.preferences self.SetSize ((preferences.windowSize['width'], preferences.windowSize['height'])) self.CentreOnScreen () else: self.SetRect ((self.model.size['x'], self.model.size['y'], self.model.size['width'], self.model.size['height'])) rect = self.GetRect() self.model.size['x'] = rect.GetX() self.model.size['y'] = rect.GetY() self.model.size['width'] = rect.GetWidth() self.model.size['height'] = rect.GetHeight()
|
63eee33ceffbaf41edc0717242c99ded7fc46397 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/63eee33ceffbaf41edc0717242c99ded7fc46397/ChandlerWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9933,
51,
496,
83,
7956,
12,
2890,
4672,
3536,
2073,
358,
2621,
309,
326,
2742,
2117,
353,
3397,
5518,
471,
13934,
518,
10170,
5518,
18,
1021,
981,
5712,
353,
4551,
279,
3166,
10438,
18,
2597,
903,
2549,
8353,
603,
3661,
732,
1640,
3229,
9965,
261,
73,
18,
75,
18,
268,
4973,
3631,
3229,
22389,
471,
11191,
555,
4636,
16,
3007,
12770,
6438,
963,
471,
9965,
3397,
326,
5518,
18,
3536,
5518,
1225,
273,
7075,
4236,
1225,
1832,
3536,
971,
326,
2742,
5177,
1404,
603,
326,
5518,
16,
444,
518,
358,
326,
805,
963,
471,
1754,
18,
3536,
309,
365,
18,
2284,
18,
1467,
3292,
92,
3546,
411,
5518,
1225,
63,
20,
65,
578,
521,
365,
18,
2284,
18,
1467,
3292,
93,
3546,
411,
5518,
1225,
63,
21,
65,
578,
521,
365,
18,
2284,
18,
1467,
3292,
92,
3546,
397,
365,
18,
2284,
18,
1467,
3292,
2819,
3546,
405,
5518,
1225,
63,
22,
65,
578,
521,
365,
18,
2284,
18,
1467,
3292,
93,
3546,
397,
365,
18,
2284,
18,
1467,
3292,
4210,
3546,
405,
5518,
1225,
63,
23,
14542,
12750,
273,
2521,
18,
3208,
18,
2910,
18,
2284,
18,
23219,
365,
18,
694,
1225,
14015,
23219,
18,
5668,
1225,
3292,
2819,
17337,
12750,
18,
5668,
1225,
3292,
4210,
3546,
3719,
365,
18,
15897,
266,
1398,
7956,
1832,
469,
30,
365,
18,
694,
6120,
14015,
2890,
18,
2284,
18,
1467,
3292,
92,
17337,
365,
18,
2284,
18,
1467,
3292,
93,
17337,
365,
18,
2284,
18,
1467,
3292,
2819,
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,
9933,
51,
496,
83,
7956,
12,
2890,
4672,
3536,
2073,
358,
2621,
309,
326,
2742,
2117,
353,
3397,
5518,
471,
13934,
518,
10170,
5518,
18,
1021,
981,
5712,
353,
4551,
279,
3166,
10438,
18,
2597,
903,
2549,
8353,
603,
3661,
732,
1640,
3229,
9965,
261,
73,
18,
75,
18,
268,
4973,
3631,
3229,
22389,
471,
11191,
555,
4636,
16,
3007,
12770,
6438,
963,
471,
9965,
3397,
326,
5518,
18,
3536,
5518,
1225,
273,
7075,
4236,
1225,
1832,
3536,
971,
326,
2742,
5177,
1404,
603,
326,
5518,
16,
444,
518,
358,
326,
805,
963,
471,
1754,
18,
3536,
309,
365,
18,
2284,
18,
1467,
3292,
92,
3546,
411,
5518,
1225,
63,
20,
65,
578,
521,
365,
18,
2284,
18,
2
] |
'program section %s does not specify a command' )
|
'program section %s does not specify a command' % section)
|
def programs_from_config(self, config): programs = []
|
d14a3d40cb3f167a3fa083555965e6cf0f862625 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13620/d14a3d40cb3f167a3fa083555965e6cf0f862625/options.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25038,
67,
2080,
67,
1425,
12,
2890,
16,
642,
4672,
25038,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25038,
67,
2080,
67,
1425,
12,
2890,
16,
642,
4672,
25038,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 super(PackingIn, self).button_draft(
|
return super(PackingOut, self).button_draft(
|
def button_draft(self, cursor, user, ids, context=None): for packing in self.browse(cursor, user, ids, context=context): for move in packing.outgoing_moves: if move.state == 'cancel' and move.sale_line: self.raise_user_error(cursor, 'reset_move')
|
63d5f876a9eeaa9391de54fd29b6068044d8a8e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9306/63d5f876a9eeaa9391de54fd29b6068044d8a8e8/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
17153,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
364,
2298,
310,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
364,
3635,
316,
2298,
310,
18,
31891,
67,
81,
10829,
30,
309,
3635,
18,
2019,
422,
296,
10996,
11,
471,
3635,
18,
87,
5349,
67,
1369,
30,
365,
18,
11628,
67,
1355,
67,
1636,
12,
9216,
16,
296,
6208,
67,
8501,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3635,
316,
2298,
310,
18,
31891,
67,
81,
10829,
30,
309,
3635,
18,
2019,
422,
296,
10996,
11,
471,
3635,
18,
87,
5349,
67,
1369,
30,
365,
18,
11628,
67,
1355,
67,
1636,
12,
9216,
16,
296,
6208,
67,
8501,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: version = context.req.args['rev'] except KeyError: version = resource.version builds = Build.select(self.env, rev=version) self.log.debug("Looking for coverage report for %s@%s [%s]..." % ( resource.id, str(resource.version), version)) reports = [] for build in builds: config = BuildConfig.fetch(self.env, build.config) if not resource.id.lstrip('/').startswith(config.path.lstrip('/')): continue reports = Report.select(self.env, build=build.id, category='coverage') path_in_config = resource.id[len(config.path)+1:].lstrip('/') for report in reports: for item in report.items: if item.get('file') == path_in_config: coverage = item.get('line_hits', '').split() if coverage: self.log.debug( "Coverage annotate for %s@%s: %s" % \ (resource.id, resource.version, coverage)) return coverage
|
version = context.req.args.get('rev', resource.version) created = context.req.args.get('created', resource.version) repos = self.env.get_repository() version_time = to_timestamp(repos.get_changeset(version).date) if version != created: created_time = to_timestamp(repos.get_changeset(created).date) else: created_time = version_time self.log.debug("Looking for coverage report for %s@%s [%s:%s]..." % ( resource.id, str(resource.version), created, version)) db = self.env.get_db_cnx() cursor = db.cursor() cursor.execute(""" SELECT b.id, b.rev, i2.value FROM bitten_config AS c INNER JOIN bitten_build AS b ON c.name=b.config INNER JOIN bitten_report AS r ON b.id=r.build INNER JOIN bitten_report_item AS i1 ON r.id=i1.report INNER JOIN bitten_report_item AS i2 ON (i1.item=i2.item AND i1.report=i2.report) WHERE i2.name='line_hits' AND b.rev_time>=%s AND b.rev_time<=%s AND i1.name='file' AND """ + db.concat('c.path', "'/'", 'i1.value') + """=%s ORDER BY b.rev_time DESC LIMIT 1""" , (created_time, version_time, resource.id.lstrip('/'))) row = cursor.fetchone() if row: build_id, build_rev, line_hits = row coverage = line_hits.split() self.log.debug("Coverage annotate for %s@%s using build %d: %s", resource.id, build_rev, build_id, coverage) return coverage add_warning(context.req, "No coverage annotation found for " "/%s for revision range [%s:%s]." % ( resource.id.lstrip('/'), version, created))
|
def get_annotation_data(self, context): add_stylesheet(context.req, 'bitten/bitten_coverage.css')
|
bf903336a950917a11b05d15f1ba68282672625c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4547/bf903336a950917a11b05d15f1ba68282672625c/coverage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11495,
67,
892,
12,
2890,
16,
819,
4672,
527,
67,
19403,
12,
2472,
18,
3658,
16,
296,
3682,
2253,
19,
3682,
2253,
67,
16356,
18,
5212,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
if not data['pi_yr'] == '':
|
if data['pi_yr']:
|
def defaultFileListHandler(self, request): """ This is the default handler for getting entries. It takes the request object in and figures out which entries based on the default behavior that we want to show and generates a list of EntryBase subclass objects which it returns.
|
b0a8896393d7b257c437ce75077b8d462908b7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/b0a8896393d7b257c437ce75077b8d462908b7aa/pyblosxom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
26098,
1503,
12,
2890,
16,
590,
4672,
3536,
1220,
353,
326,
805,
1838,
364,
8742,
3222,
18,
225,
2597,
5530,
326,
590,
733,
316,
471,
4291,
1823,
596,
1492,
3222,
2511,
603,
326,
805,
6885,
716,
732,
2545,
358,
2405,
471,
6026,
279,
666,
434,
3841,
2171,
10177,
2184,
1492,
518,
1135,
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,
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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,
805,
26098,
1503,
12,
2890,
16,
590,
4672,
3536,
1220,
353,
326,
805,
1838,
364,
8742,
3222,
18,
225,
2597,
5530,
326,
590,
733,
316,
471,
4291,
1823,
596,
1492,
3222,
2511,
603,
326,
805,
6885,
716,
732,
2545,
358,
2405,
471,
6026,
279,
666,
434,
3841,
2171,
10177,
2184,
1492,
518,
1135,
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
] |
self.assert_(set(self._box.list_folders()) ==
|
self.assertEqual(set(self._box.list_folders()),
|
def test_list_folders(self): # List folders self._box.add_folder('one') self._box.add_folder('two') self._box.add_folder('three') self.assertEqual(len(self._box.list_folders()), 3) self.assert_(set(self._box.list_folders()) == set(('one', 'two', 'three')))
|
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1098,
67,
16064,
12,
2890,
4672,
468,
987,
9907,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
476,
6134,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
15415,
6134,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
451,
992,
6134,
365,
18,
11231,
5812,
12,
1897,
12,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1098,
67,
16064,
12,
2890,
4672,
468,
987,
9907,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
476,
6134,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
15415,
6134,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
451,
992,
6134,
365,
18,
11231,
5812,
12,
1897,
12,
2890,
6315,
2147,
18,
1098,
67,
16064,
1435,
3631,
890,
13,
365,
18,
11231,
5812,
12,
542,
12,
2890,
6315,
2147,
18,
1098,
67,
16064,
1435,
3631,
444,
12,
2668,
476,
2187,
296,
15415,
2187,
296,
451,
992,
11,
20349,
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
] |
self.check_sizeof(float(0), size(h + 'd'))
|
check(float(0), size(h + 'd')) check(sys.float_info, size(vh) + self.P * len(sys.float_info))
|
def method(): pass
|
c700714ccabb5f69025ec56a9f27a4d3f1c4ffa0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/c700714ccabb5f69025ec56a9f27a4d3f1c4ffa0/test_sys.py
|
[
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else:
|
else:
|
def __init__(self, base_path=None, template_path=None, script_path=None, environ=None, cwd=None, start_clear=True, ignore_paths=None, ignore_hidden=True): """ Creates an environment. ``base_path`` is used as the current working directory, and generally where changes are looked for. If not given, it will be the directory of the calling script plus ``test-output/``.
|
78ffcb4c9548b27e2cb7bf15bf7a4cc0f8cc2c1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8710/78ffcb4c9548b27e2cb7bf15bf7a4cc0f8cc2c1a/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
803,
33,
7036,
16,
1542,
67,
803,
33,
7036,
16,
2728,
67,
803,
33,
7036,
16,
5473,
33,
7036,
16,
7239,
33,
7036,
16,
787,
67,
8507,
33,
5510,
16,
2305,
67,
4481,
33,
7036,
16,
2305,
67,
6345,
33,
5510,
4672,
3536,
10210,
392,
3330,
18,
225,
12176,
1969,
67,
803,
10335,
353,
1399,
487,
326,
783,
5960,
1867,
16,
471,
19190,
1625,
3478,
854,
27321,
364,
18,
971,
486,
864,
16,
518,
903,
506,
326,
1867,
434,
326,
4440,
2728,
8737,
12176,
3813,
17,
2844,
19,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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672,
3536,
10210,
392,
3330,
18,
225,
12176,
1969,
67,
803,
10335,
353,
1399,
487,
326,
783,
5960,
1867,
16,
471,
19190,
1625,
3478,
854,
27321,
364,
18,
971,
486,
864,
16,
518,
903,
506,
326,
1867,
434,
326,
4440,
2728,
8737,
12176,
3813,
17,
2844,
19,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
retval = _fl_set_timer_filter(ob, c_filter)
|
retval = _fl_set_timer_filter(pObject, c_filter)
|
def fl_set_timer_filter(ob, py_filter): """ fl_set_timer_filter(ob, py_filter) -> timer_filter func. """ c_filter = FL_TIMER_FILTER(py_filter) _cfunc_refs[get_rand_dictkey()] = c_filter retval = _fl_set_timer_filter(ob, c_filter) return retval
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
12542,
67,
2188,
12,
947,
16,
2395,
67,
2188,
4672,
3536,
1183,
67,
542,
67,
12542,
67,
2188,
12,
947,
16,
2395,
67,
2188,
13,
317,
5441,
67,
2188,
1326,
18,
3536,
225,
276,
67,
2188,
273,
31358,
67,
56,
31582,
67,
11126,
12,
2074,
67,
2188,
13,
389,
71,
644,
67,
9316,
63,
588,
67,
7884,
67,
1576,
856,
1435,
65,
273,
276,
67,
2188,
5221,
273,
389,
2242,
67,
542,
67,
12542,
67,
2188,
12,
84,
921,
16,
276,
67,
2188,
13,
327,
5221,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
12542,
67,
2188,
12,
947,
16,
2395,
67,
2188,
4672,
3536,
1183,
67,
542,
67,
12542,
67,
2188,
12,
947,
16,
2395,
67,
2188,
13,
317,
5441,
67,
2188,
1326,
18,
3536,
225,
276,
67,
2188,
273,
31358,
67,
56,
31582,
67,
11126,
12,
2074,
67,
2188,
13,
389,
71,
644,
67,
9316,
63,
588,
67,
7884,
67,
1576,
856,
1435,
65,
273,
276,
67,
2188,
5221,
273,
389,
2242,
67,
542,
67,
12542,
67,
2188,
12,
84,
921,
16,
276,
67,
2188,
13,
327,
5221,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Not that calling any method (even inquiries) on a closed file is undefined. Implementations may raise IOError in this case.
|
Note that calling any method (even inquiries) on a closed file is undefined. Implementations may raise IOError in this case.
|
def __new__(cls, *args, **kwargs): return open(*args, **kwargs)
|
9a89e96f9f0c60d4032d888a38b6890f4e634ae6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/9a89e96f9f0c60d4032d888a38b6890f4e634ae6/io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
380,
1968,
16,
2826,
4333,
4672,
327,
1696,
30857,
1968,
16,
2826,
4333,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
380,
1968,
16,
2826,
4333,
4672,
327,
1696,
30857,
1968,
16,
2826,
4333,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
document.body[j:j] = subst
|
document.body[end:end] = subst
|
def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return j = find_token(document.body, "</cell>", i) if j == -1: document.warning("Malformed LyX document: Could not find end of tabular cell.") i += 1 continue # don't set a box for longtables, only delete tabularvalignment # the alignment is 2 lines below \\begin_inset Tabular p = document.body[i + 2].find("islongtable") if p > -1: q = document.body[i + 2].find("tabularvalignment") if q > -1: document.body[i + 2] = document.body[i + 2][:q - 1] document.body[i + 2] = document.body[i + 2] + '>' i = i + 1 continue # no longtable tabularvalignment = 'c' # which valignment is specified? m = document.body[i + 2].find('tabularvalignment="top"') if m > -1: tabularvalignment = 't' m = document.body[i + 2].find('tabularvalignment="bottom"') if m > -1: tabularvalignment = 'b' # delete tabularvalignment q = document.body[i + 2].find("tabularvalignment") if q > -1: document.body[i + 2] = document.body[i + 2][:q - 1] document.body[i + 2] = document.body[i + 2] + '>' # don't add a box when centered if tabularvalignment == 'c': i = j continue subst = ['\\end_layout', '\\end_inset'] document.body[j:j] = subst # just inserts those lines subst = ['\\begin_inset Box Frameless', 'position "' + tabularvalignment +'"', 'hor_pos "c"', 'has_inner_box 1', 'inner_pos "c"', 'use_parbox 0', # we don't know the width, assume 50% 'width "50col%"', 'special "none"', 'height "1in"', 'height_special "totalheight"', 'status open', '', '\\begin_layout Plain Layout'] document.body[i:i] = subst # this just inserts the array at i i += len(subst) + 2 # adjust i to save a few cycles
|
838adc69aa367bef9c652dece25f82ca4e2bd989 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/838adc69aa367bef9c652dece25f82ca4e2bd989/lyx_2_0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
10086,
67,
267,
542,
9483,
2490,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
525,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
6823,
3855,
2984,
16,
277,
13,
309,
525,
422,
300,
21,
30,
1668,
18,
8551,
2932,
18695,
511,
93,
60,
1668,
30,
14312,
486,
1104,
679,
434,
28342,
2484,
1199,
13,
277,
1011,
404,
1324,
468,
2727,
1404,
444,
279,
3919,
364,
1525,
9373,
16,
1338,
1430,
28342,
1125,
3515,
468,
326,
8710,
353,
576,
2362,
5712,
1736,
10086,
67,
267,
542,
9483,
2490,
293,
273,
1668,
18,
3432,
63,
77,
397,
576,
8009,
4720,
2932,
291,
5748,
2121,
7923,
309,
293,
405,
300,
21,
30,
1043,
273,
1668,
18,
3432,
63,
77,
397,
576,
8009,
4720,
2932,
7032,
2490,
1125,
3515,
7923,
309,
1043,
405,
300,
21,
30,
1668,
18,
3432,
63,
77,
397,
576,
65,
273,
1668,
18,
3432,
63,
77,
397,
576,
6362,
30,
85,
300,
404,
65,
1668,
18,
3432,
63,
77,
397,
576,
65,
273,
1668,
18,
3432,
63,
77,
397,
576,
65,
397,
7481,
277,
273,
277,
397,
404,
1324,
225,
468,
1158,
1525,
2121,
28342,
1125,
3515,
273,
296,
71,
11,
468,
1492,
1244,
3515,
353,
1269,
35,
312,
273,
1668,
18,
3432,
63,
77,
397,
576,
8009,
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,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
10086,
67,
267,
542,
9483,
2490,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
525,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
6823,
3855,
2984,
16,
277,
13,
309,
525,
422,
300,
21,
30,
1668,
18,
8551,
2932,
18695,
511,
93,
60,
1668,
30,
14312,
486,
1104,
679,
434,
28342,
2484,
1199,
13,
277,
1011,
404,
1324,
468,
2727,
1404,
444,
279,
3919,
364,
1525,
9373,
16,
1338,
1430,
28342,
1125,
3515,
468,
326,
8710,
353,
576,
2362,
5712,
2
] |
if not isinstance(inp, oofun): return np.cos(inp)
|
if not isinstance(inp, oofun): return np.sin(inp)
|
def sin(inp): if not isinstance(inp, oofun): return np.cos(inp) return oofun(np.sin, input = inp, d = lambda x: np.cos(x) if x.size == 1 else np.diag(np.cos(x)))
|
82222ded53b95e782077afb8a506a5f8b098999c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6196/82222ded53b95e782077afb8a506a5f8b098999c/overloads.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5367,
12,
31647,
4672,
309,
486,
1549,
12,
31647,
16,
320,
792,
318,
4672,
327,
1130,
18,
21861,
12,
31647,
13,
327,
320,
792,
318,
12,
6782,
18,
21861,
16,
810,
273,
12789,
16,
302,
273,
3195,
619,
30,
1130,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5367,
12,
31647,
4672,
309,
486,
1549,
12,
31647,
16,
320,
792,
318,
4672,
327,
1130,
18,
21861,
12,
31647,
13,
327,
320,
792,
318,
12,
6782,
18,
21861,
16,
810,
273,
12789,
16,
302,
273,
3195,
619,
30,
1130,
18,
14445,
12,
92,
13,
309,
619,
18,
1467,
422,
404,
469,
1130,
18,
12264,
12,
6782,
18,
14445,
12,
92,
20349,
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
] |
security.declareProtected(permissions.View,
|
security.declareProtected(CMFCorePermissions.View,
|
def toString(self): s = '%s: {' % self.__class__.__name__ for f in self.fields(): s = s + '%s,' % (f.toString()) s = s + '}' return s
|
67576cc5acaaf506c58ee3fea91da40c0a6516a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/67576cc5acaaf506c58ee3fea91da40c0a6516a2/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1762,
12,
2890,
4672,
272,
273,
1995,
87,
30,
13666,
738,
365,
16186,
1106,
972,
16186,
529,
972,
364,
284,
316,
365,
18,
2821,
13332,
272,
273,
272,
397,
1995,
87,
11189,
738,
261,
74,
18,
10492,
10756,
272,
273,
272,
397,
9571,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1762,
12,
2890,
4672,
272,
273,
1995,
87,
30,
13666,
738,
365,
16186,
1106,
972,
16186,
529,
972,
364,
284,
316,
365,
18,
2821,
13332,
272,
273,
272,
397,
1995,
87,
11189,
738,
261,
74,
18,
10492,
10756,
272,
273,
272,
397,
9571,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import thread thread.start_new_thread( self.saveConfig, ("",) )
|
self.saveConfig()
|
def on_btnSave_clicked(self): import thread thread.start_new_thread( self.saveConfig, ("",) )
|
a02305c57902605c5a446dc0fcb2d10b0d8fdba6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/765/a02305c57902605c5a446dc0fcb2d10b0d8fdba6/NextShowsConfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
11898,
4755,
67,
7475,
329,
12,
2890,
4672,
1930,
2650,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
365,
18,
5688,
809,
16,
7566,
3113,
13,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
11898,
4755,
67,
7475,
329,
12,
2890,
4672,
1930,
2650,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
365,
18,
5688,
809,
16,
7566,
3113,
13,
262,
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
] |
def unique(s): """Return a list of the elements in s, but without duplicates. For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3], unique("abcabc") some permutation of ["a", "b", "c"], and unique(([1, 2], [2, 3], [1, 2])) some permutation of [[2, 3], [1, 2]]. For best speed, all sequence elements should be hashable. Then unique() will usually work in linear time. If not possible, the sequence elements should enjoy a total ordering, and if list(s).sort() doesn't raise TypeError it's assumed that they do enjoy a total ordering. Then unique() will usually work in O(N*log2(N)) time. If that's not possible either, the sequence elements must support equality-testing. Then unique() will usually work in quadratic time. """ n = len(s) if n == 0: return [] u = {} try: for x in s: u[x] = 1 except TypeError: del u else: return u.keys() try: t = list(s) t.sort() except TypeError: del t else: assert n > 0 last = t[0] lasti = i = 1 while i < n: if t[i] != last: t[lasti] = last = t[i] lasti += 1 i += 1 return t[:lasti] u = [] for x in s: if x not in u: u.append(x) return u
|
""" Contains some utilities methods. """
|
def unique(s): """Return a list of the elements in s, but without duplicates. For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3], unique("abcabc") some permutation of ["a", "b", "c"], and unique(([1, 2], [2, 3], [1, 2])) some permutation of [[2, 3], [1, 2]]. For best speed, all sequence elements should be hashable. Then unique() will usually work in linear time. If not possible, the sequence elements should enjoy a total ordering, and if list(s).sort() doesn't raise TypeError it's assumed that they do enjoy a total ordering. Then unique() will usually work in O(N*log2(N)) time. If that's not possible either, the sequence elements must support equality-testing. Then unique() will usually work in quadratic time. """ n = len(s) if n == 0: return [] # Try using a dict first, as that's the fastest and will usually # work. If it doesn't work, it will usually fail quickly, so it # usually doesn't cost much to *try* it. It requires that all the # sequence elements be hashable, and support equality comparison. u = {} try: for x in s: u[x] = 1 except TypeError: del u # move on to the next method else: return u.keys() # We can't hash all the elements. Second fastest is to sort, # which brings the equal elements together; then duplicates are # easy to weed out in a single pass. # NOTE: Python's list.sort() was designed to be efficient in the # presence of many duplicate elements. This isn't true of all # sort functions in all languages or libraries, so this approach # is more effective in Python than it may be elsewhere. try: t = list(s) t.sort() except TypeError: del t # move on to the next method else: assert n > 0 last = t[0] lasti = i = 1 while i < n: if t[i] != last: t[lasti] = last = t[i] lasti += 1 i += 1 return t[:lasti] # Brute force is all that's left. u = [] for x in s: if x not in u: u.append(x) return u
|
d3180417ec0e8ffc754f0c3e1acb7b24ab50b87c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/d3180417ec0e8ffc754f0c3e1acb7b24ab50b87c/utilities.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3089,
12,
87,
4672,
3536,
990,
279,
666,
434,
326,
2186,
316,
272,
16,
1496,
2887,
11211,
18,
225,
2457,
3454,
16,
3089,
3816,
21,
16,
22,
16,
23,
16,
21,
16,
22,
16,
23,
5717,
353,
2690,
17440,
434,
306,
21,
16,
22,
16,
23,
6487,
3089,
2932,
18947,
18947,
7923,
2690,
17440,
434,
8247,
69,
3113,
315,
70,
3113,
315,
71,
6,
6487,
471,
3089,
12,
3816,
21,
16,
576,
6487,
306,
22,
16,
890,
6487,
306,
21,
16,
576,
22643,
2690,
17440,
434,
12167,
22,
16,
890,
6487,
306,
21,
16,
576,
65,
8009,
225,
2457,
3796,
8632,
16,
777,
3102,
2186,
1410,
506,
1651,
429,
18,
225,
9697,
3089,
1435,
903,
11234,
1440,
316,
9103,
813,
18,
225,
971,
486,
3323,
16,
326,
3102,
2186,
1410,
570,
78,
13372,
279,
2078,
9543,
16,
471,
309,
666,
12,
87,
2934,
3804,
1435,
3302,
1404,
1002,
3580,
518,
1807,
12034,
716,
2898,
741,
570,
78,
13372,
279,
2078,
9543,
18,
225,
9697,
3089,
1435,
903,
11234,
1440,
316,
531,
12,
50,
14,
1330,
22,
12,
50,
3719,
813,
18,
225,
971,
716,
1807,
486,
3323,
3344,
16,
326,
3102,
2186,
1297,
2865,
14958,
17,
3813,
310,
18,
225,
9697,
3089,
1435,
903,
11234,
1440,
316,
26146,
813,
18,
3536,
225,
290,
273,
562,
12,
87,
13,
309,
290,
422,
374,
30,
327,
5378,
225,
468,
6161,
1450,
279,
2065,
1122,
16,
487,
716,
1807,
326,
4797,
395,
471,
903,
11234,
468,
1440,
18,
225,
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,
3089,
12,
87,
4672,
3536,
990,
279,
666,
434,
326,
2186,
316,
272,
16,
1496,
2887,
11211,
18,
225,
2457,
3454,
16,
3089,
3816,
21,
16,
22,
16,
23,
16,
21,
16,
22,
16,
23,
5717,
353,
2690,
17440,
434,
306,
21,
16,
22,
16,
23,
6487,
3089,
2932,
18947,
18947,
7923,
2690,
17440,
434,
8247,
69,
3113,
315,
70,
3113,
315,
71,
6,
6487,
471,
3089,
12,
3816,
21,
16,
576,
6487,
306,
22,
16,
890,
6487,
306,
21,
16,
576,
22643,
2690,
17440,
434,
12167,
22,
16,
890,
6487,
306,
21,
16,
576,
65,
8009,
225,
2457,
3796,
8632,
16,
777,
3102,
2186,
1410,
506,
1651,
429,
18,
225,
9697,
3089,
1435,
903,
11234,
1440,
316,
2
] |
return [(u, self.decode(father+id)+' : '+(father+id))]
|
return [(u, "".join([self.decode(s), ": ", s]))]
|
def _generate_edges(self, tree, father='', id=''): if father=='': u = 'root' else: u = father try: return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else [])
|
1b9c6cbddf459d54e7643b46fc74830b6a3ea80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b9c6cbddf459d54e7643b46fc74830b6a3ea80c/huffman.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
284,
4806,
775,
30,
327,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
20,
6487,
284,
4806,
33,
74,
4806,
15,
350,
16,
612,
2218,
20,
6134,
397,
521,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
21,
6487,
284,
4806,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
284,
4806,
775,
30,
327,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
20,
6487,
284,
4806,
33,
74,
4806,
15,
350,
16,
612,
2218,
20,
6134,
397,
521,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
21,
6487,
284,
4806,
33,
74,
4806,
15,
350,
16,
612,
2218,
21,
6134,
397,
521,
23265,
12,
89,
16,
284,
4806,
15,
350,
25887,
309,
261,
74,
4806,
15,
350,
13,
480,
875,
469,
5378,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cursize = os.stat(local)[6]
|
def _downloadPackageList(self, polist, relpkgdir): """Cycle through the list of package objects and download them from their respective repos."""
|
33a28f0c0a787e0f78682d9326508316c781bbc7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/33a28f0c0a787e0f78682d9326508316c781bbc7/gather.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7813,
2261,
682,
12,
2890,
16,
2952,
376,
16,
1279,
10657,
1214,
4672,
3536,
13279,
3059,
326,
666,
434,
2181,
2184,
471,
4224,
2182,
628,
3675,
17613,
13686,
12123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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7813,
2261,
682,
12,
2890,
16,
2952,
376,
16,
1279,
10657,
1214,
4672,
3536,
13279,
3059,
326,
666,
434,
2181,
2184,
471,
4224,
2182,
628,
3675,
17613,
13686,
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
] |
|
source = os.path.abspath('..')
|
source = os.path.abspath('.')
|
def main(prefix): python = sys.executable source = os.path.abspath('..') zine_source = join(source, 'zine') lib_dir = join(prefix, 'lib', 'zine') share_dir = join(prefix, 'share', 'zine') print 'Installing to ' + prefix print 'Using ' + python # create some folders for us silent(os.makedirs, join(lib_dir, 'zine')) silent(os.makedirs, share_dir) # copy the packages and modules into the zine package copy_folder(zine_source, join(lib_dir, 'zine'), recurse=False) for package in packages: copy_folder(join(zine_source, package), join(lib_dir, 'zine', package)) # copy the plugins over copy_folder(join(zine_source, 'plugins'), join(lib_dir, 'plugins')) # compile all files run([sys.executable, '-O', '-mcompileall', '-qf', join(lib_dir, 'zine'), join(lib_dir, 'plugins')]) # templates and shared data copy_folder(join(zine_source, 'shared'), join(share_dir, 'htdocs')) copy_folder(join(zine_source, 'templates'), join(share_dir, 'templates')) # copy the server files copy_servers(join(source, 'servers'), join(share_dir, 'servers'), lib_dir, python) # copy the scripts copy_scripts(join(source, 'scripts'), join(share_dir, 'scripts'), lib_dir) print 'All done.'
|
15dcf4124084c6287728e9693e19e179e4457b16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/15dcf4124084c6287728e9693e19e179e4457b16/_install-posix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3239,
4672,
5790,
273,
2589,
18,
17751,
1084,
273,
1140,
18,
803,
18,
5113,
803,
2668,
1093,
13,
998,
558,
67,
3168,
273,
1233,
12,
3168,
16,
296,
94,
558,
6134,
2561,
67,
1214,
273,
1233,
12,
3239,
16,
296,
2941,
2187,
296,
94,
558,
6134,
7433,
67,
1214,
273,
1233,
12,
3239,
16,
296,
14419,
2187,
296,
94,
558,
6134,
225,
1172,
296,
6410,
310,
358,
296,
397,
1633,
1172,
296,
7736,
296,
397,
5790,
225,
468,
752,
2690,
9907,
364,
584,
10404,
12,
538,
18,
81,
9477,
10539,
16,
1233,
12,
2941,
67,
1214,
16,
296,
94,
558,
26112,
10404,
12,
538,
18,
81,
9477,
10539,
16,
7433,
67,
1214,
13,
225,
468,
1610,
326,
5907,
471,
4381,
1368,
326,
998,
558,
2181,
1610,
67,
5609,
12,
94,
558,
67,
3168,
16,
1233,
12,
2941,
67,
1214,
16,
296,
94,
558,
19899,
11502,
33,
8381,
13,
364,
2181,
316,
5907,
30,
1610,
67,
5609,
12,
5701,
12,
94,
558,
67,
3168,
16,
2181,
3631,
1233,
12,
2941,
67,
1214,
16,
296,
94,
558,
2187,
2181,
3719,
225,
468,
1610,
326,
4799,
1879,
1610,
67,
5609,
12,
5701,
12,
94,
558,
67,
3168,
16,
296,
8057,
19899,
1233,
12,
2941,
67,
1214,
16,
296,
8057,
26112,
225,
468,
4074,
777,
1390,
1086,
3816,
9499,
18,
17751,
16,
2400,
51,
2187,
2400,
81,
11100,
454,
2187,
2400,
85,
74,
2187,
1233,
12,
2941,
67,
1214,
16,
296,
94,
558,
19899,
1233,
12,
2941,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3239,
4672,
5790,
273,
2589,
18,
17751,
1084,
273,
1140,
18,
803,
18,
5113,
803,
2668,
1093,
13,
998,
558,
67,
3168,
273,
1233,
12,
3168,
16,
296,
94,
558,
6134,
2561,
67,
1214,
273,
1233,
12,
3239,
16,
296,
2941,
2187,
296,
94,
558,
6134,
7433,
67,
1214,
273,
1233,
12,
3239,
16,
296,
14419,
2187,
296,
94,
558,
6134,
225,
1172,
296,
6410,
310,
358,
296,
397,
1633,
1172,
296,
7736,
296,
397,
5790,
225,
468,
752,
2690,
9907,
364,
584,
10404,
12,
538,
18,
81,
9477,
10539,
16,
1233,
12,
2941,
67,
1214,
16,
296,
94,
558,
26112,
10404,
12,
538,
18,
81,
9477,
10539,
16,
7433,
67,
1214,
13,
225,
468,
1610,
2
] |
l_hande.write(l_option + ' = ' + l_string + os.linesep)
|
l_handle.write(l_option + ' = ' + l_string + os.linesep)
|
def __save_configuration ( self, p_level, p_filename ):
|
8dcaac8444043e7b7d0f33eb81492d298a4da71d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2506/8dcaac8444043e7b7d0f33eb81492d298a4da71d/configuration.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
67,
7025,
261,
365,
16,
293,
67,
2815,
16,
293,
67,
3459,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
67,
7025,
261,
365,
16,
293,
67,
2815,
16,
293,
67,
3459,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
f.write("plot '%s' using 1:%d title \"%s\" with lines lt 2,\\\n"%(self.traceFile,col,title)) f.write(" '%s' using 1:%d:(0.5) smooth acsplines title \"%s\" lt 3\n"%(self.traceFile,col,title))
|
f.write("plot '%s' using 1:%d title \"Data Points\" with lines lt 2,\\\n"%(self.traceFile,col)) f.write(" '%s' using 1:%d:(0.5) smooth acsplines title \"Average\" lt 3\n"%(self.traceFile,col))
|
def genPlot(self): """Generates GNUplot plotfile, then calls self.runGNUplot. """ col = self.plotCB.currentItem() + 2 # Column number to plot
|
34aa6119157abba76d5241a828c9e61803550708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/34aa6119157abba76d5241a828c9e61803550708/PlotTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
11532,
12,
2890,
4672,
3536,
6653,
611,
50,
57,
4032,
3207,
768,
16,
1508,
4097,
365,
18,
2681,
8318,
57,
4032,
18,
3536,
645,
273,
365,
18,
4032,
8876,
18,
2972,
1180,
1435,
397,
576,
468,
4753,
1300,
358,
3207,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
11532,
12,
2890,
4672,
3536,
6653,
611,
50,
57,
4032,
3207,
768,
16,
1508,
4097,
365,
18,
2681,
8318,
57,
4032,
18,
3536,
645,
273,
365,
18,
4032,
8876,
18,
2972,
1180,
1435,
397,
576,
468,
4753,
1300,
358,
3207,
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
] |
print cmd
|
def runCmd(cmd): if os.name == 'nt': cmd = cmd.replace('"', '') print cmd os.system(cmd) else: print cmd os.system(cmd)
|
dd3f9d5d0f57c81544f60d926ee6273ad1ba4a48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13711/dd3f9d5d0f57c81544f60d926ee6273ad1ba4a48/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5931,
12,
4172,
4672,
309,
1140,
18,
529,
422,
296,
496,
4278,
1797,
273,
1797,
18,
2079,
22076,
2187,
28707,
1140,
18,
4299,
12,
4172,
13,
469,
30,
1140,
18,
4299,
12,
4172,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5931,
12,
4172,
4672,
309,
1140,
18,
529,
422,
296,
496,
4278,
1797,
273,
1797,
18,
2079,
22076,
2187,
28707,
1140,
18,
4299,
12,
4172,
13,
469,
30,
1140,
18,
4299,
12,
4172,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
glRotatef(self.lasty - self.y, 1.0, 0.0, 0.0); glRotatef(self.lastx - self.x, 0.0, 1.0, 0.0);
|
glRotatef((self.lasty - self.y)/100., 1.0, 0.0, 0.0); glRotatef((self.lastx - self.x)/100., 0.0, 1.0, 0.0);
|
def OnDraw(self): # clear color and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
d58a80fae0ea22e2012b17953b6d9deb37f4660b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d58a80fae0ea22e2012b17953b6d9deb37f4660b/wxGLCanvas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6493,
12,
2890,
4672,
468,
2424,
2036,
471,
3598,
9664,
5118,
9094,
12,
11261,
67,
10989,
67,
11302,
67,
15650,
571,
10252,
67,
27479,
67,
11302,
67,
15650,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6493,
12,
2890,
4672,
468,
2424,
2036,
471,
3598,
9664,
5118,
9094,
12,
11261,
67,
10989,
67,
11302,
67,
15650,
571,
10252,
67,
27479,
67,
11302,
67,
15650,
1769,
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
] |
chooser.set_current_folder(os.path.dirname(self.quiz_file_path))
|
chooser.set_current_folder( os.path.abspath(os.path.dirname(self.quiz_file_path)))
|
def on_open1_activate(self, widget): "Creates an Open-File-Dialog, which selects a new Quiz" chooser = gtk.FileChooserDialog("Open Quiz", None, gtk.FILE_CHOOSER_ACTION_OPEN, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) chooser.set_current_folder(os.path.dirname(self.quiz_file_path)) response = chooser.run() if response == gtk.RESPONSE_OK: self.quiz_filer_list = [Quiz_Filer(chooser.get_filename())] self.switch_quiz(self.quiz_filer_list[0]) chooser.destroy()
|
7f1b8be4829ef0e83b0fa177ff949055ed059c94 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2313/7f1b8be4829ef0e83b0fa177ff949055ed059c94/quizdrill.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3190,
21,
67,
10014,
12,
2890,
16,
3604,
4672,
315,
2729,
392,
3502,
17,
812,
17,
6353,
16,
1492,
19770,
279,
394,
4783,
452,
6,
5011,
13164,
273,
22718,
18,
812,
17324,
6353,
2932,
3678,
4783,
452,
3113,
599,
16,
22718,
18,
3776,
67,
22213,
51,
2123,
67,
12249,
67,
11437,
16,
261,
4521,
79,
18,
31487,
3507,
67,
25268,
16,
22718,
18,
14508,
67,
25268,
16,
4521,
79,
18,
31487,
3507,
67,
11437,
16,
4521,
79,
18,
14508,
67,
3141,
3719,
5011,
13164,
18,
542,
67,
2972,
67,
5609,
12,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
12287,
12,
2890,
18,
18345,
67,
768,
67,
803,
20349,
766,
273,
5011,
13164,
18,
2681,
1435,
309,
766,
422,
22718,
18,
14508,
67,
3141,
30,
365,
18,
18345,
67,
11894,
67,
1098,
273,
306,
928,
452,
67,
42,
2895,
12,
2599,
13164,
18,
588,
67,
3459,
10756,
65,
365,
18,
9610,
67,
18345,
12,
2890,
18,
18345,
67,
11894,
67,
1098,
63,
20,
5717,
5011,
13164,
18,
11662,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3190,
21,
67,
10014,
12,
2890,
16,
3604,
4672,
315,
2729,
392,
3502,
17,
812,
17,
6353,
16,
1492,
19770,
279,
394,
4783,
452,
6,
5011,
13164,
273,
22718,
18,
812,
17324,
6353,
2932,
3678,
4783,
452,
3113,
599,
16,
22718,
18,
3776,
67,
22213,
51,
2123,
67,
12249,
67,
11437,
16,
261,
4521,
79,
18,
31487,
3507,
67,
25268,
16,
22718,
18,
14508,
67,
25268,
16,
4521,
79,
18,
31487,
3507,
67,
11437,
16,
4521,
79,
18,
14508,
67,
3141,
3719,
5011,
13164,
18,
542,
67,
2972,
67,
5609,
12,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
12287,
12,
2890,
18,
18345,
67,
768,
67,
803,
20349,
766,
273,
5011,
13164,
2
] |
headString = "%s %s" % (headString,field.ljust(fieldWidths[field]+5))
|
headString = "%s %s" % ( headString, field.ljust( fieldWidths[field] + 5 ) )
|
def _printFormattedDictList(self,dictList,fields,uniqueField,orderBy): """ Will print ordered the supplied field of a list of dictionaries """ orderDict = {} fieldWidths = {} dictFields = {} for dict in dictList: for field in fields: fieldValue = dict[field] if not fieldWidths.has_key(field): fieldWidths[field] = len(str(field)) if len(str(fieldValue)) > fieldWidths[field]: fieldWidths[field] = len(str(fieldValue)) orderValue = dict[orderBy] if not orderDict.has_key(orderValue): orderDict[orderValue] = [] orderDict[orderValue].append(dict[uniqueField]) dictFields[dict[uniqueField]] = dict headString = "%s" % fields[0].ljust(fieldWidths[fields[0]]+5) for field in fields[1:]: headString = "%s %s" % (headString,field.ljust(fieldWidths[field]+5)) print headString for orderValue in sortList(orderDict.keys()): uniqueFields = orderDict[orderValue] for uniqueField in sortList(uniqueFields): dict = dictFields[uniqueField] outStr = "%s" % str(dict[fields[0]]).ljust(fieldWidths[fields[0]]+5) for field in fields[1:]: outStr = "%s %s" % (outStr,str(dict[field]).ljust(fieldWidths[field]+5)) print outStr
|
c249e4a99cd4c3c7637f79674add9f0aa1a56bea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c249e4a99cd4c3c7637f79674add9f0aa1a56bea/API.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
18298,
5014,
682,
12,
2890,
16,
1576,
682,
16,
2821,
16,
6270,
974,
16,
26323,
4672,
3536,
9980,
1172,
5901,
326,
4580,
652,
434,
279,
666,
434,
16176,
3536,
1353,
5014,
273,
2618,
652,
22407,
273,
2618,
2065,
2314,
273,
2618,
364,
2065,
316,
2065,
682,
30,
364,
652,
316,
1466,
30,
10729,
273,
2065,
63,
1518,
65,
309,
486,
652,
22407,
18,
5332,
67,
856,
12,
1518,
4672,
652,
22407,
63,
1518,
65,
273,
562,
12,
701,
12,
1518,
3719,
309,
562,
12,
701,
12,
1518,
620,
3719,
405,
652,
22407,
63,
1518,
14542,
652,
22407,
63,
1518,
65,
273,
562,
12,
701,
12,
1518,
620,
3719,
1353,
620,
273,
2065,
63,
26323,
65,
309,
486,
1353,
5014,
18,
5332,
67,
856,
12,
1019,
620,
4672,
1353,
5014,
63,
1019,
620,
65,
273,
5378,
1353,
5014,
63,
1019,
620,
8009,
6923,
12,
1576,
63,
6270,
974,
5717,
2065,
2314,
63,
1576,
63,
6270,
974,
13563,
273,
2065,
910,
780,
273,
2213,
87,
6,
738,
1466,
63,
20,
8009,
80,
3732,
12,
1518,
22407,
63,
2821,
63,
20,
65,
3737,
25,
13,
364,
652,
316,
1466,
63,
21,
30,
14542,
910,
780,
273,
2213,
87,
738,
87,
6,
738,
261,
910,
780,
16,
652,
18,
80,
3732,
12,
652,
22407,
63,
1518,
65,
397,
1381,
262,
262,
1172,
910,
780,
364,
1353,
620,
316,
1524,
682,
12,
1019,
5014,
18,
2452,
1435,
4672,
3089,
2314,
273,
1353,
5014,
63,
1019,
620,
65,
364,
3089,
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,
1188,
18298,
5014,
682,
12,
2890,
16,
1576,
682,
16,
2821,
16,
6270,
974,
16,
26323,
4672,
3536,
9980,
1172,
5901,
326,
4580,
652,
434,
279,
666,
434,
16176,
3536,
1353,
5014,
273,
2618,
652,
22407,
273,
2618,
2065,
2314,
273,
2618,
364,
2065,
316,
2065,
682,
30,
364,
652,
316,
1466,
30,
10729,
273,
2065,
63,
1518,
65,
309,
486,
652,
22407,
18,
5332,
67,
856,
12,
1518,
4672,
652,
22407,
63,
1518,
65,
273,
562,
12,
701,
12,
1518,
3719,
309,
562,
12,
701,
12,
1518,
620,
3719,
405,
652,
22407,
63,
1518,
14542,
652,
22407,
63,
1518,
65,
273,
562,
12,
701,
12,
1518,
620,
3719,
1353,
620,
273,
2065,
63,
26323,
65,
309,
2
] |
- list: the lines of the article's body""" return self.artcmd('BODY ' + id)
|
- list: the lines of the article's body or an empty list if fileHandle was used""" return self.artcmd('BODY ' + id, fileHandle)
|
def body(self, id): """Process a BODY command. Argument: - id: article number or message id Returns: - resp: server response if successful - nr: article number - id: message id - list: the lines of the article's body"""
|
d1d584f4e820dc893175cdde74b901b6808ed3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d1d584f4e820dc893175cdde74b901b6808ed3ab/nntplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
12,
2890,
16,
612,
4672,
3536,
2227,
279,
30580,
1296,
18,
225,
5067,
30,
300,
612,
30,
7559,
1300,
578,
883,
612,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
9884,
30,
7559,
1300,
300,
612,
30,
883,
612,
300,
666,
30,
326,
2362,
434,
326,
7559,
1807,
1417,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
12,
2890,
16,
612,
4672,
3536,
2227,
279,
30580,
1296,
18,
225,
5067,
30,
300,
612,
30,
7559,
1300,
578,
883,
612,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
9884,
30,
7559,
1300,
300,
612,
30,
883,
612,
300,
666,
30,
326,
2362,
434,
326,
7559,
1807,
1417,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
master_dict['desc'] = {'Partner Name': _to_unicode(self, part.name), 'Partner Code': str(part.ref or '') , \ 'Type:': type, 'Partner Address': _to_unicode(self, address), 'Turnover of partner:':str(res[part.id]), \ 'Main company': str(part.parent_id and part.parent_id.name), 'Credit Limit': str(part.credit_limit or ''), \ 'Number of customer invoice': str(number_customer or 0 ), 'Number of supplier invoice': str(number_supplier or 0) ,\ 'Total Receivable': str(part.credit), 'Total Payable': str(part.debit or ''), 'Website': str(part.website or '')}
|
master_dict['desc'] = {' Partner Name ': _to_unicode(self, part.name), ' Partner Code ': str(part.ref or '') , \ ' Type: ': type, ' Partner Address ': _to_unicode(self, address), ' Turnover of partner: ':str(res[part.id]), \ ' Main company ': str(part.parent_id and part.parent_id.name), ' Credit Limit ': str(part.credit_limit or ''), \ ' Number of customer invoice ': str(number_customer or 0 ), ' Number of supplier invoice ': str(number_supplier or 0) ,\ ' Total Receivable ': str(part.credit), ' Total Payable ': str(part.debit or ''), ' Website ': str(part.website or '')}
|
def get_kml(self, cr, uid, context={}): res = {} res_inv = {} res_cus = {} address = ' ' coordinates = [] addresslist = [] country_list = [] coordinates_text = ' ' number_customer=0 number_supplier=0 colors = ['9f8080ff', '9f0000ff'] partner_obj = self.pool.get('res.partner') address_obj= self.pool.get('res.partner.address') partner_ids = partner_obj.search(cr, uid, []) partners = partner_obj.browse(cr, uid, partner_ids) for part in partners: if part.address and part.address[0].country_id and part.address[0].country_id.name: if not string.upper(part.address[0].country_id.name) in country_list: cntry = string.upper(str(part.address[0].country_id.name)) country_name = '' for char in cntry: if char == '&': country_name += 'AND' else: country_name += char country_list.append(country_name) map(lambda x:res.setdefault(x, 0.0), country_list) cr.execute("select sum(l.debit-l.credit), c.name from account_move_line l, res_country c, res_partner_address a, account_account act where l.partner_id = a.partner_id and c.id=a.country_id and l.account_id = act.id and act.type = 'receivable' group by c.name") res_partner = cr.fetchall() list_to = [] for part in res_partner: if part[1]: res[string.upper(part[1])] = part[0] list_to.append(part[0])
|
643b7880e24c7e5a791a8f6c87c9a96d0be006c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/643b7880e24c7e5a791a8f6c87c9a96d0be006c8/google_earth.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
79,
781,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
400,
273,
2618,
400,
67,
5768,
273,
2618,
400,
67,
71,
407,
273,
2618,
1758,
273,
296,
296,
5513,
273,
5378,
1758,
1098,
273,
5378,
5251,
67,
1098,
273,
5378,
5513,
67,
955,
273,
296,
296,
1300,
67,
10061,
33,
20,
1300,
67,
2859,
5742,
33,
20,
5740,
273,
10228,
29,
74,
3672,
3672,
1403,
2187,
296,
29,
74,
2787,
1403,
3546,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
6134,
1758,
67,
2603,
33,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
18,
2867,
6134,
19170,
67,
2232,
273,
19170,
67,
2603,
18,
3072,
12,
3353,
16,
4555,
16,
5378,
13,
1087,
9646,
273,
19170,
67,
2603,
18,
25731,
12,
3353,
16,
4555,
16,
19170,
67,
2232,
13,
364,
1087,
316,
1087,
9646,
30,
309,
1087,
18,
2867,
471,
1087,
18,
2867,
63,
20,
8009,
9082,
67,
350,
471,
1087,
18,
2867,
63,
20,
8009,
9082,
67,
350,
18,
529,
30,
309,
486,
533,
18,
5797,
12,
2680,
18,
2867,
63,
20,
8009,
9082,
67,
350,
18,
529,
13,
316,
5251,
67,
1098,
30,
6227,
698,
273,
533,
18,
5797,
12,
701,
12,
2680,
18,
2867,
63,
20,
8009,
9082,
67,
350,
18,
529,
3719,
5251,
67,
529,
273,
875,
364,
1149,
316,
6227,
698,
30,
309,
1149,
422,
5183,
4278,
5251,
67,
529,
1011,
296,
4307,
11,
469,
30,
5251,
67,
529,
1011,
1149,
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,
79,
781,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
400,
273,
2618,
400,
67,
5768,
273,
2618,
400,
67,
71,
407,
273,
2618,
1758,
273,
296,
296,
5513,
273,
5378,
1758,
1098,
273,
5378,
5251,
67,
1098,
273,
5378,
5513,
67,
955,
273,
296,
296,
1300,
67,
10061,
33,
20,
1300,
67,
2859,
5742,
33,
20,
5740,
273,
10228,
29,
74,
3672,
3672,
1403,
2187,
296,
29,
74,
2787,
1403,
3546,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
6134,
1758,
67,
2603,
33,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
18,
2867,
6134,
19170,
67,
2232,
273,
19170,
67,
2603,
18,
3072,
12,
3353,
16,
2
] |
id = u"note_tree_area_holder",
|
H4( u"recent notes", id = u"recent_notes_area_title", ), self.make_tree( [ self.make_item( title = note.title, link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ), link_class = u"note_tree_link", has_children = False, ) for note in []], ), id = u"recent_notes_area_holder",
|
def __init__( self, toolbar, notebook, root_notes, total_notes_count ): Div.__init__( self, toolbar, Div( H4( u"notes", Span( Span( total_notes_count, id = u"total_notes_count" ), u"total", class_ = u"small_text link_area_item", ), id = u"note_tree_area_title", ), self.make_tree( [ self.make_item( title = note.title, link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ), link_class = u"note_tree_link", has_children = ( notebook.name != u"trash" ) and self.LINK_PATTERN.search( note.contents ) or False, root_note_id = note.object_id, ) for note in root_notes ], tree_id = "note_tree_root_table", ), id = u"note_tree_area_holder", ), Span( id = "tree_arrow_hover_preload" ), Span( id = "tree_arrow_down_preload" ), Span( id = "tree_arrow_down_hover_preload" ), id = u"note_tree_area", )
|
efd9755547e875a16e39829232b997edd0c59ddc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/efd9755547e875a16e39829232b997edd0c59ddc/Note_tree_area.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
12748,
16,
14718,
16,
1365,
67,
12903,
16,
2078,
67,
12903,
67,
1883,
262,
30,
21411,
16186,
2738,
972,
12,
365,
16,
12748,
16,
21411,
12,
670,
24,
12,
582,
6,
12903,
3113,
12129,
12,
12129,
12,
2078,
67,
12903,
67,
1883,
16,
612,
273,
582,
6,
4963,
67,
12903,
67,
1883,
6,
262,
16,
582,
6,
4963,
3113,
667,
67,
273,
582,
6,
12019,
67,
955,
1692,
67,
5036,
67,
1726,
3113,
262,
16,
612,
273,
582,
6,
7652,
67,
3413,
67,
5036,
67,
2649,
3113,
262,
16,
365,
18,
6540,
67,
3413,
12,
306,
365,
18,
6540,
67,
1726,
12,
2077,
273,
4721,
18,
2649,
16,
1692,
67,
4350,
273,
582,
11,
7547,
1546,
19,
7652,
12567,
5258,
87,
35,
7652,
67,
350,
5095,
87,
5187,
738,
261,
14718,
18,
1612,
67,
350,
16,
4721,
18,
1612,
67,
350,
262,
16,
1692,
67,
1106,
273,
582,
6,
7652,
67,
3413,
67,
1232,
3113,
711,
67,
5906,
273,
261,
14718,
18,
529,
480,
582,
6,
28665,
6,
262,
471,
365,
18,
10554,
67,
10831,
18,
3072,
12,
4721,
18,
3980,
262,
578,
1083,
16,
1365,
67,
7652,
67,
350,
273,
4721,
18,
1612,
67,
350,
16,
262,
364,
4721,
316,
1365,
67,
12903,
308,
16,
2151,
67,
350,
273,
315,
7652,
67,
3413,
67,
3085,
67,
2121,
3113,
262,
16,
670,
24,
12,
582,
6,
20872,
10913,
3113,
612,
273,
582,
6,
20872,
67,
12903,
67,
5036,
67,
2649,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
12748,
16,
14718,
16,
1365,
67,
12903,
16,
2078,
67,
12903,
67,
1883,
262,
30,
21411,
16186,
2738,
972,
12,
365,
16,
12748,
16,
21411,
12,
670,
24,
12,
582,
6,
12903,
3113,
12129,
12,
12129,
12,
2078,
67,
12903,
67,
1883,
16,
612,
273,
582,
6,
4963,
67,
12903,
67,
1883,
6,
262,
16,
582,
6,
4963,
3113,
667,
67,
273,
582,
6,
12019,
67,
955,
1692,
67,
5036,
67,
1726,
3113,
262,
16,
612,
273,
582,
6,
7652,
67,
3413,
67,
5036,
67,
2649,
3113,
262,
16,
365,
18,
6540,
67,
3413,
12,
306,
365,
18,
6540,
67,
1726,
12,
2077,
273,
4721,
18,
2649,
16,
1692,
67,
4350,
273,
2
] |
self.panimated = fl_create_animated_cursor(curs, 200)
|
self.create_other_cursors()
|
def __init__(self, lsysargv, sysarg):
|
18855aab7d765a934a842ac49275fb43c77d4d61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2429/18855aab7d765a934a842ac49275fb43c77d4d61/cursor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7180,
1900,
19485,
16,
2589,
3175,
4672,
2,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7180,
1900,
19485,
16,
2589,
3175,
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
] |
'</html></body></div></pre>')
|
'</html></body></pre>')
|
def test_forbidden_formatting_tags(self): """htmlutils - washing of tags altering formatting of a page (e.g. </html>)""" test_str = """</html></body></div></pre>""" self.assertEqual(self.washer.wash(html_buffer=test_str), '') self.assertEqual(self.washer.wash(html_buffer=test_str, render_unallowed_tags=True), '</html></body></div></pre>')
|
48af0b1ff9eceb0badb04af7fb0377d4a32fe7fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/48af0b1ff9eceb0badb04af7fb0377d4a32fe7fb/htmlutils_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
9215,
67,
2139,
1787,
67,
4156,
12,
2890,
4672,
3536,
2620,
5471,
300,
341,
961,
310,
434,
2342,
10182,
310,
10407,
434,
279,
1363,
261,
73,
18,
75,
18,
7765,
2620,
34,
15574,
1842,
67,
701,
273,
3536,
1757,
2620,
4695,
3432,
4695,
2892,
4695,
1484,
2984,
3660,
365,
18,
11231,
5812,
12,
2890,
18,
91,
961,
264,
18,
91,
961,
12,
2620,
67,
4106,
33,
3813,
67,
701,
3631,
28707,
365,
18,
11231,
5812,
12,
2890,
18,
91,
961,
264,
18,
91,
961,
12,
2620,
67,
4106,
33,
3813,
67,
701,
16,
1743,
67,
318,
8151,
67,
4156,
33,
5510,
3631,
5183,
5618,
31,
19,
2620,
10,
4521,
23480,
5618,
31,
19,
3432,
10,
4521,
23480,
5618,
31,
19,
2892,
10,
4521,
23480,
5618,
31,
19,
1484,
10,
4521,
4359,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
9215,
67,
2139,
1787,
67,
4156,
12,
2890,
4672,
3536,
2620,
5471,
300,
341,
961,
310,
434,
2342,
10182,
310,
10407,
434,
279,
1363,
261,
73,
18,
75,
18,
7765,
2620,
34,
15574,
1842,
67,
701,
273,
3536,
1757,
2620,
4695,
3432,
4695,
2892,
4695,
1484,
2984,
3660,
365,
18,
11231,
5812,
12,
2890,
18,
91,
961,
264,
18,
91,
961,
12,
2620,
67,
4106,
33,
3813,
67,
701,
3631,
28707,
365,
18,
11231,
5812,
12,
2890,
18,
91,
961,
264,
18,
91,
961,
12,
2620,
67,
4106,
33,
3813,
67,
701,
16,
1743,
67,
318,
8151,
67,
4156,
33,
5510,
3631,
5183,
5618,
31,
19,
2620,
10,
4521,
23480,
5618,
31,
19,
3432,
10,
2
] |
environment = PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin; YOUPI_USER_DATA=%s
|
environment = PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/opt/condor/bin; YOUPI_USER_DATA=%s
|
def condor_ingestion(request): """ Callback for running a Condor ingestion. """ # HOST_DOMAIN try: path = request.POST['Path'] ingestionId = request.POST['IngestionId'] machine = request.POST['Host'] + HOST_DOMAIN email = request.POST.get('ReportEmail', 'monnerville@iap.fr') checkAllowSeveralTimes = request.POST.get('CheckAllowSeveralTimes', 'no') checkSkipVerify = request.POST.get('CheckSkipVerify', 'no') checkQSOStatus = request.POST.get('CheckQSOStatus', 'no') except KeyError, e: raise HttpResponseServerError('Bad parameters') # # Dictionnary that will be serialized with marshal module and passed # to the script as a string (argument 1). Note that the result of the serialization # is base64 encoded to avoid bad caracter handling. The condor ingestion script # will then de-serialize its first argument to access the data # #script_args = { 'path' : request.POST.get('path', NULLSTRING), script_args = { 'path' : path, 'email' : email, 'user_id' : request.user.id, 'ingestion_id' : ingestionId, 'allow_several_ingestions' : checkAllowSeveralTimes, 'skip_fitsverify' : checkSkipVerify, 'skip_qso_status' : checkQSOStatus, 'host' : machine } # Content of YOUPI_USER_DATA env variable passed to Condor userData = { 'Descr' : str("Ingestion (%s) of FITS images " % ingestionId), 'UserID' : str(request.user.id)} submit_file_path = os.path.join(TRUNK, 'terapix') f = open(CONDORFILE + '_' + ingestionId, 'w') f.write("""
|
08e77067dd177b699676d0d1381eb2114a5bf235 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/08e77067dd177b699676d0d1381eb2114a5bf235/condor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6941,
280,
67,
310,
6868,
12,
2293,
4672,
3536,
8444,
364,
3549,
279,
735,
72,
280,
12152,
6868,
18,
3536,
225,
468,
21425,
67,
18192,
775,
30,
589,
273,
590,
18,
3798,
3292,
743,
3546,
12152,
6868,
548,
273,
590,
18,
3798,
3292,
382,
75,
6868,
548,
3546,
5228,
273,
590,
18,
3798,
3292,
2594,
3546,
397,
21425,
67,
18192,
2699,
273,
590,
18,
3798,
18,
588,
2668,
4820,
4134,
2187,
296,
2586,
1224,
90,
14120,
36,
77,
438,
18,
4840,
6134,
866,
7009,
1761,
502,
287,
10694,
273,
590,
18,
3798,
18,
588,
2668,
1564,
7009,
1761,
502,
287,
10694,
2187,
296,
2135,
6134,
866,
31422,
273,
590,
18,
3798,
18,
588,
2668,
1564,
31422,
2187,
296,
2135,
6134,
866,
53,
3584,
1482,
273,
590,
18,
3798,
18,
588,
2668,
1564,
53,
3584,
1482,
2187,
296,
2135,
6134,
1335,
4999,
16,
425,
30,
1002,
9476,
8777,
2668,
6434,
1472,
6134,
225,
468,
468,
463,
2228,
82,
814,
716,
903,
506,
5343,
598,
10893,
1605,
471,
2275,
468,
358,
326,
2728,
487,
279,
533,
261,
3446,
404,
2934,
3609,
716,
326,
563,
434,
326,
11854,
468,
353,
1026,
1105,
3749,
358,
4543,
5570,
5926,
3946,
5057,
18,
1021,
6941,
280,
12152,
6868,
2728,
468,
903,
1508,
443,
17,
6288,
2097,
1122,
1237,
358,
2006,
326,
501,
468,
468,
4263,
67,
1968,
273,
288,
296,
803,
11,
294,
590,
18,
3798,
18,
588,
2668,
803,
2187,
3206,
5804,
3631,
2728,
67,
1968,
273,
288,
296,
803,
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,
6941,
280,
67,
310,
6868,
12,
2293,
4672,
3536,
8444,
364,
3549,
279,
735,
72,
280,
12152,
6868,
18,
3536,
225,
468,
21425,
67,
18192,
775,
30,
589,
273,
590,
18,
3798,
3292,
743,
3546,
12152,
6868,
548,
273,
590,
18,
3798,
3292,
382,
75,
6868,
548,
3546,
5228,
273,
590,
18,
3798,
3292,
2594,
3546,
397,
21425,
67,
18192,
2699,
273,
590,
18,
3798,
18,
588,
2668,
4820,
4134,
2187,
296,
2586,
1224,
90,
14120,
36,
77,
438,
18,
4840,
6134,
866,
7009,
1761,
502,
287,
10694,
273,
590,
18,
3798,
18,
588,
2668,
1564,
7009,
1761,
502,
287,
10694,
2187,
296,
2135,
6134,
866,
31422,
273,
590,
18,
3798,
18,
588,
2668,
1564,
31422,
2187,
296,
2
] |
self.canvasitems[1] = self.gcomprisBoard.canvas.root().add(
|
self.sunitem = self.rootitem.add(
|
def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=1 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1
|
690f8ac7446757307ab013b8fb8fe772b4ea0d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/690f8ac7446757307ab013b8fb8fe772b4ea0d9d/watercycle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
365,
18,
75,
832,
683,
291,
22233,
18,
2815,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
1896,
2815,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
87,
1255,
941,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
2696,
67,
792,
67,
87,
1255,
941,
33,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
75,
832,
683,
291,
22233,
18,
2696,
67,
792,
67,
87,
1255,
941,
33,
21,
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
] |
else:
|
print 'Using sleeved card size, %.2fcm x %.2fcm' % (dominionCardWidth/cm,dominionCardHeight/cm) elif size == 'NORMAL':
|
def drawCards(c,cards): cards = split(cards,numTabsVertical*numTabsHorizontal) for pageCards in cards: print 'pageCards:',pageCards for i,card in enumerate(pageCards): #print card x = i % numTabsHorizontal y = i / numTabsHorizontal c.saveState() drawTab(card,x,numTabsVertical-1-y) c.restoreState() c.showPage() for i,card in enumerate(pageCards): #print card x = (numTabsHorizontal-1-i) % numTabsHorizontal y = i / numTabsHorizontal c.saveState() drawTab(card,x,numTabsVertical-1-y,useExtra=True) c.restoreState() c.showPage()
|
316cd513858e61c8028e6193b26fa146d29ceb73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4124/316cd513858e61c8028e6193b26fa146d29ceb73/dominion_tabs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
30492,
12,
71,
16,
3327,
87,
4672,
18122,
273,
1416,
12,
3327,
87,
16,
2107,
17348,
15704,
14,
2107,
17348,
14457,
13,
364,
1363,
30492,
316,
18122,
30,
1172,
296,
2433,
30492,
30,
2187,
2433,
30492,
364,
277,
16,
3327,
316,
4241,
12,
2433,
30492,
4672,
468,
1188,
5270,
619,
273,
277,
738,
818,
17348,
14457,
677,
273,
277,
342,
818,
17348,
14457,
276,
18,
5688,
1119,
1435,
3724,
5661,
12,
3327,
16,
92,
16,
2107,
17348,
15704,
17,
21,
17,
93,
13,
276,
18,
13991,
1119,
1435,
276,
18,
4500,
1964,
1435,
364,
277,
16,
3327,
316,
4241,
12,
2433,
30492,
4672,
468,
1188,
5270,
619,
273,
261,
2107,
17348,
14457,
17,
21,
17,
77,
13,
738,
818,
17348,
14457,
677,
273,
277,
342,
818,
17348,
14457,
276,
18,
5688,
1119,
1435,
3724,
5661,
12,
3327,
16,
92,
16,
2107,
17348,
15704,
17,
21,
17,
93,
16,
1202,
7800,
33,
5510,
13,
276,
18,
13991,
1119,
1435,
276,
18,
4500,
1964,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
30492,
12,
71,
16,
3327,
87,
4672,
18122,
273,
1416,
12,
3327,
87,
16,
2107,
17348,
15704,
14,
2107,
17348,
14457,
13,
364,
1363,
30492,
316,
18122,
30,
1172,
296,
2433,
30492,
30,
2187,
2433,
30492,
364,
277,
16,
3327,
316,
4241,
12,
2433,
30492,
4672,
468,
1188,
5270,
619,
273,
277,
738,
818,
17348,
14457,
677,
273,
277,
342,
818,
17348,
14457,
276,
18,
5688,
1119,
1435,
3724,
5661,
12,
3327,
16,
92,
16,
2107,
17348,
15704,
17,
21,
17,
93,
13,
276,
18,
13991,
1119,
1435,
276,
18,
4500,
1964,
1435,
364,
277,
16,
3327,
316,
4241,
12,
2433,
30492,
4672,
468,
1188,
5270,
619,
273,
261,
2107,
17348,
14457,
17,
21,
17,
77,
13,
2
] |
def group_by_id(self, id): """Returns a group object based on its id""" params = {'id': id}
|
def group_by_id(self, groupId): '''Returns a group object based on its id''' params = {'id': int(groupId)}
|
def group_by_id(self, id): """Returns a group object based on its id""" params = {'id': id} request = self.send_request('json/group_by_id', auth=True, input=params) if request['success']: return request['group'] else: return dict()
|
5dcaa033d0134f79f4c175eee4ebed39f9279f6f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/5dcaa033d0134f79f4c175eee4ebed39f9279f6f/fas2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1041,
67,
1637,
67,
350,
12,
2890,
16,
6612,
4672,
9163,
1356,
279,
1041,
733,
2511,
603,
2097,
612,
26418,
859,
273,
13666,
350,
4278,
509,
12,
27547,
16869,
590,
273,
365,
18,
4661,
67,
2293,
2668,
1977,
19,
1655,
67,
1637,
67,
350,
2187,
1357,
33,
5510,
16,
810,
33,
2010,
13,
309,
590,
3292,
4768,
3546,
30,
327,
590,
3292,
1655,
3546,
469,
30,
327,
2065,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1041,
67,
1637,
67,
350,
12,
2890,
16,
6612,
4672,
9163,
1356,
279,
1041,
733,
2511,
603,
2097,
612,
26418,
859,
273,
13666,
350,
4278,
509,
12,
27547,
16869,
590,
273,
365,
18,
4661,
67,
2293,
2668,
1977,
19,
1655,
67,
1637,
67,
350,
2187,
1357,
33,
5510,
16,
810,
33,
2010,
13,
309,
590,
3292,
4768,
3546,
30,
327,
590,
3292,
1655,
3546,
469,
30,
327,
2065,
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
] |
p_code = byref(create_string_buffer(code))
|
code_buf = create_string_buffer(code) p_code = byref(code_buf)
|
def DecomposeGenerator(codeOffset, code, dt): """ @type codeOffset: long @param codeOffset: Memory address where the code is located. This is B{not} an offset into the code! It's the actual memory address where it was read from. @type code: str @param code: Code to disassemble. @type dt: int @param dt: Disassembly type. Can be one of the following: * L{Decode16Bits}: 80286 decoding * L{Decode32Bits}: IA-32 decoding * L{Decode64Bits}: AMD64 decoding @rtype: generator of TODO @return: Generator of TODO @raise ValueError: Invalid arguments. """ if not code: return if not codeOffset: codeOffset = 0 if dt not in (Decode16Bits, Decode32Bits, Decode64Bits): raise ValueError("Invalid decode type value: %r" % (dt,)) codeLen = len(code) p_code = byref(create_string_buffer(code)) result = (_DInst * MAX_INSTRUCTIONS)() instruction_off = 0 while codeLen > 0: usedInstructionsCount = c_uint(0) codeInfo = _CodeInfo(_OffsetType(codeOffset), _OffsetType(0), cast(p_code, c_char_p), codeLen, dt, 0) status = internal_decompose(byref(codeInfo), byref(result), MAX_INSTRUCTIONS, byref(usedInstructionsCount)) if status == DECRES_INPUTERR: raise ValueError("Invalid arguments passed to distorm_decode()") used = usedInstructionsCount.value if not used: break delta = 0 for index in xrange(used): di = result[index] yield Instruction(di, code[instruction_off : instruction_off + di.size], dt) delta += di.size instruction_off += di.size if delta <= 0: break codeOffset = codeOffset + delta p_code = byref(create_string_buffer(code), instruction_off) codeLen = codeLen - delta
|
3f82ebcac111500fb94ed82f56165397b9844120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4918/3f82ebcac111500fb94ed82f56165397b9844120/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26824,
4150,
3908,
12,
710,
2335,
16,
981,
16,
3681,
4672,
3536,
632,
723,
225,
981,
2335,
30,
1525,
632,
891,
981,
2335,
30,
9251,
1758,
1625,
326,
981,
353,
13801,
18,
1220,
353,
605,
95,
902,
97,
392,
1384,
1368,
326,
981,
5,
2597,
1807,
326,
3214,
3778,
1758,
1625,
518,
1703,
855,
628,
18,
225,
632,
723,
225,
981,
30,
609,
632,
891,
981,
30,
3356,
358,
1015,
29676,
18,
225,
632,
723,
225,
3681,
30,
509,
632,
891,
3681,
30,
3035,
28050,
618,
18,
4480,
506,
1245,
434,
326,
3751,
30,
225,
380,
511,
95,
6615,
2313,
6495,
6713,
1725,
3103,
5292,
13547,
225,
380,
511,
95,
6615,
1578,
6495,
6713,
467,
37,
17,
1578,
13547,
225,
380,
511,
95,
6615,
1105,
6495,
6713,
432,
6188,
1105,
13547,
225,
632,
86,
723,
30,
225,
4456,
434,
2660,
632,
2463,
30,
10159,
434,
2660,
225,
632,
11628,
2068,
30,
1962,
1775,
18,
3536,
225,
309,
486,
981,
30,
327,
225,
309,
486,
981,
2335,
30,
981,
2335,
273,
374,
225,
309,
3681,
486,
316,
261,
6615,
2313,
6495,
16,
6209,
1578,
6495,
16,
6209,
1105,
6495,
4672,
1002,
2068,
2932,
1941,
2495,
618,
460,
30,
738,
86,
6,
738,
261,
7510,
16,
3719,
225,
981,
2891,
540,
273,
562,
12,
710,
13,
981,
67,
4385,
3639,
273,
752,
67,
1080,
67,
4106,
12,
710,
13,
293,
67,
710,
1850,
273,
12725,
12,
710,
67,
4385,
13,
563,
1850,
273,
261,
67,
40,
10773,
380,
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,
26824,
4150,
3908,
12,
710,
2335,
16,
981,
16,
3681,
4672,
3536,
632,
723,
225,
981,
2335,
30,
1525,
632,
891,
981,
2335,
30,
9251,
1758,
1625,
326,
981,
353,
13801,
18,
1220,
353,
605,
95,
902,
97,
392,
1384,
1368,
326,
981,
5,
2597,
1807,
326,
3214,
3778,
1758,
1625,
518,
1703,
855,
628,
18,
225,
632,
723,
225,
981,
30,
609,
632,
891,
981,
30,
3356,
358,
1015,
29676,
18,
225,
632,
723,
225,
3681,
30,
509,
632,
891,
3681,
30,
3035,
28050,
618,
18,
4480,
506,
1245,
434,
326,
3751,
30,
225,
380,
511,
95,
6615,
2313,
6495,
6713,
1725,
3103,
5292,
13547,
225,
380,
511,
95,
6615,
1578,
6495,
6713,
467,
37,
17,
1578,
2
] |
genpluginproject("all", "_Res", outputdir="::Lib:Carbon")
|
genpluginproject("all", "_Res", stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
|
def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload", libraryflags=None, stdlibraryflags=None, prefixname=None): if architecture == "all": # For the time being we generate two project files. Not as nice as # a single multitarget project, but easier to implement for now. genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols, outputdir) genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols, outputdir) return templatename = "template-%s" % architecture targetname = "%s.%s" % (module, architecture) dllname = "%s.%s.slb" % (module, architecture) if not project: if architecture != "ppc": project = "%s.%s.mcp"%(module, architecture) else: project = "%s.mcp"%module if not projectdir: projectdir = PROJECTDIR if not sources: sources = [module + 'module.c'] if not sourcedirs: for moduledir in MODULEDIRS: if '%' in moduledir: # For historical reasons an initial _ in the modulename # is not reflected in the folder name if module[0] == '_': modulewithout_ = module[1:] else: modulewithout_ = module moduledir = moduledir % modulewithout_ fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) if os.path.exists(fn): moduledir, sourcefile = os.path.split(fn) sourcedirs = [relpath(projectdir, moduledir)] sources[0] = sourcefile break else: print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) sourcedirs = [] if prefixname: pass elif architecture == "carbon": prefixname = "mwerks_carbonplugin_config.h" else: prefixname = "mwerks_plugin_config.h" dict = { "sysprefix" : relpath(projectdir, sys.prefix), "sources" : sources, "extrasearchdirs" : sourcedirs + extradirs, "libraries": libraries, "mac_outputdir" : outputdir, "extraexportsymbols" : extraexportsymbols, "mac_targetname" : targetname, "mac_dllname" : dllname, "prefixname" : prefixname, } if libraryflags: dict['libraryflags'] = libraryflags if stdlibraryflags: dict['stdlibraryflags'] = stdlibraryflags mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, force=FORCEREBUILD, templatename=templatename)
|
736be72f8793ccab6608ce1c427e22d7e9182b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/736be72f8793ccab6608ce1c427e22d7e9182b29/genpluginprojects.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
4094,
4406,
12,
991,
18123,
16,
1605,
16,
1984,
33,
7036,
16,
1984,
1214,
33,
7036,
16,
5550,
22850,
6487,
1084,
8291,
22850,
6487,
14732,
22850,
6487,
7582,
361,
10539,
22850,
6487,
2870,
23732,
3284,
87,
22850,
6487,
876,
1214,
1546,
2866,
30,
5664,
30,
2941,
17,
28595,
945,
3113,
5313,
7133,
33,
7036,
16,
2044,
12083,
7133,
33,
7036,
16,
1633,
529,
33,
7036,
4672,
309,
27418,
422,
315,
454,
6877,
468,
2457,
326,
813,
3832,
732,
2103,
2795,
1984,
1390,
18,
2288,
487,
13752,
487,
468,
279,
2202,
1778,
305,
826,
1984,
16,
1496,
15857,
358,
2348,
364,
2037,
18,
3157,
4094,
4406,
2932,
84,
2436,
3113,
1605,
16,
1984,
16,
1984,
1214,
16,
5550,
16,
1084,
8291,
16,
14732,
16,
7582,
361,
10539,
16,
2870,
23732,
3284,
87,
16,
876,
1214,
13,
3157,
4094,
4406,
2932,
71,
11801,
3113,
1605,
16,
1984,
16,
1984,
1214,
16,
5550,
16,
1084,
8291,
16,
14732,
16,
7582,
361,
10539,
16,
2870,
23732,
3284,
87,
16,
876,
1214,
13,
327,
13988,
270,
1069,
273,
315,
3202,
6456,
87,
6,
738,
27418,
1018,
529,
273,
2213,
87,
7866,
87,
6,
738,
261,
2978,
16,
27418,
13,
302,
2906,
529,
273,
2213,
87,
7866,
87,
18,
2069,
70,
6,
738,
261,
2978,
16,
27418,
13,
309,
486,
1984,
30,
309,
27418,
480,
315,
84,
2436,
6877,
1984,
273,
2213,
87,
7866,
87,
18,
81,
4057,
6,
17105,
2978,
16,
27418,
13,
469,
30,
1984,
273,
2213,
87,
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,
3157,
4094,
4406,
12,
991,
18123,
16,
1605,
16,
1984,
33,
7036,
16,
1984,
1214,
33,
7036,
16,
5550,
22850,
6487,
1084,
8291,
22850,
6487,
14732,
22850,
6487,
7582,
361,
10539,
22850,
6487,
2870,
23732,
3284,
87,
22850,
6487,
876,
1214,
1546,
2866,
30,
5664,
30,
2941,
17,
28595,
945,
3113,
5313,
7133,
33,
7036,
16,
2044,
12083,
7133,
33,
7036,
16,
1633,
529,
33,
7036,
4672,
309,
27418,
422,
315,
454,
6877,
468,
2457,
326,
813,
3832,
732,
2103,
2795,
1984,
1390,
18,
2288,
487,
13752,
487,
468,
279,
2202,
1778,
305,
826,
1984,
16,
1496,
15857,
358,
2348,
364,
2037,
18,
3157,
4094,
4406,
2932,
84,
2436,
3113,
1605,
16,
1984,
16,
1984,
1214,
16,
5550,
2
] |
"Attempt to read ZIP archive that was already closed"
|
"Attempt to read ZIP archive that was already closed"
|
def read(self, name): "Return file bytes (as a string) for name" if self.mode not in ("r", "a"): raise RuntimeError, 'read() requires mode "r" or "a"' if not self.fp: raise RuntimeError, \ "Attempt to read ZIP archive that was already closed" zinfo = self.getinfo(name) filepos = self.fp.tell() self.fp.seek(zinfo.file_offset, 0) bytes = self.fp.read(zinfo.compress_size) self.fp.seek(filepos, 0) if zinfo.compress_type == ZIP_STORED: pass elif zinfo.compress_type == ZIP_DEFLATED: if not zlib: raise RuntimeError, \ "De-compression requires the (missing) zlib module" # zlib compress/decompress code by Jeremy Hylton of CNRI dc = zlib.decompressobj(-15) bytes = dc.decompress(bytes) # need to feed in unused pad byte so that zlib won't choke ex = dc.decompress('Z') + dc.flush() if ex: bytes = bytes + ex else: raise BadZipfile, \ "Unsupported compression method %d for file %s" % \ (zinfo.compress_type, name) crc = binascii.crc32(bytes) if crc != zinfo.CRC: raise BadZipfile, "Bad CRC-32 for file %s" % name return bytes
|
d6c8480588120e48fba9de106754eef460bdf549 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6c8480588120e48fba9de106754eef460bdf549/zipfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
508,
4672,
315,
990,
585,
1731,
261,
345,
279,
533,
13,
364,
508,
6,
309,
365,
18,
3188,
486,
316,
7566,
86,
3113,
315,
69,
6,
4672,
1002,
7265,
16,
296,
896,
1435,
4991,
1965,
315,
86,
6,
578,
315,
69,
5187,
309,
486,
365,
18,
7944,
30,
1002,
7265,
16,
521,
315,
7744,
358,
855,
18277,
5052,
716,
1703,
1818,
4375,
6,
998,
1376,
273,
365,
18,
22281,
12,
529,
13,
585,
917,
273,
365,
18,
7944,
18,
88,
1165,
1435,
365,
18,
7944,
18,
16508,
12,
94,
1376,
18,
768,
67,
3348,
16,
374,
13,
1731,
273,
365,
18,
7944,
18,
896,
12,
94,
1376,
18,
14706,
67,
1467,
13,
365,
18,
7944,
18,
16508,
12,
768,
917,
16,
374,
13,
309,
998,
1376,
18,
14706,
67,
723,
422,
18277,
67,
31487,
5879,
30,
1342,
1327,
998,
1376,
18,
14706,
67,
723,
422,
18277,
67,
12904,
48,
6344,
30,
309,
486,
24220,
30,
1002,
7265,
16,
521,
315,
758,
17,
23766,
4991,
326,
261,
7337,
13,
24220,
1605,
6,
468,
24220,
8099,
19,
323,
14706,
981,
635,
804,
264,
351,
93,
14881,
80,
1917,
434,
13326,
2259,
6744,
273,
24220,
18,
323,
14706,
2603,
19236,
3600,
13,
1731,
273,
6744,
18,
323,
14706,
12,
3890,
13,
468,
1608,
358,
4746,
316,
10197,
4627,
1160,
1427,
716,
24220,
8462,
1404,
462,
3056,
431,
273,
6744,
18,
323,
14706,
2668,
62,
6134,
397,
6744,
18,
11330,
1435,
309,
431,
30,
1731,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
508,
4672,
315,
990,
585,
1731,
261,
345,
279,
533,
13,
364,
508,
6,
309,
365,
18,
3188,
486,
316,
7566,
86,
3113,
315,
69,
6,
4672,
1002,
7265,
16,
296,
896,
1435,
4991,
1965,
315,
86,
6,
578,
315,
69,
5187,
309,
486,
365,
18,
7944,
30,
1002,
7265,
16,
521,
315,
7744,
358,
855,
18277,
5052,
716,
1703,
1818,
4375,
6,
998,
1376,
273,
365,
18,
22281,
12,
529,
13,
585,
917,
273,
365,
18,
7944,
18,
88,
1165,
1435,
365,
18,
7944,
18,
16508,
12,
94,
1376,
18,
768,
67,
3348,
16,
374,
13,
1731,
273,
365,
18,
7944,
18,
896,
12,
94,
1376,
18,
14706,
67,
1467,
13,
365,
18,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.