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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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 format... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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', ... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | |
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,... | [
1,
1,
1,
1,
1,
1,
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... | [
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,
-... |
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.s... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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... | 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 ... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
20,
4672,
2,
-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 el... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
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... |
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 pycon... | 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,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35... |
['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',... | 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,
292... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
292... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
-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,
... | [
1,
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... | [
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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.pat... | 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,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6... |
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 o... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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:])... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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=Non... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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)... | 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): retur... | 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,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
31... |
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. i... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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_temp/2006/2304/f77c4261826f500d1b68866d5744251a90a8abcc/Server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
13725,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-1... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
8... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
- ``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... | 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,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
56... |
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,... | [
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... | [
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,
-... |
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... | 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
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,
3... | |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,... |
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 ... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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... |
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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 ... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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(_(" STA... | 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,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48... |
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) sy... | 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,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
57... |
'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 show... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
5... |
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... | [
1,
1,
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,
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,
-10... |
%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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-10... |
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'... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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... | |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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_PAU... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
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,
-1... | |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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(d... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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.maxstami... | 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,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
72... |
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 # rec... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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 ... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
@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.... | 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,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
8152,
326,
444,
434,
6548,
716,
1410,
506,
8808,
628,
777,
23051,
997,
10219,
18,
225,
2000,
326,
9438,
444,
487,
279,
666,
434,
10... |
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 de... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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: addonsd... | 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,
966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
966... |
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 task... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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.7... | 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,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4... |
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 vi... | 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,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97... | |
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.... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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 ... | 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
3... |
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.ur... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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 =... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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, refda... | 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,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70... |
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 wil... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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) I... | 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,
2890,
4672,
28966,
2668,
4148,
3567,
30,
9479,
628,
738,
87,
11,
738,
609,
12,
2890,
18,
2625,
67,
2867,
3719,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
... |
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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 ... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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... | [
1,
1,
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,
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,
... |
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 =... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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... | 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,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
89... |
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_ke... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... | |
(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,... | [
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... | [
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,
... |
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 assumptio... | 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,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6... |
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,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
4... |
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_... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... | |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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 uti... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
<!-- 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
-1... |
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_fil... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | 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,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
467... |
{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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
... | [
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... | [
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,
... |
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,
... | [
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... | [
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,
-... |
"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_P... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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,
... | [
1,
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... | [
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
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,... | [
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
- 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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... |
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,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
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,
18... |
'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.grou... | 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,
234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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(... | 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,
514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
514... |
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) QA... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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.fo... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | 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,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
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,
89... | |
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/4762/e6b934d874638116159258819f29844cdd6a0420/lookup.py | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.