rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
if sr<(n-1) and er>=n:
|
if sr<n and er>=(n-1):
|
def _splitRows(self,availHeight): h = 0 n = 0 lim = len(self._rowHeights) while n<lim: hn = h + self._rowHeights[n] if hn>availHeight: break h = hn n = n + 1
|
9f5a788184a7139b9b717f8b6082af233464645d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9f5a788184a7139b9b717f8b6082af233464645d/tables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4939,
4300,
12,
2890,
16,
842,
671,
2686,
4672,
366,
273,
374,
290,
273,
374,
20167,
273,
562,
12,
2890,
6315,
492,
2686,
87,
13,
1323,
290,
32,
7091,
30,
366,
82,
273,
366,
397,
365,
6315,
492,
2686,
87,
63,
82,
65,
309,
366,
82,
34,
842,
671,
2686,
30,
898,
366,
273,
366,
82,
290,
273,
290,
397,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
842,
671,
2686,
30,
898,
366,
273,
366,
82,
290,
273,
290,
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
] |
shutil.rmtree(OUTDIR) os.mkdir(OUTDIR)
|
for file in os.listdir(OUTDIR): if file == '.svn': continue file = os.path.join(os.path.abspath(OUTDIR), file) if os.path.isdir(file): shutil.rmtree(file) else: os.remove(file) else: os.mkdir(OUTDIR)
|
def pygments_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): try: lexer = get_lexer_by_name(arguments[0]) except ValueError: # no lexer found - use the text one instead of an exception lexer = TextLexer() # take an arbitrary option if more than one is given formatter = options and VARIANTS[options.keys()[0]] or DEFAULT filtered = [ line for line in content if line ] if len(filtered) and os.path.isfile(filtered[0]): content = open(content[0]).read().splitlines() parsed = highlight(u'\n'.join(content), lexer, formatter) return [nodes.raw('', parsed, format='html')]
|
3f42631bfa6e00b871bd7008eec4af1aa4ae5a4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/3f42631bfa6e00b871bd7008eec4af1aa4ae5a4f/ug2html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
75,
1346,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
775,
30,
8512,
273,
336,
67,
31731,
67,
1637,
67,
529,
12,
7099,
63,
20,
5717,
1335,
2068,
30,
468,
1158,
8512,
1392,
300,
999,
326,
977,
1245,
3560,
434,
392,
1520,
8512,
273,
3867,
13356,
1435,
468,
4862,
392,
11078,
1456,
309,
1898,
2353,
1245,
353,
864,
4453,
273,
702,
471,
8350,
45,
6856,
55,
63,
2116,
18,
2452,
1435,
63,
20,
13563,
578,
3331,
5105,
273,
306,
980,
364,
980,
316,
913,
309,
980,
308,
309,
562,
12,
12071,
13,
471,
1140,
18,
803,
18,
291,
768,
12,
12071,
63,
20,
65,
4672,
913,
273,
1696,
12,
1745,
63,
20,
65,
2934,
896,
7675,
4939,
3548,
1435,
2707,
273,
8839,
12,
89,
8314,
82,
10332,
5701,
12,
1745,
3631,
8512,
16,
4453,
13,
327,
306,
4690,
18,
1899,
2668,
2187,
2707,
16,
740,
2218,
2620,
6134,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
75,
1346,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
775,
30,
8512,
273,
336,
67,
31731,
67,
1637,
67,
529,
12,
7099,
63,
20,
5717,
1335,
2068,
30,
468,
1158,
8512,
1392,
300,
999,
326,
977,
1245,
3560,
434,
392,
1520,
8512,
273,
3867,
13356,
1435,
468,
4862,
392,
11078,
1456,
309,
1898,
2353,
1245,
353,
864,
4453,
273,
702,
471,
8350,
45,
6856,
55,
63,
2116,
18,
2452,
1435,
63,
20,
13563,
578,
3331,
5105,
273,
306,
980,
364,
980,
316,
913,
309,
980,
308,
309,
562,
12,
12071,
13,
471,
1140,
18,
803,
18,
291,
2
] |
4. Subclass SimpleXMLRPCRequestHandler: class MathHandler(SimpleXMLRPCRequestHandler):
|
4. Subclass SimpleXMLRPCServer: class MathServer(SimpleXMLRPCServer):
|
def _dispatch(self, method, params): if method == 'pow': return apply(pow, params) elif method == 'add': return params[0] + params[1] else: raise 'bad method'
|
eca2f3e72cc54be7e8c786d52d54714d73e4aef8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/eca2f3e72cc54be7e8c786d52d54714d73e4aef8/SimpleXMLRPCServer.py
|
[
1,
8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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,
389,
10739,
12,
2890,
16,
707,
16,
859,
4672,
309,
707,
422,
296,
23509,
4278,
327,
2230,
12,
23509,
16,
859,
13,
1327,
707,
422,
296,
1289,
4278,
327,
859,
63,
20,
65,
397,
859,
63,
21,
65,
469,
30,
1002,
296,
8759,
707,
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
] |
fp.write('from %s import *\n'%basepackage._code_to_fullname[code])
|
def compilesuite(suite, major, minor, language, script, fname, basepackage=None): """Generate code for a single suite""" [name, desc, code, level, version, events, classes, comps, enums] = suite modname = identify(name) if len(modname) > 28: modname = modname[:27] fss, ok = macfs.StandardPutFile('Python output file', modname+'.py') if not ok: return None, None pathname = fss.as_pathname() modname = os.path.splitext(os.path.split(pathname)[1])[0] fp = open(fss.as_pathname(), 'w') fss.SetCreatorType('Pyth', 'TEXT') fp.write('"""Suite %s: %s\n' % (name, desc)) fp.write("Level %d, version %d\n\n" % (level, version)) fp.write("Generated from %s\n"%fname) fp.write("AETE/AEUT resource version %d/%d, language %d, script %d\n" % \ (major, minor, language, script)) fp.write('"""\n\n') fp.write('import aetools\n') fp.write('import MacOS\n\n') fp.write("_code = %s\n\n"% `code`) if basepackage and basepackage._code_to_module.has_key(code): # We are an extension of a baseclass (usually an application extending # Standard_Suite or so). Import everything from our base module fp.write('from %s import *\n'%basepackage._code_to_fullname[code]) basemodule = basepackage._code_to_module[code] else: # We are not an extension. basemodule = None compileclassheader(fp, modname, basemodule) enumsneeded = {} if events: for event in events: compileevent(fp, event, enumsneeded) else: fp.write("\tpass\n\n") objc = ObjectCompiler(fp, basemodule) for cls in classes: objc.compileclass(cls) for cls in classes: objc.fillclasspropsandelems(cls) for comp in comps: objc.compilecomparison(comp) for enum in enums: objc.compileenumeration(enum) for enum in enumsneeded.keys(): objc.checkforenum(enum) objc.dumpindex() return code, modname
|
b18e37723e6f3e7fe6bae03f14e954721df23eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b18e37723e6f3e7fe6bae03f14e954721df23eaf/gensuitemodule.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1161,
1449,
9519,
12,
30676,
16,
7888,
16,
8439,
16,
2653,
16,
2728,
16,
5299,
16,
1026,
5610,
33,
7036,
4672,
3536,
4625,
981,
364,
279,
2202,
11371,
8395,
306,
529,
16,
3044,
16,
981,
16,
1801,
16,
1177,
16,
2641,
16,
3318,
16,
13979,
16,
17922,
65,
273,
11371,
225,
16037,
273,
9786,
12,
529,
13,
309,
562,
12,
1711,
529,
13,
405,
9131,
30,
16037,
273,
16037,
10531,
5324,
65,
284,
1049,
16,
1529,
273,
5318,
2556,
18,
8336,
6426,
812,
2668,
15774,
876,
585,
2187,
16037,
6797,
18,
2074,
6134,
309,
486,
1529,
30,
327,
599,
16,
599,
9806,
273,
284,
1049,
18,
345,
67,
28336,
1435,
16037,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
4939,
12,
28336,
25146,
21,
5717,
63,
20,
65,
4253,
273,
1696,
12,
74,
1049,
18,
345,
67,
28336,
9334,
296,
91,
6134,
284,
1049,
18,
694,
10636,
559,
2668,
9413,
451,
2187,
296,
5151,
6134,
225,
4253,
18,
2626,
2668,
8395,
13587,
738,
87,
30,
738,
87,
64,
82,
11,
738,
261,
529,
16,
3044,
3719,
4253,
18,
2626,
2932,
2355,
738,
72,
16,
1177,
738,
72,
64,
82,
64,
82,
6,
738,
261,
2815,
16,
1177,
3719,
4253,
18,
2626,
2932,
7823,
628,
738,
87,
64,
82,
28385,
12749,
13,
4253,
18,
2626,
2932,
16985,
1448,
19,
16985,
1693,
1058,
1177,
738,
72,
5258,
72,
16,
2653,
738,
72,
16,
2728,
738,
72,
64,
82,
6,
738,
521,
261,
14019,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1161,
1449,
9519,
12,
30676,
16,
7888,
16,
8439,
16,
2653,
16,
2728,
16,
5299,
16,
1026,
5610,
33,
7036,
4672,
3536,
4625,
981,
364,
279,
2202,
11371,
8395,
306,
529,
16,
3044,
16,
981,
16,
1801,
16,
1177,
16,
2641,
16,
3318,
16,
13979,
16,
17922,
65,
273,
11371,
225,
16037,
273,
9786,
12,
529,
13,
309,
562,
12,
1711,
529,
13,
405,
9131,
30,
16037,
273,
16037,
10531,
5324,
65,
284,
1049,
16,
1529,
273,
5318,
2556,
18,
8336,
6426,
812,
2668,
15774,
876,
585,
2187,
16037,
6797,
18,
2074,
6134,
309,
486,
1529,
30,
327,
599,
16,
599,
9806,
273,
284,
1049,
18,
345,
67,
28336,
1435,
16037,
273,
1140,
18,
803,
18,
4939,
408,
2
] |
|
Simple abelian variety factor 33a(1,33) of dimension 1 of J0(33)
|
Simple abelian subvariety 33a(1,33) of dimension 1 of J0(33)
|
def complement(self, A=None): """ Return a complement of this abelian variety.
|
231a556974015ed454b20c5783447e82495d8183 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/231a556974015ed454b20c5783447e82495d8183/abvar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17161,
12,
2890,
16,
432,
33,
7036,
4672,
3536,
2000,
279,
17161,
434,
333,
1223,
292,
2779,
1394,
14369,
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,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17161,
12,
2890,
16,
432,
33,
7036,
4672,
3536,
2000,
279,
17161,
434,
333,
1223,
292,
2779,
1394,
14369,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if name=="Weekly": new_name=de.strftime('%Y, week %W')
|
if name =="Weekly": new_name = de.strftime('%Y, week %W')
|
def create_period(self,cr, uid, ids, context={}, interval=0, name='Daily'): for p in self.browse(cr, uid, ids, context): dt = p.date_start ds = mx.DateTime.strptime(p.date_start, '%Y-%m-%d') while ds.strftime('%Y-%m-%d')<p.date_stop: de = ds + RelativeDateTime(days=interval, minutes =-1) if name=='Daily': new_name=de.strftime('%Y-%m-%d') if name=="Weekly": new_name=de.strftime('%Y, week %W') self.pool.get('stock.period').create(cr, uid, { 'name': new_name, 'date_start': ds.strftime('%Y-%m-%d'), 'date_stop': de.strftime('%Y-%m-%d %H:%M:%S'), }) ds = ds + RelativeDateTime(days=interval) + 1 return { 'view_type': 'form', "view_mode": 'tree', 'res_model': 'stock.period', 'type': 'ir.actions.act_window', }
|
6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6908,
12,
2890,
16,
3353,
16,
4555,
16,
3258,
16,
819,
28793,
3673,
33,
20,
16,
508,
2218,
40,
12857,
11,
4672,
364,
293,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
3681,
273,
293,
18,
712,
67,
1937,
3780,
273,
7938,
18,
5096,
18,
701,
10650,
12,
84,
18,
712,
67,
1937,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
1323,
3780,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6134,
32,
84,
18,
712,
67,
5681,
30,
443,
273,
3780,
397,
19873,
5096,
12,
9810,
33,
6624,
16,
6824,
273,
17,
21,
13,
309,
508,
18920,
40,
12857,
4278,
394,
67,
529,
33,
323,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6134,
309,
508,
422,
6,
6630,
715,
6877,
394,
67,
529,
273,
443,
18,
701,
9982,
29909,
61,
16,
4860,
738,
59,
6134,
365,
18,
6011,
18,
588,
2668,
15381,
18,
6908,
16063,
2640,
12,
3353,
16,
4555,
16,
288,
296,
529,
4278,
394,
67,
529,
16,
296,
712,
67,
1937,
4278,
3780,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
19899,
296,
712,
67,
5681,
4278,
443,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
19899,
289,
13,
3780,
273,
3780,
397,
19873,
5096,
12,
9810,
33,
6624,
13,
397,
404,
327,
288,
296,
1945,
67,
723,
4278,
296,
687,
2187,
315,
1945,
67,
3188,
6877,
296,
3413,
2187,
296,
455,
67,
2284,
4278,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6908,
12,
2890,
16,
3353,
16,
4555,
16,
3258,
16,
819,
28793,
3673,
33,
20,
16,
508,
2218,
40,
12857,
11,
4672,
364,
293,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
3681,
273,
293,
18,
712,
67,
1937,
3780,
273,
7938,
18,
5096,
18,
701,
10650,
12,
84,
18,
712,
67,
1937,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
1323,
3780,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6134,
32,
84,
18,
712,
67,
5681,
30,
443,
273,
3780,
397,
19873,
5096,
12,
9810,
33,
6624,
16,
6824,
273,
17,
21,
13,
309,
508,
18920,
40,
12857,
4278,
394,
67,
529,
33,
323,
18,
701,
9982,
29909,
2
] |
if ('align' not in node.attributes or node.attributes['align'] == 'center'): align = '\n\\centering' align_end = '' else: align = '\\begin{flush%s}' % node.attributes['align'] align_end = '\\end{flush%s}' % node.attributes['align'] self.body.append( '\\begin{figure}[htbp]%s\n' % align ) self.context.append( '%s\\end{figure}\n' % align_end )
|
self.body.append('\\begin{figure}[htbp]') self.context.append('\\end{figure}\n')
|
def visit_figure(self, node): # TODO: use LaTeX default alignment (left) (similar to HTML) if ('align' not in node.attributes or node.attributes['align'] == 'center'): # centering does not add vertical space like center. align = '\n\\centering' align_end = '' else: # TODO non vertical space for other alignments. align = '\\begin{flush%s}' % node.attributes['align'] align_end = '\\end{flush%s}' % node.attributes['align'] self.body.append( '\\begin{figure}[htbp]%s\n' % align ) self.context.append( '%s\\end{figure}\n' % align_end )
|
ca2f22b1c4e8be5a06f234a03127244e2db8bd3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/ca2f22b1c4e8be5a06f234a03127244e2db8bd3c/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
19675,
12,
2890,
16,
756,
4672,
468,
2660,
30,
999,
21072,
21575,
60,
805,
8710,
261,
4482,
13,
261,
22985,
358,
3982,
13,
309,
7707,
7989,
11,
486,
316,
756,
18,
4350,
578,
756,
18,
4350,
3292,
7989,
3546,
422,
296,
5693,
11,
4672,
468,
4617,
310,
1552,
486,
527,
9768,
3476,
3007,
4617,
18,
5689,
273,
2337,
82,
1695,
5693,
310,
11,
5689,
67,
409,
273,
875,
469,
30,
468,
2660,
1661,
9768,
3476,
364,
1308,
28555,
18,
5689,
273,
3718,
10086,
95,
11330,
9,
87,
1713,
738,
756,
18,
4350,
3292,
7989,
3546,
5689,
67,
409,
273,
3718,
409,
95,
11330,
9,
87,
1713,
738,
756,
18,
4350,
3292,
7989,
3546,
365,
18,
3432,
18,
6923,
12,
3718,
10086,
95,
19675,
20294,
647,
17152,
65,
9,
87,
64,
82,
11,
738,
5689,
262,
365,
18,
2472,
18,
6923,
12,
1995,
87,
1695,
409,
95,
19675,
6280,
82,
11,
738,
5689,
67,
409,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
19675,
12,
2890,
16,
756,
4672,
468,
2660,
30,
999,
21072,
21575,
60,
805,
8710,
261,
4482,
13,
261,
22985,
358,
3982,
13,
309,
7707,
7989,
11,
486,
316,
756,
18,
4350,
578,
756,
18,
4350,
3292,
7989,
3546,
422,
296,
5693,
11,
4672,
468,
4617,
310,
1552,
486,
527,
9768,
3476,
3007,
4617,
18,
5689,
273,
2337,
82,
1695,
5693,
310,
11,
5689,
67,
409,
273,
875,
469,
30,
468,
2660,
1661,
9768,
3476,
364,
1308,
28555,
18,
5689,
273,
3718,
10086,
95,
11330,
9,
87,
1713,
738,
756,
18,
4350,
3292,
7989,
3546,
5689,
67,
409,
273,
3718,
409,
95,
11330,
9,
87,
1713,
738,
756,
18,
4350,
3292,
7989,
3546,
365,
18,
3432,
2
] |
TixSubWidget.__init__(self, master, name, destroy_physically)
|
TixSubWidget.__init__(self, master, name, destroy_physically)
|
def __init__(self, master, name, destroy_physically=0):
|
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
20,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
args = getnewargs()
|
args = getnewargs()
|
def save_newobj(self, obj): # Save a new-style class instance, using protocol 2. # XXX This is still experimental. assert self.proto >= 2 # This only works for protocol 2 t = type(obj) getnewargs = getattr(obj, "__getnewargs__", None) if getnewargs: args = getnewargs() # This bette not reference obj else: args = ()
|
eb06c0d76f9bedc0d419a077d9cfdc5ac0e021e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/eb06c0d76f9bedc0d419a077d9cfdc5ac0e021e2/pickle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
2704,
2603,
12,
2890,
16,
1081,
4672,
468,
7074,
279,
394,
17,
4060,
667,
791,
16,
1450,
1771,
576,
18,
468,
11329,
1220,
353,
4859,
23070,
18,
1815,
365,
18,
9393,
1545,
576,
1850,
468,
1220,
1338,
6330,
364,
1771,
576,
268,
273,
618,
12,
2603,
13,
336,
2704,
1968,
273,
3869,
12,
2603,
16,
10425,
588,
2704,
1968,
972,
3113,
599,
13,
309,
336,
2704,
1968,
30,
833,
273,
336,
2704,
1968,
1435,
540,
468,
1220,
2701,
736,
486,
2114,
1081,
469,
30,
833,
273,
1832,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
2704,
2603,
12,
2890,
16,
1081,
4672,
468,
7074,
279,
394,
17,
4060,
667,
791,
16,
1450,
1771,
576,
18,
468,
11329,
1220,
353,
4859,
23070,
18,
1815,
365,
18,
9393,
1545,
576,
1850,
468,
1220,
1338,
6330,
364,
1771,
576,
268,
273,
618,
12,
2603,
13,
336,
2704,
1968,
273,
3869,
12,
2603,
16,
10425,
588,
2704,
1968,
972,
3113,
599,
13,
309,
336,
2704,
1968,
30,
833,
273,
336,
2704,
1968,
1435,
540,
468,
1220,
2701,
736,
486,
2114,
1081,
469,
30,
833,
273,
1832,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buildir = os.path.dirname(sys.executable)
|
buildir = os.path.dirname(os.path.realpath(sys.executable))
|
def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pyconfig.h). If 'prefix' is supplied, use it instead of sys.prefix or sys.exec_prefix -- i.e., ignore 'plat_specific'. """ if prefix is None: prefix = plat_specific and EXEC_PREFIX or PREFIX if os.name == "posix": if python_build: buildir = os.path.dirname(sys.executable) if plat_specific: # python.h is located in the buildir inc_dir = buildir else: # the source dir is relative to the buildir srcdir = os.path.abspath(os.path.join(buildir, get_config_var('srcdir'))) # Include is located in the srcdir inc_dir = os.path.join(srcdir, "Include") return inc_dir return os.path.join(prefix, "include", "python" + get_python_version()) elif os.name == "nt": return os.path.join(prefix, "include") elif os.name == "mac": if plat_specific: return os.path.join(prefix, "Mac", "Include") else: return os.path.join(prefix, "Include") elif os.name == "os2": return os.path.join(prefix, "Include") else: raise DistutilsPlatformError( "I don't know where Python installs its C header files " "on platform '%s'" % os.name)
|
6fe4970b903c3a5b646f6d30ad62e22255daeca1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/6fe4970b903c3a5b646f6d30ad62e22255daeca1/sysconfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
353,
629,
261,
5787,
805,
3631,
333,
353,
326,
589,
358,
326,
1661,
17,
9898,
17,
12524,
1446,
1390,
16,
277,
18,
73,
18,
6600,
18,
76,
471,
1427,
603,
31,
3541,
16,
333,
353,
326,
589,
358,
4072,
17,
12524,
1446,
1390,
261,
17808,
2357,
2395,
1425,
18,
76,
2934,
225,
971,
296,
3239,
11,
353,
4580,
16,
999,
518,
3560,
434,
2589,
18,
3239,
578,
2589,
18,
4177,
67,
3239,
1493,
277,
18,
73,
12990,
2305,
296,
412,
270,
67,
12524,
10332,
3536,
309,
1633,
353,
599,
30,
1633,
273,
29838,
67,
12524,
471,
24508,
67,
6307,
578,
17154,
225,
309,
1140,
18,
529,
422,
315,
24463,
6877,
309,
5790,
67,
3510,
30,
1361,
481,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
7688,
803,
12,
9499,
18,
17751,
3719,
309,
29838,
67,
12524,
30,
468,
5790,
18,
76,
353,
13801,
316,
326,
1361,
481,
7290,
67,
1214,
273,
1361,
481,
469,
30,
468,
326,
1084,
1577,
353,
3632,
358,
326,
1361,
481,
1705,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
3510,
481,
16,
336,
67,
1425,
67,
1401,
2668,
4816,
1214,
11,
20349,
468,
12672,
353,
13801,
316,
326,
1705,
1214,
7290,
67,
1214,
273,
1140,
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,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
353,
629,
261,
5787,
805,
3631,
333,
353,
326,
589,
358,
326,
1661,
17,
9898,
17,
12524,
1446,
1390,
16,
277,
18,
73,
18,
6600,
18,
76,
471,
1427,
603,
31,
3541,
16,
333,
353,
326,
589,
358,
4072,
17,
12524,
1446,
1390,
261,
17808,
2357,
2395,
1425,
18,
76,
2934,
225,
971,
296,
3239,
11,
353,
4580,
16,
999,
518,
3560,
434,
2589,
18,
3239,
578,
2589,
18,
4177,
67,
3239,
1493,
277,
18,
73,
12990,
2305,
296,
412,
270,
67,
12524,
2
] |
['p', common.MP(obj.p)[4:]], ['q', common.MP(obj.q)[4:]], ['a', common.MP(obj.d%(obj.p-1))[4:]], ['b', common.MP(obj.d%(obj.q-1))[4:]], ['c', common.MP(Util.number.inverse(obj.q, obj.p))[4:]]]]])
|
['p', common.MP(q)[4:]], ['q', common.MP(p)[4:]], ['a', common.MP(obj.d%(q-1))[4:]], ['b', common.MP(obj.d%(p-1))[4:]], ['c', common.MP(Util.number.inverse(p, q))[4:]]]]])
|
def makePrivateKeyString_lsh(obj, passphrase): #assert not passphrase keyType = objectType(obj) if keyType == 'ssh-rsa': return sexpy.pack([['private-key', ['rsa-pkcs1', ['n', common.MP(obj.n)[4:]], ['e', common.MP(obj.e)[4:]], ['d', common.MP(obj.d)[4:]], ['p', common.MP(obj.p)[4:]], ['q', common.MP(obj.q)[4:]], ['a', common.MP(obj.d%(obj.p-1))[4:]], ['b', common.MP(obj.d%(obj.q-1))[4:]], ['c', common.MP(Util.number.inverse(obj.q, obj.p))[4:]]]]]) elif keyType == 'ssh-dss': return sexpy.pack([['private-key', ['dsa', ['p', common.MP(obj.p)[4:]], ['q', common.MP(obj.q)[4:]], ['g', common.MP(obj.g)[4:]], ['y', common.MP(obj.y)[4:]], ['x', common.MP(obj.x)[4:]]]]]) else: raise BadKeyError('bad keyType %s' % keyType)
|
3cf1ed6058067c1597ae54cb3a1cd95725a1e8d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3cf1ed6058067c1597ae54cb3a1cd95725a1e8d1/keys.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
10824,
780,
67,
80,
674,
12,
2603,
16,
15244,
4672,
468,
11231,
486,
15244,
14867,
273,
16400,
12,
2603,
13,
309,
14867,
422,
296,
10975,
17,
24654,
4278,
327,
19631,
2074,
18,
2920,
3816,
3292,
1152,
17,
856,
2187,
10228,
24654,
17,
5465,
2143,
21,
2187,
10228,
82,
2187,
2975,
18,
4566,
12,
2603,
18,
82,
25146,
24,
26894,
6487,
10228,
73,
2187,
2975,
18,
4566,
12,
2603,
18,
73,
25146,
24,
26894,
6487,
10228,
72,
2187,
2975,
18,
4566,
12,
2603,
18,
72,
25146,
24,
26894,
6487,
10228,
84,
2187,
2975,
18,
4566,
12,
85,
25146,
24,
26894,
6487,
10228,
85,
2187,
2975,
18,
4566,
12,
84,
25146,
24,
26894,
6487,
10228,
69,
2187,
2975,
18,
4566,
12,
2603,
18,
72,
17105,
85,
17,
21,
3719,
63,
24,
26894,
6487,
10228,
70,
2187,
2975,
18,
4566,
12,
2603,
18,
72,
17105,
84,
17,
21,
3719,
63,
24,
26894,
6487,
10228,
71,
2187,
2975,
18,
4566,
12,
1304,
18,
2696,
18,
22552,
12,
84,
16,
1043,
3719,
63,
24,
30,
13563,
13563,
5717,
1327,
14867,
422,
296,
10975,
17,
72,
1049,
4278,
327,
19631,
2074,
18,
2920,
3816,
3292,
1152,
17,
856,
2187,
10228,
19603,
2187,
10228,
84,
2187,
2975,
18,
4566,
12,
2603,
18,
84,
25146,
24,
26894,
6487,
10228,
85,
2187,
2975,
18,
4566,
12,
2603,
18,
85,
25146,
24,
26894,
6487,
10228,
75,
2187,
2975,
18,
4566,
12,
2603,
18,
75,
25146,
24,
26894,
6487,
10228,
93,
2187,
2975,
18,
4566,
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,
1221,
10824,
780,
67,
80,
674,
12,
2603,
16,
15244,
4672,
468,
11231,
486,
15244,
14867,
273,
16400,
12,
2603,
13,
309,
14867,
422,
296,
10975,
17,
24654,
4278,
327,
19631,
2074,
18,
2920,
3816,
3292,
1152,
17,
856,
2187,
10228,
24654,
17,
5465,
2143,
21,
2187,
10228,
82,
2187,
2975,
18,
4566,
12,
2603,
18,
82,
25146,
24,
26894,
6487,
10228,
73,
2187,
2975,
18,
4566,
12,
2603,
18,
73,
25146,
24,
26894,
6487,
10228,
72,
2187,
2975,
18,
4566,
12,
2603,
18,
72,
25146,
24,
26894,
6487,
10228,
84,
2187,
2975,
18,
4566,
12,
85,
25146,
24,
26894,
6487,
10228,
85,
2187,
2975,
18,
4566,
12,
84,
25146,
24,
26894,
6487,
10228,
69,
2187,
2975,
18,
2
] |
send_subprocess(['git', 'clean', '-fxdq'], path=path)
|
if self.added: send_subprocess(['git', 'clean', '-fxdq'], path=self.path) self.added.clear() self.changed.clear()
|
def _abort_changes(self): cache = self.cache path = self.path to_add = self._to_add
|
3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18623,
67,
6329,
12,
2890,
4672,
1247,
273,
365,
18,
2493,
589,
273,
365,
18,
803,
358,
67,
1289,
273,
365,
6315,
869,
67,
1289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
""" make -C '$(1)' -j '$(JOBS)' libbz2.a """
|
""" make install """
|
def buildAll() : for name in packageOrder : build(name)
|
562268164ac29d52a79c3d3ea3a433ed0badb027 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1456/562268164ac29d52a79c3d3ea3a433ed0badb027/setup_mingw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1595,
1435,
294,
364,
508,
316,
2181,
2448,
294,
1361,
12,
529,
13,
377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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30,
1652,
1361,
1595,
1435,
294,
364,
508,
316,
2181,
2448,
294,
1361,
12,
529,
13,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return delta.months + delta .years * 12
|
return delta.months + delta.years * 12
|
def _get_maintenance_month_qty_from_start_end(self, cr, uid, start, end): delta = DateTime.RelativeDateDiff(end + RelativeDateTime(days=fixed_days_before_month_end + 1), start) return delta.months + delta .years * 12
|
4e7383fcc48fc6d9ac6de042fc37dcda7c7991df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/4e7383fcc48fc6d9ac6de042fc37dcda7c7991df/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
29715,
67,
7496,
67,
85,
4098,
67,
2080,
67,
1937,
67,
409,
12,
2890,
16,
4422,
16,
4555,
16,
787,
16,
679,
4672,
3622,
273,
3716,
18,
8574,
1626,
5938,
12,
409,
397,
19873,
5096,
12,
9810,
33,
12429,
67,
9810,
67,
5771,
67,
7496,
67,
409,
397,
404,
3631,
787,
13,
327,
3622,
18,
27584,
397,
3622,
18,
29391,
380,
2593,
282,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
29715,
67,
7496,
67,
85,
4098,
67,
2080,
67,
1937,
67,
409,
12,
2890,
16,
4422,
16,
4555,
16,
787,
16,
679,
4672,
3622,
273,
3716,
18,
8574,
1626,
5938,
12,
409,
397,
19873,
5096,
12,
9810,
33,
12429,
67,
9810,
67,
5771,
67,
7496,
67,
409,
397,
404,
3631,
787,
13,
327,
3622,
18,
27584,
397,
3622,
18,
29391,
380,
2593,
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
] |
fw = dict(lower=framework.lower(), upper=framework.upper(), cap=framework.capitalize()) fwpth = "Library/Frameworks/%(cap)s.framework/%(lower)sConfig.sh" % fw sysfw = os.path.join('/System', fwpth)
|
fwpth = 'Library/Frameworks/Tcl.framework/Versions/Current' sysfw = os.path.join(SDKPATH, 'System', fwpth)
|
def checkEnvironment(): """ Check that we're running on a supported system. """ if platform.system() != 'Darwin': fatal("This script should be run on a Mac OS X 10.4 (or later) system") if int(platform.release().split('.')[0]) < 8: fatal("This script should be run on a Mac OS X 10.4 (or later) system") if not os.path.exists(SDKPATH): fatal("Please install the latest version of Xcode and the %s SDK"%( os.path.basename(SDKPATH[:-4]))) # Because we only support dynamic load of only one major/minor version of # Tcl/Tk, ensure: # 1. there are no user-installed frameworks of Tcl/Tk with version # higher than the Apple-supplied system version # 2. there is a user-installed framework in /Library/Frameworks with the # same version as the system version. This allows users to choose # to install a newer patch level. for framework in ['Tcl', 'Tk']: fw = dict(lower=framework.lower(), upper=framework.upper(), cap=framework.capitalize()) fwpth = "Library/Frameworks/%(cap)s.framework/%(lower)sConfig.sh" % fw sysfw = os.path.join('/System', fwpth) libfw = os.path.join('/', fwpth) usrfw = os.path.join(os.getenv('HOME'), fwpth) version = "%(upper)s_VERSION" % fw if getTclTkVersion(libfw, version) != getTclTkVersion(sysfw, version): fatal("Version of %s must match %s" % (libfw, sysfw) ) if os.path.exists(usrfw): fatal("Please rename %s to avoid possible dynamic load issues." % usrfw) # Remove inherited environment variables which might influence build environ_var_prefixes = ['CPATH', 'C_INCLUDE_', 'DYLD_', 'LANG', 'LC_', 'LD_', 'LIBRARY_', 'PATH', 'PYTHON'] for ev in list(os.environ): for prefix in environ_var_prefixes: if ev.startswith(prefix) : print "INFO: deleting environment variable %s=%s" % ( ev, os.environ[ev]) del os.environ[ev] os.environ['PATH'] = '/bin:/sbin:/usr/bin:/usr/sbin' print "Setting default PATH: %s"%(os.environ['PATH'])
|
d54d355ae0a4f89259661991480939fabe2f7da0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/d54d355ae0a4f89259661991480939fabe2f7da0/build-installer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
5494,
13332,
3536,
2073,
716,
732,
4565,
3549,
603,
279,
3260,
2619,
18,
3536,
225,
309,
4072,
18,
4299,
1435,
480,
296,
40,
19992,
4278,
10081,
2932,
2503,
2728,
1410,
506,
1086,
603,
279,
13217,
5932,
1139,
1728,
18,
24,
261,
280,
5137,
13,
2619,
7923,
225,
309,
509,
12,
9898,
18,
9340,
7675,
4939,
2668,
1093,
25146,
20,
5717,
411,
1725,
30,
10081,
2932,
2503,
2728,
1410,
506,
1086,
603,
279,
13217,
5932,
1139,
1728,
18,
24,
261,
280,
5137,
13,
2619,
7923,
225,
309,
486,
1140,
18,
803,
18,
1808,
12,
22625,
4211,
4672,
10081,
2932,
8496,
3799,
326,
4891,
1177,
434,
1139,
710,
471,
326,
738,
87,
3881,
6,
17105,
1140,
18,
803,
18,
13909,
12,
22625,
4211,
10531,
17,
24,
65,
20349,
225,
468,
15191,
732,
1338,
2865,
5976,
1262,
434,
1338,
1245,
7888,
19,
17364,
1177,
434,
468,
399,
830,
19,
56,
79,
16,
3387,
30,
468,
404,
18,
1915,
854,
1158,
729,
17,
13435,
8257,
87,
434,
399,
830,
19,
56,
79,
598,
1177,
468,
4202,
10478,
2353,
326,
1716,
1802,
17,
2859,
3110,
2619,
1177,
468,
576,
18,
1915,
353,
279,
729,
17,
13435,
8257,
316,
342,
9313,
19,
13701,
87,
598,
326,
468,
4202,
1967,
1177,
487,
326,
2619,
1177,
18,
225,
1220,
5360,
3677,
358,
9876,
468,
4202,
358,
3799,
279,
16069,
4729,
1801,
18,
225,
364,
8257,
316,
10228,
56,
830,
2187,
296,
56,
79,
3546,
30,
377,
7600,
2397,
273,
296,
9313,
19,
13701,
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,
5494,
13332,
3536,
2073,
716,
732,
4565,
3549,
603,
279,
3260,
2619,
18,
3536,
225,
309,
4072,
18,
4299,
1435,
480,
296,
40,
19992,
4278,
10081,
2932,
2503,
2728,
1410,
506,
1086,
603,
279,
13217,
5932,
1139,
1728,
18,
24,
261,
280,
5137,
13,
2619,
7923,
225,
309,
509,
12,
9898,
18,
9340,
7675,
4939,
2668,
1093,
25146,
20,
5717,
411,
1725,
30,
10081,
2932,
2503,
2728,
1410,
506,
1086,
603,
279,
13217,
5932,
1139,
1728,
18,
24,
261,
280,
5137,
13,
2619,
7923,
225,
309,
486,
1140,
18,
803,
18,
1808,
12,
22625,
4211,
4672,
10081,
2932,
8496,
3799,
326,
4891,
1177,
434,
1139,
710,
471,
326,
738,
87,
3881,
6,
17105,
1140,
18,
803,
18,
2
] |
new_keysyms.append(unichr(int(keysyms[1], 16)))
|
unicode_char = unichr(int(keysyms[1], 16))
|
def get_keymap_table(): keymap = {} keymap_table = cmd_keymap_table() re_line = re.compile(r'0x\w+') for line in keymap_table.split('\n')[1:]: if len(line) > 0: keycode = re.search(r'\s+(\d+).*', line) if keycode: new_keysyms = [] keycode = int(keycode.group(1)) keysyms = re_line.findall(line) # When you press only one key try: new_keysyms.append(unichr(int(keysyms[0], 16))) except: new_keysyms.append('') # When you press a key plus Shift key try: new_keysyms.append(unichr(int(keysyms[1], 16))) except: new_keysyms.append('') # When you press a key plus meta (dead keys) try: new_keysyms.append(unichr(int(keysyms[4], 16))) except: new_keysyms.append('') # When you press a key plus meta plus Shift key (dead keys) try: new_keysyms.append(unichr(int(keysyms[5], 16))) except: new_keysyms.append('') keymap[keycode-8] = new_keysyms return keymap
|
e8245fe51ea61f1764c2053166427459a0c9f3ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4183/e8245fe51ea61f1764c2053166427459a0c9f3ad/modmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
1458,
67,
2121,
13332,
498,
1458,
273,
2618,
225,
498,
1458,
67,
2121,
273,
1797,
67,
856,
1458,
67,
2121,
1435,
225,
283,
67,
1369,
273,
283,
18,
11100,
12,
86,
11,
20,
92,
64,
91,
15,
6134,
364,
980,
316,
498,
1458,
67,
2121,
18,
4939,
2668,
64,
82,
6134,
63,
21,
30,
14542,
309,
562,
12,
1369,
13,
405,
374,
30,
498,
710,
273,
283,
18,
3072,
12,
86,
8314,
87,
26113,
72,
15,
31376,
2187,
980,
13,
309,
498,
710,
30,
394,
67,
2452,
93,
959,
273,
5378,
498,
710,
273,
509,
12,
856,
710,
18,
1655,
12,
21,
3719,
1311,
93,
959,
273,
283,
67,
1369,
18,
4720,
454,
12,
1369,
13,
468,
5203,
1846,
11779,
1338,
1245,
498,
775,
30,
394,
67,
2452,
93,
959,
18,
6923,
12,
318,
1354,
86,
12,
474,
12,
2452,
93,
959,
63,
20,
6487,
2872,
20349,
1335,
30,
394,
67,
2452,
93,
959,
18,
6923,
2668,
6134,
468,
5203,
1846,
11779,
279,
498,
8737,
21444,
498,
775,
30,
5252,
67,
3001,
273,
640,
1354,
86,
12,
474,
12,
2452,
93,
959,
63,
21,
6487,
2872,
3719,
1335,
30,
394,
67,
2452,
93,
959,
18,
6923,
2668,
6134,
468,
5203,
1846,
11779,
279,
498,
8737,
2191,
261,
22097,
1311,
13,
775,
30,
394,
67,
2452,
93,
959,
18,
6923,
12,
318,
1354,
86,
12,
474,
12,
2452,
93,
959,
63,
24,
6487,
2872,
20349,
1335,
30,
394,
67,
2452,
93,
959,
18,
6923,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
1458,
67,
2121,
13332,
498,
1458,
273,
2618,
225,
498,
1458,
67,
2121,
273,
1797,
67,
856,
1458,
67,
2121,
1435,
225,
283,
67,
1369,
273,
283,
18,
11100,
12,
86,
11,
20,
92,
64,
91,
15,
6134,
364,
980,
316,
498,
1458,
67,
2121,
18,
4939,
2668,
64,
82,
6134,
63,
21,
30,
14542,
309,
562,
12,
1369,
13,
405,
374,
30,
498,
710,
273,
283,
18,
3072,
12,
86,
8314,
87,
26113,
72,
15,
31376,
2187,
980,
13,
309,
498,
710,
30,
394,
67,
2452,
93,
959,
273,
5378,
498,
710,
273,
509,
12,
856,
710,
18,
1655,
12,
21,
3719,
1311,
93,
959,
273,
283,
67,
1369,
18,
4720,
454,
12,
1369,
2
] |
def reorder_slice(self, nslice):
|
def reorder_slice(self, nslice, sorted, indices, tmp_sorted, tmp_indices):
|
def reorder_slice(self, nslice): """Copy & reorder the slice in source to final destination.""" ss = self.slicesize ssorted = self.slice_sorted; sindices = self.slice_indices # Load the second part in buffers self.read_slice(self.tmp.sorted, nslice, ssorted[ss:]) self.read_slice(self.tmp.indices, nslice, sindices[ss:]) indexesExtension.keysort(ssorted, sindices) # Write the first part of the buffers to the regular indices self.write_slice(self.sorted, nslice-1, ssorted[:ss]) self.write_slice(self.indices, nslice-1, sindices[:ss]) # Update caches self.update_caches(nslice-1, ssorted[:ss]) # Shift the slice in the end to the beginning ssorted[:ss] = ssorted[ss:]; sindices[:ss] = sindices[ss:]
|
4ec73663a9c5b2970b2d92f44b26adce15ac2395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12687/4ec73663a9c5b2970b2d92f44b26adce15ac2395/index.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19427,
67,
6665,
12,
2890,
16,
3153,
2008,
16,
3115,
16,
4295,
16,
1853,
67,
10350,
16,
1853,
67,
6836,
4672,
3536,
2951,
473,
19427,
326,
2788,
316,
1084,
358,
727,
2929,
12123,
5202,
273,
365,
18,
21562,
554,
272,
10350,
273,
365,
18,
6665,
67,
10350,
31,
272,
6836,
273,
365,
18,
6665,
67,
6836,
468,
4444,
326,
2205,
1087,
316,
9664,
365,
18,
896,
67,
6665,
12,
2890,
18,
5645,
18,
10350,
16,
3153,
2008,
16,
272,
10350,
63,
1049,
30,
5717,
365,
18,
896,
67,
6665,
12,
2890,
18,
5645,
18,
6836,
16,
3153,
2008,
16,
272,
6836,
63,
1049,
30,
5717,
5596,
3625,
18,
2452,
499,
12,
1049,
24726,
16,
272,
6836,
13,
468,
2598,
326,
1122,
1087,
434,
326,
9664,
358,
326,
6736,
4295,
365,
18,
2626,
67,
6665,
12,
2890,
18,
10350,
16,
3153,
2008,
17,
21,
16,
272,
10350,
10531,
1049,
5717,
365,
18,
2626,
67,
6665,
12,
2890,
18,
6836,
16,
3153,
2008,
17,
21,
16,
272,
6836,
10531,
1049,
5717,
468,
2315,
12535,
365,
18,
2725,
67,
17703,
281,
12,
2387,
2008,
17,
21,
16,
272,
10350,
10531,
1049,
5717,
468,
21444,
326,
2788,
316,
326,
679,
358,
326,
8435,
272,
10350,
10531,
1049,
65,
273,
272,
10350,
63,
1049,
30,
15533,
272,
6836,
10531,
1049,
65,
273,
272,
6836,
63,
1049,
26894,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19427,
67,
6665,
12,
2890,
16,
3153,
2008,
16,
3115,
16,
4295,
16,
1853,
67,
10350,
16,
1853,
67,
6836,
4672,
3536,
2951,
473,
19427,
326,
2788,
316,
1084,
358,
727,
2929,
12123,
5202,
273,
365,
18,
21562,
554,
272,
10350,
273,
365,
18,
6665,
67,
10350,
31,
272,
6836,
273,
365,
18,
6665,
67,
6836,
468,
4444,
326,
2205,
1087,
316,
9664,
365,
18,
896,
67,
6665,
12,
2890,
18,
5645,
18,
10350,
16,
3153,
2008,
16,
272,
10350,
63,
1049,
30,
5717,
365,
18,
896,
67,
6665,
12,
2890,
18,
5645,
18,
6836,
16,
3153,
2008,
16,
272,
6836,
63,
1049,
30,
5717,
5596,
3625,
18,
2452,
499,
12,
1049,
24726,
16,
272,
6836,
13,
468,
2
] |
onScreenDebug.add("height", height)
|
if __debug__: onScreenDebug.add("height", height)
|
def determineHeight(self): """ returns the height of the avatar above the ground. If there is no floor below the avatar, 0.0 is returned. aka get airborne height. """ if self.useLifter: height = self.avatarNodePath.getPos(self.cRayNodePath) # If the shadow where not pointed strait down, we would need to # get magnitude of the vector. Since it is strait down, we'll # just get the z: #spammy --> assert self.debugPrint("getAirborneHeight() returning %s"%(height.getZ(),)) assert onScreenDebug.add("height", height.getZ()) return height.getZ() - self.floorOffset else: # useCollisionHandlerQueue """ returns the height of the avatar above the ground. If there is no floor below the avatar, 0.0 is returned. aka get airborne height. """ height = 0.0 #*#self.cRayTrav.traverse(render) if self.cRayQueue.getNumEntries() != 0: # ...we have a floor. # Choose the highest of the possibly several floors we're over: self.cRayQueue.sortEntries() floorPoint = self.cRayQueue.getEntry(0).getFromIntersectionPoint() height = -floorPoint.getZ() self.cRayQueue.clearEntries() onScreenDebug.add("height", height) return height
|
083c874d5b73c7fdd22e74516f8e55d6aff6772d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/083c874d5b73c7fdd22e74516f8e55d6aff6772d/PhysicsWalker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
2686,
12,
2890,
4672,
3536,
1135,
326,
2072,
434,
326,
16910,
5721,
326,
19209,
18,
971,
1915,
353,
1158,
6346,
5712,
326,
16910,
16,
374,
18,
20,
353,
2106,
18,
28105,
336,
23350,
70,
280,
4644,
2072,
18,
3536,
309,
365,
18,
1202,
6929,
387,
30,
2072,
273,
365,
18,
19660,
907,
743,
18,
588,
1616,
12,
2890,
18,
71,
54,
528,
907,
743,
13,
468,
971,
326,
10510,
1625,
486,
25874,
609,
1540,
2588,
16,
732,
4102,
1608,
358,
468,
336,
13463,
434,
326,
3806,
18,
225,
7897,
518,
353,
609,
1540,
2588,
16,
732,
5614,
468,
2537,
336,
326,
998,
30,
468,
1752,
301,
4811,
15431,
1815,
365,
18,
4148,
5108,
2932,
588,
29752,
70,
280,
4644,
2686,
1435,
5785,
738,
87,
6,
17105,
4210,
18,
588,
62,
9334,
3719,
1815,
603,
7956,
2829,
18,
1289,
2932,
4210,
3113,
2072,
18,
588,
62,
10756,
327,
2072,
18,
588,
62,
1435,
300,
365,
18,
74,
5807,
2335,
469,
30,
468,
999,
13535,
1951,
1503,
3183,
3536,
1135,
326,
2072,
434,
326,
16910,
5721,
326,
19209,
18,
971,
1915,
353,
1158,
6346,
5712,
326,
16910,
16,
374,
18,
20,
353,
2106,
18,
28105,
336,
23350,
70,
280,
4644,
2072,
18,
3536,
2072,
273,
374,
18,
20,
468,
14,
7,
2890,
18,
71,
54,
528,
1609,
90,
18,
2033,
2476,
12,
5902,
13,
309,
365,
18,
71,
54,
528,
3183,
18,
588,
2578,
5400,
1435,
480,
374,
30,
468,
1372,
1814,
1240,
279,
6346,
18,
468,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
2686,
12,
2890,
4672,
3536,
1135,
326,
2072,
434,
326,
16910,
5721,
326,
19209,
18,
971,
1915,
353,
1158,
6346,
5712,
326,
16910,
16,
374,
18,
20,
353,
2106,
18,
28105,
336,
23350,
70,
280,
4644,
2072,
18,
3536,
309,
365,
18,
1202,
6929,
387,
30,
2072,
273,
365,
18,
19660,
907,
743,
18,
588,
1616,
12,
2890,
18,
71,
54,
528,
907,
743,
13,
468,
971,
326,
10510,
1625,
486,
25874,
609,
1540,
2588,
16,
732,
4102,
1608,
358,
468,
336,
13463,
434,
326,
3806,
18,
225,
7897,
518,
353,
609,
1540,
2588,
16,
732,
5614,
468,
2537,
336,
326,
998,
30,
468,
1752,
301,
4811,
15431,
1815,
365,
18,
4148,
5108,
2932,
588,
29752,
70,
2
] |
interrupted=None,
|
interrupted=None, timezone=None,
|
def __init__(self, author=None, category=None, contributor=None, generator=None, icon=None, atom_id=None, link=None, logo=None, rights=None, subtitle=None, title=None, updated=None, entry=None, total_results=None, start_index=None, items_per_page=None, interrupted=None, extension_elements=None, extension_attributes=None, text=None): gdata.BatchFeed.__init__(self, author=author, category=category, contributor=contributor, generator=generator, icon=icon, atom_id=atom_id, link=link, logo=logo, rights=rights, subtitle=subtitle, title=title, updated=updated, entry=entry, total_results=total_results, start_index=start_index, items_per_page=items_per_page, interrupted=interrupted, extension_elements=extension_elements, extension_attributes=extension_attributes, text=text)
|
9fdc919de49536d0b8f55253abe7eea42a983741 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10620/9fdc919de49536d0b8f55253abe7eea42a983741/__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,
31123,
33,
7036,
16,
4456,
33,
7036,
16,
4126,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
19128,
33,
7036,
16,
14989,
33,
7036,
16,
20281,
33,
7036,
16,
2077,
33,
7036,
16,
3526,
33,
7036,
16,
1241,
33,
7036,
16,
2078,
67,
4717,
33,
7036,
16,
787,
67,
1615,
33,
7036,
16,
1516,
67,
457,
67,
2433,
33,
7036,
16,
15711,
33,
7036,
16,
6371,
33,
7036,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
314,
892,
18,
4497,
8141,
16186,
2738,
972,
12,
2890,
16,
2869,
33,
4161,
16,
3150,
33,
4743,
16,
31123,
33,
591,
19293,
16,
4456,
33,
8812,
16,
4126,
33,
3950,
16,
225,
3179,
67,
350,
33,
7466,
67,
350,
16,
1692,
33,
1232,
16,
19128,
33,
19882,
16,
14989,
33,
23700,
16,
20281,
33,
1717,
2649,
16,
2077,
33,
2649,
16,
3526,
33,
7007,
16,
1241,
33,
4099,
16,
2078,
67,
4717,
33,
4963,
67,
4717,
16,
787,
67,
1615,
33,
1937,
67,
1615,
16,
1516,
67,
457,
67,
2433,
33,
3319,
67,
457,
67,
2433,
16,
15711,
33,
474,
5954,
16,
2710,
67,
6274,
33,
6447,
67,
6274,
16,
2710,
67,
4350,
33,
6447,
67,
4350,
16,
977,
33,
955,
13,
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,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
31123,
33,
7036,
16,
4456,
33,
7036,
16,
4126,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
19128,
33,
7036,
16,
14989,
33,
7036,
16,
20281,
33,
7036,
16,
2077,
33,
7036,
16,
3526,
33,
7036,
16,
1241,
33,
7036,
16,
2078,
67,
4717,
33,
7036,
16,
787,
67,
1615,
33,
7036,
16,
1516,
67,
457,
67,
2433,
33,
7036,
16,
15711,
33,
7036,
16,
6371,
33,
7036,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
314,
892,
18,
4497,
8141,
16186,
2738,
972,
12,
2890,
16,
2869,
33,
4161,
2
] |
if ltr1 in regionName:
|
if charRB in regionName:
|
def doResize(self, regionName, evt): """Handle <Motion> event to resize the box""" newMousePos = [evt.x, evt.y] dPos = [newMousePos[ii] - self.mousePos[ii] for ii in range(2)] newRectCoords = list(self.rectCoords) cnvSize = [self.cnv.winfo_width(), self.cnv.winfo_height()] # compute the resize for (ii, ltr0, ltr1) in [(0, "L", "R"), (1, "T", "B")]: if ltr0 in regionName: adj = 0 # apply left or top resize newRectCoords[ii] += dPos[ii] if newRectCoords[ii] < 0: adj = -newRectCoords[ii] elif newRectCoords[ii] > newRectCoords[ii+2] - self.minSize: adj = (newRectCoords[ii+2] - self.minSize) - newRectCoords[ii] newRectCoords[ii] += adj newMousePos[ii] += adj if ltr1 in regionName: # apply right or lower resize adj = 0 newRectCoords[ii+2] += dPos[ii] if newRectCoords[ii+2] > cnvSize[ii]: adj = cnvSize[ii] - newRectCoords[ii+2] # - cnvSize[ii] elif newRectCoords[ii+2] < newRectCoords[ii] + self.minSize: adj = (newRectCoords[ii] + self.minSize) - newRectCoords[ii+2] newRectCoords[ii+2] += adj newMousePos[ii] += adj self.rectCoords = newRectCoords self.mousePos = newMousePos self.redraw()
|
c27501cab7a14477428cf8488de40d84a3a02be0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/c27501cab7a14477428cf8488de40d84a3a02be0/ResizableRect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12182,
12,
2890,
16,
3020,
461,
16,
6324,
4672,
3536,
3259,
411,
29360,
34,
871,
358,
7041,
326,
3919,
8395,
394,
9186,
1616,
273,
306,
73,
11734,
18,
92,
16,
6324,
18,
93,
65,
302,
1616,
273,
306,
2704,
9186,
1616,
63,
2835,
65,
300,
365,
18,
11697,
1616,
63,
2835,
65,
364,
6072,
316,
1048,
12,
22,
25887,
394,
6120,
13089,
273,
666,
12,
2890,
18,
2607,
13089,
13,
225,
6227,
90,
1225,
273,
306,
2890,
18,
10305,
90,
18,
91,
1376,
67,
2819,
9334,
365,
18,
10305,
90,
18,
91,
1376,
67,
4210,
1435,
65,
225,
468,
3671,
326,
7041,
364,
261,
2835,
16,
328,
313,
20,
16,
328,
313,
21,
13,
316,
306,
12,
20,
16,
315,
48,
3113,
315,
54,
6,
3631,
261,
21,
16,
315,
56,
3113,
315,
38,
7923,
14542,
309,
328,
313,
20,
316,
3020,
461,
30,
8307,
273,
374,
468,
2230,
2002,
578,
1760,
7041,
394,
6120,
13089,
63,
2835,
65,
1011,
302,
1616,
63,
2835,
65,
309,
394,
6120,
13089,
63,
2835,
65,
411,
374,
30,
8307,
273,
300,
2704,
6120,
13089,
63,
2835,
65,
1327,
394,
6120,
13089,
63,
2835,
65,
405,
394,
6120,
13089,
63,
2835,
15,
22,
65,
300,
365,
18,
1154,
1225,
30,
8307,
273,
261,
2704,
6120,
13089,
63,
2835,
15,
22,
65,
300,
365,
18,
1154,
1225,
13,
300,
394,
6120,
13089,
63,
2835,
65,
394,
6120,
13089,
63,
2835,
65,
1011,
8307,
394,
9186,
1616,
63,
2835,
65,
1011,
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,
741,
12182,
12,
2890,
16,
3020,
461,
16,
6324,
4672,
3536,
3259,
411,
29360,
34,
871,
358,
7041,
326,
3919,
8395,
394,
9186,
1616,
273,
306,
73,
11734,
18,
92,
16,
6324,
18,
93,
65,
302,
1616,
273,
306,
2704,
9186,
1616,
63,
2835,
65,
300,
365,
18,
11697,
1616,
63,
2835,
65,
364,
6072,
316,
1048,
12,
22,
25887,
394,
6120,
13089,
273,
666,
12,
2890,
18,
2607,
13089,
13,
225,
6227,
90,
1225,
273,
306,
2890,
18,
10305,
90,
18,
91,
1376,
67,
2819,
9334,
365,
18,
10305,
90,
18,
91,
1376,
67,
4210,
1435,
65,
225,
468,
3671,
326,
7041,
364,
261,
2835,
16,
328,
313,
20,
16,
328,
313,
21,
13,
316,
306,
12,
2
] |
SongDataDict[item] = str(itm) return SongDataDict, index+1
|
if index == 1 and curIndx == count-1: curIndx = -1 elif index == -1 and curIndx == 0: curIndx = count index += curIndx tmpObject = self.MM.Player.PlaylistItems(index) for item in SongDataDict.iterkeys(): itm = getattr(tmpObject,item) if type(itm) == unicode: SongDataDict[item] = itm else: SongDataDict[item] = str(itm) return SongDataDict, index+1
|
def GetSongData(self,index): repeat = self.MM.Player.isRepeat SongDataDict = dict([(item[2],None) for item in SONG_TABLE_FIELDS if item[2] != ""]) curIndx = self.MM.Player.CurrentSongIndex count = self.MM.Player.PlaylistCount if not repeat: if (index == 1 and curIndx == count-1) or (index == -1 and curIndx == 0): return None,None else: if index == 1 and curIndx == count-1: curIndx = -1 elif index == -1 and curIndx == 0: curIndx = count index += curIndx tmpObject = self.MM.Player.PlaylistItems(index) for item in SongDataDict.iterkeys(): itm = getattr(tmpObject,item) if type(itm) == unicode: SongDataDict[item] = itm else: SongDataDict[item] = str(itm) return SongDataDict, index+1
|
00e4fd0138f9a3789c536c9ec79d8dcf4f1aa706 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/00e4fd0138f9a3789c536c9ec79d8dcf4f1aa706/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
55,
932,
751,
12,
2890,
16,
1615,
4672,
7666,
273,
365,
18,
8206,
18,
12148,
18,
291,
16750,
348,
932,
751,
5014,
273,
2065,
3816,
12,
1726,
63,
22,
6487,
7036,
13,
364,
761,
316,
348,
7390,
67,
7775,
67,
12683,
309,
761,
63,
22,
65,
480,
1408,
5717,
662,
3866,
92,
273,
365,
18,
8206,
18,
12148,
18,
3935,
55,
932,
1016,
1056,
273,
365,
18,
8206,
18,
12148,
18,
30194,
1380,
309,
486,
7666,
30,
309,
261,
1615,
422,
404,
471,
662,
3866,
92,
422,
1056,
17,
21,
13,
578,
261,
1615,
422,
300,
21,
471,
662,
3866,
92,
422,
374,
4672,
327,
599,
16,
7036,
469,
30,
309,
770,
422,
404,
471,
662,
3866,
92,
422,
1056,
17,
21,
30,
662,
3866,
92,
273,
300,
21,
1327,
770,
422,
300,
21,
471,
662,
3866,
92,
422,
374,
30,
662,
3866,
92,
273,
1056,
770,
1011,
662,
3866,
92,
1853,
921,
273,
365,
18,
8206,
18,
12148,
18,
30194,
3126,
12,
1615,
13,
225,
364,
761,
316,
348,
932,
751,
5014,
18,
2165,
2452,
13332,
23907,
273,
3869,
12,
5645,
921,
16,
1726,
13,
309,
618,
12,
305,
81,
13,
422,
5252,
30,
348,
932,
751,
5014,
63,
1726,
65,
273,
23907,
469,
30,
348,
932,
751,
5014,
63,
1726,
65,
273,
609,
12,
305,
81,
13,
327,
348,
932,
751,
5014,
16,
770,
15,
21,
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,
968,
55,
932,
751,
12,
2890,
16,
1615,
4672,
7666,
273,
365,
18,
8206,
18,
12148,
18,
291,
16750,
348,
932,
751,
5014,
273,
2065,
3816,
12,
1726,
63,
22,
6487,
7036,
13,
364,
761,
316,
348,
7390,
67,
7775,
67,
12683,
309,
761,
63,
22,
65,
480,
1408,
5717,
662,
3866,
92,
273,
365,
18,
8206,
18,
12148,
18,
3935,
55,
932,
1016,
1056,
273,
365,
18,
8206,
18,
12148,
18,
30194,
1380,
309,
486,
7666,
30,
309,
261,
1615,
422,
404,
471,
662,
3866,
92,
422,
1056,
17,
21,
13,
578,
261,
1615,
422,
300,
21,
471,
662,
3866,
92,
422,
374,
4672,
327,
599,
16,
7036,
469,
30,
309,
770,
422,
404,
471,
662,
3866,
2
] |
image = wx.wxEmptyImage(self.matrix.shape[0],self.matrix.shape[1])
|
image = wx.wxEmptyImage(self.matrix.shape[1],self.matrix.shape[0])
|
def form_image(self): # look up colormap if it si identified by a string if type(self.colormap) == type(''): try: colormap = colormap_map[self.colormap] except KeyError: raise KeyError, 'Invalid colormap name. Choose from %s' \ % `colormap_map.keys()` else: colormap = self.colormap # scale image if we're supposed to. if self.scale in ['yes','on']: scaled_mag = self.scale_magnitude(self.matrix,colormap) else: scaled_mag = self.matrix.astype('b') scaled_mag = clip(scaled_mag,0,len(colormap)-1) if float(maximum.reduce(ravel(colormap))) == 1.: cmap = colormap * 255 else: cmap = colormap pixels = take( cmap, scaled_mag) del scaled_mag bitmap = pixels.astype(UnsignedInt8).tostring() image = wx.wxEmptyImage(self.matrix.shape[0],self.matrix.shape[1]) image.SetData(bitmap) return image
|
5418e2ef7c1d6ad75b66d8f5ac3a7f580289bd32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/5418e2ef7c1d6ad75b66d8f5ac3a7f580289bd32/plot_objects.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
2730,
12,
2890,
4672,
468,
2324,
731,
24806,
309,
518,
7533,
9283,
635,
279,
533,
309,
618,
12,
2890,
18,
1293,
18804,
13,
422,
618,
2668,
11,
4672,
775,
30,
24806,
273,
24806,
67,
1458,
63,
2890,
18,
1293,
18804,
65,
1335,
4999,
30,
1002,
4999,
16,
296,
1941,
24806,
508,
18,
25593,
628,
738,
87,
11,
521,
738,
1375,
1293,
18804,
67,
1458,
18,
2452,
20338,
469,
30,
24806,
273,
365,
18,
1293,
18804,
468,
3159,
1316,
309,
732,
4565,
18405,
358,
18,
309,
365,
18,
5864,
316,
10228,
9707,
17023,
265,
3546,
30,
12304,
67,
4527,
273,
365,
18,
5864,
67,
30279,
12,
2890,
18,
5667,
16,
1293,
18804,
13,
469,
30,
12304,
67,
4527,
273,
365,
18,
5667,
18,
689,
388,
2668,
70,
6134,
12304,
67,
4527,
273,
6807,
12,
20665,
67,
4527,
16,
20,
16,
1897,
12,
1293,
18804,
24950,
21,
13,
225,
309,
1431,
12,
15724,
18,
12498,
12,
354,
941,
12,
1293,
18804,
20349,
422,
404,
29710,
11136,
273,
24806,
380,
4561,
469,
30,
11136,
273,
24806,
225,
8948,
273,
4862,
12,
11136,
16,
12304,
67,
4527,
13,
1464,
12304,
67,
4527,
9389,
273,
8948,
18,
689,
388,
12,
13290,
1702,
28,
2934,
14627,
371,
1435,
1316,
273,
7075,
18,
27226,
1921,
2040,
12,
2890,
18,
5667,
18,
4867,
63,
21,
6487,
2890,
18,
5667,
18,
4867,
63,
20,
5717,
1316,
18,
694,
751,
12,
3682,
1458,
13,
327,
1316,
225,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
2730,
12,
2890,
4672,
468,
2324,
731,
24806,
309,
518,
7533,
9283,
635,
279,
533,
309,
618,
12,
2890,
18,
1293,
18804,
13,
422,
618,
2668,
11,
4672,
775,
30,
24806,
273,
24806,
67,
1458,
63,
2890,
18,
1293,
18804,
65,
1335,
4999,
30,
1002,
4999,
16,
296,
1941,
24806,
508,
18,
25593,
628,
738,
87,
11,
521,
738,
1375,
1293,
18804,
67,
1458,
18,
2452,
20338,
469,
30,
24806,
273,
365,
18,
1293,
18804,
468,
3159,
1316,
309,
732,
4565,
18405,
358,
18,
309,
365,
18,
5864,
316,
10228,
9707,
17023,
265,
3546,
30,
12304,
67,
4527,
273,
365,
18,
5864,
67,
30279,
12,
2890,
18,
5667,
16,
1293,
18804,
13,
469,
30,
12304,
67,
2
] |
if hasattr(Configuration, 'userToRunAs'): uid = pwd.getpwnam(Configuration.userToRunAs)[2] if hasattr(os, 'seteuid'): os.seteuid(os.getuid()) os.setuid(uid)
|
if userToRunAs is not None: uid = pwd.getpwnam(userToRunAs)[2] os.setuid(uid)
|
def run(self): import Hooks
|
f77c4261826f500d1b68866d5744251a90a8abcc /local1/tlutelli/issta_data/temp/all_python//python/2006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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
13725,
87,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.send(buf)
|
"""Blocking send. We use a stupid retry loop instead of using PyBlueZ's blocking sockets, since its blocking is non-interruptible. """ while buf: count = self.sock.send(buf) assert count >= 0 if count > 0: buf = buf[count:] else: time.sleep(0.01)
|
def _send(self, buf): self.sock.send(buf)
|
a2f109b27f45204fd47b16451693f3cf88f5dfeb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6757/a2f109b27f45204fd47b16451693f3cf88f5dfeb/test-client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
12,
2890,
16,
1681,
4672,
3536,
8728,
1366,
18,
1660,
999,
279,
384,
416,
350,
3300,
2798,
3560,
434,
1450,
4707,
27986,
62,
1807,
9445,
16762,
16,
3241,
2097,
9445,
353,
1661,
17,
31847,
1523,
18,
3536,
1323,
1681,
30,
1056,
273,
365,
18,
15031,
18,
4661,
12,
4385,
13,
1815,
1056,
1545,
374,
309,
1056,
405,
374,
30,
1681,
273,
1681,
63,
1883,
26894,
469,
30,
813,
18,
19607,
12,
20,
18,
1611,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
3536,
1323,
1681,
30,
1056,
273,
365,
18,
15031,
18,
4661,
12,
4385,
13,
1815,
1056,
1545,
374,
309,
1056,
405,
374,
30,
1681,
273,
1681,
63,
1883,
26894,
469,
30,
813,
18,
19607,
12,
20,
18,
1611,
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
] |
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None)
|
u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
|
def test_ftp_NoneNodefault(self): u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None) self.assertTrue(u.fp.fp._sock.gettimeout() is None)
|
b0a6dbd218e0b3c92b3a49454b888b6e15ea563c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b0a6dbd218e0b3c92b3a49454b888b6e15ea563c/test_urllib2net.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
7036,
907,
643,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
12,
2890,
18,
17104,
67,
8908,
16,
2021,
33,
7036,
13,
365,
18,
11231,
5510,
12,
89,
18,
7944,
18,
7944,
6315,
15031,
18,
588,
4538,
1435,
353,
599,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
7036,
907,
643,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
12,
2890,
18,
17104,
67,
8908,
16,
2021,
33,
7036,
13,
365,
18,
11231,
5510,
12,
89,
18,
7944,
18,
7944,
6315,
15031,
18,
588,
4538,
1435,
353,
599,
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
] |
first discriminant < -4 that satisfies the Heegner hypothesis
|
first discriminant < -4 that satisfies the Heegner hypothesis
|
def heegner_index_bound(self, D=0, prec=5, verbose=True, max_height=_MAX_HEIGHT): """ Assume self has rank 0. Return a list v of primes such that if an odd prime p divides the index of the the Heegner point in the group of rational points *modulo torsion*, then p is in v.
|
92160f8928a0d15c605f7edb7321e90dc2f9a26b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/92160f8928a0d15c605f7edb7321e90dc2f9a26b/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3904,
1332,
1224,
67,
1615,
67,
3653,
12,
2890,
16,
463,
33,
20,
16,
225,
13382,
33,
25,
16,
3988,
33,
5510,
16,
943,
67,
4210,
33,
67,
6694,
67,
14595,
4672,
3536,
15983,
365,
711,
6171,
374,
18,
225,
2000,
279,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3904,
1332,
1224,
67,
1615,
67,
3653,
12,
2890,
16,
463,
33,
20,
16,
225,
13382,
33,
25,
16,
3988,
33,
5510,
16,
943,
67,
4210,
33,
67,
6694,
67,
14595,
4672,
3536,
15983,
365,
711,
6171,
374,
18,
225,
2000,
279,
666,
331,
434,
846,
4485,
4123,
716,
309,
392,
14800,
17014,
293,
3739,
4369,
326,
770,
434,
326,
326,
8264,
1332,
1224,
1634,
316,
326,
1041,
434,
436,
8371,
3143,
380,
1711,
26478,
268,
1383,
285,
14,
16,
1508,
293,
353,
316,
331,
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
] |
- ``unit``
|
- ``unit``
|
def base_units(unit): """ Converts unit to base SI units. INPUT: - ``unit`` OUTPUT: - `symbolic expression` EXAMPLES:: sage: sage.symbolic.units.base_units(units.length.foot) 381/1250*meter If unit is already a base unit, it just returns that unit:: sage: sage.symbolic.units.base_units(units.length.meter) meter Derived units get broken down into their base parts:: sage: sage.symbolic.units.base_units(units.force.newton) kilogram*meter/second^2 sage: sage.symbolic.units.base_units(units.volume.liter) 1/1000*meter^3 Returns variable if 'unit' is not a unit:: sage: sage.symbolic.units.base_units(var('x')) x """ from sage.misc.all import sage_eval if not unit_to_type.has_key(str(unit)): return unit elif unit_to_type[str(unit)] == 'si_prefixes' or unit_to_type[str(unit)] == 'unit_multipliers': return sage_eval(unitdict[unit_to_type[str(unit)]][str(unit)]) else: v = SR.var(unit_to_type[str(unit)]) if unit_derivations.has_key(str(v)): base = unit_derivations_expr(v) for i in base.variables(): base = base.subs({i:SR.var(value_to_unit[str(i)]['1'])}) return base*sage_eval(unitdict[str(v)][str(unit)]) else: base = SR.var(value_to_unit[str(v)]['1'])*sage_eval(unitdict[str(v)][str(unit)]) return base
|
36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
7705,
12,
4873,
4672,
3536,
20377,
2836,
358,
1026,
5705,
4971,
18,
225,
12943,
30,
225,
300,
12176,
4873,
10335,
225,
11550,
30,
225,
300,
1375,
9009,
12164,
2652,
68,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
7705,
18,
2469,
18,
10923,
13,
890,
11861,
19,
2138,
3361,
14,
81,
847,
225,
971,
2836,
353,
1818,
279,
1026,
2836,
16,
518,
2537,
1135,
716,
2836,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
7705,
18,
2469,
18,
81,
847,
13,
16565,
225,
14969,
2950,
4971,
336,
12933,
2588,
1368,
3675,
1026,
2140,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
7705,
18,
5734,
18,
2704,
1917,
13,
417,
330,
5553,
14,
81,
847,
19,
8538,
66,
22,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
7705,
18,
9491,
18,
80,
2165,
13,
404,
19,
18088,
14,
81,
847,
66,
23,
225,
2860,
2190,
309,
296,
4873,
11,
353,
486,
279,
2836,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
1401,
2668,
92,
26112,
619,
3536,
628,
272,
410,
18,
23667,
18,
454,
1930,
272,
410,
67,
8622,
309,
486,
2836,
67,
869,
67,
723,
18,
5332,
67,
856,
12,
701,
12,
4873,
3719,
30,
327,
2836,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
7705,
12,
4873,
4672,
3536,
20377,
2836,
358,
1026,
5705,
4971,
18,
225,
12943,
30,
225,
300,
12176,
4873,
10335,
225,
11550,
30,
225,
300,
1375,
9009,
12164,
2652,
68,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
7705,
18,
2469,
18,
10923,
13,
890,
11861,
19,
2138,
3361,
14,
81,
847,
225,
971,
2836,
353,
1818,
279,
1026,
2836,
16,
518,
2537,
1135,
716,
2836,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
1969,
67,
7705,
12,
7705,
18,
2469,
18,
81,
847,
13,
16565,
225,
14969,
2950,
4971,
336,
12933,
2588,
1368,
3675,
1026,
2140,
2866,
2
] |
r="%s%s\n\n%s" % (r,s[0],self.pre(s[1],1)) if not tagged: r=r+'</XMP>\n'
|
r="%s%s\n\n%s" % (r,html_quote(s[0]),self.pre(s[1],1)) if not tagged: r=r+'</PRE>\n'
|
def pre(self,structure,tagged=0):
|
4bf472476dd8f1951924bc51314fa330c37ae22f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4bf472476dd8f1951924bc51314fa330c37ae22f/StructuredText.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
12,
2890,
16,
7627,
16,
23023,
33,
20,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
12,
2890,
16,
7627,
16,
23023,
33,
20,
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
] |
print "check_moderated for %s" % self.id print self._subscribers
|
def check_moderated_variables(self): print "check_moderated for %s" % self.id print self._subscribers if len(self._subscribers) <= 0: return print "check_moderated for %s" % self.id variables = moderated_variables[self.get_type()] notify = [] for v in variables: if self._variables[0][v].updated == True: self._variables[0][v].updated = False notify.append(self._variables[0][v]) self.propagate_notification(notify)
|
86a3d0345cb1b5db61a85fa7c0fe938bb8024df6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11626/86a3d0345cb1b5db61a85fa7c0fe938bb8024df6/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1711,
19007,
67,
7528,
12,
2890,
4672,
282,
309,
562,
12,
2890,
6315,
1717,
17769,
13,
1648,
374,
30,
327,
1172,
315,
1893,
67,
1711,
19007,
364,
738,
87,
6,
738,
365,
18,
350,
3152,
273,
681,
19007,
67,
7528,
63,
2890,
18,
588,
67,
723,
1435,
65,
5066,
273,
5378,
364,
331,
316,
3152,
30,
309,
365,
6315,
7528,
63,
20,
6362,
90,
8009,
7007,
422,
1053,
30,
365,
6315,
7528,
63,
20,
6362,
90,
8009,
7007,
273,
1083,
5066,
18,
6923,
12,
2890,
6315,
7528,
63,
20,
6362,
90,
5717,
365,
18,
5986,
346,
340,
67,
9927,
12,
12336,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1711,
19007,
67,
7528,
12,
2890,
4672,
282,
309,
562,
12,
2890,
6315,
1717,
17769,
13,
1648,
374,
30,
327,
1172,
315,
1893,
67,
1711,
19007,
364,
738,
87,
6,
738,
365,
18,
350,
3152,
273,
681,
19007,
67,
7528,
63,
2890,
18,
588,
67,
723,
1435,
65,
5066,
273,
5378,
364,
331,
316,
3152,
30,
309,
365,
6315,
7528,
63,
20,
6362,
90,
8009,
7007,
422,
1053,
30,
365,
6315,
7528,
63,
20,
6362,
90,
8009,
7007,
273,
1083,
5066,
18,
6923,
12,
2890,
6315,
7528,
63,
20,
6362,
90,
5717,
365,
18,
5986,
346,
340,
67,
9927,
12,
12336,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assert gc.collect() > 0
|
if gc.collect() == 0: raise TestFailed
|
def __init__(self): self.init = self.__init__
|
419afec2d7b22fe8cf5fdba072bbc63384a4dad6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/419afec2d7b22fe8cf5fdba072bbc63384a4dad6/test_gc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2738,
273,
365,
16186,
2738,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4672,
365,
18,
2738,
273,
365,
16186,
2738,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
name_plurality = self._MapUnion(name_plurality, npdm)
|
name_plurality = self._MapDisjunction(name_plurality, npdm)
|
def nameBasedPlurality (self): """Return a map from expanded names to pairs consisting of a boolean representing the plurality of the aggregated name, and the element base declaration with that name.
|
9753ac9b33520d9a13f831252522d4c2749e8041 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/9753ac9b33520d9a13f831252522d4c2749e8041/structures.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
9802,
12968,
560,
261,
2890,
4672,
3536,
990,
279,
852,
628,
8406,
1257,
358,
5574,
23570,
434,
279,
1250,
5123,
326,
7978,
560,
434,
326,
16165,
508,
16,
471,
326,
930,
1026,
8266,
598,
716,
508,
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,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358,
5574,
23570,
434,
279,
1250,
5123,
326,
7978,
560,
434,
326,
16165,
508,
16,
471,
326,
930,
1026,
8266,
598,
716,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if s[1][0]=='\xc2' and s[1][1]=='\x86':
|
if ord(s[1][0])==0xc2 and ord(s[1][1])==0x86:
|
def readServiceList(self): serviceHandler = eServiceCenter.getInstance() refstr = '%s ORDER BY name' % (service_types_tv) self.root = eServiceReference(refstr) self.servicesList = {} list = serviceHandler.list(self.root) if list is not None: services = list.getContent("CN", True) #(servicecomparestring, name) for s in services: if s[1][0]=='\xc2' and s[1][1]=='\x86': # ignore shortname brackets key = s[1].lower()[2] else: key = s[1].lower()[0] if key < 'a' or key > 'z': key = chr(SPECIAL_CHAR) #key = str(key) if not self.servicesList.has_key(key): self.servicesList[key] = [] self.servicesList[key].append(s)
|
d30355fd9062e6333af64e64a9a4847ac76ed73e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/d30355fd9062e6333af64e64a9a4847ac76ed73e/ParentalControlSetup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1179,
682,
12,
2890,
4672,
1156,
1503,
273,
425,
1179,
8449,
18,
588,
1442,
1435,
1278,
701,
273,
1995,
87,
10205,
6953,
508,
11,
738,
261,
3278,
67,
2352,
67,
24161,
13,
365,
18,
3085,
273,
425,
1179,
2404,
12,
1734,
701,
13,
365,
18,
8387,
682,
273,
2618,
666,
273,
1156,
1503,
18,
1098,
12,
2890,
18,
3085,
13,
309,
666,
353,
486,
599,
30,
4028,
273,
666,
18,
588,
1350,
2932,
12821,
3113,
1053,
13,
468,
12,
3278,
2919,
4807,
371,
16,
508,
13,
364,
272,
316,
4028,
30,
309,
4642,
12,
87,
63,
21,
6362,
20,
5717,
631,
20,
6511,
22,
471,
4642,
12,
87,
63,
21,
6362,
21,
5717,
631,
20,
92,
5292,
30,
468,
2305,
23879,
15597,
498,
273,
272,
63,
21,
8009,
8167,
1435,
63,
22,
65,
469,
30,
498,
273,
272,
63,
21,
8009,
8167,
1435,
63,
20,
65,
309,
498,
411,
296,
69,
11,
578,
498,
405,
296,
94,
4278,
498,
273,
4513,
12,
13847,
6365,
67,
7305,
13,
468,
856,
273,
609,
12,
856,
13,
309,
486,
365,
18,
8387,
682,
18,
5332,
67,
856,
12,
856,
4672,
365,
18,
8387,
682,
63,
856,
65,
273,
5378,
365,
18,
8387,
682,
63,
856,
8009,
6923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1179,
682,
12,
2890,
4672,
1156,
1503,
273,
425,
1179,
8449,
18,
588,
1442,
1435,
1278,
701,
273,
1995,
87,
10205,
6953,
508,
11,
738,
261,
3278,
67,
2352,
67,
24161,
13,
365,
18,
3085,
273,
425,
1179,
2404,
12,
1734,
701,
13,
365,
18,
8387,
682,
273,
2618,
666,
273,
1156,
1503,
18,
1098,
12,
2890,
18,
3085,
13,
309,
666,
353,
486,
599,
30,
4028,
273,
666,
18,
588,
1350,
2932,
12821,
3113,
1053,
13,
468,
12,
3278,
2919,
4807,
371,
16,
508,
13,
364,
272,
316,
4028,
30,
309,
4642,
12,
87,
63,
21,
6362,
20,
5717,
631,
20,
6511,
22,
471,
4642,
12,
87,
63,
21,
6362,
21,
5717,
631,
20,
92,
5292,
2
] |
scope -- see the documentaion of this class.
|
scope -- see the documentation of this class.
|
def set_pause_context(self, value, scope=Scope.SELF): """Set the amount of context when resuming a paused message.
|
7c9633115d399a569dd8e2ac33c37854b07f2e0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7484/7c9633115d399a569dd8e2ac33c37854b07f2e0f/client.py
|
[
1,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19476,
67,
2472,
12,
2890,
16,
460,
16,
2146,
33,
3876,
18,
26280,
4672,
3536,
694,
326,
3844,
434,
819,
1347,
400,
21249,
279,
17781,
883,
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
] |
os.chdir(self.resultsdir)
|
os.chdir(self.tmpdir) args += " -c"
|
def execute(self, iterations = 1, args = ''): os.chdir(self.resultsdir) for i in range(1, iterations+1): system(self.srcdir + '/interbench -m \'run #%s\'' % i \ + args)
|
cd36ea2fe653d9b9081c50b7446b04565a14d2bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/cd36ea2fe653d9b9081c50b7446b04565a14d2bd/interbench.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
404,
16,
833,
273,
875,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
5645,
1214,
13,
833,
1011,
315,
300,
71,
6,
225,
364,
277,
316,
1048,
12,
21,
16,
11316,
15,
21,
4672,
2619,
12,
2890,
18,
4816,
1214,
397,
1173,
2761,
22144,
300,
81,
7164,
2681,
31974,
87,
11421,
738,
277,
521,
397,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
404,
16,
833,
273,
875,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
5645,
1214,
13,
833,
1011,
315,
300,
71,
6,
225,
364,
277,
316,
1048,
12,
21,
16,
11316,
15,
21,
4672,
2619,
12,
2890,
18,
4816,
1214,
397,
1173,
2761,
22144,
300,
81,
7164,
2681,
31974,
87,
11421,
738,
277,
521,
397,
833,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.write(cr,uid, map(lambda x: x.id, todo), {'state':'to upgrade'}, context=context)
|
ids = map(lambda x: x.id, todo) self.write(cr, uid, ids, {'state':'to upgrade'}, context=context) self.button_install(cr, uid, ids, context=context)
|
def button_upgrade(self, cr, uid, ids, context=None): depobj = self.pool.get('ir.module.module.dependency') todo = self.browse(cr, uid, ids, context=context) i = 0 while i<len(todo): mod = todo[i] i += 1 if mod.state not in ('installed','to upgrade'): raise orm.except_orm(_('Error'), _("Can not upgrade module '%s'. It is not installed.") % (mod.name,)) iids = depobj.search(cr, uid, [('name', '=', mod.name)], context=context) for dep in depobj.browse(cr, uid, iids, context=context): if dep.module_id.state=='installed': todo.append(dep.module_id) self.write(cr,uid, map(lambda x: x.id, todo), {'state':'to upgrade'}, context=context) return True
|
5e510fc9775ca75bd316b8d08319e6f57617cc0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/5e510fc9775ca75bd316b8d08319e6f57617cc0a/module.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
15097,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
443,
1631,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
2978,
18,
15896,
6134,
10621,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
13,
277,
273,
374,
1323,
277,
32,
1897,
12,
9012,
4672,
681,
273,
10621,
63,
77,
65,
277,
1011,
404,
309,
681,
18,
2019,
486,
316,
7707,
13435,
17023,
869,
8400,
11,
4672,
1002,
13969,
18,
14137,
67,
535,
24899,
2668,
668,
19899,
389,
2932,
2568,
486,
8400,
1605,
1995,
87,
10332,
2597,
353,
486,
5876,
1199,
13,
738,
261,
1711,
18,
529,
16,
3719,
277,
2232,
273,
443,
1631,
441,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
529,
2187,
15196,
2187,
681,
18,
529,
13,
6487,
819,
33,
2472,
13,
364,
5993,
316,
443,
1631,
441,
18,
25731,
12,
3353,
16,
4555,
16,
277,
2232,
16,
819,
33,
2472,
4672,
309,
5993,
18,
2978,
67,
350,
18,
2019,
18920,
13435,
4278,
10621,
18,
6923,
12,
15037,
18,
2978,
67,
350,
13,
225,
3258,
273,
852,
12,
14661,
619,
30,
619,
18,
350,
16,
10621,
13,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
11,
2497,
869,
8400,
11,
5779,
819,
33,
2472,
13,
365,
18,
5391,
67,
5425,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
13,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
15097,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
443,
1631,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
2978,
18,
15896,
6134,
10621,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
13,
277,
273,
374,
1323,
277,
32,
1897,
12,
9012,
4672,
681,
273,
10621,
63,
77,
65,
277,
1011,
404,
309,
681,
18,
2019,
486,
316,
7707,
13435,
17023,
869,
8400,
11,
4672,
1002,
13969,
18,
14137,
67,
535,
24899,
2668,
668,
19899,
389,
2932,
2568,
486,
8400,
1605,
1995,
87,
10332,
2597,
353,
486,
5876,
1199,
13,
738,
261,
1711,
18,
529,
16,
3719,
277,
2232,
273,
443,
2
] |
if (game.options & OPTION_SHOWME) and i == game.quadrant.x and j == game.quadrant.y:
|
if (game.options & OPTION_SHOWME) and i == game.quadrant.i and j == game.quadrant.j:
|
def chart(): "Display the star chart." scanner.chew() if (game.options & OPTION_AUTOSCAN): lrscan(silent=True) if not damaged(DRADIO): rechart() if game.lastchart < game.state.date and game.condition == "docked": prout(_("Spock- \"I revised the Star Chart from the starbase's records.\"")) rechart() prout(_(" STAR CHART FOR THE KNOWN GALAXY")) if game.state.date > game.lastchart: prout(_("(Last surveillance update %d stardates ago).") % ((int)(game.state.date-game.lastchart))) prout(" 1 2 3 4 5 6 7 8") for i in range(GALSIZE): proutn("%d |" % (i+1)) for j in range(GALSIZE): if (game.options & OPTION_SHOWME) and i == game.quadrant.x and j == game.quadrant.y: proutn("<") else: proutn(" ") if game.state.galaxy[i][j].supernova: show = "***" elif not game.state.galaxy[i][j].charted and game.state.galaxy[i][j].starbase: show = ".1." elif game.state.galaxy[i][j].charted: show = "%3d" % (game.state.chart[i][j].klingons*100 + game.state.chart[i][j].starbase * 10 + game.state.chart[i][j].stars) else: show = "..." proutn(show) if (game.options & OPTION_SHOWME) and i == game.quadrant.x and j == game.quadrant.y: proutn(">") else: proutn(" ") proutn(" |") if i<GALSIZE: skip(1)
|
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4980,
13332,
315,
4236,
326,
10443,
4980,
1199,
7683,
18,
343,
359,
1435,
309,
261,
13957,
18,
2116,
473,
7845,
67,
18909,
2312,
1258,
4672,
12226,
9871,
12,
21862,
33,
5510,
13,
309,
486,
302,
301,
11349,
12,
6331,
1880,
4294,
4672,
283,
11563,
1435,
309,
7920,
18,
2722,
11563,
411,
7920,
18,
2019,
18,
712,
471,
7920,
18,
4175,
422,
315,
72,
975,
329,
6877,
450,
322,
24899,
2932,
3389,
975,
17,
225,
1239,
45,
283,
26779,
326,
934,
297,
14804,
628,
326,
10443,
1969,
1807,
3853,
18,
8530,
3719,
283,
11563,
1435,
450,
322,
24899,
2932,
4202,
21807,
6469,
4928,
12108,
12786,
1475,
3417,
5665,
611,
1013,
2501,
61,
6,
3719,
309,
7920,
18,
2019,
18,
712,
405,
7920,
18,
2722,
11563,
30,
450,
322,
24899,
2932,
12,
3024,
5056,
537,
737,
1359,
1089,
738,
72,
384,
1060,
815,
20325,
14944,
13,
738,
14015,
474,
21433,
13957,
18,
2019,
18,
712,
17,
13957,
18,
2722,
11563,
20349,
450,
322,
2932,
1377,
404,
565,
576,
565,
890,
565,
1059,
565,
1381,
565,
1666,
565,
2371,
565,
1725,
7923,
364,
277,
316,
1048,
12,
43,
1013,
4574,
4672,
450,
322,
82,
27188,
72,
571,
6,
738,
261,
77,
15,
21,
3719,
364,
525,
316,
1048,
12,
43,
1013,
4574,
4672,
309,
261,
13957,
18,
2116,
473,
7845,
67,
16677,
958,
13,
471,
277,
422,
7920,
18,
21733,
6890,
18,
77,
471,
525,
422,
7920,
18,
21733,
6890,
18,
78,
30,
450,
322,
82,
2932,
32,
7923,
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,
4980,
13332,
315,
4236,
326,
10443,
4980,
1199,
7683,
18,
343,
359,
1435,
309,
261,
13957,
18,
2116,
473,
7845,
67,
18909,
2312,
1258,
4672,
12226,
9871,
12,
21862,
33,
5510,
13,
309,
486,
302,
301,
11349,
12,
6331,
1880,
4294,
4672,
283,
11563,
1435,
309,
7920,
18,
2722,
11563,
411,
7920,
18,
2019,
18,
712,
471,
7920,
18,
4175,
422,
315,
72,
975,
329,
6877,
450,
322,
24899,
2932,
3389,
975,
17,
225,
1239,
45,
283,
26779,
326,
934,
297,
14804,
628,
326,
10443,
1969,
1807,
3853,
18,
8530,
3719,
283,
11563,
1435,
450,
322,
24899,
2932,
4202,
21807,
6469,
4928,
12108,
12786,
1475,
3417,
5665,
611,
1013,
2501,
61,
6,
3719,
309,
7920,
18,
2019,
18,
2
] |
print "Compressed [%s]: %s" % (compressedIndex, compressSource)
|
if options.verbose: print " * Compressed [%s]: %s" % (compressedIndex, compressSource) compressedCounter[compressSource] += 1
|
def execute(options): if options.sourceDirectories == None or len(options.sourceDirectories) == 0: basename = os.path.basename(sys.argv[0]) print "You must define at least one source directory!" print "usage: %s [options]" % basename print "Try '%s -h' or '%s --help' to show the help message." % (basename, basename) sys.exit(1) print print " PREPARING:" print "***********************************************************************************************" print " * Loading source directory content..." # Normalizing directories i=0 for directory in options.sourceDirectories: options.sourceDirectories[i] = os.path.normpath(options.sourceDirectories[i]) i+=1 scanResult = loader.scanAll(options.sourceDirectories) sortedIncludeList = loader.getSortedList(options, scanResult) if options.outputFiles: print print " KNOWN FILES:" print "***********************************************************************************************" for key in scanResult["files"]: print " %s (%s)" % (key, scanResult["files"][key]) if options.outputModules: print print " KNOWN MODULES:" print "***********************************************************************************************" for pkg in scanResult["modules"]: print " * %s" % pkg for key in scanResult["modules"][pkg]: print " - %s" % key if options.outputList: print print " INCLUDE ORDER:" print "***********************************************************************************************" for key in sortedIncludeList: print " * %s" % key if options.copyResources: print print " COPY RESOURCES:" print "***********************************************************************************************" print " * Creating needed directories..." if options.copyResources: if options.resourceDirectory == None: print " * You must define the resource directory!" sys.exit(1) else: options.resourceDirectory = os.path.normpath(options.resourceDirectory) # Normalizing directory if not os.path.exists(options.resourceDirectory): os.makedirs(options.resourceDirectory) for fileId in sortedIncludeList: filePath = scanResult["files"][fileId] fileContent = file(filePath, "r").read() fileResourceList = loader.extractResources(fileContent) if len(fileResourceList) > 0: print " * Found %i resources in %s" % (len(fileResourceList), fileId) for fileResource in fileResourceList: resourceId = fileId + "." + fileResource resourcePath = resourceId.replace(".", os.sep) if options.verbose: print " * ResourcePath: %s" % resourcePath sourceDir = os.path.join(os.path.dirname(filePath), fileResource) destDir = os.path.join(options.resourceDirectory, resourcePath) for root, dirs, files in os.walk(sourceDir): # Filter ignored directories for ignoredDir in config.DIRIGNORE: if ignoredDir in dirs: dirs.remove(ignoredDir) # Searching for items (resource files) for itemName in files: # Generate absolute source file path itemSourcePath = os.path.join(root, itemName) # Extract relative path and directory itemRelPath = itemSourcePath.replace(sourceDir + os.sep, "") itemRelDir = os.path.dirname(itemRelPath) # Generate destination directory and file path itemDestDir = os.path.join(destDir, itemRelDir) itemDestPath = os.path.join(itemDestDir, itemName) # Check/Create destination directory if not os.path.exists(itemDestDir): os.makedirs(itemDestDir) # Copy file shutil.copyfile(itemSourcePath, itemDestPath) if options.compileSource or options.storeTokens: print print " TRANSFORMING SOURCE:" print "***********************************************************************************************" print " * Creating needed directories..." if options.storeTokens: if options.tokenDirectory == None: print " * You must define the token directory!" sys.exit(1) else: options.tokenDirectory = os.path.normpath(options.tokenDirectory) # Normalizing directory if not os.path.exists(options.tokenDirectory): os.makedirs(options.tokenDirectory) if options.compileSource or options.copyResources: if options.compileDirectory == None: print " * You must define the build directory!" sys.exit(1) else: options.compileDirectory = os.path.normpath(options.compileDirectory) # Normalizing directory if not os.path.exists(options.compileDirectory): os.makedirs(options.compileDirectory) compiledOutput = "" compressedStrings = {} compressedIndex = 0 for fileId in sortedIncludeList: print " * %s" % fileId if options.verbose: print " * reading..." fileName = scanResult["files"][fileId] fileContent = file(fileName, "r").read() fileSize = len(fileContent) / 1000.0 if options.verbose: print " * tokenizing source (%s KB)..." % fileSize tokens = tokenizer.parseStream(fileContent, fileId) if options.storeTokens: tokenString = tokenizer.convertTokensToString(tokens) tokenSize = len(tokenString) / 1000.0 if options.verbose: print " * writing tokens to file (%s KB)..." % tokenSize tokenFileName = os.path.join(options.tokenDirectory, fileId + config.TOKENEXT) tokenFile = file(tokenFileName, "w") tokenFile.write(tokenString) tokenFile.flush() tokenFile.close() if options.compressStrings: for token in tokens: if token["type"] != "string": continue compressSource = token["source"] if not compressedStrings.has_key(compressSource): compressedStrings[compressSource] = compressedIndex compressedIndex += 1 print "Compressed [%s]: %s" % (compressedIndex, compressSource) token["source"] = "qxStr[%s]" % compressedStrings[compressSource] token["detail"] = "compressed" if options.compileSource: if options.verbose: print " * compiling..." compiledFileContent = compile.compile(tokens, options.compileWithNewLines) if options.addFileIds: compiledOutput += "/* ID: " + fileId + " */\n" + compiledFileContent + "\n" else: compiledOutput += compiledFileContent compiledFileSize = len(compiledFileContent) / 1000.0 compiledFileSizeFactor = 100 - (compiledFileSize / fileSize * 100) if options.verbose: print " * compression %i%% (%s KB)" % (compiledFileSizeFactor, compiledFileSize) if options.storeSeparateScripts: if options.verbose: print " * writing compiled file..." compiledSeparateFileName = os.path.join(options.compileDirectory, fileId.replace(".", os.path.sep) + config.JSEXT) compiledSeparateFileDir = os.path.dirname(compiledSeparateFileName) # Check/Create destination directory if not os.path.exists(compiledSeparateFileDir): os.makedirs(compiledSeparateFileDir) compiledSeparateFile = file(compiledSeparateFileName, "w") compiledSeparateFile.write(compiledFileContent) compiledSeparateFile.flush() compiledSeparateFile.close() if options.compileSource: compiledOutputFileName = os.path.join(options.compileDirectory, options.compileOutputName) compiledOutputFileDir = os.path.dirname(compiledOutputFileName) # Check/Create destination directory if not os.path.exists(compiledOutputFileDir): os.makedirs(compiledOutputFileDir) compiledOutputFile = file(compiledOutputFileName, "w") compiledOutputFile.write(compiledOutput) compiledOutputFile.flush() compiledOutputFile.close()
|
85aacefb36d60936c37d08520d1b27007e812a55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/85aacefb36d60936c37d08520d1b27007e812a55/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2116,
4672,
309,
702,
18,
3168,
13071,
422,
599,
578,
562,
12,
2116,
18,
3168,
13071,
13,
422,
374,
30,
4882,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
1172,
315,
6225,
1297,
4426,
622,
4520,
1245,
1084,
1867,
4442,
1172,
315,
9167,
30,
738,
87,
306,
2116,
4279,
738,
4882,
1172,
315,
7833,
1995,
87,
300,
76,
11,
578,
1995,
87,
1493,
5201,
11,
358,
2405,
326,
2809,
883,
1199,
738,
261,
13909,
16,
4882,
13,
2589,
18,
8593,
12,
21,
13,
225,
1172,
1172,
315,
225,
7071,
2778,
1360,
2773,
1172,
315,
11125,
19482,
11345,
7388,
225,
1172,
315,
225,
380,
4444,
310,
1084,
1867,
913,
7070,
225,
468,
8769,
6894,
6402,
277,
33,
20,
364,
1867,
316,
702,
18,
3168,
13071,
30,
702,
18,
3168,
13071,
63,
77,
65,
273,
1140,
18,
803,
18,
7959,
803,
12,
2116,
18,
3168,
13071,
63,
77,
5717,
277,
15,
33,
21,
225,
4135,
1253,
273,
4088,
18,
9871,
1595,
12,
2116,
18,
3168,
13071,
13,
3115,
8752,
682,
273,
4088,
18,
588,
11739,
682,
12,
2116,
16,
4135,
1253,
13,
1377,
309,
702,
18,
2844,
2697,
30,
1172,
1172,
315,
225,
1475,
3417,
5665,
7527,
55,
2773,
1172,
315,
11125,
19482,
11345,
7388,
364,
498,
316,
4135,
1253,
9614,
2354,
11929,
30,
1172,
315,
225,
738,
87,
6142,
87,
2225,
738,
261,
856,
16,
4135,
1253,
9614,
2354,
6,
6362,
856,
5717,
225,
309,
702,
18,
2844,
7782,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2116,
4672,
309,
702,
18,
3168,
13071,
422,
599,
578,
562,
12,
2116,
18,
3168,
13071,
13,
422,
374,
30,
4882,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
1172,
315,
6225,
1297,
4426,
622,
4520,
1245,
1084,
1867,
4442,
1172,
315,
9167,
30,
738,
87,
306,
2116,
4279,
738,
4882,
1172,
315,
7833,
1995,
87,
300,
76,
11,
578,
1995,
87,
1493,
5201,
11,
358,
2405,
326,
2809,
883,
1199,
738,
261,
13909,
16,
4882,
13,
2589,
18,
8593,
12,
21,
13,
225,
1172,
1172,
315,
225,
7071,
2778,
1360,
2773,
1172,
315,
11125,
19482,
11345,
7388,
225,
1172,
315,
225,
380,
4444,
310,
1084,
1867,
913,
7070,
225,
468,
2
] |
'file': wikiutil.escape(file), 'fsize': fsize,
|
'file': wikiutil.escape(file).replace(' ', '%20'), 'fsize': fsize,
|
def _build_filelist(request, pagename, showheader, readonly): _ = request.getText # access directory attach_dir = getAttachDir(request, pagename) files = _get_files(request, pagename) str = "" if files: if showheader: str = str + _( "To refer to attachments on a page, use '''{{{attachment:filename}}}''', \n" "as shown below in the list of files. \n" "Do '''NOT''' use the URL of the {{{[get]}}} link, \n" "since this is subject to change and can break easily." ) str = str + "<ul>" label_del = _("del") label_get = _("get") label_edit = _("edit") label_view = _("view") label_unzip = _("unzip") label_install = _("install") for file in files: fsize = float(os.stat(os.path.join(attach_dir,file).encode(config.charset))[6]) # in byte fsize = "%.1f" % (fsize / 1024) baseurl = request.getScriptname() action = action_name urlpagename = wikiutil.quoteWikinameURL(pagename) urlfile = wikiutil.url_quote_plus(file) base, ext = os.path.splitext(file) get_url = getAttachUrl(pagename, file, request, escaped=1) parmdict = {'baseurl': baseurl, 'urlpagename': urlpagename, 'action': action, 'urlfile': urlfile, 'label_del': label_del, 'base': base, 'label_edit': label_edit, 'label_view': label_view, 'label_unzip': label_unzip, 'label_install': label_install, 'get_url': get_url, 'label_get': label_get, 'file': wikiutil.escape(file), 'fsize': fsize, 'pagename': pagename} del_link = '' if request.user.may.delete(pagename) and not readonly: del_link = '<a href="%(baseurl)s/%(urlpagename)s' \ '?action=%(action)s&do=del&target=%(urlfile)s">%(label_del)s</a> | ' % parmdict if ext == '.draw': viewlink = '<a href="%(baseurl)s/%(urlpagename)s?action=%(action)s&drawing=%(base)s">%(label_edit)s</a>' % parmdict else: viewlink = '<a href="%(baseurl)s/%(urlpagename)s?action=%(action)s&do=view&target=%(urlfile)s">%(label_view)s</a>' % parmdict if (packages.ZipPackage(request, os.path.join(attach_dir, file).encode(config.charset)).isPackage() and request.user.name in request.cfg.superuser): viewlink += ' | <a href="%(baseurl)s/%(urlpagename)s?action=%(action)s&do=install&target=%(urlfile)s">%(label_install)s</a>' % parmdict elif (zipfile.is_zipfile(os.path.join(attach_dir,file).encode(config.charset)) and request.user.may.read(pagename) and request.user.may.delete(pagename) and request.user.may.write(pagename)): viewlink += ' | <a href="%(baseurl)s/%(urlpagename)s?action=%(action)s&do=unzip&target=%(urlfile)s">%(label_unzip)s</a>' % parmdict parmdict['viewlink'] = viewlink parmdict['del_link'] = del_link str = str + ('<li>[%(del_link)s' '<a href="%(get_url)s">%(label_get)s</a> | %(viewlink)s]' ' (%(fsize)s KB) attachment:<strong>%(file)s</strong></li>') % parmdict str = str + "</ul>" else: if showheader: str = '%s<p>%s</p>' % (str, _("No attachments stored for %(pagename)s") % {'pagename': pagename}) return str
|
07f56a9b532bb552794939279e84ee4937ad6e60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/07f56a9b532bb552794939279e84ee4937ad6e60/AttachFile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
7540,
5449,
12,
2293,
16,
4262,
1069,
16,
2405,
3374,
16,
17102,
4672,
389,
273,
590,
18,
588,
1528,
225,
468,
2006,
1867,
3306,
67,
1214,
273,
336,
4761,
1621,
12,
2293,
16,
4262,
1069,
13,
1390,
273,
389,
588,
67,
2354,
12,
2293,
16,
4262,
1069,
13,
225,
609,
273,
1408,
309,
1390,
30,
309,
2405,
3374,
30,
609,
273,
609,
397,
389,
12,
315,
774,
8884,
358,
10065,
603,
279,
1363,
16,
999,
9163,
12187,
95,
11461,
30,
3459,
9090,
1713,
11,
2187,
521,
82,
6,
315,
345,
12188,
5712,
316,
326,
666,
434,
1390,
18,
521,
82,
6,
315,
3244,
9163,
4400,
26418,
999,
326,
1976,
434,
326,
10179,
95,
63,
588,
65,
9090,
97,
1692,
16,
521,
82,
6,
315,
9256,
333,
353,
3221,
358,
2549,
471,
848,
898,
17997,
1199,
262,
609,
273,
609,
397,
3532,
332,
2984,
225,
1433,
67,
3771,
273,
389,
2932,
3771,
7923,
1433,
67,
588,
273,
389,
2932,
588,
7923,
1433,
67,
4619,
273,
389,
2932,
4619,
7923,
1433,
67,
1945,
273,
389,
2932,
1945,
7923,
1433,
67,
318,
4450,
273,
389,
2932,
318,
4450,
7923,
1433,
67,
5425,
273,
389,
2932,
5425,
7923,
225,
364,
585,
316,
1390,
30,
284,
1467,
273,
1431,
12,
538,
18,
5642,
12,
538,
18,
803,
18,
5701,
12,
7331,
67,
1214,
16,
768,
2934,
3015,
12,
1425,
18,
9999,
3719,
63,
26,
5717,
468,
316,
1160,
284,
1467,
273,
26209,
21,
74,
6,
738,
261,
74,
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,
3510,
67,
7540,
5449,
12,
2293,
16,
4262,
1069,
16,
2405,
3374,
16,
17102,
4672,
389,
273,
590,
18,
588,
1528,
225,
468,
2006,
1867,
3306,
67,
1214,
273,
336,
4761,
1621,
12,
2293,
16,
4262,
1069,
13,
1390,
273,
389,
588,
67,
2354,
12,
2293,
16,
4262,
1069,
13,
225,
609,
273,
1408,
309,
1390,
30,
309,
2405,
3374,
30,
609,
273,
609,
397,
389,
12,
315,
774,
8884,
358,
10065,
603,
279,
1363,
16,
999,
9163,
12187,
95,
11461,
30,
3459,
9090,
1713,
11,
2187,
521,
82,
6,
315,
345,
12188,
5712,
316,
326,
666,
434,
1390,
18,
521,
82,
6,
315,
3244,
9163,
4400,
26418,
999,
326,
1976,
434,
326,
10179,
95,
63,
588,
2
] |
return executeCommand("banshee $", " ".join(commands), returnoutput=True)
|
return executeCommand(" ".join(["banshee"] + commands), returnoutput=True)
|
def banshee_command(self, commands): return executeCommand("banshee $", " ".join(commands), returnoutput=True) #return subprocess.Popen(["banshee"]+commands, stdout=subprocess.PIPE).communicate()[0]
|
ec6e9ed55e2bbadbe2aac00e0be1717484305e3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8738/ec6e9ed55e2bbadbe2aac00e0be1717484305e3a/nowplaying.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
634,
580,
73,
67,
3076,
12,
2890,
16,
4364,
4672,
327,
21120,
2932,
70,
634,
580,
73,
271,
3113,
315,
3552,
5701,
12,
7847,
3631,
327,
2844,
33,
5510,
13,
468,
2463,
6652,
18,
52,
3190,
3816,
6,
70,
634,
580,
73,
6,
3737,
7847,
16,
3909,
33,
1717,
2567,
18,
27602,
2934,
5702,
318,
2659,
1435,
63,
20,
65,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
634,
580,
73,
67,
3076,
12,
2890,
16,
4364,
4672,
327,
21120,
2932,
70,
634,
580,
73,
271,
3113,
315,
3552,
5701,
12,
7847,
3631,
327,
2844,
33,
5510,
13,
468,
2463,
6652,
18,
52,
3190,
3816,
6,
70,
634,
580,
73,
6,
3737,
7847,
16,
3909,
33,
1717,
2567,
18,
27602,
2934,
5702,
318,
2659,
1435,
63,
20,
65,
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
] |
main(2, 50)
|
main(2, 5)
|
def main(codeno, j): portal(codeno, Frame(j))
|
cbdb5c311cd3cb1679045eb3b12cb6fcf107ce8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/cbdb5c311cd3cb1679045eb3b12cb6fcf107ce8a/test_recursive.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1559,
5764,
16,
525,
4672,
11899,
12,
1559,
5764,
16,
8058,
12,
78,
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,
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,
2774,
12,
1559,
5764,
16,
525,
4672,
11899,
12,
1559,
5764,
16,
8058,
12,
78,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
%s* %s
|
%(uric)s* %(urilast)s
|
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
|
9fe47ec4311156cad473d8ed8bf0dba5fd73c14e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/9fe47ec4311156cad473d8ed8bf0dba5fd73c14e/states.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
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,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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
] |
for fd in set((p2cread, c2pwrite, errwrite))-set((0,1,2)): if fd: os.close(fd)
|
if p2cread and p2cread not in (0,): os.close(p2cread) if c2pwrite and c2pwrite not in (p2cread, 1): os.close(c2pwrite) if errwrite and errwrite not in (p2cread, c2pwrite, 2): os.close(errwrite)
|
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)"""
|
ec05a2d5803db2e9d38e1126b8b88062b9e11ce8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ec05a2d5803db2e9d38e1126b8b88062b9e11ce8/subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972,
16,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
896,
16,
276,
22,
84,
2626,
16,
393,
896,
16,
393,
2626,
4672,
3536,
5289,
5402,
261,
2419,
31773,
1177,
15574,
2,
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,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972,
16,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
896,
16,
276,
22,
84,
2626,
16,
393,
896,
16,
393,
2626,
4672,
3536,
5289,
5402,
261,
2419,
31773,
1177,
15574,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
filename = self.pysrc_url(doc)
|
filename = urllib.unquote(self.pysrc_url(doc))
|
def write(self, directory=None): """ Write the documentation to the given directory.
|
1546f158386fe400ef62e2648ffeeeabe16992fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1546f158386fe400ef62e2648ffeeeabe16992fa/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if len(line.strip()) != 0: file.write(line + '\n') if has_been_printed: file.write('/\n') line = ' ' has_been_printed = False for var in self.pb_nml.keys(): if self.pb_nml[var] != self.pb_nml_defaults[var]: if (not has_been_printed): if self.program == 'sander.APBS': file.write('&apbs\n') else: file.write('&pb\n') has_been_printed = True line = addOn(line,'%s=%s, ' % (var, self.pb_nml[var]), file)
|
def write(self, filename = 'mdin'): if not self.check(): # check the validity of the parameters print >> stderr, 'mdin file not written!' return -1
|
5fa4f46f8262f1ad5bf19b7b2c71c926bb57ae0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8376/5fa4f46f8262f1ad5bf19b7b2c71c926bb57ae0e/mdin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
273,
296,
1264,
267,
11,
4672,
225,
309,
486,
365,
18,
1893,
13332,
468,
866,
326,
13800,
434,
326,
1472,
1172,
1671,
4514,
16,
296,
1264,
267,
585,
486,
5941,
5124,
327,
300,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
273,
296,
1264,
267,
11,
4672,
225,
309,
486,
365,
18,
1893,
13332,
468,
866,
326,
13800,
434,
326,
1472,
1172,
1671,
4514,
16,
296,
1264,
267,
585,
486,
5941,
5124,
327,
300,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def populateBackground( server, style, tiles, image ):
|
def populateBackground( server, cachelocation, tiles, image ):
|
def populateBackground( server, style, tiles, image ): rootx = tiles['x']['min'] rooty = tiles['y']['min'] zoom = str(tiles['zoom']) templocation = os.path.join(cachelocation, style) if not os.path.isdir(templocation): os.mkdir(templocation)
|
7a25d0ed29c6f5dedd83c457767dc9ac4a88e91d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3985/7a25d0ed29c6f5dedd83c457767dc9ac4a88e91d/gpx2png.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
8199,
12,
1438,
16,
7122,
292,
4431,
16,
12568,
16,
1316,
262,
30,
1365,
92,
273,
12568,
3292,
92,
21712,
1154,
3546,
1365,
93,
273,
12568,
3292,
93,
21712,
1154,
3546,
7182,
273,
609,
12,
28366,
3292,
14932,
19486,
1906,
3562,
273,
1140,
18,
803,
18,
5701,
12,
17703,
292,
4431,
16,
2154,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
5814,
3562,
4672,
1140,
18,
26686,
12,
5814,
3562,
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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
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
8199,
12,
1438,
16,
7122,
292,
4431,
16,
12568,
16,
1316,
262,
30,
1365,
92,
273,
12568,
3292,
92,
21712,
1154,
3546,
1365,
93,
273,
12568,
3292,
93,
21712,
1154,
3546,
7182,
273,
609,
12,
28366,
3292,
14932,
19486,
1906,
3562,
273,
1140,
18,
803,
18,
5701,
12,
17703,
292,
4431,
16,
2154,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
5814,
3562,
4672,
1140,
18,
26686,
12,
5814,
3562,
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
] |
except (NameError, AttributeError):
|
except (NameError, AttributeError, dbus.exceptions.DBusException):
|
def activate_screensaver(self): """ Screen.activate_screensaver() -- activate screensaver
|
f495791d4bb2673e2e4c3b798dfb6c597d43f257 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7906/f495791d4bb2673e2e4c3b798dfb6c597d43f257/fullscreen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
67,
1017,
266,
773,
21851,
12,
2890,
4672,
3536,
10146,
18,
10014,
67,
1017,
266,
773,
21851,
1435,
1493,
10235,
888,
266,
773,
21851,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
67,
1017,
266,
773,
21851,
12,
2890,
4672,
3536,
10146,
18,
10014,
67,
1017,
266,
773,
21851,
1435,
1493,
10235,
888,
266,
773,
21851,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
name = dev['local_name']
|
name = dev['name']
|
def live_dev_cfg(self,dev): # # first of all, get status, if interface is down, just give up # self.updating = True
|
bced10be3e728c7e32309f3ce16cf534869135ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2587/bced10be3e728c7e32309f3ce16cf534869135ca/bluetool_config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8429,
67,
5206,
67,
7066,
12,
2890,
16,
5206,
4672,
468,
468,
202,
3645,
434,
777,
16,
336,
1267,
16,
309,
1560,
353,
2588,
16,
2537,
8492,
731,
468,
365,
18,
5533,
1776,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8429,
67,
5206,
67,
7066,
12,
2890,
16,
5206,
4672,
468,
468,
202,
3645,
434,
777,
16,
336,
1267,
16,
309,
1560,
353,
2588,
16,
2537,
8492,
731,
468,
365,
18,
5533,
1776,
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
] |
def start_audio_only(self): self.audio_only = True self.pipeline = gst.parse_launch('filesrc location="%s" ! decodebin ! fakesink' % (self.filename,)) self.bus = self.pipeline.get_bus() self.bus.add_signal_watch() self.watch_id = self.bus.connect("message", self.on_bus_message) self.pipeline.set_state(gst.STATE_PAUSED) def done (self): if self.saw_video_tag: type = 'video' elif self.saw_audio_tag: type = 'audio' else: type = 'other' self.callback(self.duration, self.success, type) def paused_reached(self): if self.audio_only: self.duration = self.pipeline.query_duration(gst.FORMAT_TIME)[0] self.success = True self.disconnect() self.done() if self.first_pause: self.duration = self.pipeline.query_duration(gst.FORMAT_TIME)[0] self.grabit = True seek_result = self.pipeline.seek(1.0, gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH | gst.SEEK_FLAG_ACCURATE, gst.SEEK_TYPE_SET, self.duration / 2, gst.SEEK_TYPE_NONE, 0) if not seek_result: self.disconnect() self.done() self.first_pause = False return False def error_occurred(self): self.disconnect() if self.audio_only: self.done() else: self.start_audio_only() return False
|
def __init__(self, filename, thumbnail_filename, callback):
|
9ec3a8ff57978fde4b3a57d656b012c6d994d233 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/9ec3a8ff57978fde4b3a57d656b012c6d994d233/gst_extractor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
9134,
67,
3459,
16,
1348,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
2890,
16,
1544,
16,
9134,
67,
3459,
16,
1348,
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
] |
|
return value
|
return ''.join(value)
|
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = ''
|
78de251d91563bc03063df6f574d313e0d1a124f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/78de251d91563bc03063df6f574d313e0d1a124f/httplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
db = dbhash.open(dbfile, 'c')
|
db = bsddb.hashopen(dbfile, 'c')
|
def do_remove(mlist, dbfile, textfile, virtualp): lockfp = None try: listname = mlist.internal_name() # Crack open the dbhash file, and delete all the entries. See the # discussion above for while we lock the aliases.db file this way. lockfp = open(dbfile) fcntl.flock(lockfp.fileno(), fcntl.LOCK_EX) db = dbhash.open(dbfile, 'c') for k, v in makealiases(listname): try: del db[k + '\0'] except KeyError: pass if not virtualp: # Always update YP_LAST_MODIFIED, but only for the aliases file db['YP_LAST_MODIFIED'] = '%010d' % time.time() # Add a YP_MASTER_NAME only if there isn't one already if not db.has_key('YP_MASTER_NAME'): db['YP_MASTER_NAME'] = socket.getfqdn() # And flush the changes to disk db.sync() # Now do our best to filter out the proper stanza from the text file. # The text file better exist! try: infp = open(textfile) except IOError, e: if e.errno <> errno.ENOENT: raise # Otherwise, there's no text file to filter so we're done. return omask = os.umask(007) try: outfp = open(textfile + '.tmp', 'w') finally: os.umask(omask) filteroutp = 0 start = '# STANZA START: ' + listname end = '# STANZA END: ' + listname while 1: line = infp.readline() if not line: break # If we're filtering out a stanza, just look for the end marker # and filter out everything in between. If we're not in the # middle of filter out a stanza, we're just looking for the proper # begin marker. if filteroutp: if line.startswith(end): filteroutp = 0 # Discard the trailing blank line, but don't worry if # we're at the end of the file. infp.readline() # Otherwise, ignore the line else: if line.startswith(start): # Filter out this stanza filteroutp = 1 else: outfp.write(line) # Close up shop, and rotate the files infp.close() outfp.close() os.rename(textfile+'.tmp', textfile) finally: if lockfp: fcntl.flock(lockfp.fileno(), fcntl.LOCK_UN) lockfp.close()
|
fdea0f4d4aafc034bf532b1250b6ea19c3d2c875 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fdea0f4d4aafc034bf532b1250b6ea19c3d2c875/Postfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4479,
12,
781,
376,
16,
1319,
768,
16,
977,
768,
16,
5024,
84,
4672,
2176,
7944,
273,
599,
775,
30,
666,
529,
273,
312,
1098,
18,
7236,
67,
529,
1435,
468,
385,
21580,
1696,
326,
1319,
2816,
585,
16,
471,
1430,
777,
326,
3222,
18,
225,
2164,
326,
468,
14716,
5721,
364,
1323,
732,
2176,
326,
6900,
18,
1966,
585,
333,
4031,
18,
2176,
7944,
273,
1696,
12,
1966,
768,
13,
30894,
18,
74,
739,
12,
739,
7944,
18,
7540,
5764,
9334,
30894,
18,
6589,
67,
2294,
13,
1319,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
768,
16,
296,
71,
6134,
364,
417,
16,
331,
316,
1221,
13831,
12,
1098,
529,
4672,
775,
30,
1464,
1319,
63,
79,
397,
2337,
20,
3546,
1335,
4999,
30,
1342,
309,
486,
5024,
84,
30,
468,
14178,
1089,
1624,
52,
67,
14378,
67,
21143,
16,
1496,
1338,
364,
326,
6900,
585,
1319,
3292,
61,
52,
67,
14378,
67,
21143,
3546,
273,
1995,
23254,
72,
11,
738,
813,
18,
957,
1435,
468,
1436,
279,
1624,
52,
67,
28045,
67,
1985,
1338,
309,
1915,
5177,
1404,
1245,
1818,
309,
486,
1319,
18,
5332,
67,
856,
2668,
61,
52,
67,
28045,
67,
1985,
11,
4672,
1319,
3292,
61,
52,
67,
28045,
67,
1985,
3546,
273,
2987,
18,
588,
19206,
5176,
1435,
468,
7835,
3663,
326,
3478,
358,
4234,
1319,
18,
8389,
1435,
468,
4494,
741,
3134,
3796,
358,
1034,
596,
326,
5338,
21650,
628,
326,
977,
585,
18,
468,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4479,
12,
781,
376,
16,
1319,
768,
16,
977,
768,
16,
5024,
84,
4672,
2176,
7944,
273,
599,
775,
30,
666,
529,
273,
312,
1098,
18,
7236,
67,
529,
1435,
468,
385,
21580,
1696,
326,
1319,
2816,
585,
16,
471,
1430,
777,
326,
3222,
18,
225,
2164,
326,
468,
14716,
5721,
364,
1323,
732,
2176,
326,
6900,
18,
1966,
585,
333,
4031,
18,
2176,
7944,
273,
1696,
12,
1966,
768,
13,
30894,
18,
74,
739,
12,
739,
7944,
18,
7540,
5764,
9334,
30894,
18,
6589,
67,
2294,
13,
1319,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
768,
16,
296,
71,
6134,
364,
417,
16,
331,
316,
1221,
13831,
12,
1098,
529,
4672,
775,
30,
2
] |
return
|
return OK
|
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstamina char.deltag( 'agility_effect' ) char.updatestamina() char.updatestats() return elif effecttype == 8 or effecttype == 9: if not char.hastag( 'strength_effect' ): return OOPS char.strength = char.strength - bonus if char.hitpoints > char.maxhitpoints: char.hitpoints = char.maxhitpoints char.deltag( 'strength_effect' ) char.updatehealth() char.updatestats() return elif effecttype == 20 or effecttype == 21: if not char.hastag( 'intelligence_effect' ): return OOPS char.intelligence = char.intelligence - bonus char.maxmana = char.maxmana - bonus if char.mana > char.maxmana: char.mana = char.maxmana char.deltag( 'intelligence_effect' ) char.updatemana() char.updatestats() return
|
1dbb4f996db2ee1cdf189b46c7eeed3786d7b16c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/1dbb4f996db2ee1cdf189b46c7eeed3786d7b16c/potions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5426,
12542,
12,
813,
16,
833,
262,
30,
1149,
273,
833,
63,
20,
65,
5426,
723,
273,
833,
63,
21,
65,
324,
22889,
273,
833,
63,
22,
65,
225,
309,
5426,
723,
422,
1666,
578,
5426,
723,
422,
2371,
30,
309,
486,
1149,
18,
76,
689,
346,
12,
296,
346,
1889,
67,
13867,
11,
262,
30,
327,
7791,
531,
3665,
55,
1149,
18,
561,
387,
560,
273,
1149,
18,
561,
387,
560,
300,
324,
22889,
1149,
18,
1896,
334,
301,
15314,
273,
1149,
18,
1896,
334,
301,
15314,
300,
324,
22889,
309,
1149,
18,
334,
301,
15314,
405,
1149,
18,
1896,
334,
301,
15314,
30,
1149,
18,
334,
301,
15314,
273,
1149,
18,
1896,
334,
301,
15314,
1149,
18,
3771,
2692,
12,
296,
346,
1889,
67,
13867,
11,
262,
1149,
18,
416,
3404,
395,
301,
15314,
1435,
1149,
18,
416,
3404,
395,
2323,
1435,
327,
7791,
225,
1327,
5426,
723,
422,
1725,
578,
5426,
723,
422,
2468,
30,
309,
486,
1149,
18,
76,
689,
346,
12,
296,
334,
13038,
67,
13867,
11,
262,
30,
327,
7791,
531,
3665,
55,
1149,
18,
334,
13038,
273,
1149,
18,
334,
13038,
300,
324,
22889,
309,
1149,
18,
15989,
4139,
405,
1149,
18,
1896,
15989,
4139,
30,
1149,
18,
15989,
4139,
273,
1149,
18,
1896,
15989,
4139,
1149,
18,
3771,
2692,
12,
296,
334,
13038,
67,
13867,
11,
262,
1149,
18,
2725,
13267,
1435,
1149,
18,
416,
3404,
395,
2323,
1435,
327,
7791,
225,
1327,
5426,
723,
422,
4200,
578,
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,
5426,
12542,
12,
813,
16,
833,
262,
30,
1149,
273,
833,
63,
20,
65,
5426,
723,
273,
833,
63,
21,
65,
324,
22889,
273,
833,
63,
22,
65,
225,
309,
5426,
723,
422,
1666,
578,
5426,
723,
422,
2371,
30,
309,
486,
1149,
18,
76,
689,
346,
12,
296,
346,
1889,
67,
13867,
11,
262,
30,
327,
7791,
531,
3665,
55,
1149,
18,
561,
387,
560,
273,
1149,
18,
561,
387,
560,
300,
324,
22889,
1149,
18,
1896,
334,
301,
15314,
273,
1149,
18,
1896,
334,
301,
15314,
300,
324,
22889,
309,
1149,
18,
334,
301,
15314,
405,
1149,
18,
1896,
334,
301,
15314,
30,
1149,
18,
334,
301,
15314,
273,
1149,
18,
1896,
334,
301,
15314,
1149,
2
] |
if e[0] == EINTR:
|
if e.args[0] == EINTR:
|
def read(self, size=-1): # Use max, disallow tiny reads in a loop as they are very inefficient. # We never leave read() with any leftover data from a new recv() call # in our internal buffer. rbufsize = max(self._rbufsize, self.default_bufsize) # Our use of StringIO rather than lists of string objects returned by # recv() minimizes memory usage and fragmentation that occurs when # rbufsize is large compared to the typical return value of recv(). buf = self._rbuf buf.seek(0, 2) # seek end if size < 0: # Read until EOF self._rbuf = StringIO() # reset _rbuf. we consume it via buf. while True: try: data = self._sock.recv(rbufsize) except error, e: if e[0] == EINTR: continue raise if not data: break buf.write(data) return buf.getvalue() else: # Read until size bytes or EOF seen, whichever comes first buf_len = buf.tell() if buf_len >= size: # Already have size bytes in our buffer? Extract and return. buf.seek(0) rv = buf.read(size) self._rbuf = StringIO() self._rbuf.write(buf.read()) return rv
|
659074f9ef02a6c3a78b35a8bf2fa0ab12511c2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/659074f9ef02a6c3a78b35a8bf2fa0ab12511c2e/socket.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
29711,
21,
4672,
468,
2672,
943,
16,
29176,
24405,
6838,
316,
279,
2798,
487,
2898,
854,
8572,
316,
25403,
18,
468,
1660,
5903,
8851,
855,
1435,
598,
1281,
29709,
501,
628,
279,
394,
10665,
1435,
745,
468,
316,
3134,
2713,
1613,
18,
436,
4385,
1467,
273,
943,
12,
2890,
6315,
86,
4385,
1467,
16,
365,
18,
1886,
67,
4385,
1467,
13,
468,
29613,
999,
434,
15777,
9178,
2353,
6035,
434,
533,
2184,
2106,
635,
468,
10665,
1435,
18172,
3128,
3778,
4084,
471,
5481,
367,
716,
9938,
1347,
468,
436,
4385,
1467,
353,
7876,
15843,
358,
326,
24917,
327,
460,
434,
10665,
7675,
1681,
273,
365,
6315,
86,
4385,
1681,
18,
16508,
12,
20,
16,
576,
13,
225,
468,
6520,
679,
309,
963,
411,
374,
30,
468,
2720,
3180,
6431,
365,
6315,
86,
4385,
273,
15777,
1435,
225,
468,
2715,
389,
86,
4385,
18,
225,
732,
7865,
518,
3970,
1681,
18,
1323,
1053,
30,
775,
30,
501,
273,
365,
6315,
15031,
18,
18334,
12,
86,
4385,
1467,
13,
1335,
555,
16,
425,
30,
309,
425,
18,
1968,
63,
20,
65,
422,
512,
3217,
54,
30,
1324,
1002,
309,
486,
501,
30,
898,
1681,
18,
2626,
12,
892,
13,
327,
1681,
18,
588,
1132,
1435,
469,
30,
468,
2720,
3180,
963,
1731,
578,
6431,
5881,
16,
600,
335,
580,
502,
14535,
1122,
1681,
67,
1897,
273,
1681,
18,
88,
1165,
1435,
309,
1681,
67,
1897,
1545,
963,
30,
468,
17009,
1240,
963,
1731,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
29711,
21,
4672,
468,
2672,
943,
16,
29176,
24405,
6838,
316,
279,
2798,
487,
2898,
854,
8572,
316,
25403,
18,
468,
1660,
5903,
8851,
855,
1435,
598,
1281,
29709,
501,
628,
279,
394,
10665,
1435,
745,
468,
316,
3134,
2713,
1613,
18,
436,
4385,
1467,
273,
943,
12,
2890,
6315,
86,
4385,
1467,
16,
365,
18,
1886,
67,
4385,
1467,
13,
468,
29613,
999,
434,
15777,
9178,
2353,
6035,
434,
533,
2184,
2106,
635,
468,
10665,
1435,
18172,
3128,
3778,
4084,
471,
5481,
367,
716,
9938,
1347,
468,
436,
4385,
1467,
353,
7876,
15843,
358,
326,
24917,
327,
460,
434,
10665,
7675,
1681,
273,
365,
6315,
86,
4385,
1681,
18,
16508,
12,
20,
2
] |
This command is depreacted. Without -c, it's implied by other relevant
|
This command is deprecated. Without -c, it's implied by other relevant
|
def init(ui, repo, **opts): """init a new queue repository (DEPRECATED) The queue repository is unversioned by default. If -c/--create-repo is specified, qinit will create a separate nested repository for patches (qinit -c may also be run later to convert an unversioned patch repository into a versioned one). You can use qcommit to commit changes to this queue repository. This command is depreacted. Without -c, it's implied by other relevant commands. With -c, use hg -Q init instead.""" q = repo.mq r = q.init(repo, create=opts['create_repo']) q.save_dirty() if r: if not os.path.exists(r.wjoin('.hgignore')): fp = r.wopener('.hgignore', 'w') fp.write('^\\.hg\n') fp.write('^\\.mq\n') fp.write('syntax: glob\n') fp.write('status\n') fp.write('guards\n') fp.close() if not os.path.exists(r.wjoin('series')): r.wopener('series', 'w').close() r.add(['.hgignore', 'series']) commands.add(ui, r) return 0
|
78192733ca5267882c3742813f90c07bd90d7856 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/78192733ca5267882c3742813f90c07bd90d7856/mq.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
4881,
16,
3538,
16,
2826,
4952,
4672,
3536,
2738,
279,
394,
2389,
3352,
261,
17575,
13,
225,
1021,
2389,
3352,
353,
29645,
635,
805,
18,
971,
300,
71,
19,
413,
2640,
17,
7422,
353,
1269,
16,
1043,
2738,
903,
752,
279,
9004,
4764,
3352,
364,
16482,
261,
85,
2738,
300,
71,
2026,
2546,
506,
1086,
5137,
358,
1765,
392,
29645,
4729,
3352,
1368,
279,
17083,
1245,
2934,
4554,
848,
999,
1043,
7371,
358,
3294,
3478,
358,
333,
2389,
3352,
18,
225,
1220,
1296,
353,
6849,
18,
27287,
300,
71,
16,
518,
1807,
23547,
635,
1308,
9368,
4364,
18,
3423,
300,
71,
16,
999,
22576,
300,
53,
1208,
3560,
12123,
1043,
273,
3538,
18,
11636,
436,
273,
1043,
18,
2738,
12,
7422,
16,
752,
33,
4952,
3292,
2640,
67,
7422,
19486,
1043,
18,
5688,
67,
18013,
1435,
309,
436,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
86,
18,
91,
5701,
2668,
18,
26981,
6185,
26112,
30,
4253,
273,
436,
18,
91,
25098,
2668,
18,
26981,
6185,
2187,
296,
91,
6134,
4253,
18,
2626,
2668,
66,
19978,
26981,
64,
82,
6134,
4253,
18,
2626,
2668,
66,
19978,
11636,
64,
82,
6134,
4253,
18,
2626,
2668,
14308,
30,
4715,
64,
82,
6134,
4253,
18,
2626,
2668,
2327,
64,
82,
6134,
4253,
18,
2626,
2668,
6891,
14727,
64,
82,
6134,
4253,
18,
4412,
1435,
309,
486,
1140,
18,
803,
18,
1808,
12,
86,
18,
91,
5701,
2668,
10222,
26112,
30,
436,
18,
91,
25098,
2668,
10222,
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,
1208,
12,
4881,
16,
3538,
16,
2826,
4952,
4672,
3536,
2738,
279,
394,
2389,
3352,
261,
17575,
13,
225,
1021,
2389,
3352,
353,
29645,
635,
805,
18,
971,
300,
71,
19,
413,
2640,
17,
7422,
353,
1269,
16,
1043,
2738,
903,
752,
279,
9004,
4764,
3352,
364,
16482,
261,
85,
2738,
300,
71,
2026,
2546,
506,
1086,
5137,
358,
1765,
392,
29645,
4729,
3352,
1368,
279,
17083,
1245,
2934,
4554,
848,
999,
1043,
7371,
358,
3294,
3478,
358,
333,
2389,
3352,
18,
225,
1220,
1296,
353,
6849,
18,
27287,
300,
71,
16,
518,
1807,
23547,
635,
1308,
9368,
4364,
18,
3423,
300,
71,
16,
999,
22576,
300,
53,
1208,
3560,
12123,
1043,
273,
3538,
18,
11636,
436,
273,
2
] |
@return: Two dictionaries: - the first maps keys to terms - the second maks keys to lists of links @rtype: C{dictionary}
|
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, L{ParsedDocstring}, list of Link)}
|
def _extract_term_index(self): """ @return: Two dictionaries: - the first maps keys to terms - the second maks keys to lists of links @rtype: C{dictionary} """ terms = {} links = {} for (uid, doc) in self._docmap.items(): if (not self._show_private) and uid.is_private(): continue if uid.is_function(): link = Link(uid.name(), uid.module()) elif uid.is_method(): link = Link(uid.name(), uid.cls()) else: link = Link(uid.name(), uid)
|
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/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,
67,
2626,
67,
6836,
97,
358,
4872,
326,
2481,
770,
18,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
385,
95,
12,
1080,
16,
511,
95,
11257,
1759,
1080,
5779,
666,
434,
4048,
16869,
3536,
6548,
273,
2618,
4716,
273,
2618,
364,
261,
1911,
16,
997,
13,
316,
365,
6315,
2434,
1458,
18,
3319,
13332,
309,
261,
902,
365,
6315,
4500,
67,
1152,
13,
471,
4555,
18,
291,
67,
1152,
13332,
1324,
225,
309,
4555,
18,
291,
67,
915,
13332,
1692,
273,
4048,
12,
1911,
18,
529,
9334,
4555,
18,
2978,
10756,
1327,
4555,
18,
291,
67,
2039,
13332,
1692,
273,
4048,
12,
1911,
18,
529,
9334,
4555,
18,
6429,
10756,
469,
30,
1692,
273,
4048,
12,
1911,
18,
529,
9334,
4555,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
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,
67,
2626,
67,
6836,
97,
358,
4872,
326,
2481,
770,
18,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
385,
95,
12,
1080,
16,
511,
95,
11257,
1759,
1080,
5779,
666,
434,
4048,
16869,
3536,
6548,
273,
2618,
4716,
273,
2618,
364,
261,
1911,
16,
997,
13,
316,
365,
6315,
2434,
1458,
18,
3319,
13332,
309,
261,
902,
365,
6315,
4500,
2
] |
self.get(force=True, get_redirect=True, throttle=False)
|
try: self.get(force=True, get_redirect=True, throttle=False) except NoPage: output(u'Page %s is moved and no longer exist.') delattr(self, '_contents')
|
def _moveOld(self, newtitle, reason=None, movetalkpage=True, movesubpages=False, sysop=False, throttle=True, deleteAndMove=False, safe=True, fixredirects=True, leaveRedirect=True): # Login try: self.get() except: pass sysop = self._getActionUser(action = 'move', restriction = self.moveRestriction, sysop = False) if deleteAndMove: sysop = self._getActionUser(action = 'delete', restriction = '', sysop = True)
|
a589302f3796bb6cd5e8e918dfe938d6f28d338d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/a589302f3796bb6cd5e8e918dfe938d6f28d338d/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8501,
7617,
12,
2890,
16,
394,
2649,
16,
3971,
33,
7036,
16,
5730,
278,
2960,
2433,
33,
5510,
16,
13934,
373,
7267,
33,
8381,
16,
2589,
556,
33,
8381,
16,
18304,
33,
5510,
16,
1430,
1876,
7607,
33,
8381,
16,
4183,
33,
5510,
16,
2917,
22715,
33,
5510,
16,
8851,
5961,
33,
5510,
4672,
225,
468,
11744,
775,
30,
365,
18,
588,
1435,
1335,
30,
1342,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
8501,
2187,
9318,
273,
365,
18,
8501,
11670,
16,
2589,
556,
273,
1083,
13,
309,
1430,
1876,
7607,
30,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
3733,
2187,
9318,
273,
10226,
2589,
556,
273,
1053,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8501,
7617,
12,
2890,
16,
394,
2649,
16,
3971,
33,
7036,
16,
5730,
278,
2960,
2433,
33,
5510,
16,
13934,
373,
7267,
33,
8381,
16,
2589,
556,
33,
8381,
16,
18304,
33,
5510,
16,
1430,
1876,
7607,
33,
8381,
16,
4183,
33,
5510,
16,
2917,
22715,
33,
5510,
16,
8851,
5961,
33,
5510,
4672,
225,
468,
11744,
775,
30,
365,
18,
588,
1435,
1335,
30,
1342,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
8501,
2187,
9318,
273,
365,
18,
8501,
11670,
16,
2589,
556,
273,
1083,
13,
309,
1430,
1876,
7607,
30,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
3733,
2187,
9318,
273,
10226,
2589,
556,
273,
2
] |
if 'bin' in f.split('/'): addonsdir = '' else: addonsdir = self.args['addonsdir']+'/' self.pofiles.append(addonsdir+f) if len(self.pofiles):
|
if mod_lst[0] not in self.pofiles: self.pofiles[mod_lst[0]] = [] self.pofiles[mod_lst[0]].append(mod_lst[-1]) self.translation_lst.append(mod_lst[-1]) if len(self.translation_lst):
|
def start(self): s = self.build.getSourceStamp() self.pofiles = [] for change in s.changes: files = ( change.files_added + change.files_modified + [f[1] for f in change.files_renamed] ) for f in files: fname,ext = os.path.splitext(f.split('/')[-1]) if ext == '.po': if 'bin' in f.split('/'): addonsdir = '' else: addonsdir = self.args['addonsdir']+'/' self.pofiles.append(addonsdir+f) if len(self.pofiles): commands = [] commands = ["make","install-translation"]
|
ebbf77dbde8b1ca1e43ac3ea55be7b01ef0199a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/ebbf77dbde8b1ca1e43ac3ea55be7b01ef0199a8/buildstep.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
272,
273,
365,
18,
3510,
18,
588,
1830,
8860,
1435,
365,
18,
84,
792,
1449,
273,
5378,
364,
2549,
316,
272,
18,
6329,
30,
1390,
273,
261,
2549,
18,
2354,
67,
9665,
397,
2549,
18,
2354,
67,
7342,
397,
306,
74,
63,
21,
65,
364,
284,
316,
2549,
18,
2354,
67,
1187,
2808,
65,
262,
364,
284,
316,
1390,
30,
5299,
16,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
74,
18,
4939,
2668,
2473,
13,
18919,
21,
5717,
309,
1110,
422,
2418,
1631,
4278,
309,
681,
67,
16923,
63,
20,
65,
486,
316,
365,
18,
84,
792,
1449,
30,
365,
18,
84,
792,
1449,
63,
1711,
67,
16923,
63,
20,
13563,
273,
5378,
365,
18,
84,
792,
1449,
63,
1711,
67,
16923,
63,
20,
65,
8009,
6923,
12,
1711,
67,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
272,
273,
365,
18,
3510,
18,
588,
1830,
8860,
1435,
365,
18,
84,
792,
1449,
273,
5378,
364,
2549,
316,
272,
18,
6329,
30,
1390,
273,
261,
2549,
18,
2354,
67,
9665,
397,
2549,
18,
2354,
67,
7342,
397,
306,
74,
63,
21,
65,
364,
284,
316,
2549,
18,
2354,
67,
1187,
2808,
65,
262,
364,
284,
316,
1390,
30,
5299,
16,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
74,
18,
4939,
2668,
2473,
13,
18919,
21,
5717,
309,
1110,
422,
2418,
1631,
4278,
309,
681,
67,
16923,
63,
20,
65,
486,
316,
365,
18,
84,
792,
1449,
30,
365,
18,
84,
792,
1449,
63,
1711,
67,
16923,
63,
20,
13563,
273,
2
] |
statuses = ["Unknown", "Invalid", "Won't fix", "Fix Released", "Fix Committed", "New", "Incomplete", "Confirmed", "Triaged", "In Progress"]
|
statuses = ["Unknown", "Invalid", "Won't Fix", "Fix Released", "Fix Committed", "New", "Incomplete", "Confirmed", "Triaged", "In Progress"]
|
def _sort(task1, task2): statuses = ["Unknown", "Invalid", "Won't fix", "Fix Released", "Fix Committed", "New", "Incomplete", "Confirmed", "Triaged", "In Progress"] severities = ["Unknown", "Undecided", "Wishlist", "Low", "Medium", "High", "Critical"] task1_status = task1.status task1_importance = task1.importance task2_status = task2.status task2_importance = task2.importance if task1_status != task2_status: if statuses.index(task1_status) < statuses.index(task2_status): return -1 return 1 if task1_importance != task2_importance: if severities.index(task1_importance) < severities.index(task2_importance): return -1 return 1 return 0
|
62ade6d270f7c070792d20b4a9e5210e428591e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3124/62ade6d270f7c070792d20b4a9e5210e428591e8/plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
12,
4146,
21,
16,
1562,
22,
4672,
13516,
273,
8247,
4874,
3113,
315,
1941,
3113,
315,
59,
265,
1404,
12139,
3113,
315,
8585,
10819,
72,
3113,
315,
8585,
1286,
7948,
3113,
315,
1908,
3113,
315,
27531,
3113,
315,
3976,
11222,
3113,
315,
6251,
11349,
3113,
315,
382,
10980,
11929,
6963,
1961,
273,
8247,
4874,
3113,
315,
984,
4924,
13898,
3113,
315,
15691,
1098,
3113,
315,
10520,
3113,
315,
25599,
3113,
315,
8573,
3113,
315,
30286,
11929,
1562,
21,
67,
2327,
273,
1562,
21,
18,
2327,
1562,
21,
67,
5666,
1359,
273,
1562,
21,
18,
5666,
1359,
1562,
22,
67,
2327,
273,
1562,
22,
18,
2327,
1562,
22,
67,
5666,
1359,
273,
1562,
22,
18,
5666,
1359,
309,
1562,
21,
67,
2327,
480,
1562,
22,
67,
2327,
30,
309,
13516,
18,
1615,
12,
4146,
21,
67,
2327,
13,
411,
13516,
18,
1615,
12,
4146,
22,
67,
2327,
4672,
327,
300,
21,
327,
404,
309,
1562,
21,
67,
5666,
1359,
480,
1562,
22,
67,
5666,
1359,
30,
309,
6963,
1961,
18,
1615,
12,
4146,
21,
67,
5666,
1359,
13,
411,
6963,
1961,
18,
1615,
12,
4146,
22,
67,
5666,
1359,
4672,
327,
300,
21,
327,
404,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
12,
4146,
21,
16,
1562,
22,
4672,
13516,
273,
8247,
4874,
3113,
315,
1941,
3113,
315,
59,
265,
1404,
12139,
3113,
315,
8585,
10819,
72,
3113,
315,
8585,
1286,
7948,
3113,
315,
1908,
3113,
315,
27531,
3113,
315,
3976,
11222,
3113,
315,
6251,
11349,
3113,
315,
382,
10980,
11929,
6963,
1961,
273,
8247,
4874,
3113,
315,
984,
4924,
13898,
3113,
315,
15691,
1098,
3113,
315,
10520,
3113,
315,
25599,
3113,
315,
8573,
3113,
315,
30286,
11929,
1562,
21,
67,
2327,
273,
1562,
21,
18,
2327,
1562,
21,
67,
5666,
1359,
273,
1562,
21,
18,
5666,
1359,
1562,
22,
67,
2327,
273,
1562,
22,
18,
2327,
1562,
22,
67,
5666,
1359,
273,
1562,
22,
18,
5666,
1359,
2
] |
return eval(maxima.eval("jacobi_nd(%s,%s)"%(RR(x),RR(m))))
|
return eval(maxima.eval("jacobi_nd(%s,%s)"%(float(x),float(m))))
|
def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.72400972165937116 sage: jacobi("cn",1,1/2);jacobi("dn",1,1/2);jacobi("cn",1,1/2)/jacobi("dn",1,1/2) 0.59597656767214113 0.82316100163159622 0.72400972165937116 sage: jsn = lambda x: jacobi("sn",x,1) sage: P= plot(jsn,0,1) Now to view this, just type show(P). """ #R = x.parent() #y = R.gen() if sym=="dc": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="nc": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="sc": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="cd": return eval(maxima.eval("jacobi_cd(%s,%s)"%(RR(x),RR(m)))) if sym=="nd": return eval(maxima.eval("jacobi_nd(%s,%s)"%(RR(x),RR(m)))) if sym=="sd": return eval(maxima.eval("jacobi_sd(%s,%s)"%(RR(x),RR(m)))) if sym=="cn": return eval(maxima.eval("jacobi_cn(%s,%s)"%(RR(x),RR(m)))) if sym=="dn": return eval(maxima.eval("jacobi_dn(%s,%s)"%(RR(x),RR(m)))) if sym=="sn": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="cs": return eval(maxima.eval("jacobi_cs(%s,%s)"%(RR(x),RR(m)))) if sym=="ds": return eval(maxima.eval("jacobi_ds(%s,%s)"%(RR(x),RR(m)))) if sym=="ns": return eval(maxima.eval("jacobi_ns(%s,%s)"%(RR(x),RR(m)))) return 1
|
9a0ab89f387827fef6f9118a65362ee1e0032bd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/9a0ab89f387827fef6f9118a65362ee1e0032bd5/special.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
434,
326,
804,
1077,
30875,
445,
14619,
12,
92,
16,
81,
3631,
487,
11893,
316,
326,
7323,
364,
348,
2833,
1807,
315,
9371,
6,
1605,
18,
6149,
854,
279,
2078,
434,
2593,
4186,
11893,
635,
333,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
20138,
30875,
2932,
8134,
3113,
21,
16,
21,
13,
374,
18,
6669,
24872,
9803,
2539,
29,
2539,
27,
1105,
7140,
272,
410,
30,
20138,
30875,
2932,
4315,
3113,
21,
16,
21,
19,
22,
13,
374,
18,
27,
3247,
713,
29,
9060,
2313,
6162,
6418,
20562,
272,
410,
30,
20138,
30875,
2932,
10305,
3113,
21,
16,
21,
19,
22,
1769,
31390,
30875,
2932,
5176,
3113,
21,
16,
21,
19,
22,
1769,
31390,
30875,
2932,
10305,
3113,
21,
16,
21,
19,
22,
13176,
31390,
30875,
2932,
5176,
3113,
21,
16,
21,
19,
22,
13,
374,
18,
6162,
6162,
6669,
4313,
6669,
9060,
3461,
23379,
374,
18,
28,
4366,
2313,
6625,
30886,
3600,
10525,
3787,
374,
18,
27,
3247,
713,
29,
9060,
2313,
6162,
6418,
20562,
272,
410,
30,
3828,
82,
273,
3195,
619,
30,
20138,
30875,
2932,
8134,
3113,
92,
16,
21,
13,
272,
410,
30,
453,
33,
3207,
12,
2924,
82,
16,
20,
16,
21,
13,
225,
4494,
358,
1476,
333,
16,
2537,
618,
2405,
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,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
434,
326,
804,
1077,
30875,
445,
14619,
12,
92,
16,
81,
3631,
487,
11893,
316,
326,
7323,
364,
348,
2833,
1807,
315,
9371,
6,
1605,
18,
6149,
854,
279,
2078,
434,
2593,
4186,
11893,
635,
333,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
20138,
30875,
2932,
8134,
3113,
21,
16,
21,
13,
374,
18,
6669,
24872,
9803,
2539,
29,
2539,
27,
1105,
7140,
272,
410,
30,
20138,
30875,
2932,
4315,
3113,
21,
16,
21,
19,
22,
13,
374,
18,
27,
2
] |
event.Skip()
|
def OnMouseEvents (self, event): """ Handle the variety of raw mouse events cells get, passing them to the rendering delegate if it wants them. """ # If the handlers we call (if any) want to eat the event, they'll # call event.Skip(False) event.Skip() # Bug #7320: Don't process mouse events when the the table isn't visible # or when gridWindow's data has changed but hasn't been synchronized to the widget. if self.IsShown(): blockItem = self.blockItem blockItem.itsView.dispatchQueuedNotifications() if not blockItem.isBlockDirty(): gridWindow = self.GetGridWindow() def callHandler(cell, isInCell, oldnew): if cell is None or -1 in cell: return False renderer = self.GetCellRenderer(cell[1], cell[0]) try: # See if it's renderer with an attribute editor that wants # mouse events handler = renderer.delegate.OnMouseChange except AttributeError: # See if it's a section renderer that wants mouse events handler = getattr(renderer, 'OnMouseChange', None) if handler is None: return False # Add information to the event event.cell = cell event.isInCell = isInCell event.getCellValue = lambda: self.GetTable().GetValue(cell[1], cell[0]) event.getCellRect = lambda: self.CalculateCellRect(cell) # Call the handler wantsCapture = handler(event) return wantsCapture # Figure out which cell we're over, and the previous one if any cell = self.__eventToCell(event) oldCell = getattr(blockItem, "overCell", None) # Summarize the state on each call if False: evtType = event.GetEventType() evtType = evtNames.get(evtType, evtType) logger.debug("wxDashboard.OnMouseEvents: %s, %s (was %s)", evtType, cell, oldCell) # If we were over a cell previously that wanted us to capture # the mouse, notify it and see whether it still wants it. wantsCapture = False if oldCell is not None: wantsCapture = callHandler(oldCell, oldCell == cell, "old") if not wantsCapture: del blockItem.overCell if not wantsCapture: # If the old cell didn't want it, give the current # cell a chance if oldCell != cell: wantsCapture = callHandler(cell, True, "new") if wantsCapture: blockItem.overCell = cell # Change mouse capture if necessary. Apparently window.HasCapture # isn't reliable, so we track our own capturedness hasCapture = getattr(blockItem, 'mouseCaptured', False) if wantsCapture: if not hasCapture: #logger.debug("OnMouseEvents: CaptureMouse") gridWindow.CaptureMouse() blockItem.mouseCaptured = True elif hasCapture: if gridWindow.HasCapture(): #logger.debug("OnMouseEvents: ReleaseMouse") gridWindow.ReleaseMouse() #else: #logger.debug("OnMouseEvents: would ReleaseMouse, but not HasCapture") del blockItem.mouseCaptured
|
31d95cc507e370982e6667ce0fbee76301e3a261 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/31d95cc507e370982e6667ce0fbee76301e3a261/Table.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
9186,
3783,
261,
2890,
16,
871,
4672,
3536,
5004,
326,
1394,
14369,
434,
1831,
7644,
2641,
5983,
336,
16,
9588,
2182,
358,
326,
9782,
7152,
309,
518,
14805,
2182,
18,
3536,
468,
971,
326,
4919,
732,
745,
261,
430,
1281,
13,
2545,
358,
20729,
326,
871,
16,
2898,
5614,
468,
745,
871,
18,
6368,
12,
8381,
13,
871,
18,
6368,
1435,
225,
468,
16907,
468,
27,
31273,
30,
7615,
1404,
1207,
7644,
2641,
1347,
326,
326,
1014,
5177,
1404,
6021,
468,
578,
1347,
3068,
3829,
1807,
501,
711,
3550,
1496,
13342,
1404,
2118,
3852,
358,
326,
3604,
18,
309,
365,
18,
2520,
27042,
13332,
1203,
1180,
273,
365,
18,
2629,
1180,
1203,
1180,
18,
1282,
1767,
18,
10739,
21039,
14111,
1435,
309,
486,
1203,
1180,
18,
291,
1768,
10785,
13332,
3068,
3829,
273,
365,
18,
967,
6313,
3829,
1435,
225,
1652,
745,
1503,
12,
3855,
16,
8048,
4020,
16,
1592,
2704,
4672,
309,
2484,
353,
599,
578,
300,
21,
316,
2484,
30,
327,
1083,
225,
5690,
273,
365,
18,
967,
4020,
6747,
12,
3855,
63,
21,
6487,
2484,
63,
20,
5717,
775,
30,
468,
2164,
309,
518,
1807,
5690,
598,
392,
1566,
4858,
716,
14805,
468,
7644,
2641,
1838,
273,
5690,
18,
22216,
18,
1398,
9186,
3043,
1335,
6394,
30,
468,
2164,
309,
518,
1807,
279,
2442,
5690,
716,
14805,
7644,
2641,
1838,
273,
3869,
12,
14374,
16,
296,
1398,
9186,
3043,
2187,
599,
13,
225,
309,
1838,
353,
599,
30,
327,
1083,
225,
468,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
9186,
3783,
261,
2890,
16,
871,
4672,
3536,
5004,
326,
1394,
14369,
434,
1831,
7644,
2641,
5983,
336,
16,
9588,
2182,
358,
326,
9782,
7152,
309,
518,
14805,
2182,
18,
3536,
468,
971,
326,
4919,
732,
745,
261,
430,
1281,
13,
2545,
358,
20729,
326,
871,
16,
2898,
5614,
468,
745,
871,
18,
6368,
12,
8381,
13,
871,
18,
6368,
1435,
225,
468,
16907,
468,
27,
31273,
30,
7615,
1404,
1207,
7644,
2641,
1347,
326,
326,
1014,
5177,
1404,
6021,
468,
578,
1347,
3068,
3829,
1807,
501,
711,
3550,
1496,
13342,
1404,
2118,
3852,
358,
326,
3604,
18,
309,
365,
18,
2520,
27042,
13332,
1203,
1180,
273,
365,
18,
2629,
1180,
1203,
1180,
18,
1282,
1767,
18,
2
] |
|
field_values += doc.field_value(field)
|
field_values += doc.field_values(field)
|
def _standard_field_values(self, doc): """ @return: A list of epytext field values that includes all fields that are common to all L{ObjDoc}s. C{_standard_field_values} is used by L{_extract_term_index}. @rtype: C{list} of L{xml.dom.minidom.Document} """ field_values = [] for field in doc.fields(): field_values += doc.field_value(field) return field_values
|
986fb527f9f5168bb2a99f7a14d03b6f9e1f2682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/986fb527f9f5168bb2a99f7a14d03b6f9e1f2682/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10005,
67,
1518,
67,
2372,
12,
2890,
16,
997,
4672,
3536,
632,
2463,
30,
432,
666,
434,
425,
2074,
955,
652,
924,
716,
6104,
777,
1466,
716,
854,
2975,
358,
777,
511,
95,
2675,
1759,
97,
87,
18,
385,
95,
67,
10005,
67,
1518,
67,
2372,
97,
353,
1399,
635,
511,
95,
67,
8004,
67,
6408,
67,
1615,
5496,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
511,
95,
2902,
18,
9859,
18,
1154,
350,
362,
18,
2519,
97,
3536,
652,
67,
2372,
273,
5378,
364,
652,
316,
997,
18,
2821,
13332,
652,
67,
2372,
1011,
997,
18,
1518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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10005,
67,
1518,
67,
2372,
12,
2890,
16,
997,
4672,
3536,
632,
2463,
30,
432,
666,
434,
425,
2074,
955,
652,
924,
716,
6104,
777,
1466,
716,
854,
2975,
358,
777,
511,
95,
2675,
1759,
97,
87,
18,
385,
95,
67,
10005,
67,
1518,
67,
2372,
97,
353,
1399,
635,
511,
95,
67,
8004,
67,
6408,
67,
1615,
5496,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
511,
95,
2902,
18,
9859,
18,
1154,
350,
362,
18,
2519,
97,
3536,
652,
67,
2372,
273,
5378,
364,
652,
316,
997,
18,
2821,
13332,
652,
67,
2372,
1011,
997,
18,
1518,
67,
2372,
12,
1518,
13,
327,
652,
67,
2372,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
subentry=langheader(wikilang) + '\n'
|
subentry=langheader[wikilang] + '\n'
|
def wikiwrap(self,wikilang): for meaning in self.meanings: subentry=langheader(wikilang) + '\n' # langheader is a dictionary that has the proper way to create a header indicating the language of a subentry for this Wiktionary term=meaning.term subentry+=posheader(wikilang,term.pos) # posheader is a dictionary that has the proper way to create headers indicating part of speech subentry+='\n' subentry+=term.getTerm + ' ' + term.getGender + ' ' + meaning.definition subentry+='\n\n' return subentry
|
3857c33ffc3beac922d870b30b2d14cc5143c3c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3857c33ffc3beac922d870b30b2d14cc5143c3c3/wiktionary.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
4113,
12,
2890,
16,
11999,
330,
539,
4672,
364,
12256,
316,
365,
18,
7079,
899,
30,
720,
4099,
33,
4936,
3374,
12,
11999,
330,
539,
13,
397,
2337,
82,
11,
202,
7,
3303,
3374,
353,
279,
3880,
716,
711,
326,
5338,
4031,
358,
752,
279,
1446,
11193,
326,
2653,
434,
279,
720,
4099,
364,
333,
678,
1766,
24252,
814,
2481,
33,
7079,
310,
18,
6408,
720,
4099,
15,
33,
917,
3374,
12,
11999,
330,
539,
16,
6408,
18,
917,
13,
202,
7,
949,
3374,
353,
279,
3880,
716,
711,
326,
5338,
4031,
358,
752,
1607,
11193,
1087,
434,
24556,
720,
4099,
15,
2218,
64,
82,
11,
720,
4099,
15,
33,
6408,
18,
588,
4065,
397,
296,
296,
397,
2481,
18,
588,
43,
2345,
397,
296,
296,
397,
12256,
18,
6907,
720,
4099,
15,
2218,
64,
82,
64,
82,
11,
327,
720,
4099,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9050,
4113,
12,
2890,
16,
11999,
330,
539,
4672,
364,
12256,
316,
365,
18,
7079,
899,
30,
720,
4099,
33,
4936,
3374,
12,
11999,
330,
539,
13,
397,
2337,
82,
11,
202,
7,
3303,
3374,
353,
279,
3880,
716,
711,
326,
5338,
4031,
358,
752,
279,
1446,
11193,
326,
2653,
434,
279,
720,
4099,
364,
333,
678,
1766,
24252,
814,
2481,
33,
7079,
310,
18,
6408,
720,
4099,
15,
33,
917,
3374,
12,
11999,
330,
539,
16,
6408,
18,
917,
13,
202,
7,
949,
3374,
353,
279,
3880,
716,
711,
326,
5338,
4031,
358,
752,
1607,
11193,
1087,
434,
24556,
720,
4099,
15,
2218,
64,
82,
11,
720,
4099,
15,
33,
6408,
18,
588,
4065,
397,
296,
296,
2
] |
if self.detect_lang() == self.toLang(): if self.fromLang() != 'auto':
|
if self.detect_lang() == self.to_lang(): if self.from_lang() != 'auto':
|
def translate(self): '''Return translated text from fromLang to toLang.''' self.result = '' if self._text == '': return True try: # 'auto' needs to be set to blank now if self._fromLang == 'auto': fromLangTemp = '' else: fromLangTemp = self._fromLang langpair = '%s|%s' % (fromLangTemp, self._toLang) urldata = urllib.urlencode({'v': 1.0, 'q': self._text, 'langpair': langpair }) url = 'http://ajax.googleapis.com/ajax/services/language/translate?%s' % \ (urldata,) headers = {'User-Agent': 'Traduisons/%s' % (msg_VERSION,)} req = urllib2.Request(url, None, headers) response = urllib2.urlopen(req).read() result = json.loads(response) if result['responseStatus'] != 200: self._error = ('Unable to translate', Exception(result['responseDetails'])) translation = '' return False translation = result['responseData']['translatedText'] translation = self._unquotehtml(translation) if translation.lower() == self._text.lower(): if self.detect_lang() == self.toLang(): if self.fromLang() != 'auto': self.swapLang() print "Reversing translation direction..." translation = self.translate() # If 'result' is empty (pretty generic error) handle exception. except TypeError, e: self._error = ('No translation available', e) return False except urllib2.HTTPError, e: self._error = ('urllib2.HTTPError: Check network connection', e) return False ## If the url ever changes... except urllib2.URLError, e: self._error = (e.reason, e) return False finally: try: self.result = translation except NameError: pass return True
|
14df03d8cb360b4e980acabb44bd6dbe0fd79acd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/14df03d8cb360b4e980acabb44bd6dbe0fd79acd/traduisons.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
4672,
9163,
990,
9955,
977,
628,
628,
7275,
358,
358,
7275,
1093,
6309,
365,
18,
2088,
273,
875,
309,
365,
6315,
955,
422,
875,
30,
327,
1053,
775,
30,
468,
296,
6079,
11,
4260,
358,
506,
444,
358,
7052,
2037,
309,
365,
6315,
2080,
7275,
422,
296,
6079,
4278,
628,
7275,
7185,
273,
875,
469,
30,
628,
7275,
7185,
273,
365,
6315,
2080,
7275,
3303,
6017,
273,
1995,
87,
30574,
87,
11,
738,
261,
2080,
7275,
7185,
16,
365,
6315,
869,
7275,
13,
880,
892,
273,
11527,
18,
718,
3015,
12590,
11,
90,
4278,
404,
18,
20,
16,
296,
85,
4278,
365,
6315,
955,
16,
296,
4936,
6017,
4278,
3303,
6017,
289,
13,
880,
273,
296,
2505,
2207,
12813,
18,
9536,
18590,
18,
832,
19,
12813,
19,
8387,
19,
4923,
19,
13929,
35,
9,
87,
11,
738,
521,
261,
718,
892,
16,
13,
1607,
273,
13666,
1299,
17,
3630,
4278,
296,
1609,
2544,
4530,
87,
5258,
87,
11,
738,
261,
3576,
67,
5757,
16,
16869,
1111,
273,
11527,
22,
18,
691,
12,
718,
16,
599,
16,
1607,
13,
766,
273,
11527,
22,
18,
295,
18589,
12,
3658,
2934,
896,
1435,
563,
273,
1163,
18,
17135,
12,
2740,
13,
309,
563,
3292,
2740,
1482,
3546,
480,
4044,
30,
365,
6315,
1636,
273,
7707,
3370,
358,
4204,
2187,
1185,
12,
2088,
3292,
2740,
3790,
3546,
3719,
4794,
273,
875,
327,
1083,
4794,
273,
563,
3292,
2740,
751,
21712,
22899,
1528,
3546,
4794,
273,
365,
6315,
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,
4204,
12,
2890,
4672,
9163,
990,
9955,
977,
628,
628,
7275,
358,
358,
7275,
1093,
6309,
365,
18,
2088,
273,
875,
309,
365,
6315,
955,
422,
875,
30,
327,
1053,
775,
30,
468,
296,
6079,
11,
4260,
358,
506,
444,
358,
7052,
2037,
309,
365,
6315,
2080,
7275,
422,
296,
6079,
4278,
628,
7275,
7185,
273,
875,
469,
30,
628,
7275,
7185,
273,
365,
6315,
2080,
7275,
3303,
6017,
273,
1995,
87,
30574,
87,
11,
738,
261,
2080,
7275,
7185,
16,
365,
6315,
869,
7275,
13,
880,
892,
273,
11527,
18,
718,
3015,
12590,
11,
90,
4278,
404,
18,
20,
16,
296,
85,
4278,
365,
6315,
955,
16,
296,
4936,
6017,
4278,
3303,
6017,
289,
13,
880,
273,
2
] |
match = re.match(r"^(?P<n>.*) *\(.*", m)
|
match = re.match('^(?P<n>.*) *\(.*', m)
|
def __init__(self, t, m, d): self.time = float(t) # check to see if this is a trace event em = re.match(r"^ *\/\* *(?P<msg>.*) \*\/ *$", m) if(em): self.name = em.group("msg") self.fevent = True return # convert the duration to seconds if(d): self.length = float(d)/1000000 # the indentation determines the depth match = re.match(r"^(?P<d> *)(?P<o>.*)$", m) if(not match): return self.depth = self.getDepth(match.group('d')) m = match.group('o') # function return if(m[0] == '}'): self.freturn = True if(len(m) > 1): # includes comment with function name match = re.match(r"^} *\/\* *(?P<n>.*) *\*\/$", m) if(match): self.name = match.group('n') # function call else: self.fcall = True # function call with children if(m[-1] == '{'): match = re.match(r"^(?P<n>.*) *\(.*", m) if(match): self.name = match.group('n') # function call with no children (leaf) elif(m[-1] == ';'): self.freturn = True match = re.match(r"^(?P<n>.*) *\(.*", m) if(match): self.name = match.group('n') # something else (possibly a trace marker) else: self.name = m
|
0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
268,
16,
312,
16,
302,
4672,
365,
18,
957,
273,
1431,
12,
88,
13,
468,
866,
358,
2621,
309,
333,
353,
279,
2606,
871,
801,
273,
283,
18,
1916,
12,
86,
6,
66,
380,
29885,
14,
380,
3680,
52,
32,
3576,
34,
4509,
13,
521,
14,
6700,
380,
8,
3113,
312,
13,
309,
12,
351,
4672,
365,
18,
529,
273,
801,
18,
1655,
2932,
3576,
7923,
365,
18,
74,
2575,
273,
1053,
327,
468,
1765,
326,
3734,
358,
3974,
309,
12,
72,
4672,
365,
18,
2469,
273,
1431,
12,
72,
13176,
21,
9449,
468,
326,
12018,
12949,
326,
3598,
845,
273,
283,
18,
1916,
12,
86,
6,
66,
3680,
52,
32,
72,
34,
380,
13,
3680,
52,
32,
83,
34,
4509,
21877,
3113,
312,
13,
309,
12,
902,
845,
4672,
327,
365,
18,
5979,
273,
365,
18,
588,
6148,
12,
1916,
18,
1655,
2668,
72,
26112,
312,
273,
845,
18,
1655,
2668,
83,
6134,
468,
445,
327,
309,
12,
81,
63,
20,
65,
422,
9571,
4672,
365,
18,
74,
2463,
273,
1053,
309,
12,
1897,
12,
81,
13,
405,
404,
4672,
468,
6104,
2879,
598,
445,
508,
845,
273,
283,
18,
1916,
12,
86,
6,
66,
97,
380,
29885,
14,
380,
3680,
52,
32,
82,
34,
4509,
13,
380,
64,
14,
6700,
8,
3113,
312,
13,
309,
12,
1916,
4672,
365,
18,
529,
273,
845,
18,
1655,
2668,
82,
6134,
468,
445,
745,
469,
30,
365,
18,
74,
1991,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
268,
16,
312,
16,
302,
4672,
365,
18,
957,
273,
1431,
12,
88,
13,
468,
866,
358,
2621,
309,
333,
353,
279,
2606,
871,
801,
273,
283,
18,
1916,
12,
86,
6,
66,
380,
29885,
14,
380,
3680,
52,
32,
3576,
34,
4509,
13,
521,
14,
6700,
380,
8,
3113,
312,
13,
309,
12,
351,
4672,
365,
18,
529,
273,
801,
18,
1655,
2932,
3576,
7923,
365,
18,
74,
2575,
273,
1053,
327,
468,
1765,
326,
3734,
358,
3974,
309,
12,
72,
4672,
365,
18,
2469,
273,
1431,
12,
72,
13176,
21,
9449,
468,
326,
12018,
12949,
326,
3598,
845,
273,
283,
18,
1916,
12,
86,
6,
66,
3680,
52,
32,
72,
2
] |
if image or analyze:
|
if (image or analyze) and os.path.exists(project+'.ms'):
|
def simdata( project=None, modifymodel=None, skymodel=None, inbright=None, indirection=None, incell=None, incenter=None, inwidth=None, # innchan=None, setpointings=None, ptgfile=None, integration=None, direction=None, mapsize=None, maptype=None, pointingspacing=None, caldirection=None, calflux=None, predict=None, refdate=None, complist=None, compwidth=None, totaltime=None, antennalist=None, sdantlist=None, sdant=None, thermalnoise=None, user_pwv=None, t_ground=None, t_sky=None, tau0=None, leakage=None, image=None, vis=None, modelimage=None, cell=None, imsize=None, niter=None, threshold=None, weighting=None, mask=None, outertaper=None, stokes=None, analyze=None, showarray=None, showuv=None, showpsf=None, showmodel=None, showconvolved=None, showclean=None, showresidual=None, showdifference=None, showfidelity=None, graphics=None, verbose=None, overwrite=None, async=False): # RI TODO for inbright=unchanged, need to scale input image to jy/pix casalog.origin('simdata') if verbose: casalog.filter(level="DEBUG2") a=inspect.stack() stacklevel=0 for k in range(len(a)): if (string.find(a[k][1], 'ipython console') > 0): stacklevel=k myf=sys._getframe(stacklevel).f_globals saveinputs=myf['saveinputs'] saveinputs('simdata',project+".simdata.last") # some hardcoded variables that may be reintroduced in future development relmargin=.5 # number of PB between edge of model and pointing centers scanlength=1 # number of integrations per scan # as of 20100507, newfig will delete the previous one # create the utility object: util=simutil(direction) # this is the dir of the observation - could be "" if verbose: util.verbose=True msg=util.msg if type(skymodel)==type([]): skymodel=skymodel[0] skymodel=skymodel.replace('$project',project) if((not os.path.exists(skymodel)) and (not os.path.exists(complist))): msg("No sky input found. At least one of skymodel or complist must be set.",priority="error") return False if((not os.path.exists(skymodel)) and (os.path.exists(complist))): msg("No skymodel found. Simulating from components only is new and still considered an 'expert' feature.",priority="warn")
|
1510580ba08e0263ed627cc6ad8317047555cfc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/1510580ba08e0263ed627cc6ad8317047555cfc5/task_simdata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
892,
12,
1984,
33,
7036,
16,
5612,
2284,
33,
7036,
16,
15513,
2284,
33,
7036,
16,
316,
31070,
33,
7036,
16,
1547,
2769,
33,
7036,
16,
316,
3855,
33,
7036,
16,
316,
5693,
33,
7036,
16,
316,
2819,
33,
7036,
16,
468,
316,
82,
7472,
33,
7036,
16,
444,
1153,
899,
33,
7036,
16,
5818,
75,
768,
33,
7036,
16,
12040,
33,
7036,
16,
4068,
33,
7036,
16,
852,
1467,
33,
7036,
16,
312,
1657,
388,
33,
7036,
16,
1634,
899,
84,
5330,
33,
7036,
16,
1443,
9855,
33,
7036,
16,
1443,
7994,
33,
7036,
16,
7810,
33,
7036,
16,
1278,
712,
33,
7036,
16,
532,
17842,
33,
7036,
16,
1161,
2819,
33,
7036,
16,
2078,
957,
33,
7036,
16,
392,
2253,
82,
287,
376,
33,
7036,
16,
8349,
970,
1098,
33,
7036,
16,
8349,
970,
33,
7036,
16,
286,
25301,
17814,
33,
7036,
16,
729,
67,
14921,
90,
33,
7036,
16,
268,
67,
2915,
33,
7036,
16,
268,
67,
22921,
33,
7036,
16,
12284,
20,
33,
7036,
16,
20891,
410,
33,
7036,
16,
1316,
33,
7036,
16,
2281,
33,
7036,
16,
938,
2730,
33,
7036,
16,
2484,
33,
7036,
16,
709,
1467,
33,
7036,
16,
290,
2165,
33,
7036,
16,
5573,
33,
7036,
16,
3119,
310,
33,
7036,
16,
3066,
33,
7036,
16,
596,
1051,
7294,
33,
7036,
16,
384,
601,
281,
33,
7036,
16,
12375,
33,
7036,
16,
2405,
1126,
33,
7036,
16,
2405,
16303,
33,
7036,
16,
2405,
1121,
74,
33,
7036,
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,
3142,
892,
12,
1984,
33,
7036,
16,
5612,
2284,
33,
7036,
16,
15513,
2284,
33,
7036,
16,
316,
31070,
33,
7036,
16,
1547,
2769,
33,
7036,
16,
316,
3855,
33,
7036,
16,
316,
5693,
33,
7036,
16,
316,
2819,
33,
7036,
16,
468,
316,
82,
7472,
33,
7036,
16,
444,
1153,
899,
33,
7036,
16,
5818,
75,
768,
33,
7036,
16,
12040,
33,
7036,
16,
4068,
33,
7036,
16,
852,
1467,
33,
7036,
16,
312,
1657,
388,
33,
7036,
16,
1634,
899,
84,
5330,
33,
7036,
16,
1443,
9855,
33,
7036,
16,
1443,
7994,
33,
7036,
16,
7810,
33,
7036,
16,
1278,
712,
33,
7036,
16,
532,
17842,
33,
7036,
16,
1161,
2819,
33,
7036,
16,
2078,
957,
2
] |
res = run("SELECT term,hitlist FROM %s WHERE term BETWEEN %%s AND %%s" % bibwordsX, (wash_index_term(word0), wash_index_term(word1)))
|
res = run_sql("SELECT term,hitlist FROM %s WHERE term BETWEEN %%s AND %%s" % bibwordsX, (wash_index_term(word0), wash_index_term(word1)))
|
def search_unit_in_bibwords(word, f, decompress=zlib.decompress): """Searches for 'word' inside bibwordsX table for field 'f' and returns hitset of recIDs.""" set = HitSet() # will hold output result set set_used = 0 # not-yet-used flag, to be able to circumvent set operations # deduce into which bibwordsX table we will search: apply_stemming = not "anyfield" in CFG_BIBINDEX_DISABLE_STEMMING_FOR_INDEXES bibwordsX = "idxWORD%02dF" % get_index_id("anyfield") if f: index_id = get_index_id(f) if index_id: bibwordsX = "idxWORD%02dF" % index_id apply_stemming = not f in CFG_BIBINDEX_DISABLE_STEMMING_FOR_INDEXES else: return HitSet() # word index f does not exist # wash 'word' argument and run query: word = string.replace(word, '*', '%') # we now use '*' as the truncation character words = string.split(word, "->", 1) # check for span query if len(words) == 2: word0 = re_word.sub('', words[0]) word1 = re_word.sub('', words[1]) if apply_stemming: word0 = stem(word0) word1 = stem(word1) res = run("SELECT term,hitlist FROM %s WHERE term BETWEEN %%s AND %%s" % bibwordsX, (wash_index_term(word0), wash_index_term(word1))) else: word = re_word.sub('', word) if apply_stemming: word = stem(word) if string.find(word, '%') >= 0: # do we have wildcard in the word? res = run_sql("SELECT term,hitlist FROM %s WHERE term LIKE %%s" % bibwordsX, (wash_index_term(word),)) else: res = run_sql("SELECT term,hitlist FROM %s WHERE term=%%s" % bibwordsX, (wash_index_term(word),)) # fill the result set: for word, hitlist in res: hitset_bibwrd = HitSet(hitlist) # add the results: if set_used: set.union_update(hitset_bibwrd) else: set = hitset_bibwrd set_used = 1 # okay, return result set: return set
|
86ec2adb7ea91e5a1ce9484051fb4d4c4ae54b13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/86ec2adb7ea91e5a1ce9484051fb4d4c4ae54b13/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4873,
67,
267,
67,
70,
495,
3753,
12,
1095,
16,
284,
16,
16824,
33,
94,
2941,
18,
323,
14706,
4672,
3536,
16294,
364,
296,
1095,
11,
4832,
25581,
3753,
60,
1014,
364,
652,
296,
74,
11,
471,
1135,
6800,
542,
434,
1950,
5103,
12123,
444,
273,
670,
305,
694,
1435,
468,
903,
6887,
876,
563,
444,
444,
67,
3668,
273,
374,
468,
486,
17,
24404,
17,
3668,
2982,
16,
358,
506,
7752,
358,
29951,
616,
444,
5295,
468,
11140,
3965,
1368,
1492,
25581,
3753,
60,
1014,
732,
903,
1623,
30,
2230,
67,
19781,
11987,
273,
486,
315,
2273,
1518,
6,
316,
7577,
67,
38,
13450,
9199,
67,
13498,
2782,
67,
10765,
49,
1360,
67,
7473,
67,
9199,
3991,
25581,
3753,
60,
273,
315,
3465,
7952,
9,
3103,
72,
42,
6,
738,
336,
67,
1615,
67,
350,
2932,
2273,
1518,
7923,
309,
284,
30,
770,
67,
350,
273,
336,
67,
1615,
67,
350,
12,
74,
13,
309,
770,
67,
350,
30,
25581,
3753,
60,
273,
315,
3465,
7952,
9,
3103,
72,
42,
6,
738,
770,
67,
350,
2230,
67,
19781,
11987,
273,
486,
284,
316,
7577,
67,
38,
13450,
9199,
67,
13498,
2782,
67,
10765,
49,
1360,
67,
7473,
67,
9199,
3991,
469,
30,
327,
670,
305,
694,
1435,
468,
2076,
770,
284,
1552,
486,
1005,
225,
468,
341,
961,
296,
1095,
11,
1237,
471,
1086,
843,
30,
2076,
273,
533,
18,
2079,
12,
1095,
16,
14609,
2187,
1995,
6134,
468,
732,
2037,
999,
5306,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4873,
67,
267,
67,
70,
495,
3753,
12,
1095,
16,
284,
16,
16824,
33,
94,
2941,
18,
323,
14706,
4672,
3536,
16294,
364,
296,
1095,
11,
4832,
25581,
3753,
60,
1014,
364,
652,
296,
74,
11,
471,
1135,
6800,
542,
434,
1950,
5103,
12123,
444,
273,
670,
305,
694,
1435,
468,
903,
6887,
876,
563,
444,
444,
67,
3668,
273,
374,
468,
486,
17,
24404,
17,
3668,
2982,
16,
358,
506,
7752,
358,
29951,
616,
444,
5295,
468,
11140,
3965,
1368,
1492,
25581,
3753,
60,
1014,
732,
903,
1623,
30,
2230,
67,
19781,
11987,
273,
486,
315,
2273,
1518,
6,
316,
7577,
67,
38,
13450,
9199,
67,
13498,
2782,
67,
10765,
49,
1360,
67,
7473,
67,
2
] |
BareLF = re.compile('([^\015])\015') DoDont = re.compile('(^|[^\377])\377[\375\376](.)') WillWont = re.compile('(^|[^\377])\377[\373\374](.)') AreYouThere = re.compile('(^|[^\377])\377\366') IpTelnet = re.compile('(^|[^\377])\377\364') OtherTelnet = re.compile('(^|[^\377])\377[^\377]')
|
LINEMODE = chr(34) NULL = chr(0) ECHO = chr(1) CR = chr(13) LF = chr(10) SE = chr(240) NOP = chr(241) DM = chr(242) BRK = chr(243) IP = chr(244) AO = chr(245) AYT = chr(246) EC = chr(247) EL = chr(248) GA = chr(249) SB = chr(250) WILL = chr(251) WONT = chr(252) DO = chr(253) DONT = chr(254) IAC = chr(255) UIAC = '(^|[^' + IAC + '])' + IAC BareLF = re.compile('([^' + CR + '])' + CR) DoDont = re.compile(UIAC +'[' + DO + DONT + '](.)') WillWont = re.compile(UIAC + '[' + WILL + WONT + '](.)') AreYouThere = re.compile(UIAC + AYT) IpTelnet = re.compile(UIAC + IP) OtherTelnet = re.compile(UIAC + '[^' + IAC + ']')
|
def finish(self): dbg('debugserver: disconnect from %s' % str(self.client_address))
|
528aaa06b6d1da43df857560969166229ecd0f23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/528aaa06b6d1da43df857560969166229ecd0f23/debugserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,
2890,
4672,
28966,
2668,
4148,
3567,
30,
9479,
628,
738,
87,
11,
738,
609,
12,
2890,
18,
2625,
67,
2867,
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,
-100,
-100
] |
print >>fp, str(entry) fp.close() def write_as_txt(self,filename):
|
print >>fileobj, str(entry) fileobj.close() def topfnfile(self, fileobj):
|
def write(self,filename): """ write a cache object to filename as a lal cache file """ fp = open(filename,'w') for entry in self: print >>fp, str(entry) fp.close()
|
ccd374c8d5f8c51aff23f40822b44718babd6098 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/ccd374c8d5f8c51aff23f40822b44718babd6098/lal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
3459,
4672,
3536,
1045,
279,
1247,
733,
358,
1544,
487,
279,
328,
287,
1247,
585,
3536,
4253,
273,
1696,
12,
3459,
11189,
91,
6134,
364,
1241,
316,
365,
30,
1172,
1671,
7944,
16,
609,
12,
4099,
13,
4253,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
3459,
4672,
3536,
1045,
279,
1247,
733,
358,
1544,
487,
279,
328,
287,
1247,
585,
3536,
4253,
273,
1696,
12,
3459,
11189,
91,
6134,
364,
1241,
316,
365,
30,
1172,
1671,
7944,
16,
609,
12,
4099,
13,
4253,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _tokenize(str, warnings, errors):
|
def _tokenize(str, errors):
|
def _tokenize(str, warnings, errors): """ Split a given formatted docstring into an ordered list of C{Token}s, according to the epytext markup rules. @param str: The epytext string @type str: C{string} @param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragraph will be appended to this list. @type warnings: C{list} of L{ParseError} @param errors: A list where any errors generated during parsing will be stored. If no list is specified, then errors will generate exceptions. @type errors: C{list} of L{ParseError} @return: a list of the C{Token}s that make up the given string. @rtype: C{list} of L{Token} """ tokens = [] lines = str.split('\n') # Scan through the lines, determining what @type of token we're # dealing with, and tokenizing it, as appropriate. linenum = 0 while linenum < len(lines): # Get the current line and its indentation. line = lines[linenum] indent = len(line)-len(line.lstrip()) if indent == len(line): # Ignore blank lines. linenum += 1 continue elif line[indent:indent+4] == '>>> ': # blocks starting with ">>> " are doctest block tokens. linenum = _tokenize_doctest(lines, linenum, indent, tokens, errors) elif _BULLET_RE.match(line, indent): # blocks starting with a bullet are LI start tokens. linenum = _tokenize_listart(lines, linenum, indent, tokens, warnings) if tokens[-1].indent != None: indent = tokens[-1].indent else: # Check for mal-formatted field items. if line[indent] == '@': estr = "Possible mal-formatted field item." warnings.append(TokenizationError(estr, linenum, line)) # anything else is either a paragraph or a heading. linenum = _tokenize_para(lines, linenum, indent, tokens, warnings) # Paragraph tokens ending in '::' initiate literal blocks. if (tokens[-1].tag == Token.PARA and tokens[-1].contents[-2:] == '::'): tokens[-1].contents = tokens[-1].contents[:-1] linenum = _tokenize_literal(lines, linenum, indent, tokens, warnings) return tokens
|
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
12,
701,
16,
1334,
4672,
3536,
5385,
279,
864,
4955,
14525,
1368,
392,
5901,
666,
434,
385,
95,
1345,
97,
87,
16,
4888,
358,
326,
425,
2074,
955,
9813,
2931,
18,
225,
632,
891,
609,
30,
1021,
425,
2074,
955,
533,
632,
723,
609,
30,
385,
95,
1080,
97,
632,
891,
5599,
30,
432,
666,
434,
326,
5599,
4374,
635,
5811,
18,
225,
5502,
394,
5599,
4374,
1323,
903,
1147,
6894,
333,
10190,
903,
506,
12317,
358,
333,
666,
18,
632,
723,
5599,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
632,
891,
1334,
30,
432,
666,
1625,
1281,
1334,
4374,
4982,
5811,
903,
506,
4041,
18,
225,
971,
1158,
666,
353,
1269,
16,
1508,
1334,
903,
2103,
4798,
18,
632,
723,
1334,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
632,
2463,
30,
279,
666,
434,
326,
385,
95,
1345,
97,
87,
716,
1221,
731,
326,
864,
533,
18,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
511,
95,
1345,
97,
3536,
2430,
273,
5378,
2362,
273,
609,
18,
4939,
2668,
64,
82,
6134,
225,
468,
8361,
3059,
326,
2362,
16,
23789,
4121,
632,
723,
434,
1147,
732,
4565,
468,
21964,
598,
16,
471,
1147,
6894,
518,
16,
487,
5505,
18,
4739,
7924,
273,
374,
1323,
4739,
7924,
411,
562,
12,
3548,
4672,
468,
968,
326,
783,
980,
471,
2097,
12018,
18,
980,
273,
2362,
63,
7511,
7924,
65,
3504,
273,
562,
12,
1369,
24950,
1897,
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,
389,
2316,
554,
12,
701,
16,
1334,
4672,
3536,
5385,
279,
864,
4955,
14525,
1368,
392,
5901,
666,
434,
385,
95,
1345,
97,
87,
16,
4888,
358,
326,
425,
2074,
955,
9813,
2931,
18,
225,
632,
891,
609,
30,
1021,
425,
2074,
955,
533,
632,
723,
609,
30,
385,
95,
1080,
97,
632,
891,
5599,
30,
432,
666,
434,
326,
5599,
4374,
635,
5811,
18,
225,
5502,
394,
5599,
4374,
1323,
903,
1147,
6894,
333,
10190,
903,
506,
12317,
358,
333,
666,
18,
632,
723,
5599,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
632,
891,
1334,
30,
432,
666,
1625,
1281,
1334,
4374,
4982,
5811,
903,
506,
4041,
18,
225,
971,
1158,
666,
353,
1269,
2
] |
moments = t.get_moments()
|
moments = truncate.get_moments()
|
def _scale(self): '''Actually scale all of the data together.'''
|
a62cb6c872066be1cce61a7b9346ded9f2df42d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/a62cb6c872066be1cce61a7b9346ded9f2df42d6/XDSScaler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5864,
12,
2890,
4672,
9163,
2459,
3452,
3159,
777,
434,
326,
501,
9475,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
5864,
12,
2890,
4672,
9163,
2459,
3452,
3159,
777,
434,
326,
501,
9475,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 kind == "string":
|
if kind.startswith("string"):
|
def _length (self, kind, data): # Calculate the size of the data to read in the file if kind == "string": replace = "" for i in data: # except: Too lazy to handle the '\r' and co otherwise try: replace += chr(i) except: replace+='*' # This is for "\0" replace = replace.replace('*\0','*') # This is for two "\" replace = replace.replace('\\\\','*') # This is for the remaining "\{whatever}" replace = replace.replace('\\','') length = len(replace) else: length = self.data_size[kind] return length
|
fa8a059590f5621889e8f0481dc5d1c6f0c2d5c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/fa8a059590f5621889e8f0481dc5d1c6f0c2d5c8/magic.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2469,
261,
2890,
16,
3846,
16,
501,
4672,
468,
9029,
326,
963,
434,
326,
501,
358,
855,
316,
326,
585,
309,
3846,
18,
17514,
1918,
2932,
1080,
6,
4672,
1453,
273,
1408,
364,
277,
316,
501,
30,
468,
1335,
30,
15869,
7962,
358,
1640,
326,
2337,
86,
11,
471,
1825,
3541,
775,
30,
1453,
1011,
4513,
12,
77,
13,
1335,
30,
1453,
15,
2218,
4035,
468,
1220,
353,
364,
1548,
20,
6,
1453,
273,
1453,
18,
2079,
2668,
12174,
20,
17023,
4035,
13,
468,
1220,
353,
364,
2795,
7023,
1453,
273,
1453,
18,
2079,
2668,
13011,
17023,
4035,
13,
468,
1220,
353,
364,
326,
4463,
1548,
95,
3350,
14299,
1532,
1453,
273,
1453,
18,
2079,
2668,
1695,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2469,
261,
2890,
16,
3846,
16,
501,
4672,
468,
9029,
326,
963,
434,
326,
501,
358,
855,
316,
326,
585,
309,
3846,
18,
17514,
1918,
2932,
1080,
6,
4672,
1453,
273,
1408,
364,
277,
316,
501,
30,
468,
1335,
30,
15869,
7962,
358,
1640,
326,
2337,
86,
11,
471,
1825,
3541,
775,
30,
1453,
1011,
4513,
12,
77,
13,
1335,
30,
1453,
15,
2218,
4035,
468,
1220,
353,
364,
1548,
20,
6,
1453,
273,
1453,
18,
2079,
2668,
12174,
20,
17023,
4035,
13,
468,
1220,
353,
364,
2795,
7023,
1453,
273,
1453,
18,
2079,
2668,
13011,
17023,
4035,
13,
468,
1220,
353,
364,
326,
4463,
1548,
95,
3350,
14299,
1532,
1453,
273,
1453,
18,
2079,
2668,
1695,
2
] |
if tempCart.numItems == 0:
|
if tempCart.numItems == 0 and not order.is_partially_paid:
|
def confirm_info(request): payment_module = config_get_group('PAYMENT_PAYPAL') try: order = Order.objects.from_request(request) except Order.DoesNotExist: url = lookup_url(payment_module, 'satchmo_checkout-step1') return HttpResponseRedirect(url) tempCart = Cart.objects.from_request(request) if tempCart.numItems == 0: template = lookup_template(payment_module, 'shop/checkout/empty_cart.html') return render_to_response(template, context_instance=RequestContext(request)) # Check if the order is still valid if not order.validate(request): context = RequestContext(request, {'message': _('Your order is no longer valid.')}) return render_to_response('shop/404.html', context_instance=context) template = lookup_template(payment_module, 'shop/checkout/paypal/confirm.html') if payment_module.LIVE.value: log.debug("live order on %s", payment_module.KEY.value) url = payment_module.POST_URL.value account = payment_module.BUSINESS.value else: url = payment_module.POST_TEST_URL.value account = payment_module.BUSINESS_TEST.value try: address = lookup_url(payment_module, payment_module.RETURN_ADDRESS.value, include_server=True) except urlresolvers.NoReverseMatch: address = payment_module.RETURN_ADDRESS.value processor_module = payment_module.MODULE.load_module('processor') processor = processor_module.PaymentProcessor(payment_module) processor.create_pending_payment(order=order) default_view_tax = config_value('TAX', 'DEFAULT_VIEW_TAX') recurring = None order_items = order.orderitem_set.all() for item in order_items: if item.product.is_subscription: recurring = {'product':item.product, 'price':item.product.price_set.all()[0].price.quantize(Decimal('.01')),} trial0 = recurring['product'].subscriptionproduct.get_trial_terms(0) if len(order_items) > 1 or trial0 is not None or recurring['price'] < order.balance: recurring['trial1'] = {'price': order.balance,} if trial0 is not None: recurring['trial1']['expire_length'] = trial0.expire_length recurring['trial1']['expire_unit'] = trial0.expire_unit[0] # else: # recurring['trial1']['expire_length'] = recurring['product'].subscriptionproduct.get_trial_terms(0).expire_length trial1 = recurring['product'].subscriptionproduct.get_trial_terms(1) if trial1 is not None: recurring['trial2']['expire_length'] = trial1.expire_length recurring['trial2']['expire_unit'] = trial1.expire_unit[0] recurring['trial2']['price'] = trial1.price ctx = RequestContext(request, {'order': order, 'post_url': url, 'default_view_tax': default_view_tax, 'business': account, 'currency_code': payment_module.CURRENCY_CODE.value, 'return_address': address, 'invoice': order.id, 'subscription': recurring, 'PAYMENT_LIVE' : payment_live(payment_module) }) return render_to_response(template, context_instance=ctx)
|
4027228241406bfb7c0c8af76cfdd94068ac3dc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13656/4027228241406bfb7c0c8af76cfdd94068ac3dc2/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
67,
1376,
12,
2293,
4672,
5184,
67,
2978,
273,
642,
67,
588,
67,
1655,
2668,
16436,
67,
30094,
6134,
225,
775,
30,
1353,
273,
4347,
18,
6911,
18,
2080,
67,
2293,
12,
2293,
13,
1335,
4347,
18,
15264,
30,
880,
273,
3689,
67,
718,
12,
9261,
67,
2978,
16,
296,
87,
505,
8683,
67,
17300,
17,
4119,
21,
6134,
327,
31780,
12,
718,
13,
225,
1906,
13006,
273,
17695,
18,
6911,
18,
2080,
67,
2293,
12,
2293,
13,
309,
1906,
13006,
18,
2107,
3126,
422,
374,
471,
486,
1353,
18,
291,
67,
2680,
6261,
67,
29434,
30,
1542,
273,
3689,
67,
3202,
12,
9261,
67,
2978,
16,
296,
5020,
19,
17300,
19,
5531,
67,
11848,
18,
2620,
6134,
327,
1743,
67,
869,
67,
2740,
12,
3202,
16,
819,
67,
1336,
33,
21426,
12,
2293,
3719,
225,
468,
2073,
309,
326,
1353,
353,
4859,
923,
309,
486,
1353,
18,
5662,
12,
2293,
4672,
819,
273,
20479,
12,
2293,
16,
13666,
2150,
4278,
389,
2668,
15446,
1353,
353,
1158,
7144,
923,
1093,
13,
6792,
327,
1743,
67,
869,
67,
2740,
2668,
5020,
19,
11746,
18,
2620,
2187,
819,
67,
1336,
33,
2472,
13,
225,
1542,
273,
3689,
67,
3202,
12,
9261,
67,
2978,
16,
296,
5020,
19,
17300,
19,
31336,
19,
10927,
18,
2620,
6134,
309,
5184,
67,
2978,
18,
2053,
3412,
18,
1132,
30,
613,
18,
4148,
2932,
16472,
1353,
603,
738,
87,
3113,
5184,
67,
2978,
18,
3297,
18,
1132,
13,
880,
273,
5184,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
67,
1376,
12,
2293,
4672,
5184,
67,
2978,
273,
642,
67,
588,
67,
1655,
2668,
16436,
67,
30094,
6134,
225,
775,
30,
1353,
273,
4347,
18,
6911,
18,
2080,
67,
2293,
12,
2293,
13,
1335,
4347,
18,
15264,
30,
880,
273,
3689,
67,
718,
12,
9261,
67,
2978,
16,
296,
87,
505,
8683,
67,
17300,
17,
4119,
21,
6134,
327,
31780,
12,
718,
13,
225,
1906,
13006,
273,
17695,
18,
6911,
18,
2080,
67,
2293,
12,
2293,
13,
309,
1906,
13006,
18,
2107,
3126,
422,
374,
471,
486,
1353,
18,
291,
67,
2680,
6261,
67,
29434,
30,
1542,
273,
3689,
67,
3202,
12,
9261,
67,
2978,
16,
296,
5020,
19,
17300,
19,
5531,
67,
11848,
18,
2620,
2
] |
if line[-2:] == CRLF: line = line[:-2] elif line[-1:] in CRLF: line = line[:-1]
|
if line[-2:] == CRLF: line = line[:-2] elif line[-1:] in CRLF: line = line[:-1]
|
def getline(self): """Internal: return one line from the server, stripping CRLF. Raise EOFError if the connection is closed.""" line = self.file.readline() if self.debugging > 1: print('*get*', repr(line)) if not line: raise EOFError if line[-2:] == CRLF: line = line[:-2] elif line[-1:] in CRLF: line = line[:-1] return line
|
933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1369,
12,
2890,
4672,
3536,
3061,
30,
327,
1245,
980,
628,
326,
1438,
16,
2569,
1382,
21791,
18,
20539,
6431,
668,
309,
326,
1459,
353,
4375,
12123,
980,
273,
365,
18,
768,
18,
896,
1369,
1435,
309,
365,
18,
4148,
1998,
405,
404,
30,
1172,
2668,
14,
588,
14,
2187,
8480,
12,
1369,
3719,
309,
486,
980,
30,
1002,
6431,
668,
309,
980,
18919,
22,
26894,
422,
21791,
30,
980,
273,
980,
10531,
17,
22,
65,
1327,
980,
18919,
21,
26894,
316,
21791,
30,
980,
273,
980,
10531,
17,
21,
65,
327,
980,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1369,
12,
2890,
4672,
3536,
3061,
30,
327,
1245,
980,
628,
326,
1438,
16,
2569,
1382,
21791,
18,
20539,
6431,
668,
309,
326,
1459,
353,
4375,
12123,
980,
273,
365,
18,
768,
18,
896,
1369,
1435,
309,
365,
18,
4148,
1998,
405,
404,
30,
1172,
2668,
14,
588,
14,
2187,
8480,
12,
1369,
3719,
309,
486,
980,
30,
1002,
6431,
668,
309,
980,
18919,
22,
26894,
422,
21791,
30,
980,
273,
980,
10531,
17,
22,
65,
1327,
980,
18919,
21,
26894,
316,
21791,
30,
980,
273,
980,
10531,
17,
21,
65,
327,
980,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'DEF'
|
def get(self, section, option): ''' Reads string value from configuration, if it is not found, it tries to apply defaults, if even this fails, exception is raised. ''' try: return self._config.get(section, option) except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): print 'DEF' if not self._defaults.has_key(section): raise if not self._defaults[section].has_key(option): raise return self._defaults[section][option]
|
89b1fae00c953f577a7f1a715942e572a31669e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1527/89b1fae00c953f577a7f1a715942e572a31669e7/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2442,
16,
1456,
4672,
9163,
29185,
533,
460,
628,
1664,
16,
309,
518,
353,
486,
1392,
16,
518,
9327,
358,
2230,
3467,
16,
309,
5456,
333,
6684,
16,
1520,
353,
11531,
18,
9163,
775,
30,
327,
365,
6315,
1425,
18,
588,
12,
3464,
16,
1456,
13,
1335,
261,
809,
2678,
18,
2279,
1895,
668,
16,
25076,
18,
2279,
5285,
668,
4672,
309,
486,
365,
6315,
7606,
18,
5332,
67,
856,
12,
3464,
4672,
1002,
309,
486,
365,
6315,
7606,
63,
3464,
8009,
5332,
67,
856,
12,
3482,
4672,
1002,
327,
365,
6315,
7606,
63,
3464,
6362,
3482,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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672,
9163,
29185,
533,
460,
628,
1664,
16,
309,
518,
353,
486,
1392,
16,
518,
9327,
358,
2230,
3467,
16,
309,
5456,
333,
6684,
16,
1520,
353,
11531,
18,
9163,
775,
30,
327,
365,
6315,
1425,
18,
588,
12,
3464,
16,
1456,
13,
1335,
261,
809,
2678,
18,
2279,
1895,
668,
16,
25076,
18,
2279,
5285,
668,
4672,
309,
486,
365,
6315,
7606,
18,
5332,
67,
856,
12,
3464,
4672,
1002,
309,
486,
365,
6315,
7606,
63,
3464,
8009,
5332,
67,
856,
12,
3482,
4672,
1002,
327,
365,
6315,
7606,
63,
3464,
6362,
3482,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
(head,tail)=os.path.split(self.__path) dirs=head.split('/') (fileBase,fileExt)=os.path.splitext(tail)
|
dirs=self._path.split('/') fileName=dirs.pop() fileParts=fileName.rsplit('.',1) fileExt=None if len(fileParts)>1: fileExt=fileParts[1] fileBase=fileParts[0]
|
def split(self): """ Splits the path into:
|
1296d23610e06f7e22a2cad3eb1db3a1e79af471 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2285/1296d23610e06f7e22a2cad3eb1db3a1e79af471/NativeUnixPath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
4672,
3536,
5385,
87,
326,
589,
1368,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
4672,
3536,
5385,
87,
326,
589,
1368,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
l = [v for v in l if v in Omega[i]]
|
li = [v for v in li if v in Omega[i]]
|
def search_tree(G, Pi, lab=True, dig=False, dict=False, proof=False, verbosity=0): """ Assumes that the vertex set of G is {0,1,...,n-1} for some n. Note that this conflicts with the SymmetricGroup we are using to represent automorphisms. The solution is to let the group act on the set {1,2,...,n}, under the assumption n = 0. INPUT: lab -- if True, return the canonical label in addition to the auto- morphism group. dig -- if True, does not use Lemma 2.25 in [1], and the algorithm is valid for digraphs and graphs with loops. dict -- if True, explain which vertices are which elements of the set {1,2,...,n} in the representation of the automorphism group. proof -- if True, return the automorphism between G and its canonical label. Forces lab=True. STATE DIAGRAM: sage: SD = DiGraph( { 1:[18,2], 2:[5,3], 3:[4,6], 4:[7,2], 5:[4], 6:[13,12], 7:[18,8,10], 8:[6,9,10], 9:[6], 10:[11,13], 11:[12], 12:[13], 13:[17,14], 14:[16,15], 15:[2], 16:[13], 17:[15,13], 18:[13] } ) sage: SD.set_arc_label(1, 18, 'discrete') sage: SD.set_arc_label(4, 7, 'discrete') sage: SD.set_arc_label(2, 5, 'h = 0') sage: SD.set_arc_label(7, 18, 'h = 0') sage: SD.set_arc_label(7, 10, 'aut') sage: SD.set_arc_label(8, 10, 'aut') sage: SD.set_arc_label(8, 9, 'label') sage: SD.set_arc_label(8, 6, 'no label') sage: SD.set_arc_label(13, 17, 'k > h') sage: SD.set_arc_label(13, 14, 'k = h') sage: SD.set_arc_label(17, 15, 'v_k finite') sage: SD.set_arc_label(14, 15, 'v_k m.c.r.') sage: posn = {1:[ 3,-3], 2:[0,2], 3:[0, 13], 4:[3,9], 5:[3,3], 6:[16, 13], 7:[6,1], 8:[6,6], 9:[6,11], 10:[9,1], 11:[10,6], 12:[13,6], 13:[16,2], 14:[10,-6], 15:[0,-10], 16:[14,-6], 17:[16,-10], 18:[6,-4]} sage: SD.plot(pos=posn, node_size=400, color_dict={'#FFFFFF':range(1,19)}, edge_labels=True).save('search_tree.png') EXAMPLES: sage: from sage.groups.perm_gps.permgroup import PermutationGroup sage: import sage.graphs.graph_isom sage: from sage.graphs.graph_isom import search_tree, perm_group_elt sage: from sage.graphs.graph import enum sage: G = graphs.DodecahedralGraph() sage: Pi=[range(20)] sage: a,b = search_tree(G, Pi) sage: print a, enum(b) [[0, 19, 3, 2, 6, 5, 4, 17, 18, 11, 10, 9, 13, 12, 16, 15, 14, 7, 8, 1], [0, 1, 8, 9, 13, 14, 7, 6, 2, 3, 19, 18, 17, 4, 5, 15, 16, 12, 11, 10], [0, 19, 18, 11, 12, 16, 17, 4, 3, 2, 1, 8, 7, 6, 5, 15, 14, 13, 9, 10], [1, 8, 9, 10, 11, 12, 13, 14, 7, 6, 2, 3, 4, 5, 15, 16, 17, 18, 19, 0]] 17318942212009113839976787462421724338461987195898671092180383421848885858584973127639899792828728124797968735273000 sage: c = search_tree(G, Pi, lab=False) sage: print c [[0, 19, 3, 2, 6, 5, 4, 17, 18, 11, 10, 9, 13, 12, 16, 15, 14, 7, 8, 1], [0, 1, 8, 9, 13, 14, 7, 6, 2, 3, 19, 18, 17, 4, 5, 15, 16, 12, 11, 10], [0, 19, 18, 11, 12, 16, 17, 4, 3, 2, 1, 8, 7, 6, 5, 15, 14, 13, 9, 10], [1, 8, 9, 10, 11, 12, 13, 14, 7, 6, 2, 3, 4, 5, 15, 16, 17, 18, 19, 0]] sage: DodecAut = PermutationGroup([perm_group_elt(aa) for aa in a]) sage: DodecAut.character_table() [ 1 1 1 1 1 1 1 1 1 1] [ 1 -1 1 1 -1 1 -1 1 -1 -1] [ 3 -1 0 -1 zeta5^3 + zeta5^2 + 1 -zeta5^3 - zeta5^2 0 zeta5^3 + zeta5^2 + 1 -zeta5^3 - zeta5^2 3] [ 3 -1 0 -1 -zeta5^3 - zeta5^2 zeta5^3 + zeta5^2 + 1 0 -zeta5^3 - zeta5^2 zeta5^3 + zeta5^2 + 1 3] [ 3 1 0 -1 -zeta5^3 - zeta5^2 - 1 -zeta5^3 - zeta5^2 0 zeta5^3 + zeta5^2 + 1 zeta5^3 + zeta5^2 -3] [ 3 1 0 -1 zeta5^3 + zeta5^2 zeta5^3 + zeta5^2 + 1 0 -zeta5^3 - zeta5^2 -zeta5^3 - zeta5^2 - 1 -3] [ 4 0 1 0 -1 -1 1 -1 -1 4] [ 4 0 1 0 1 -1 -1 -1 1 -4] [ 5 1 -1 1 0 0 -1 0 0 5] [ 5 -1 -1 1 0 0 1 0 0 -5] sage: DodecAut2 = PermutationGroup([perm_group_elt(cc) for cc in c]) sage: DodecAut2.character_table() [ 1 1 1 1 1 1 1 1 1 1] [ 1 -1 1 1 -1 1 -1 1 -1 -1] [ 3 -1 0 -1 zeta5^3 + zeta5^2 + 1 -zeta5^3 - zeta5^2 0 zeta5^3 + zeta5^2 + 1 -zeta5^3 - zeta5^2 3] [ 3 -1 0 -1 -zeta5^3 - zeta5^2 zeta5^3 + zeta5^2 + 1 0 -zeta5^3 - zeta5^2 zeta5^3 + zeta5^2 + 1 3] [ 3 1 0 -1 -zeta5^3 - zeta5^2 - 1 -zeta5^3 - zeta5^2 0 zeta5^3 + zeta5^2 + 1 zeta5^3 + zeta5^2 -3] [ 3 1 0 -1 zeta5^3 + zeta5^2 zeta5^3 + zeta5^2 + 1 0 -zeta5^3 - zeta5^2 -zeta5^3 - zeta5^2 - 1 -3] [ 4 0 1 0 -1 -1 1 -1 -1 4] [ 4 0 1 0 1 -1 -1 -1 1 -4] [ 5 1 -1 1 0 0 -1 0 0 5] [ 5 -1 -1 1 0 0 1 0 0 -5] sage: G = graphs.PetersenGraph() sage: Pi=[range(10)] sage: a,b = search_tree(G, Pi) sage: print a, enum(b) [[0, 1, 2, 7, 5, 4, 6, 3, 9, 8], [0, 1, 6, 8, 5, 4, 2, 9, 3, 7], [0, 4, 3, 8, 5, 1, 9, 2, 6, 7], [1, 0, 4, 9, 6, 2, 5, 3, 7, 8]] 8716441511243809436161868448 sage: c = search_tree(G, Pi, lab=False) sage: PAut = PermutationGroup([perm_group_elt(aa) for aa in a]) sage: PAut.character_table() [ 1 1 1 1 1 1 1] [ 1 -1 1 -1 1 -1 1] [ 4 -2 0 1 1 0 -1] [ 4 2 0 -1 1 0 -1] [ 5 1 1 1 -1 -1 0] [ 5 -1 1 -1 -1 1 0] [ 6 0 -2 0 0 0 1] sage: PAut = PermutationGroup([perm_group_elt(cc) for cc in c]) sage: PAut.character_table() [ 1 1 1 1 1 1 1] [ 1 -1 1 -1 1 -1 1] [ 4 -2 0 1 1 0 -1] [ 4 2 0 -1 1 0 -1] [ 5 1 1 1 -1 -1 0] [ 5 -1 1 -1 -1 1 0] [ 6 0 -2 0 0 0 1] sage: G = graphs.CubeGraph(3) sage: Pi = [] sage: for i in range(8): ... b = Integer(i).binary() ... Pi.append(b.zfill(3)) ... sage: Pi = [Pi] sage: a,b = search_tree(G, Pi) sage: print a, enum(b) [[0, 3, 2, 1, 6, 5, 4, 7], [0, 1, 4, 5, 2, 3, 6, 7], [0, 3, 6, 5, 2, 1, 4, 7], [1, 0, 3, 2, 5, 4, 7, 6]] 520239721777506480 sage: c = search_tree(G, Pi, lab=False) sage: PermutationGroup([perm_group_elt(aa) for aa in a]).order() 48 sage: PermutationGroup([perm_group_elt(cc) for cc in c]).order() 48 sage: DodecAut.order() 120 sage: PAut.order() 120 sage: D = graphs.DodecahedralGraph() sage: a,b,c = search_tree(D, [range(20)], proof=True) sage: from sage.plot.plot import GraphicsArray sage: import networkx sage: position_D = networkx.spring_layout(D._nxg) sage: position_b = {} sage: for vert in position_D: ... position_b[c[vert]] = position_D[vert] sage.: GraphicsArray([D.plot(pos=position_D), b.plot(pos=position_b)]).show() sage: c {0: 0, 1: 19, 2: 16, 3: 15, 4: 9, 5: 1, 6: 10, 7: 8, 8: 14, 9: 12, 10: 17, 11: 11, 12: 5, 13: 6, 14: 2, 15: 4, 16: 3, 17: 7, 18: 13, 19: 18} BENCHMARKS: The following examples are given to check modifications to the algorithm for optimization-- use sage -t -long to check all the cases. sage: G = Graph({0:[]}) sage: Pi = [[0]] sage: a,b = search_tree(G, Pi) sage: print a, enum(b) [] 0 sage: a,b = search_tree(G, Pi, dig=True) sage: print a, enum(b) [] 0 sage: search_tree(G, Pi, lab=False) [] sage: from sage.graphs.graph_isom import all_labeled_graphs, all_ordered_partitions sage: graph2 = all_labeled_graphs(2) sage: part2 = all_ordered_partitions(range(2)) sage: for G in graph2: ... for Pi in part2: ... a,b = search_tree(G, Pi) ... c,d = search_tree(G, Pi, dig=True) ... e = search_tree(G, Pi, lab=False) ... a = str(a); b = str(enum(b)); c = str(c); d = str(enum(d)); e = str(e) ... print a.ljust(15), b.ljust(5), c.ljust(15), d.ljust(5), e.ljust(15) [] 0 [] 0 [] [] 0 [] 0 [] [[1, 0]] 0 [[1, 0]] 0 [[1, 0]] [[1, 0]] 0 [[1, 0]] 0 [[1, 0]] [] 6 [] 6 [] [] 6 [] 6 [] [[1, 0]] 6 [[1, 0]] 6 [[1, 0]] [[1, 0]] 6 [[1, 0]] 6 [[1, 0]] sage: graph3 = all_labeled_graphs(3) sage: part3 = all_ordered_partitions(range(3)) sage: for G in graph3: # long time (~30 secs) ... for Pi in part3: ... a,b = search_tree(G, Pi) ... c,d = search_tree(G, Pi, dig=True) ... e = search_tree(G, Pi, lab=False) ... a = str(a); b = str(enum(b)); c = str(c); d = str(enum(d)); e = str(e) ... print a.ljust(15), b.ljust(5), c.ljust(15), d.ljust(5), e.ljust(15) [] 0 [] 0 [] [] 0 [] 0 [] [[0, 2, 1]] 0 [[0, 2, 1]] 0 [[0, 2, 1]] [[0, 2, 1]] 0 [[0, 2, 1]] 0 [[0, 2, 1]] [] 0 [] 0 [] [] 0 [] 0 [] [[2, 1, 0]] 0 [[2, 1, 0]] 0 [[2, 1, 0]] [[2, 1, 0]] 0 [[2, 1, 0]] 0 [[2, 1, 0]] [] 0 [] 0 [] [] 0 [] 0 [] [[1, 0, 2]] 0 [[1, 0, 2]] 0 [[1, 0, 2]] [[1, 0, 2]] 0 [[1, 0, 2]] 0 [[1, 0, 2]] [[1, 0, 2]] 0 [[1, 0, 2]] 0 [[1, 0, 2]] [[2, 1, 0]] 0 [[2, 1, 0]] 0 [[2, 1, 0]] [[1, 0, 2]] 0 [[1, 0, 2]] 0 [[1, 0, 2]] [[0, 2, 1]] 0 [[0, 2, 1]] 0 [[0, 2, 1]] [[2, 1, 0]] 0 [[2, 1, 0]] 0 [[2, 1, 0]] [[0, 2, 1]] 0 [[0, 2, 1]] 0 [[0, 2, 1]] [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] 0 [[0, 2, 1], [1, 0, 2]] [] 10 [] 10 [] [] 10 [] 10 [] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [] 68 [] 68 [] [] 160 [] 160 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 160 [] 160 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 10 [] 10 [] [] 10 [] 10 [] [] 10 [] 10 [] [[0, 2, 1]] 160 [[0, 2, 1]] 160 [[0, 2, 1]] [] 10 [] 10 [] [[0, 2, 1]] 160 [[0, 2, 1]] 160 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [[0, 2, 1]] 10 [[0, 2, 1]] 10 [[0, 2, 1]] [] 68 [] 68 [] [] 160 [] 160 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 10 [] 10 [] [] 10 [] 10 [] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [] 160 [] 160 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 10 [] 10 [] [[2, 1, 0]] 160 [[2, 1, 0]] 160 [[2, 1, 0]] [] 10 [] 10 [] [] 10 [] 10 [] [[2, 1, 0]] 160 [[2, 1, 0]] 160 [[2, 1, 0]] [] 10 [] 10 [] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [[2, 1, 0]] 10 [[2, 1, 0]] 10 [[2, 1, 0]] [] 78 [] 78 [] [] 170 [] 170 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 170 [] 170 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 228 [] 228 [] [] 228 [] 228 [] [[1, 0, 2]] 228 [[1, 0, 2]] 228 [[1, 0, 2]] [[1, 0, 2]] 228 [[1, 0, 2]] 228 [[1, 0, 2]] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [] 170 [] 170 [] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [] 170 [] 170 [] [] 170 [] 170 [] [] 170 [] 170 [] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [[1, 0, 2]] 78 [[1, 0, 2]] 78 [[1, 0, 2]] [] 160 [] 160 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 160 [] 160 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 68 [] 68 [] [] 10 [] 10 [] [] 10 [] 10 [] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 160 [[1, 0, 2]] 160 [[1, 0, 2]] [] 10 [] 10 [] [[1, 0, 2]] 160 [[1, 0, 2]] 160 [[1, 0, 2]] [] 10 [] 10 [] [] 10 [] 10 [] [] 10 [] 10 [] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [[1, 0, 2]] 10 [[1, 0, 2]] 10 [[1, 0, 2]] [] 170 [] 170 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 228 [] 228 [] [] 228 [] 228 [] [[2, 1, 0]] 228 [[2, 1, 0]] 228 [[2, 1, 0]] [[2, 1, 0]] 228 [[2, 1, 0]] 228 [[2, 1, 0]] [] 78 [] 78 [] [] 170 [] 170 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 170 [] 170 [] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [] 170 [] 170 [] [] 170 [] 170 [] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [] 170 [] 170 [] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [[2, 1, 0]] 78 [[2, 1, 0]] 78 [[2, 1, 0]] [] 228 [] 228 [] [] 228 [] 228 [] [[0, 2, 1]] 228 [[0, 2, 1]] 228 [[0, 2, 1]] [[0, 2, 1]] 228 [[0, 2, 1]] 228 [[0, 2, 1]] [] 170 [] 170 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 170 [] 170 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 78 [] 78 [] [] 170 [] 170 [] [] 170 [] 170 [] [] 170 [] 170 [] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [] 170 [] 170 [] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [[0, 2, 1]] 78 [[0, 2, 1]] 78 [[0, 2, 1]] [] 238 [] 238 [] [] 238 [] 238 [] [[0, 2, 1]] 238 [[0, 2, 1]] 238 [[0, 2, 1]] [[0, 2, 1]] 238 [[0, 2, 1]] 238 [[0, 2, 1]] [] 238 [] 238 [] [] 238 [] 238 [] [[2, 1, 0]] 238 [[2, 1, 0]] 238 [[2, 1, 0]] [[2, 1, 0]] 238 [[2, 1, 0]] 238 [[2, 1, 0]] [] 238 [] 238 [] [] 238 [] 238 [] [[1, 0, 2]] 238 [[1, 0, 2]] 238 [[1, 0, 2]] [[1, 0, 2]] 238 [[1, 0, 2]] 238 [[1, 0, 2]] [[1, 0, 2]] 238 [[1, 0, 2]] 238 [[1, 0, 2]] [[2, 1, 0]] 238 [[2, 1, 0]] 238 [[2, 1, 0]] [[1, 0, 2]] 238 [[1, 0, 2]] 238 [[1, 0, 2]] [[0, 2, 1]] 238 [[0, 2, 1]] 238 [[0, 2, 1]] [[2, 1, 0]] 238 [[2, 1, 0]] 238 [[2, 1, 0]] [[0, 2, 1]] 238 [[0, 2, 1]] 238 [[0, 2, 1]] [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] 238 [[0, 2, 1], [1, 0, 2]] sage: C = graphs.CubeGraph(1) sage: gens = search_tree(C, [C.vertices()], lab=False) sage: PermutationGroup([perm_group_elt(aa) for aa in gens]).order() 2 sage: C = graphs.CubeGraph(2) sage: gens = search_tree(C, [C.vertices()], lab=False) sage: PermutationGroup([perm_group_elt(aa) for aa in gens]).order() 8 sage: C = graphs.CubeGraph(3) sage: gens = search_tree(C, [C.vertices()], lab=False) sage: PermutationGroup([perm_group_elt(aa) for aa in gens]).order() 48 sage: C = graphs.CubeGraph(4) sage: gens = search_tree(C, [C.vertices()], lab=False) sage: PermutationGroup([perm_group_elt(aa) for aa in gens]).order() 384 sage: C = graphs.CubeGraph(5) sage: gens = search_tree(C, [C.vertices()], lab=False) # long time (~8 secs) sage: PermutationGroup([perm_group_elt(aa) for aa in gens]).order() # long time 3840 sage: C = graphs.CubeGraph(6) sage: gens = search_tree(C, [C.vertices()], lab=False) # long time (~50 secs) sage: PermutationGroup([perm_group_elt(aa) for aa in gens]).order() # long time 46080 """ from copy import copy from sage.rings.infinity import Infinity from sage.graphs.graph import enum n = G.order() Pi = copy(Pi) if n == 0: if lab: H = copy(G) if dict: ddd = {} if proof: dd = {} if dict: return [[]], ddd, H, dd else: return [[]], H, dd if lab and dict: return [[]], ddd, H elif lab: return [[]], H elif dict: return [[]], ddd else: return [[]] if proof: lab=True #create to and from mappings to relabel vertices listto = G.vertices() ffrom = {} for v in listto: ffrom[v] = listto.index(v) to = {} for i in range(len(listto)): to[i] = listto[i] G.relabel(ffrom) Pi2 = [] for cell in Pi: newcell = [] for c in cell: newcell.append(ffrom[c]) Pi2.append(newcell) Pi = Pi2 # create the boolean matrix M = [] for _ in range(n): M.append( [False]*n ) if isinstance(G, Graph): for i, j, l in G.edge_iterator(): M[i][j] = True M[j][i] = True elif isinstance(G, DiGraph): for i, j, l in G.arc_iterator(): M[i][j] = True #begin BDM's algorithm: L = 100 state = 1 W = {} v = {} Lambda = {} nu = {} eta = None rho = None Phi = {} Omega = {} e = {} zf = {} zb = {} output = [] k = None h = None hh = None hb = None hzb = None hzf = None qzb = None while not state is None: if verbosity > 1: print 'k: ' + str(k) print 'nu: ' + str(nu) print 'rho: ' + str(rho) if verbosity > 3: print 'e: ' + str(e) print 'hh: ' + str(hh) print 'hb: ' + str(hb) print 'h: ' + str(h) print 'eta: ' + str(eta) print 'zb: ' + str(zb) print 'hzb: ' + str(hzb) print 'hzf: ' + str(hzf) print 'qzb: ' + str(qzb) if state == 1: if verbosity > 0: print 'state: 1' size = 1 k = 1 h = 0 hzb = 0 index = 0 l = 0 Theta = [[i] for i in range(n)] nu[1] = refine(M, Pi, Pi, bool_matrix_format=True) hh = 2 if not dig: if sat225(nu[1], n): hh = 1 if is_discrete(nu[1]): state = 18 else: W[1] = first_smallest_non_trivial(nu[1]) v[1] = min(W[1]) Lambda[1] = 0 e[1] = 0 state = 2 elif state == 2: if verbosity > 0: print 'state: 2' k += 1 nu[k] = perp(M, nu[k-1], v[k-1], bool_matrix_format=True) Lambda[k] = indicator(M, Pi, nu.values(), k, bool_matrix_format=True) if h == 0: state = 5 else: if hzf == k-1 and Lambda[k] == zf[k]: hzf = k if not lab: state = 3 else: qzb = Lambda[k] - zb[k] if hzb == k-1 and qzb == 0: hzb = k if qzb > 0: zb[k] = Lambda[k] state = 3 elif state == 3: if verbosity > 0: print 'state: 3' if hzf <= k or (lab and qzb >= 0): state = 4 ##changed hzb to hzf, == to <= else: state = 6 elif state == 4: if verbosity > 0: print 'state: 4' if is_discrete(nu[k]): state = 7 else: W[k] = first_smallest_non_trivial(nu[k]) v[k] = min(W[k]) if dig or not sat225(nu[k], n): hh = k+1 e[k] = 0 state = 2 elif state == 5: if verbosity > 0: print 'state: 5' zf[k] = Lambda[k] zb[k] = Lambda[k] state = 4 elif state == 6: if verbosity > 0: print 'state: 6' kprime = k k = min([ hh-1, max(ht-1,hzb) ]) if k == 0: k = 1 # not in BDM, broke at G = Graph({0:[], 1:[]}), Pi = [[0,1]], lab=False if kprime == hh: state = 13 else: l = min([l+1,L]) Lambda[l] = min_cell_reps(nu[hh]) Phi[l] = fix(nu[hh]) state = 12 elif state == 7: if verbosity > 0: print 'state: 7' if h == 0: state = 18 elif k < hzf: state = 8 ## BDM had !=, broke at G = Graph({0:[],1:[],2:[]}), Pi = [[0,1,2]] else: gamma = get_permutation(eta.values(), nu.values(), list_perm=True) if verbosity > 2: print gamma if enum(G, quick=True) == G.relabel(gamma, inplace=False, quick=True): # if G^gamma == G: state = 10 else: state = 8 elif state == 8: if verbosity > 0: print 'state: 8' if (not lab) or (qzb < 0): state = 6 elif (qzb > 0) or (k < len(rho)): state = 9 elif (term_pnest_graph(G, nu.values(), enumer=True) > term_pnest_graph(G, rho.values(), enumer=True)): state = 9 elif (term_pnest_graph(G, nu.values(), enumer=True) < term_pnest_graph(G, rho.values(), enumer=True)): state = 6 else: gamma = get_permutation(nu.values(), rho.values(), list_perm=True) if verbosity > 2: print gamma state = 10 elif state == 9: if verbosity > 0: print 'state: 9' rho = copy(nu) qzb = 0 hb = k hzb = k zb[k+1] = Infinity state = 6 elif state == 10: if verbosity > 0: print 'state: 10' l = min([l+1,L]) Omega[l] = min_cell_reps(orbit_partition(gamma, list_perm=True)) Phi[l] = fix(orbit_partition(gamma, list_perm=True)) if finer( orbit_partition(gamma, list_perm=True), Theta ): state = 11 else: Theta = vee( orbit_partition(gamma, list_perm=True), Theta ) output.append(gamma) if tvc in min_cell_reps(Theta) and lab: ## added "and lab" state = 11 else: k = h state = 13 elif state == 11: if verbosity > 0: print 'state: 11' k = hb state = 12 elif state == 12: if verbosity > 0: print 'state: 12' if e[k] == 1: W[k] = [v for v in W[k] if v in Omega[l]] state = 13 elif state == 13: if verbosity > 0: print 'state: 13' if k == 0: state = None else: if k > h: state = 17 elif k == h: state = 14 else: h = k tvc = min(W[k]) tvh = tvc state = 14 elif state == 14: if verbosity > 0: print 'state: 14' for cell in Theta: if v[k] in cell: if tvh in cell: index += 1 else: break VVV = [vv for vv in W[k] if vv > v[k]] if len(VVV) != 0: v[k] = min(VVV) else: v[k] = Infinity if v[k] == Infinity: state = 16 elif v[k] not in min_cell_reps(Theta): state = 14 else: state = 15 elif state == 15: if verbosity > 0: print 'state: 15' hh = min(hh,k+1) hzf = min(hzf,k) if not lab or hb < k: state = 2 # changed hzb to hb else: hb = k # changed hzb to hb qzb = 0 state = 2 elif state == 16: if verbosity > 0: print 'state: 16' if len(W[k]) == index and ht == k+1: ht = k size = size*index index = 0 k -= 1 state = 13 elif state == 17: if verbosity > 0: print 'state: 17' if e[k] == 0: l = W[k] for i in range(1,l+1): boo = True for j in range(1,k): if v[j] not in Phi[i]: boo = False break if boo: l = [v for v in l if v in Omega[i]] W[k] = l e[k] = 1 VVV = [v for v in W[k] if v > v[k]] if len(VVV) != 0: v[k] = min(VVV) else: v[k] = Infinity if v[k] != Infinity: state = 15 k -= 1 state = 13 elif state == 18: if verbosity > 0: print 'state: 18' h = k ht = k hzf = k zf[k+1] = Infinity eta = copy(nu) k -= 1 if not lab: state = 13 else: rho = copy(nu) hzb = k ## BDM had k+1 hb = k ## BDM had k+1 zb[k+2] = Infinity qzb = 0 state = 13 if lab: H = term_pnest_graph(G, rho.values()) G.relabel(to) if dict: ddd = {} for v in G.vertices(): if ffrom[v] != 0: ddd[v] = ffrom[v] else: ddd[v] = n if proof: proofpart = rho.values()[-1] dd = {} for i in proofpart: dd[i[0]] = proofpart.index(i) if dict: return output, ddd, H, dd else: return output, H, dd if lab and dict: return output, ddd, H elif lab: return output, H elif dict: return output, ddd else: return output
|
27d71cb6938e9f53c1eef0fbe75a725e24d15db2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/27d71cb6938e9f53c1eef0fbe75a725e24d15db2/graph_isom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
3413,
12,
43,
16,
13380,
16,
11814,
33,
5510,
16,
3097,
33,
8381,
16,
2065,
33,
8381,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
25374,
716,
326,
5253,
444,
434,
611,
353,
288,
20,
16,
21,
16,
2777,
16,
82,
17,
21,
97,
364,
2690,
290,
18,
225,
3609,
716,
333,
14450,
598,
326,
10042,
6899,
1114,
732,
854,
1450,
358,
2406,
18472,
7657,
23749,
18,
1021,
6959,
353,
358,
2231,
326,
1041,
1328,
603,
326,
444,
288,
21,
16,
22,
16,
2777,
16,
82,
5779,
3613,
326,
24743,
290,
273,
374,
18,
225,
12943,
30,
11814,
1493,
309,
1053,
16,
327,
326,
7378,
1433,
316,
2719,
358,
326,
3656,
17,
14354,
6228,
1041,
18,
3097,
1493,
309,
1053,
16,
1552,
486,
999,
511,
27078,
576,
18,
2947,
316,
306,
21,
6487,
471,
326,
4886,
353,
923,
364,
3097,
1483,
87,
471,
19422,
598,
14075,
18,
2065,
1493,
309,
1053,
16,
19765,
1492,
6928,
854,
1492,
2186,
434,
326,
444,
288,
21,
16,
22,
16,
2777,
16,
82,
97,
316,
326,
4335,
434,
326,
18472,
7657,
6228,
1041,
18,
14601,
1493,
309,
1053,
16,
327,
326,
18472,
7657,
6228,
3086,
611,
471,
2097,
7378,
1433,
18,
2457,
764,
11814,
33,
5510,
18,
225,
7442,
3690,
1781,
54,
2192,
30,
272,
410,
30,
15951,
273,
12508,
4137,
12,
288,
404,
30,
63,
2643,
16,
22,
6487,
576,
30,
63,
25,
16,
23,
6487,
890,
30,
63,
24,
16,
26,
6487,
1059,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
3413,
12,
43,
16,
13380,
16,
11814,
33,
5510,
16,
3097,
33,
8381,
16,
2065,
33,
8381,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
25374,
716,
326,
5253,
444,
434,
611,
353,
288,
20,
16,
21,
16,
2777,
16,
82,
17,
21,
97,
364,
2690,
290,
18,
225,
3609,
716,
333,
14450,
598,
326,
10042,
6899,
1114,
732,
854,
1450,
358,
2406,
18472,
7657,
23749,
18,
1021,
6959,
353,
358,
2231,
326,
1041,
1328,
603,
326,
444,
288,
21,
16,
22,
16,
2777,
16,
82,
5779,
3613,
326,
24743,
290,
273,
374,
18,
225,
12943,
30,
11814,
1493,
309,
1053,
16,
327,
326,
7378,
1433,
316,
2719,
358,
326,
3656,
17,
14354,
6228,
2
] |
if os.path.exists(os.path.join(logpath, "mythburn.lck")): write("Lock File Exists - already running???")
|
fd = os.open(lckpath, os.O_WRONLY | os.O_CREAT | os.O_EXCL) try: os.write(fd, "%d\n" % os.getpid()) os.close(fd) except: os.remove(lckpath) raise except OSError, e: if e.errno == errno.EEXIST: write("Lock file exists -- already running???")
|
def usage(): write(""" -h/--help (Show this usage) -j/--jobfile file (use file as the job file) -l/--progresslog file (log file to output progress messages) """)
|
0fb805843dc74893ade451f26a5217f82be03367 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/0fb805843dc74893ade451f26a5217f82be03367/mythburn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1045,
2932,
3660,
300,
76,
19,
413,
5201,
9079,
261,
5706,
333,
4084,
13,
300,
78,
19,
413,
4688,
768,
585,
4202,
261,
1202,
585,
487,
326,
1719,
585,
13,
300,
80,
19,
413,
8298,
1330,
585,
282,
261,
1330,
585,
358,
876,
4007,
2743,
13,
225,
3536,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
4084,
13332,
1045,
2932,
3660,
300,
76,
19,
413,
5201,
9079,
261,
5706,
333,
4084,
13,
300,
78,
19,
413,
4688,
768,
585,
4202,
261,
1202,
585,
487,
326,
1719,
585,
13,
300,
80,
19,
413,
8298,
1330,
585,
282,
261,
1330,
585,
358,
876,
4007,
2743,
13,
225,
3536,
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
] |
self.hbox2.pack_start(self.welcome)
|
def __init__(self): self.builder = gtk.Builder() self.builder.add_from_file("wordgroupz.glade") self.window = self.builder.get_object("MainWindow") self.window.set_icon_from_file("/usr/share/pixmaps/wordgroupz.png") self.window.set_title("wordGroupz") self.builder.connect_signals(self) self.get_word = self.builder.get_object("get_word") self.get_group = gtk.combo_box_entry_new_text() self.get_group.set_tooltip_text("Enter a group for your word") self.details = self.builder.get_object("textview1") self.eventbox1 = self.builder.get_object('eventbox1') self.eventbox1.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#444444')) self.get_group.child.connect('key-press-event',self.item_list_changed) #self.vpan = self.builder.get_object("vpaned1") self.output_txtview = self.builder.get_object("textview2") #pango self.fontdesc = pango.FontDescription("Purisa 10") #self.output_txtview.modify_font(self.fontdesc) for x in wordz_db.list_groups(): self.get_group.append_text(x) self.table1 = self.builder.get_object("table1") self.get_group.show() self.table1.attach(self.get_group, 1,2,1,2)
|
7259fb520fc5151ef0818ac3852f8ec5fb9b5ce3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/7259fb520fc5151ef0818ac3852f8ec5fb9b5ce3/wordgroupz.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9574,
273,
22718,
18,
1263,
1435,
365,
18,
9574,
18,
1289,
67,
2080,
67,
768,
2932,
1095,
1655,
94,
18,
7043,
2486,
7923,
365,
18,
5668,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
6376,
3829,
7923,
365,
18,
5668,
18,
542,
67,
3950,
67,
2080,
67,
768,
2932,
19,
13640,
19,
14419,
19,
14861,
10711,
19,
1095,
1655,
94,
18,
6446,
7923,
365,
18,
5668,
18,
542,
67,
2649,
2932,
1095,
1114,
94,
7923,
365,
18,
9574,
18,
3612,
67,
29659,
12,
2890,
13,
365,
18,
588,
67,
1095,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
588,
67,
1095,
7923,
365,
18,
588,
67,
1655,
273,
22718,
18,
25053,
67,
2147,
67,
4099,
67,
2704,
67,
955,
1435,
365,
18,
588,
67,
1655,
18,
542,
67,
19798,
67,
955,
2932,
10237,
279,
1041,
364,
3433,
2076,
7923,
365,
18,
6395,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
955,
1945,
21,
7923,
365,
18,
2575,
2147,
21,
273,
365,
18,
9574,
18,
588,
67,
1612,
2668,
2575,
2147,
21,
6134,
365,
18,
2575,
2147,
21,
18,
17042,
67,
12370,
12,
4521,
79,
18,
7998,
67,
15480,
16,
22718,
18,
75,
2883,
18,
3266,
67,
2670,
2668,
7,
6334,
6334,
6334,
26112,
365,
18,
588,
67,
1655,
18,
3624,
18,
3612,
2668,
856,
17,
1028,
17,
2575,
2187,
2890,
18,
1726,
67,
1098,
67,
6703,
13,
468,
2890,
18,
90,
7355,
273,
365,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9574,
273,
22718,
18,
1263,
1435,
365,
18,
9574,
18,
1289,
67,
2080,
67,
768,
2932,
1095,
1655,
94,
18,
7043,
2486,
7923,
365,
18,
5668,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
6376,
3829,
7923,
365,
18,
5668,
18,
542,
67,
3950,
67,
2080,
67,
768,
2932,
19,
13640,
19,
14419,
19,
14861,
10711,
19,
1095,
1655,
94,
18,
6446,
7923,
365,
18,
5668,
18,
542,
67,
2649,
2932,
1095,
1114,
94,
7923,
365,
18,
9574,
18,
3612,
67,
29659,
12,
2890,
13,
365,
18,
588,
67,
1095,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
588,
67,
1095,
7923,
365,
18,
588,
67,
1655,
273,
2
] |
|
files = glob.glob(win32com.__gen_path__+ "\*.py") for file in files: name = os.path.splitext(os.path.split(file)[1])[0] if name[0] != '_': mod = _GetModule(name) print "%s - %s" % (mod.__doc__, name)
|
d = {} for clsid, (typelibCLSID, lcid, major, minor) in clsidToTypelib.items(): d[typelibCLSID, lcid, major, minor] = None for typelibCLSID, lcid, major, minor in d.keys(): mod = GetModuleForTypelib(typelibCLSID, lcid, major, minor) print "%s - %s" % (mod.__doc__, typelibCLSID)
|
def _Dump(): print "Cache is in directory", win32com.__gen_path__ files = glob.glob(win32com.__gen_path__+ "\*.py") for file in files: name = os.path.splitext(os.path.split(file)[1])[0] if name[0] != '_': mod = _GetModule(name) print "%s - %s" % (mod.__doc__, name)
|
4cf1af44a185253e6e304af6fd43329bfb1821c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/4cf1af44a185253e6e304af6fd43329bfb1821c5/gencache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10628,
13332,
1172,
315,
1649,
353,
316,
1867,
3113,
5657,
1578,
832,
16186,
4507,
67,
803,
972,
1390,
273,
4715,
18,
10581,
12,
8082,
1578,
832,
16186,
4507,
67,
803,
972,
15,
1548,
11146,
2074,
7923,
364,
585,
316,
1390,
30,
508,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
4939,
12,
768,
25146,
21,
5717,
63,
20,
65,
309,
508,
63,
20,
65,
480,
2070,
4278,
681,
273,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10628,
13332,
1172,
315,
1649,
353,
316,
1867,
3113,
5657,
1578,
832,
16186,
4507,
67,
803,
972,
1390,
273,
4715,
18,
10581,
12,
8082,
1578,
832,
16186,
4507,
67,
803,
972,
15,
1548,
11146,
2074,
7923,
364,
585,
316,
1390,
30,
508,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
4939,
12,
768,
25146,
21,
5717,
63,
20,
65,
309,
508,
63,
20,
65,
480,
2070,
4278,
681,
273,
389,
967,
3120,
12,
529,
13,
1172,
2213,
87,
300,
738,
87,
6,
738,
261,
1711,
16186,
2434,
972,
16,
508,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.filtered.add_suites(suites)
|
self.filtered.add_suites( [ long for long, short in suites ] )
|
def _filter_by_names(self, suites, tests): self.filtered.add_suites(suites) self.filtered.add_tests(tests) suites = self._filter_suite_names(suites) self.suites = [ suite for suite in self.suites if suite._filter_by_names(suites, tests) ] if suites == []: self.tests = [ test for test in self.tests if tests == [] or utils.matches_any(test.name, tests, ignore=['_']) ] else: self.tests = [] return len(self.suites) + len(self.tests) > 0
|
ec4e173743785708e87eff7e6a2e244a52e0b07b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/ec4e173743785708e87eff7e6a2e244a52e0b07b/model.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
67,
1637,
67,
1973,
12,
2890,
16,
27208,
16,
7434,
4672,
365,
18,
12071,
18,
1289,
67,
26560,
2997,
12,
306,
1525,
364,
1525,
16,
3025,
316,
27208,
308,
262,
365,
18,
12071,
18,
1289,
67,
16341,
12,
16341,
13,
27208,
273,
365,
6315,
2188,
67,
30676,
67,
1973,
12,
26560,
2997,
13,
365,
18,
26560,
2997,
273,
306,
11371,
364,
11371,
316,
365,
18,
26560,
2997,
309,
11371,
6315,
2188,
67,
1637,
67,
1973,
12,
26560,
2997,
16,
7434,
13,
308,
309,
27208,
422,
5378,
30,
365,
18,
16341,
273,
306,
1842,
364,
1842,
316,
365,
18,
16341,
309,
7434,
422,
5378,
578,
2990,
18,
8436,
67,
2273,
12,
3813,
18,
529,
16,
7434,
16,
2305,
33,
3292,
67,
19486,
308,
469,
30,
365,
18,
16341,
273,
5378,
327,
562,
12,
2890,
18,
26560,
2997,
13,
397,
562,
12,
2890,
18,
16341,
13,
405,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
67,
1637,
67,
1973,
12,
2890,
16,
27208,
16,
7434,
4672,
365,
18,
12071,
18,
1289,
67,
26560,
2997,
12,
306,
1525,
364,
1525,
16,
3025,
316,
27208,
308,
262,
365,
18,
12071,
18,
1289,
67,
16341,
12,
16341,
13,
27208,
273,
365,
6315,
2188,
67,
30676,
67,
1973,
12,
26560,
2997,
13,
365,
18,
26560,
2997,
273,
306,
11371,
364,
11371,
316,
365,
18,
26560,
2997,
309,
11371,
6315,
2188,
67,
1637,
67,
1973,
12,
26560,
2997,
16,
7434,
13,
308,
309,
27208,
422,
5378,
30,
365,
18,
16341,
273,
306,
1842,
364,
1842,
316,
365,
18,
16341,
309,
7434,
422,
5378,
578,
2990,
18,
8436,
67,
2273,
12,
3813,
18,
529,
16,
7434,
16,
2
] |
<!-- The above is a description of an error that occurred in a Python program. It is formatted for display in a Web browser because it appears that we are running in a CGI environment. In case you are viewing this message outside of a Web browser, here is the original error traceback:
|
<!-- The above is a description of an error in a Python program, formatted for a Web browser because the 'cgitb' module was enabled. In case you are not reading this in a Web browser, here is the original traceback:
|
def linereader(lnum=[lnum]): line = linecache.getline(file, lnum[0]) lnum[0] += 1 return line
|
83205972a2d027517ebedd827d1c19a5b0264c0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/83205972a2d027517ebedd827d1c19a5b0264c0a/cgitb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
264,
18105,
12,
80,
2107,
22850,
80,
2107,
65,
4672,
980,
273,
4739,
557,
807,
18,
588,
1369,
12,
768,
16,
328,
2107,
63,
20,
5717,
328,
2107,
63,
20,
65,
1011,
404,
327,
980,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
dependency_warning('p4python (>=07.3) not found. Perforce integration will not work.')
|
dependency_warning('p4python (>=07.3) not found. Perforce integration' ' will not work.')
|
def dependency_warning(string): sys.stderr.write('Warning: %s\n' % string) global warnings_found warnings_found += 1
|
5a768f9ed929f4d1f402e6fad79cffff383f2917 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/5a768f9ed929f4d1f402e6fad79cffff383f2917/manage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4904,
67,
8551,
12,
1080,
4672,
2589,
18,
11241,
18,
2626,
2668,
6210,
30,
738,
87,
64,
82,
11,
738,
533,
13,
2552,
5599,
67,
7015,
5599,
67,
7015,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4904,
67,
8551,
12,
1080,
4672,
2589,
18,
11241,
18,
2626,
2668,
6210,
30,
738,
87,
64,
82,
11,
738,
533,
13,
2552,
5599,
67,
7015,
5599,
67,
7015,
1011,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def trace_font (fontname, gf_file, metric, glyphs, encoding, magnification):
|
def trace_font (fontname, gf_file, metric, glyphs, encoding, magnification, fontinfo):
|
def trace_font (fontname, gf_file, metric, glyphs, encoding, magnification): t1os = [] font_bbox = (10000, 10000, -10000, -10000) progress (_ ("Tracing bitmaps... ")) eps_lines = [] # for single glyph testing. # glyphs = [] for a in glyphs: valid = metric.has_char (a) if not valid: continue valid = make_pbm (gf_file, 'char.pbm', a) if not valid: continue (w, h, xo, yo) = read_gf_dims (gf_file, a) if not verbose_p: sys.stderr.write ('[%d' % a) sys.stderr.flush () # this wants the id, not the filename. success = trace_one ("char.pbm", '%s-%d' % (gf_fontname, a)) if not success: sys.stderr.write ("(skipping character)]") sys.stderr.flush () continue if not verbose_p: sys.stderr.write (']') sys.stderr.flush () metric_width = metric.get_char (a).width tw = int (round (metric_width / metric.design_size * 1000)) (bbox, t1o) = path_to_type1_ops ("char.eps", (h, w, xo, yo), tw) if t1o == '': continue font_bbox = update_bbox_with_bbox (font_bbox, bbox) t1os.append ('/%s %s ' % (encoding[a], t1o)) progress ('\n') to_type1 (t1os, font_bbox, fontname, encoding, magnification)
|
dfdd47ac4957b0e437c434b79c7589ca35658d7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/dfdd47ac4957b0e437c434b79c7589ca35658d7b/mftrace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
5776,
261,
5776,
529,
16,
13828,
67,
768,
16,
3999,
16,
23404,
16,
2688,
16,
28160,
1480,
16,
3512,
1376,
4672,
268,
21,
538,
273,
5378,
3512,
67,
20737,
273,
261,
23899,
16,
12619,
16,
300,
23899,
16,
300,
23899,
13,
225,
4007,
261,
67,
7566,
3403,
9389,
87,
2777,
315,
3719,
225,
7785,
67,
3548,
273,
5378,
225,
468,
364,
2202,
9440,
7769,
18,
468,
23404,
273,
5378,
364,
279,
316,
23404,
30,
923,
273,
3999,
18,
5332,
67,
3001,
261,
69,
13,
309,
486,
923,
30,
1324,
225,
923,
273,
1221,
67,
5733,
81,
261,
75,
74,
67,
768,
16,
296,
3001,
18,
5733,
81,
2187,
279,
13,
309,
486,
923,
30,
1324,
225,
261,
91,
16,
366,
16,
619,
83,
16,
677,
83,
13,
273,
855,
67,
75,
74,
67,
8550,
261,
75,
74,
67,
768,
16,
279,
13,
225,
309,
486,
3988,
67,
84,
30,
2589,
18,
11241,
18,
2626,
7707,
14451,
72,
11,
738,
279,
13,
2589,
18,
11241,
18,
11330,
1832,
225,
468,
333,
14805,
326,
612,
16,
486,
326,
1544,
18,
2216,
273,
2606,
67,
476,
7566,
3001,
18,
5733,
81,
3113,
1995,
87,
6456,
72,
11,
738,
261,
75,
74,
67,
5776,
529,
16,
279,
3719,
309,
486,
2216,
30,
2589,
18,
11241,
18,
2626,
7566,
12,
7457,
1382,
3351,
13,
4279,
13,
2589,
18,
11241,
18,
11330,
1832,
1324,
225,
309,
486,
3988,
67,
84,
30,
2589,
18,
11241,
18,
2626,
261,
3546,
6134,
2589,
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,
2606,
67,
5776,
261,
5776,
529,
16,
13828,
67,
768,
16,
3999,
16,
23404,
16,
2688,
16,
28160,
1480,
16,
3512,
1376,
4672,
268,
21,
538,
273,
5378,
3512,
67,
20737,
273,
261,
23899,
16,
12619,
16,
300,
23899,
16,
300,
23899,
13,
225,
4007,
261,
67,
7566,
3403,
9389,
87,
2777,
315,
3719,
225,
7785,
67,
3548,
273,
5378,
225,
468,
364,
2202,
9440,
7769,
18,
468,
23404,
273,
5378,
364,
279,
316,
23404,
30,
923,
273,
3999,
18,
5332,
67,
3001,
261,
69,
13,
309,
486,
923,
30,
1324,
225,
923,
273,
1221,
67,
5733,
81,
261,
75,
74,
67,
768,
16,
296,
3001,
18,
5733,
81,
2187,
279,
13,
309,
486,
923,
30,
1324,
225,
2
] |
buildscript.execute(cmd, 'git', cwd = self.srcdir)
|
buildscript.execute(cmd, cwd=self.srcdir)
|
def _update_submodules(self, buildscript): if os.path.exists(os.path.join(self.srcdir, '.gitmodules')): cmd = ['git', 'submodule', 'init'] buildscript.execute(cmd, 'git', cwd = self.srcdir) cmd = ['git', 'submodule', 'update'] buildscript.execute(cmd, 'git', cwd = self.srcdir)
|
1a224b0a56aeaf262d7650245ef6abcabae0d850 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4596/1a224b0a56aeaf262d7650245ef6abcabae0d850/git.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
1717,
6400,
12,
2890,
16,
1361,
4263,
4672,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
4816,
1214,
16,
2418,
6845,
6400,
26112,
30,
1797,
273,
10228,
6845,
2187,
296,
1717,
2978,
2187,
296,
2738,
3546,
1361,
4263,
18,
8837,
12,
4172,
16,
7239,
33,
2890,
18,
4816,
1214,
13,
1797,
273,
10228,
6845,
2187,
296,
1717,
2978,
2187,
296,
2725,
3546,
1361,
4263,
18,
8837,
12,
4172,
16,
296,
6845,
2187,
7239,
273,
365,
18,
4816,
1214,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
1717,
6400,
12,
2890,
16,
1361,
4263,
4672,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
4816,
1214,
16,
2418,
6845,
6400,
26112,
30,
1797,
273,
10228,
6845,
2187,
296,
1717,
2978,
2187,
296,
2738,
3546,
1361,
4263,
18,
8837,
12,
4172,
16,
7239,
33,
2890,
18,
4816,
1214,
13,
1797,
273,
10228,
6845,
2187,
296,
1717,
2978,
2187,
296,
2725,
3546,
1361,
4263,
18,
8837,
12,
4172,
16,
296,
6845,
2187,
7239,
273,
365,
18,
4816,
1214,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
yield file
|
yield file
|
def list_files(self): dir = os.path.expanduser("~/.Trash") for file in FileUtilities.children_in_directory(dir, False): yield file # fixme http://www.ramendik.ru/docs/trashspec.html # http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html # GNOME 2.22, Fedora 9 ~/.local/share/Trash dir = os.path.expanduser("~/.local/share/Trash") for file in FileUtilities.children_in_directory(dir, False): yield file
|
ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
1577,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
15865,
29420,
7923,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
12,
1214,
16,
1083,
4672,
2824,
585,
468,
2917,
3501,
1062,
2207,
5591,
18,
1940,
409,
1766,
18,
8653,
19,
8532,
19,
28665,
2793,
18,
2620,
468,
1062,
2207,
10005,
87,
18,
74,
15656,
281,
11869,
18,
3341,
19,
31722,
17,
2793,
19,
31722,
17,
2793,
17,
20,
18,
26,
18,
2620,
468,
611,
3417,
958,
576,
18,
3787,
16,
27278,
2468,
4871,
15865,
3729,
19,
14419,
19,
29420,
1577,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
15865,
3729,
19,
14419,
19,
29420,
7923,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
12,
1214,
16,
1083,
4672,
2824,
585,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
666,
67,
2354,
12,
2890,
4672,
1577,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
15865,
29420,
7923,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
12,
1214,
16,
1083,
4672,
2824,
585,
468,
2917,
3501,
1062,
2207,
5591,
18,
1940,
409,
1766,
18,
8653,
19,
8532,
19,
28665,
2793,
18,
2620,
468,
1062,
2207,
10005,
87,
18,
74,
15656,
281,
11869,
18,
3341,
19,
31722,
17,
2793,
19,
31722,
17,
2793,
17,
20,
18,
26,
18,
2620,
468,
611,
3417,
958,
576,
18,
3787,
16,
27278,
2468,
4871,
15865,
3729,
19,
14419,
19,
29420,
1577,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
15865,
3729,
19,
14419,
19,
29420,
7923,
364,
585,
2
] |
{1/6, 1/4, 1/3, 1/2, 1/9, 0, 1/18, 5/12, Infinity, 1/12, 2/3, 5/6}
|
{1/2, 0, 1/3, 1/12, 5/6, 5/12, 1/4, 1/18, 1/6, 1/9, 2/3, Infinity}
|
def cusps(self, algorithm='default'): r""" Return a set of inequivalent cusps for self, i.e. a set of representatives for the orbits of self on $\mathbf{P}^1(\mathbf{Q})$. These should be returned in a reduced form.
|
181eaebff8a9a061a54ebc750cb7d22f46db6243 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/181eaebff8a9a061a54ebc750cb7d22f46db6243/congroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27964,
1121,
12,
2890,
16,
4886,
2218,
1886,
11,
4672,
436,
8395,
2000,
279,
444,
434,
316,
14298,
6505,
27964,
1121,
364,
365,
16,
277,
18,
73,
18,
279,
444,
434,
2406,
8785,
364,
326,
578,
6789,
434,
365,
603,
271,
64,
15949,
17156,
95,
52,
97,
66,
21,
4713,
15949,
17156,
95,
53,
6792,
8,
18,
8646,
1410,
506,
2106,
316,
279,
13162,
646,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27964,
1121,
12,
2890,
16,
4886,
2218,
1886,
11,
4672,
436,
8395,
2000,
279,
444,
434,
316,
14298,
6505,
27964,
1121,
364,
365,
16,
277,
18,
73,
18,
279,
444,
434,
2406,
8785,
364,
326,
578,
6789,
434,
365,
603,
271,
64,
15949,
17156,
95,
52,
97,
66,
21,
4713,
15949,
17156,
95,
53,
6792,
8,
18,
8646,
1410,
506,
2106,
316,
279,
13162,
646,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return redirect_to_url(req, target, apache.HTTP_MOVED_PERMANENTLY)
|
return redirect_to_url(req, target)
|
def legacy_collection(self, req, form): """Collection URL backward compatibility handling.""" accepted_args = dict(legacy_collection_default_urlargd) accepted_args.update({'referer' : (str, ''), 'realm' : (str, '')}) argd = wash_urlargd(form, accepted_args)
|
6ef09d18d01e43349ecf59c457e1f4275e77be1b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/6ef09d18d01e43349ecf59c457e1f4275e77be1b/websearch_webinterface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8866,
67,
5548,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
2532,
1976,
12555,
8926,
5057,
12123,
8494,
67,
1968,
273,
2065,
12,
17386,
67,
5548,
67,
1886,
67,
718,
3175,
72,
13,
8494,
67,
1968,
18,
2725,
12590,
11,
28596,
11,
294,
261,
701,
16,
875,
3631,
296,
24056,
11,
294,
261,
701,
16,
28707,
6792,
1501,
72,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
8494,
67,
1968,
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,
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672,
3536,
2532,
1976,
12555,
8926,
5057,
12123,
8494,
67,
1968,
273,
2065,
12,
17386,
67,
5548,
67,
1886,
67,
718,
3175,
72,
13,
8494,
67,
1968,
18,
2725,
12590,
11,
28596,
11,
294,
261,
701,
16,
875,
3631,
296,
24056,
11,
294,
261,
701,
16,
28707,
6792,
1501,
72,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
8494,
67,
1968,
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
] |
ld t1, ds, [scale, index, base], disp
|
ld t1, ds, [1, t0, t7], disp
|
def macroop XOR_R_P
|
7cd92ac6ddc118e2e8a1d0ca9acca93165ec36d7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/7cd92ac6ddc118e2e8a1d0ca9acca93165ec36d7/logical.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
28086,
67,
54,
67,
52,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
28086,
67,
54,
67,
52,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
specCache = JobState.get('CacheDirLocation', None)
|
specCache = jobState.get('CacheDirLocation', None)
|
def submitJob(self, payload ): """ _createJob_
|
34a63c08a16b8ccd15b50b0efe392141d4cbdffd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/34a63c08a16b8ccd15b50b0efe392141d4cbdffd/JobSubmitterComponent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
2385,
262,
30,
3536,
389,
2640,
2278,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
2385,
262,
30,
3536,
389,
2640,
2278,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Valid commands: 'help', 'stats', 'start game', 'end game', 'renick'", target)
|
"Valid commands: 'help', 'stats', 'start game', 'end game', 'renick', 'del'", target)
|
def do_command(self, e, cmd, from_private): """This is the function called whenever someone sends a public or private message addressed to the bot. (e.g. "bot: blah"). Parse the CMD, execute it, then reply either to public channel or via /msg, based on how the command was received. E is the original event, and FROM_PRIVATE is the nick that sent the message."""
|
a19f1df6d00f5a74a0e7952aacc8c5b1a76102b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3953/a19f1df6d00f5a74a0e7952aacc8c5b1a76102b0/wolfbot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3076,
12,
2890,
16,
425,
16,
1797,
16,
628,
67,
1152,
4672,
3536,
2503,
353,
326,
445,
2566,
17334,
18626,
9573,
279,
1071,
578,
3238,
883,
527,
4638,
358,
326,
2512,
18,
261,
73,
18,
75,
18,
315,
4819,
30,
2811,
9795,
20387,
225,
2884,
326,
18052,
16,
1836,
518,
16,
1508,
4332,
3344,
358,
1071,
1904,
578,
3970,
342,
3576,
16,
2511,
603,
3661,
326,
1296,
1703,
5079,
18,
225,
512,
353,
326,
2282,
871,
16,
471,
4571,
67,
20055,
353,
326,
10909,
716,
3271,
326,
883,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
67,
3076,
12,
2890,
16,
425,
16,
1797,
16,
628,
67,
1152,
4672,
3536,
2503,
353,
326,
445,
2566,
17334,
18626,
9573,
279,
1071,
578,
3238,
883,
527,
4638,
358,
326,
2512,
18,
261,
73,
18,
75,
18,
315,
4819,
30,
2811,
9795,
20387,
225,
2884,
326,
18052,
16,
1836,
518,
16,
1508,
4332,
3344,
358,
1071,
1904,
578,
3970,
342,
3576,
16,
2511,
603,
3661,
326,
1296,
1703,
5079,
18,
225,
512,
353,
326,
2282,
871,
16,
471,
4571,
67,
20055,
353,
326,
10909,
716,
3271,
326,
883,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getattr(self.distribution,'dist_files',[]).append( ('bdist_wininst', pyversion, installer_name) )
|
bad = ('bdist_wininst','any',installer_name) if bad in dist_files: dist_files.remove(bad) else: installer_name = os.path.join(self.dist_dir, "%s.win32.exe" % fullname) pyversion = 'any' dist_files.append(('bdist_wininst', pyversion, installer_name))
|
def create_exe(self, arcname, fullname, bitmap=None):
|
f18b3474396aebdbd2d915ad37850e2a36b7cf70 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8186/f18b3474396aebdbd2d915ad37850e2a36b7cf70/bdist_wininst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
14880,
12,
2890,
16,
8028,
529,
16,
13321,
16,
9389,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
expected = 'def <tt>ghi</tt> jkl <tt>mno</tt> pqr'
|
expected = 'def <tt>ghi</tt> jkl <tt>mno</tt>'
|
raw = 'def {{{ghi}}} jkl {{{mno}}} pqr'
|
bbbf4bb0ddc5a35e1ce89bebcb95ef9f2c520c95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/bbbf4bb0ddc5a35e1ce89bebcb95ef9f2c520c95/test_text_moin_wiki.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1831,
273,
296,
536,
10179,
95,
75,
12266,
9090,
97,
525,
16391,
10179,
95,
81,
2135,
9090,
97,
14619,
86,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1831,
273,
296,
536,
10179,
95,
75,
12266,
9090,
97,
525,
16391,
10179,
95,
81,
2135,
9090,
97,
14619,
86,
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
] |
- Oscar Lazo, William Cauchois (2009-2010): Adding coordinate transformations
|
- Oscar Lazo, William Cauchois, Jason Grout (2009-2010): Adding coordinate transformations
|
sage: def f(x,y): return math.exp(x/5)*math.cos(y)
|
85811d8c24ec26acc8a960fadc0b24274c01a5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/85811d8c24ec26acc8a960fadc0b24274c01a5a8/plot3d.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
93,
4672,
327,
4233,
18,
2749,
12,
92,
19,
25,
17653,
15949,
18,
14445,
12,
93,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
93,
4672,
327,
4233,
18,
2749,
12,
92,
19,
25,
17653,
15949,
18,
14445,
12,
93,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if response.getheader("Content-Encoding", "") == "gzip": stream = GzipDecodedResponse(response)
|
if hasattr(response,'getheader'): if response.getheader("Content-Encoding", "") == "gzip": stream = GzipDecodedResponse(response) else: stream = response
|
def parse_response(self, response): # read response data from httpresponse, and parse it if response.getheader("Content-Encoding", "") == "gzip": stream = GzipDecodedResponse(response) else: stream = response
|
40d1804cb1f3eb8645190dd94d80bea8bc8c93c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/40d1804cb1f3eb8645190dd94d80bea8bc8c93c3/xmlrpclib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2740,
12,
2890,
16,
766,
4672,
468,
855,
766,
501,
628,
1062,
2740,
16,
471,
1109,
518,
282,
309,
3859,
12,
2740,
11189,
75,
546,
18105,
11,
4672,
309,
766,
18,
75,
546,
18105,
2932,
1350,
17,
4705,
3113,
1408,
13,
422,
315,
17380,
6877,
1407,
273,
31712,
24888,
1064,
12,
2740,
13,
469,
30,
1407,
273,
766,
469,
30,
1407,
273,
766,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2740,
12,
2890,
16,
766,
4672,
468,
855,
766,
501,
628,
1062,
2740,
16,
471,
1109,
518,
282,
309,
3859,
12,
2740,
11189,
75,
546,
18105,
11,
4672,
309,
766,
18,
75,
546,
18105,
2932,
1350,
17,
4705,
3113,
1408,
13,
422,
315,
17380,
6877,
1407,
273,
31712,
24888,
1064,
12,
2740,
13,
469,
30,
1407,
273,
766,
469,
30,
1407,
273,
766,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'Are you sure you want to delete all groups ?',
|
'Are you sure you want to delete all groups?',
|
def del_group(self, opts, args): """ delete an Licorn group. """ selection = filters.NONE if opts.empty: selection = filters.EMPTY include_id_lists=[ (opts.name, LMC.groups.name_to_gid), (opts.gid, LMC.groups.confirm_gid), ] exclude_id_lists = [ (opts.exclude, LMC.groups.guess_identifier), (opts.exclude_group, LMC.groups.name_to_gid), (opts.exclude_gid, LMC.groups.confirm_gid) ] if opts.all and ( ( # NOTE TO THE READER: don't event try to simplify these conditions, # or the order the tests: they just MATTER. Read the tests in pure # english to undestand them and why the order is important. opts.non_interactive and opts.force) or opts.batch \ or (opts.non_interactive and logging.ask_for_repair( 'Are you sure you want to delete all groups ?', auto_answer=opts.auto_answer) or not opts.non_interactive)): include_id_lists.extend([ (LMC.groups.Select(filters.STD), LMC.groups.confirm_gid), (LMC.groups.Select(filters.SYSUNRSTR), LMC.groups.confirm_gid) ]) gids_to_del = self.select(LMC.groups, 'group', args, include_id_lists=include_id_lists, exclude_id_lists = exclude_id_lists, default_selection=selection) for gid in gids_to_del: if opts.non_interactive or opts.batch or opts.force or \ logging.ask_for_repair('''Delete group %s ?''' % stylize( ST_LOGIN,LMC.groups.gid_to_name(gid)), auto_answer=opts.auto_answer): LMC.groups.DeleteGroup(gid=gid, del_users=opts.del_users, no_archive=opts.no_archive) #logging.notice("Deleting group : %s" % LMC.groups.gid_to_name(gid))
|
a1acd345c6b587c46acec53d660359e9c2c78c73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a1acd345c6b587c46acec53d660359e9c2c78c73/rwi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
1655,
12,
2890,
16,
1500,
16,
833,
4672,
3536,
1430,
392,
511,
335,
14245,
1041,
18,
3536,
4421,
273,
3415,
18,
9826,
309,
1500,
18,
5531,
30,
4421,
273,
3415,
18,
13625,
2341,
67,
350,
67,
9772,
22850,
261,
4952,
18,
529,
16,
511,
20022,
18,
4650,
18,
529,
67,
869,
67,
15780,
3631,
261,
4952,
18,
15780,
16,
511,
20022,
18,
4650,
18,
10927,
67,
15780,
3631,
308,
4433,
67,
350,
67,
9772,
273,
306,
261,
4952,
18,
10157,
16,
511,
20022,
18,
4650,
18,
20885,
67,
5644,
3631,
261,
4952,
18,
10157,
67,
1655,
16,
511,
20022,
18,
4650,
18,
529,
67,
869,
67,
15780,
3631,
261,
4952,
18,
10157,
67,
15780,
16,
511,
20022,
18,
4650,
18,
10927,
67,
15780,
13,
308,
309,
1500,
18,
454,
471,
261,
261,
468,
5219,
8493,
12786,
2438,
5483,
30,
2727,
1404,
871,
775,
358,
16499,
4259,
4636,
16,
468,
578,
326,
1353,
326,
7434,
30,
2898,
2537,
490,
789,
2560,
18,
2720,
326,
7434,
316,
16618,
468,
26858,
358,
640,
10488,
464,
2182,
471,
11598,
326,
1353,
353,
10802,
18,
1500,
18,
5836,
67,
24761,
471,
1500,
18,
5734,
13,
578,
1500,
18,
5303,
521,
578,
261,
4952,
18,
5836,
67,
24761,
471,
2907,
18,
835,
67,
1884,
67,
266,
6017,
12,
296,
4704,
1846,
3071,
1846,
2545,
358,
1430,
777,
3252,
35,
2187,
3656,
67,
13490,
33,
4952,
18,
6079,
67,
13490,
13,
578,
486,
1500,
18,
5836,
67,
24761,
3719,
30,
2341,
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,
1464,
67,
1655,
12,
2890,
16,
1500,
16,
833,
4672,
3536,
1430,
392,
511,
335,
14245,
1041,
18,
3536,
4421,
273,
3415,
18,
9826,
309,
1500,
18,
5531,
30,
4421,
273,
3415,
18,
13625,
2341,
67,
350,
67,
9772,
22850,
261,
4952,
18,
529,
16,
511,
20022,
18,
4650,
18,
529,
67,
869,
67,
15780,
3631,
261,
4952,
18,
15780,
16,
511,
20022,
18,
4650,
18,
10927,
67,
15780,
3631,
308,
4433,
67,
350,
67,
9772,
273,
306,
261,
4952,
18,
10157,
16,
511,
20022,
18,
4650,
18,
20885,
67,
5644,
3631,
261,
4952,
18,
10157,
67,
1655,
16,
511,
20022,
18,
4650,
18,
529,
67,
869,
67,
15780,
3631,
261,
4952,
18,
10157,
67,
15780,
16,
511,
2
] |
print "find NOT FOUND"
|
print "find %s NOT FOUND" % self.port
|
def callback(self, values): try: if(len(values) == 0): if not self.found: print "find NOT FOUND" else: print "find FOUND" else: if self.val in values: self.found = 1 finally: self.flag.set()
|
a6a2f7ed963e55f0b99926b84cdbdc7be5d3d47c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/a6a2f7ed963e55f0b99926b84cdbdc7be5d3d47c/khashmir.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
2890,
16,
924,
4672,
775,
30,
309,
12,
1897,
12,
2372,
13,
422,
374,
4672,
309,
486,
365,
18,
7015,
30,
1172,
315,
4720,
282,
738,
87,
2398,
4269,
17634,
5240,
6,
738,
365,
18,
655,
469,
30,
1172,
315,
4720,
7734,
17634,
5240,
6,
469,
30,
309,
365,
18,
1125,
316,
924,
30,
365,
18,
7015,
273,
404,
3095,
30,
365,
18,
6420,
18,
542,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
2890,
16,
924,
4672,
775,
30,
309,
12,
1897,
12,
2372,
13,
422,
374,
4672,
309,
486,
365,
18,
7015,
30,
1172,
315,
4720,
282,
738,
87,
2398,
4269,
17634,
5240,
6,
738,
365,
18,
655,
469,
30,
1172,
315,
4720,
7734,
17634,
5240,
6,
469,
30,
309,
365,
18,
1125,
316,
924,
30,
365,
18,
7015,
273,
404,
3095,
30,
365,
18,
6420,
18,
542,
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
] |
def getTransformationDirectories(self,transID):
|
def getTransformationDirectories( self, transID ):
|
def getTransformationDirectories(self,transID): """ Get the directories for the supplied transformation from the transformation system """ directories = [] if 'TransformationDB' in self.directoryLocations: res = self.transClient.getTransformationParameters(transID,['OutputDirectories']) if not res['OK']: gLogger.error("Failed to obtain transformation directories",res['Message']) return res transDirectories = res['Value'].splitlines() directories = self.__addDirs(transID,transDirectories,directories)
|
c3853ad0438058db66814335a87076cdaecd2d33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3853ad0438058db66814335a87076cdaecd2d33/TransformationCleaningAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
13071,
12,
365,
16,
906,
734,
262,
30,
3536,
968,
326,
6402,
364,
326,
4580,
8620,
628,
326,
8620,
2619,
3536,
6402,
273,
5378,
309,
296,
15292,
2290,
11,
316,
365,
18,
5149,
10985,
30,
400,
273,
365,
18,
2338,
1227,
18,
588,
15292,
2402,
12,
2338,
734,
16,
3292,
1447,
13071,
19486,
309,
486,
400,
3292,
3141,
3546,
30,
314,
3328,
18,
1636,
2932,
2925,
358,
7161,
8620,
6402,
3113,
455,
3292,
1079,
19486,
327,
400,
906,
13071,
273,
400,
3292,
620,
29489,
4939,
3548,
1435,
6402,
273,
365,
16186,
1289,
9872,
12,
2338,
734,
16,
2338,
13071,
16,
15121,
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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,
3536,
968,
326,
6402,
364,
326,
4580,
8620,
628,
326,
8620,
2619,
3536,
6402,
273,
5378,
309,
296,
15292,
2290,
11,
316,
365,
18,
5149,
10985,
30,
400,
273,
365,
18,
2338,
1227,
18,
588,
15292,
2402,
12,
2338,
734,
16,
3292,
1447,
13071,
19486,
309,
486,
400,
3292,
3141,
3546,
30,
314,
3328,
18,
1636,
2932,
2925,
358,
7161,
8620,
6402,
3113,
455,
3292,
1079,
19486,
327,
400,
906,
13071,
273,
400,
3292,
620,
29489,
4939,
3548,
1435,
6402,
273,
365,
16186,
1289,
9872,
12,
2338,
734,
16,
2338,
13071,
16,
15121,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.metadata.show_opf(self.iterator.opf)
|
self.metadata.show_opf(self.iterator.opf, os.path.splitext(pathtoebook)[1][1:])
|
def load_ebook(self, pathtoebook): if self.iterator is not None: self.save_current_position() self.iterator.__exit__() self.iterator = EbookIterator(pathtoebook) self.open_progress_indicator(_('Loading ebook...')) worker = Worker(target=self.iterator.__enter__) worker.start() while worker.isAlive(): worker.join(0.1) QApplication.processEvents() if worker.exception is not None: if isinstance(worker.exception, DRMError): error_dialog(self, _('DRM Error'), _('<p>This book is protected by <a href="%s">DRM</a>') %'http://wiki.mobileread.com/wiki/DRM').exec_() else: r = getattr(worker.exception, 'reason', worker.exception) error_dialog(self, _('Could not open ebook'), unicode(r), det_msg=worker.traceback, show=True) self.close_progress_indicator() else: self.metadata.show_opf(self.iterator.opf) title = self.iterator.opf.title if not title: title = os.path.splitext(os.path.basename(pathtoebook))[0] self.action_table_of_contents.setDisabled(not self.iterator.toc) if self.iterator.toc: self.toc_model = TOC(self.iterator.toc) self.toc.setModel(self.toc_model) self.current_title = title self.setWindowTitle(unicode(self.windowTitle())+' - '+title) self.pos.setMaximum(sum(self.iterator.pages)) self.pos.setSuffix(' / %d'%sum(self.iterator.pages)) self.vertical_scrollbar.setMinimum(100) self.vertical_scrollbar.setMaximum(100*sum(self.iterator.pages)) self.vertical_scrollbar.setSingleStep(10) self.vertical_scrollbar.setPageStep(100) self.set_vscrollbar_value(1) self.current_index = -1 QApplication.instance().alert(self, 5000) previous = self.set_bookmarks(self.iterator.bookmarks) if previous is not None: self.goto_bookmark(previous) else: self.next_document()
|
eb95f16c46ecb1777c7a76bac5c63fe6b3371d60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/eb95f16c46ecb1777c7a76bac5c63fe6b3371d60/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
73,
3618,
12,
2890,
16,
589,
869,
73,
3618,
4672,
309,
365,
18,
9838,
353,
486,
599,
30,
365,
18,
5688,
67,
2972,
67,
3276,
1435,
365,
18,
9838,
16186,
8593,
972,
1435,
365,
18,
9838,
273,
512,
3618,
3198,
12,
803,
869,
73,
3618,
13,
365,
18,
3190,
67,
8298,
67,
18741,
24899,
2668,
10515,
425,
3618,
7821,
3719,
4322,
273,
11016,
12,
3299,
33,
2890,
18,
9838,
16186,
2328,
972,
13,
4322,
18,
1937,
1435,
1323,
4322,
18,
291,
10608,
13332,
4322,
18,
5701,
12,
20,
18,
21,
13,
2238,
3208,
18,
2567,
3783,
1435,
309,
4322,
18,
4064,
353,
486,
599,
30,
309,
1549,
12,
10124,
18,
4064,
16,
463,
8717,
668,
4672,
555,
67,
12730,
12,
2890,
16,
389,
2668,
6331,
49,
1068,
19899,
389,
2668,
32,
84,
34,
2503,
6978,
353,
4750,
635,
411,
69,
3897,
11613,
87,
6441,
6331,
49,
1757,
69,
1870,
13,
738,
11,
2505,
2207,
13044,
18,
81,
947,
2895,
684,
18,
832,
19,
13044,
19,
6331,
49,
16063,
4177,
67,
1435,
469,
30,
436,
273,
3869,
12,
10124,
18,
4064,
16,
296,
10579,
2187,
4322,
18,
4064,
13,
555,
67,
12730,
12,
2890,
16,
389,
2668,
4445,
486,
1696,
425,
3618,
19899,
5252,
12,
86,
3631,
3023,
67,
3576,
33,
10124,
18,
21696,
16,
2405,
33,
5510,
13,
365,
18,
4412,
67,
8298,
67,
18741,
1435,
469,
30,
365,
18,
4165,
18,
4500,
67,
556,
74,
12,
2890,
18,
9838,
18,
556,
74,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
73,
3618,
12,
2890,
16,
589,
869,
73,
3618,
4672,
309,
365,
18,
9838,
353,
486,
599,
30,
365,
18,
5688,
67,
2972,
67,
3276,
1435,
365,
18,
9838,
16186,
8593,
972,
1435,
365,
18,
9838,
273,
512,
3618,
3198,
12,
803,
869,
73,
3618,
13,
365,
18,
3190,
67,
8298,
67,
18741,
24899,
2668,
10515,
425,
3618,
7821,
3719,
4322,
273,
11016,
12,
3299,
33,
2890,
18,
9838,
16186,
2328,
972,
13,
4322,
18,
1937,
1435,
1323,
4322,
18,
291,
10608,
13332,
4322,
18,
5701,
12,
20,
18,
21,
13,
2238,
3208,
18,
2567,
3783,
1435,
309,
4322,
18,
4064,
353,
486,
599,
30,
309,
1549,
12,
10124,
18,
4064,
16,
463,
8717,
668,
4672,
2
] |
def list_fs_templates(self, metatype):
|
def list_fs_templates(self, portal):
|
def list_fs_templates(self, metatype): """ return the list of the filesystem templates """ portal_path = self.get_portal_path(metatype) skel_handler, error = skel_parser().parse(readFile(join(portal_path, 'skel', 'skel.xml'), 'r')) if skel_handler.root.forms is not None: return [f.id for f in skel_handler.root.forms.forms]
|
0116da894b0fd06e2befe1c4b6331ce460957cbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/0116da894b0fd06e2befe1c4b6331ce460957cbc/NaayaUpdater.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2556,
67,
8502,
12,
2890,
16,
11899,
4672,
3536,
327,
326,
666,
434,
326,
6496,
5539,
3536,
11899,
67,
803,
273,
365,
18,
588,
67,
24386,
67,
803,
12,
10578,
6361,
13,
4343,
292,
67,
4176,
16,
555,
273,
4343,
292,
67,
4288,
7675,
2670,
12,
896,
812,
12,
5701,
12,
24386,
67,
803,
16,
296,
7771,
292,
2187,
296,
7771,
292,
18,
2902,
19899,
296,
86,
26112,
309,
4343,
292,
67,
4176,
18,
3085,
18,
9741,
353,
486,
599,
30,
327,
306,
74,
18,
350,
364,
284,
316,
4343,
292,
67,
4176,
18,
3085,
18,
9741,
18,
9741,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2556,
67,
8502,
12,
2890,
16,
11899,
4672,
3536,
327,
326,
666,
434,
326,
6496,
5539,
3536,
11899,
67,
803,
273,
365,
18,
588,
67,
24386,
67,
803,
12,
10578,
6361,
13,
4343,
292,
67,
4176,
16,
555,
273,
4343,
292,
67,
4288,
7675,
2670,
12,
896,
812,
12,
5701,
12,
24386,
67,
803,
16,
296,
7771,
292,
2187,
296,
7771,
292,
18,
2902,
19899,
296,
86,
26112,
309,
4343,
292,
67,
4176,
18,
3085,
18,
9741,
353,
486,
599,
30,
327,
306,
74,
18,
350,
364,
284,
316,
4343,
292,
67,
4176,
18,
3085,
18,
9741,
18,
9741,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.youtube.entry_lock.acquire (True)
|
def run (self): self.youtube.entry_lock.acquire (True) try: self.youtube.entry[self.treeview_name] = self.youtube.service.Get (self.url).entry except gdata.service.RequestError: """Probably a 503 service unavailable. Unfortunately we can't give an error message, as we're not in the GUI thread""" """Just let the lock go and return""" self.youtube.entry_lock.release ()
|
46523ddcd022328735d34c97303e166c1ff3dd97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/46523ddcd022328735d34c97303e166c1ff3dd97/youtube.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
775,
30,
365,
18,
31749,
18,
4099,
63,
2890,
18,
3413,
1945,
67,
529,
65,
273,
365,
18,
31749,
18,
3278,
18,
967,
261,
2890,
18,
718,
2934,
4099,
1335,
314,
892,
18,
3278,
18,
28963,
30,
3536,
9152,
6906,
279,
26819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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,
1086,
261,
2890,
4672,
775,
30,
365,
18,
31749,
18,
4099,
63,
2890,
18,
3413,
1945,
67,
529,
65,
273,
365,
18,
31749,
18,
3278,
18,
967,
261,
2890,
18,
718,
2934,
4099,
1335,
314,
892,
18,
3278,
18,
28963,
30,
3536,
9152,
6906,
279,
26819,
1156,
15781,
18,
1351,
24233,
732,
848,
1404,
8492,
392,
555,
883,
16,
487,
732,
4565,
486,
316,
326,
10978,
2650,
8395,
3536,
19642,
2231,
326,
2176,
1960,
471,
327,
8395,
365,
18,
31749,
18,
4099,
67,
739,
18,
9340,
1832,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 ListProto(_dict): for proto in default_ports.iterkeys(): yield (proto, _dict[proto]) def ListPorts(_dict): for port in _dict.iterkeys(): if port not in default_ports: yield (port, _dict[port])
|
def ListProto(_dict): for proto in default_ports.iterkeys(): yield (proto, _dict[proto])
|
e6b934d874638116159258819f29844cdd6a0420 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
987,
6262,
24899,
1576,
4672,
364,
3760,
316,
805,
67,
4363,
18,
2165,
2452,
13332,
2824,
261,
9393,
16,
389,
1576,
63,
9393,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.