rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
('process_multistmt', compile_ast_matcher(""" (stmt COMMENT*:comments
|
('process_multi_stmt', compile_ast_matcher(""" (stmt COMMENT*
|
# Function definition: "def f(x): ..."
|
9e5978789d1a0236a755e57894301e8dd453fd99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/9e5978789d1a0236a755e57894301e8dd453fd99/docparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
output_file.write(" 'copies': [\n")
|
def write_action(asset, webgl_mode): filename = posixpath.splitext(posixpath.basename(asset['path']))[0] filename = filename.replace('.','_') filename = filename.replace('-','_') filename = filename.lower() name = "convert_" + filename if webgl_mode: name = name + "_webgl" output = asset['path'].replace('convert_', '') output_base = posixpath.splitext(output)[0] output_tgz = output_base + ".o3dtgz" output_json = output_base + "/scene.json" output = output_tgz if webgl_mode: output = output_json output_dir = posixpath.dirname(output) output_file.write(" {\n") output_file.write(" 'action_name': '%s',\n" % name) output_file.write(" 'inputs': [\n") output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) output_file.write(" ],\n") output_file.write(" 'outputs': [\n") if sys.platform[:5] == 'linux': # TODO(gspencer): This is a HACK! We shouldn't need to put the # absolute path here, but currently on Linux (scons), it is unable # to copy generated items out of the source tree (because the # repository mojo fails to find it and puts in the wrong path). output_file.write(" '%s',\n" % posixpath.abspath(output)) else: output_file.write(" '../samples/%s',\n" % output) output_file.write(" ],\n") output_file.write(" 'action': [\n") output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") output_file.write(" '--no-condition',\n") output_file.write(" '--up-axis=%s',\n" % asset['up']) if webgl_mode: output_file.write(" '--no-binary',\n") output_file.write(" '--no-archive',\n") output_file.write(" '--convert-dds-to-png',\n") output_file.write(" '--convert-cg-to-glsl',\n") output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) if webgl_mode: output_file.write(" '../samples/%s',\n" % output_tgz) else: output_file.write(" '<(_outputs)',\n") output_file.write(" ],\n") output_file.write(" },\n")
|
51cf61ff968587decf4da988cafbff403b2ef34b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/51cf61ff968587decf4da988cafbff403b2ef34b/samples_gen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1128,
12,
9406,
16,
3311,
7043,
67,
3188,
4672,
1544,
273,
16366,
803,
18,
4939,
408,
12,
24463,
803,
18,
13909,
12,
9406,
3292,
803,
3546,
3719,
63,
20,
65,
1544,
273,
1544,
18,
2079,
2668,
1093,
11189,
4623,
13,
1544,
273,
1544,
18,
2079,
2668,
17,
17023,
4623,
13,
1544,
273,
1544,
18,
8167,
1435,
508,
273,
315,
6283,
9548,
397,
1544,
309,
3311,
7043,
67,
3188,
30,
508,
273,
508,
397,
4192,
4875,
7043,
6,
876,
273,
3310,
3292,
803,
29489,
2079,
2668,
6283,
67,
2187,
28707,
876,
67,
1969,
273,
16366,
803,
18,
4939,
408,
12,
2844,
25146,
20,
65,
876,
67,
88,
9764,
273,
876,
67,
1969,
397,
3552,
83,
23,
7510,
9764,
6,
876,
67,
1977,
273,
876,
67,
1969,
397,
2206,
23694,
18,
1977,
6,
876,
273,
876,
67,
88,
9764,
309,
3311,
7043,
67,
3188,
30,
876,
273,
876,
67,
1977,
876,
67,
1214,
273,
16366,
803,
18,
12287,
12,
2844,
13,
876,
67,
768,
18,
2626,
2932,
3639,
18890,
82,
7923,
876,
67,
768,
18,
2626,
2932,
1850,
296,
1128,
67,
529,
4278,
1995,
87,
2187,
64,
82,
6,
738,
508,
13,
876,
67,
768,
18,
2626,
2932,
1850,
296,
10029,
4278,
23781,
82,
7923,
876,
67,
768,
18,
2626,
2932,
5411,
2368,
12,
25883,
67,
4537,
13176,
83,
23,
72,
5072,
2187,
64,
82,
7923,
876,
67,
768,
18,
2626,
2932,
5411,
25226,
83,
23,
72,
67,
9971,
19,
7319,
5258,
87,
2187,
64,
82,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1128,
12,
9406,
16,
3311,
7043,
67,
3188,
4672,
1544,
273,
16366,
803,
18,
4939,
408,
12,
24463,
803,
18,
13909,
12,
9406,
3292,
803,
3546,
3719,
63,
20,
65,
1544,
273,
1544,
18,
2079,
2668,
1093,
11189,
4623,
13,
1544,
273,
1544,
18,
2079,
2668,
17,
17023,
4623,
13,
1544,
273,
1544,
18,
8167,
1435,
508,
273,
315,
6283,
9548,
397,
1544,
309,
3311,
7043,
67,
3188,
30,
508,
273,
508,
397,
4192,
4875,
7043,
6,
876,
273,
3310,
3292,
803,
29489,
2079,
2668,
6283,
67,
2187,
28707,
876,
67,
1969,
273,
16366,
803,
18,
4939,
408,
12,
2844,
25146,
20,
65,
876,
67,
88,
9764,
273,
876,
67,
1969,
397,
3552,
83,
23,
7510,
2
] |
|
microop = eval('parser.microops[statement.mnemonic](%s)' % statement.params)
|
microop = eval('__microopClassFromInsideTheAssembler(%s)' % statement.params, {}, parser.symbols)
|
def handle_statement(parser, container, statement): if statement.is_microop: try: microop = eval('parser.microops[statement.mnemonic](%s)' % statement.params) except: print_error("Error creating microop object with mnemonic %s." % \ statement.mnemonic) raise try: for label in statement.labels: container.labels[label.name] = microop if label.extern: container.externs[label.name] = microop container.add_microop(microop) except: print_error("Error adding microop.") raise elif statement.is_directive: try: eval('container.directives[statement.name](%s)' % statement.params) except: print_error("Error executing directive.") print container.directives raise else: raise Exception, "Didn't recognize the type of statement", statement
|
7e7d3ee0aa73c1573b62539ed0f0a97c44fdd7ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/7e7d3ee0aa73c1573b62539ed0f0a97c44fdd7ea/micro_asm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11516,
12,
4288,
16,
1478,
16,
3021,
4672,
309,
3021,
18,
291,
67,
14458,
556,
30,
775,
30,
6481,
556,
273,
5302,
2668,
972,
14458,
556,
797,
1265,
18619,
1986,
1463,
5747,
749,
9275,
87,
2506,
738,
3021,
18,
2010,
16,
10615,
2082,
18,
15536,
13,
1335,
30,
1172,
67,
1636,
2932,
668,
4979,
6481,
556,
733,
598,
12883,
20918,
738,
87,
1199,
738,
521,
3021,
18,
13607,
20918,
13,
1002,
775,
30,
364,
1433,
316,
3021,
18,
5336,
30,
1478,
18,
5336,
63,
1925,
18,
529,
65,
273,
6481,
556,
309,
1433,
18,
338,
798,
30,
1478,
18,
338,
798,
87,
63,
1925,
18,
529,
65,
273,
6481,
556,
1478,
18,
1289,
67,
14458,
556,
12,
14458,
556,
13,
1335,
30,
1172,
67,
1636,
2932,
668,
6534,
6481,
556,
1199,
13,
1002,
1327,
3021,
18,
291,
67,
22347,
30,
775,
30,
5302,
2668,
3782,
18,
30850,
63,
11516,
18,
529,
65,
9275,
87,
2506,
738,
3021,
18,
2010,
13,
1335,
30,
1172,
67,
1636,
2932,
668,
11274,
8655,
1199,
13,
1172,
1478,
18,
30850,
1002,
469,
30,
1002,
1185,
16,
315,
18250,
82,
1404,
21431,
326,
618,
434,
3021,
3113,
3021,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11516,
12,
4288,
16,
1478,
16,
3021,
4672,
309,
3021,
18,
291,
67,
14458,
556,
30,
775,
30,
6481,
556,
273,
5302,
2668,
972,
14458,
556,
797,
1265,
18619,
1986,
1463,
5747,
749,
9275,
87,
2506,
738,
3021,
18,
2010,
16,
10615,
2082,
18,
15536,
13,
1335,
30,
1172,
67,
1636,
2932,
668,
4979,
6481,
556,
733,
598,
12883,
20918,
738,
87,
1199,
738,
521,
3021,
18,
13607,
20918,
13,
1002,
775,
30,
364,
1433,
316,
3021,
18,
5336,
30,
1478,
18,
5336,
63,
1925,
18,
529,
65,
273,
6481,
556,
309,
1433,
18,
338,
798,
30,
1478,
18,
338,
798,
87,
63,
1925,
18,
529,
65,
273,
6481,
556,
1478,
18,
1289,
67,
14458,
556,
2
] |
to return an :class:`Inspector` subclass that provides additional
|
to return an :class:`.Inspector` subclass that provides additional
|
def cache(fn, self, con, *args, **kw): info_cache = kw.get('info_cache', None) if info_cache is None: return fn(self, con, *args, **kw) key = ( fn.__name__, tuple(a for a in args if isinstance(a, basestring)), tuple((k, v) for k, v in kw.iteritems() if isinstance(v, (basestring, int, float))) ) ret = info_cache.get(key) if ret is None: ret = fn(self, con, *args, **kw) info_cache[key] = ret return ret
|
914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d/reflection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
12,
4293,
16,
365,
16,
356,
16,
380,
1968,
16,
2826,
9987,
4672,
1123,
67,
2493,
273,
5323,
18,
588,
2668,
1376,
67,
2493,
2187,
599,
13,
309,
1123,
67,
2493,
353,
599,
30,
327,
2295,
12,
2890,
16,
356,
16,
380,
1968,
16,
2826,
9987,
13,
498,
273,
261,
2295,
16186,
529,
972,
16,
3193,
12,
69,
364,
279,
316,
833,
309,
1549,
12,
69,
16,
10699,
13,
3631,
3193,
12443,
79,
16,
331,
13,
364,
417,
16,
331,
316,
5323,
18,
2165,
3319,
1435,
309,
1549,
12,
90,
16,
261,
18602,
371,
16,
509,
16,
1431,
20349,
262,
325,
273,
1123,
67,
2493,
18,
588,
12,
856,
13,
309,
325,
353,
599,
30,
325,
273,
2295,
12,
2890,
16,
356,
16,
380,
1968,
16,
2826,
9987,
13,
1123,
67,
2493,
63,
856,
65,
273,
325,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
12,
4293,
16,
365,
16,
356,
16,
380,
1968,
16,
2826,
9987,
4672,
1123,
67,
2493,
273,
5323,
18,
588,
2668,
1376,
67,
2493,
2187,
599,
13,
309,
1123,
67,
2493,
353,
599,
30,
327,
2295,
12,
2890,
16,
356,
16,
380,
1968,
16,
2826,
9987,
13,
498,
273,
261,
2295,
16186,
529,
972,
16,
3193,
12,
69,
364,
279,
316,
833,
309,
1549,
12,
69,
16,
10699,
13,
3631,
3193,
12443,
79,
16,
331,
13,
364,
417,
16,
331,
316,
5323,
18,
2165,
3319,
1435,
309,
1549,
12,
90,
16,
261,
18602,
371,
16,
509,
16,
1431,
20349,
262,
325,
273,
1123,
67,
2493,
18,
588,
12,
856,
13,
309,
325,
353,
599,
30,
325,
273,
2
] |
twist.notebook.save()
|
save_notebook()
|
def my_sigint(x, n): twist.notebook.save() signal.signal(signal.SIGINT, signal.SIG_DFL) print "(Notebook cleanly saved. Press control-C again to exit.)"
|
10e310067c056d8036c0cd4f16de520b723ebd2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/10e310067c056d8036c0cd4f16de520b723ebd2f/run_notebook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
474,
12,
92,
16,
290,
4672,
1923,
67,
24422,
1435,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
18,
18513,
67,
4577,
48,
13,
1172,
7751,
19751,
2721,
715,
5198,
18,
29806,
3325,
17,
39,
3382,
358,
2427,
18,
2225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
474,
12,
92,
16,
290,
4672,
1923,
67,
24422,
1435,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
18,
18513,
67,
4577,
48,
13,
1172,
7751,
19751,
2721,
715,
5198,
18,
29806,
3325,
17,
39,
3382,
358,
2427,
18,
2225,
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
] |
dll = 'support/loader/inprocsrvr' if self.debug: dll = dll + '_d'
|
dll = self._bootloader_postfix('support/loader/inprocsrvr')
|
def assemble(self): print "building DLL", os.path.basename(self.out) outf = open(self.name, 'wb') dll = 'support/loader/inprocsrvr' if self.debug: dll = dll + '_d' dll = os.path.join(HOMEPATH, dll) + '.dll' self.copy(dll, outf) self.copy(self.pkg.name, outf) outf.close() os.chmod(self.name, 0755) f = open(self.out, 'w') pprint.pprint((self.name, self.console, self.debug, self.icon, self.versrsrc, self.strip, self.upx, mtime(self.name)), f) f.close() return 1
|
c4a8d5577bdce24715c5dd3b9c0c8a0c2f7fd120 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11925/c4a8d5577bdce24715c5dd3b9c0c8a0c2f7fd120/Build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
12,
2890,
4672,
1172,
315,
3510,
310,
463,
4503,
3113,
1140,
18,
803,
18,
13909,
12,
2890,
18,
659,
13,
596,
74,
273,
1696,
12,
2890,
18,
529,
16,
296,
9464,
6134,
302,
2906,
273,
365,
6315,
7137,
6714,
67,
2767,
904,
2668,
13261,
19,
6714,
19,
267,
27537,
4962,
86,
6134,
302,
2906,
273,
1140,
18,
803,
18,
5701,
12,
14209,
4211,
16,
302,
2906,
13,
225,
397,
2418,
27670,
11,
365,
18,
3530,
12,
27670,
16,
596,
74,
13,
365,
18,
3530,
12,
2890,
18,
10657,
18,
529,
16,
596,
74,
13,
596,
74,
18,
4412,
1435,
1140,
18,
343,
1711,
12,
2890,
18,
529,
16,
18641,
13,
284,
273,
1696,
12,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
12,
2890,
4672,
1172,
315,
3510,
310,
463,
4503,
3113,
1140,
18,
803,
18,
13909,
12,
2890,
18,
659,
13,
596,
74,
273,
1696,
12,
2890,
18,
529,
16,
296,
9464,
6134,
302,
2906,
273,
365,
6315,
7137,
6714,
67,
2767,
904,
2668,
13261,
19,
6714,
19,
267,
27537,
4962,
86,
6134,
302,
2906,
273,
1140,
18,
803,
18,
5701,
12,
14209,
4211,
16,
302,
2906,
13,
225,
397,
2418,
27670,
11,
365,
18,
3530,
12,
27670,
16,
596,
74,
13,
365,
18,
3530,
12,
2890,
18,
10657,
18,
529,
16,
596,
74,
13,
596,
74,
18,
4412,
1435,
1140,
18,
343,
1711,
12,
2890,
18,
529,
16,
18641,
13,
284,
273,
1696,
12,
2890,
18,
659,
2
] |
sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
|
(sys.exit.expect_call(mock.anything_comparator()) .and_raises(cli_mock.ExitException))
|
def test_job_list_jobs_all_and_user(self): testjob = job.job_list() sys.argv = ['atest', 'job', 'list', '-a', '-u', 'user0', '--ignore_site_file'] self.god.mock_io() sys.exit.expect_call(1).and_raises(cli_mock.ExitException) self.assertRaises(cli_mock.ExitException, testjob.parse) self.god.unmock_io()
|
6f62febcbc85e4bfab852fef95e2af9570c88fa7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/6f62febcbc85e4bfab852fef95e2af9570c88fa7/job_unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4688,
67,
1098,
67,
10088,
67,
454,
67,
464,
67,
1355,
12,
2890,
4672,
1842,
4688,
273,
1719,
18,
4688,
67,
1098,
1435,
2589,
18,
19485,
273,
10228,
270,
395,
2187,
296,
4688,
2187,
296,
1098,
2187,
2400,
69,
2187,
2400,
89,
2187,
296,
1355,
20,
2187,
3534,
6185,
67,
4256,
67,
768,
3546,
365,
18,
75,
369,
18,
22851,
67,
1594,
1435,
261,
9499,
18,
8593,
18,
12339,
67,
1991,
12,
22851,
18,
2273,
4274,
67,
832,
2528,
10756,
263,
464,
67,
354,
6141,
12,
4857,
67,
22851,
18,
6767,
503,
3719,
365,
18,
11231,
12649,
6141,
12,
4857,
67,
22851,
18,
6767,
503,
16,
1842,
4688,
18,
2670,
13,
365,
18,
75,
369,
18,
318,
22851,
67,
1594,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4688,
67,
1098,
67,
10088,
67,
454,
67,
464,
67,
1355,
12,
2890,
4672,
1842,
4688,
273,
1719,
18,
4688,
67,
1098,
1435,
2589,
18,
19485,
273,
10228,
270,
395,
2187,
296,
4688,
2187,
296,
1098,
2187,
2400,
69,
2187,
2400,
89,
2187,
296,
1355,
20,
2187,
3534,
6185,
67,
4256,
67,
768,
3546,
365,
18,
75,
369,
18,
22851,
67,
1594,
1435,
261,
9499,
18,
8593,
18,
12339,
67,
1991,
12,
22851,
18,
2273,
4274,
67,
832,
2528,
10756,
263,
464,
67,
354,
6141,
12,
4857,
67,
22851,
18,
6767,
503,
3719,
365,
18,
11231,
12649,
6141,
12,
4857,
67,
22851,
18,
6767,
503,
16,
1842,
4688,
18,
2670,
13,
365,
18,
75,
369,
18,
2
] |
sage: r.dev_off()
|
sage: r.dev_off()
|
def plot(self, *args, **kwargs): """ The R plot function. Type r.help('plot') for much more extensive documentatin about this function. See the examples below for how to use it to write output to a FILE.
|
cc0ae2fe046cb29c675913dd00183435eaa1f913 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/cc0ae2fe046cb29c675913dd00183435eaa1f913/r.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
1668,
270,
267,
2973,
333,
445,
18,
225,
2164,
326,
10991,
5712,
364,
3661,
358,
999,
518,
358,
1045,
876,
358,
279,
7527,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
1668,
270,
267,
2973,
333,
445,
18,
225,
2164,
326,
10991,
5712,
364,
3661,
358,
999,
518,
358,
1045,
876,
358,
279,
7527,
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
] |
return self.formatSupplementLine('__traceback_info__: %s' % tbi)
|
return self.formatSupplementLine('__traceback_info__: %s' % (tbi,))
|
def formatTracebackInfo(self, tbi): return self.formatSupplementLine('__traceback_info__: %s' % tbi)
|
488d94d7117d4d37e0a8a1990a745c80b73f9d10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/488d94d7117d4d37e0a8a1990a745c80b73f9d10/ExceptionFormatter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
3448,
823,
966,
12,
2890,
16,
8739,
77,
4672,
327,
365,
18,
2139,
3088,
4330,
1670,
2668,
972,
21696,
67,
1376,
972,
30,
738,
87,
11,
738,
8739,
77,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
optparser.error('Error reading config file:\n %s' % e)
|
if len(options.configfiles) == 1: cf_name = 'config file %s' % options.configfiles[0] else: cf_name = 'config files %s' % ', '.join(options.configfiles optparser.error('Error reading %s:\n %s' % (cf_name, e))
|
def parse_arguments(): # Construct the option parser. usage = '%prog ACTION [options] NAMES...' version = "Epydoc, version %s" % epydoc.__version__ optparser = OptionParser(usage=usage, version=version) action_group = OptionGroup(optparser, 'Actions') options_group = OptionGroup(optparser, 'Options') # Add options -- Actions action_group.add_option( # --html "--html", action="store_const", dest="action", const="html", help="Write HTML output.") action_group.add_option( # --latex "--text", action="store_const", dest="action", const="text", help="Write plaintext output. (not implemented yet)") action_group.add_option( # --latex "--latex", action="store_const", dest="action", const="latex", help="Write LaTeX output.") action_group.add_option( # --dvi "--dvi", action="store_const", dest="action", const="dvi", help="Write DVI output.") action_group.add_option( # --ps "--ps", action="store_const", dest="action", const="ps", help="Write Postscript output.") action_group.add_option( # --pdf "--pdf", action="store_const", dest="action", const="pdf", help="Write PDF output.") action_group.add_option( # --check "--check", action="store_const", dest="action", const="check", help="Check completeness of docs.") # Add options -- Options options_group.add_option( # --output "--output", "-o", dest="target", metavar="PATH", help="The output directory. If PATH does not exist, then " "it will be created.") options_group.add_option( # --show-imports "--inheritance", dest="inheritance", metavar="STYLE", help="The format for showing inheritance objects. STYLE " "should be one of: %s." % ', '.join(INHERITANCE_STYLES)) options_group.add_option( # --output "--docformat", dest="docformat", metavar="NAME", help="The default markup language for docstrings. Defaults " "to \"%s\"." % DEFAULT_DOCFORMAT) options_group.add_option( # --css "--css", dest="css", metavar="STYLESHEET", help="The CSS stylesheet. STYLESHEET can be either a " "builtin stylesheet or the name of a CSS file.") options_group.add_option( # --name "--name", dest="prj_name", metavar="NAME", help="The documented project's name (for the navigation bar).") options_group.add_option( # --url "--url", dest="prj_url", metavar="URL", help="The documented project's URL (for the navigation bar).") options_group.add_option( # --navlink "--navlink", dest="prj_link", metavar="HTML", help="HTML code for a navigation link to place in the " "navigation bar.") options_group.add_option( # --top "--top", dest="top_page", metavar="PAGE", help="The \"top\" page for the HTML documentation. PAGE can " "be a URL, the name of a module or class, or one of the " "special names \"trees.html\", \"indices.html\", or \"help.html\"") options_group.add_option( # --help-file "--help-file", dest="help_file", metavar="FILE", help="An alternate help file. FILE should contain the body " "of an HTML file -- navigation bars will be added to it.") options_group.add_option( # --frames "--show-frames", action="store_true", dest="show_frames", help="Include frames in the HTML output. (default)") options_group.add_option( # --no-frames "--no-frames", action="store_false", dest="show_frames", help="Do not include frames in the HTML output.") options_group.add_option( # --private "--show-private", action="store_true", dest="show_private", help="Include private variables in the output. (default)") options_group.add_option( # --no-private "--no-private", action="store_false", dest="show_private", help="Do not include private variables in the output.") options_group.add_option( # --show-imports "--show-imports", action="store_true", dest="show_imports", help="List each module's imports.") options_group.add_option( # --show-imports "--no-imports", action="store_false", dest="show_imports", help="Do not list each module's imports. (default)") options_group.add_option( # --quiet "--quiet", "-q", action="count", dest="quiet", help="Decrease the verbosity.") options_group.add_option( # --verbose "--verbose", "-v", action="count", dest="verbose", help="Increase the verbosity.") options_group.add_option( # --debug "--debug", action="store_true", dest="debug", help="Show full tracebacks for internal errors.") options_group.add_option( # --parse-only "--parse-only", action="store_false", dest="introspect", help="Get all information from parsing (don't introspect)") options_group.add_option( # --introspect-only "--introspect-only", action="store_false", dest="parse", help="Get all information from introspecting (don't parse)") if epydoc.DEBUG: # this option is for developers, not users. options_group.add_option( "--profile-epydoc", action="store_true", dest="profile", help="Run the profiler. Output will be written to profile.out") options_group.add_option( "--dotpath", dest="dotpath", metavar='PATH', help="The path to the Graphviz 'dot' executable.") options_group.add_option( '--config', action='append', dest="configfiles", metavar='FILE', help=("A configuration file, specifying additional OPTIONS " "and/or NAMES. This option may be repeated.")) options_group.add_option( '--graph', action='append', dest='graphs', metavar='GRAPHTYPE', help=("Include graphs of type GRAPHTYPE in the generated output. " "Graphs are generated using the Graphviz dot executable. " "If this executable is not on the path, then use --dotpath " "to specify its location. This option may be repeated to " "include multiple graph types in the output. GRAPHTYPE " "should be one of: all, %s." % ', '.join(GRAPH_TYPES))) options_group.add_option( '--separate-classes', action='store_true', dest='list_classes_separately', help=("When generating LaTeX or PDF output, list each class in " "its own section, instead of listing them under their " "containing module.")) options_group.add_option( '--show-sourcecode', action='store_true', dest='include_source_code', help=("Include source code with syntax highlighting in the " "HTML output.")) options_group.add_option( '--no-sourcecode', action='store_false', dest='include_source_code', help=("Do not include source code with syntax highlighting in the " "HTML output.")) options_group.add_option( '--pstat', action='append', dest='pstat_files', metavar='FILE', help="A pstat output file, to be used in generating call graphs.") # Add the option groups. optparser.add_option_group(action_group) optparser.add_option_group(options_group) # Set the option parser's defaults. optparser.set_defaults(action="html", show_frames=True, docformat=DEFAULT_DOCFORMAT, show_private=True, show_imports=False, inheritance="listed", verbose=0, quiet=0, parse=True, introspect=True, debug=epydoc.DEBUG, profile=False, graphs=[], list_classes_separately=False, include_source_code=True, pstat_files=[]) # Parse the arguments. options, names = optparser.parse_args() # Process any config files. if options.configfiles: try: parse_configfiles(options.configfiles, options, names) except (KeyboardInterrupt,SystemExit): raise except Exception, e: optparser.error('Error reading config file:\n %s' % e) # Check to make sure all options are valid. if len(names) == 0: optparser.error("No names specified.") # perform shell expansion. for i, name in enumerate(names[:]): if '?' in name or '*' in name: names[i:i+1] = glob(name) if options.inheritance not in INHERITANCE_STYLES: optparser.error("Bad inheritance style. Valid options are " + ",".join(INHERITANCE_STYLES)) if not options.parse and not options.introspect: optparser.error("Invalid option combination: --parse-only " "and --introspect-only.") if options.action == 'text' and len(names) > 1: optparser.error("--text option takes only one name.") # Check the list of requested graph types to make sure they're # acceptable. options.graphs = [graph_type.lower() for graph_type in options.graphs] for graph_type in options.graphs: if graph_type == 'callgraph' and not options.pstat_files: optparser.error('"callgraph" graph type may only be used if ' 'one or more pstat files are specified.') # If it's 'all', then add everything (but don't add callgraph if # we don't have any profiling info to base them on). if graph_type == 'all': if options.pstat_files: options.graphs = GRAPH_TYPES else: options.graphs = [g for g in GRAPH_TYPES if g != 'callgraph'] break elif graph_type not in GRAPH_TYPES: optparser.error("Invalid graph type %s." % graph_type) # Calculate verbosity. options.verbosity = options.verbose - options.quiet # The target default depends on the action. if options.target is None: options.target = options.action # Return parsed args. return options, names
|
8ad060af38895e1974a0306ce4ce4d055d6a2df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/8ad060af38895e1974a0306ce4ce4d055d6a2df5/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
2074,
2434,
16186,
1589,
972,
2153,
4288,
273,
18862,
12,
9167,
33,
9167,
16,
1177,
33,
1589,
13,
1301,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
6100,
6134,
702,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
1320,
6134,
225,
468,
1436,
702,
1493,
18765,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
2620,
5238,
2620,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
2620,
3113,
2809,
1546,
3067,
3982,
876,
1199,
13,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
26264,
5238,
955,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
955,
3113,
2809,
1546,
3067,
11917,
876,
18,
261,
902,
8249,
4671,
2225,
13,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
26264,
5238,
26264,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
26264,
3113,
2809,
1546,
3067,
21072,
21575,
60,
876,
1199,
13,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
72,
522,
5238,
72,
522,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
72,
522,
3113,
2809,
1546,
3067,
463,
4136,
876,
1199,
13,
1301,
67,
1655,
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,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
2074,
2434,
16186,
1589,
972,
2153,
4288,
273,
18862,
12,
9167,
33,
9167,
16,
1177,
33,
1589,
13,
1301,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
6100,
6134,
702,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
1320,
6134,
225,
468,
1436,
702,
1493,
18765,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
2620,
5238,
2620,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
2620,
3113,
2809,
1546,
3067,
3982,
2
] |
myProtocol=["http://","https://"]
|
self.validProtocols=["http://","https://"]
|
def __init__(self,publicationDirectory=None,publicationURL=None): protocolTag="@PROTO@/" myProtocol=["http://","https://"] givenProtocol="" if publicationDirectory == None or\ publicationURL == None: sys.stderr.write("Error: Initializing filenameToURLMappe instance \
|
a65b366e60576c35e860aa0ab34a1ec29bc5c084 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/a65b366e60576c35e860aa0ab34a1ec29bc5c084/makeCheckListWiki.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
28631,
2853,
33,
7036,
16,
28631,
1785,
33,
7036,
4672,
1771,
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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,
1001,
2738,
972,
12,
2890,
16,
28631,
2853,
33,
7036,
16,
28631,
1785,
33,
7036,
4672,
1771,
1805,
1546,
36,
25455,
36,
4898,
365,
18,
877,
21657,
33,
9614,
2505,
2207,
15937,
4528,
2207,
11929,
864,
5752,
1546,
6,
309,
20574,
2853,
422,
599,
578,
64,
20574,
1785,
422,
599,
30,
2589,
18,
11241,
18,
2626,
2932,
668,
30,
10188,
6894,
1544,
774,
1785,
863,
347,
791,
521,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
[('libtool-1.3.5-mktemp.patch' , 1), ('libtool-1.4.3-ltmain-SED.patch', 1), ('libtool-1.4.2-expsym-linux.patch', 1)],
|
[('libtool-1.4.3-ltmain-SED.patch', 1), ('libtool-1.4.2-expsym-linux.patch', 1), ('libtool-1.4.2-multilib.patch', 1), ('libtool-1.5-libtool.m4-x86_64.patch', 1)],
|
def build(self, config): if not self.wants_package(): return
|
0b4289188eb835ec9ba1ca06f2cf41b9ffe497ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/0b4289188eb835ec9ba1ca06f2cf41b9ffe497ca/bootstrap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
group by build.rev_time, build.rev, build.platform
|
group by build.rev_time, build.rev, build.platform, report.id
|
def generate_chart_data(self, req, config, category): assert category == 'lint'
|
4c334afcaaa4993736dfec97479a48779b666b03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/4c334afcaaa4993736dfec97479a48779b666b03/lint.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11563,
67,
892,
12,
2890,
16,
1111,
16,
642,
16,
3150,
4672,
1815,
3150,
422,
296,
5671,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
296,
5671,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Returns boolean value of ``item`` in ``self``.
|
Returns boolean value of ``item in self``.
|
def __contains__(self, item): """ Returns boolean value of ``item`` in ``self``. EXAMPLES:: sage: G = SymmetricGroup(16) sage: g = G.gen(0) sage: h = G.gen(1) sage: g^7*h*g*h in G True sage: G = SymmetricGroup(4) sage: g = G((1,2,3,4)) sage: h = G((1,2)) sage: H = PermutationGroup([[(1,2,3,4)], [(1,2),(3,4)]]) sage: g in H True sage: h in H False """ try: item = self(item, check=True) except: return False return True
|
317c35fede8b7240fbdacb4dd62bbce96157450d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/317c35fede8b7240fbdacb4dd62bbce96157450d/permgroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
12176,
1726,
316,
365,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
10042,
6899,
1114,
12,
2313,
13,
272,
410,
30,
314,
273,
611,
18,
4507,
12,
20,
13,
272,
410,
30,
366,
273,
611,
18,
4507,
12,
21,
13,
272,
410,
30,
314,
66,
27,
14,
76,
14,
75,
14,
76,
316,
611,
1053,
272,
410,
30,
611,
273,
10042,
6899,
1114,
12,
24,
13,
272,
410,
30,
314,
273,
611,
12443,
21,
16,
22,
16,
23,
16,
24,
3719,
272,
410,
30,
366,
273,
611,
12443,
21,
16,
22,
3719,
272,
410,
30,
670,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
16,
24,
13,
6487,
306,
12,
21,
16,
22,
3631,
12,
23,
16,
24,
25887,
5717,
272,
410,
30,
314,
316,
670,
1053,
272,
410,
30,
366,
316,
670,
1083,
3536,
775,
30,
761,
273,
365,
12,
1726,
16,
866,
33,
5510,
13,
1335,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
12176,
1726,
316,
365,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
10042,
6899,
1114,
12,
2313,
13,
272,
410,
30,
314,
273,
611,
18,
4507,
12,
20,
13,
272,
410,
30,
366,
273,
611,
18,
4507,
12,
21,
13,
272,
410,
30,
314,
66,
27,
14,
76,
14,
75,
14,
76,
316,
611,
1053,
272,
410,
30,
611,
273,
10042,
6899,
1114,
12,
24,
13,
272,
410,
30,
314,
273,
611,
12443,
21,
16,
22,
16,
23,
16,
24,
3719,
272,
410,
30,
366,
273,
611,
12443,
21,
16,
22,
3719,
272,
410,
30,
670,
273,
13813,
9245,
1114,
2
] |
raise IPCDisconnectedError("Remote end no longer connected")
|
return
|
def _send_packet(self, packet_type, data, seq = 0, timeout = None): if not self.socket: raise IPCDisconnectedError("Remote end no longer connected") if timeout == None: timeout = self._default_timeout if seq == 0: seq = self.last_seq = self.last_seq + 1
|
3ba78ab154465b2ff0620e0ded429951a6f040f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/3ba78ab154465b2ff0620e0ded429951a6f040f0/ipc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
11482,
12,
2890,
16,
4414,
67,
723,
16,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
11482,
12,
2890,
16,
4414,
67,
723,
16,
501,
16,
3833,
273,
374,
16,
2021,
273,
599,
4672,
309,
486,
365,
18,
7814,
30,
327,
225,
309,
2021,
422,
599,
30,
2021,
273,
365,
6315,
1886,
67,
4538,
309,
3833,
422,
374,
30,
3833,
273,
365,
18,
2722,
67,
5436,
273,
365,
18,
2722,
67,
5436,
397,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
u.warn(_("** report bug details to mercurial@selenic.com\n"))
|
u.warn(_("** report bug details to " "http://www.selenic.com/mercurial/bts\n")) u.warn(_("** or mercurial@selenic.com\n"))
|
def print_time(): t = get_times() u.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3]))
|
357235d4a871576de2be1c90a68c7b62e1e590bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/357235d4a871576de2be1c90a68c7b62e1e590bd/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74,
15,
9,
18,
23,
74,
5153,
82,
7923,
738,
261,
88,
63,
24,
65,
17,
87,
63,
24,
6487,
268,
63,
20,
65,
17,
87,
63,
20,
6487,
268,
63,
22,
65,
17,
87,
63,
22,
6487,
268,
63,
21,
65,
17,
87,
63,
21,
6487,
268,
63,
23,
65,
17,
87,
63,
23,
22643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74,
15,
9,
18,
23,
74,
5153,
82,
7923,
738,
261,
88,
63,
24,
65,
17,
87,
63,
24,
6487,
268,
63,
20,
65,
17,
87,
63,
20,
6487,
268,
63,
22,
65,
17,
87,
63,
22,
6487,
268,
63,
21,
65,
17,
87,
63,
21,
6487,
268,
63,
23,
65,
17,
87,
63,
23,
22643,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, out=None):
|
def __init__(self, out=None, encoding="iso-8859-1"):
|
def __init__(self, out=None): if out is None: import sys out = sys.stdout handler.ContentHandler.__init__(self) self._out = out
|
1ae857dd21d675f660ac4264cbe9baea51cad6c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1ae857dd21d675f660ac4264cbe9baea51cad6c7/saxutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
596,
33,
7036,
16,
2688,
1546,
9699,
17,
17258,
17,
21,
6,
4672,
309,
596,
353,
599,
30,
1930,
2589,
596,
273,
2589,
18,
10283,
1838,
18,
1350,
1503,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
659,
273,
596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
596,
273,
2589,
18,
10283,
1838,
18,
1350,
1503,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
659,
273,
596,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 dump_blocks(self, blocks, filename):
|
def dump_blocks(self, blocks, filename=None):
|
def dump_blocks(self, blocks, filename): i = 0 while 1: ## Split the file into smaller runs if len(blocks) - i > self.MAX_SIZE: run = blocks[i:i+self.MAX_SIZE] self.dump_block_run(run, inode = filename) i += self.MAX_SIZE else: run = blocks[i:] self.dump_block_run(run, inode = filename) break
|
94f16c0b6a9b9545c48ee8479d37c9bae0e039b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5569/94f16c0b6a9b9545c48ee8479d37c9bae0e039b0/imager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
7996,
12,
2890,
16,
4398,
16,
1544,
33,
7036,
4672,
277,
273,
374,
1323,
404,
30,
7541,
5385,
326,
585,
1368,
10648,
7597,
309,
562,
12,
7996,
13,
300,
277,
405,
365,
18,
6694,
67,
4574,
30,
1086,
273,
4398,
63,
77,
30,
77,
15,
2890,
18,
6694,
67,
4574,
65,
365,
18,
8481,
67,
2629,
67,
2681,
12,
2681,
16,
17870,
273,
1544,
13,
277,
1011,
365,
18,
6694,
67,
4574,
469,
30,
1086,
273,
4398,
63,
77,
26894,
365,
18,
8481,
67,
2629,
67,
2681,
12,
2681,
16,
17870,
273,
1544,
13,
898,
2,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
7996,
12,
2890,
16,
4398,
16,
1544,
33,
7036,
4672,
277,
273,
374,
1323,
404,
30,
7541,
5385,
326,
585,
1368,
10648,
7597,
309,
562,
12,
7996,
13,
300,
277,
405,
365,
18,
6694,
67,
4574,
30,
1086,
273,
4398,
63,
77,
30,
77,
15,
2890,
18,
6694,
67,
4574,
65,
365,
18,
8481,
67,
2629,
67,
2681,
12,
2681,
16,
17870,
273,
1544,
13,
277,
1011,
365,
18,
6694,
67,
4574,
469,
30,
1086,
273,
4398,
63,
77,
26894,
365,
18,
8481,
67,
2629,
67,
2681,
12,
2681,
16,
17870,
273,
1544,
13,
898,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.transparency = transparency
|
self.transparency = transparency
|
def __init__(self, author=None, category=None, content=None, atom_id=None, link=None, published=None, title=None, updated=None, transparency=None, comments=None, event_status=None, send_event_notifications=None, visibility=None, recurrence=None, recurrence_exception=None, where=None, when=None, who=None, quick_add=None, extended_property=None, original_event=None, batch_operation=None, batch_id=None, batch_status=None, sequence=None, reminder=None, sync_event=None, uid=None, guests_can_invite_others=None, guests_can_modify=None, guests_can_see_guests=None, extension_elements=None, extension_attributes=None, text=None):
|
220fb3846b34b52b462236a865acc3580b5bf99c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/220fb3846b34b52b462236a865acc3580b5bf99c/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
2077,
33,
7036,
16,
3526,
33,
7036,
16,
27472,
33,
7036,
16,
5678,
33,
7036,
16,
871,
67,
2327,
33,
7036,
16,
1366,
67,
2575,
67,
15286,
33,
7036,
16,
9478,
33,
7036,
16,
25939,
33,
7036,
16,
25939,
67,
4064,
33,
7036,
16,
1625,
33,
7036,
16,
1347,
33,
7036,
16,
10354,
33,
7036,
16,
9549,
67,
1289,
33,
7036,
16,
7021,
67,
4468,
33,
7036,
16,
2282,
67,
2575,
33,
7036,
16,
2581,
67,
7624,
33,
7036,
16,
2581,
67,
350,
33,
7036,
16,
2581,
67,
2327,
33,
7036,
16,
3102,
33,
7036,
16,
849,
14055,
33,
7036,
16,
3792,
67,
2575,
33,
7036,
16,
4555,
33,
7036,
16,
13051,
87,
67,
4169,
67,
27154,
67,
28197,
33,
7036,
16,
13051,
87,
67,
4169,
67,
17042,
33,
7036,
16,
13051,
87,
67,
4169,
67,
5946,
67,
18908,
87,
33,
7036,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
2077,
33,
7036,
16,
3526,
33,
7036,
16,
27472,
33,
7036,
16,
5678,
33,
7036,
16,
871,
67,
2327,
33,
7036,
16,
1366,
67,
2575,
67,
15286,
33,
7036,
16,
9478,
33,
7036,
16,
25939,
33,
7036,
16,
25939,
67,
4064,
33,
7036,
16,
1625,
33,
7036,
16,
1347,
33,
7036,
16,
10354,
33,
7036,
16,
9549,
67,
1289,
33,
7036,
16,
7021,
67,
4468,
33,
7036,
16,
2282,
67,
2575,
33,
7036,
16,
2581,
67,
7624,
33,
7036,
16,
2581,
67,
350,
33,
7036,
16,
2
] |
if nextToRect != QRect(0, 0, 0, 0): rotation = nextTo.rotation else:
|
def resize(self, scaled): """resize the tile to the board size""" if self.rect(scaled): return self.rect(scaled) newMetrics = self.board.metrics(scaled) nextTo = self.nextTo if nextTo: if not nextTo.rect(scaled): nextTo.resize(newMetrics, scaled) nextToRect = nextTo.rect(scaled) else: nextToRect = QRect(0, 0, 0, 0) newSize = QSize(newMetrics.tileSize) if self.rotation % 180 != 0: newSize.transpose() result = QRect(0, 0, 0, 0) result.setSize(newSize) xunit = newMetrics.faceSize.width() yunit = newMetrics.faceSize.height() nextTo = self.nextTo if nextTo: nextToRect = nextTo.rect(scaled) else: nextToRect = QRect(0, 0, 0, 0) if nextToRect != QRect(0, 0, 0, 0): rotation = nextTo.rotation else: rotation = self.rotation if rotation % 180 != 0: xunit, yunit = yunit, xunit result.moveTo(nextToRect.topLeft()) result.translate(self.xoffset*xunit, self.yoffset*yunit) # if we are on a higher level, shift: if self.level > 0: shiftX = 0 shiftY = 0 stepX = self.level*newMetrics.shadowWidth()/2 stepY = self.level*newMetrics.shadowHeight()/2 if 'E' in self.board.lightSource: shiftX = stepX if 'W' in self.board.lightSource: shiftX = -stepX if 'N' in self.board.lightSource: shiftY = -stepY if 'S' in self.board.lightSource: shiftY = stepY result.translate(shiftX, shiftY) if scaled: self.scaledRect = result else: self.unscaledRect = result return result
|
7b224c7daa06c9fecc655bccd2dc116a8deab304 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/7b224c7daa06c9fecc655bccd2dc116a8deab304/board.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
12,
2890,
16,
12304,
4672,
3536,
15169,
326,
4769,
358,
326,
11094,
963,
8395,
309,
365,
18,
2607,
12,
20665,
4672,
327,
365,
18,
2607,
12,
20665,
13,
394,
5653,
273,
365,
18,
3752,
18,
9597,
12,
20665,
13,
1024,
774,
273,
365,
18,
4285,
774,
309,
1024,
774,
30,
309,
486,
1024,
774,
18,
2607,
12,
20665,
4672,
1024,
774,
18,
15169,
12,
2704,
5653,
16,
12304,
13,
1024,
774,
6120,
273,
1024,
774,
18,
2607,
12,
20665,
13,
469,
30,
1024,
774,
6120,
273,
2238,
6120,
12,
20,
16,
374,
16,
374,
16,
374,
13,
21402,
273,
2238,
1225,
12,
2704,
5653,
18,
15368,
1225,
13,
309,
365,
18,
18807,
738,
9259,
480,
374,
30,
21402,
18,
2338,
4150,
1435,
563,
273,
2238,
6120,
12,
20,
16,
374,
16,
374,
16,
374,
13,
563,
18,
542,
1225,
12,
2704,
1225,
13,
619,
4873,
273,
394,
5653,
18,
865,
1225,
18,
2819,
1435,
677,
4873,
273,
394,
5653,
18,
865,
1225,
18,
4210,
1435,
1024,
774,
273,
365,
18,
4285,
774,
309,
1024,
774,
30,
1024,
774,
6120,
273,
1024,
774,
18,
2607,
12,
20665,
13,
469,
30,
1024,
774,
6120,
273,
2238,
6120,
12,
20,
16,
374,
16,
374,
16,
374,
13,
6752,
273,
365,
18,
18807,
309,
6752,
738,
9259,
480,
374,
30,
619,
4873,
16,
677,
4873,
273,
677,
4873,
16,
619,
4873,
563,
18,
8501,
774,
12,
4285,
774,
6120,
18,
3669,
3910,
10756,
563,
18,
13929,
12,
2890,
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,
7041,
12,
2890,
16,
12304,
4672,
3536,
15169,
326,
4769,
358,
326,
11094,
963,
8395,
309,
365,
18,
2607,
12,
20665,
4672,
327,
365,
18,
2607,
12,
20665,
13,
394,
5653,
273,
365,
18,
3752,
18,
9597,
12,
20665,
13,
1024,
774,
273,
365,
18,
4285,
774,
309,
1024,
774,
30,
309,
486,
1024,
774,
18,
2607,
12,
20665,
4672,
1024,
774,
18,
15169,
12,
2704,
5653,
16,
12304,
13,
1024,
774,
6120,
273,
1024,
774,
18,
2607,
12,
20665,
13,
469,
30,
1024,
774,
6120,
273,
2238,
6120,
12,
20,
16,
374,
16,
374,
16,
374,
13,
21402,
273,
2238,
1225,
12,
2704,
5653,
18,
15368,
1225,
13,
309,
365,
18,
18807,
738,
9259,
480,
374,
30,
2
] |
|
for var in doc.variables.items(): pass
|
for var in doc.variables.values(): self._get_index_terms(var.descr, var, terms, links) for (field, arg, descr) in var.metadata: self._get_index_terms(descr, var, terms, links)
|
def _extract_term_index(self): """ Extract the set of terms that should be indexed from all documented docstrings. Return the extracted set as a list of tuples of the form C{(key, term, [links])}. This list is used by L{write_indices()} to construct the term index. @rtype: C{list} of C{(string, ParsedDocstring, list of ValueDoc)} """ terms = {} links = {} for doc in self.valdocs: self._get_index_terms(doc.descr, doc, terms, links) if doc.metadata not in (None, UNKNOWN): for (field, arg, descr) in doc.metadata: self._get_index_terms(descr, doc, terms, links) # summary? if isinstance(doc, NamespaceDoc): for var in doc.variables.items(): pass # [XX] ????? add these??? elif isinstance(doc, RoutineDoc): self._get_index_terms(doc.return_descr, doc, terms, links) self._get_index_terms(doc.return_type, doc, terms, links) if doc.arg_descrs not in (None, UNKNOWN): for arg, descr in doc.arg_descrs: self._get_index_terms(descr, doc, terms, links) if doc.arg_types not in (None, UNKNOWN): for arg, descr in doc.arg_types.items(): self._get_index_terms(descr, doc, terms, links) if doc.exception_descrs not in (None, UNKNOWN): for excname, descr in doc.exception_descrs: self._get_index_terms(descr, doc, terms, links) elif isinstance(doc, PropertyDoc): self._get_index_terms(doc.type_descr, doc, terms, links) # Combine terms & links into one list keys = terms.keys() keys.sort() return [(k, terms[k], links[k]) for k in keys]
|
28d88ae14617650a4a829fae94668100dc4e2b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/28d88ae14617650a4a829fae94668100dc4e2b05/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
8152,
326,
444,
434,
6548,
716,
1410,
506,
8808,
628,
777,
23051,
997,
10219,
18,
225,
2000,
326,
9438,
444,
487,
279,
666,
434,
10384,
434,
326,
646,
385,
95,
12,
856,
16,
2481,
16,
306,
7135,
5717,
5496,
1220,
666,
353,
1399,
635,
511,
95,
2626,
67,
6836,
17767,
358,
4872,
326,
2481,
770,
18,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
385,
95,
12,
1080,
16,
19244,
1759,
1080,
16,
666,
434,
1445,
1759,
16869,
3536,
6548,
273,
2618,
4716,
273,
2618,
364,
997,
316,
365,
18,
1125,
8532,
30,
365,
6315,
588,
67,
1615,
67,
10112,
12,
2434,
18,
28313,
16,
997,
16,
6548,
16,
4716,
13,
309,
997,
18,
4165,
486,
316,
261,
7036,
16,
13598,
4672,
364,
261,
1518,
16,
1501,
16,
18426,
13,
316,
997,
18,
4165,
30,
365,
6315,
588,
67,
1615,
67,
10112,
12,
28313,
16,
997,
16,
6548,
16,
4716,
13,
468,
4916,
35,
309,
1549,
12,
2434,
16,
6005,
1759,
4672,
364,
569,
316,
997,
18,
7528,
18,
2372,
13332,
365,
6315,
588,
67,
1615,
67,
10112,
12,
1401,
18,
28313,
16,
569,
16,
6548,
16,
4716,
13,
364,
261,
1518,
16,
1501,
16,
18426,
13,
316,
569,
18,
4165,
30,
365,
6315,
588,
67,
1615,
67,
10112,
12,
28313,
16,
569,
16,
6548,
16,
4716,
13,
468,
306,
5619,
65,
5317,
14646,
35,
527,
4259,
14646,
35,
1327,
1549,
12,
2434,
16,
7271,
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,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
8152,
326,
444,
434,
6548,
716,
1410,
506,
8808,
628,
777,
23051,
997,
10219,
18,
225,
2000,
326,
9438,
444,
487,
279,
666,
434,
10384,
434,
326,
646,
385,
95,
12,
856,
16,
2481,
16,
306,
7135,
5717,
5496,
1220,
666,
353,
1399,
635,
511,
95,
2626,
67,
6836,
17767,
358,
4872,
326,
2481,
770,
18,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
385,
95,
12,
1080,
16,
19244,
1759,
1080,
16,
666,
434,
1445,
1759,
16869,
3536,
6548,
273,
2618,
4716,
273,
2618,
364,
997,
316,
365,
18,
1125,
8532,
30,
365,
6315,
588,
67,
1615,
67,
10112,
12,
2434,
18,
28313,
16,
997,
16,
2
] |
return self.GetNodeValue(type,st)
|
return self.getNodeValue(type,st)
|
def _get_NodeValue(self, type=type, st=type('')): return self.GetNodeValue(type,st)
|
8835bf479a848bd4d8f51a8327f97c91cee1c2ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8835bf479a848bd4d8f51a8327f97c91cee1c2ab/STDOM.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
907,
620,
12,
2890,
16,
618,
33,
723,
16,
384,
33,
723,
2668,
26112,
30,
327,
365,
18,
588,
907,
620,
12,
723,
16,
334,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
907,
620,
12,
2890,
16,
618,
33,
723,
16,
384,
33,
723,
2668,
26112,
30,
327,
365,
18,
588,
907,
620,
12,
723,
16,
334,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
episode['show'] = showName episode['season'] = int( matchSN.group(1) )
|
episode['show'] = showName episode['season'] = int( matchSN.group(1) ) episode['episode'] = 0 episode['title'] = "" episode['url'] = "" episode['airdate'] = ( 0, 0, 0 )
|
def getEpisodeList(self, id): # Clear episodeList self.episodeList = []
|
0bf7811c929cfbccf828e72ca5b2ae394dfebebe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/765/0bf7811c929cfbccf828e72ca5b2ae394dfebebe/TvRage.py
|
[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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
84,
11802,
682,
12,
2890,
16,
612,
4672,
468,
10121,
17054,
682,
365,
18,
29687,
682,
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
] |
list.append(item)
|
if year != '0000': try: if int(item.date) == int(year): list.append(item) except: pass else: try: x = item.date except: list.append(item)
|
def browse_search_album_by_artist(self, artist, album): list = [] for item in self.conn.do.search('album', album, 'artist', artist): # Make sure it's an exact match: if artist.lower() == item.artist.lower() and album.lower() == item.album.lower(): list.append(item) return list
|
5702d6d9e3d709a24b93d00b466aeb171fa3d0c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/5702d6d9e3d709a24b93d00b466aeb171fa3d0c9/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
3072,
67,
25090,
67,
1637,
67,
25737,
12,
2890,
16,
15469,
16,
14844,
4672,
666,
273,
5378,
364,
761,
316,
365,
18,
4646,
18,
2896,
18,
3072,
2668,
25090,
2187,
14844,
16,
296,
25737,
2187,
15469,
4672,
468,
4344,
3071,
518,
1807,
392,
5565,
845,
30,
309,
15469,
18,
8167,
1435,
422,
761,
18,
25737,
18,
8167,
1435,
471,
14844,
18,
8167,
1435,
422,
761,
18,
25090,
18,
8167,
13332,
225,
309,
3286,
480,
296,
2787,
4278,
225,
775,
30,
309,
509,
12,
1726,
18,
712,
13,
422,
509,
12,
6874,
4672,
666,
18,
6923,
12,
1726,
13,
1335,
30,
1342,
469,
30,
225,
775,
30,
619,
273,
761,
18,
712,
1335,
30,
666,
18,
6923,
12,
1726,
13,
327,
666,
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,
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518,
1807,
392,
5565,
845,
30,
309,
15469,
18,
8167,
1435,
422,
761,
18,
25737,
18,
8167,
1435,
471,
14844,
18,
8167,
1435,
422,
761,
18,
25090,
18,
8167,
13332,
225,
309,
3286,
480,
296,
2787,
4278,
225,
775,
30,
309,
509,
12,
1726,
18,
712,
13,
422,
509,
12,
6874,
4672,
666,
18,
6923,
12,
1726,
13,
1335,
30,
1342,
469,
30,
225,
775,
30,
619,
273,
761,
18,
712,
1335,
30,
666,
18,
6923,
2
] |
out[0] = variable
|
out[0] = theano._asarray(variable, str(variable.dtype))
|
def perform(self, node, (a,b), (out,)): if a.shape[1] != b.shape[0]: raise ValueError('shape mismatch in StructuredDot.perform', (a.shape, b.shape))
|
b72ed60b8711da0371b64cd450b3a687344817c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/b72ed60b8711da0371b64cd450b3a687344817c0/basic.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
69,
16,
70,
3631,
261,
659,
16,
3719,
30,
309,
279,
18,
4867,
63,
21,
65,
480,
324,
18,
4867,
63,
20,
14542,
1002,
2068,
2668,
4867,
13484,
316,
7362,
2862,
10412,
18,
16092,
2187,
261,
69,
18,
4867,
16,
324,
18,
4867,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
69,
16,
70,
3631,
261,
659,
16,
3719,
30,
309,
279,
18,
4867,
63,
21,
65,
480,
324,
18,
4867,
63,
20,
14542,
1002,
2068,
2668,
4867,
13484,
316,
7362,
2862,
10412,
18,
16092,
2187,
261,
69,
18,
4867,
16,
324,
18,
4867,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
brush = wx.Brush(wx.NamedColour(self.week_color), wx.SOLID) self.DC.SetBrush(brush) self.DC.DrawRectangle((self.gridx[0], self.gridy[0]), (rect_w+1, height))
|
brush = wx.Brush(MakeColor(self.colors[COLOR_HEADER_BACKGROUND]), wx.SOLID) DC.SetBrush(brush)
|
def DrawWeek(self): # draw the week days width = self.gridx[1]-self.gridx[0] height = self.gridy[1] - self.gridy[0] rect_w = self.gridx[7]-self.gridx[0]
|
b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
6630,
12,
2890,
4672,
377,
468,
3724,
326,
4860,
4681,
1835,
273,
365,
18,
5222,
92,
63,
21,
65,
17,
2890,
18,
5222,
92,
63,
20,
65,
2072,
273,
365,
18,
5222,
93,
63,
21,
65,
300,
365,
18,
5222,
93,
63,
20,
65,
4917,
67,
91,
273,
365,
18,
5222,
92,
63,
27,
65,
17,
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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
6630,
12,
2890,
4672,
377,
468,
3724,
326,
4860,
4681,
1835,
273,
365,
18,
5222,
92,
63,
21,
65,
17,
2890,
18,
5222,
92,
63,
20,
65,
2072,
273,
365,
18,
5222,
93,
63,
21,
65,
300,
365,
18,
5222,
93,
63,
20,
65,
4917,
67,
91,
273,
365,
18,
5222,
92,
63,
27,
65,
17,
2890,
18,
5222,
92,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
QItemDelegate.__init__(self, parent)
|
QStyledItemDelegate.__init__(self, parent)
|
def __init__(self, parent): QItemDelegate.__init__(self, parent) self._parent = parent self.star_path = QPainterPath() self.star_path.moveTo(90, 50) for i in range(1, 5): self.star_path.lineTo(50 + 40 * cos(0.8 * i * pi), \ 50 + 40 * sin(0.8 * i * pi)) self.star_path.closeSubpath() self.star_path.setFillRule(Qt.WindingFill) gradient = QLinearGradient(0, 0, 0, 100) gradient.setColorAt(0.0, self.COLOR) gradient.setColorAt(1.0, self.COLOR) self.brush = QBrush(gradient) self.factor = self.SIZE/100.
|
d128c2ef210bdfa2701acd6502b6bbee87965ca0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/d128c2ef210bdfa2701acd6502b6bbee87965ca0/library.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
2238,
24273,
1259,
1180,
9586,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
6315,
2938,
273,
982,
365,
18,
10983,
67,
803,
273,
2238,
15775,
743,
1435,
365,
18,
10983,
67,
803,
18,
8501,
774,
12,
9349,
16,
6437,
13,
364,
277,
316,
1048,
12,
21,
16,
1381,
4672,
365,
18,
10983,
67,
803,
18,
1369,
774,
12,
3361,
397,
8063,
380,
4987,
12,
20,
18,
28,
380,
277,
380,
4790,
3631,
521,
6437,
397,
8063,
380,
5367,
12,
20,
18,
28,
380,
277,
380,
4790,
3719,
365,
18,
10983,
67,
803,
18,
4412,
1676,
803,
1435,
365,
18,
10983,
67,
803,
18,
542,
8026,
2175,
12,
23310,
18,
59,
728,
310,
8026,
13,
10292,
273,
2238,
15982,
15651,
12,
20,
16,
374,
16,
374,
16,
2130,
13,
10292,
18,
542,
2957,
861,
12,
20,
18,
20,
16,
365,
18,
10989,
13,
10292,
18,
542,
2957,
861,
12,
21,
18,
20,
16,
365,
18,
10989,
13,
365,
18,
2848,
1218,
273,
2238,
19114,
1218,
12,
20219,
13,
365,
18,
6812,
273,
365,
18,
4574,
19,
6625,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
2238,
24273,
1259,
1180,
9586,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
6315,
2938,
273,
982,
365,
18,
10983,
67,
803,
273,
2238,
15775,
743,
1435,
365,
18,
10983,
67,
803,
18,
8501,
774,
12,
9349,
16,
6437,
13,
364,
277,
316,
1048,
12,
21,
16,
1381,
4672,
365,
18,
10983,
67,
803,
18,
1369,
774,
12,
3361,
397,
8063,
380,
4987,
12,
20,
18,
28,
380,
277,
380,
4790,
3631,
521,
6437,
397,
8063,
380,
5367,
12,
20,
18,
28,
380,
277,
380,
4790,
3719,
365,
18,
10983,
67,
803,
18,
4412,
1676,
803,
1435,
365,
18,
10983,
67,
803,
18,
542,
8026,
2175,
12,
23310,
18,
2
] |
special = re.compile('''[<>'"]''') bare_ampersand = re.compile("&(?!
|
def fatalError(self, exc): self.error(exc) raise exc
|
b46d7e4f5773873813bf0c2abf7f311d20f6ee9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/b46d7e4f5773873813bf0c2abf7f311d20f6ee9d/feedparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10081,
668,
12,
2890,
16,
3533,
4672,
365,
18,
1636,
12,
10075,
13,
1002,
3533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
|
""" Return the discriminant of the quadratic extension K=Q(\sqrt{D}), i.e.
|
r""" Return the discriminant of the quadratic extension $K=Q(\sqrt{D})$, i.e.
|
def fundamental_discriminant(D): """ Return the discriminant of the quadratic extension K=Q(\sqrt{D}), i.e. an integer d congruent to either 0 or 1, mod 4, and such that, at most, the only square dividing it is 4. """ D = Integer(D) D = D.square_free_part() if D%4 == 1: return D return 4*D
|
bcf5a7291b0e34907611b6e66dd7cbe5746dd991 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bcf5a7291b0e34907611b6e66dd7cbe5746dd991/quaternion_algebra.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1074,
14773,
287,
67,
2251,
9496,
20030,
12,
40,
4672,
436,
8395,
2000,
326,
29649,
20030,
434,
326,
26146,
2710,
271,
47,
33,
53,
4713,
24492,
95,
40,
6792,
8,
16,
277,
18,
73,
18,
392,
3571,
302,
356,
3197,
10744,
358,
3344,
374,
578,
404,
16,
681,
1059,
16,
471,
4123,
716,
16,
622,
4486,
16,
326,
1338,
8576,
3739,
10415,
518,
353,
1059,
18,
3536,
463,
273,
2144,
12,
40,
13,
463,
273,
463,
18,
19719,
67,
9156,
67,
2680,
1435,
309,
463,
9,
24,
422,
404,
30,
327,
463,
327,
1059,
14,
40,
225,
2,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1074,
14773,
287,
67,
2251,
9496,
20030,
12,
40,
4672,
436,
8395,
2000,
326,
29649,
20030,
434,
326,
26146,
2710,
271,
47,
33,
53,
4713,
24492,
95,
40,
6792,
8,
16,
277,
18,
73,
18,
392,
3571,
302,
356,
3197,
10744,
358,
3344,
374,
578,
404,
16,
681,
1059,
16,
471,
4123,
716,
16,
622,
4486,
16,
326,
1338,
8576,
3739,
10415,
518,
353,
1059,
18,
3536,
463,
273,
2144,
12,
40,
13,
463,
273,
463,
18,
19719,
67,
9156,
67,
2680,
1435,
309,
463,
9,
24,
422,
404,
30,
327,
463,
327,
1059,
14,
40,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
feats[11]=feats[8]-HXY1/max(HX,HY) feats[12]=sqrt(1-exp(-2*(HXY2-feats[8])))
|
feats[di,0]=(p**2).sum() feats[di,1]=(k**2*px_minus_y).sum() feats[di,2]=1./sx/sy * ((i*j*p).sum() - ux*uy) feats[di,3]=((k-ux)**2*px).sum() feats[di,4]=(1./(1+(i-j)**2)*p).sum() feats[di,5]=(arange(2*N)*px_plus_y).sum() feats[di,6]=((arange(2*N)-feats[di,5])**2*px_plus_y).sum() feats[di,7]=entropy(px_plus_y) feats[di,8]=entropy(p) feats[di,9]=px_minus_y.var() feats[di,10]=entropy(px_minus_y) HX=entropy(px) HY=entropy(py) crosspxpy=outer(px,py) crosspxpy[crosspxpy == 0]=1. HXY1=-(p*log2(crosspxpy)).sum() HXY2=entropy(crosspxpy) feats[di,11]=(feats[di,8]-HXY1)/max(HX,HY) feats[di,12]=sqrt(1-exp(-2*(HXY2-feats[di,8])))
|
def haralickfeatures(img,directions = ALL_DIRECTIONS): """ Computes Haralick texture features for img. Returns a 13-vector of doubles """ if img.max() > 256: img = asarray(double(img) * 256./img.max(),uint8) p=computecooccurence(img,directions) N=256 feats=zeros(13) px=p.sum(0) py=p.sum(1) k=arange(N) ux=(k*px).sum() uy=(k*py).sum() sx=sqrt( (px*(k-ux)**2).sum() ) sy=sqrt( (py*(k-uy)**2).sum() ) px_plus_y=array([p.trace(G-N) for G in xrange(2*N)]) px_minus_y=array([p.trace(G)+p.trace(-G) for G in xrange(N)]) px_minus_y[0] /= 2 g=array([[abs(i-j) for i in xrange(N)] for j in xrange(N)]) i,i=mgrid[:N,:N] feats[0]=(p**2).sum() feats[1]=(k**2*px_minus_y).sum() feats[2]=1./sx/sy * ((i*j*p).sum() - ux*uy) feats[3]=((k-ux)**2*px).sum() feats[4]=(1./(1+(i-j)**2)*p).sum() feats[5]=(arange(2*N)*px_plus_y).sum() feats[6]=((arange(2*N)-feats[5])**2*px_plus_y).sum() # There is some confusion w.r.t. this feature. # In some sources, it's feats[7] that is used feats[7]=entropy(px_plus_y) feats[8]=entropy(p) feats[9]=px_minus_y.var() feats[10]=entropy(px_minus_y) HX=entropy(px) HY=entropy(py) crosspxpy=dot(reshape(px,(N,1)),reshape(py,(1,N))) crosspxpy[crosspxpy == 0]=1. # This makes the log be zero and everything works OK below: HXY1=-(p*log(crosspxpy)).sum() HXY2=entropy(crosspxpy) feats[11]=feats[8]-HXY1/max(HX,HY) feats[12]=sqrt(1-exp(-2*(HXY2-feats[8]))) return feats
|
d3802838f5b00bbb2c5160b954634d232577723f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/d3802838f5b00bbb2c5160b954634d232577723f/texture.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17895,
287,
1200,
7139,
12,
6081,
16,
9855,
87,
273,
8061,
67,
30516,
55,
4672,
3536,
14169,
281,
670,
297,
287,
1200,
11428,
4467,
364,
3774,
18,
225,
2860,
279,
5958,
17,
7737,
434,
31446,
3536,
309,
3774,
18,
1896,
1435,
405,
8303,
30,
3774,
273,
10455,
12,
9056,
12,
6081,
13,
380,
8303,
18,
19,
6081,
18,
1896,
9334,
11890,
28,
13,
293,
33,
13406,
557,
83,
25049,
25267,
12,
6081,
16,
9855,
87,
13,
423,
33,
5034,
1656,
2323,
33,
22008,
12,
3437,
13,
10318,
33,
84,
18,
1364,
12,
20,
13,
2395,
33,
84,
18,
1364,
12,
21,
13,
417,
33,
297,
726,
12,
50,
13,
582,
92,
28657,
79,
14,
4430,
2934,
1364,
1435,
582,
93,
28657,
79,
14,
2074,
2934,
1364,
1435,
13280,
33,
24492,
12,
261,
4430,
21556,
79,
17,
2616,
13,
636,
22,
2934,
1364,
1435,
262,
1393,
33,
24492,
12,
261,
2074,
21556,
79,
17,
9835,
13,
636,
22,
2934,
1364,
1435,
262,
10318,
67,
10103,
67,
93,
33,
1126,
3816,
84,
18,
5129,
12,
43,
17,
50,
13,
364,
611,
316,
12314,
12,
22,
14,
50,
13,
5717,
10318,
67,
19601,
67,
93,
33,
1126,
3816,
84,
18,
5129,
12,
43,
27921,
84,
18,
5129,
19236,
43,
13,
364,
611,
316,
12314,
12,
50,
13,
5717,
10318,
67,
19601,
67,
93,
63,
20,
65,
9531,
576,
314,
33,
1126,
3816,
63,
5113,
12,
77,
17,
78,
13,
364,
277,
316,
12314,
12,
50,
25887,
364,
525,
316,
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,
17895,
287,
1200,
7139,
12,
6081,
16,
9855,
87,
273,
8061,
67,
30516,
55,
4672,
3536,
14169,
281,
670,
297,
287,
1200,
11428,
4467,
364,
3774,
18,
225,
2860,
279,
5958,
17,
7737,
434,
31446,
3536,
309,
3774,
18,
1896,
1435,
405,
8303,
30,
3774,
273,
10455,
12,
9056,
12,
6081,
13,
380,
8303,
18,
19,
6081,
18,
1896,
9334,
11890,
28,
13,
293,
33,
13406,
557,
83,
25049,
25267,
12,
6081,
16,
9855,
87,
13,
423,
33,
5034,
1656,
2323,
33,
22008,
12,
3437,
13,
10318,
33,
84,
18,
1364,
12,
20,
13,
2395,
33,
84,
18,
1364,
12,
21,
13,
417,
33,
297,
726,
12,
50,
13,
582,
92,
28657,
79,
14,
4430,
2934,
1364,
1435,
2
] |
try: filename = form[upload_context.nameInForm].filename or '' remotefile = form[upload_context.nameInForm].file except (KeyError, AttributeError): pass else:
|
fieldstorage_file = form.getFile(upload_context.nameInForm) if fieldstorage_file is not None: filename = fieldstorage_file.filename or '' remotefile = fieldstorage_file.file
|
def accept(self, context, form): import os.path sources = [] url_context = context.entry(self, context.name+'-url') servfile_context = context.entry(self, context.name+'-sid') filename_context = context.entry(self, context.name+'-filename')
|
9f6e6ddb6305fa94384b6e80e2116449de1973ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1872/9f6e6ddb6305fa94384b6e80e2116449de1973ac/Fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
819,
16,
646,
4672,
1930,
1140,
18,
803,
225,
5550,
273,
5378,
880,
67,
2472,
273,
819,
18,
4099,
12,
2890,
16,
819,
18,
529,
6797,
17,
718,
6134,
13515,
768,
67,
2472,
273,
819,
18,
4099,
12,
2890,
16,
819,
18,
529,
6797,
17,
7453,
6134,
1544,
67,
2472,
273,
819,
18,
4099,
12,
2890,
16,
819,
18,
529,
6797,
17,
3459,
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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
18,
529,
6797,
17,
7453,
6134,
1544,
67,
2472,
273,
819,
18,
4099,
12,
2890,
16,
819,
18,
529,
6797,
17,
3459,
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
] |
def capture_image(self):
|
def capture_image(self, savefilename):
|
def capture_image(self): screensize = self.get_screen_size()
|
c48035547176d9484581a463bd2171b957b4567b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3638/c48035547176d9484581a463bd2171b957b4567b/timedscreenshot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7477,
67,
2730,
12,
2890,
16,
1923,
3459,
4672,
225,
888,
266,
773,
554,
273,
365,
18,
588,
67,
9252,
67,
1467,
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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225,
888,
266,
773,
554,
273,
365,
18,
588,
67,
9252,
67,
1467,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if file.endswith(".gz"):
|
if filename.endswith(".gz"):
|
def unpackSources(self, builddir):
|
7e87e4a2066ad87e01658b5a03e8e4dbdf32fde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/7e87e4a2066ad87e01658b5a03e8e4dbdf32fde2/recipe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
8628,
12,
2890,
16,
25666,
330,
449,
481,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
8628,
12,
2890,
16,
25666,
330,
449,
481,
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
] |
return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8')
|
if hasattr(locale, 'nl_langinfo'): return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8') Months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] return Site.mediawiki_message(Months[num-1])
|
def int2month(num): """Returns the locale's full name of month 'num' (1-12).""" return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8')
|
2a65ad8edfdf63daf22bb0ff8dfba958ff565976 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/2a65ad8edfdf63daf22bb0ff8dfba958ff565976/archivebot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
509,
22,
7496,
12,
2107,
4672,
3536,
1356,
326,
2573,
1807,
1983,
508,
434,
3138,
296,
2107,
11,
261,
21,
17,
2138,
13,
12123,
309,
3859,
12,
6339,
16,
296,
14039,
67,
4936,
1376,
11,
4672,
327,
2573,
18,
14039,
67,
4936,
1376,
12,
6339,
18,
17667,
67,
21,
15,
2107,
17,
21,
2934,
3922,
2668,
3158,
17,
28,
6134,
10337,
87,
273,
10228,
78,
304,
24335,
2187,
296,
3030,
2848,
24335,
2187,
296,
81,
991,
2187,
296,
438,
86,
330,
2187,
296,
24877,
2187,
296,
78,
7556,
2187,
296,
78,
332,
93,
2187,
296,
6480,
641,
2187,
296,
307,
337,
2558,
2187,
296,
13410,
83,
744,
2187,
296,
82,
1527,
2558,
2187,
296,
323,
311,
81,
744,
3546,
327,
9063,
18,
5829,
13044,
67,
2150,
12,
19749,
63,
2107,
17,
21,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
509,
22,
7496,
12,
2107,
4672,
3536,
1356,
326,
2573,
1807,
1983,
508,
434,
3138,
296,
2107,
11,
261,
21,
17,
2138,
13,
12123,
309,
3859,
12,
6339,
16,
296,
14039,
67,
4936,
1376,
11,
4672,
327,
2573,
18,
14039,
67,
4936,
1376,
12,
6339,
18,
17667,
67,
21,
15,
2107,
17,
21,
2934,
3922,
2668,
3158,
17,
28,
6134,
10337,
87,
273,
10228,
78,
304,
24335,
2187,
296,
3030,
2848,
24335,
2187,
296,
81,
991,
2187,
296,
438,
86,
330,
2187,
296,
24877,
2187,
296,
78,
7556,
2187,
296,
78,
332,
93,
2187,
296,
6480,
641,
2187,
296,
307,
337,
2558,
2187,
296,
13410,
83,
744,
2187,
296,
82,
1527,
2558,
2187,
296,
323,
311,
81,
744,
2
] |
message = _from_svn(self._get_prop(core.SVN_PROP_REVISION_LOG)) author = _from_svn(self._get_prop(core.SVN_PROP_REVISION_AUTHOR))
|
message = self._get_prop(core.SVN_PROP_REVISION_LOG) author = self._get_prop(core.SVN_PROP_REVISION_AUTHOR) message = message and to_unicode(message, 'utf-8') author = author and to_unicode(author, 'utf-8')
|
def __init__(self, rev, authz, scope, fs_ptr, pool=None): self.rev = rev self.authz = authz self.scope = scope self.fs_ptr = fs_ptr self.pool = Pool(pool) message = _from_svn(self._get_prop(core.SVN_PROP_REVISION_LOG)) author = _from_svn(self._get_prop(core.SVN_PROP_REVISION_AUTHOR)) _date = self._get_prop(core.SVN_PROP_REVISION_DATE) if _date: ts = core.svn_time_from_cstring(_date, self.pool()) / 1000000 date = datetime.fromtimestamp(ts, utc) else: date = None Changeset.__init__(self, rev, message, author, date)
|
9adc2d4f1e71ce837315236e41f33060fb1932de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/9adc2d4f1e71ce837315236e41f33060fb1932de/svn_fs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5588,
16,
18686,
16,
2146,
16,
2662,
67,
6723,
16,
2845,
33,
7036,
4672,
365,
18,
9083,
273,
5588,
365,
18,
1944,
94,
273,
18686,
365,
18,
4887,
273,
2146,
365,
18,
2556,
67,
6723,
273,
2662,
67,
6723,
365,
18,
6011,
273,
8828,
12,
6011,
13,
883,
273,
365,
6315,
588,
67,
5986,
12,
3644,
18,
23927,
50,
67,
15811,
67,
862,
25216,
67,
4842,
13,
2869,
273,
365,
6315,
588,
67,
5986,
12,
3644,
18,
23927,
50,
67,
15811,
67,
862,
25216,
67,
7131,
916,
13,
225,
883,
273,
883,
471,
358,
67,
9124,
12,
2150,
16,
296,
3158,
17,
28,
6134,
2869,
273,
2869,
471,
358,
67,
9124,
12,
4161,
16,
296,
3158,
17,
28,
6134,
389,
712,
273,
365,
6315,
588,
67,
5986,
12,
3644,
18,
23927,
50,
67,
15811,
67,
862,
25216,
67,
4594,
13,
309,
389,
712,
30,
3742,
273,
2922,
18,
31505,
67,
957,
67,
2080,
67,
71,
1080,
24899,
712,
16,
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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5588,
16,
18686,
16,
2146,
16,
2662,
67,
6723,
16,
2845,
33,
7036,
4672,
365,
18,
9083,
273,
5588,
365,
18,
1944,
94,
273,
18686,
365,
18,
4887,
273,
2146,
365,
18,
2556,
67,
6723,
273,
2662,
67,
6723,
365,
18,
6011,
273,
8828,
12,
6011,
13,
883,
273,
365,
6315,
588,
67,
5986,
12,
3644,
18,
23927,
50,
67,
15811,
67,
862,
25216,
67,
4842,
13,
2869,
273,
365,
6315,
588,
67,
5986,
12,
3644,
18,
23927,
50,
67,
15811,
67,
862,
25216,
67,
7131,
916,
13,
225,
883,
273,
883,
471,
358,
67,
9124,
12,
2150,
16,
296,
3158,
17,
28,
6134,
2869,
273,
2869,
471,
358,
67,
9124,
12,
2
] |
self._returncode = None
|
def __init__(self, node, argv, executable = None, stdin = None, stdout = None, stderr = None, shell = False, cwd = None, env = None, user = None): self._slave = node._slave """Forks and execs a program, with stdio redirection and user switching. A netns Node to run the program is is specified as the first parameter.
|
8ec800fe2e1be6413d91214011f7abbfb5241ed2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8495/8ec800fe2e1be6413d91214011f7abbfb5241ed2/subprocess_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
5261,
16,
9070,
273,
599,
16,
8801,
273,
599,
16,
3909,
273,
599,
16,
4514,
273,
599,
16,
5972,
273,
1083,
16,
7239,
273,
599,
16,
1550,
273,
599,
16,
729,
273,
599,
4672,
365,
6315,
27352,
273,
756,
6315,
27352,
3536,
22662,
87,
471,
1196,
87,
279,
5402,
16,
598,
2044,
1594,
19611,
471,
729,
30882,
18,
225,
432,
2901,
2387,
2029,
358,
1086,
326,
5402,
353,
353,
1269,
487,
326,
1122,
1569,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
5261,
16,
9070,
273,
599,
16,
8801,
273,
599,
16,
3909,
273,
599,
16,
4514,
273,
599,
16,
5972,
273,
1083,
16,
7239,
273,
599,
16,
1550,
273,
599,
16,
729,
273,
599,
4672,
365,
6315,
27352,
273,
756,
6315,
27352,
3536,
22662,
87,
471,
1196,
87,
279,
5402,
16,
598,
2044,
1594,
19611,
471,
729,
30882,
18,
225,
432,
2901,
2387,
2029,
358,
1086,
326,
5402,
353,
353,
1269,
487,
326,
1122,
1569,
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
] |
|
for proposal, status in request.post.items(): if proposal == 'Commit' or status=='-': continue assert proposal.startswith('talk.') proposal = int(proposal[5:]) c.highlight.add(proposal) proposal = Proposal.find_by_id(proposal) status = ProposalStatus.find_by_name(status) proposal.status = status c.proposals = self.dbsession.query(Proposal).all() c.statuses = self.dbsession.query(ProposalStatus).all()
|
talks = self.form_result['talk'] statuses = self.form_result['status'] for talk, status in zip(talks, statuses): if status is not None: c.highlight.add(talk.id) talk.status = status meta.Session.commit() c.proposals = Proposal.find_all() c.statuses = ProposalStatus.find_all()
|
def _approve(self): c.highlight = set() for proposal, status in request.post.items(): if proposal == 'Commit' or status=='-': continue assert proposal.startswith('talk.') proposal = int(proposal[5:]) c.highlight.add(proposal) proposal = Proposal.find_by_id(proposal) status = ProposalStatus.find_by_name(status) proposal.status = status
|
93f30e1ec41248e52209889b696dbfa24c0c1b97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/93f30e1ec41248e52209889b696dbfa24c0c1b97/proposal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12908,
537,
12,
2890,
4672,
276,
18,
15978,
273,
444,
1435,
364,
14708,
16,
1267,
316,
590,
18,
2767,
18,
3319,
13332,
309,
14708,
422,
296,
5580,
11,
578,
1267,
18920,
17,
4278,
1324,
1815,
14708,
18,
17514,
1918,
2668,
88,
2960,
1093,
13,
14708,
273,
509,
12,
685,
8016,
63,
25,
30,
5717,
276,
18,
15978,
18,
1289,
12,
685,
8016,
13,
14708,
273,
19945,
18,
4720,
67,
1637,
67,
350,
12,
685,
8016,
13,
1267,
273,
19945,
1482,
18,
4720,
67,
1637,
67,
529,
12,
2327,
13,
14708,
18,
2327,
273,
1267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12908,
537,
12,
2890,
4672,
276,
18,
15978,
273,
444,
1435,
364,
14708,
16,
1267,
316,
590,
18,
2767,
18,
3319,
13332,
309,
14708,
422,
296,
5580,
11,
578,
1267,
18920,
17,
4278,
1324,
1815,
14708,
18,
17514,
1918,
2668,
88,
2960,
1093,
13,
14708,
273,
509,
12,
685,
8016,
63,
25,
30,
5717,
276,
18,
15978,
18,
1289,
12,
685,
8016,
13,
14708,
273,
19945,
18,
4720,
67,
1637,
67,
350,
12,
685,
8016,
13,
1267,
273,
19945,
1482,
18,
4720,
67,
1637,
67,
529,
12,
2327,
13,
14708,
18,
2327,
273,
1267,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._logger.debug("Tracks table found.")
|
self._logger.debug("Track table found.")
|
def _initCreateTrackTable(self): c = self._conn.cursor() try: c.execute("""create table tracks (trackid integer primary key autoincrement, path text, artist text, album text, title text, tracknumber text, unscored integer)""") self._logger.debug("Tracks table created.") except sqlite3.OperationalError as err: if str(err) != "table tracks already exists": raise err self._logger.debug("Tracks table found.")
|
afb8ac357cf5a6a40289a31d13b33e838bf2bdb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/afb8ac357cf5a6a40289a31d13b33e838bf2bdb1/Database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
1684,
4402,
1388,
12,
2890,
4672,
276,
273,
365,
6315,
4646,
18,
9216,
1435,
775,
30,
276,
18,
8837,
2932,
3660,
2640,
1014,
13933,
261,
4101,
350,
3571,
3354,
498,
2059,
30033,
16,
589,
977,
16,
15469,
977,
16,
14844,
977,
16,
2077,
977,
16,
3298,
2696,
977,
16,
640,
6355,
72,
3571,
15574,
13,
365,
6315,
4901,
18,
4148,
2932,
22138,
1014,
2522,
1199,
13,
1335,
16184,
23,
18,
2988,
287,
668,
487,
393,
30,
309,
609,
12,
370,
13,
480,
315,
2121,
13933,
1818,
1704,
6877,
1002,
393,
365,
6315,
4901,
18,
4148,
2932,
22138,
1014,
1392,
1199,
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,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326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
1684,
4402,
1388,
12,
2890,
4672,
276,
273,
365,
6315,
4646,
18,
9216,
1435,
775,
30,
276,
18,
8837,
2932,
3660,
2640,
1014,
13933,
261,
4101,
350,
3571,
3354,
498,
2059,
30033,
16,
589,
977,
16,
15469,
977,
16,
14844,
977,
16,
2077,
977,
16,
3298,
2696,
977,
16,
640,
6355,
72,
3571,
15574,
13,
365,
6315,
4901,
18,
4148,
2932,
22138,
1014,
2522,
1199,
13,
1335,
16184,
23,
18,
2988,
287,
668,
487,
393,
30,
309,
609,
12,
370,
13,
480,
315,
2121,
13933,
1818,
1704,
6877,
1002,
393,
365,
6315,
4901,
18,
4148,
2932,
22138,
1014,
1392,
1199,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
229
|
229
|
def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction.
|
14f1fc8cda9bf39915df8b02111ef05d810ed99a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/14f1fc8cda9bf39915df8b02111ef05d810ed99a/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
6143,
830,
352,
24721,
271,
84,
8,
17,
20333,
2072,
3082,
310,
3148,
434,
333,
8882,
598,
8762,
358,
326,
10853,
365,
18,
23730,
1435,
364,
326,
490,
517,
1165,
17,
3218,
330,
1041,
364,
279,
864,
14800,
17014,
293,
434,
7494,
4642,
2101,
20176,
18,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
6143,
830,
352,
24721,
271,
84,
8,
17,
20333,
2072,
3082,
310,
3148,
434,
333,
8882,
598,
8762,
358,
326,
10853,
365,
18,
23730,
1435,
364,
326,
490,
517,
1165,
17,
3218,
330,
1041,
364,
279,
864,
14800,
17014,
293,
434,
7494,
4642,
2101,
20176,
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
] |
sys.stdout.write( "Searching for MySQL includes... " )
|
sys.stdout.write( " Searching for MySQL includes: " )
|
def checkMySQL(options): if sys.platform == "win32": MySQL_LIBSEARCHPATH = [ sys.prefix + "\Libs\mysqlclient*.lib" ] MySQL_INCSEARCHPATH = [ sys.prefix + "\include\mysql.h" ] elif sys.platform == "linux2": MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so" ] MySQL_LIBSTATICSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.a", \ "/usr/local/lib/mysql/libmysqlclient*.a", \ "/usr/lib/libmysqlclient*.a", \ "/usr/lib/mysql/libmysqlclient*.a" ] MySQL_INCSEARCHPATH = [ \ "/usr/local/include/mysql.h", \ "/usr/local/include/mysql/mysql.h", \ "/usr/include/mysql.h", \ "/usr/include/mysql/mysql.h" ] elif sys.platform == "freebsd4" or sys.platform == "freebsd5": MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so" ] MySQL_LIBSTATICSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.a", \ "/usr/local/lib/mysql/libmysqlclient*.a", \ "/usr/lib/libmysqlclient*.a", \ "/usr/lib/mysql/libmysqlclient*.a" ] MySQL_INCSEARCHPATH = [ \ "/usr/local/include/mysql.h", \ "/usr/local/include/mysql/mysql.h", \ "/usr/include/mysql.h", \ "/usr/include/mysql/mysql.h" ] else: sys.stdout.write("ERROR: Unknown platform %s to checkMySQL()\n" % sys.platform ) sys.exit() # if --static if options.staticlink: MySQL_LIBSEARCHPATH = MySQL_LIBSTATICSEARCHPATH global mysql_libpath global mysql_libfile mysql_libfile, mysql_libpath = findFile( MySQL_LIBSEARCHPATH ) if ( mysql_libfile ): sys.stdout.write("%s\n" % os.path.join( py_libpath, py_libfile ) ) else: sys.stdout.write("Not Found!\n") sys.exit() global mysql_incpath mysql_incfile = None sys.stdout.write( "Searching for MySQL includes... " ) mysql_incfile, mysql_incpath = findFile( MySQL_INCSEARCHPATH ) if ( mysql_incfile ): sys.stdout.write( "%s\n" % mysql_incpath ) else: sys.stdout.write("Not Found!\n") sys.exit() return True
|
d980221e60ef0a27e1c9e50d015876701de198d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d980221e60ef0a27e1c9e50d015876701de198d2/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
6,
308,
13485,
67,
23213,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
6702,
64,
12527,
18,
76,
6,
308,
1327,
2589,
18,
9898,
422,
315,
20132,
22,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
2048,
6,
308,
13485,
67,
14484,
22741,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
12527,
2625,
11146,
69,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
69,
3113,
521,
2206,
13640,
19,
2941,
19,
2941,
12527,
2625,
11146,
69,
3113,
521,
2206,
13640,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
69,
6,
308,
13485,
67,
23213,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
6702,
19,
12527,
18,
76,
3113,
521,
2206,
13640,
19,
3729,
19,
6702,
19,
12527,
19,
12527,
18,
76,
3113,
521,
2206,
13640,
19,
6702,
19,
12527,
18,
76,
3113,
521,
2206,
13640,
19,
6702,
19,
12527,
19,
12527,
18,
76,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
6,
308,
13485,
67,
23213,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
6702,
64,
12527,
18,
76,
6,
308,
1327,
2589,
18,
9898,
422,
315,
20132,
22,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
2
] |
os.system("cppcheck --enable=all -I MyGUIEngine/Scripts/cppheck -I Platforms/DirectX/DirectXPlatform/include Platforms/DirectX/DirectXPlatform/src")
|
os.system("cppcheck --enable=all -I Scripts/cppcheck -I Platforms/DirectX/DirectXPlatform/include Platforms/DirectX/DirectXPlatform/src")
|
def checkFolderSources(folder) : os.system("cppcheck --enable=all -I MyGUIEngine/Scripts/cppheck " + folder)
|
fc0baea95bf26eb1876743251c3a38fca66fd8d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6622/fc0baea95bf26eb1876743251c3a38fca66fd8d9/cppcheck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3899,
8628,
12,
5609,
13,
294,
1140,
18,
4299,
2932,
4057,
84,
1893,
1493,
7589,
33,
454,
300,
45,
8005,
43,
5370,
4410,
19,
15041,
19,
4057,
84,
1129,
315,
397,
3009,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
1129,
315,
397,
3009,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
path = weboob.applications.__path__[0] applications = [] regexp = re.compile('^%s/([\w\d_]+)$' % path) for root, dirs, files in os.walk(path): m = regexp.match(root) if m and '__init__.py' in files: applications.append(m.group(1)) print ' '.join(applications)
|
for path in weboob.applications.__path__: regexp = re.compile('^%s/([\w\d_]+)$' % path) for root, dirs, files in os.walk(path): m = regexp.match(root) if m and '__init__.py' in files: applications.add(m.group(1)) print ' '.join(sorted(applications)).encode('utf-8')
|
def command_applications(self, *caps): import weboob.applications path = weboob.applications.__path__[0] applications = [] regexp = re.compile('^%s/([\w\d_]+)$' % path) for root, dirs, files in os.walk(path): m = regexp.match(root) if m and '__init__.py' in files: applications.append(m.group(1))
|
dbaaa8ea0a3fb018e623614cf7fe31ebf8ce2c2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/dbaaa8ea0a3fb018e623614cf7fe31ebf8ce2c2c/weboobcfg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
3685,
87,
12,
2890,
16,
380,
22984,
4672,
1930,
732,
1075,
947,
18,
3685,
87,
589,
273,
732,
1075,
947,
18,
3685,
87,
16186,
803,
972,
63,
20,
65,
12165,
273,
5378,
7195,
273,
283,
18,
11100,
2668,
66,
9,
87,
19,
14026,
91,
64,
72,
67,
7941,
9227,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
3685,
87,
12,
2890,
16,
380,
22984,
4672,
1930,
732,
1075,
947,
18,
3685,
87,
589,
273,
732,
1075,
947,
18,
3685,
87,
16186,
803,
972,
63,
20,
65,
12165,
273,
5378,
7195,
273,
283,
18,
11100,
2668,
66,
9,
87,
19,
14026,
91,
64,
72,
67,
7941,
9227,
738,
589,
13,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
803,
4672,
312,
273,
7195,
18,
1916,
12,
3085,
13,
309,
312,
471,
4940,
2738,
25648,
2074,
11,
316,
1390,
30,
12165,
18,
6923,
12,
81,
18,
1655,
12,
21,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
centdir = struct.pack(structCentralDir, stringCentralDir, create_version, zinfo.create_system, extract_version, zinfo.reserved, zinfo.flag_bits, zinfo.compress_type, dostime, dosdate, zinfo.CRC, compress_size, file_size, len(zinfo.filename), len(extra_data), len(zinfo.comment), 0, zinfo.internal_attr, zinfo.external_attr, header_offset)
|
try: centdir = struct.pack(structCentralDir, stringCentralDir, create_version, zinfo.create_system, extract_version, zinfo.reserved, zinfo.flag_bits, zinfo.compress_type, dostime, dosdate, zinfo.CRC, compress_size, file_size, len(zinfo.filename), len(extra_data), len(zinfo.comment), 0, zinfo.internal_attr, zinfo.external_attr, header_offset) except DeprecationWarning: print >>sys.stderr, (structCentralDir, stringCentralDir, create_version, zinfo.create_system, extract_version, zinfo.reserved, zinfo.flag_bits, zinfo.compress_type, dostime, dosdate, zinfo.CRC, compress_size, file_size, len(zinfo.filename), len(extra_data), len(zinfo.comment), 0, zinfo.internal_attr, zinfo.external_attr, header_offset) raise
|
def close(self): """Close the file, and for mode "w" and "a" write the ending records.""" if self.fp is None: return
|
8758505b352b3425ba646bdbff7a34c21eb6618a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/8758505b352b3425ba646bdbff7a34c21eb6618a/zipfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
585,
16,
471,
364,
1965,
315,
91,
6,
471,
315,
69,
6,
1045,
326,
11463,
3853,
12123,
309,
365,
18,
7944,
353,
599,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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6,
471,
315,
69,
6,
1045,
326,
11463,
3853,
12123,
309,
365,
18,
7944,
353,
599,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while not self.finished:
|
while not self.finished and prefinished:
|
def _finalize_connect(self, prefinished): """ Called after we connect to all given InProgress. prefinished is a list of indexes (relative to self._objects) that were already finished when we tried to connect to them. """ if prefinished: # One or more IP was already finished. We pass each one to # self.finish until we're actually finished (because the prefinished # IP may get filtered). while not self.finished: idx = prefinished.pop(0) # FIXME: if the IP failed with exception, we'll end up raising here # due to accessing its result. self.finish(idx, self._objects[idx].result)
|
a8186295ea7b9a1111b4ccf3f61714e42fcaacbf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/a8186295ea7b9a1111b4ccf3f61714e42fcaacbf/async.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30343,
67,
3612,
12,
2890,
16,
675,
13527,
4672,
3536,
11782,
1839,
732,
3077,
358,
777,
864,
657,
5491,
18,
225,
675,
13527,
353,
279,
666,
434,
5596,
261,
11626,
358,
365,
6315,
6911,
13,
716,
4591,
1818,
6708,
1347,
732,
12928,
358,
3077,
358,
2182,
18,
3536,
309,
675,
13527,
30,
468,
6942,
578,
1898,
2971,
1703,
1818,
6708,
18,
225,
1660,
1342,
1517,
1245,
358,
468,
365,
18,
13749,
3180,
732,
4565,
6013,
6708,
261,
26274,
326,
675,
13527,
468,
2971,
2026,
336,
5105,
2934,
1323,
486,
365,
18,
13527,
471,
675,
13527,
30,
2067,
273,
675,
13527,
18,
5120,
12,
20,
13,
468,
9852,
30,
309,
326,
2971,
2535,
598,
1520,
16,
732,
5614,
679,
731,
28014,
2674,
468,
6541,
358,
19531,
2097,
563,
18,
365,
18,
13749,
12,
3465,
16,
365,
6315,
6911,
63,
3465,
8009,
2088,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30343,
67,
3612,
12,
2890,
16,
675,
13527,
4672,
3536,
11782,
1839,
732,
3077,
358,
777,
864,
657,
5491,
18,
225,
675,
13527,
353,
279,
666,
434,
5596,
261,
11626,
358,
365,
6315,
6911,
13,
716,
4591,
1818,
6708,
1347,
732,
12928,
358,
3077,
358,
2182,
18,
3536,
309,
675,
13527,
30,
468,
6942,
578,
1898,
2971,
1703,
1818,
6708,
18,
225,
1660,
1342,
1517,
1245,
358,
468,
365,
18,
13749,
3180,
732,
4565,
6013,
6708,
261,
26274,
326,
675,
13527,
468,
2971,
2026,
336,
5105,
2934,
1323,
486,
365,
18,
13527,
471,
675,
13527,
30,
2067,
273,
675,
13527,
18,
5120,
12,
20,
13,
468,
9852,
30,
309,
326,
2971,
2535,
598,
1520,
16,
732,
5614,
2
] |
EMR_UNKNOWN.__init__(self)
|
_EMR_UNKNOWN.__init__(self)
|
def __init__(self,points=[],bounds=(0,0,0,0)): EMR_UNKNOWN.__init__(self) self.setBounds(bounds) self.cptl=len(points) self.aptl=points
|
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4139,
22850,
6487,
10576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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4139,
22850,
6487,
10576,
28657,
20,
16,
20,
16,
20,
16,
20,
3719,
30,
389,
3375,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
5694,
12,
10576,
13,
365,
18,
71,
337,
80,
33,
1897,
12,
4139,
13,
365,
18,
1657,
80,
33,
4139,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 obj.target.startswith(' t = t.strip() else: t = '<link href="%s">%s</link>' % (xmlescape(href), t.strip()) else: t = u'<link href="
|
if not obj.target.startswith(' t = '<link href="%s">%s</link>' % (xmlescape(href), t) else: t = u'<link href="
|
def writeLink(self,obj): """ Link nodes are intra wiki links """
|
ea5b03c1dafcd821e973ce457ff59b6cb2950902 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12390/ea5b03c1dafcd821e973ce457ff59b6cb2950902/rlwriter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2098,
12,
2890,
16,
2603,
4672,
3536,
4048,
2199,
854,
316,
2033,
9050,
4716,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2098,
12,
2890,
16,
2603,
4672,
3536,
4048,
2199,
854,
316,
2033,
9050,
4716,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.alias = alias
|
self.alias = alias[1:-1]
|
def __init__(self, origin, alias): self.value = template.Variable(origin)
|
ce0e3051905ec5e0b346e50f99b1db330f086622 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/797/ce0e3051905ec5e0b346e50f99b1db330f086622/cyclope_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4026,
16,
2308,
4672,
365,
18,
1132,
273,
1542,
18,
3092,
12,
10012,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return ['-DTHEANO_KERN_WID='+str(nb)]
|
return ['-DTHEANO_KERN_WID='+str(nb)]
|
def c_compile_args(self): nb = 0 if self.kshp is not None: nb = self.kshp[1] return ['-DTHEANO_KERN_WID='+str(nb)]
|
98f8608be75b8b81997fa956395f0063b48ea567 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/98f8608be75b8b81997fa956395f0063b48ea567/blas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
11100,
67,
1968,
12,
2890,
4672,
4264,
273,
374,
309,
365,
18,
79,
674,
84,
353,
486,
599,
30,
4264,
273,
365,
18,
79,
674,
84,
63,
21,
65,
327,
10228,
17,
40,
24644,
1258,
51,
67,
27221,
50,
67,
59,
734,
2218,
15,
701,
12,
6423,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
11100,
67,
1968,
12,
2890,
4672,
4264,
273,
374,
309,
365,
18,
79,
674,
84,
353,
486,
599,
30,
4264,
273,
365,
18,
79,
674,
84,
63,
21,
65,
327,
10228,
17,
40,
24644,
1258,
51,
67,
27221,
50,
67,
59,
734,
2218,
15,
701,
12,
6423,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 not site.gettoken:
|
elif not site.gettoken():
|
def getPage(site, name, get_edit_page = True, read_only = False, do_quote = True, get_redirect=False): """ Get the contents of page 'name' from the 'site' wiki Do not use this directly; for 99% of the possible ideas you can use the PageLink object instead. Arguments: site - the wiki site name - the page name get_edit_page - If true, gets the edit page, otherwise gets the normal page. read_only - If true, doesn't raise LockedPage exceptions. do_quote - ??? (TODO: what is this for?) get_redirect - Get the contents, even if it is a redirect page This routine returns a unicode string containing the wiki text if get_edit_page is True; otherwise it returns a unicode string containing the entire page's HTML code. """ host = site.hostname() name = re.sub(' ', '_', name) output(url2unicode(u'Getting page %s' % site.linkto(name), site = site)) # A heuristic to encode the URL into %XX for characters that are not # allowed in a URL. if not '%' in name and do_quote: # It should not have been done yet if name != urllib.quote(name): print "DBG> quoting",name name = urllib.quote(name) address = site.get_address(name) if get_edit_page: address += '&action=edit&printable=yes' # Make sure Brion doesn't get angry by waiting if the last time a page # was retrieved was not long enough ago. get_throttle() # Try to retrieve the page until it was successfully loaded (just in case # the server is down or overloaded) # wait for retry_idle_time minutes (growing!) between retries. retry_idle_time = 1 while True: text, charset = getUrl(host, address, site) # Extract the actual text from the textedit field if get_edit_page: if charset is None: print "WARNING: No character set found" else: # Store character set for later reference site.checkCharset(charset) if not read_only: # check if we're logged in p=re.compile('userlogin') if p.search(text) != None: output(u'Warning: You\'re probably not logged in on %s:' % repr(site)) m = re.search('value="(\d+)" name=\'wpEdittime\'',text) if m: edittime[repr(site), link2url(name, site = site)] = m.group(1) else: m = re.search('value="(\d+)" name="wpEdittime"',text) if m: edittime[repr(site), link2url(name, site = site)] = m.group(1) else: edittime[repr(site), link2url(name, site = site)] = "0" try: i1 = re.search('<textarea[^>]*>', text).end() except AttributeError: # We assume that the server is down. Wait some time, then try again. print "WARNING: No text area found on %s%s. Maybe the server is down. Retrying in %d minutes..." % (host, address, retry_idle_time) time.sleep(retry_idle_time * 60) # Next time wait longer, but not longer than half an hour retry_idle_time *= 2 if retry_idle_time > 30: retry_idle_time = 30 continue i2 = re.search('</textarea>', text).start() if i2-i1 < 2: raise NoPage(site, name) m = redirectRe(site).match(text[i1:i2]) if m and not get_redirect: output(u"DBG> %s is redirect to %s" % (url2unicode(name, site = site), unicode(m.group(1), site.encoding()))) raise IsRedirectPage(m.group(1)) if edittime[repr(site), link2url(name, site = site)] == "0" and not read_only: print "DBG> page may be locked?!" raise LockedPage() x = text[i1:i2] x = unescape(x) while x and x[-1] in '\n ': x = x[:-1] else: x = text # If not editing # Convert to a unicode string. If there's invalid unicode data inside # the page, replace it with question marks. x = unicode(x, charset, errors = 'replace') # Looking for the token R = re.compile(r"\<input type='hidden' value=\"(.*?)\" name=\"wpEditToken\"") tokenloc = R.search(text) if tokenloc: site.puttoken(tokenloc.group(1)) elif not site.gettoken: site.puttoken('') return x
|
1c06f3033318568e0a7ed257e72c647b39d0d497 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1c06f3033318568e0a7ed257e72c647b39d0d497/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8957,
12,
4256,
16,
508,
16,
336,
67,
4619,
67,
2433,
273,
1053,
16,
855,
67,
3700,
273,
1083,
16,
741,
67,
6889,
273,
1053,
16,
336,
67,
7590,
33,
8381,
4672,
3536,
968,
326,
2939,
434,
1363,
296,
529,
11,
628,
326,
296,
4256,
11,
9050,
2256,
486,
999,
333,
5122,
31,
364,
14605,
9,
434,
326,
3323,
10572,
345,
1846,
848,
999,
326,
3460,
2098,
733,
3560,
18,
225,
13599,
30,
2834,
1850,
300,
326,
9050,
2834,
508,
1850,
300,
326,
1363,
508,
336,
67,
4619,
67,
2433,
300,
971,
638,
16,
5571,
326,
3874,
1363,
16,
3541,
5571,
326,
2212,
1363,
18,
855,
67,
3700,
377,
300,
971,
638,
16,
3302,
1404,
1002,
3488,
329,
1964,
4798,
18,
741,
67,
6889,
1377,
300,
5317,
35,
261,
6241,
30,
4121,
353,
333,
364,
8535,
336,
67,
7590,
225,
300,
968,
326,
2939,
16,
5456,
309,
518,
353,
279,
3136,
1363,
225,
1220,
12245,
1135,
279,
5252,
533,
4191,
326,
9050,
977,
309,
336,
67,
4619,
67,
2433,
353,
1053,
31,
3541,
518,
1135,
279,
5252,
533,
4191,
326,
7278,
1363,
1807,
3982,
981,
18,
3536,
1479,
273,
2834,
18,
10358,
1435,
508,
273,
283,
18,
1717,
2668,
2265,
2070,
2187,
508,
13,
876,
12,
718,
22,
9124,
12,
89,
11,
19213,
1363,
738,
87,
11,
738,
2834,
18,
1232,
869,
12,
529,
3631,
2834,
273,
2834,
3719,
468,
432,
25833,
358,
2017,
326,
1976,
1368,
738,
5619,
364,
3949,
716,
854,
486,
468,
2935,
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,
8957,
12,
4256,
16,
508,
16,
336,
67,
4619,
67,
2433,
273,
1053,
16,
855,
67,
3700,
273,
1083,
16,
741,
67,
6889,
273,
1053,
16,
336,
67,
7590,
33,
8381,
4672,
3536,
968,
326,
2939,
434,
1363,
296,
529,
11,
628,
326,
296,
4256,
11,
9050,
2256,
486,
999,
333,
5122,
31,
364,
14605,
9,
434,
326,
3323,
10572,
345,
1846,
848,
999,
326,
3460,
2098,
733,
3560,
18,
225,
13599,
30,
2834,
1850,
300,
326,
9050,
2834,
508,
1850,
300,
326,
1363,
508,
336,
67,
4619,
67,
2433,
300,
971,
638,
16,
5571,
326,
3874,
1363,
16,
3541,
5571,
326,
2212,
1363,
18,
855,
67,
3700,
377,
300,
971,
638,
16,
3302,
1404,
1002,
3488,
329,
2
] |
def _dom_node(self, dom): element = dom.Element(self.tagname) for attribute, value in self.attributes.items(): element.setAttribute(attribute, str(value)) for child in self.children: element.appendChild(child._dom_node(dom)) return element def _rooted_dom_node(self, domroot):
|
def _dom_node(self, domroot):
|
def _dom_node(self, dom): element = dom.Element(self.tagname) for attribute, value in self.attributes.items(): element.setAttribute(attribute, str(value)) for child in self.children: element.appendChild(child._dom_node(dom)) return element
|
183416f6087e556f5bf9bbf1bbda38d4f68a92cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/183416f6087e556f5bf9bbf1bbda38d4f68a92cc/nodes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
2159,
12,
2890,
16,
4092,
4672,
930,
273,
4092,
18,
1046,
12,
2890,
18,
2692,
529,
13,
364,
1566,
16,
460,
316,
365,
18,
4350,
18,
3319,
13332,
930,
18,
542,
1499,
12,
4589,
16,
609,
12,
1132,
3719,
364,
1151,
316,
365,
18,
5906,
30,
930,
18,
6923,
1763,
12,
3624,
6315,
9859,
67,
2159,
12,
9859,
3719,
327,
930,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18,
2692,
529,
13,
364,
1566,
16,
460,
316,
365,
18,
4350,
18,
3319,
13332,
930,
18,
542,
1499,
12,
4589,
16,
609,
12,
1132,
3719,
364,
1151,
316,
365,
18,
5906,
30,
930,
18,
6923,
1763,
12,
3624,
6315,
9859,
67,
2159,
12,
9859,
3719,
327,
930,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_menu_fade = FlagOpt('Menu Fade (in/out)', '-menu-fade', True,
|
_menu_fade = FlagOpt('Fade (in/out)', '-menu-fade', False,
|
def strip_all(filename): return ''
|
ad44fceb6bcbb8fd485159edd5423c89e170ce17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4675/ad44fceb6bcbb8fd485159edd5423c89e170ce17/todisc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
454,
12,
3459,
4672,
327,
875,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
454,
12,
3459,
4672,
327,
875,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bugs[l[0]] = l[1].split(",")
|
pkg = l[0] if pkg.startswith('src:'): pkg = pkg[4:] bugs.setdefault(pkg, []) bugs[pkg] += l[1].split(",")
|
def read_bugs(self, basedir): """Read the release critial bug summary from the specified directory The RC bug summaries are read from the `BugsV' file within the directory specified as `basedir' parameter. The file contains rows with the format:
|
0b7aa4f3be7785927b5e8d3430468b4d9b40d1dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2784/0b7aa4f3be7785927b5e8d3430468b4d9b40d1dd/britney.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
19381,
12,
2890,
16,
15573,
4672,
3536,
1994,
326,
3992,
7921,
649,
7934,
4916,
628,
326,
1269,
1867,
225,
1021,
24206,
7934,
24297,
854,
855,
628,
326,
1375,
31559,
58,
11,
585,
3470,
326,
1867,
1269,
487,
1375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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,
855,
67,
19381,
12,
2890,
16,
15573,
4672,
3536,
1994,
326,
3992,
7921,
649,
7934,
4916,
628,
326,
1269,
1867,
225,
1021,
24206,
7934,
24297,
854,
855,
628,
326,
1375,
31559,
58,
11,
585,
3470,
326,
1867,
1269,
487,
1375,
31722,
11,
1569,
18,
1021,
585,
1914,
2595,
598,
326,
740,
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
] |
self.connect('confirm-overwrite', self._on_confirm_overwrite)
|
self.connect('response', self._on_response)
|
def __init__(self, title, parent):
|
9df421dcc90b820b77aeae88a96fc74c5e00aa54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/9df421dcc90b820b77aeae88a96fc74c5e00aa54/filechooser.py
|
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
982,
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
] |
if l is None:
|
if arg is None:
|
def iter_morphisms(self, l=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain.
|
564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3/words.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
81,
7657,
23749,
12,
2890,
16,
328,
33,
7036,
16,
11012,
1530,
33,
7036,
16,
1131,
67,
2469,
33,
21,
4672,
436,
8395,
11436,
1879,
777,
14354,
23749,
598,
2461,
12176,
2890,
10335,
471,
326,
864,
11012,
5254,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1400,
67,
81,
7657,
23749,
12,
2890,
16,
328,
33,
7036,
16,
11012,
1530,
33,
7036,
16,
1131,
67,
2469,
33,
21,
4672,
436,
8395,
11436,
1879,
777,
14354,
23749,
598,
2461,
12176,
2890,
10335,
471,
326,
864,
11012,
5254,
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
] |
aFileObject.readlines()
|
def __init__( self, aFileObject=None ): """read EML file and make domtree"""
|
a9136f9d7cfe64c07579b2e7a54c27bcec2d00e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a9136f9d7cfe64c07579b2e7a54c27bcec2d00e5/eml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
279,
21471,
33,
7036,
262,
30,
3536,
896,
512,
1495,
585,
471,
1221,
4092,
3413,
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,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
%description
|
%(requirements)s %%description
|
def createSpecFile(self, specFile, appName, version, releaseNo, sourceDir): """Create the spec file to build rpm package on Linux. Here is some information about what goes inside a RPM spec file: http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html """ spf = open(specFile, 'w') spf.write("AutoReqProv: 0 \n\nSummary: A CAD software package for a nanoengineer to " + "design and simulate nano-components and nano-machines.\n") spf.write("Name: %s\n" % appName) spf.write("Version: %s\n" % version) if releaseNo: spf.write("Release: %s\n" % releaseNo) else: spf.write("Release: 0\n") otherStuff = """License: GPL
|
d8f1e03cb2baf7fa0c7a54a88b434c7a71a3c3c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d8f1e03cb2baf7fa0c7a54a88b434c7a71a3c3c0/autoBuild.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1990,
812,
12,
2890,
16,
857,
812,
16,
10236,
16,
1177,
16,
3992,
2279,
16,
26844,
4672,
3536,
1684,
326,
857,
585,
358,
1361,
25228,
2181,
603,
13318,
18,
13743,
353,
2690,
1779,
2973,
4121,
13998,
4832,
279,
534,
12728,
857,
585,
30,
1062,
2207,
5591,
18,
86,
7755,
18,
3341,
19,
1896,
17,
86,
7755,
19,
87,
21,
17,
86,
7755,
17,
3510,
17,
23799,
17,
2793,
17,
768,
18,
2620,
1062,
2207,
5591,
18,
86,
7755,
18,
3341,
19,
1896,
17,
86,
7755,
19,
87,
21,
17,
86,
7755,
17,
28091,
17,
12827,
18,
2620,
3536,
1694,
74,
273,
1696,
12,
2793,
812,
16,
296,
91,
6134,
1694,
74,
18,
2626,
2932,
4965,
6113,
626,
90,
30,
374,
521,
82,
64,
82,
4733,
30,
432,
385,
1880,
17888,
2181,
364,
279,
15110,
8944,
264,
358,
315,
397,
315,
16934,
471,
20089,
15110,
17,
8119,
471,
15110,
17,
81,
10635,
8403,
82,
7923,
1694,
74,
18,
2626,
2932,
461,
30,
738,
87,
64,
82,
6,
738,
10236,
13,
1694,
74,
18,
2626,
2932,
1444,
30,
738,
87,
64,
82,
6,
738,
1177,
13,
309,
3992,
2279,
30,
1694,
74,
18,
2626,
2932,
7391,
30,
738,
87,
64,
82,
6,
738,
3992,
2279,
13,
469,
30,
1694,
74,
18,
2626,
2932,
7391,
30,
374,
64,
82,
7923,
1308,
510,
3809,
273,
3536,
13211,
30,
4948,
48,
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,
752,
1990,
812,
12,
2890,
16,
857,
812,
16,
10236,
16,
1177,
16,
3992,
2279,
16,
26844,
4672,
3536,
1684,
326,
857,
585,
358,
1361,
25228,
2181,
603,
13318,
18,
13743,
353,
2690,
1779,
2973,
4121,
13998,
4832,
279,
534,
12728,
857,
585,
30,
1062,
2207,
5591,
18,
86,
7755,
18,
3341,
19,
1896,
17,
86,
7755,
19,
87,
21,
17,
86,
7755,
17,
3510,
17,
23799,
17,
2793,
17,
768,
18,
2620,
1062,
2207,
5591,
18,
86,
7755,
18,
3341,
19,
1896,
17,
86,
7755,
19,
87,
21,
17,
86,
7755,
17,
28091,
17,
12827,
18,
2620,
3536,
1694,
74,
273,
1696,
12,
2793,
812,
16,
296,
91,
6134,
1694,
74,
18,
2626,
2932,
4965,
6113,
626,
2
] |
""" self.socket = socket
|
"""
|
def __init__(self, socket): """ <Purpose> Initializes the Multiplexer object. <Arguments> socket: Socket like object that is used for multiplexing """ # Setup the socket self.socket = socket # If we are given a socket, assume it is setup if socket != None: self.connectionInit = True
|
aa293112179760621e4e879489565b9632bd205e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/aa293112179760621e4e879489565b9632bd205e/Multiplexer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2987,
4672,
3536,
411,
10262,
4150,
34,
10188,
3128,
326,
13531,
92,
264,
733,
18,
225,
411,
4628,
34,
2987,
30,
8758,
3007,
733,
716,
353,
1399,
364,
30232,
310,
3536,
468,
10939,
326,
2987,
365,
18,
7814,
273,
2987,
225,
468,
971,
732,
854,
864,
279,
2987,
16,
6750,
518,
353,
3875,
309,
2987,
480,
599,
30,
365,
18,
4071,
2570,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2987,
4672,
3536,
411,
10262,
4150,
34,
10188,
3128,
326,
13531,
92,
264,
733,
18,
225,
411,
4628,
34,
2987,
30,
8758,
3007,
733,
716,
353,
1399,
364,
30232,
310,
3536,
468,
10939,
326,
2987,
365,
18,
7814,
273,
2987,
225,
468,
971,
732,
854,
864,
279,
2987,
16,
6750,
518,
353,
3875,
309,
2987,
480,
599,
30,
365,
18,
4071,
2570,
273,
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
] |
raise RuntimeError("Problem calling Leon's wtdist program.")
|
raise RuntimeError("Problem calling Leon's wtdist program. Install gap_packages*.spkg and run './configure ../..; make'.")
|
def spectrum(self, method=None): r""" The default method (gap) uses a GAP kernel function (in C) written by Steve Linton. METHOD: - ``None`` - defaults to gap except in the binary case - ``gap`` - uses the GAP function
|
cb06d6d2c243c495d5005eb7226b76f1dea9767f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/cb06d6d2c243c495d5005eb7226b76f1dea9767f/linear_code.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
225,
10152,
30,
225,
300,
12176,
7036,
10335,
300,
3467,
358,
9300,
1335,
316,
326,
3112,
648,
225,
300,
12176,
14048,
10335,
300,
4692,
326,
611,
2203,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
225,
10152,
30,
225,
300,
12176,
7036,
10335,
300,
3467,
358,
9300,
1335,
316,
326,
3112,
648,
225,
300,
12176,
14048,
10335,
300,
4692,
326,
611,
2203,
445,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.module.SetParameterAsString ( key, str(keywords[key]) );
|
self.module.SetParameterAsString ( key, str(keywords[key]) )
|
def Execute ( self, *args, **keywords ): self.module = self.slicer.MRMLScene.CreateNodeByClass ( "vtkMRMLCommandLineModuleNode" ); self.module.SetModuleDescription ( self.name ) pargs = self.__FindPositionalArguments() diff = len(pargs) - len(args) if diff < 0: self.module.Delete(); raise Exception ( "Plugin: " + self.name + " requires " + len ( pargs ) + ", " + len ( args ) + " given" )
|
c71f58f968a5b11929095dbd41bf5fd6e12a31e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12580/c71f58f968a5b11929095dbd41bf5fd6e12a31e5/Slicer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
261,
365,
16,
380,
1968,
16,
2826,
11771,
262,
30,
365,
18,
2978,
273,
365,
18,
2069,
21349,
18,
23464,
1495,
14370,
18,
1684,
907,
30032,
261,
315,
11734,
79,
23464,
1495,
21391,
3120,
907,
6,
11272,
365,
18,
2978,
18,
694,
3120,
3291,
261,
365,
18,
529,
262,
779,
564,
273,
365,
16186,
3125,
2555,
287,
4628,
1435,
3122,
273,
562,
12,
1065,
564,
13,
300,
562,
12,
1968,
13,
309,
3122,
411,
374,
30,
365,
18,
2978,
18,
2613,
5621,
1002,
1185,
261,
315,
3773,
30,
315,
397,
365,
18,
529,
397,
315,
4991,
315,
397,
562,
261,
779,
564,
262,
397,
3104,
315,
397,
562,
261,
833,
262,
397,
315,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
261,
365,
16,
380,
1968,
16,
2826,
11771,
262,
30,
365,
18,
2978,
273,
365,
18,
2069,
21349,
18,
23464,
1495,
14370,
18,
1684,
907,
30032,
261,
315,
11734,
79,
23464,
1495,
21391,
3120,
907,
6,
11272,
365,
18,
2978,
18,
694,
3120,
3291,
261,
365,
18,
529,
262,
779,
564,
273,
365,
16186,
3125,
2555,
287,
4628,
1435,
3122,
273,
562,
12,
1065,
564,
13,
300,
562,
12,
1968,
13,
309,
3122,
411,
374,
30,
365,
18,
2978,
18,
2613,
5621,
1002,
1185,
261,
315,
3773,
30,
315,
397,
365,
18,
529,
397,
315,
4991,
315,
397,
562,
261,
779,
564,
262,
397,
3104,
315,
397,
562,
261,
833,
262,
397,
315,
864,
6,
262,
2,
-100
] |
if result == 1: pass elif result == 0 or result == ERROR_IO_PENDING:
|
if not result: error = ctypes.GetLastError() if error == ERROR_IO_PENDING: result = error elif error == 1167: break else: raise HIDError("Error %d when trying to read from HID "\ "device: %s"%(error, ctypes.FormatError(error)) ) break if result == ERROR_IO_PENDING:
|
def run(self): if not self.raw_report_size: # don't raise any error as the hid object can still be used # for writing reports raise HIDError("Attempting to read input reports on non "\ "capable HID device") over_read = OVERLAPPED() over_read.h_event = CreateEvent(None, 0, 0, None) if over_read.h_event: self.__overlapped_read_obj = over_read else: raise HIDError("Error when create hid event resource")
|
d2782cdb495cceb043d96b6756ccce7398af7309 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11669/d2782cdb495cceb043d96b6756ccce7398af7309/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
1899,
67,
6006,
67,
1467,
30,
468,
2727,
1404,
1002,
1281,
555,
487,
326,
366,
350,
733,
848,
4859,
506,
1399,
468,
364,
7410,
10557,
1002,
670,
734,
668,
2932,
23089,
358,
855,
810,
10557,
603,
1661,
1548,
315,
5909,
429,
670,
734,
2346,
7923,
225,
1879,
67,
896,
273,
22577,
48,
2203,
12120,
1435,
1879,
67,
896,
18,
76,
67,
2575,
273,
1788,
1133,
12,
7036,
16,
374,
16,
374,
16,
599,
13,
309,
1879,
67,
896,
18,
76,
67,
2575,
30,
365,
16186,
17946,
1845,
67,
896,
67,
2603,
273,
1879,
67,
896,
469,
30,
1002,
670,
734,
668,
2932,
668,
1347,
752,
366,
350,
871,
1058,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
1899,
67,
6006,
67,
1467,
30,
468,
2727,
1404,
1002,
1281,
555,
487,
326,
366,
350,
733,
848,
4859,
506,
1399,
468,
364,
7410,
10557,
1002,
670,
734,
668,
2932,
23089,
358,
855,
810,
10557,
603,
1661,
1548,
315,
5909,
429,
670,
734,
2346,
7923,
225,
1879,
67,
896,
273,
22577,
48,
2203,
12120,
1435,
1879,
67,
896,
18,
76,
67,
2575,
273,
1788,
1133,
12,
7036,
16,
374,
16,
374,
16,
599,
13,
309,
1879,
67,
896,
18,
76,
67,
2575,
30,
365,
16186,
17946,
1845,
67,
896,
67,
2603,
273,
1879,
67,
896,
469,
30,
1002,
670,
734,
668,
2932,
668,
1347,
752,
366,
350,
871,
1058,
7923,
2
] |
@type transsysFile: A C{file} object open for writing. """ def __init__(self, numericFile = None, transsysFile = None) : if not numericFile : numericFile = sys.stdout() self.nf = numericFile if not transsysFile : transsysFile = sys.stdout() self.tf = transsysFile
|
@type transsysFile: C{str} """ def __init__(self, numericFilename, transsysFilename, scp, ocp) : self.numeric = numericFilename self.transsys = transsysFilename self.print_control_parameters(scp, ocp)
|
def __init__(self, cycles, offset, rndParam) : """The constructor of the class.
|
b33dea50d1aabad247006bfd73e621d2e0f236fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1770/b33dea50d1aabad247006bfd73e621d2e0f236fd/randomLocalSearch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15139,
16,
1384,
16,
20391,
786,
13,
294,
3536,
1986,
3885,
434,
326,
667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15139,
16,
1384,
16,
20391,
786,
13,
294,
3536,
1986,
3885,
434,
326,
667,
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 m: revision = int(m.group('revision'))
|
if fstr[:5] == '<?xml': m = re.search(r'revision="(?P<revision>\d+)"',fstr) if m: revision = int(m.group('revision')) else: m = re.search(r'dir[\n\r]+(?P<revision>\d+)', fstr) if m: revision = int(m.group('revision'))
|
def _get_svn_revision(self,path): """ Return path's SVN revision number. """ entries = njoin(path,'.svn','entries') revision = None if os.path.isfile(entries): f = open(entries) m = re.search(r'revision="(?P<revision>\d+)"',f.read()) f.close() if m: revision = int(m.group('revision')) return revision
|
843327063a597e72376beb0dad5381a94b300df4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/843327063a597e72376beb0dad5381a94b300df4/misc_util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
31505,
67,
13057,
12,
2890,
16,
803,
4672,
3536,
2000,
589,
1807,
29537,
50,
6350,
1300,
18,
3536,
3222,
273,
290,
5701,
12,
803,
16,
10332,
31505,
17023,
8219,
6134,
6350,
273,
599,
309,
1140,
18,
803,
18,
291,
768,
12,
8219,
4672,
284,
273,
1696,
12,
8219,
13,
312,
273,
283,
18,
3072,
12,
86,
4565,
2820,
1546,
3680,
52,
32,
13057,
5333,
72,
15,
2225,
2187,
74,
18,
896,
10756,
284,
18,
4412,
1435,
309,
284,
701,
10531,
25,
65,
422,
16617,
2902,
4278,
312,
273,
283,
18,
3072,
12,
86,
4565,
2820,
1546,
3680,
52,
32,
13057,
5333,
72,
15,
2225,
2187,
74,
701,
13,
309,
312,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
31505,
67,
13057,
12,
2890,
16,
803,
4672,
3536,
2000,
589,
1807,
29537,
50,
6350,
1300,
18,
3536,
3222,
273,
290,
5701,
12,
803,
16,
10332,
31505,
17023,
8219,
6134,
6350,
273,
599,
309,
1140,
18,
803,
18,
291,
768,
12,
8219,
4672,
284,
273,
1696,
12,
8219,
13,
312,
273,
283,
18,
3072,
12,
86,
4565,
2820,
1546,
3680,
52,
32,
13057,
5333,
72,
15,
2225,
2187,
74,
18,
896,
10756,
284,
18,
4412,
1435,
309,
284,
701,
10531,
25,
65,
422,
16617,
2902,
4278,
312,
273,
283,
18,
3072,
12,
86,
4565,
2820,
1546,
3680,
52,
32,
13057,
5333,
72,
15,
2225,
2187,
74,
701,
13,
309,
312,
30,
6350,
273,
509,
12,
2
] |
return [ self.context.cwdProject ]
|
return [ self.context.cwdProject() ]
|
def repositories(self, recurse=False): if recurse: results = [] deps = self.closure(DependencyGenerator([ self.context.cwdProject ])) for d in deps: if os.path.exists(self.context.srcDir(d)): results += [ d ] return results return [ self.context.cwdProject ]
|
59f958210cae0d71b1d36aed9d96d0bffa85987b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1360/59f958210cae0d71b1d36aed9d96d0bffa85987b/dws.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14531,
12,
2890,
16,
11502,
33,
8381,
4672,
309,
11502,
30,
1686,
273,
5378,
8740,
273,
365,
18,
20823,
12,
7787,
3908,
3816,
365,
18,
2472,
18,
11089,
4109,
308,
3719,
364,
302,
316,
8740,
30,
309,
1140,
18,
803,
18,
1808,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14531,
12,
2890,
16,
11502,
33,
8381,
4672,
309,
11502,
30,
1686,
273,
5378,
8740,
273,
365,
18,
20823,
12,
7787,
3908,
3816,
365,
18,
2472,
18,
11089,
4109,
308,
3719,
364,
302,
316,
8740,
30,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
2472,
18,
4816,
1621,
12,
72,
3719,
30,
1686,
1011,
306,
302,
308,
327,
1686,
327,
306,
365,
18,
2472,
18,
11089,
4109,
308,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def test_debuglevel(self):
|
def test_debuglevel_reads(self):
|
def test_debuglevel(self): # test all the various places that self.msg(...) is called given_a_expect_b = [ # Telnet.fill_rawq (b'a', ": recv b''\n"), # Telnet.process_rawq (tl.IAC + bytes([88]), ": IAC 88 not recognized\n"), (tl.IAC + tl.DO + bytes([1]), ": IAC DO 1\n"), (tl.IAC + tl.DONT + bytes([1]), ": IAC DONT 1\n"), (tl.IAC + tl.WILL + bytes([1]), ": IAC WILL 1\n"), (tl.IAC + tl.WONT + bytes([1]), ": IAC WONT 1\n"), # Telnet.write # XXX, untested ] for a, b in given_a_expect_b: self._test_debuglevel([a, EOF_sigil], b) return
|
276fd1f07da3fda3cfbfcf3adb2b1c82fa2f9c51 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/276fd1f07da3fda3cfbfcf3adb2b1c82fa2f9c51/test_telnetlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4148,
2815,
67,
11904,
12,
2890,
4672,
468,
1842,
777,
326,
11191,
12576,
716,
365,
18,
3576,
5825,
13,
353,
2566,
864,
67,
69,
67,
12339,
67,
70,
273,
306,
468,
399,
292,
2758,
18,
5935,
67,
1899,
85,
261,
70,
11,
69,
2187,
6398,
10665,
324,
6309,
64,
82,
6,
3631,
468,
399,
292,
2758,
18,
2567,
67,
1899,
85,
261,
6172,
18,
45,
2226,
397,
1731,
3816,
5482,
65,
3631,
6398,
467,
2226,
24153,
486,
16332,
64,
82,
6,
3631,
261,
6172,
18,
45,
2226,
397,
8332,
18,
3191,
397,
1731,
3816,
21,
65,
3631,
6398,
467,
2226,
5467,
404,
64,
82,
6,
3631,
261,
6172,
18,
45,
2226,
397,
8332,
18,
40,
10079,
397,
1731,
3816,
21,
65,
3631,
6398,
467,
2226,
463,
10079,
404,
64,
82,
6,
3631,
261,
6172,
18,
45,
2226,
397,
8332,
18,
59,
15125,
397,
1731,
3816,
21,
65,
3631,
6398,
467,
2226,
678,
15125,
404,
64,
82,
6,
3631,
261,
6172,
18,
45,
2226,
397,
8332,
18,
59,
10079,
397,
1731,
3816,
21,
65,
3631,
6398,
467,
2226,
678,
10079,
404,
64,
82,
6,
3631,
468,
399,
292,
2758,
18,
2626,
468,
11329,
16,
640,
88,
3149,
308,
364,
279,
16,
324,
316,
864,
67,
69,
67,
12339,
67,
70,
30,
365,
6315,
3813,
67,
4148,
2815,
3816,
69,
16,
6431,
67,
7340,
330,
6487,
324,
13,
327,
2,
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,
1,
1,
0,
0,
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,
4148,
2815,
67,
11904,
12,
2890,
4672,
468,
1842,
777,
326,
11191,
12576,
716,
365,
18,
3576,
5825,
13,
353,
2566,
864,
67,
69,
67,
12339,
67,
70,
273,
306,
468,
399,
292,
2758,
18,
5935,
67,
1899,
85,
261,
70,
11,
69,
2187,
6398,
10665,
324,
6309,
64,
82,
6,
3631,
468,
399,
292,
2758,
18,
2567,
67,
1899,
85,
261,
6172,
18,
45,
2226,
397,
1731,
3816,
5482,
65,
3631,
6398,
467,
2226,
24153,
486,
16332,
64,
82,
6,
3631,
261,
6172,
18,
45,
2226,
397,
8332,
18,
3191,
397,
1731,
3816,
21,
65,
3631,
6398,
467,
2226,
5467,
404,
64,
82,
6,
3631,
261,
6172,
18,
45,
2226,
397,
8332,
18,
40,
10079,
2
] |
if 'use-nfs' in opcodes: self._debug('use-nfs, so reading from %s' % realpath) return os.listdir(realpath) elif 'use-cache' in opcodes: self._debug('use-cache, so reading from memcache at key %s' % fusepath) if self._cachedDirents.has_key(fusepath): return self._cachedDirents[fusepath]
|
if 'enoent' in opcodes: raise OSError(errno.ENOENT, os.strerror(errno.ENOENT)) if tsumufs.nfsAvailable.isSet(): self._debug('NFS is available -- returning dirents from NFS.') return self._cachedDirents[fusepath] else: self._debug('NFS is unavailable -- returning cached disk dir stuff.') return os.listdir(self._cachePathOf(fusepath))
|
def getDirents(self, fusepath): ''' Return the dirents from a directory's contents if cached. '''
|
9db20cb960799ffbe59fe605eced51bebfea1349 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/9db20cb960799ffbe59fe605eced51bebfea1349/cachemanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
77,
547,
87,
12,
2890,
16,
19552,
803,
4672,
9163,
2000,
326,
4314,
547,
87,
628,
279,
1867,
1807,
2939,
309,
3472,
18,
9163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
77,
547,
87,
12,
2890,
16,
19552,
803,
4672,
9163,
2000,
326,
4314,
547,
87,
628,
279,
1867,
1807,
2939,
309,
3472,
18,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.wantAvatarPhysicsIndicator:
|
if self.wantDebugIndicator:
|
def setupAvatarPhysicsIndicator(self): if self.wantAvatarPhysicsIndicator: indicator=loader.loadModelCopy('phase_5/models/props/dagger') #self.walkControls.setAvatarPhysicsIndicator(indicator)
|
f71ea38c7ee21e26a1a469a1bd317692ac3001ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/f71ea38c7ee21e26a1a469a1bd317692ac3001ae/ShipPilot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
23999,
3731,
1900,
2102,
13140,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
23999,
3731,
1900,
2102,
13140,
12,
2890,
4672,
309,
365,
18,
17369,
2829,
13140,
30,
10664,
33,
6714,
18,
945,
1488,
2951,
2668,
13961,
67,
25,
19,
7665,
19,
9693,
19,
72,
7594,
6134,
468,
2890,
18,
11348,
16795,
18,
542,
23999,
3731,
1900,
2102,
13140,
12,
18741,
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
] |
r""" Products of two primes. These numbers have been called semiprimes (or semi-primes), biprimes or 2-almost primes. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A001358;a
|
def __init__(self): r"""
|
def _eval(self, n): return sum(i%2 for i in arith.divisors(n))
|
7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2142,
12,
77,
9,
22,
364,
277,
316,
419,
483,
18,
2892,
291,
1383,
12,
82,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2142,
12,
77,
9,
22,
364,
277,
316,
419,
483,
18,
2892,
291,
1383,
12,
82,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_cookiespy = urllib2.HTTPCookieProcessor(_cookies)
|
def __init__(self, *args, **kwargs): dict.__init__(self, *args, **kwargs) self.__dict__ = self
|
47e6fe17862a5f974e46929577872fc98af8f950 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11603/47e6fe17862a5f974e46929577872fc98af8f950/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2065,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
16186,
1576,
972,
273,
365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
4333,
13,
365,
16186,
1576,
972,
273,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"""Get the tags applied by an individual user to an artist""" params = self._getParams() doc = Request(self, 'album.getTags', self.api_key, params, True, self.secret).execute()
|
"""Returns a list of the user-set tags to this artist. """ params = self._getParams() doc = Request(self, 'artist.getTags', self.api_key, params, True, self.secret).execute()
|
def getTags(self): """Get the tags applied by an individual user to an artist""" params = self._getParams() doc = Request(self, 'album.getTags', self.api_key, params, True, self.secret).execute() if not doc: return None tag_names = self._extract_all(doc, 'name') tags = [] for tag in tag_names: tags.append(Tag(tag, *self.auth_data)) return tags
|
b1ed3eef5bf1b1772c55649009d9222691e97329 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/b1ed3eef5bf1b1772c55649009d9222691e97329/pylast.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17388,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
326,
729,
17,
542,
2342,
358,
333,
15469,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
1567,
12,
2890,
16,
296,
25737,
18,
588,
3453,
2187,
365,
18,
2425,
67,
856,
16,
859,
16,
1053,
16,
365,
18,
5875,
2934,
8837,
1435,
225,
309,
486,
997,
30,
327,
599,
225,
1047,
67,
1973,
273,
365,
6315,
8004,
67,
454,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17388,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
326,
729,
17,
542,
2342,
358,
333,
15469,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
1567,
12,
2890,
16,
296,
25737,
18,
588,
3453,
2187,
365,
18,
2425,
67,
856,
16,
859,
16,
1053,
16,
365,
18,
5875,
2934,
8837,
1435,
225,
309,
486,
997,
30,
327,
599,
225,
1047,
67,
1973,
273,
365,
6315,
8004,
67,
454,
12,
2434,
16,
296,
529,
6134,
2342,
273,
5378,
364,
1047,
316,
1047,
67,
1973,
30,
2342,
18,
6923,
12,
1805,
12,
2692,
16,
380,
2890,
18,
1944,
67,
892,
3719,
225,
327,
2342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
</dl>
|
</ul>
|
def arg_name_to_html(self, func_doc, arg_name): """ A helper function used to format an argument name, for use in the argument description list under a routine's details entry. This just wraps strong & code tags around the arg name; and if the arg name is associated with a type, then adds it parenthetically after the name. """ s = '<strong class="pname"><code>%s</code></strong>' % arg_name if arg_name in func_doc.arg_types: typ = func_doc.arg_types[arg_name] typ_html = self.docstring_to_html(typ, func_doc, 10) s += " (<code>%s</code>)" % typ_html return s
|
4382b7be56c79a38bd4608e2a346a95750170342 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4382b7be56c79a38bd4608e2a346a95750170342/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
529,
67,
869,
67,
2620,
12,
2890,
16,
1326,
67,
2434,
16,
1501,
67,
529,
4672,
3536,
432,
4222,
445,
1399,
358,
740,
392,
1237,
508,
16,
364,
999,
316,
326,
1237,
2477,
666,
3613,
279,
12245,
1807,
3189,
1241,
18,
1220,
2537,
9059,
11773,
473,
981,
2342,
6740,
326,
1501,
508,
31,
471,
309,
326,
1501,
508,
353,
3627,
598,
279,
618,
16,
1508,
4831,
518,
22146,
451,
278,
6478,
1839,
326,
508,
18,
3536,
272,
273,
2368,
9110,
667,
1546,
84,
529,
14050,
710,
9822,
87,
1757,
710,
4695,
9110,
1870,
738,
1501,
67,
529,
309,
1501,
67,
529,
316,
1326,
67,
2434,
18,
3175,
67,
2352,
30,
3815,
273,
1326,
67,
2434,
18,
3175,
67,
2352,
63,
3175,
67,
529,
65,
3815,
67,
2620,
273,
365,
18,
24675,
67,
869,
67,
2620,
12,
12846,
16,
1326,
67,
2434,
16,
1728,
13,
272,
1011,
315,
261,
32,
710,
9822,
87,
1757,
710,
34,
2225,
738,
3815,
67,
2620,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
529,
67,
869,
67,
2620,
12,
2890,
16,
1326,
67,
2434,
16,
1501,
67,
529,
4672,
3536,
432,
4222,
445,
1399,
358,
740,
392,
1237,
508,
16,
364,
999,
316,
326,
1237,
2477,
666,
3613,
279,
12245,
1807,
3189,
1241,
18,
1220,
2537,
9059,
11773,
473,
981,
2342,
6740,
326,
1501,
508,
31,
471,
309,
326,
1501,
508,
353,
3627,
598,
279,
618,
16,
1508,
4831,
518,
22146,
451,
278,
6478,
1839,
326,
508,
18,
3536,
272,
273,
2368,
9110,
667,
1546,
84,
529,
14050,
710,
9822,
87,
1757,
710,
4695,
9110,
1870,
738,
1501,
67,
529,
309,
1501,
67,
529,
316,
1326,
67,
2434,
18,
3175,
67,
2352,
30,
3815,
273,
1326,
67,
2434,
18,
2
] |
addClassDef(classdefs, typename, parsedFile, "constructor", ConstructorDefinition(arguments=doc, type="MANUAL"))
|
addClassDef(classdefs, typename, parsedFile, "constructor", ConstructorDefinition(arguments=doc, type="MANUAL", allows_empty_args=allows_empty_args))
|
def detectHierarchy(line, classdefs): found=datastructuredef.search(line) if found: typename, structurename, dictfield = found.group("typename", "structurename", "dictfield") addClassDef(classdefs, typename, parsedFile, "datastructure", structurename) addClassDef(classdefs, typename, parsedFile, "dictfield", dictfield, 0) printV2("%s: definition/declaration of datastructure", typename) return 1 found=newbasedondef.match(line) if found: typename, basename, doc = found.group("typename", "basename", "doc") addClassDef(classdefs, typename, parsedFile, "basetype", basename, 0) addClassDef(classdefs, typename, parsedFile, "constructor", ConstructorDefinition(arguments=doc, type="MANUAL")) return 1 found=basedondef.match(line) if found: typename, basename = found.group("typename", "basename") addClassDef(classdefs, typename, parsedFile, "basetype", basename, 0) return 1 found=hiddendef.match(line) if found: typename, basename = found.group("typename", "basename") addClassDef(classdefs, typename, parsedFile, "basetype", basename, 0) classdefs[typename].hidden = 1 return 1
|
9ef61b5fe23b958aa80a57e1aa7994be56216f18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9ef61b5fe23b958aa80a57e1aa7994be56216f18/pyxtract.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
12074,
12,
1369,
16,
667,
12537,
4672,
1392,
33,
13178,
13583,
536,
18,
3072,
12,
1369,
13,
309,
1392,
30,
26735,
16,
3695,
529,
16,
2065,
1518,
273,
1392,
18,
1655,
2932,
12846,
1069,
3113,
315,
7627,
529,
3113,
315,
1576,
1518,
7923,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
13178,
13583,
3113,
3695,
529,
13,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
1576,
1518,
3113,
2065,
1518,
16,
374,
13,
1172,
58,
22,
27188,
87,
30,
2379,
19,
22448,
434,
5386,
13583,
3113,
26735,
13,
327,
404,
225,
1392,
33,
2704,
12261,
265,
536,
18,
1916,
12,
1369,
13,
309,
1392,
30,
26735,
16,
4882,
16,
997,
273,
1392,
18,
1655,
2932,
12846,
1069,
3113,
315,
13909,
3113,
315,
2434,
7923,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
70,
2759,
388,
3113,
4882,
16,
374,
13,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
12316,
3113,
11417,
1852,
12,
7099,
33,
2434,
16,
618,
1546,
9560,
14235,
3113,
5360,
67,
5531,
67,
1968,
33,
5965,
87,
67,
5531,
67,
1968,
3719,
327,
404,
225,
1392,
33,
12261,
265,
536,
18,
1916,
12,
1369,
13,
309,
1392,
30,
26735,
16,
4882,
273,
1392,
18,
1655,
2932,
12846,
1069,
3113,
315,
13909,
7923,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
70,
2759,
388,
3113,
4882,
16,
374,
13,
327,
404,
225,
1392,
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,
5966,
12074,
12,
1369,
16,
667,
12537,
4672,
1392,
33,
13178,
13583,
536,
18,
3072,
12,
1369,
13,
309,
1392,
30,
26735,
16,
3695,
529,
16,
2065,
1518,
273,
1392,
18,
1655,
2932,
12846,
1069,
3113,
315,
7627,
529,
3113,
315,
1576,
1518,
7923,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
13178,
13583,
3113,
3695,
529,
13,
9058,
3262,
12,
1106,
12537,
16,
26735,
16,
2707,
812,
16,
315,
1576,
1518,
3113,
2065,
1518,
16,
374,
13,
1172,
58,
22,
27188,
87,
30,
2379,
19,
22448,
434,
5386,
13583,
3113,
26735,
13,
327,
404,
225,
1392,
33,
2704,
12261,
265,
536,
18,
1916,
12,
1369,
13,
309,
1392,
30,
26735,
16,
4882,
16,
2
] |
if sage_trac_re.match(bundle) and bundle.endswith('?format=raw'):
|
if sage_trac_re.match(bundle) and not bundle.endswith('?format=raw'):
|
def unbundle(self, bundle, update=True, options=''): """ Apply patches from a hg patch to the repository.
|
1f5df73207ca12268531bf3ffef7c4b18931e4ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1f5df73207ca12268531bf3ffef7c4b18931e4ab/hg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
9991,
12,
2890,
16,
3440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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,
640,
9991,
12,
2890,
16,
3440,
16,
1089,
33,
5510,
16,
702,
2218,
11,
4672,
3536,
5534,
16482,
628,
279,
22576,
4729,
358,
326,
3352,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cmdline = ' '.join([_cmdLineQuote(a) for a in args[1:]])
|
cmdline = ' '.join([_cmdLineQuote(a) for a in args])
|
def __init__(self, reactor, protocol, command, args, environment, path): self.reactor = reactor self.protocol = protocol
|
ab1177e2a77ff9ff1bb629f272a1454466b30640 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ab1177e2a77ff9ff1bb629f272a1454466b30640/win32eventreactor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19178,
16,
1771,
16,
1296,
16,
833,
16,
3330,
16,
589,
4672,
365,
18,
266,
3362,
273,
19178,
365,
18,
8373,
273,
1771,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19178,
16,
1771,
16,
1296,
16,
833,
16,
3330,
16,
589,
4672,
365,
18,
266,
3362,
273,
19178,
365,
18,
8373,
273,
1771,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 MoveCursor(self, x, y, clear=False):
|
def MoveCursor(self, x, y, clear=False, sio=None):
|
def MoveCursor(self, x, y, clear=False): s = "\x1b[%d;%dH" % (y, x) if clear: s += EC_CLEAR_LINE self.user.Write(s)
|
2feab6381d2f848f7922d4f6309d8eab71ea112c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/2feab6381d2f848f7922d4f6309d8eab71ea112c/roguelike.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9933,
6688,
12,
2890,
16,
619,
16,
677,
16,
2424,
33,
8381,
16,
272,
1594,
33,
7036,
4672,
272,
273,
1548,
92,
21,
70,
14451,
72,
31,
9,
72,
44,
6,
738,
261,
93,
16,
619,
13,
309,
2424,
30,
272,
1011,
7773,
67,
23181,
985,
67,
5997,
365,
18,
1355,
18,
3067,
12,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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272,
273,
1548,
92,
21,
70,
14451,
72,
31,
9,
72,
44,
6,
738,
261,
93,
16,
619,
13,
309,
2424,
30,
272,
1011,
7773,
67,
23181,
985,
67,
5997,
365,
18,
1355,
18,
3067,
12,
87,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def test2(): point_list = [[i] for i in range(1,32)]
|
def testKdSearchNN(): n = 2**8 point_list = [[i,n-i] for i in range(1,n)]
|
def test2(): point_list = [[i] for i in range(1,32)] node = kdTree(point_list) node.show() print 'point_list', point_list for point in point_list: best = kdSearchNN(node, point, node, 0) print 'point =', point, ', best =', best.location
|
61c03666b260c361116e556d45b8fe221cf9b116 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14140/61c03666b260c361116e556d45b8fe221cf9b116/kd_tree.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
47,
72,
2979,
12225,
13332,
290,
273,
576,
636,
28,
1634,
67,
1098,
273,
12167,
77,
16,
82,
17,
77,
65,
364,
277,
316,
1048,
12,
21,
16,
82,
25887,
756,
273,
417,
72,
2471,
12,
1153,
67,
1098,
13,
756,
18,
4500,
1435,
282,
1172,
296,
1153,
67,
1098,
2187,
1634,
67,
1098,
364,
1634,
316,
1634,
67,
1098,
30,
3796,
273,
417,
72,
2979,
12225,
12,
2159,
16,
1634,
16,
756,
16,
374,
13,
1172,
296,
1153,
273,
2187,
1634,
16,
2265,
3796,
273,
2187,
3796,
18,
3562,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
47,
72,
2979,
12225,
13332,
290,
273,
576,
636,
28,
1634,
67,
1098,
273,
12167,
77,
16,
82,
17,
77,
65,
364,
277,
316,
1048,
12,
21,
16,
82,
25887,
756,
273,
417,
72,
2471,
12,
1153,
67,
1098,
13,
756,
18,
4500,
1435,
282,
1172,
296,
1153,
67,
1098,
2187,
1634,
67,
1098,
364,
1634,
316,
1634,
67,
1098,
30,
3796,
273,
417,
72,
2979,
12225,
12,
2159,
16,
1634,
16,
756,
16,
374,
13,
1172,
296,
1153,
273,
2187,
1634,
16,
2265,
3796,
273,
2187,
3796,
18,
3562,
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
] |
self.homediredit.setText(self.homedirdialog.url().path())
|
self.up.homediredit.setText(self.homedirdialog.url().path())
|
def slotBrowseHomeDirClicked(self): fileurl = KURL() fileurl.setPath(self.homediredit.text()) self.homedirdialog.setCurrentURL(fileurl) if self.homedirdialog.exec_()==QDialog.Accepted: self.homediredit.setText(self.homedirdialog.url().path()) self.homedirectoryislinked = False
|
eb812f938fe74be7d359e6fa9fcc28e3d8c3b025 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1669/eb812f938fe74be7d359e6fa9fcc28e3d8c3b025/user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4694,
27304,
8684,
1621,
27633,
12,
2890,
4672,
585,
718,
273,
1475,
1785,
1435,
585,
718,
18,
542,
743,
12,
2890,
18,
17125,
329,
2921,
305,
18,
955,
10756,
365,
18,
17125,
329,
6909,
3529,
18,
542,
3935,
1785,
12,
768,
718,
13,
309,
365,
18,
17125,
329,
6909,
3529,
18,
4177,
67,
1435,
631,
53,
6353,
18,
18047,
30,
365,
18,
416,
18,
17125,
329,
2921,
305,
18,
542,
1528,
12,
2890,
18,
17125,
329,
6909,
3529,
18,
718,
7675,
803,
10756,
365,
18,
17125,
329,
1292,
291,
17738,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4694,
27304,
8684,
1621,
27633,
12,
2890,
4672,
585,
718,
273,
1475,
1785,
1435,
585,
718,
18,
542,
743,
12,
2890,
18,
17125,
329,
2921,
305,
18,
955,
10756,
365,
18,
17125,
329,
6909,
3529,
18,
542,
3935,
1785,
12,
768,
718,
13,
309,
365,
18,
17125,
329,
6909,
3529,
18,
4177,
67,
1435,
631,
53,
6353,
18,
18047,
30,
365,
18,
416,
18,
17125,
329,
2921,
305,
18,
542,
1528,
12,
2890,
18,
17125,
329,
6909,
3529,
18,
718,
7675,
803,
10756,
365,
18,
17125,
329,
1292,
291,
17738,
273,
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
] |
u.warn(_("abort: error: %s\n") % inst.reason[1])
|
try: reason = inst.reason.args[1] except: reason = inst.reason u.warn(_("abort: error: %s\n") % reason)
|
def print_time(): t = get_times() u.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3]))
|
f76e8de899ea56a4789c86d956443bbaf803ea92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/f76e8de899ea56a4789c86d956443bbaf803ea92/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74,
15,
9,
18,
23,
74,
5153,
82,
7923,
738,
261,
88,
63,
24,
65,
17,
87,
63,
24,
6487,
268,
63,
20,
65,
17,
87,
63,
20,
6487,
268,
63,
22,
65,
17,
87,
63,
22,
6487,
268,
63,
21,
65,
17,
87,
63,
21,
6487,
268,
63,
23,
65,
17,
87,
63,
23,
22643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74,
15,
9,
18,
23,
74,
5153,
82,
7923,
738,
261,
88,
63,
24,
65,
17,
87,
63,
24,
6487,
268,
63,
20,
65,
17,
87,
63,
20,
6487,
268,
63,
22,
65,
17,
87,
63,
22,
6487,
268,
63,
21,
65,
17,
87,
63,
21,
6487,
268,
63,
23,
65,
17,
87,
63,
23,
22643,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dbsinfo = self.dataprovider.getFileRangeForJob(id)
|
dbsinfo = {} if self.dataprovider: dbsinfo = self.dataprovider.getFileRangeForJob(id)
|
def onJobSubmit(self, job, id): Module.onJobSubmit(self, job, id)
|
40aaf71ad2f9e823717b7c778a4f20f0300899df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8443/40aaf71ad2f9e823717b7c778a4f20f0300899df/CMSSW.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
2278,
11620,
12,
2890,
16,
1719,
16,
612,
4672,
5924,
18,
265,
2278,
11620,
12,
2890,
16,
1719,
16,
612,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
Parses all of the percent directives found at the top of a file and returns the input text of self with all of them removed.
|
Returns a string which consists of the input text of this cell with the percent directives at the top removed. As it's doing this, it computes a list of all the directives and which system (if any) the cell should be run under.
|
def parse_percent_directives(self): """ Parses all of the percent directives found at the top of a file and returns the input text of self with all of them removed.
|
fcd2aab9896251f9fe30af9a2996d617648001f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fcd2aab9896251f9fe30af9a2996d617648001f6/cell.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8849,
67,
30850,
12,
2890,
4672,
3536,
2280,
2420,
777,
434,
326,
5551,
13877,
1392,
622,
326,
1760,
434,
279,
585,
471,
1135,
326,
810,
977,
434,
365,
598,
777,
434,
2182,
3723,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8849,
67,
30850,
12,
2890,
4672,
3536,
2280,
2420,
777,
434,
326,
5551,
13877,
1392,
622,
326,
1760,
434,
279,
585,
471,
1135,
326,
810,
977,
434,
365,
598,
777,
434,
2182,
3723,
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
] |
msg = "WARNING: header file %s is in your directory, but not in CVS"%(dir+"/"+x) print msg WARNINGS.append(msg)
|
if ((skip=="ALL") or (skip.count(x)==0)): msg = "WARNING: header file %s is in your directory, but not in CVS"%(dir+"/"+x) print msg WARNINGS.append(msg)
|
def CopyAllHeaders(dir): # get a list of headers dirlist = os.listdir(dir) dirlist.sort() files = fnmatch.filter(dirlist,"*.h")+fnmatch.filter(dirlist,"*.I")+fnmatch.filter(dirlist,"*.T") # sanity check - do headers in directory match headers in CVS? cvsentries = ReadCvsEntries(dir) if (cvsentries != 0): cvsheaders = fnmatch.filter(cvsentries,"*.h")+fnmatch.filter(cvsentries,"*.I")+fnmatch.filter(cvsentries,"*.T") for x in SetDifference(files, cvsheaders): msg = "WARNING: header file %s is in your directory, but not in CVS"%(dir+"/"+x) print msg WARNINGS.append(msg) for x in SetDifference(cvsheaders, files): msg = "WARNING: header file %s is CVS, but not in your directory"%(dir+"/"+x) print msg WARNINGS.append(msg) # actually copy the headers. copied = [] for filename in files: srcfile = dir + "/" + filename dstfile = PREFIX + "/include/" + filename if (older(dstfile,srcfile)): copied.append(filename) WriteFile(dstfile,ReadFile(srcfile)) if (len(copied)>0): print "\nCompiling in directory: %s\n\nCopied headers: %s"%(dir,copied)
|
a1a1bf8826ca0f4d0f41e04b2c8b5a6421d40ac7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/a1a1bf8826ca0f4d0f41e04b2c8b5a6421d40ac7/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
1595,
3121,
12,
1214,
4672,
468,
336,
279,
666,
434,
1607,
1577,
1098,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
1577,
1098,
18,
3804,
1435,
1390,
273,
18764,
18,
2188,
12,
1214,
1098,
10837,
11146,
76,
7923,
15,
4293,
1916,
18,
2188,
12,
1214,
1098,
10837,
11146,
45,
7923,
15,
4293,
1916,
18,
2188,
12,
1214,
1098,
10837,
11146,
56,
7923,
468,
16267,
866,
300,
741,
1607,
316,
1867,
845,
1607,
316,
385,
14640,
35,
276,
6904,
8219,
273,
2720,
39,
6904,
5400,
12,
1214,
13,
309,
261,
71,
6904,
8219,
480,
374,
4672,
276,
6904,
2485,
273,
18764,
18,
2188,
12,
71,
6904,
8219,
10837,
11146,
76,
7923,
15,
4293,
1916,
18,
2188,
12,
71,
6904,
8219,
10837,
11146,
45,
7923,
15,
4293,
1916,
18,
2188,
12,
71,
6904,
8219,
10837,
11146,
56,
7923,
364,
619,
316,
1000,
16220,
12,
2354,
16,
276,
6904,
2485,
4672,
309,
14015,
7457,
31713,
4685,
7923,
578,
261,
7457,
18,
1883,
12,
92,
13,
631,
20,
3719,
30,
1234,
273,
315,
9511,
30,
1446,
585,
738,
87,
353,
316,
3433,
1867,
16,
1496,
486,
316,
385,
14640,
6,
17105,
1214,
9078,
4898,
15,
92,
13,
1172,
1234,
9744,
55,
18,
6923,
12,
3576,
13,
364,
619,
316,
1000,
16220,
12,
71,
6904,
2485,
16,
1390,
4672,
1234,
273,
315,
9511,
30,
1446,
585,
738,
87,
353,
385,
14640,
16,
1496,
486,
316,
3433,
1867,
6,
17105,
1214,
9078,
4898,
15,
92,
13,
1172,
1234,
9744,
55,
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,
5631,
1595,
3121,
12,
1214,
4672,
468,
336,
279,
666,
434,
1607,
1577,
1098,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
1577,
1098,
18,
3804,
1435,
1390,
273,
18764,
18,
2188,
12,
1214,
1098,
10837,
11146,
76,
7923,
15,
4293,
1916,
18,
2188,
12,
1214,
1098,
10837,
11146,
45,
7923,
15,
4293,
1916,
18,
2188,
12,
1214,
1098,
10837,
11146,
56,
7923,
468,
16267,
866,
300,
741,
1607,
316,
1867,
845,
1607,
316,
385,
14640,
35,
276,
6904,
8219,
273,
2720,
39,
6904,
5400,
12,
1214,
13,
309,
261,
71,
6904,
8219,
480,
374,
4672,
276,
6904,
2485,
273,
18764,
18,
2188,
12,
71,
6904,
8219,
10837,
11146,
76,
7923,
15,
4293,
1916,
18,
2188,
12,
71,
2
] |
h = d.GetDialogItemAsControl(3)
|
h = d.GetDialogItemAsControl(3)
|
def AskPassword(prompt, default='', id=264): """Display a PROMPT string and a text entry field with a DEFAULT string. The string is displayed as bullets only. Return the contents of the text entry field when the user clicks the OK button or presses Return. Return None when the user clicks the Cancel button. If omitted, DEFAULT is empty. The PROMPT and DEFAULT strings, as well as the return value, can be at most 255 characters long. """ d = GetNewDialog(id, -1) if not d: print "Can't get DLOG resource with id =", id return h = d.GetDialogItemAsControl(3) # STATIC TEXT ITEM <= prompt SetDialogItemText(h, lf2cr(prompt)) h = d.GetDialogItemAsControl(4) # EDIT TEXT ITEM bullets = '\245'*len(default) SetDialogItemText(h, bullets ) d.SelectDialogItemText(4, 999, 999) d.SetDialogDefaultItem(Dialogs.ok) d.SetDialogCancelItem(Dialogs.cancel) string = default oldschedparams = MacOS.SchedParams(0,0) while 1: ready,ev = Evt.WaitNextEvent(Events.everyEvent, 6) if not ready: continue what,msg,when,where,mod = ev if what == 0 : Dlg.DialogSelect(ev) # for blinking caret elif Dlg.IsDialogEvent(ev): if what in (Events.keyDown, Events.autoKey): charcode = msg & Events.charCodeMask if ( mod & Events.cmdKey ): MacOS.SysBeep() continue # don't do cut & paste commands else: if charcode == Events.kReturnCharCode: break elif charcode == Events.kEscapeCharCode: string = None break elif charcode in (Events.kLeftArrowCharCode, Events.kBackspaceCharCode): string = string[:-1] else: string = string + chr(charcode) msg = 0245 # Octal code for bullet ev = (what,msg,when,where,mod) rs, win, item = Dlg.DialogSelect(ev) if item == Dialogs.ok : break elif item == Dialogs.cancel : string = None break elif what == Events.mouseDown: part, win = Win.FindWindow(where) if part == Windows.inDrag and win: win.DragWindow(where, screenbounds) elif part == Windows.inMenuBar: MacOS.HandleEvent(ev) else: MacOS.SysBeep() # Cannot handle selections, unfortunately elif what == Events.updateEvt: MacOS.HandleEvent(ev) apply(MacOS.SchedParams, oldschedparams) return string
|
b194fed8c029058ae5f8eea81c1c7f11b9447512 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b194fed8c029058ae5f8eea81c1c7f11b9447512/EasyDialogs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25747,
3913,
12,
13325,
16,
202,
805,
2218,
2187,
612,
33,
23728,
4672,
3536,
4236,
279,
453,
3942,
1856,
533,
471,
279,
977,
1241,
652,
598,
279,
3331,
533,
18,
1021,
533,
353,
10453,
487,
324,
420,
2413,
1338,
18,
225,
2000,
326,
2939,
434,
326,
977,
1241,
652,
1347,
326,
729,
27659,
326,
7791,
3568,
578,
11779,
281,
2000,
18,
2000,
599,
1347,
326,
729,
27659,
326,
10347,
3568,
18,
225,
971,
16195,
16,
3331,
353,
1008,
18,
225,
1021,
453,
3942,
1856,
471,
3331,
2064,
16,
487,
5492,
487,
326,
327,
460,
16,
848,
506,
622,
4486,
4561,
3949,
1525,
18,
3536,
302,
273,
968,
1908,
6353,
12,
350,
16,
300,
21,
13,
309,
486,
302,
30,
1172,
315,
2568,
1404,
336,
463,
4842,
1058,
598,
612,
273,
3113,
612,
327,
366,
273,
302,
18,
967,
6353,
1180,
1463,
3367,
12,
23,
13,
202,
7,
19980,
9204,
25504,
1648,
6866,
1000,
6353,
1180,
1528,
12,
76,
16,
18594,
22,
3353,
12,
13325,
3719,
366,
273,
302,
18,
967,
6353,
1180,
1463,
3367,
12,
24,
13,
202,
7,
21307,
9204,
25504,
324,
420,
2413,
273,
2337,
3247,
25,
11,
14,
1897,
12,
1886,
13,
1000,
6353,
1180,
1528,
12,
76,
16,
324,
420,
2413,
262,
302,
18,
3391,
6353,
1180,
1528,
12,
24,
16,
22249,
16,
22249,
13,
302,
18,
694,
6353,
1868,
1180,
12,
11885,
14072,
18,
601,
13,
302,
18,
694,
6353,
6691,
1180,
12,
11885,
14072,
18,
10996,
13,
533,
273,
805,
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,
25747,
3913,
12,
13325,
16,
202,
805,
2218,
2187,
612,
33,
23728,
4672,
3536,
4236,
279,
453,
3942,
1856,
533,
471,
279,
977,
1241,
652,
598,
279,
3331,
533,
18,
1021,
533,
353,
10453,
487,
324,
420,
2413,
1338,
18,
225,
2000,
326,
2939,
434,
326,
977,
1241,
652,
1347,
326,
729,
27659,
326,
7791,
3568,
578,
11779,
281,
2000,
18,
2000,
599,
1347,
326,
729,
27659,
326,
10347,
3568,
18,
225,
971,
16195,
16,
3331,
353,
1008,
18,
225,
1021,
453,
3942,
1856,
471,
3331,
2064,
16,
487,
5492,
487,
326,
327,
460,
16,
848,
506,
622,
4486,
4561,
3949,
1525,
18,
3536,
302,
273,
968,
1908,
6353,
12,
350,
16,
300,
21,
13,
309,
486,
302,
2
] |
return struct.unpack(">I", socket.inet_aton(struct))[0]
|
return struct.unpack(">I", inet_aton(string))[0]
|
def ip_from_string(string): return struct.unpack(">I", socket.inet_aton(struct))[0]
|
3e6741ad34713e144162ddfec4f0e91bbfaca12d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/3e6741ad34713e144162ddfec4f0e91bbfaca12d/query.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2359,
67,
2080,
67,
1080,
12,
1080,
4672,
327,
1958,
18,
17309,
2932,
34,
45,
3113,
17661,
67,
16799,
12,
1080,
3719,
63,
20,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2359,
67,
2080,
67,
1080,
12,
1080,
4672,
327,
1958,
18,
17309,
2932,
34,
45,
3113,
17661,
67,
16799,
12,
1080,
3719,
63,
20,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'(tag:txt or tag:pdf) and author:Tolstoy': set([55, 56]),
|
'(tag:txt OR tag:pdf) and author:Tolstoy': set([55, 56]),
|
def universal_set(self): ''' Should return the set of all matches. ''' return set([])
|
e4b0e9f5186874eac5b874627e01d8e31d865487 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/e4b0e9f5186874eac5b874627e01d8e31d865487/search_query_parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26182,
67,
542,
12,
2890,
4672,
9163,
9363,
327,
326,
444,
434,
777,
1885,
18,
9163,
327,
444,
3816,
5717,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26182,
67,
542,
12,
2890,
4672,
9163,
9363,
327,
326,
444,
434,
777,
1885,
18,
9163,
327,
444,
3816,
5717,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.cache.ua_spiders = self.ua_spiders and re.compile(self.ua_spiders, re.I)
|
self.cache.ua_spiders = self.ua_spiders and re.compile(self.ua_spiders, re.IGNORECASE)
|
def __init__(self, siteid): """ Init Config instance """ # keep first! settings = {} for k in self.__dict__: settings[k] = True
|
dfb27923fc3c16a0cfbd8495aa0e35dd4ff4c216 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/dfb27923fc3c16a0cfbd8495aa0e35dd4ff4c216/multiconfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2834,
350,
4672,
3536,
4378,
1903,
791,
3536,
468,
3455,
1122,
5,
1947,
273,
2618,
364,
417,
316,
365,
16186,
1576,
972,
30,
1947,
63,
79,
65,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2834,
350,
4672,
3536,
4378,
1903,
791,
3536,
468,
3455,
1122,
5,
1947,
273,
2618,
364,
417,
316,
365,
16186,
1576,
972,
30,
1947,
63,
79,
65,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sys.stderr.write('<unknown menu character %s>' % key_description(c))
|
sys.stderr.write('--- unknown menu character %s --\n' % key_description(c))
|
def writer(self): """loop and copy console->serial until EXITCHARCTER character is found. when MENUCHARACTER is found, interpret the next key locally. """ menu_active = False try: while self.alive: try: c = console.getkey() except KeyboardInterrupt: c = '\x03' if menu_active: if c == MENUCHARACTER or c == EXITCHARCTER: # Menu character again/exit char -> send itself self.serial.write(c) # send character if self.echo: sys.stdout.write(c) elif c == '\x15': # CTRL+U -> upload file sys.stderr.write('\n> File to upload: ') sys.stderr.flush() console.cleanup() filename = sys.stdin.readline().rstrip('\r\n') if filename: try: file = open(filename, 'r') sys.stderr.write('> Sending file %s ' % filename) while True: line = file.readline().rstrip('\r\n') if not line: break self.serial.write(line) self.serial.write('\r\n') # Wait for output buffer to drain. self.serial.flush() sys.stderr.write('.') # Progress indicator. sys.stderr.write('\n> File %s sent.\n' % filename) except IOError, e: sys.stderr.write('> Error opening file %s: %s\n' % (filename, e)) console.setup() elif c in '\x08hH?': # CTRL+H, h, H, ? -> Show help sys.stderr.write(get_help_text()) elif c == '\x12': # CTRL+R -> Toggle RTS self.rts_state = not self.rts_state self.serial.setRTS(self.rts_state) sys.stderr.write('<RTS %s>' % (self.rts_state and 'active' or 'inactive')) elif c == '\x04': # CTRL+D -> Toggle DTR self.dtr_state = not self.dtr_state self.serial.setDTR(self.dtr_state) sys.stderr.write('<DTR %s>' % (self.dtr_state and 'active' or 'inactive')) elif c == '\x02': # CTRL+B -> toggle BREAK condition self.break_state = not self.break_state self.serial.setBreak(self.break_state) sys.stderr.write('<BREAK %s>' % (self.break_state and 'active' or 'inactive')) elif c == '\x05': # CTRL+E -> toggle local echo self.echo = not self.echo sys.stderr.write('<local echo %s>' % (self.echo and 'active' or 'inactive')) elif c == '\x09': # CTRL+I -> info self.dump_port_settings() #~ elif c in 'pP': # P -> change port XXX reader thread would exit elif c in 'bB': # B -> change baudrate sys.stderr.write('\n> Baudrate: ') sys.stderr.flush() console.cleanup() backup = self.serial.baudrate try: self.serial.baudrate = int(sys.stdin.readline().strip()) except ValueError, e: sys.stderr.write('\n> Error setting baudrate: %s' % (e,)) self.serial.baudrate = backup console.setup() self.dump_port_settings() elif c == '8': # 8 -> change to 8 bits self.serial.bytesize = serial.EIGHTBITS self.dump_port_settings() elif c == '7': # 7 -> change to 8 bits self.serial.bytesize = serial.SEVENBITS self.dump_port_settings() elif c in 'eE': # E -> change to even parity self.serial.parity = serial.PARITY_EVEN self.dump_port_settings() elif c in 'oO': # O -> change to odd parity self.serial.parity = serial.PARITY_ODD self.dump_port_settings() elif c in 'mM': # M -> change to mark parity self.serial.parity = serial.PARITY_MARK self.dump_port_settings() elif c in 'sS': # S -> change to space parity self.serial.parity = serial.PARITY_SPACE self.dump_port_settings() elif c in 'nN': # N -> change to no parity self.serial.parity = serial.PARITY_NONE self.dump_port_settings() elif c == '1': # 1 -> change to 1 stop bits self.serial.stopbits = serial.STOPBITS_ONE self.dump_port_settings() elif c == '2': # 2 -> change to 2 stop bits self.serial.stopbits = serial.STOPBITS_TWO self.dump_port_settings() elif c == '3': # 3 -> change to 1.5 stop bits self.serial.stopbits = serial.STOPBITS_ONE_POINT_FIVE self.dump_port_settings() elif c in 'xX': # X -> change software flow control self.serial.xonxoff = (c == 'X') self.dump_port_settings() elif c in 'rR': # R -> change hardware flow control self.serial.rtscts = (c == 'R') self.dump_port_settings() else: sys.stderr.write('<unknown menu character %s>' % key_description(c)) menu_active = False elif c == MENUCHARACTER: # next char will be for menu menu_active = True elif c == EXITCHARCTER: self.stop() break # exit app elif c == '\n': self.serial.write(self.newline) # send newline character(s) if self.echo: sys.stdout.write(c) # local echo is a real newline in any case else: self.serial.write(c) # send character if self.echo: sys.stdout.write(c) except: self.alive = False raise
|
c61cb24df3b85c0b769f2fa31ac2433f3c0e4b39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/c61cb24df3b85c0b769f2fa31ac2433f3c0e4b39/miniterm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
18,
3536,
3824,
67,
3535,
273,
1083,
775,
30,
1323,
365,
18,
11462,
30,
775,
30,
276,
273,
2983,
18,
588,
856,
1435,
1335,
19424,
30,
276,
273,
2337,
92,
4630,
11,
309,
3824,
67,
3535,
30,
309,
276,
422,
490,
1157,
57,
27858,
578,
276,
422,
28407,
7305,
1268,
654,
30,
468,
9809,
3351,
3382,
19,
8593,
1149,
317,
1366,
6174,
365,
18,
8818,
18,
2626,
12,
71,
13,
10792,
468,
1366,
3351,
309,
365,
18,
12946,
30,
2589,
18,
10283,
18,
2626,
12,
71,
13,
1327,
276,
422,
2337,
92,
3600,
4278,
15604,
468,
31568,
48,
15,
57,
317,
3617,
585,
2589,
18,
11241,
18,
2626,
2668,
64,
82,
34,
1387,
358,
3617,
30,
8624,
2589,
18,
11241,
18,
11330,
1435,
2983,
18,
16732,
1435,
1544,
273,
2589,
18,
21772,
18,
896,
1369,
7675,
86,
6406,
2668,
64,
86,
64,
82,
6134,
309,
1544,
30,
775,
30,
585,
273,
1696,
12,
3459,
16,
296,
86,
6134,
2589,
18,
11241,
18,
2626,
2668,
34,
2479,
310,
585,
738,
87,
296,
738,
1544,
13,
1323,
1053,
30,
980,
273,
585,
18,
896,
1369,
7675,
86,
6406,
2668,
64,
86,
64,
82,
6134,
309,
486,
980,
30,
898,
365,
18,
8818,
18,
2626,
12,
1369,
13,
365,
18,
8818,
18,
2626,
2668,
64,
86,
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,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
18,
3536,
3824,
67,
3535,
273,
1083,
775,
30,
1323,
365,
18,
11462,
30,
775,
30,
276,
273,
2983,
18,
588,
856,
1435,
1335,
19424,
30,
276,
273,
2337,
92,
4630,
11,
309,
3824,
67,
3535,
30,
309,
276,
422,
490,
1157,
57,
27858,
578,
276,
422,
28407,
7305,
1268,
654,
30,
468,
9809,
3351,
3382,
19,
8593,
1149,
317,
1366,
6174,
365,
18,
8818,
18,
2626,
12,
71,
13,
10792,
468,
1366,
3351,
309,
365,
18,
12946,
30,
2589,
18,
10283,
18,
2626,
12,
2
] |
res=eval(str(res)) partner = res['partner_id'] state = res['state_id'] country = res['country_id'] conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') if not partner.strip() == '': partner_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner', 'search', [('name','=',ustr(partner))]) res.update({'partner_id' : partner_id[0]}) else: res.pop('partner_id') if not state == "": country_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.country', 'search', [('name','=',ustr(country))]) res.update({'country_id' : country_id[0]}) else: res.pop('country_id') if not country == "": state_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.country.state', 'search', [('name','=',ustr(state))]) res.update({'state_id' : state_id[0]}) else: res.pop('state_id') id = execute(conn,'execute',self._dbname,int(self._uid),self._pwd,'res.partner.address','create',res) return id
|
res=eval(str(res)) partner = res['partner_id'] state = res['state_id'] country = res['country_id'] conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') if not partner.strip() == '': partner_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner', 'search', [('name','=',ustr(partner))]) res.update({'partner_id' : partner_id[0]}) else: res.pop('partner_id') if not state == "": country_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.country', 'search', [('name','=',ustr(country))]) res.update({'country_id' : country_id[0]}) else: res.pop('country_id') if not country == "": state_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.country.state', 'search', [('name','=',ustr(state))]) res.update({'state_id' : state_id[0]}) else: res.pop('state_id') id = execute(conn,'execute',self._dbname,int(self._uid),self._pwd,'res.partner.address','create',res) return id
|
def CreateContact(self, res=None): res=eval(str(res)) partner = res['partner_id'] state = res['state_id'] country = res['country_id'] conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') if not partner.strip() == '': partner_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner', 'search', [('name','=',ustr(partner))]) res.update({'partner_id' : partner_id[0]}) else: res.pop('partner_id') if not state == "": country_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.country', 'search', [('name','=',ustr(country))]) res.update({'country_id' : country_id[0]}) else: res.pop('country_id') if not country == "": state_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.country.state', 'search', [('name','=',ustr(state))]) res.update({'state_id' : state_id[0]}) else: res.pop('state_id') id = execute(conn,'execute',self._dbname,int(self._uid),self._pwd,'res.partner.address','create',res) return id
|
bc3c1f7a22dbca3c418f700cf48883617e53933e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bc3c1f7a22dbca3c418f700cf48883617e53933e/tiny_xmlrpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
6567,
12,
2890,
16,
400,
33,
7036,
4672,
400,
33,
8622,
12,
701,
12,
455,
3719,
19170,
273,
400,
3292,
31993,
67,
350,
3546,
919,
273,
400,
3292,
2019,
67,
350,
3546,
5251,
273,
400,
3292,
9082,
67,
350,
3546,
1487,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
12,
2890,
6315,
1650,
15,
1173,
2902,
7452,
19,
1612,
6134,
309,
486,
19170,
18,
6406,
1435,
422,
875,
30,
19170,
67,
350,
273,
1836,
12,
1487,
16,
296,
8837,
2187,
365,
6315,
20979,
16,
509,
12,
2890,
6315,
1911,
3631,
365,
6315,
27487,
16,
296,
455,
18,
31993,
2187,
296,
3072,
2187,
306,
2668,
529,
17023,
33,
2187,
27008,
12,
31993,
3719,
5717,
400,
18,
2725,
12590,
11,
31993,
67,
350,
11,
294,
19170,
67,
350,
63,
20,
65,
6792,
469,
30,
400,
18,
5120,
2668,
31993,
67,
350,
6134,
309,
486,
919,
422,
1408,
30,
5251,
67,
350,
273,
1836,
12,
1487,
16,
296,
8837,
2187,
365,
6315,
20979,
16,
509,
12,
2890,
6315,
1911,
3631,
365,
6315,
27487,
16,
296,
455,
18,
9082,
2187,
296,
3072,
2187,
306,
2668,
529,
17023,
33,
2187,
27008,
12,
9082,
3719,
5717,
400,
18,
2725,
12590,
11,
9082,
67,
350,
11,
294,
5251,
67,
350,
63,
20,
65,
6792,
469,
30,
400,
18,
5120,
2668,
9082,
67,
350,
6134,
309,
486,
5251,
422,
1408,
30,
919,
67,
350,
273,
1836,
12,
1487,
16,
296,
8837,
2187,
365,
6315,
20979,
16,
509,
12,
2890,
6315,
1911,
3631,
365,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
6567,
12,
2890,
16,
400,
33,
7036,
4672,
400,
33,
8622,
12,
701,
12,
455,
3719,
19170,
273,
400,
3292,
31993,
67,
350,
3546,
919,
273,
400,
3292,
2019,
67,
350,
3546,
5251,
273,
400,
3292,
9082,
67,
350,
3546,
1487,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
12,
2890,
6315,
1650,
15,
1173,
2902,
7452,
19,
1612,
6134,
309,
486,
19170,
18,
6406,
1435,
422,
875,
30,
19170,
67,
350,
273,
1836,
12,
1487,
16,
296,
8837,
2187,
365,
6315,
20979,
16,
509,
12,
2890,
6315,
1911,
3631,
365,
6315,
27487,
16,
296,
455,
18,
31993,
2187,
296,
3072,
2187,
306,
2668,
529,
17023,
33,
2187,
27008,
12,
31993,
3719,
5717,
400,
18,
2725,
12590,
2
] |
props_layout = pango.Layout(self.pango_context) attr,text,a = pango.parse_markup(text_str, u'_') props_layout.set_attributes(attr) props_layout.set_text(text)
|
props_layout = self.area.create_pango_layout('') props_layout.set_markup(text_str)
|
def prepare_prop_layout(self, prop_list,type): pc = self.pango_context desc = pc.get_font_description() desc.set_size(PROPERTY_SIZE) pc.set_font_description(desc) prop_layout = pango.Layout(pc) text_str = self.prepare_props_list(prop_list, type) props_layout = pango.Layout(self.pango_context) attr,text,a = pango.parse_markup(text_str, u'_') props_layout.set_attributes(attr) props_layout.set_text(text) self.layout_list.append(props_layout)
|
455bcb8edd7936175614a8072a4cf0001f27cda0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/455bcb8edd7936175614a8072a4cf0001f27cda0/Properties_Renderer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
5986,
67,
6741,
12,
2890,
16,
2270,
67,
1098,
16,
723,
4672,
6125,
273,
365,
18,
84,
6399,
67,
2472,
3044,
273,
6125,
18,
588,
67,
5776,
67,
3384,
1435,
3044,
18,
542,
67,
1467,
12,
9900,
67,
4574,
13,
6125,
18,
542,
67,
5776,
67,
3384,
12,
5569,
13,
225,
2270,
67,
6741,
273,
293,
6399,
18,
3744,
12,
2436,
13,
225,
977,
67,
701,
273,
365,
18,
9366,
67,
9693,
67,
1098,
12,
5986,
67,
1098,
16,
618,
13,
3458,
67,
6741,
273,
365,
18,
5036,
18,
2640,
67,
84,
6399,
67,
6741,
2668,
6134,
3458,
67,
6741,
18,
542,
67,
15056,
12,
955,
67,
701,
13,
365,
18,
6741,
67,
1098,
18,
6923,
12,
9693,
67,
6741,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
5986,
67,
6741,
12,
2890,
16,
2270,
67,
1098,
16,
723,
4672,
6125,
273,
365,
18,
84,
6399,
67,
2472,
3044,
273,
6125,
18,
588,
67,
5776,
67,
3384,
1435,
3044,
18,
542,
67,
1467,
12,
9900,
67,
4574,
13,
6125,
18,
542,
67,
5776,
67,
3384,
12,
5569,
13,
225,
2270,
67,
6741,
273,
293,
6399,
18,
3744,
12,
2436,
13,
225,
977,
67,
701,
273,
365,
18,
9366,
67,
9693,
67,
1098,
12,
5986,
67,
1098,
16,
618,
13,
3458,
67,
6741,
273,
365,
18,
5036,
18,
2640,
67,
84,
6399,
67,
6741,
2668,
6134,
3458,
67,
6741,
18,
542,
67,
15056,
12,
955,
67,
701,
13,
365,
18,
6741,
67,
1098,
18,
6923,
2
] |
print uri
|
def query(self, query, qt="term"): """ An advanced query
|
141d55944147758fd084e1b726376d17b6892978 /local1/tlutelli/issta_data/temp/all_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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
843,
16,
25672,
1546,
6408,
6,
4672,
3536,
1922,
16111,
843,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
([zeta6], [zeta6], -zeta42^7 + 3) ([zeta6], [zeta6 - 1], 2*zeta42^7 + 1) ([zeta6], [-1], -2*zeta42^7 - 1) ([zeta6], [-zeta6], zeta42^7 - 3)
|
([zeta6], [zeta6], -zeta6 + 3) ([zeta6], [zeta6 - 1], 2*zeta6 + 1) ([zeta6], [-1], -2*zeta6 - 1) ([zeta6], [-zeta6], zeta6 - 3)
|
def jacobi_sum(self, char, check=True): """ Return the Jacobi sum associated to these Dirichlet characters (i.e., J(self,char)). EXAMPLES:: sage: D = DirichletGroup(13) sage: e = D.0 sage: f = D[-2] sage: e.jacobi_sum(f) 3*zeta156^26 + 2*zeta156^13 - 3 sage: f.jacobi_sum(e) 3*zeta156^26 + 2*zeta156^13 - 3 sage: p = 7 sage: DP = DirichletGroup(p) sage: f = DP.0 sage: e.jacobi_sum(f) Traceback (most recent call last): ... NotImplementedError: Characters must be from the same Dirichlet Group. sage: all_jacobi_sums = [(DP[i],DP[j],DP[i].jacobi_sum(DP[j])) \ ... for i in range(p-1) for j in range(p-1)[i:]] ... sage: for s in all_jacobi_sums: ... print s ([1], [1], 5) ([1], [zeta6], -1) ([1], [zeta6 - 1], -1) ([1], [-1], -1) ([1], [-zeta6], -1) ([1], [-zeta6 + 1], -1) ([zeta6], [zeta6], -zeta42^7 + 3) ([zeta6], [zeta6 - 1], 2*zeta42^7 + 1) ([zeta6], [-1], -2*zeta42^7 - 1) ([zeta6], [-zeta6], zeta42^7 - 3) ([zeta6], [-zeta6 + 1], 1) ([zeta6 - 1], [zeta6 - 1], -3*zeta42^7 + 2) ([zeta6 - 1], [-1], 2*zeta42^7 + 1) ([zeta6 - 1], [-zeta6], -1) ([zeta6 - 1], [-zeta6 + 1], -zeta42^7 - 2) ([-1], [-1], 1) ([-1], [-zeta6], -2*zeta42^7 + 3) ([-1], [-zeta6 + 1], 2*zeta42^7 - 3) ([-zeta6], [-zeta6], 3*zeta42^7 - 1) ([-zeta6], [-zeta6 + 1], -2*zeta42^7 + 3) ([-zeta6 + 1], [-zeta6 + 1], zeta42^7 + 2) Let's check that trivial sums are being calculated correctly:: sage: N = 13 sage: D = DirichletGroup(N) sage: g = D(1) sage: g.jacobi_sum(g) 11 sage: sum([g(x)*g(1-x) for x in IntegerModRing(N)]) 11 Now let's take a look at a non-prime modulus. One reason we don't like non-prime moduli is that certain identities that are used in the code are not valid for non-prime moduli:: sage: N = 9 sage: D = DirichletGroup(N) sage: g = D(1) sage: g.jacobi_sum(g) Traceback (most recent call last): ... ValueError: Characters must have prime moduli at this time -- use check=False to allow non-prime moduli sage: g.jacobi_sum(g, check=False) 5 sage: sum([g(x)*g(1-x) for x in IntegerModRing(N)]) 3 TODO: Implement Jacobi sums for characters with output in finite fields GF(q) for q non-prime. """ if check: if self.parent() != char.parent(): raise NotImplementedError, "Characters must be from the same Dirichlet Group." if not self.parent().modulus().is_prime(): raise ValueError, "Characters must have prime moduli at this time -- use check=False to allow non-prime moduli" # If they are both trivial, return p if self.is_trivial() and char.is_trivial(): return (self.parent()).order() - 1 # If they are inverses of each other, return -self(-1) prod = self*char if prod.is_trivial(): return -self(-1) # If both are nontrivial, apply mult. formula: elif not self.is_trivial() and not char.is_trivial(): return self.gauss_sum()*char.gauss_sum()/prod.gauss_sum() # If exactly one is trivial, return -1 else: return -1
|
80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
67,
1364,
12,
2890,
16,
1149,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
804,
1077,
30875,
2142,
3627,
358,
4259,
8446,
1354,
1810,
3949,
261,
77,
18,
73,
12990,
804,
12,
2890,
16,
3001,
13,
2934,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
463,
273,
8446,
1354,
1810,
1114,
12,
3437,
13,
272,
410,
30,
425,
273,
463,
18,
20,
272,
410,
30,
284,
273,
463,
18919,
22,
65,
272,
410,
30,
425,
18,
31390,
30875,
67,
1364,
12,
74,
13,
890,
14,
94,
1066,
28946,
66,
5558,
397,
576,
14,
94,
1066,
28946,
66,
3437,
300,
890,
272,
410,
30,
284,
18,
31390,
30875,
67,
1364,
12,
73,
13,
890,
14,
94,
1066,
28946,
66,
5558,
397,
576,
14,
94,
1066,
28946,
66,
3437,
300,
890,
272,
410,
30,
293,
273,
2371,
272,
410,
30,
463,
52,
273,
8446,
1354,
1810,
1114,
12,
84,
13,
272,
410,
30,
284,
273,
463,
52,
18,
20,
272,
410,
30,
425,
18,
31390,
30875,
67,
1364,
12,
74,
13,
2677,
823,
261,
10329,
8399,
745,
1142,
4672,
1372,
11206,
30,
3703,
9202,
1297,
506,
628,
326,
1967,
8446,
1354,
1810,
3756,
18,
272,
410,
30,
777,
67,
31390,
30875,
67,
1364,
87,
273,
306,
12,
8640,
63,
77,
6487,
8640,
63,
78,
6487,
8640,
63,
77,
8009,
31390,
30875,
67,
1364,
12,
8640,
63,
78,
22643,
521,
1372,
15604,
364,
277,
316,
1048,
12,
84,
17,
21,
13,
364,
525,
316,
1048,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
67,
1364,
12,
2890,
16,
1149,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
804,
1077,
30875,
2142,
3627,
358,
4259,
8446,
1354,
1810,
3949,
261,
77,
18,
73,
12990,
804,
12,
2890,
16,
3001,
13,
2934,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
463,
273,
8446,
1354,
1810,
1114,
12,
3437,
13,
272,
410,
30,
425,
273,
463,
18,
20,
272,
410,
30,
284,
273,
463,
18919,
22,
65,
272,
410,
30,
425,
18,
31390,
30875,
67,
1364,
12,
74,
13,
890,
14,
94,
1066,
28946,
66,
5558,
397,
576,
14,
94,
1066,
28946,
66,
3437,
300,
890,
272,
410,
30,
284,
18,
31390,
30875,
67,
1364,
12,
73,
13,
890,
14,
94,
2
] |
self.readNextTag(file)
|
self.title = tags['Title'] self.artist = tags['Artist'] self.album = tags['Album'] self.trackno = tags['Track'] self.year = tags['Year'] self.encoder = tags['Tool'] self.length = tags['Length'] self.samplerate = tags['SampleRate'] self.valid = 1 self.mime = 'audio/mp4' self.filename = file.name
|
def __init__(self, file): core.Music.__init__(self) self.valid = 0 returnval = 0 while returnval == 0: try: self.readNextTag(file) except ValueError: returnval = 1 if not self.valid: raise core.ParseError()
|
645df27c3836f9a6a9695efcee3dfb935d1c8d54 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11721/645df27c3836f9a6a9695efcee3dfb935d1c8d54/m4a.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
4672,
2922,
18,
49,
14894,
16186,
2738,
972,
12,
2890,
13,
365,
18,
877,
273,
374,
327,
1125,
273,
374,
1323,
327,
1125,
422,
374,
30,
775,
30,
365,
18,
2649,
273,
2342,
3292,
4247,
3546,
365,
18,
25737,
273,
2342,
3292,
4411,
376,
3546,
365,
18,
25090,
273,
2342,
3292,
30330,
3546,
365,
18,
4101,
2135,
273,
2342,
3292,
4402,
3546,
365,
18,
6874,
273,
2342,
3292,
5593,
3546,
365,
18,
16480,
273,
2342,
3292,
6364,
3546,
365,
18,
2469,
273,
2342,
3292,
1782,
3546,
365,
18,
87,
10463,
340,
273,
2342,
3292,
8504,
4727,
3546,
365,
18,
877,
273,
404,
365,
18,
11757,
273,
296,
11509,
19,
1291,
24,
11,
365,
18,
3459,
273,
585,
18,
529,
1335,
2068,
30,
327,
1125,
273,
404,
309,
486,
365,
18,
877,
30,
1002,
2922,
18,
21004,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
4672,
2922,
18,
49,
14894,
16186,
2738,
972,
12,
2890,
13,
365,
18,
877,
273,
374,
327,
1125,
273,
374,
1323,
327,
1125,
422,
374,
30,
775,
30,
365,
18,
2649,
273,
2342,
3292,
4247,
3546,
365,
18,
25737,
273,
2342,
3292,
4411,
376,
3546,
365,
18,
25090,
273,
2342,
3292,
30330,
3546,
365,
18,
4101,
2135,
273,
2342,
3292,
4402,
3546,
365,
18,
6874,
273,
2342,
3292,
5593,
3546,
365,
18,
16480,
273,
2342,
3292,
6364,
3546,
365,
18,
2469,
273,
2342,
3292,
1782,
3546,
365,
18,
87,
10463,
340,
273,
2342,
3292,
8504,
4727,
3546,
365,
18,
877,
273,
404,
365,
18,
11757,
273,
296,
11509,
19,
1291,
24,
2
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 142) else quickfix.StringField.__init__(self, 142, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5045,
22,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5045,
22,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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16186,
2738,
972,
12,
2890,
16,
5045,
22,
16,
501,
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
] |
title = "<span weight=\"bold\" size=\"large\">%s (%s)</span>" % (task.get_title(), len(task.get_subtasks()) )
|
title = "<span weight=\"bold\" size=\"large\">%s (%s)</span>" % (task.get_title(), self.__count_tasks_rec(task) )
|
def __build_task_title(self,task,extended=False): if extended : excerpt = task.get_excerpt(lines=2) if excerpt.strip() != "" : title = "<b><big>%s</big></b>\n<small>%s</small>" %(task.get_title(),excerpt) else : title = "<b><big>%s</big></b>" %task.get_title() else : alone = (not task.has_parents() and len(task.get_subtasks())!=0) if (not self.workview) and alone: title = "<span weight=\"bold\" size=\"large\">%s (%s)</span>" % (task.get_title(), len(task.get_subtasks()) ) else: title = task.get_title() return title
|
f70e55fb81a2a9fe6b229beb892bf51a9054fac0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/f70e55fb81a2a9fe6b229beb892bf51a9054fac0/browser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
4146,
67,
2649,
12,
2890,
16,
4146,
16,
14948,
33,
8381,
4672,
309,
7021,
294,
27623,
273,
1562,
18,
588,
67,
338,
17748,
12,
3548,
33,
22,
13,
309,
27623,
18,
6406,
1435,
480,
1408,
294,
2077,
282,
273,
3532,
70,
4438,
14002,
9822,
87,
1757,
14002,
4695,
70,
5333,
82,
32,
12019,
9822,
87,
1757,
12019,
2984,
8975,
4146,
18,
588,
67,
2649,
9334,
338,
17748,
13,
469,
294,
2077,
282,
273,
3532,
70,
4438,
14002,
9822,
87,
1757,
14002,
4695,
70,
2984,
738,
4146,
18,
588,
67,
2649,
1435,
469,
294,
24068,
273,
261,
902,
1562,
18,
5332,
67,
12606,
1435,
471,
562,
12,
4146,
18,
588,
67,
1717,
9416,
10756,
5,
33,
20,
13,
309,
261,
902,
365,
18,
1252,
1945,
13,
471,
24068,
30,
2077,
273,
3532,
3969,
3119,
5189,
16390,
2412,
963,
5189,
14095,
2412,
9822,
87,
6142,
87,
13,
1757,
3969,
2984,
738,
261,
4146,
18,
588,
67,
2649,
9334,
365,
16186,
1883,
67,
9416,
67,
3927,
12,
4146,
13,
262,
469,
30,
2077,
273,
1562,
18,
588,
67,
2649,
1435,
327,
2077,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
4146,
67,
2649,
12,
2890,
16,
4146,
16,
14948,
33,
8381,
4672,
309,
7021,
294,
27623,
273,
1562,
18,
588,
67,
338,
17748,
12,
3548,
33,
22,
13,
309,
27623,
18,
6406,
1435,
480,
1408,
294,
2077,
282,
273,
3532,
70,
4438,
14002,
9822,
87,
1757,
14002,
4695,
70,
5333,
82,
32,
12019,
9822,
87,
1757,
12019,
2984,
8975,
4146,
18,
588,
67,
2649,
9334,
338,
17748,
13,
469,
294,
2077,
282,
273,
3532,
70,
4438,
14002,
9822,
87,
1757,
14002,
4695,
70,
2984,
738,
4146,
18,
588,
67,
2649,
1435,
469,
294,
24068,
273,
261,
902,
1562,
18,
5332,
67,
12606,
1435,
471,
562,
12,
4146,
18,
588,
67,
1717,
9416,
10756,
5,
33,
2
] |
handle_encoding_declaration(c1, sys.stdout)
|
sage: handle_encoding_declaration(c1, sys.stdout)
|
def handle_encoding_declaration(contents, out): """Find a Python encoding declaration in the first line of contents. If found, output it to out and return contents without first line, else output a default utf-8 declaration and return contents. EXAMPLE: sage: import sys sage: c1='# -*- coding: latin-1 -*-\nimport os, sys\n...' sage: c2='# -*- coding: iso-8859-15 -*-\nimport os, sys\n...' sage: c3='# -*- coding: ascii -*-\nimport os, sys\n...' sage: c4='import os, sys\n...' handle_encoding_declaration(c1, sys.stdout) # -*- coding: latin-1 -*- 'import os, sys\n..' sage: handle_encoding_declaration(c2, sys.stdout) # -*- coding: iso-8859-15 -*- 'import os, sys\n..' sage: handle_encoding_declaration(c3, sys.stdout) # -*- coding: ascii -*- 'import os, sys\n..' sage: handle_encoding_declaration(c4, sys.stdout) # -*- coding: utf-8 -*- 'import os, sys\n...' NOTE: Python also looks for encoding hints in the second line as a the first line could contain a shebang. Better implementation possible after importing re, and then matching the regular expression coding[=:]\s*([-\w.]+) The encoding is in the first group. See http://docs.python.org/ref/encodings.html """ # shebangs could also be dealt with #if (contents[0:2] == '#!'): # pos= contents.find('\n') # out.write(contents[0:pos]+ '\n') # contents = contents[pos+1:-1] hint="coding" pos=contents.find('\n') if pos > -1: first_line = contents[0:pos] else: first_line = contents[0:] stripped_line = first_line.lstrip() if stripped_line[0] == '#': pos=stripped_line.find(hint) if (pos > -1) and (stripped_line[pos+len(hint)] in ['=', ':']) : # we found a comment with an encoding hint # we can place it in front of the file: the line is a comment # so it does not harm out.write(first_line+'\n') # use the encoding hint specified by the user return contents[len(first_line)+1:-1] # use default encoding out.write("# -*- coding: utf-8 -*-\n") #out.write("# -*- coding: ascii -*-\n") # or ascii? Python used ascii and from 2.3 on you could specify a different # encodings. # but imho utf-8 is the better default # also read the Future compatibility note # in http://docs.python.org/ref/lexical.html # we could also write a hint for the user: #out.write("# you can specify a different encoding by a line starting with '# -*- coding:'\n") # return contents
|
243c8fcabc63678cc1684d28c2d0bda1a02ec48b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/243c8fcabc63678cc1684d28c2d0bda1a02ec48b/interpreter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122,
980,
16,
469,
876,
279,
805,
7718,
17,
28,
8266,
471,
327,
2939,
18,
225,
5675,
21373,
30,
272,
410,
30,
1930,
2589,
272,
410,
30,
276,
21,
2218,
7,
300,
14,
17,
14848,
30,
30486,
17,
21,
300,
14,
6943,
82,
5666,
1140,
16,
2589,
64,
82,
7821,
272,
410,
30,
276,
22,
2218,
7,
300,
14,
17,
14848,
30,
8702,
17,
17258,
17,
3600,
300,
14,
6943,
82,
5666,
1140,
16,
2589,
64,
82,
7821,
272,
410,
30,
276,
23,
2218,
7,
300,
14,
17,
14848,
30,
11384,
300,
14,
6943,
82,
5666,
1140,
16,
2589,
64,
82,
7821,
272,
410,
30,
276,
24,
2218,
5666,
1140,
16,
2589,
64,
82,
7821,
272,
410,
30,
1640,
67,
5999,
67,
22448,
12,
71,
21,
16,
2589,
18,
10283,
13,
468,
300,
14,
17,
14848,
30,
30486,
17,
21,
300,
14,
17,
296,
5666,
1140,
16,
2589,
64,
82,
838,
11,
272,
410,
30,
1640,
67,
5999,
67,
22448,
12,
71,
22,
16,
2589,
18,
10283,
13,
468,
300,
14,
17,
14848,
30,
8702,
17,
17258,
17,
3600,
300,
14,
17,
296,
5666,
1140,
16,
2589,
64,
82,
838,
11,
272,
410,
30,
1640,
67,
5999,
67,
22448,
12,
71,
23,
16,
2589,
18,
10283,
13,
468,
300,
14,
17,
14848,
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,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122,
980,
16,
469,
876,
279,
805,
7718,
17,
28,
8266,
471,
327,
2939,
18,
225,
5675,
21373,
30,
272,
410,
30,
1930,
2589,
272,
410,
30,
276,
21,
2218,
7,
300,
14,
17,
14848,
30,
30486,
17,
21,
300,
14,
6943,
82,
5666,
1140,
16,
2589,
64,
82,
7821,
272,
410,
30,
276,
22,
2218,
7,
300,
14,
17,
14848,
30,
8702,
17,
17258,
17,
3600,
300,
14,
6943,
82,
5666,
1140,
16,
2589,
64,
82,
7821,
272,
410,
30,
276,
23,
2218,
2
] |
'actions': [_get_defaults], 'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('next', 'Process'))},
|
'actions': [], 'result': {'type': 'choice', 'next_state': _check_what_next}, }, 'change': { 'actions': [], 'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('next', 'Change Currency'))},
|
def _change_currency(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) inv_obj = pool.get('account.invoice') inv_line_obj = pool.get('account.invoice.line') curr_obj = pool.get('res.currency') invoice_ids = data['ids'] new_currency = data['form']['currency_id']
|
3c39f52b7785e4f403a9f047084b74118cb5588a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/3c39f52b7785e4f403a9f047084b74118cb5588a/wizard_change_currency.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3427,
67,
7095,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
225,
2198,
67,
2603,
273,
2845,
18,
588,
2668,
4631,
18,
16119,
6134,
2198,
67,
1369,
67,
2603,
273,
2845,
18,
588,
2668,
4631,
18,
16119,
18,
1369,
6134,
4306,
67,
2603,
273,
2845,
18,
588,
2668,
455,
18,
7095,
6134,
225,
9179,
67,
2232,
273,
501,
3292,
2232,
3546,
394,
67,
7095,
273,
501,
3292,
687,
21712,
7095,
67,
350,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
2198,
67,
1369,
67,
2603,
273,
2845,
18,
588,
2668,
4631,
18,
16119,
18,
1369,
6134,
4306,
67,
2603,
273,
2845,
18,
588,
2668,
455,
18,
7095,
6134,
225,
9179,
67,
2232,
273,
501,
3292,
2232,
3546,
394,
67,
7095,
273,
501,
3292,
687,
21712,
7095,
67,
350,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.sock.connect((host, port))
|
try: self.sock.connect((host, port)) except socket.error: self.close() raise
|
def connect(self, host='localhost', port = 0): """Connect to a host on a given port.
|
17bfef5860493a0195c999ab44d4c849660cac30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/17bfef5860493a0195c999ab44d4c849660cac30/smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
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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652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
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
] |
print 'These packages are required to'
|
print 'This package is required to'
|
def check_tkz_graph(): r""" Checks if the proper `\mbox{\rm\LaTeX}` packages for the ``tikzpicture`` environment are installed in the user's environment. If the requisite packages are not found on the first call to this function, warnings are printed. Thereafter, the function caches its result in the variable ``_have_tkz_graph``, and any subsequent time, it just checks the value of the variable, without printing any warnings. So any doctest that illustrates the use of the tkz-graph packages should call this once as having random output to exhaust the warnings before testing output. TESTS:: sage: from sage.graphs.graph_latex import check_tkz_graph sage: check_tkz_graph() # random - depends on TeX installation sage: check_tkz_graph() # at least the second time, so no output """ global _checked_tkz_graph if not _checked_tkz_graph: import os have_tkzgraph = not bool(os.system('kpsewhich tkz-graph.sty > /dev/null')) if not have_tkzgraph: print 'Warning: tkz-graph.sty is not part' print "of this computer's TeX installation." print 'These packages are required to' print 'render graphs in LaTeX. Visit' print 'http://altermundus.com/pages/graph.html' have_tkzberge = not bool(os.system('kpsewhich tkz-berge.sty > /dev/null')) if not have_tkzberge: print 'Warning: tkz-berge.sty is not part' print "of this computer's TeX installation." print 'These packages are required to' print 'render graphs in LaTeX. Visit' print 'http://altermundus.com/pages/graph.html' _checked_tkz_graph = True
|
99481238fceb0d8b68ce60dc6afa0cf50557a9c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/99481238fceb0d8b68ce60dc6afa0cf50557a9c1/graph_latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16099,
94,
67,
4660,
13332,
436,
8395,
13074,
309,
326,
5338,
1375,
64,
81,
2147,
23241,
8864,
64,
30745,
21575,
60,
11760,
5907,
364,
326,
12176,
88,
1766,
94,
21126,
10335,
3330,
854,
5876,
316,
326,
729,
1807,
3330,
18,
225,
971,
326,
10780,
291,
1137,
5907,
854,
486,
1392,
603,
326,
1122,
745,
358,
333,
445,
16,
5599,
854,
14099,
18,
6149,
5205,
16,
326,
445,
12535,
2097,
563,
316,
326,
2190,
12176,
67,
21516,
67,
16099,
94,
67,
4660,
68,
9191,
471,
1281,
10815,
813,
16,
518,
2537,
4271,
326,
460,
434,
326,
2190,
16,
2887,
19171,
1281,
5599,
18,
225,
6155,
1281,
31263,
395,
716,
277,
2906,
27008,
815,
326,
999,
434,
326,
13030,
94,
17,
4660,
5907,
1410,
745,
333,
3647,
487,
7999,
2744,
876,
358,
19575,
641,
326,
5599,
1865,
7769,
876,
18,
225,
22130,
55,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
30016,
18,
4660,
67,
26264,
1930,
866,
67,
16099,
94,
67,
4660,
272,
410,
30,
866,
67,
16099,
94,
67,
4660,
1435,
225,
468,
2744,
300,
10935,
603,
28602,
60,
13193,
272,
410,
30,
866,
67,
16099,
94,
67,
4660,
1435,
225,
468,
622,
4520,
326,
2205,
813,
16,
1427,
1158,
876,
3536,
2552,
389,
4532,
67,
16099,
94,
67,
4660,
309,
486,
389,
4532,
67,
16099,
94,
67,
4660,
30,
1930,
1140,
1240,
67,
16099,
94,
4660,
273,
486,
1426,
12,
538,
18,
4299,
2668,
79,
84,
307,
12784,
13030,
94,
17,
4660,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16099,
94,
67,
4660,
13332,
436,
8395,
13074,
309,
326,
5338,
1375,
64,
81,
2147,
23241,
8864,
64,
30745,
21575,
60,
11760,
5907,
364,
326,
12176,
88,
1766,
94,
21126,
10335,
3330,
854,
5876,
316,
326,
729,
1807,
3330,
18,
225,
971,
326,
10780,
291,
1137,
5907,
854,
486,
1392,
603,
326,
1122,
745,
358,
333,
445,
16,
5599,
854,
14099,
18,
6149,
5205,
16,
326,
445,
12535,
2097,
563,
316,
326,
2190,
12176,
67,
21516,
67,
16099,
94,
67,
4660,
68,
9191,
471,
1281,
10815,
813,
16,
518,
2537,
4271,
326,
460,
434,
326,
2190,
16,
2887,
19171,
1281,
5599,
18,
225,
6155,
1281,
31263,
395,
716,
277,
2906,
27008,
815,
326,
999,
434,
326,
2
] |
log.msg("speex: short read on encode %d != 320"%len(bytes))
|
log.msg("speex: short read on encode, %d != 320"%len(bytes), system="codec")
|
def encode(self, bytes, unpack=struct.unpack): if len(bytes) != 320: log.msg("speex: short read on encode %d != 320"%len(bytes)) return None frames = list(unpack('160h', bytes)) return self.enc.encode(frames)
|
79c921f7dfdcd86945a1e4eff39707a829a94c39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/79c921f7dfdcd86945a1e4eff39707a829a94c39/converters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
1731,
16,
6167,
33,
1697,
18,
17309,
4672,
309,
562,
12,
3890,
13,
480,
890,
3462,
30,
613,
18,
3576,
2932,
87,
347,
338,
30,
3025,
855,
603,
2017,
16,
738,
72,
480,
890,
3462,
28385,
1897,
12,
3890,
3631,
2619,
1546,
21059,
7923,
327,
599,
7793,
273,
666,
12,
17309,
2668,
16874,
76,
2187,
1731,
3719,
327,
365,
18,
1331,
18,
3015,
12,
10278,
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,
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981,
30,
1652,
2017,
12,
2890,
16,
1731,
16,
6167,
33,
1697,
18,
17309,
4672,
309,
562,
12,
3890,
13,
480,
890,
3462,
30,
613,
18,
3576,
2932,
87,
347,
338,
30,
3025,
855,
603,
2017,
16,
738,
72,
480,
890,
3462,
28385,
1897,
12,
3890,
3631,
2619,
1546,
21059,
7923,
327,
599,
7793,
273,
666,
12,
17309,
2668,
16874,
76,
2187,
1731,
3719,
327,
365,
18,
1331,
18,
3015,
12,
10278,
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
] |
"activeFolder", "rootFolder",
|
"activeFolder", "rootFolder", "saveFolder",
|
def import_to_global(modname, attrs=None, math=False): """ import_to_global(modname, (a,b,c,...), math): like "from modname import a,b,c,...", but imports to global namespace (__main__). If math==True, also registers functions with QtiPlot's math function list. """ mod = __import__(modname) for submod in modname.split(".")[1:]: mod = getattr(mod, submod) if attrs==None: attrs=dir(mod) for name in attrs: f = getattr(mod, name) setattr(__main__, name, f) # make functions available in QtiPlot's math function list if math and callable(f): qti.mathFunctions[name] = f
|
81a1031095c3fed44bf2f5a19c917320803d3ffa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2185/81a1031095c3fed44bf2f5a19c917320803d3ffa/qtiplotrc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
3422,
33,
7036,
16,
4233,
33,
8381,
4672,
3536,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
261,
69,
16,
70,
16,
71,
16,
2777,
3631,
4233,
4672,
3007,
315,
2080,
16037,
1930,
279,
16,
70,
16,
71,
16,
7070,
16,
1496,
10095,
358,
2552,
1981,
261,
972,
5254,
972,
2934,
971,
4233,
631,
5510,
16,
2546,
10285,
4186,
598,
29074,
11532,
1807,
4233,
445,
666,
18,
3536,
681,
273,
1001,
5666,
972,
12,
1711,
529,
13,
364,
720,
1711,
316,
16037,
18,
4939,
2932,
1199,
25146,
21,
30,
14542,
681,
273,
3869,
12,
1711,
16,
720,
1711,
13,
309,
3422,
631,
7036,
30,
3422,
33,
1214,
12,
1711,
13,
364,
508,
316,
3422,
30,
284,
273,
3869,
12,
1711,
16,
508,
13,
9241,
12,
972,
5254,
972,
16,
508,
16,
284,
13,
468,
1221,
4186,
2319,
316,
29074,
11532,
1807,
4233,
445,
666,
309,
4233,
471,
4140,
12,
74,
4672,
1043,
9096,
18,
15949,
7503,
63,
529,
65,
273,
284,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
3422,
33,
7036,
16,
4233,
33,
8381,
4672,
3536,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
261,
69,
16,
70,
16,
71,
16,
2777,
3631,
4233,
4672,
3007,
315,
2080,
16037,
1930,
279,
16,
70,
16,
71,
16,
7070,
16,
1496,
10095,
358,
2552,
1981,
261,
972,
5254,
972,
2934,
971,
4233,
631,
5510,
16,
2546,
10285,
4186,
598,
29074,
11532,
1807,
4233,
445,
666,
18,
3536,
681,
273,
1001,
5666,
972,
12,
1711,
529,
13,
364,
720,
1711,
316,
16037,
18,
4939,
2932,
1199,
25146,
21,
30,
14542,
681,
273,
3869,
12,
1711,
16,
720,
1711,
13,
309,
3422,
631,
7036,
30,
3422,
33,
1214,
12,
2
] |
if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2)
|
if os.name <> 'nt': if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2)
|
def stop(self): self.running = False if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2) self.server.socket.close()
|
4b364768f02dd0cb810618831497796305db99fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/4b364768f02dd0cb810618831497796305db99fd/netsvc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
8704,
273,
1083,
309,
1140,
18,
529,
2813,
296,
496,
4278,
309,
3859,
12,
7814,
16,
296,
2664,
1693,
67,
20403,
7181,
11,
4672,
365,
18,
3567,
18,
7814,
18,
15132,
12,
7814,
18,
2664,
1693,
67,
20403,
7181,
13,
469,
30,
365,
18,
3567,
18,
7814,
18,
15132,
12,
22,
13,
365,
18,
3567,
18,
7814,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
8704,
273,
1083,
309,
1140,
18,
529,
2813,
296,
496,
4278,
309,
3859,
12,
7814,
16,
296,
2664,
1693,
67,
20403,
7181,
11,
4672,
365,
18,
3567,
18,
7814,
18,
15132,
12,
7814,
18,
2664,
1693,
67,
20403,
7181,
13,
469,
30,
365,
18,
3567,
18,
7814,
18,
15132,
12,
22,
13,
365,
18,
3567,
18,
7814,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def run(self, slotname):
|
def run(self, slotname, **kwargs):
|
def run(self, slotname): '''Run all plugin functions for the given slot. ''' if not self.enabled: return # Determine handler class to use if slotname in ('config'): conduitcls = ConfigPluginConduit elif slotname == 'init': conduitcls = InitPluginConduit elif slotname == 'reposetup': conduitcls = RepoSetupPluginConduit elif slotname == 'close': conduitcls = PluginConduit elif slotname in ('pretrans', 'posttrans', 'exclude'): conduitcls = MainPluginConduit else: raise ValueError('unknown slot name "%s"' % slotname)
|
74b728ccf7d1b5825815fc6f5ef86064d0870891 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/74b728ccf7d1b5825815fc6f5ef86064d0870891/plugins.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4694,
529,
16,
2826,
4333,
4672,
9163,
1997,
777,
1909,
4186,
364,
326,
864,
4694,
18,
9163,
309,
486,
365,
18,
5745,
30,
327,
225,
468,
10229,
1838,
667,
358,
999,
309,
4694,
529,
316,
7707,
1425,
11,
4672,
356,
2544,
305,
6429,
273,
1903,
3773,
442,
2544,
305,
1327,
4694,
529,
422,
296,
2738,
4278,
356,
2544,
305,
6429,
273,
4378,
3773,
442,
2544,
305,
1327,
4694,
529,
422,
296,
15564,
278,
416,
4278,
356,
2544,
305,
6429,
273,
15118,
7365,
3773,
442,
2544,
305,
1327,
4694,
529,
422,
296,
4412,
4278,
356,
2544,
305,
6429,
273,
6258,
442,
2544,
305,
1327,
4694,
529,
316,
7707,
1484,
2338,
2187,
296,
2767,
2338,
2187,
296,
10157,
11,
4672,
356,
2544,
305,
6429,
273,
12740,
3773,
442,
2544,
305,
469,
30,
1002,
2068,
2668,
8172,
4694,
508,
2213,
87,
5187,
738,
4694,
529,
13,
2,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4694,
529,
16,
2826,
4333,
4672,
9163,
1997,
777,
1909,
4186,
364,
326,
864,
4694,
18,
9163,
309,
486,
365,
18,
5745,
30,
327,
225,
468,
10229,
1838,
667,
358,
999,
309,
4694,
529,
316,
7707,
1425,
11,
4672,
356,
2544,
305,
6429,
273,
1903,
3773,
442,
2544,
305,
1327,
4694,
529,
422,
296,
2738,
4278,
356,
2544,
305,
6429,
273,
4378,
3773,
442,
2544,
305,
1327,
4694,
529,
422,
296,
15564,
278,
416,
4278,
356,
2544,
305,
6429,
273,
15118,
7365,
3773,
442,
2544,
305,
1327,
4694,
529,
422,
296,
4412,
4278,
356,
2544,
305,
6429,
273,
6258,
442,
2544,
305,
1327,
4694,
529,
316,
7707,
1484,
2338,
2187,
296,
2767,
2338,
2187,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.