rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
self._parser.parse(filename)
|
self._parser.parse(handler)
|
def parse(self, handler): """Parses the XML data
|
c4626aa11d0225fe36ff83675a0400ed8226078c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/c4626aa11d0225fe36ff83675a0400ed8226078c/NCBIXML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1838,
4672,
3536,
6656,
326,
3167,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1838,
4672,
3536,
6656,
326,
3167,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setups.pop(item).finish()
|
setups.pop(item).throw(threado.Finished())
|
def run(self): setups = dict() while True: updated, discarded = yield self.inner
|
cd597199d3636d4f8f1256edb6066fffda48b41b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/cd597199d3636d4f8f1256edb6066fffda48b41b/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3875,
87,
273,
2065,
1435,
1323,
1053,
30,
3526,
16,
20076,
273,
2824,
365,
18,
7872,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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16,
20076,
273,
2824,
365,
18,
7872,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_rec_name = 'name' _columns = { 'name': fields.char('Object', size=64), 'model': fields.char('Object Name', size=64), }
|
def instanciate(self, cr, user, model, context={}): class x_custom_model(osv.osv): pass x_custom_model._name = model x_custom_model._module = False x_custom_model.createInstance(self.pool, '', cr) x_custom_model._rec_name = 'x_name'
|
4e13d9b40a74b0e21a0a6afdcafb30e8cf5b5a93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/4e13d9b40a74b0e21a0a6afdcafb30e8cf5b5a93/ir_model.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
27866,
3840,
12,
2890,
16,
4422,
16,
729,
16,
938,
16,
819,
12938,
4672,
667,
619,
67,
3662,
67,
2284,
12,
538,
90,
18,
538,
90,
4672,
1342,
619,
67,
3662,
67,
2284,
6315,
529,
273,
938,
619,
67,
3662,
67,
2284,
6315,
2978,
273,
1083,
619,
67,
3662,
67,
2284,
18,
2640,
1442,
12,
2890,
18,
6011,
16,
10226,
4422,
13,
619,
67,
3662,
67,
2284,
6315,
3927,
67,
529,
273,
296,
92,
67,
529,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
27866,
3840,
12,
2890,
16,
4422,
16,
729,
16,
938,
16,
819,
12938,
4672,
667,
619,
67,
3662,
67,
2284,
12,
538,
90,
18,
538,
90,
4672,
1342,
619,
67,
3662,
67,
2284,
6315,
529,
273,
938,
619,
67,
3662,
67,
2284,
6315,
2978,
273,
1083,
619,
67,
3662,
67,
2284,
18,
2640,
1442,
12,
2890,
18,
6011,
16,
10226,
4422,
13,
619,
67,
3662,
67,
2284,
6315,
3927,
67,
529,
273,
296,
92,
67,
529,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
class ReportToExch(quickfix.BoolField): def __init__(self, data = None): if data == None: quickfix.BoolField.__init__(self, 113) else: quickfix.BoolField.__init__(self, 113, data) class LocateReqd(quickfix.BoolField): def __init__(self, data = None): if data == None: quickfix.BoolField.__init__(self, 114) else: quickfix.BoolField.__init__(self, 114, data)
|
def __init__(self, data = None): if data == None: quickfix.StringField.__init__(self, 112) else: quickfix.StringField.__init__(self, 112, data)
|
b195a30ce1679e0269bc776f2f6e3591488def1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/b195a30ce1679e0269bc776f2f6e3591488def1f/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
23543,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
23543,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
info.varlist.add(self.typename, '*ret')
|
info.varlist.add(ptype[:-1], '*ret')
|
def write_return(self, ptype, ownsreturn, info): if ptype[-1] == '*': info.varlist.add(self.typename, '*ret') ret = 'ret' else: info.varlist.add(self.typename, 'ret') ret = '&ret' ownsreturn = 0 # of course it can't own a ref to a local var ... info.codeafter.append(self.ret_tmpl % { 'typecode': self.typecode, 'ret': ret, 'copy': ownsreturn and 'FALSE' or 'TRUE'})
|
d14595f0524e11bd5a3f4cc233adf44ac161cf03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1020/d14595f0524e11bd5a3f4cc233adf44ac161cf03/argtypes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2463,
12,
2890,
16,
24203,
16,
29065,
2463,
16,
1123,
4672,
309,
24203,
18919,
21,
65,
422,
5306,
30,
1123,
18,
1401,
1098,
18,
1289,
12,
27672,
10531,
17,
21,
6487,
14609,
1349,
6134,
325,
273,
296,
1349,
11,
469,
30,
1123,
18,
1401,
1098,
18,
1289,
12,
2890,
18,
12846,
1069,
16,
296,
1349,
6134,
325,
273,
5183,
1349,
11,
29065,
2463,
273,
374,
468,
434,
4362,
518,
848,
1404,
4953,
279,
1278,
358,
279,
1191,
569,
1372,
1123,
18,
710,
5205,
18,
6923,
12,
2890,
18,
1349,
67,
24717,
738,
288,
296,
723,
710,
4278,
365,
18,
723,
710,
16,
296,
1349,
4278,
325,
16,
296,
3530,
4278,
29065,
2463,
471,
296,
21053,
11,
578,
296,
18724,
11,
6792,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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325,
273,
296,
1349,
11,
469,
30,
1123,
18,
1401,
1098,
18,
1289,
12,
2890,
18,
12846,
1069,
16,
296,
1349,
6134,
325,
273,
5183,
1349,
11,
29065,
2463,
273,
374,
468,
434,
4362,
518,
848,
1404,
4953,
279,
1278,
358,
279,
1191,
569,
1372,
1123,
18,
710,
5205,
18,
6923,
12,
2890,
18,
1349,
67,
24717,
738,
288,
296,
723,
710,
4278,
365,
18,
723,
710,
16,
296,
1349,
4278,
325,
16,
296,
3530,
4278,
29065,
2463,
471,
296,
21053,
11,
2
] |
_children['{%s}transparency' % gdata.GDATA_NAMESPACE] = ('transparency',
|
_children['{%s}transparency' % gdata.GDATA_NAMESPACE] = ('transparency',
|
def __init__(self, value='false', *args, **kwargs): atom.AtomBase.__init__(self, *args, **kwargs) self.value = value
|
6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
2218,
5743,
2187,
380,
1968,
16,
2826,
4333,
4672,
3179,
18,
3641,
2171,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
1132,
273,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
460,
2218,
5743,
2187,
380,
1968,
16,
2826,
4333,
4672,
3179,
18,
3641,
2171,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
1132,
273,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""Runs a test by comparing results to those expected and only failing if something is wrong. """
|
"""Run a test by comparing results to those expected and only failing if something is wrong. Use _printTest to generate data for this test. """
|
def _assertTest(): """Runs a test by comparing results to those expected and only failing if something is wrong. """ testSet = ( ['::', '', 1, ['', '', '', '', ''], 0.0, 0.0, '0:00:00', ['0:00:00', '0:00:00.0', '0:00:00.00']], ['-::', '', 1, ['-', '', '', '', ''], -0.0, -0.0, '0:00:00', ['0:00:00', '0:00:00.0', '0:00:00.00']], ['-0:00:00.01', '', 1, ['-', '0', '00', '00', '.01'], -2.77777777778e-06, -0.01, '-0:00:00.01', ['-0:00:00', '-0:00:00.0', '-0:00:00.01']], [' +1', '', 1, ['+', '1', ''], 1.0, 1.0, '1', ['1:00:00', '1:00:00.0', '1:00:00.00']], ['-1.2345', '', 1, ['-', '1', '.2345'], -1.2345, -1.2345, '-1.2345', ['-1:14:04', '-1:14:04.2', '-1:14:04.20']], ['-123::', '', 1, ['-', '123', '', '', ''], -123.0, -442800.0, '-123:00:00', ['-123:00:00', '-123:00:00.0', '-123:00:00.00']], ['-123:4', '', 1, ['-', '123', '4', ''], -123.066666666667, -7384.0, '-123:04', ['-123:03:60', '-123:03:60.0', '-123:03:60.00']], ['-123:45', '', 1, ['-', '123', '45', ''], -123.75, -7425.0, '-123:45', ['-123:45:00', '-123:45:00.0', '-123:45:00.00']], ['-123:4.56789', '', 1, ['-', '123', '4', '.56789'], -123.0761315, -7384.56789, '-123:04.56789', ['-123:04:34', '-123:04:34.1', '-123:04:34.07']], ['-123:45.6789', '', 1, ['-', '123', '45', '.6789'], -123.761315, -7425.6789, '-123:45.6789', ['-123:45:41', '-123:45:40.7', '-123:45:40.73']], ['1:2:', '', 1, ['', '1', '2', '', ''], 1.0333333333, 3720.0, '1:02:00', ['1:02:00', '1:02:00.0', '1:02:00.00']], ['1:2:3', '', 1, ['', '1', '2', '3', ''], 1.03416666667, 3723.0, '1:02:03', ['1:02:03', '1:02:03.0', '1:02:03.00']], ['1:2:3.456789', '', 1, ['', '1', '2', '3', '.456789'], 1.0342935525, 3723.456789, '1:02:03.456789', ['1:02:03', '1:02:03.5', '1:02:03.46']], ['1:23:4', '', 1, ['', '1', '23', '4', ''], 1.3844444444, 4984.0, '1:23:04', ['1:23:04', '1:23:04.0', '1:23:04.00']], ['1:23:45', '', 1, ['', '1', '23', '45', ''], 1.3958333333, 5025.0, '1:23:45', ['1:23:45', '1:23:45.0', '1:23:45.00']], ['123:45:6.789', '', 1, ['', '123', '45', '6', '.789'], 123.7518858333, 445506.789, '123:45:06.789', ['123:45:07', '123:45:06.8', '123:45:06.79']], ['123:45:56.789', '', 1, ['', '123', '45', '56', '.789'], 123.765774722, 445556.789, '123:45:56.789', ['123:45:57', '123:45:56.8', '123:45:56.79']], ['-0::12.34', 'bug test; the sign must be retained', 1, ['-', '0', '', '12', '.34'], -0.00342777778, -12.34, '-0:00:12.34', ['-0:00:12', '-0:00:12.3', '-0:00:12.34']], ['-::12.34', 'a weird gray area, but it works', 1, ['-', '', '', '12', '.34'], -0.00342777778, -12.34, '-0:00:12.34', ['-0:00:12', '-0:00:12.3', '-0:00:12.34']], ['::12.34', '', 1, ['', '', '', '12', '.34'], 0.00342777778, 12.34, '0:00:12.34', ['0:00:12', '0:00:12.3', '0:00:12.34']], ['1:23.4567', '', 1, ['', '1', '23', '.4567'], 1.390945, 83.4567, '1:23.4567', ['1:23:27', '1:23:27.4', '1:23:27.40']], ['-1.234567', '', 1, ['-', '1', '.234567'], -1.234567, -1.234567, '-1.234567', ['-1:14:04', '-1:14:04.4', '-1:14:04.44']], ['-1:abadstr', 'invalid characters', 0, None, None, None, None, None], ['-1:2343:24', 'too many minutes digits', 0, None, None, None, None, None], ['1:-1:24', 'minus sign in wrong place', 0, None, None, None, None, None], ) def locAssert(fmt, res, func, *args, **kargs): assert fmt % (res,) == fmt % (func(*args, **kargs),), "%r != %r = %s(*%r, **%r)" % (res, func(*args, **kargs), func.__name__, args, kargs) nErrors = 0 for testStr, commentStr, isOK, splitStr, degVal, secVal, neatStr, dmsStr02 in testSet: try: locAssert("%r", splitStr, splitDMSStr, testStr) locAssert("%.8g", degVal, degFromDMSStr, testStr) locAssert("%.8g", secVal, secFromDMSStr, testStr) locAssert("%r", neatStr, neatenDMSStr, testStr) locAssert("%r", dmsStr02[0], dmsStrFromDeg, degVal, 3, 0) locAssert("%r", dmsStr02[1], dmsStrFromDeg, degVal, 3, 1) locAssert("%r", dmsStr02[2], dmsStrFromDeg, degVal, 3, 2) if not isOK: print "unexpected success on %r" % testStr nErrors += 1 except StandardError, e: if isOK: print "unexpected failure on %r\n\t%s\nskipping other tests on this value" % (testStr, e) nErrors += 1 if nErrors == 0: print "RO.StringUtil passed" else: print "RO.StringUtil failed with %d errors" % nErrors
|
a5c12743960cc44ddb0aa0f21361c8697521f18c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/a5c12743960cc44ddb0aa0f21361c8697521f18c/StringUtil.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11231,
4709,
13332,
3536,
1997,
279,
1842,
635,
17553,
1686,
358,
5348,
2665,
471,
1338,
21311,
309,
5943,
353,
7194,
18,
225,
2672,
389,
1188,
4709,
358,
2103,
501,
364,
333,
1842,
18,
3536,
2398,
1842,
694,
273,
261,
10228,
2866,
2187,
10226,
404,
16,
10228,
2187,
10226,
10226,
10226,
875,
6487,
374,
18,
20,
16,
374,
18,
20,
16,
296,
20,
30,
713,
30,
713,
2187,
10228,
20,
30,
713,
30,
713,
2187,
296,
20,
30,
713,
30,
713,
18,
20,
2187,
296,
20,
30,
713,
30,
713,
18,
713,
3546,
6487,
10228,
17,
2866,
2187,
10226,
404,
16,
10228,
17,
2187,
10226,
10226,
10226,
875,
6487,
300,
20,
18,
20,
16,
300,
20,
18,
20,
16,
296,
20,
30,
713,
30,
713,
2187,
10228,
20,
30,
713,
30,
713,
2187,
296,
20,
30,
713,
30,
713,
18,
20,
2187,
296,
20,
30,
713,
30,
713,
18,
713,
3546,
6487,
10228,
17,
20,
30,
713,
30,
713,
18,
1611,
2187,
10226,
404,
16,
10228,
17,
2187,
296,
20,
2187,
296,
713,
2187,
296,
713,
2187,
2418,
1611,
17337,
300,
22,
18,
4700,
4700,
4700,
4700,
4700,
28,
73,
17,
7677,
16,
300,
20,
18,
1611,
16,
2400,
20,
30,
713,
30,
713,
18,
1611,
2187,
10228,
17,
20,
30,
713,
30,
713,
2187,
2400,
20,
30,
713,
30,
713,
18,
20,
2187,
2400,
20,
30,
713,
30,
713,
18,
1611,
3546,
6487,
10228,
397,
21,
2187,
10226,
404,
16,
10228,
15,
2187,
296,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11231,
4709,
13332,
3536,
1997,
279,
1842,
635,
17553,
1686,
358,
5348,
2665,
471,
1338,
21311,
309,
5943,
353,
7194,
18,
225,
2672,
389,
1188,
4709,
358,
2103,
501,
364,
333,
1842,
18,
3536,
2398,
1842,
694,
273,
261,
10228,
2866,
2187,
10226,
404,
16,
10228,
2187,
10226,
10226,
10226,
875,
6487,
374,
18,
20,
16,
374,
18,
20,
16,
296,
20,
30,
713,
30,
713,
2187,
10228,
20,
30,
713,
30,
713,
2187,
296,
20,
30,
713,
30,
713,
18,
20,
2187,
296,
20,
30,
713,
30,
713,
18,
713,
3546,
6487,
10228,
17,
2866,
2187,
10226,
404,
16,
10228,
17,
2187,
10226,
10226,
10226,
875,
6487,
300,
20,
18,
20,
16,
300,
20,
18,
20,
2
] |
NSApplication.sharedApplication().setDelegate_(self.app_controller)
|
miroapp = MiroApplication.sharedApplication() miroapp.setDelegate_(self.app_controller)
|
def run(self): logging.info("OSX version: %s %s %s", platform.system(), platform.release(), platform.machine()) try: import libtorrent logging.info("libtorrent: %s", libtorrent.version) except AttributeError: logging.info("libtorrent: unknown version") except ImportError: logging.exception("libtorrent won't load") try: import pycurl logging.info("pycurl: %s", pycurl.version) except ImportError: logging.exception("pycurl won't load") self.app_controller = AppController.alloc().initWithApp_(self) NSApplication.sharedApplication().setDelegate_(self.app_controller) NSApplicationMain(sys.argv)
|
6d6738c0116e537782c2cf221b58c1c956a7d798 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/6d6738c0116e537782c2cf221b58c1c956a7d798/application.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2907,
18,
1376,
2932,
4618,
60,
1177,
30,
4202,
738,
87,
738,
87,
738,
87,
3113,
4072,
18,
4299,
9334,
4072,
18,
9340,
9334,
4072,
18,
9149,
10756,
775,
30,
1930,
2561,
13039,
547,
2907,
18,
1376,
2932,
2941,
13039,
547,
30,
3639,
738,
87,
3113,
2561,
13039,
547,
18,
1589,
13,
1335,
6394,
30,
2907,
18,
1376,
2932,
2941,
13039,
547,
30,
3639,
5917,
1177,
7923,
1335,
11308,
30,
2907,
18,
4064,
2932,
2941,
13039,
547,
8462,
1404,
1262,
7923,
775,
30,
1930,
2395,
13504,
2907,
18,
1376,
2932,
2074,
13504,
30,
5411,
738,
87,
3113,
2395,
13504,
18,
1589,
13,
1335,
11308,
30,
2907,
18,
4064,
2932,
2074,
13504,
8462,
1404,
1262,
7923,
365,
18,
2910,
67,
5723,
273,
4677,
2933,
18,
9853,
7675,
2738,
1190,
3371,
67,
12,
2890,
13,
282,
312,
11373,
2910,
273,
490,
11373,
3208,
18,
11574,
3208,
1435,
312,
11373,
2910,
18,
542,
9586,
67,
12,
2890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0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2907,
18,
1376,
2932,
4618,
60,
1177,
30,
4202,
738,
87,
738,
87,
738,
87,
3113,
4072,
18,
4299,
9334,
4072,
18,
9340,
9334,
4072,
18,
9149,
10756,
775,
30,
1930,
2561,
13039,
547,
2907,
18,
1376,
2932,
2941,
13039,
547,
30,
3639,
738,
87,
3113,
2561,
13039,
547,
18,
1589,
13,
1335,
6394,
30,
2907,
18,
1376,
2932,
2941,
13039,
547,
30,
3639,
5917,
1177,
7923,
1335,
11308,
30,
2907,
18,
4064,
2932,
2941,
13039,
547,
8462,
1404,
1262,
7923,
775,
30,
1930,
2395,
13504,
2907,
18,
1376,
2932,
2074,
13504,
30,
5411,
738,
87,
3113,
2395,
13504,
18,
1589,
13,
1335,
11308,
30,
2907,
18,
4064,
2932,
2074,
13504,
8462,
1404,
1262,
2
] |
if self._eoln != '\n': import EasyDialogs ok = EasyDialogs.AskYesNoCancel('Warning: "%s" does not have Unix line-endings' % self.title, 1, yes='OK', no='') if not ok: return
|
def _run(self): if self.run_with_interpreter: if self.editgroup.editor.changed: import EasyDialogs import Qd; Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1) if save > 0: if self.domenu_save(): return elif save < 0: return if not self.path: raise W.AlertError, "Can't run unsaved file" self._run_with_interpreter() elif self.run_with_cl_interpreter: # Until universal newline support if self._eoln != '\n': import EasyDialogs ok = EasyDialogs.AskYesNoCancel('Warning: "%s" does not have Unix line-endings' % self.title, 1, yes='OK', no='') if not ok: return if self.editgroup.editor.changed: import EasyDialogs import Qd; Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1) if save > 0: if self.domenu_save(): return elif save < 0: return if not self.path: raise W.AlertError, "Can't run unsaved file" self._run_with_cl_interpreter() else: pytext = self.editgroup.editor.get() globals, file, modname = self.getenvironment() self.execstring(pytext, globals, globals, file, modname)
|
cc05327f1a884449e59676683450b01d0a266b10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cc05327f1a884449e59676683450b01d0a266b10/PyEdit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
2890,
4672,
309,
365,
18,
2681,
67,
1918,
67,
2761,
11599,
30,
309,
365,
18,
4619,
1655,
18,
9177,
18,
6703,
30,
1930,
29442,
11885,
14072,
1930,
2238,
72,
31,
2238,
72,
18,
2570,
6688,
1435,
1923,
273,
29442,
11885,
14072,
18,
23663,
22352,
2279,
6691,
2668,
4755,
2213,
87,
6,
1865,
3549,
4899,
738,
365,
18,
2649,
16,
404,
13,
309,
1923,
405,
374,
30,
309,
365,
18,
9859,
2104,
67,
5688,
13332,
327,
1327,
1923,
411,
374,
30,
327,
309,
486,
365,
18,
803,
30,
1002,
678,
18,
13298,
668,
16,
315,
2568,
1404,
1086,
640,
14077,
585,
6,
365,
6315,
2681,
67,
1918,
67,
2761,
11599,
1435,
1327,
365,
18,
2681,
67,
1918,
67,
830,
67,
2761,
11599,
30,
468,
30608,
26182,
9472,
2865,
430,
365,
18,
4619,
1655,
18,
9177,
18,
6703,
30,
1930,
29442,
11885,
14072,
1930,
2238,
72,
31,
2238,
72,
18,
2570,
6688,
1435,
1923,
273,
29442,
11885,
14072,
18,
23663,
22352,
2279,
6691,
2668,
4755,
2213,
87,
6,
1865,
3549,
4899,
738,
365,
18,
2649,
16,
404,
13,
309,
1923,
405,
374,
30,
309,
365,
18,
9859,
2104,
67,
5688,
13332,
327,
1327,
1923,
411,
374,
30,
327,
309,
486,
365,
18,
803,
30,
1002,
678,
18,
13298,
668,
16,
315,
2568,
1404,
1086,
640,
14077,
585,
6,
365,
6315,
2681,
67,
1918,
67,
830,
67,
2761,
11599,
1435,
469,
30,
2395,
955,
273,
365,
18,
4619,
1655,
18,
9177,
18,
588,
1435,
10941,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
2890,
4672,
309,
365,
18,
2681,
67,
1918,
67,
2761,
11599,
30,
309,
365,
18,
4619,
1655,
18,
9177,
18,
6703,
30,
1930,
29442,
11885,
14072,
1930,
2238,
72,
31,
2238,
72,
18,
2570,
6688,
1435,
1923,
273,
29442,
11885,
14072,
18,
23663,
22352,
2279,
6691,
2668,
4755,
2213,
87,
6,
1865,
3549,
4899,
738,
365,
18,
2649,
16,
404,
13,
309,
1923,
405,
374,
30,
309,
365,
18,
9859,
2104,
67,
5688,
13332,
327,
1327,
1923,
411,
374,
30,
327,
309,
486,
365,
18,
803,
30,
1002,
678,
18,
13298,
668,
16,
315,
2568,
1404,
1086,
640,
14077,
585,
6,
365,
6315,
2681,
67,
1918,
67,
2761,
11599,
1435,
1327,
365,
18,
2681,
67,
2
] |
|
self.tree.openElements.pop() self.parser.parseError()
|
self.parser.parseError(_(u"Unexpected implied end tag (" +\ self.tree.openElements[-1].name + u") in the table phase.")) self.tree.openElements.pop()
|
def clearStackToTableContext(self): # "clear the stack back to a table context" while self.tree.openElements[-1].name not in ("table", "html"): self.tree.openElements.pop() self.parser.parseError() # When the current node is <html> it's an innerHTML case
|
d714b17ea5dc88de01658fc32a1153e84dbce4ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/d714b17ea5dc88de01658fc32a1153e84dbce4ff/html5parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
2624,
774,
1388,
1042,
12,
2890,
4672,
468,
315,
8507,
326,
2110,
1473,
358,
279,
1014,
819,
6,
1323,
365,
18,
3413,
18,
3190,
3471,
18919,
21,
8009,
529,
486,
316,
7566,
2121,
3113,
315,
2620,
6,
4672,
365,
18,
4288,
18,
2670,
668,
24899,
12,
89,
6,
7762,
23547,
679,
1047,
7566,
397,
64,
365,
18,
3413,
18,
3190,
3471,
18919,
21,
8009,
529,
397,
582,
7923,
316,
326,
1014,
6855,
1199,
3719,
365,
18,
3413,
18,
3190,
3471,
18,
5120,
1435,
468,
5203,
326,
783,
756,
353,
411,
2620,
34,
518,
1807,
392,
14129,
648,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
2624,
774,
1388,
1042,
12,
2890,
4672,
468,
315,
8507,
326,
2110,
1473,
358,
279,
1014,
819,
6,
1323,
365,
18,
3413,
18,
3190,
3471,
18919,
21,
8009,
529,
486,
316,
7566,
2121,
3113,
315,
2620,
6,
4672,
365,
18,
4288,
18,
2670,
668,
24899,
12,
89,
6,
7762,
23547,
679,
1047,
7566,
397,
64,
365,
18,
3413,
18,
3190,
3471,
18919,
21,
8009,
529,
397,
582,
7923,
316,
326,
1014,
6855,
1199,
3719,
365,
18,
3413,
18,
3190,
3471,
18,
5120,
1435,
468,
5203,
326,
783,
756,
353,
411,
2620,
34,
518,
1807,
392,
14129,
648,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
url='http://localhost/?q=%s')
|
url=self._localhost_prefix + '?q=%s')
|
def testAddSearchEngine(self): """Test searching using keyword of user-added search engine.""" self.AddSearchEngine(title='foo', keyword='foo.com', url='http://localhost/?q=%s') self.SetOmniboxText('foo.com foobar') self.OmniboxAcceptInput() self.assertEqual('http://localhost/?q=foobar', self.GetActiveTabURL().spec())
|
86d1d325053e5dfbb521e381887f0ba2cc498628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/86d1d325053e5dfbb521e381887f0ba2cc498628/search_engines.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
986,
2979,
4410,
12,
2890,
4672,
3536,
4709,
15300,
1450,
4932,
434,
729,
17,
9665,
1623,
4073,
12123,
365,
18,
986,
2979,
4410,
12,
2649,
2218,
11351,
2187,
4932,
2218,
11351,
18,
832,
2187,
880,
33,
2890,
6315,
13014,
67,
3239,
397,
13023,
85,
5095,
87,
6134,
365,
18,
694,
51,
13607,
495,
2409,
1528,
2668,
11351,
18,
832,
18261,
947,
297,
6134,
365,
18,
51,
13607,
495,
2409,
5933,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
986,
2979,
4410,
12,
2890,
4672,
3536,
4709,
15300,
1450,
4932,
434,
729,
17,
9665,
1623,
4073,
12123,
365,
18,
986,
2979,
4410,
12,
2649,
2218,
11351,
2187,
4932,
2218,
11351,
18,
832,
2187,
880,
33,
2890,
6315,
13014,
67,
3239,
397,
13023,
85,
5095,
87,
6134,
365,
18,
694,
51,
13607,
495,
2409,
1528,
2668,
11351,
18,
832,
18261,
947,
297,
6134,
365,
18,
51,
13607,
495,
2409,
5933,
1210,
1435,
365,
18,
11231,
5812,
2668,
2505,
2207,
13014,
23239,
85,
33,
617,
947,
297,
2187,
365,
18,
967,
3896,
5661,
1785,
7675,
2793,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return unicode(data[:2:-1], 'unicode_internal')
|
return unicode(data[:2][::-1], 'unicode_internal')
|
def decode_character(data): return unicode(data[:2:-1], 'unicode_internal')
|
fae6e6dc979fae96ba77bb09c3f7bf4352f496d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/fae6e6dc979fae96ba77bb09c3f7bf4352f496d6/IO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
11560,
12,
892,
4672,
327,
5252,
12,
892,
10531,
22,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
11560,
12,
892,
4672,
327,
5252,
12,
892,
10531,
22,
30,
17,
21,
6487,
296,
9124,
67,
7236,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def qexp(self, n):
|
def q_expansion(self, n):
|
def qexp(self, n): r""" The q-expansion of self at the cusp at infinity.
|
6c49e305a99a53b33668c57e4313507f70f7ee17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/6c49e305a99a53b33668c57e4313507f70f7ee17/etaproducts.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
67,
2749,
12162,
12,
2890,
16,
290,
4672,
436,
8395,
1021,
1043,
17,
2749,
12162,
434,
365,
622,
326,
27964,
84,
622,
27272,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
67,
2749,
12162,
12,
2890,
16,
290,
4672,
436,
8395,
1021,
1043,
17,
2749,
12162,
434,
365,
622,
326,
27964,
84,
622,
27272,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.cursor.execute(sql,(self.process_id, self.state_vec[(ver,val)], ifo,
|
self.cursor.execute(sql,(self.process_id, self.state_vec[ifo][(ver,val)], ifo,
|
def publish_state(self, ifo, start_time, start_time_ns, end_time, end_time_ns, ver, val ): """ Publish a state segment for a state vector in the database """
|
6bf02ddd12b5e9b19e0efa822323b45ba5187a07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/6bf02ddd12b5e9b19e0efa822323b45ba5187a07/statedb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
67,
2019,
12,
2890,
16,
21479,
16,
787,
67,
957,
16,
787,
67,
957,
67,
2387,
16,
679,
67,
957,
16,
679,
67,
957,
67,
2387,
16,
1924,
16,
1244,
262,
30,
3536,
9761,
279,
919,
3267,
364,
279,
919,
3806,
316,
326,
2063,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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761,
279,
919,
3267,
364,
279,
919,
3806,
316,
326,
2063,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
init = os.path.join(path, '__init__.py') initc = os.path.join(path, '__init__.pyc') if os.path.isfile(init) or os.path.isfile(initc): return 1
|
for ext in ['.py', '.pyc', '.pyo']: if os.path.isfile(os.path.join(path, '__init__' + ext)): return 1
|
def ispackage(path): """Guess whether a path refers to a package directory.""" if os.path.isdir(path): init = os.path.join(path, '__init__.py') initc = os.path.join(path, '__init__.pyc') if os.path.isfile(init) or os.path.isfile(initc): return 1
|
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
5610,
12,
803,
4672,
3536,
15977,
2856,
279,
589,
21368,
358,
279,
2181,
1867,
12123,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
364,
1110,
316,
10228,
18,
2074,
2187,
2418,
2074,
71,
2187,
2418,
2074,
83,
3546,
30,
309,
1140,
18,
803,
18,
291,
768,
12,
538,
18,
803,
18,
5701,
12,
803,
16,
4940,
2738,
7250,
397,
1110,
3719,
30,
327,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
5610,
12,
803,
4672,
3536,
15977,
2856,
279,
589,
21368,
358,
279,
2181,
1867,
12123,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
364,
1110,
316,
10228,
18,
2074,
2187,
2418,
2074,
71,
2187,
2418,
2074,
83,
3546,
30,
309,
1140,
18,
803,
18,
291,
768,
12,
538,
18,
803,
18,
5701,
12,
803,
16,
4940,
2738,
7250,
397,
1110,
3719,
30,
327,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.health = health
|
self.health = gdata.health.service.HealthService() self.health.ClientLogin(username, password, source='Health Client Unit Tests')
|
def setUp(self): self.health = health self.profile_list_feed = self.health.GetProfileListFeed() self.profile_id = self.profile_list_feed.entry[0].GetProfileId()
|
4b0039babc7592f2056fec24dc1589bad7422090 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/4b0039babc7592f2056fec24dc1589bad7422090/service_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
13267,
273,
314,
892,
18,
13267,
18,
3278,
18,
7802,
1179,
1435,
365,
18,
13267,
18,
1227,
5358,
12,
5053,
16,
2201,
16,
1084,
2218,
7802,
2445,
8380,
7766,
87,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
13267,
273,
314,
892,
18,
13267,
18,
3278,
18,
7802,
1179,
1435,
365,
18,
13267,
18,
1227,
5358,
12,
5053,
16,
2201,
16,
1084,
2218,
7802,
2445,
8380,
7766,
87,
6134,
365,
18,
5040,
67,
1098,
67,
7848,
273,
365,
18,
13267,
18,
967,
4029,
682,
8141,
1435,
365,
18,
5040,
67,
350,
273,
365,
18,
5040,
67,
1098,
67,
7848,
18,
4099,
63,
20,
8009,
967,
4029,
548,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
svn("ci").wait()
|
def main(): use_pre = len(sys.argv) > 1 and 'pre' in sys.argv url = "svn+ssh://svn.cern.ch/reps/gaudi" proj = "Gaudi" container = "GaudiRelease" packages = gather_new_versions("requirements") packages[container] = extract_version("requirements") tempdir = tempfile.mkdtemp() try: os.chdir(tempdir) # prepare repository structure (and move to its top level) os.chdir(checkout_structure(url, proj)) # note that the project does not have "-pre" pvers = "%s_%s" % (proj.upper(), packages[container]) # prepare project tag ptagdir = "%s/tags/%s/%s" % (proj, proj.upper(), pvers) if not svn_exists(ptagdir): svn("mkdir", ptagdir).wait() svn("cp", "%s/trunk/cmt" % proj, ptagdir + "/cmt").wait() # prepare package tags tag_re = re.compile(r"^v(\d+)r(\d+)(?:p(\d+))$") for p in packages: tag = packages[p] pktagdir = "%s/tags/%s/%s" % (proj, p, tag) # I have to make the tag if it doesn't exist and (if we use -pre tags) # neither the -pre tag exists. no_tag = not svn_exists(pktagdir) make_tag = no_tag or (use_pre and no_tag and not svn_exists(pktagdir + "-pre")) if make_tag: if use_pre: pktagdir += "-pre" svn("cp", "%s/trunk/%s" % (proj, p), pktagdir).wait() # Atlas type of tag tagElements = tag_re.match(tag) if tagElements: tagElements = "-".join([ "%02d" % int(el or "0") for el in tagElements.groups() ]) pktagdir = "%s/tags/%s/%s-%s" % (proj, p, p, tagElements) svn("cp", "%s/trunk/%s" % (proj, p), pktagdir).wait() else: if not no_tag: svn("up", "-N", pktagdir).wait() # needed for the copy in the global tag if not use_pre: # prepare the full global tag too for p in packages: tag = packages[p] pktagdir = "%s/tags/%s/%s" % (proj, p, tag) svn("cp", pktagdir, "%s/%s" % (ptagdir, p)).wait() svn("ci").wait() finally: shutil.rmtree(tempdir, ignore_errors = True) return 0
|
caa763ff6414da0aea124f54336380f2e9c7a812 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9140/caa763ff6414da0aea124f54336380f2e9c7a812/tag_release.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
999,
67,
1484,
273,
562,
12,
9499,
18,
19485,
13,
405,
404,
471,
296,
1484,
11,
316,
225,
2589,
18,
19485,
880,
273,
315,
31505,
15,
10975,
2207,
31505,
18,
14770,
18,
343,
19,
266,
1121,
19,
15833,
1100,
77,
6,
10296,
273,
315,
43,
24901,
77,
6,
1478,
273,
315,
43,
24901,
77,
7391,
6,
5907,
273,
11090,
67,
2704,
67,
10169,
2932,
16175,
7923,
5907,
63,
3782,
65,
273,
2608,
67,
1589,
2932,
16175,
7923,
23101,
273,
13275,
18,
24816,
72,
5814,
1435,
775,
30,
1140,
18,
343,
1214,
12,
5814,
1214,
13,
468,
2911,
3352,
3695,
261,
464,
3635,
358,
2097,
1760,
1801,
13,
1140,
18,
343,
1214,
12,
17300,
67,
7627,
12,
718,
16,
10296,
3719,
225,
468,
4721,
716,
326,
1984,
1552,
486,
1240,
3701,
1484,
6,
293,
2496,
273,
2213,
87,
10185,
87,
6,
738,
261,
17995,
18,
5797,
9334,
5907,
63,
3782,
5717,
225,
468,
2911,
1984,
1047,
293,
2692,
1214,
273,
2213,
87,
19,
4156,
5258,
87,
5258,
87,
6,
738,
261,
17995,
16,
10296,
18,
5797,
9334,
293,
2496,
13,
309,
486,
5893,
82,
67,
1808,
12,
337,
346,
1214,
4672,
5893,
82,
2932,
26686,
3113,
293,
2692,
1214,
2934,
7048,
1435,
5893,
82,
2932,
4057,
3113,
2213,
87,
19,
26133,
19,
71,
1010,
6,
738,
10296,
16,
293,
2692,
1214,
397,
2206,
71,
1010,
20387,
7048,
1435,
225,
468,
2911,
2181,
2342,
1047,
67,
266,
273,
283,
18,
11100,
12,
86,
6,
66,
90,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
999,
67,
1484,
273,
562,
12,
9499,
18,
19485,
13,
405,
404,
471,
296,
1484,
11,
316,
225,
2589,
18,
19485,
880,
273,
315,
31505,
15,
10975,
2207,
31505,
18,
14770,
18,
343,
19,
266,
1121,
19,
15833,
1100,
77,
6,
10296,
273,
315,
43,
24901,
77,
6,
1478,
273,
315,
43,
24901,
77,
7391,
6,
5907,
273,
11090,
67,
2704,
67,
10169,
2932,
16175,
7923,
5907,
63,
3782,
65,
273,
2608,
67,
1589,
2932,
16175,
7923,
23101,
273,
13275,
18,
24816,
72,
5814,
1435,
775,
30,
1140,
18,
343,
1214,
12,
5814,
1214,
13,
468,
2911,
3352,
3695,
261,
464,
3635,
358,
2097,
1760,
1801,
13,
1140,
18,
343,
1214,
12,
17300,
67,
7627,
12,
2
] |
|
object_id = models.PositiveIntegerField()
|
object_id = models.CharField(max_length=150)
|
def create(self, object, action, **kwargs): ct = ContentType.objects.get_for_model(object.__class__)
|
6983e1f274b8c086942b1383ab3c0845bcc9d04c /local1/tlutelli/issta_data/temp/all_python//python/2009_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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
733,
16,
1301,
16,
2826,
4333,
4672,
5691,
273,
11691,
18,
6911,
18,
588,
67,
1884,
67,
2284,
12,
1612,
16186,
1106,
972,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_d=d+(self._tzinfo[tz].info(t)[0]/86400.0) yr,mo,dy=self._calendarday(_d+jd1901) _s=(_d-int(_d))*86400.0 hr=int(_s/3600) _s=_s-(hr*3600) mn=int(_s/60) sc=_s-(mn*60)
|
x=d+(self._tzinfo[tz].info(t)[0]/86400.0) yr,mo,dy=self._calendarday(x+jd1901) x=(x-int(x))*86400.0 hr=int(x/3600) x=x-(hr*3600) mn=int(x/60) sc=x-(mn*60)
|
def __init__(self,*args): """Return a new date-time object
|
92b0ff07ac42eb6719c4d212edd1adf91e39d066 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/92b0ff07ac42eb6719c4d212edd1adf91e39d066/DateTime.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
4672,
3536,
990,
279,
394,
1509,
17,
957,
733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
verify(complex(a).__class__ is complex)
|
veris(complex(a).__class__, complex)
|
def __repr__(self): return "%.17gj%+.17g" % (self.imag, self.real)
|
b1b7e702cae6f65e6d146f8881c14f933fe52efd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b1b7e702cae6f65e6d146f8881c14f933fe52efd/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
26209,
4033,
75,
78,
9,
15,
18,
4033,
75,
6,
738,
261,
2890,
18,
15374,
16,
365,
18,
7688,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
26209,
4033,
75,
78,
9,
15,
18,
4033,
75,
6,
738,
261,
2890,
18,
15374,
16,
365,
18,
7688,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if reply != "cancel":
|
if str(reply) != "cancel":
|
def close(self): reply = self.maybesave() if reply != "cancel": self._close() return reply
|
f65385c959164ccfa1b4d35c2ef4c94bcad56e32 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f65385c959164ccfa1b4d35c2ef4c94bcad56e32/EditorWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
4332,
273,
365,
18,
24877,
70,
281,
836,
1435,
309,
609,
12,
10629,
13,
480,
315,
10996,
6877,
365,
6315,
4412,
1435,
327,
4332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
4332,
273,
365,
18,
24877,
70,
281,
836,
1435,
309,
609,
12,
10629,
13,
480,
315,
10996,
6877,
365,
6315,
4412,
1435,
327,
4332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
from Numeric import array, Float
|
def __init__(self, calc, atoms=None): self.calc = calc self.atoms = calc.GetListOfAtoms()
|
89358f58fa7285389788f3ca327c3972e926d85c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/89358f58fa7285389788f3ca327c3972e926d85c/old.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7029,
16,
9006,
33,
7036,
4672,
365,
18,
12448,
273,
7029,
365,
18,
14937,
273,
7029,
18,
967,
682,
951,
14280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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7029,
16,
9006,
33,
7036,
4672,
365,
18,
12448,
273,
7029,
365,
18,
14937,
273,
7029,
18,
967,
682,
951,
14280,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def fl_notify_object(obj, cause): """ fl_notify_object(obj, cause) """ _fl_notify_object(obj, cause)
|
def fl_notify_object(pObject, cause): """ fl_notify_object(pObject, cause) """ _fl_notify_object(pObject, cause)
|
def fl_notify_object(obj, cause): """ fl_notify_object(obj, cause) """ _fl_notify_object(obj, cause)
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
12336,
67,
1612,
12,
84,
921,
16,
4620,
4672,
3536,
1183,
67,
12336,
67,
1612,
12,
84,
921,
16,
4620,
13,
3536,
225,
389,
2242,
67,
12336,
67,
1612,
12,
84,
921,
16,
4620,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1183,
67,
12336,
67,
1612,
12,
84,
921,
16,
4620,
4672,
3536,
1183,
67,
12336,
67,
1612,
12,
84,
921,
16,
4620,
13,
3536,
225,
389,
2242,
67,
12336,
67,
1612,
12,
84,
921,
16,
4620,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Column('size', label=_('Size'), align='right'),
|
Column('size', label=_('Size'), align='right'),
|
def history(page, pagename, request): # show history as default _ = request.getText
|
f23aaa071053ca9885d9ca3dea13be3568ea755c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/f23aaa071053ca9885d9ca3dea13be3568ea755c/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
12,
2433,
16,
4262,
1069,
16,
590,
4672,
468,
2405,
4927,
487,
805,
389,
273,
590,
18,
588,
1528,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not at in self.baggage: self.dragobjs.append(at)
|
if not at in baggage: dragatoms.append(at)
|
def atomsSetup(self, a): '''Setup for a click or double-click of real atom <a>, but also handles setup of dragging of real atom <a> and all other currently selected atoms. ''' self.objectSetup(a) self.baggage = [] self.nonbaggage = [] #all_nonbaggage = [] # NIY. mark 060202. selatoms = self.o.assy.selatoms_list() # Accumulate all the baggage from the selected atoms, which can include # selected atoms if a selected atom is another selected atom's baggage. # BTW, it is not possible for an atom to end up in self.baggage twice. for at in selatoms[:]: baggage, nonbaggage = at.baggage_and_other_neighbors() self.baggage += baggage # the baggage we'll keep. #all_nonbaggage += nonbaggage # dragobjs contains all the selected atoms minus atoms that are also # baggage. It is critical that dragobjs does not contain any baggage # atoms or they will be moved twice in atomsDrag(), so we removed them here. for at in selatoms[:]: if not at in self.baggage: # no baggage atoms in dragobjs. self.dragobjs.append(at) # Accumulate all the nonbaggage bonded to the selected atoms. # We also need to keep a record of which selected atom belongs to # each nonbaggage atom. This is not implemented yet, but will be needed # to get atomsDrag() to work properly. I'm commenting it out for now. # mark 060202. #for at in all_nonbaggage[:]: # if not at in self.dragobjs: # self.nonbaggage.append(at) # Debugging print statements. mark 060202. #print "dragobjs = ", self.dragobjs #print "baggage = ", self.baggage #print "nonbaggage = ", self.nonbaggage
|
e4a846430da32f8219706ecaa3f18f53cca635c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e4a846430da32f8219706ecaa3f18f53cca635c5/selectMode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
7365,
12,
2890,
16,
279,
4672,
9163,
7365,
364,
279,
4682,
578,
1645,
17,
7475,
434,
2863,
3179,
411,
69,
20401,
1496,
2546,
7372,
3875,
434,
25434,
434,
2863,
3179,
411,
69,
34,
471,
777,
1308,
4551,
3170,
9006,
18,
9163,
365,
18,
1612,
7365,
12,
69,
13,
365,
18,
70,
17535,
410,
273,
5378,
365,
18,
5836,
70,
17535,
410,
273,
5378,
468,
454,
67,
5836,
70,
17535,
410,
273,
5378,
468,
423,
45,
61,
18,
2267,
13026,
3103,
3103,
18,
225,
357,
14937,
273,
365,
18,
83,
18,
428,
93,
18,
1786,
14937,
67,
1098,
1435,
225,
468,
15980,
31284,
777,
326,
13189,
75,
410,
628,
326,
3170,
9006,
16,
1492,
848,
2341,
468,
3170,
9006,
309,
279,
3170,
3179,
353,
4042,
3170,
3179,
1807,
13189,
75,
410,
18,
468,
605,
18869,
16,
518,
353,
486,
3323,
364,
392,
3179,
358,
679,
731,
316,
365,
18,
70,
17535,
410,
13605,
18,
364,
622,
316,
357,
14937,
10531,
14542,
13189,
75,
410,
16,
1661,
70,
17535,
410,
273,
622,
18,
70,
17535,
410,
67,
464,
67,
3011,
67,
17549,
1435,
365,
18,
70,
17535,
410,
1011,
13189,
75,
410,
468,
326,
13189,
75,
410,
732,
5614,
3455,
18,
468,
454,
67,
5836,
70,
17535,
410,
1011,
1661,
70,
17535,
410,
225,
468,
8823,
18093,
1914,
777,
326,
3170,
9006,
12647,
9006,
716,
854,
2546,
468,
13189,
75,
410,
18,
2597,
353,
11239,
716,
8823,
18093,
1552,
486,
912,
1281,
13189,
75,
410,
468,
9006,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
7365,
12,
2890,
16,
279,
4672,
9163,
7365,
364,
279,
4682,
578,
1645,
17,
7475,
434,
2863,
3179,
411,
69,
20401,
1496,
2546,
7372,
3875,
434,
25434,
434,
2863,
3179,
411,
69,
34,
471,
777,
1308,
4551,
3170,
9006,
18,
9163,
365,
18,
1612,
7365,
12,
69,
13,
365,
18,
70,
17535,
410,
273,
5378,
365,
18,
5836,
70,
17535,
410,
273,
5378,
468,
454,
67,
5836,
70,
17535,
410,
273,
5378,
468,
423,
45,
61,
18,
2267,
13026,
3103,
3103,
18,
225,
357,
14937,
273,
365,
18,
83,
18,
428,
93,
18,
1786,
14937,
67,
1098,
1435,
225,
468,
15980,
31284,
777,
326,
13189,
75,
410,
628,
326,
3170,
9006,
16,
1492,
848,
2341,
468,
3170,
2
] |
self.covar = zeros([nn, nn], dtype=float)
|
self.covar = numpy.zeros([nn, nn], dtype=float)
|
def iterfunct(myfunct, p, iter, fnorm, functkw=None, parinfo=None, quiet=0, dof=None, [iterkw keywords here])
|
14558c711c4693ee25ced2a48d6eaf300224bc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/14558c711c4693ee25ced2a48d6eaf300224bc75/mpfit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
74,
6931,
12,
4811,
74,
6931,
16,
293,
16,
1400,
16,
2295,
535,
16,
12882,
9987,
33,
7036,
16,
779,
1376,
33,
7036,
16,
10902,
33,
20,
16,
741,
74,
33,
7036,
16,
306,
2165,
9987,
7093,
2674,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise unittest.SkipTest("sys.__stdout__ is not a tty")
|
raise TestSkipped("sys.__stdout__ is not a tty")
|
def main(stdscr): curses.savetty() try: module_funcs(stdscr) window_funcs(stdscr) test_userptr_without_set(stdscr) test_resize_term(stdscr) finally: curses.resetty()
|
4631bb8c6f21bed9cefe5a558532555533fd1581 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/4631bb8c6f21bed9cefe5a558532555533fd1581/test_curses.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
5084,
24638,
4672,
30436,
18,
87,
842,
22084,
1435,
775,
30,
1605,
67,
17728,
12,
5084,
24638,
13,
2742,
67,
17728,
12,
5084,
24638,
13,
1842,
67,
1355,
6723,
67,
13299,
67,
542,
12,
5084,
24638,
13,
1842,
67,
15169,
67,
6408,
12,
5084,
24638,
13,
3095,
30,
30436,
18,
6208,
4098,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
5084,
24638,
4672,
30436,
18,
87,
842,
22084,
1435,
775,
30,
1605,
67,
17728,
12,
5084,
24638,
13,
2742,
67,
17728,
12,
5084,
24638,
13,
1842,
67,
1355,
6723,
67,
13299,
67,
542,
12,
5084,
24638,
13,
1842,
67,
15169,
67,
6408,
12,
5084,
24638,
13,
3095,
30,
30436,
18,
6208,
4098,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pkg_path = os.popen('grep -A 30 -E "^Package: dpkg$" ' +
|
pkg_path = '/' + os.popen('grep -A 30 -E "^Package: dpkg$" ' +
|
def test_findPkgHash(self): lastDefer = defer.Deferred() pkg_hash = os.popen('grep -A 30 -E "^Package: dpkg$" ' + '/var/lib/apt/lists/' + self.packagesFile + ' | grep -E "^SHA1:" | head -n 1' + ' | cut -d\ -f 2').read().rstrip('\n') pkg_path = os.popen('grep -A 30 -E "^Package: dpkg$" ' + '/var/lib/apt/lists/' + self.packagesFile + ' | grep -E "^Filename:" | head -n 1' + ' | cut -d\ -f 2').read().rstrip('\n')
|
53607bdd5893956a70875b6468a609eecb518300 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/665/53607bdd5893956a70875b6468a609eecb518300/AptPackages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4720,
11264,
2310,
12,
2890,
4672,
1142,
758,
586,
273,
2220,
18,
16886,
1435,
225,
3475,
67,
2816,
273,
1140,
18,
84,
3190,
2668,
11556,
84,
300,
37,
5196,
300,
41,
15017,
2261,
30,
302,
10657,
12911,
296,
397,
1173,
1401,
19,
2941,
19,
1657,
19,
9772,
2473,
397,
365,
18,
10308,
812,
397,
296,
571,
23366,
300,
41,
15017,
8325,
21,
2773,
571,
910,
300,
82,
404,
11,
397,
296,
571,
6391,
300,
72,
64,
225,
300,
74,
576,
16063,
896,
7675,
86,
6406,
2668,
64,
82,
6134,
3475,
67,
803,
273,
2023,
397,
1140,
18,
84,
3190,
2668,
11556,
84,
300,
37,
5196,
300,
41,
15017,
2261,
30,
302,
10657,
12911,
296,
397,
1173,
1401,
19,
2941,
19,
1657,
19,
9772,
2473,
397,
365,
18,
10308,
812,
397,
296,
571,
23366,
300,
41,
15017,
5359,
2773,
571,
910,
300,
82,
404,
11,
397,
296,
571,
6391,
300,
72,
64,
225,
300,
74,
576,
16063,
896,
7675,
86,
6406,
2668,
64,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4720,
11264,
2310,
12,
2890,
4672,
1142,
758,
586,
273,
2220,
18,
16886,
1435,
225,
3475,
67,
2816,
273,
1140,
18,
84,
3190,
2668,
11556,
84,
300,
37,
5196,
300,
41,
15017,
2261,
30,
302,
10657,
12911,
296,
397,
1173,
1401,
19,
2941,
19,
1657,
19,
9772,
2473,
397,
365,
18,
10308,
812,
397,
296,
571,
23366,
300,
41,
15017,
8325,
21,
2773,
571,
910,
300,
82,
404,
11,
397,
296,
571,
6391,
300,
72,
64,
225,
300,
74,
576,
16063,
896,
7675,
86,
6406,
2668,
64,
82,
6134,
3475,
67,
803,
273,
2023,
397,
1140,
18,
84,
3190,
2668,
11556,
84,
300,
37,
5196,
300,
41,
15017,
2261,
30,
302,
10657,
12911,
296,
397,
1173,
2
] |
if graphic_file.find(self.graphic_suffix[graphic_type]) == -1:
|
if graphic_file.find(self.graphic_suffix[graphic_type]) == -1:
|
def processMythTvMetaData(self): '''Check each video file in the mythvideo directories download graphics files and meta data then update MythTV data base meta data with any new information. ''' # If there were directories specified move them and update the MythTV db meta data accordingly if self.config['video_dir']: if len(self.config['video_dir']) % 2 == 0: validFiles = self._moveVideoFiles(self.config['video_dir']) else: sys.stderr.write(u"\n! Error: When specifying target (file or directory) to move to a destination (directory) they must always be in pairs (target and destination directory).\nYou specified an uneven number of variables (%d) for target and destination pairs.\nVariable count (%s)\n" % (len(self.config['video_dir']), self.config['video_dir'])) sys.exit(False)
|
6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
2191,
501,
598,
1281,
394,
1779,
18,
9163,
468,
971,
1915,
4591,
6402,
1269,
3635,
2182,
471,
1089,
326,
8005,
451,
15579,
1319,
2191,
501,
15905,
309,
365,
18,
1425,
3292,
9115,
67,
1214,
3546,
30,
309,
562,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
738,
576,
422,
374,
30,
923,
2697,
273,
365,
6315,
8501,
10083,
2697,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
469,
30,
2589,
18,
11241,
18,
2626,
12,
89,
12691,
82,
5,
1068,
30,
5203,
13664,
1018,
261,
768,
578,
1867,
13,
358,
3635,
358,
279,
2929,
261,
5149,
13,
2898,
1297,
3712,
506,
316,
5574,
261,
3299,
471,
2929,
1867,
2934,
64,
82,
6225,
1269,
392,
640,
16728,
1300,
434,
3152,
6142,
72,
13,
364,
1018,
471,
2929,
5574,
8403,
82,
3092,
1056,
6142,
87,
5153,
82,
6,
738,
261,
1897,
12,
2890,
18,
1425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
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
2191,
501,
598,
1281,
394,
1779,
18,
9163,
468,
971,
1915,
4591,
6402,
1269,
3635,
2182,
471,
1089,
326,
8005,
451,
15579,
1319,
2191,
501,
15905,
309,
365,
18,
1425,
3292,
9115,
67,
1214,
3546,
30,
309,
562,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
738,
576,
422,
374,
30,
923,
2697,
273,
365,
6315,
8501,
10083,
2697,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
469,
30,
2589,
18,
11241,
18,
2626,
12,
89,
12691,
82,
5,
1068,
30,
5203,
13664,
2
] |
write_action(asset, False);
|
write_action(asset, False)
|
def write_action(asset, webgl_mode): filename = posixpath.splitext(posixpath.basename(asset['path']))[0] filename = filename.replace('.','_') filename = filename.replace('-','_') filename = filename.lower() name = "convert_" + filename if webgl_mode: name = name + "_webgl" output = asset['path'].replace('convert_', '') output_base = posixpath.splitext(output)[0] output_tgz = output_base + ".o3dtgz" output_json = output_base + "/scene.json" output = output_tgz if webgl_mode: output = output_json output_dir = posixpath.dirname(output) output_file.write(" {\n") output_file.write(" 'action_name': '%s',\n" % name) output_file.write(" 'inputs': [\n") output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) output_file.write(" ],\n") output_file.write(" 'outputs': [\n") if sys.platform[:5] == 'linux': # TODO(gspencer): This is a HACK! We shouldn't need to put the # absolute path here, but currently on Linux (scons), it is unable # to copy generated items out of the source tree (because the # repository mojo fails to find it and puts in the wrong path). output_file.write(" '%s',\n" % posixpath.abspath(output)) else: output_file.write(" '../samples/%s',\n" % output) output_file.write(" ],\n") output_file.write(" 'action': [\n") output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") output_file.write(" '--no-condition',\n") output_file.write(" '--up-axis=%s',\n" % asset['up']) if webgl_mode: output_file.write(" '--no-binary',\n") output_file.write(" '--no-archive',\n") output_file.write(" '--convert-dds-to-png',\n") output_file.write(" '--convert-cg-to-glsl',\n") output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) if webgl_mode: output_file.write(" '../samples/%s',\n" % output_tgz) else: output_file.write(" '<(_outputs)',\n") output_file.write(" ],\n") output_file.write(" },\n")
|
ff183afab99ef55906d114db40364a8e4070620f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/ff183afab99ef55906d114db40364a8e4070620f/samples_gen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1128,
12,
9406,
16,
3311,
7043,
67,
3188,
4672,
1544,
273,
16366,
803,
18,
4939,
408,
12,
24463,
803,
18,
13909,
12,
9406,
3292,
803,
3546,
3719,
63,
20,
65,
1544,
273,
1544,
18,
2079,
2668,
1093,
11189,
4623,
13,
1544,
273,
1544,
18,
2079,
2668,
17,
17023,
4623,
13,
1544,
273,
1544,
18,
8167,
1435,
508,
273,
315,
6283,
9548,
397,
1544,
309,
3311,
7043,
67,
3188,
30,
508,
273,
508,
397,
4192,
4875,
7043,
6,
876,
273,
3310,
3292,
803,
29489,
2079,
2668,
6283,
67,
2187,
28707,
876,
67,
1969,
273,
16366,
803,
18,
4939,
408,
12,
2844,
25146,
20,
65,
876,
67,
88,
9764,
273,
876,
67,
1969,
397,
3552,
83,
23,
7510,
9764,
6,
876,
67,
1977,
273,
876,
67,
1969,
397,
2206,
23694,
18,
1977,
6,
876,
273,
876,
67,
88,
9764,
309,
3311,
7043,
67,
3188,
30,
876,
273,
876,
67,
1977,
876,
67,
1214,
273,
16366,
803,
18,
12287,
12,
2844,
13,
876,
67,
768,
18,
2626,
2932,
3639,
18890,
82,
7923,
876,
67,
768,
18,
2626,
2932,
1850,
296,
1128,
67,
529,
4278,
1995,
87,
2187,
64,
82,
6,
738,
508,
13,
876,
67,
768,
18,
2626,
2932,
1850,
296,
10029,
4278,
23781,
82,
7923,
876,
67,
768,
18,
2626,
2932,
5411,
2368,
12,
25883,
67,
4537,
13176,
83,
23,
72,
5072,
2187,
64,
82,
7923,
876,
67,
768,
18,
2626,
2932,
5411,
25226,
83,
23,
72,
67,
9971,
19,
7319,
5258,
87,
2187,
64,
82,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1128,
12,
9406,
16,
3311,
7043,
67,
3188,
4672,
1544,
273,
16366,
803,
18,
4939,
408,
12,
24463,
803,
18,
13909,
12,
9406,
3292,
803,
3546,
3719,
63,
20,
65,
1544,
273,
1544,
18,
2079,
2668,
1093,
11189,
4623,
13,
1544,
273,
1544,
18,
2079,
2668,
17,
17023,
4623,
13,
1544,
273,
1544,
18,
8167,
1435,
508,
273,
315,
6283,
9548,
397,
1544,
309,
3311,
7043,
67,
3188,
30,
508,
273,
508,
397,
4192,
4875,
7043,
6,
876,
273,
3310,
3292,
803,
29489,
2079,
2668,
6283,
67,
2187,
28707,
876,
67,
1969,
273,
16366,
803,
18,
4939,
408,
12,
2844,
25146,
20,
65,
876,
67,
88,
9764,
273,
876,
67,
1969,
397,
3552,
83,
23,
7510,
2
] |
(srcdir,) = sysconfig.get_config_vars('srcdir') if not srcdir: inc_dir = sysconfig.get_python_inc() else: inc_dir = sysconfig.get_python_inc() self.assert_(os.path.isdir(inc_dir)) inc_dir = os.path.join(os.getcwd(), srcdir, 'Include') inc_dir = os.path.normpath(inc_dir) self.assert_(os.path.isdir(inc_dir), inc_dir)
|
inc_dir = sysconfig.get_python_inc() self.assertTrue(os.path.isdir(inc_dir), inc_dir)
|
def test_get_python_inc(self): # The check for srcdir is copied from Python's setup.py, # and is necessary to make this test pass when building # Python in a directory other than the source directory. (srcdir,) = sysconfig.get_config_vars('srcdir') if not srcdir: inc_dir = sysconfig.get_python_inc() else: # This test is not really a proper test: when building # Python from source, even in the same directory, # we won't be testing the same thing as when running # distutils' tests on an installed Python. Nevertheless, # let's try to do our best: if we are running Python's # unittests from a build directory that is not the source # directory, the normal inc_dir will exist, it will just not # contain anything of interest. inc_dir = sysconfig.get_python_inc() self.assert_(os.path.isdir(inc_dir)) # Now test the source location, to make sure Python.h does # exist. inc_dir = os.path.join(os.getcwd(), srcdir, 'Include') inc_dir = os.path.normpath(inc_dir) self.assert_(os.path.isdir(inc_dir), inc_dir) python_h = os.path.join(inc_dir, "Python.h") self.assert_(os.path.isfile(python_h), python_h)
|
d08ab9b5e2e377e847525bb41a2120a36b08de7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/d08ab9b5e2e377e847525bb41a2120a36b08de7e/test_sysconfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
8103,
67,
9523,
12,
2890,
4672,
468,
1021,
866,
364,
1705,
1214,
353,
9268,
628,
6600,
1807,
3875,
18,
2074,
16,
468,
471,
353,
4573,
358,
1221,
333,
1842,
1342,
1347,
10504,
468,
6600,
316,
279,
1867,
1308,
2353,
326,
1084,
1867,
18,
261,
4816,
1214,
16,
13,
273,
2589,
1425,
18,
588,
67,
1425,
67,
4699,
2668,
4816,
1214,
6134,
309,
486,
1705,
1214,
30,
7290,
67,
1214,
273,
2589,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
469,
30,
468,
1220,
1842,
353,
486,
8654,
279,
5338,
1842,
30,
1347,
10504,
468,
6600,
628,
1084,
16,
5456,
316,
326,
1967,
1867,
16,
468,
732,
8462,
1404,
506,
7769,
326,
1967,
7757,
487,
1347,
3549,
468,
2411,
5471,
11,
7434,
603,
392,
5876,
6600,
18,
24496,
451,
12617,
16,
468,
2231,
1807,
775,
358,
741,
3134,
3796,
30,
309,
732,
854,
3549,
6600,
1807,
468,
2836,
16341,
628,
279,
1361,
1867,
716,
353,
486,
326,
1084,
468,
1867,
16,
326,
2212,
7290,
67,
1214,
903,
1005,
16,
518,
903,
2537,
486,
468,
912,
6967,
434,
16513,
18,
7290,
67,
1214,
273,
2589,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
365,
18,
11231,
67,
12,
538,
18,
803,
18,
291,
1214,
12,
9523,
67,
1214,
3719,
468,
4494,
1842,
326,
1084,
2117,
16,
358,
1221,
3071,
6600,
18,
76,
1552,
468,
1005,
18,
7290,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
1705,
1214,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
8103,
67,
9523,
12,
2890,
4672,
468,
1021,
866,
364,
1705,
1214,
353,
9268,
628,
6600,
1807,
3875,
18,
2074,
16,
468,
471,
353,
4573,
358,
1221,
333,
1842,
1342,
1347,
10504,
468,
6600,
316,
279,
1867,
1308,
2353,
326,
1084,
1867,
18,
261,
4816,
1214,
16,
13,
273,
2589,
1425,
18,
588,
67,
1425,
67,
4699,
2668,
4816,
1214,
6134,
309,
486,
1705,
1214,
30,
7290,
67,
1214,
273,
2589,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
469,
30,
468,
1220,
1842,
353,
486,
8654,
279,
5338,
1842,
30,
1347,
10504,
468,
6600,
628,
1084,
16,
5456,
316,
326,
1967,
1867,
16,
468,
732,
8462,
1404,
506,
7769,
326,
1967,
7757,
487,
2
] |
class IOVEntry():
|
class IOVEntry:
|
def __str__(self): return "rcd: \'" + tuple.__getitem__(self,0) + "\' label: \'" + tuple.__getitem__(self,1) + "\'"
|
4b38e17c7e59fca8d75414b61f70693aec4a64c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7996/4b38e17c7e59fca8d75414b61f70693aec4a64c2/gt_tools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
315,
1310,
72,
30,
521,
4970,
397,
3193,
16186,
31571,
972,
12,
2890,
16,
20,
13,
397,
1548,
11,
1433,
30,
521,
4970,
397,
3193,
16186,
31571,
972,
12,
2890,
16,
21,
13,
397,
1548,
4970,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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548,
11,
1433,
30,
521,
4970,
397,
3193,
16186,
31571,
972,
12,
2890,
16,
21,
13,
397,
1548,
4970,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
|
modpath = os.path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return modpath.replace('<LocalFS::directory>', '<LocalFS::file>')
|
def getExtPath(self, module): modLst = string.split(module, '.') if len(modLst) == 1: modpath = path.join(self.zopeDir, 'Extensions', modLst[0] + '.py') else: modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
|
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2482,
743,
12,
2890,
16,
1605,
4672,
681,
28134,
273,
533,
18,
4939,
12,
2978,
16,
2611,
13,
309,
562,
12,
1711,
28134,
13,
422,
404,
30,
681,
803,
273,
589,
18,
5701,
12,
2890,
18,
94,
1306,
1621,
16,
296,
7513,
2187,
681,
28134,
63,
20,
65,
397,
2418,
2074,
6134,
469,
30,
681,
803,
273,
589,
18,
5701,
12,
2890,
18,
685,
2377,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2482,
743,
12,
2890,
16,
1605,
4672,
681,
28134,
273,
533,
18,
4939,
12,
2978,
16,
2611,
13,
309,
562,
12,
1711,
28134,
13,
422,
404,
30,
681,
803,
273,
589,
18,
5701,
12,
2890,
18,
94,
1306,
1621,
16,
296,
7513,
2187,
681,
28134,
63,
20,
65,
397,
2418,
2074,
6134,
469,
30,
681,
803,
273,
589,
18,
5701,
12,
2890,
18,
685,
2377,
1621,
16,
681,
28134,
63,
20,
6487,
296,
7513,
2187,
681,
28134,
63,
21,
3737,
10332,
2074,
6134,
327,
533,
18,
2079,
12,
1711,
803,
16,
2368,
2042,
4931,
2866,
5149,
1870,
16,
2368,
2042,
4931,
2866,
768,
1870,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
warnings.filterwarnings("error", r"""^struct.*""", DeprecationWarning) warnings.filterwarnings("error", r""".*format requires.*""", DeprecationWarning)
|
warnings.filterwarnings("error", category=DeprecationWarning)
|
def _with_warning_restore(*args, **kw): with test.test_support.catch_warning(): # Grrr, we need this function to warn every time. Without removing # the warningregistry, running test_tarfile then test_struct would fail # on 64-bit platforms. globals = func.func_globals if '__warningregistry__' in globals: del globals['__warningregistry__'] warnings.filterwarnings("error", r"""^struct.*""", DeprecationWarning) warnings.filterwarnings("error", r""".*format requires.*""", DeprecationWarning) return func(*args, **kw)
|
8688926981c4f0d3e7ba00de92d38ca6b352673a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/8688926981c4f0d3e7ba00de92d38ca6b352673a/test_struct.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1918,
67,
8551,
67,
13991,
30857,
1968,
16,
2826,
9987,
4672,
598,
1842,
18,
3813,
67,
13261,
18,
14683,
67,
8551,
13332,
468,
611,
523,
86,
16,
732,
1608,
333,
445,
358,
1894,
3614,
813,
18,
225,
27287,
9427,
468,
326,
3436,
9893,
16,
3549,
1842,
67,
11718,
768,
1508,
1842,
67,
1697,
4102,
2321,
468,
603,
5178,
17,
3682,
17422,
18,
10941,
273,
1326,
18,
644,
67,
16227,
309,
4940,
8551,
9893,
7250,
316,
10941,
30,
1464,
10941,
3292,
972,
8551,
9893,
972,
3546,
5599,
18,
2188,
12103,
2932,
1636,
3113,
3150,
33,
758,
13643,
6210,
13,
327,
1326,
30857,
1968,
16,
2826,
9987,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1918,
67,
8551,
67,
13991,
30857,
1968,
16,
2826,
9987,
4672,
598,
1842,
18,
3813,
67,
13261,
18,
14683,
67,
8551,
13332,
468,
611,
523,
86,
16,
732,
1608,
333,
445,
358,
1894,
3614,
813,
18,
225,
27287,
9427,
468,
326,
3436,
9893,
16,
3549,
1842,
67,
11718,
768,
1508,
1842,
67,
1697,
4102,
2321,
468,
603,
5178,
17,
3682,
17422,
18,
10941,
273,
1326,
18,
644,
67,
16227,
309,
4940,
8551,
9893,
7250,
316,
10941,
30,
1464,
10941,
3292,
972,
8551,
9893,
972,
3546,
5599,
18,
2188,
12103,
2932,
1636,
3113,
3150,
33,
758,
13643,
6210,
13,
327,
1326,
30857,
1968,
16,
2826,
9987,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
query1, query2 = target_obj.search([
|
query1, query2 = target_obj.search(cursor, user, [
|
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent)
|
390d2c04977dc7aff4747746069d323e015fd97d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/390d2c04977dc7aff4747746069d323e015fd97d/modelsql.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
3631,
261,
2938,
16,
11817,
33,
2187,
1083,
13,
6487,
819,
33,
2472,
13,
327,
3258,
397,
389,
3927,
67,
588,
12,
2232,
22,
16,
1014,
16,
982,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
3631,
261,
2938,
16,
11817,
33,
2187,
1083,
13,
6487,
819,
33,
2472,
13,
327,
3258,
397,
389,
3927,
67,
588,
12,
2232,
22,
16,
1014,
16,
982,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1])
|
if not self.options.actions: for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1])
|
def upgrade_testing(self): """Upgrade testing using the unstable packages
|
d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
67,
3813,
310,
12,
2890,
4672,
3536,
10784,
7769,
1450,
326,
640,
15021,
5907,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
67,
3813,
310,
12,
2890,
4672,
3536,
10784,
7769,
1450,
326,
640,
15021,
5907,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iter = self.children.firstIter() while iter != self.children.lastIter(): yield iter.value() iter.forward()
|
return iter(self.children)
|
def iterchildren(self): iter = self.children.firstIter() while iter != self.children.lastIter(): yield iter.value() iter.forward()
|
0e48e4375e9b1f72312268de61ceb963e31ceab3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/0e48e4375e9b1f72312268de61ceb963e31ceab3/tablemodel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
5906,
12,
2890,
4672,
1400,
273,
365,
18,
5906,
18,
3645,
2360,
1435,
1323,
1400,
480,
365,
18,
5906,
18,
2722,
2360,
13332,
2824,
1400,
18,
1132,
1435,
1400,
18,
11565,
1435,
2,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
5906,
12,
2890,
4672,
1400,
273,
365,
18,
5906,
18,
3645,
2360,
1435,
1323,
1400,
480,
365,
18,
5906,
18,
2722,
2360,
13332,
2824,
1400,
18,
1132,
1435,
1400,
18,
11565,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
re_format = re.compile('%\(([A-Za-z0-9]+)\)')
|
re_format = re.compile(r'%\(([A-Za-z0-9]+)\)') re_sub = re.compile(r'[\\\*\?\"\<\>\|]+')
|
def split(self): if self.skip_splitting: return None re_format = re.compile('%\(([A-Za-z0-9]+)\)')
|
7d4beffa462d433461418693912ab266d7401e5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13688/7d4beffa462d433461418693912ab266d7401e5e/m4b.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
4672,
309,
365,
18,
7457,
67,
4939,
1787,
30,
327,
599,
225,
283,
67,
2139,
273,
283,
18,
11100,
29909,
30351,
3816,
37,
17,
15948,
17,
94,
20,
17,
29,
16004,
2506,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
4672,
309,
365,
18,
7457,
67,
4939,
1787,
30,
327,
599,
225,
283,
67,
2139,
273,
283,
18,
11100,
29909,
30351,
3816,
37,
17,
15948,
17,
94,
20,
17,
29,
16004,
2506,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
v.StartCapture()
|
lastid = 0
|
def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' + filename) v.StartCapture() t0 = time.millitimer() while not gl.qtest(): if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) buffer.append(None) # Sentinel gl.wintitle('(done) ' + filename)
|
62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a/Vrec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,
331,
659,
18,
2139,
273,
296,
10948,
28,
11,
331,
659,
18,
2819,
273,
619,
331,
659,
18,
4210,
273,
677,
331,
659,
18,
2626,
3374,
1435,
1613,
273,
5378,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
5688,
10278,
16,
261,
90,
659,
16,
1613,
3719,
309,
20232,
77,
792,
2550,
30,
1208,
11509,
12,
24901,
77,
792,
2550,
16,
1613,
13,
5118,
18,
91,
474,
1280,
2668,
12,
3927,
13,
296,
397,
1544,
13,
1142,
350,
273,
374,
268,
20,
273,
813,
18,
81,
737,
305,
4417,
1435,
1323,
486,
5118,
18,
85,
3813,
13332,
309,
331,
18,
967,
26294,
2862,
1435,
405,
576,
30,
268,
273,
813,
18,
81,
737,
305,
4417,
1435,
300,
268,
20,
7976,
16,
384,
273,
331,
18,
967,
12372,
751,
1435,
501,
273,
7976,
18,
2761,
19574,
12,
92,
16,
677,
13,
7976,
18,
7087,
12372,
751,
1435,
1613,
18,
6923,
12,
892,
16,
268,
13,
469,
30,
813,
18,
81,
3503,
4265,
12,
2163,
13,
331,
18,
4947,
12372,
1435,
1323,
331,
18,
967,
26294,
2862,
1435,
405,
374,
30,
268,
273,
813,
18,
81,
737,
305,
4417,
1435,
300,
268,
20,
7976,
16,
384,
273,
331,
18,
967,
12372,
751,
1435,
501,
273,
7976,
18,
2761,
19574,
12,
92,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,
331,
659,
18,
2139,
273,
296,
10948,
28,
11,
331,
659,
18,
2819,
273,
619,
331,
659,
18,
4210,
273,
677,
331,
659,
18,
2626,
3374,
1435,
1613,
273,
5378,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
5688,
10278,
16,
261,
90,
659,
16,
1613,
3719,
309,
20232,
77,
792,
2550,
30,
1208,
11509,
12,
24901,
77,
792,
2550,
16,
1613,
13,
5118,
18,
91,
474,
1280,
2668,
12,
3927,
13,
296,
397,
1544,
13,
1142,
350,
273,
374,
268,
20,
2
] |
items.append(RecordingItem(parent=parent, channel=p.channel, start=p.start, stop=p.stop))
|
items.append(ProgramItem(scheduled, self.parent))
|
def get_items(self, parent): items = [] rec = tvserver.recordings.list() for p in rec: scheduled = tvserver.recordings.get(p.channel, p.start, p.stop) if scheduled and not scheduled.status in ('deleted', 'missed'): items.append(RecordingItem(parent=parent, channel=p.channel, start=p.start, stop=p.stop))
|
b0175fd8c4e0f36e533ae4cc3f93ef65bbe09967 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11399/b0175fd8c4e0f36e533ae4cc3f93ef65bbe09967/scheduled.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3319,
12,
2890,
16,
982,
4672,
1516,
273,
5378,
1950,
273,
13521,
3567,
18,
3366,
899,
18,
1098,
1435,
364,
293,
316,
1950,
30,
9755,
273,
13521,
3567,
18,
3366,
899,
18,
588,
12,
84,
18,
4327,
16,
293,
18,
1937,
16,
293,
18,
5681,
13,
309,
9755,
471,
486,
9755,
18,
2327,
316,
7707,
8600,
2187,
296,
11173,
730,
11,
4672,
1516,
18,
6923,
12,
21037,
1180,
12,
2938,
33,
2938,
16,
1904,
33,
84,
18,
4327,
16,
787,
33,
84,
18,
1937,
16,
2132,
33,
84,
18,
5681,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3319,
12,
2890,
16,
982,
4672,
1516,
273,
5378,
1950,
273,
13521,
3567,
18,
3366,
899,
18,
1098,
1435,
364,
293,
316,
1950,
30,
9755,
273,
13521,
3567,
18,
3366,
899,
18,
588,
12,
84,
18,
4327,
16,
293,
18,
1937,
16,
293,
18,
5681,
13,
309,
9755,
471,
486,
9755,
18,
2327,
316,
7707,
8600,
2187,
296,
11173,
730,
11,
4672,
1516,
18,
6923,
12,
21037,
1180,
12,
2938,
33,
2938,
16,
1904,
33,
84,
18,
4327,
16,
787,
33,
84,
18,
1937,
16,
2132,
33,
84,
18,
5681,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
path = self._getMockPath()
|
def _getMockEnvironment(self): path = self._getMockPath() env = os.environ.copy() if not env.has_key('PYTHONPATH'): env['PYTHONPATH'] = path else: env['PYTHONPATH'] += os.pathsep + path return env
|
385bb0fcea4b2de5eb215b831ad577f7f549b7e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/385bb0fcea4b2de5eb215b831ad577f7f549b7e0/test_output.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
9865,
5494,
12,
2890,
4672,
1550,
273,
1140,
18,
28684,
18,
3530,
1435,
309,
486,
1550,
18,
5332,
67,
856,
2668,
16235,
20131,
4211,
11,
4672,
1550,
3292,
16235,
20131,
4211,
3546,
273,
589,
469,
30,
1550,
3292,
16235,
20131,
4211,
3546,
1011,
1140,
18,
803,
10814,
397,
589,
327,
1550,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
9865,
5494,
12,
2890,
4672,
1550,
273,
1140,
18,
28684,
18,
3530,
1435,
309,
486,
1550,
18,
5332,
67,
856,
2668,
16235,
20131,
4211,
11,
4672,
1550,
3292,
16235,
20131,
4211,
3546,
273,
589,
469,
30,
1550,
3292,
16235,
20131,
4211,
3546,
1011,
1140,
18,
803,
10814,
397,
589,
327,
1550,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
for key, val in special_keys.items():
|
for key, val in tuple(special_keys.items()):
|
def parse_keybinding(obj): """ Translate a keybinding to a sequence of integers Example: lol<CR> => (108, 111, 108, 10) """ assert isinstance(obj, (tuple, int, str)) if isinstance(obj, tuple): for char in obj: yield char elif isinstance(obj, int): yield obj elif isinstance(obj, str): in_brackets = False bracket_content = None for char in obj: if in_brackets: if char == '>': in_brackets = False string = ''.join(bracket_content).lower() try: keys = special_keys[string] for key in keys: yield key except KeyError: yield ord('<') for c in bracket_content: yield ord(c) yield ord('>') except TypeError: yield keys # it was no tuple, just an int else: bracket_content.append(char) else: if char == '<': in_brackets = True bracket_content = [] else: yield ord(char) if in_brackets: yield ord('<') for c in bracket_content: yield ord(c)
|
72c70a2df45b957fee8c755e8bc953e4126dd2fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/72c70a2df45b957fee8c755e8bc953e4126dd2fb/keybinding_parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
856,
7374,
12,
2603,
4672,
3536,
16820,
279,
498,
7374,
358,
279,
3102,
434,
12321,
225,
5090,
30,
328,
355,
32,
5093,
34,
282,
516,
282,
261,
21770,
16,
16344,
16,
23515,
16,
1728,
13,
3536,
1815,
1549,
12,
2603,
16,
261,
8052,
16,
509,
16,
609,
3719,
309,
1549,
12,
2603,
16,
3193,
4672,
364,
1149,
316,
1081,
30,
2824,
1149,
1327,
1549,
12,
2603,
16,
509,
4672,
2824,
1081,
1327,
1549,
12,
2603,
16,
609,
4672,
316,
67,
21025,
87,
273,
1083,
9843,
67,
1745,
273,
599,
364,
1149,
316,
1081,
30,
309,
316,
67,
21025,
87,
30,
309,
1149,
422,
7481,
30,
316,
67,
21025,
87,
273,
1083,
533,
273,
875,
18,
5701,
12,
21025,
67,
1745,
2934,
8167,
1435,
775,
30,
1311,
273,
4582,
67,
2452,
63,
1080,
65,
364,
498,
316,
1311,
30,
2824,
498,
1335,
4999,
30,
2824,
4642,
2668,
32,
6134,
364,
276,
316,
9843,
67,
1745,
30,
2824,
4642,
12,
71,
13,
2824,
4642,
2668,
1870,
13,
1335,
3580,
30,
2824,
1311,
225,
468,
518,
1703,
1158,
3193,
16,
2537,
392,
509,
469,
30,
9843,
67,
1745,
18,
6923,
12,
3001,
13,
469,
30,
309,
1149,
422,
2368,
4278,
316,
67,
21025,
87,
273,
1053,
9843,
67,
1745,
273,
5378,
469,
30,
2824,
4642,
12,
3001,
13,
309,
316,
67,
21025,
87,
30,
2824,
4642,
2668,
32,
6134,
364,
276,
316,
9843,
67,
1745,
30,
2824,
4642,
12,
71,
13,
225,
2,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
856,
7374,
12,
2603,
4672,
3536,
16820,
279,
498,
7374,
358,
279,
3102,
434,
12321,
225,
5090,
30,
328,
355,
32,
5093,
34,
282,
516,
282,
261,
21770,
16,
16344,
16,
23515,
16,
1728,
13,
3536,
1815,
1549,
12,
2603,
16,
261,
8052,
16,
509,
16,
609,
3719,
309,
1549,
12,
2603,
16,
3193,
4672,
364,
1149,
316,
1081,
30,
2824,
1149,
1327,
1549,
12,
2603,
16,
509,
4672,
2824,
1081,
1327,
1549,
12,
2603,
16,
609,
4672,
316,
67,
21025,
87,
273,
1083,
9843,
67,
1745,
273,
599,
364,
1149,
316,
1081,
30,
309,
316,
67,
21025,
87,
30,
309,
1149,
422,
7481,
30,
316,
67,
21025,
87,
273,
1083,
533,
273,
875,
18,
5701,
2
] |
return self.send_at("AT%%IPSYS=%d" % ICERA_ALLOWED_DICT[mode],
|
return self.send_at("AT%%IPSYS=%d" % self.custom.allowed_dict[mode],
|
def set_allowed_mode_cb(orig=None): self.device.set_property(consts.NET_INTFACE, "AllowedMode", mode) return orig
|
0f84d56ef6244b753df0676d75539bdf56d157f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/0f84d56ef6244b753df0676d75539bdf56d157f1/icera.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
8151,
67,
3188,
67,
7358,
12,
4949,
33,
7036,
4672,
365,
18,
5964,
18,
542,
67,
4468,
12,
10248,
87,
18,
14843,
67,
3217,
11300,
16,
315,
5042,
2309,
3113,
1965,
13,
327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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
8151,
67,
3188,
67,
7358,
12,
4949,
33,
7036,
4672,
365,
18,
5964,
18,
542,
67,
4468,
12,
10248,
87,
18,
14843,
67,
3217,
11300,
16,
315,
5042,
2309,
3113,
1965,
13,
327,
1647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" Return a canonical representation of path in the repos. """
|
"""Return a canonical representation of path in the repos."""
|
def normalize_path(self, path): """ Return a canonical representation of path in the repos. """ return NotImplementedError
|
0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3883,
67,
803,
12,
2890,
16,
589,
4672,
3536,
990,
279,
7378,
4335,
434,
589,
316,
326,
13686,
12123,
327,
11206,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
g_mutex.acquire()
|
def run(self): running = 1 while running: message = self.client.recv(self.size) if message: f = open(self.address[0], 'w') message = '<p><strong>' + self.address[0] + '</strong>: ' + message + '</p>\n' f.write(message) f.close()
|
aac66149c7f7124331b709f2373f2618c3c2e307 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/228/aac66149c7f7124331b709f2373f2618c3c2e307/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3549,
273,
404,
1323,
3549,
30,
883,
273,
365,
18,
2625,
18,
18334,
12,
2890,
18,
1467,
13,
309,
883,
30,
284,
273,
1696,
12,
2890,
18,
2867,
63,
20,
6487,
296,
91,
6134,
883,
273,
2368,
84,
4438,
9110,
1870,
397,
365,
18,
2867,
63,
20,
65,
397,
4357,
9110,
28593,
296,
397,
883,
397,
4357,
84,
5333,
82,
11,
284,
18,
2626,
12,
2150,
13,
284,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3549,
273,
404,
1323,
3549,
30,
883,
273,
365,
18,
2625,
18,
18334,
12,
2890,
18,
1467,
13,
309,
883,
30,
284,
273,
1696,
12,
2890,
18,
2867,
63,
20,
6487,
296,
91,
6134,
883,
273,
2368,
84,
4438,
9110,
1870,
397,
365,
18,
2867,
63,
20,
65,
397,
4357,
9110,
28593,
296,
397,
883,
397,
4357,
84,
5333,
82,
11,
284,
18,
2626,
12,
2150,
13,
284,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
maya.cmds.menu( menu, edit=True, postMenuCommand = lambda : __postMenu( menu, definition ) )
|
maya.cmds.menu( menu, edit=True, postMenuCommand = IECore.curry( __postMenu, menu, definition ) )
|
def createMenu( definition, parent, label="", insertAfter=None, radialPosition=None, button = 3 ) : menu = None if maya.cmds.window( parent, query=True, exists=True ) : # parent is a window - we're sticking it in the menubar menu = maya.cmds.menu( label=label, parent=parent, tearOff=True ) elif maya.cmds.menu( parent, query=True, exists=True ) : # parent is a menu - we're adding a submenu kw = {} if not (insertAfter is None) : kw["insertAfter"] = insertAfter if radialPosition : kw["radialPosition"] = radialPosition menu = maya.cmds.menuItem( label=label, parent=parent, tearOff=True, subMenu=True, **kw ) else : # assume parent is a control which can accept a popup menu menu = maya.cmds.popupMenu( parent=parent, button=button ) maya.cmds.menu( menu, edit=True, postMenuCommand = lambda : __postMenu( menu, definition ) ) return menu
|
6036f0068292833f1e58c5abaf993d60a806bec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/6036f0068292833f1e58c5abaf993d60a806bec9/createMenu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4599,
12,
2379,
16,
982,
16,
1433,
1546,
3113,
2243,
4436,
33,
7036,
16,
27884,
2555,
33,
7036,
16,
3568,
273,
890,
262,
294,
225,
3824,
273,
599,
309,
2026,
69,
18,
24680,
18,
5668,
12,
982,
16,
843,
33,
5510,
16,
1704,
33,
5510,
262,
294,
468,
982,
353,
279,
2742,
300,
732,
4565,
25608,
310,
518,
316,
326,
21247,
373,
297,
3824,
273,
2026,
69,
18,
24680,
18,
5414,
12,
1433,
33,
1925,
16,
982,
33,
2938,
16,
268,
2091,
7210,
33,
5510,
262,
1327,
2026,
69,
18,
24680,
18,
5414,
12,
982,
16,
843,
33,
5510,
16,
1704,
33,
5510,
262,
294,
468,
982,
353,
279,
3824,
300,
732,
4565,
6534,
279,
27539,
5323,
273,
2618,
309,
486,
261,
6387,
4436,
353,
599,
13,
294,
5323,
9614,
6387,
4436,
11929,
273,
2243,
4436,
309,
27884,
2555,
294,
5323,
9614,
6012,
649,
2555,
11929,
273,
27884,
2555,
3824,
273,
2026,
69,
18,
24680,
18,
5414,
1180,
12,
1433,
33,
1925,
16,
982,
33,
2938,
16,
268,
2091,
7210,
33,
5510,
16,
720,
4599,
33,
5510,
16,
2826,
9987,
262,
469,
294,
468,
6750,
982,
353,
279,
3325,
1492,
848,
2791,
279,
10431,
3824,
3824,
273,
2026,
69,
18,
24680,
18,
16086,
4599,
12,
982,
33,
2938,
16,
3568,
33,
5391,
262,
225,
2026,
69,
18,
24680,
18,
5414,
12,
3824,
16,
3874,
33,
5510,
16,
1603,
4599,
2189,
273,
10897,
4670,
18,
1397,
1176,
12,
1001,
2767,
4599,
16,
3824,
16,
2379,
262,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4599,
12,
2379,
16,
982,
16,
1433,
1546,
3113,
2243,
4436,
33,
7036,
16,
27884,
2555,
33,
7036,
16,
3568,
273,
890,
262,
294,
225,
3824,
273,
599,
309,
2026,
69,
18,
24680,
18,
5668,
12,
982,
16,
843,
33,
5510,
16,
1704,
33,
5510,
262,
294,
468,
982,
353,
279,
2742,
300,
732,
4565,
25608,
310,
518,
316,
326,
21247,
373,
297,
3824,
273,
2026,
69,
18,
24680,
18,
5414,
12,
1433,
33,
1925,
16,
982,
33,
2938,
16,
268,
2091,
7210,
33,
5510,
262,
1327,
2026,
69,
18,
24680,
18,
5414,
12,
982,
16,
843,
33,
5510,
16,
1704,
33,
5510,
262,
294,
468,
982,
353,
279,
3824,
300,
732,
4565,
6534,
279,
27539,
5323,
2
] |
This keyword reads the specified file and returns only lines matching the `pattern`. `encoding` defines the encoding of the file. By default, the value is 'UTF-8', which means that UTF-8 and ASCII-encoded files are read correctly. `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. - If `pattern_type` contains either the string 'simple' or 'glob', the `pattern` is considered a simple pattern and lines returned only if they match it. (1) - If `pattern_type` contains either the string 'regular expression' or 'regexp', the `pattern` is considered a regular expression and only lines matching it returned. (2) - If `pattern_type` contains the string 'case insensitive' the `pattern` is considered a literal string and lines returned, if they contain the string, regardless of the case. - Otherwise the pattern is considered a literal string and lines returned, if they contain the string exactly. This is the default. 1) Simple pattern matching is similar as matching files in a shell, and it is always case-sensitive. In the pattern, '*' matches to anything and '?' matches to any single character. 2) Regular expression check is done using the Python 're' module, which has a pattern syntax derived from Perl and thus also very similar to the one in Java. See the following documents from more details about regexps in general and their Python implementation in particular. 're' Module Documentation: http://docs.python.org/lib/module-re.html Regular Expression HOWTO: http://www.amk.ca/python/howto/regex/ Note that if you want to use flags (e.g. re.IGNORECASE), you have to embed them into the pattern (e.g. '(?i)pattern'). Note also that backslash is an escape character in Robot Framework test data, and possible backslashes in patterns must thus be escaped with another backslash (e.g. '\\\\d\\\\w+').
|
This keyword reads the specified file and returns only lines matching the `pattern`. `encoding` specifies the encoding of the file the same way as with `Get File` keyword. `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. 1) If `pattern_type` contains either the strings 'simple' or 'glob', the `pattern` is considered a simple glob pattern having same semantics as patterns given to `File Should Exist` keyword. 2) If `pattern_type` contains either 'simple' or 'glob', and additionally contains 'case-insensitive' or 'case insensitive', the glob pattern is considered case-insensitive. This functionality is available in 2.0.2 version and newer. 3) If `pattern_type` contains either the string 'regular expression' or 'regexp', the `pattern` is considered a regular expression. See built-in keyword `Should Match Regexp` for more information about how to use regular expressions in the test data. 4) If `pattern_type` contains either 'case-insensitive' or 'case insensitive' (but does not contain 'simple' or 'glob'), `pattern` is considered a literal string and lines returned, if they contain the string, regardless of the case. 5) Otherwise the pattern is considered a literal string and lines returned, if they contain the string.
|
def grep_file(self, path, pattern, pattern_type='literal string', encoding='UTF-8'): """Returns the contents of a specified file grepped using `pattern`. This keyword reads the specified file and returns only lines matching the `pattern`. `encoding` defines the encoding of the file. By default, the value is 'UTF-8', which means that UTF-8 and ASCII-encoded files are read correctly. `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. - If `pattern_type` contains either the string 'simple' or 'glob', the `pattern` is considered a simple pattern and lines returned only if they match it. (1) - If `pattern_type` contains either the string 'regular expression' or 'regexp', the `pattern` is considered a regular expression and only lines matching it returned. (2) - If `pattern_type` contains the string 'case insensitive' the `pattern` is considered a literal string and lines returned, if they contain the string, regardless of the case. - Otherwise the pattern is considered a literal string and lines returned, if they contain the string exactly. This is the default. 1) Simple pattern matching is similar as matching files in a shell, and it is always case-sensitive. In the pattern, '*' matches to anything and '?' matches to any single character.
|
6f8bd1e5c5b0db8d92d174d89dc27677542321fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/6f8bd1e5c5b0db8d92d174d89dc27677542321fb/OperatingSystem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
67,
768,
12,
2890,
16,
589,
16,
1936,
16,
1936,
67,
723,
2218,
13107,
533,
2187,
2688,
2218,
5159,
17,
28,
11,
4672,
3536,
1356,
326,
2939,
434,
279,
1269,
585,
23366,
1845,
1450,
1375,
4951,
8338,
225,
1220,
4932,
6838,
326,
1269,
585,
471,
1135,
1338,
2362,
3607,
326,
1375,
4951,
8338,
1375,
5999,
68,
11164,
326,
2688,
434,
326,
585,
18,
2525,
805,
16,
326,
460,
353,
296,
5159,
17,
28,
2187,
1492,
4696,
716,
6380,
17,
28,
471,
11768,
17,
10787,
1390,
854,
855,
8783,
18,
225,
1375,
4951,
67,
723,
68,
11164,
3661,
326,
864,
1936,
353,
19898,
487,
19765,
329,
5712,
18,
1375,
4951,
67,
723,
68,
1237,
353,
648,
17,
31940,
471,
2026,
912,
1308,
977,
18,
2457,
3454,
16,
296,
17745,
2187,
296,
28225,
11,
471,
296,
3234,
353,
279,
7195,
11,
854,
777,
7399,
3959,
18,
225,
300,
971,
1375,
4951,
67,
723,
68,
1914,
3344,
326,
533,
296,
9647,
11,
578,
296,
10581,
2187,
326,
1375,
4951,
68,
353,
7399,
279,
4143,
1936,
471,
2362,
2106,
1338,
309,
2898,
845,
518,
18,
261,
21,
13,
300,
971,
1375,
4951,
67,
723,
68,
1914,
3344,
326,
533,
296,
16819,
2652,
11,
578,
296,
17745,
2187,
326,
1375,
4951,
68,
353,
7399,
279,
6736,
2652,
471,
1338,
2362,
3607,
518,
2106,
18,
261,
22,
13,
300,
971,
1375,
4951,
67,
723,
68,
1914,
326,
533,
296,
3593,
17904,
11,
326,
1375,
4951,
68,
353,
7399,
279,
7158,
533,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
67,
768,
12,
2890,
16,
589,
16,
1936,
16,
1936,
67,
723,
2218,
13107,
533,
2187,
2688,
2218,
5159,
17,
28,
11,
4672,
3536,
1356,
326,
2939,
434,
279,
1269,
585,
23366,
1845,
1450,
1375,
4951,
8338,
225,
1220,
4932,
6838,
326,
1269,
585,
471,
1135,
1338,
2362,
3607,
326,
1375,
4951,
8338,
1375,
5999,
68,
11164,
326,
2688,
434,
326,
585,
18,
2525,
805,
16,
326,
460,
353,
296,
5159,
17,
28,
2187,
1492,
4696,
716,
6380,
17,
28,
471,
11768,
17,
10787,
1390,
854,
855,
8783,
18,
225,
1375,
4951,
67,
723,
68,
11164,
3661,
326,
864,
1936,
353,
19898,
487,
19765,
329,
5712,
18,
1375,
4951,
67,
723,
68,
1237,
353,
648,
17,
31940,
2
] |
self.l_arm_angles = l_arm_angles self.l_arm_efforts = l_arm_efforts
|
self.arm_angles[1] = arm_angles[1] self.arm_efforts[1] = arm_efforts[1]
|
def joint_states_cb(self, data): r_arm_angles = [] r_arm_efforts = [] l_arm_angles = [] l_arm_efforts = [] r_jt_idx_list = [17, 18, 16, 20, 19, 21, 22] l_jt_idx_list = [31, 32, 30, 34, 33, 35, 36] for i,nm in enumerate(self.joint_nm_list): idx = r_jt_idx_list[i] if data.name[idx] != 'r_'+nm+'_joint': raise RuntimeError('joint angle name does not match. Expected: %s, Actual: %s i: %d'%('r_'+nm+'_joint', data.name[idx], i)) r_arm_angles.append(data.position[idx]) r_arm_efforts.append(data.effort[idx])
|
3a682eff0bfca2c49f435a978c645b4e046ad110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/3a682eff0bfca2c49f435a978c645b4e046ad110/simple_arm_trajectories.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15916,
67,
7992,
67,
7358,
12,
2890,
16,
501,
4672,
436,
67,
4610,
67,
12356,
273,
5378,
436,
67,
4610,
67,
17098,
499,
87,
273,
5378,
328,
67,
4610,
67,
12356,
273,
5378,
328,
67,
4610,
67,
17098,
499,
87,
273,
5378,
436,
67,
78,
88,
67,
3465,
67,
1098,
273,
306,
4033,
16,
6549,
16,
2872,
16,
4200,
16,
5342,
16,
9035,
16,
11201,
65,
328,
67,
78,
88,
67,
3465,
67,
1098,
273,
306,
6938,
16,
3847,
16,
5196,
16,
13438,
16,
13159,
16,
13191,
16,
6580,
65,
364,
277,
16,
15094,
316,
4241,
12,
2890,
18,
16452,
67,
15094,
67,
1098,
4672,
2067,
273,
436,
67,
78,
88,
67,
3465,
67,
1098,
63,
77,
65,
309,
501,
18,
529,
63,
3465,
65,
480,
296,
86,
4623,
15,
15094,
6797,
67,
16452,
4278,
1002,
7265,
2668,
16452,
5291,
508,
1552,
486,
845,
18,
13219,
30,
738,
87,
16,
23788,
30,
738,
87,
277,
30,
738,
72,
11,
9,
2668,
86,
4623,
15,
15094,
6797,
67,
16452,
2187,
501,
18,
529,
63,
3465,
6487,
277,
3719,
436,
67,
4610,
67,
12356,
18,
6923,
12,
892,
18,
3276,
63,
3465,
5717,
436,
67,
4610,
67,
17098,
499,
87,
18,
6923,
12,
892,
18,
17098,
499,
63,
3465,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15916,
67,
7992,
67,
7358,
12,
2890,
16,
501,
4672,
436,
67,
4610,
67,
12356,
273,
5378,
436,
67,
4610,
67,
17098,
499,
87,
273,
5378,
328,
67,
4610,
67,
12356,
273,
5378,
328,
67,
4610,
67,
17098,
499,
87,
273,
5378,
436,
67,
78,
88,
67,
3465,
67,
1098,
273,
306,
4033,
16,
6549,
16,
2872,
16,
4200,
16,
5342,
16,
9035,
16,
11201,
65,
328,
67,
78,
88,
67,
3465,
67,
1098,
273,
306,
6938,
16,
3847,
16,
5196,
16,
13438,
16,
13159,
16,
13191,
16,
6580,
65,
364,
277,
16,
15094,
316,
4241,
12,
2890,
18,
16452,
67,
15094,
67,
1098,
4672,
2067,
273,
436,
67,
78,
88,
67,
3465,
67,
1098,
63,
77,
65,
2
] |
x = 1.0 / wavelen * 10000.0
|
nm_to_micron = 1/1000.0 x = 1.0 / (wavelen * nm_to_micron)
|
def setupCCMab(self, wavelen=None): """Calculate a(x) and b(x) for CCM dust model. (x=1/wavelen). Returns a(x) and b(x) can be common to many seds, wavelen is the same. """ # This extinction law taken from Cardelli, Clayton and Mathis ApJ 1989. # The general form is A_l / A(V) = a(x) + b(x)/R_V (where x=1/lambda in microns), # then different values for a(x) and b(x) depending on wavelength regime. # Also, the extinction is parametrized as R_v = A_v / E(B-V). # Magnitudes of extinction (A_l) translates to flux by a_l = -2.5log(f_red / f_nonred). if wavelen == None: wavelen = n.copy(self.wavelen) a_x = n.zeros(len(wavelen), dtype='float') b_x = n.zeros(len(wavelen), dtype='float') # Convert wavelength to x (in inverse microns). x = n.empty(len(wavelen), dtype=float) x = 1.0 / wavelen * 10000.0 # Dust in infrared 0.3 /mu < x < 1.1 /mu (inverse microns). condition = (x>=0.3) & (x<=1.1) if len(a_x[condition]) > 0 : y = x[condition] a_x[condition] = 0.574 * y**1.61 b_x[condition] = -0.527 * y**1.61 # Dust in optical/NIR 1.1 /mu < x < 3.3 /mu region. condition = (x >=1.1) & (x<=3.3) if len(a_x[condition])>0: y = x[condition] - 1.82 a_x[condition] = 1 + 0.17699*y - 0.50447*y**2 - 0.02427*y**3 + 0.72085*y**4 a_x[condition] = a_x[condition] + 0.01979*y**5 - 0.77530*y**6 + 0.32999*y**7 b_x[condition] = 1.41338*y + 2.28305*y**2 + 1.07233*y**3 - 5.38434*y**4 b_x[condition] = b_x[condition] - 0.62251*y**5 + 5.30260*y**6 - 2.09002*y**7 # Dust in ultraviolet and UV (if needed for high-z) 3.3 /mu< x< 8 /mu. condition = (x>=3.3) & (x<5.9) if len(a_x[condition])>0: y = x[condition] a_x[condition] = 1.752 - 0.316*y - 0.104/((y-4.67)**2 + 0.341) b_x[condition] = -3.090 + 1.825*y + 1.206/((y-4.62)**2 + 0.263) condition = (x>5.9) & (x<8) if len(a_x[condition])>0: y = x[condition] Fa_x = n.empty(len(a_x[condition]), dtype=float) Fb_x = n.empty(len(a_x[condition]), dtype=float) Fa_x = -0.04473*(y-5.9)**2 - 0.009779*(y-5.9)**3 Fb_x = 0.2130*(y-5.9)**2 + 0.1207*(y-5.9)**3 a_x[condition] = 1.752 - 0.316*y - 0.104/((y-4.67)**2 + 0.341) + Fa_x b_x[condition] = -3.090 + 1.825*y + 1.206/((y-4.62)**2 + 0.263) + Fb_x # Dust in far UV (if needed for high-z) 8 /mu < x < 10 /mu region. condition = (x >= 8) & (x<= 10.) if len(a_x[condition])>0: y = x[condition]-8.0 a_x[condition] = -1.073 - 0.628*(y) + 0.137*(y)**2 - 0.070*(y)**3 b_x[condition] = 13.670 + 4.257*(y) - 0.420*(y)**2 + 0.374*(y)**3 return a_x, b_x
|
fe3b601823c6a418c550ad220bad597f52e218ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/fe3b601823c6a418c550ad220bad597f52e218ef/Sed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
6743,
49,
378,
12,
2890,
16,
341,
7882,
275,
33,
7036,
4672,
3536,
8695,
279,
12,
92,
13,
471,
324,
12,
92,
13,
364,
385,
9611,
302,
641,
938,
18,
261,
92,
33,
21,
19,
91,
7882,
275,
2934,
225,
2860,
279,
12,
92,
13,
471,
324,
12,
92,
13,
848,
506,
2975,
358,
4906,
272,
9765,
16,
341,
7882,
275,
353,
326,
1967,
18,
3536,
468,
1220,
1110,
267,
349,
328,
2219,
9830,
628,
14338,
292,
549,
16,
3905,
528,
1917,
471,
2361,
291,
1716,
46,
5342,
6675,
18,
468,
1021,
7470,
646,
353,
432,
67,
80,
342,
432,
12,
58,
13,
273,
279,
12,
92,
13,
397,
324,
12,
92,
13176,
54,
67,
58,
225,
261,
6051,
619,
33,
21,
19,
14661,
316,
312,
335,
1949,
87,
3631,
468,
1508,
3775,
924,
364,
279,
12,
92,
13,
471,
324,
12,
92,
13,
8353,
603,
21410,
960,
494,
18,
468,
8080,
16,
326,
1110,
267,
349,
353,
579,
16354,
1235,
487,
534,
67,
90,
273,
432,
67,
90,
342,
512,
12,
38,
17,
58,
2934,
468,
12342,
82,
24751,
434,
1110,
267,
349,
261,
37,
67,
80,
13,
2162,
815,
358,
11772,
635,
279,
67,
80,
273,
300,
22,
18,
25,
1330,
12,
74,
67,
1118,
342,
284,
67,
5836,
1118,
2934,
309,
341,
7882,
275,
422,
599,
30,
341,
7882,
275,
273,
290,
18,
3530,
12,
2890,
18,
91,
7882,
275,
13,
279,
67,
92,
273,
290,
18,
22008,
12,
1897,
12,
91,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
6743,
49,
378,
12,
2890,
16,
341,
7882,
275,
33,
7036,
4672,
3536,
8695,
279,
12,
92,
13,
471,
324,
12,
92,
13,
364,
385,
9611,
302,
641,
938,
18,
261,
92,
33,
21,
19,
91,
7882,
275,
2934,
225,
2860,
279,
12,
92,
13,
471,
324,
12,
92,
13,
848,
506,
2975,
358,
4906,
272,
9765,
16,
341,
7882,
275,
353,
326,
1967,
18,
3536,
468,
1220,
1110,
267,
349,
328,
2219,
9830,
628,
14338,
292,
549,
16,
3905,
528,
1917,
471,
2361,
291,
1716,
46,
5342,
6675,
18,
468,
1021,
7470,
646,
353,
432,
67,
80,
342,
432,
12,
58,
13,
273,
279,
12,
92,
13,
397,
324,
12,
92,
13176,
54,
67,
58,
225,
2
] |
self._p_changed = 1 util.redirect(RESPONSE, 'atse_editor',
|
self._schemas[schema_id] = S util.redirect(RESPONSE, schema_template,
|
def atse_fieldMoveLeft(self, schema_id, name, RESPONSE=None): """ move a field of a schemata to the left""" S = self.atse_getSchemaById(schema_id) S.moveField(name, -1) self._p_changed = 1 util.redirect(RESPONSE, 'atse_editor', self.translate('atse_field_moved_up', default='Field moved up'), schemata=S[name].schemata, schema_id=schema_id, field=name)
|
9b0c0ef734f88dbdf55f2ae8fbea0706d81ca338 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/9b0c0ef734f88dbdf55f2ae8fbea0706d81ca338/SchemaEditor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
307,
67,
1518,
7607,
3910,
12,
2890,
16,
1963,
67,
350,
16,
508,
16,
20645,
33,
7036,
4672,
3536,
3635,
279,
652,
434,
279,
30140,
396,
358,
326,
2002,
8395,
348,
273,
365,
18,
270,
307,
67,
588,
3078,
5132,
12,
4821,
67,
350,
13,
348,
18,
8501,
974,
12,
529,
16,
300,
21,
13,
365,
6315,
17928,
63,
4821,
67,
350,
65,
273,
348,
1709,
18,
7590,
12,
14508,
16,
1963,
67,
3202,
16,
365,
18,
13929,
2668,
270,
307,
67,
1518,
67,
81,
9952,
67,
416,
2187,
805,
2218,
974,
10456,
731,
19899,
30140,
396,
33,
55,
63,
529,
8009,
87,
1036,
396,
16,
1963,
67,
350,
33,
4821,
67,
350,
16,
652,
33,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
307,
67,
1518,
7607,
3910,
12,
2890,
16,
1963,
67,
350,
16,
508,
16,
20645,
33,
7036,
4672,
3536,
3635,
279,
652,
434,
279,
30140,
396,
358,
326,
2002,
8395,
348,
273,
365,
18,
270,
307,
67,
588,
3078,
5132,
12,
4821,
67,
350,
13,
348,
18,
8501,
974,
12,
529,
16,
300,
21,
13,
365,
6315,
17928,
63,
4821,
67,
350,
65,
273,
348,
1709,
18,
7590,
12,
14508,
16,
1963,
67,
3202,
16,
365,
18,
13929,
2668,
270,
307,
67,
1518,
67,
81,
9952,
67,
416,
2187,
805,
2218,
974,
10456,
731,
19899,
30140,
396,
33,
55,
63,
529,
8009,
87,
1036,
396,
16,
1963,
67,
350,
33,
4821,
67,
350,
16,
652,
33,
529,
2
] |
print >>self.stdout, """alias [name [command [parameter parameter ...] ]]
|
print >>self.stdout, """alias [name [command [parameter parameter ...]]]
|
def help_alias(self): print >>self.stdout, """alias [name [command [parameter parameter ...] ]]
|
f856eefea3958fc4346d1e2b34b70f05aa053bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f856eefea3958fc4346d1e2b34b70f05aa053b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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
4930,
12,
2890,
4672,
1172,
1671,
2890,
18,
10283,
16,
3536,
4930,
306,
529,
306,
3076,
306,
6775,
1569,
1372,
65,
12011,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return Inf
|
return _Inf
|
def ln(self, context=None): """Returns the natural (base e) logarithm of self."""
|
ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7211,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
15145,
261,
1969,
425,
13,
613,
31249,
434,
365,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7211,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
15145,
261,
1969,
425,
13,
613,
31249,
434,
365,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return interfaces.ActiveStatus return interfaces.InactiveStatus
|
return ActiveStatus return InactiveStatus
|
def __get__(self, inst, klass): registration = inst if registration is None: return self
|
7e5cbe1942b8f9364be5de8c9301955e1d09f59d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/7e5cbe1942b8f9364be5de8c9301955e1d09f59d/back35.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
1804,
16,
7352,
4672,
7914,
273,
1804,
309,
7914,
353,
599,
30,
327,
365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
except UnboundLocalError:
|
except NameError:
|
def inner(): return y
|
26bf803ab2e93ea2b3170492061f2248a8e6559d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/26bf803ab2e93ea2b3170492061f2248a8e6559d/test_scope.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3443,
13332,
327,
677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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22398,
316,
326,
981,
30,
1652,
3443,
13332,
327,
677,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.string = list(string)
|
self.index = 0 self.string = string
|
def __init__(self, string):
|
b42c811cba34ab2f6d1db22aed5bc7f0dab153bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b42c811cba34ab2f6d1db22aed5bc7f0dab153bb/sre_parse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
533,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
533,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif arch == "i386":
|
elif arch == "i386\n":
|
def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.compile("(" + "|".join(Versions.keys()) + ") (.+)$", re.IGNORECASE) ShFilePath = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "version") for Line in open(ShFilePath): Match = RegExp.match(Line) if Match: MatchKey = Match.group(1) # # We are here because one of them wasn't found, but we should be # sure only to overwrite what we don't have. # if not Versions[MatchKey]: Value = Match.group(2) Versions[MatchKey] = Value exec("%s = \"%s\"" % (MatchKey, Value), locals(), globals()) # # Make sure we found every key in the file (at least those # not defined in the environment) # MissingKey = None for Item in Versions.iteritems(): #print(Item) if Item[1] is None: MissingKey = Item[0] File = __file__ sys.stderr.write("%(File)s: %(MissingKey)s not found in %(ShFilePath)s\n" % vars()) if MissingKey: sys.exit(1) return Versions.get(Key)
|
b6421bbe23f654b6e3c65b2ac6c03d22cdb6498d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/b6421bbe23f654b6e3c65b2ac6c03d22cdb6498d/pylib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1444,
12,
653,
4672,
468,
468,
5098,
855,
326,
585,
309,
392,
3330,
2190,
353,
315,
7337,
6,
261,
451,
402,
468,
11234,
777,
854,
16,
1529,
3631,
471,
1338,
855,
518,
3647,
18,
468,
468,
1188,
2932,
3067,
6158,
5952,
5494,
30,
23,
7923,
1445,
273,
28375,
18,
588,
12,
653,
13,
309,
1445,
30,
327,
1445,
468,
468,
15871,
23,
5757,
302,
25,
18,
27,
18,
21,
468,
15871,
23,
5757,
6069,
374,
3361,
27,
1611,
468,
15871,
23,
14378,
24435,
4044,
29,
17,
1611,
17,
5340,
468,
10679,
273,
283,
18,
11100,
2932,
2932,
397,
11747,
9654,
5701,
12,
5940,
18,
2452,
10756,
397,
9369,
261,
18,
6975,
8,
3113,
283,
18,
20118,
13415,
13,
2638,
5598,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
972,
768,
972,
3719,
3631,
315,
1589,
7923,
364,
5377,
316,
1696,
12,
1555,
5598,
4672,
4639,
273,
10679,
18,
1916,
12,
1670,
13,
309,
4639,
30,
4639,
653,
273,
4639,
18,
1655,
12,
21,
13,
468,
468,
1660,
854,
2674,
2724,
1245,
434,
2182,
14487,
1404,
1392,
16,
1496,
732,
1410,
506,
468,
3071,
1338,
358,
6156,
4121,
732,
2727,
1404,
1240,
18,
468,
309,
486,
28375,
63,
2060,
653,
14542,
1445,
273,
4639,
18,
1655,
12,
22,
13,
28375,
63,
2060,
653,
65,
273,
1445,
1196,
27188,
87,
273,
22049,
87,
8530,
738,
261,
2060,
653,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1444,
12,
653,
4672,
468,
468,
5098,
855,
326,
585,
309,
392,
3330,
2190,
353,
315,
7337,
6,
261,
451,
402,
468,
11234,
777,
854,
16,
1529,
3631,
471,
1338,
855,
518,
3647,
18,
468,
468,
1188,
2932,
3067,
6158,
5952,
5494,
30,
23,
7923,
1445,
273,
28375,
18,
588,
12,
653,
13,
309,
1445,
30,
327,
1445,
468,
468,
15871,
23,
5757,
302,
25,
18,
27,
18,
21,
468,
15871,
23,
5757,
6069,
374,
3361,
27,
1611,
468,
15871,
23,
14378,
24435,
4044,
29,
17,
1611,
17,
5340,
468,
10679,
273,
283,
18,
11100,
2932,
2932,
397,
11747,
9654,
5701,
12,
5940,
18,
2452,
10756,
397,
9369,
261,
18,
6975,
8,
3113,
283,
18,
20118,
13415,
2
] |
xmlconfig = XMLConfigParser(join(abspath(dirname(__file__)),"module","config","core.xml"))
|
xmlconfig = XMLConfigParser(join(abspath(dirname(__file__)),"module","config","core.xml"), join(abspath(dirname(__file__)),"module","config","core_default.xml"))
|
def white(string): return "\033[1;37m" + string + "\033[0m"
|
fbee6325c4079768f330b51fa125411c8ab2967b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/fbee6325c4079768f330b51fa125411c8ab2967b/pyLoadCli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9578,
12,
1080,
4672,
327,
1548,
15265,
63,
21,
31,
6418,
81,
6,
397,
533,
397,
1548,
15265,
63,
20,
81,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9578,
12,
1080,
4672,
327,
1548,
15265,
63,
21,
31,
6418,
81,
6,
397,
533,
397,
1548,
15265,
63,
20,
81,
6,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
0x0404: "zh_TW", 0x0804: "zh_CN",
|
0x0436: "af_ZA", 0x041c: "sq_AL", 0x0401: "ar_SA", 0x0801: "ar_IQ", 0x0c01: "ar_EG", 0x1001: "ar_LY", 0x1401: "ar_DZ", 0x1801: "ar_MA", 0x1c01: "ar_TN", 0x2001: "ar_OM", 0x2401: "ar_YE", 0x2801: "ar_SY", 0x2c01: "ar_JO", 0x3001: "ar_LB", 0x3401: "ar_KW", 0x3801: "ar_AE", 0x3c01: "ar_BH", 0x4001: "ar_QA", 0x042b: "hy_AM", 0x042c: "az_AZ", 0x082c: "az_AZ", 0x042d: "eu_ES", 0x0423: "be_BY", 0x0445: "bn_IN", 0x201a: "bs_BA", 0x141a: "bs_BA", 0x047e: "br_FR", 0x0402: "bg_BG", 0x0403: "ca_ES", 0x0004: "zh_CHS", 0x0404: "zh_TW", 0x0804: "zh_CN", 0x0c04: "zh_HK", 0x1004: "zh_SG", 0x1404: "zh_MO", 0x7c04: "zh_CHT", 0x041a: "hr_HR", 0x101a: "hr_BA", 0x0405: "cs_CZ",
|
def getpreferredencoding(do_setlocale = True): """Return the charset that the user is likely using, according to the system configuration.""" if do_setlocale: oldloc = setlocale(LC_CTYPE) setlocale(LC_CTYPE, "") result = nl_langinfo(CODESET) setlocale(LC_CTYPE, oldloc) return result else: return nl_langinfo(CODESET)
|
494d0666bbd1c51595495abf757828b8dafb2dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/494d0666bbd1c51595495abf757828b8dafb2dd7/locale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23616,
5999,
12,
2896,
67,
542,
6339,
273,
1053,
4672,
3536,
990,
326,
4856,
716,
326,
729,
353,
10374,
1450,
16,
4888,
358,
326,
2619,
1664,
12123,
309,
741,
67,
542,
6339,
30,
1592,
1829,
273,
444,
6339,
12,
13394,
67,
17331,
13,
444,
6339,
12,
13394,
67,
17331,
16,
1408,
13,
563,
273,
7741,
67,
4936,
1376,
12,
5572,
4043,
13,
444,
6339,
12,
13394,
67,
17331,
16,
1592,
1829,
13,
327,
563,
469,
30,
327,
7741,
67,
4936,
1376,
12,
5572,
4043,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
67,
542,
6339,
30,
1592,
1829,
273,
444,
6339,
12,
13394,
67,
17331,
13,
444,
6339,
12,
13394,
67,
17331,
16,
1408,
13,
563,
273,
7741,
67,
4936,
1376,
12,
5572,
4043,
13,
444,
6339,
12,
13394,
67,
17331,
16,
1592,
1829,
13,
327,
563,
469,
30,
327,
7741,
67,
4936,
1376,
12,
5572,
4043,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_v03 and '_my_state' or '_state',
|
_noInstanceState and '_my_state' or '_state',
|
def __delattr__( klas, attrname): 'deleting attributes of the klas comes here - try restore the StaticType' try: st = klas.StaticType[ attrname] except KeyError: _Base.__metaclass__.__delattr__( klas, attrname) else: setattr( klas, attrname, st)
|
11b821f504d2225414d6487ef5b3b2c61c246af6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/11b821f504d2225414d6487ef5b3b2c61c246af6/sa2static.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
1747,
972,
12,
417,
9521,
16,
1604,
529,
4672,
296,
19003,
310,
1677,
434,
326,
417,
9521,
14535,
2674,
300,
775,
5217,
326,
10901,
559,
11,
775,
30,
384,
273,
417,
9521,
18,
5788,
559,
63,
1604,
529,
65,
1335,
4999,
30,
389,
2171,
16186,
3901,
1106,
972,
16186,
3771,
1747,
972,
12,
417,
9521,
16,
1604,
529,
13,
469,
30,
9241,
12,
417,
9521,
16,
1604,
529,
16,
384,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
1747,
972,
12,
417,
9521,
16,
1604,
529,
4672,
296,
19003,
310,
1677,
434,
326,
417,
9521,
14535,
2674,
300,
775,
5217,
326,
10901,
559,
11,
775,
30,
384,
273,
417,
9521,
18,
5788,
559,
63,
1604,
529,
65,
1335,
4999,
30,
389,
2171,
16186,
3901,
1106,
972,
16186,
3771,
1747,
972,
12,
417,
9521,
16,
1604,
529,
13,
469,
30,
9241,
12,
417,
9521,
16,
1604,
529,
16,
384,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
autotexts.append( t )
|
autotexts.append( t )
|
def pie( self, explode = None, colors = None, autopct = None, pctdistance = 0.6, shadow = False ):
|
e1fab6a8b4522a8c8de872b610947c90d87e201a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e1fab6a8b4522a8c8de872b610947c90d87e201a/PieGraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1385,
12,
365,
16,
3172,
273,
599,
16,
5740,
273,
599,
16,
2059,
556,
299,
273,
599,
16,
19857,
8969,
273,
374,
18,
26,
16,
10510,
273,
1083,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1385,
12,
365,
16,
3172,
273,
599,
16,
5740,
273,
599,
16,
2059,
556,
299,
273,
599,
16,
19857,
8969,
273,
374,
18,
26,
16,
10510,
273,
1083,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
list3 = []
|
def exclusion_list(): prelist = [] load_pages() for page, path in exclusion_file_list(): f = codecs.open(path, "r", 'utf-8') data = f.read() f.close() # wikipedia:en:Wikipedia:Mirrors and forks prelist += re.findall("(?i)url\s*=\s*<nowiki>(?:http://)?(.*?)</nowiki>", data) prelist += re.findall("(?i)\*\s*Site:\s*\[?(?:http://)?(.*?)\]?", data) # wikipedia:it:Wikipedia:Cloni if 'copyright/it/Cloni.txt' in path: prelist += re.findall('(?i)^==(?!=)\s*\[?\s*(?:<nowiki>)?(?:http://)?(.*?)(?:</nowiki>)?\s*\]?\s*==', data) #prelist += re.findall("(?i)<h2>\s*(?:http://)?(.*?)\s*</h2>", data) list1 = [] for entry in prelist: list1 += entry.split(", ") list2 = [] for entry in list1: list2 += entry.split("and ") list3 = [] for entry in list2: entry = re.sub("http://", "", entry) if entry: if '/' in entry: list3 += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: list3 += [re.sub(" .*", "", entry)] #list3 += [re.sub("/.*", "", entry)] f = codecs.open('copyright/exclusion_list.txt', 'r','utf-8') list3 += re.sub(" ?#.*","",f.read()).splitlines() f.close() return list3
|
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21244,
67,
1098,
13332,
675,
1098,
273,
5378,
1262,
67,
7267,
1435,
364,
1363,
16,
589,
316,
21244,
67,
768,
67,
1098,
13332,
284,
273,
17437,
18,
3190,
12,
803,
16,
315,
86,
3113,
296,
3158,
17,
28,
6134,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
468,
21137,
30,
275,
30,
59,
16049,
30,
49,
27026,
471,
364,
7904,
675,
1098,
1011,
283,
18,
4720,
454,
2932,
3680,
77,
13,
718,
64,
87,
14,
18206,
87,
14,
32,
3338,
6169,
34,
6503,
2505,
2207,
9945,
21110,
1757,
3338,
6169,
2984,
16,
501,
13,
675,
1098,
1011,
283,
18,
4720,
454,
2932,
3680,
77,
5153,
12174,
87,
14,
4956,
5581,
87,
12174,
63,
35,
6503,
2505,
2207,
9945,
27482,
26717,
3113,
501,
13,
468,
21137,
30,
305,
30,
59,
16049,
30,
2009,
265,
77,
309,
296,
29187,
19,
305,
19,
2009,
265,
77,
18,
5830,
11,
316,
589,
30,
675,
1098,
1011,
283,
18,
4720,
454,
2668,
3680,
77,
13,
66,
631,
19306,
33,
5153,
87,
12174,
63,
10936,
87,
14,
6503,
32,
3338,
6169,
34,
9945,
6503,
2505,
2207,
9945,
21110,
6503,
1757,
3338,
6169,
34,
9945,
64,
87,
12174,
65,
10936,
87,
14,
631,
2187,
501,
13,
468,
1484,
1098,
1011,
283,
18,
4720,
454,
2932,
3680,
77,
13,
32,
76,
22,
5333,
87,
14,
6503,
2505,
2207,
9945,
27482,
87,
14,
1757,
76,
22,
2984,
16,
501,
13,
666,
21,
273,
5378,
364,
1241,
316,
675,
1098,
30,
666,
21,
1011,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21244,
67,
1098,
13332,
675,
1098,
273,
5378,
1262,
67,
7267,
1435,
364,
1363,
16,
589,
316,
21244,
67,
768,
67,
1098,
13332,
284,
273,
17437,
18,
3190,
12,
803,
16,
315,
86,
3113,
296,
3158,
17,
28,
6134,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
468,
21137,
30,
275,
30,
59,
16049,
30,
49,
27026,
471,
364,
7904,
675,
1098,
1011,
283,
18,
4720,
454,
2932,
3680,
77,
13,
718,
64,
87,
14,
18206,
87,
14,
32,
3338,
6169,
34,
6503,
2505,
2207,
9945,
21110,
1757,
3338,
6169,
2984,
16,
501,
13,
675,
1098,
1011,
283,
18,
4720,
454,
2932,
3680,
77,
5153,
12174,
87,
14,
4956,
5581,
87,
12174,
63,
35,
6503,
2505,
2
] |
|
menu.append((_('Reveal File'), lambda : app.widgetapp.open_file(item.video_path)))
|
def play_and_stop(): app.playback_manager.start_with_items([item])
|
e96486d64407d2add2a6b90d5f642752ae931928 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/e96486d64407d2add2a6b90d5f642752ae931928/itemcontextmenu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
67,
464,
67,
5681,
13332,
595,
18,
1601,
823,
67,
4181,
18,
1937,
67,
1918,
67,
3319,
3816,
1726,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
67,
464,
67,
5681,
13332,
595,
18,
1601,
823,
67,
4181,
18,
1937,
67,
1918,
67,
3319,
3816,
1726,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"""Given a reference line, attepmt to locate instances of citation
|
"""Given a reference line, attempt to locate instances of citation
|
def standardize_and_markup_numeration_of_citations_in_line(line): """Given a reference line, attepmt to locate instances of citation 'numeration' in the line. Upon finding some numeration, re-arrange it into a standard order, and mark it up with tags. Will process numeration in the following order: Delete the colon and expressions such as Serie, vol, V. inside the pattern <serie : volume> E.g.: Replace the string 'Series A, Vol 4' with 'A 4' Then, the 4 main numeration patterns: Pattern 0 (was pattern 3): <x, vol, page, year> <v, [FS]?, p, y> <[FS]?, v, p, y> Pattern 1: <x, vol, year, page> <v, [FS]?, y, p> <[FS]?, v, y, p> Pattern 2: <vol, serie, year, page> <v, s, [FS]?, y, p> <v, [FS]?, s, y, p Pattern 4: <vol, serie, page, year> <v, s, [FS]?, p, y> <v, [FS]?, s, p, y> @param line: (string) the reference line. @return: (string) the reference line after numeration has been checked and possibly recognized/marked-up. """ line = re_strip_series_and_volume_labels[0].sub(re_strip_series_and_volume_labels[1], line) line = re_numeration_vol_nucphys_page_yr[0].sub(re_numeration_vol_nucphys_page_yr[1], line) line = re_numeration_nucphys_vol_page_yr[0].sub(re_numeration_nucphys_vol_page_yr[1], line) line = re_numeration_vol_nucphys_yr_page[0].sub(re_numeration_vol_nucphys_yr_page[1], line) line = re_numeration_nucphys_vol_yr_page[0].sub(re_numeration_nucphys_vol_yr_page[1], line) line = re_numeration_vol_series_nucphys_yr_page[0].sub(re_numeration_vol_series_nucphys_yr_page[1], line) line = re_numeration_vol_nucphys_series_yr_page[0].sub(re_numeration_vol_nucphys_series_yr_page[1], line) line = re_numeration_vol_series_nucphys_page_yr[0].sub(re_numeration_vol_series_nucphys_page_yr[1], line) line = re_numeration_vol_nucphys_series_page_yr[0].sub(re_numeration_vol_nucphys_series_page_yr[1], line) line = re_numeration_yr_vol_page[0].sub(re_numeration_yr_vol_page[1], \ line) return line
|
4f63bfe58dc96cfe23ab0f0c42cbb2980b2e7a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/4f63bfe58dc96cfe23ab0f0c42cbb2980b2e7a6e/refextract.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4529,
554,
67,
464,
67,
15056,
67,
2107,
7067,
67,
792,
67,
71,
18282,
67,
267,
67,
1369,
12,
1369,
4672,
3536,
6083,
279,
2114,
980,
16,
4395,
358,
10627,
3884,
434,
21145,
296,
2107,
7067,
11,
316,
326,
980,
18,
587,
500,
13727,
2690,
818,
7067,
16,
283,
17,
297,
3676,
518,
1368,
279,
4529,
1353,
16,
471,
2267,
518,
731,
598,
2342,
18,
9980,
1207,
818,
7067,
316,
326,
3751,
1353,
30,
2504,
326,
13336,
471,
8041,
4123,
487,
24150,
16,
6626,
16,
776,
18,
4832,
326,
1936,
411,
550,
1385,
294,
3940,
34,
512,
18,
75,
29710,
6910,
326,
533,
296,
6485,
432,
16,
26861,
1059,
11,
598,
296,
37,
1059,
11,
9697,
16,
326,
1059,
2774,
818,
7067,
6884,
30,
6830,
374,
261,
17416,
1936,
890,
4672,
411,
92,
16,
6626,
16,
1363,
16,
3286,
34,
411,
90,
16,
306,
4931,
26717,
16,
293,
16,
677,
34,
411,
63,
4931,
26717,
16,
331,
16,
293,
16,
677,
34,
6830,
404,
30,
411,
92,
16,
6626,
16,
3286,
16,
1363,
34,
411,
90,
16,
306,
4931,
26717,
16,
677,
16,
293,
34,
411,
63,
4931,
26717,
16,
331,
16,
677,
16,
293,
34,
6830,
576,
30,
411,
15416,
16,
24295,
16,
3286,
16,
1363,
34,
411,
90,
16,
272,
16,
306,
4931,
26717,
16,
677,
16,
293,
34,
411,
90,
16,
306,
4931,
26717,
16,
272,
16,
677,
16,
293,
6830,
1059,
30,
411,
15416,
16,
24295,
16,
1363,
16,
3286,
34,
411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4529,
554,
67,
464,
67,
15056,
67,
2107,
7067,
67,
792,
67,
71,
18282,
67,
267,
67,
1369,
12,
1369,
4672,
3536,
6083,
279,
2114,
980,
16,
4395,
358,
10627,
3884,
434,
21145,
296,
2107,
7067,
11,
316,
326,
980,
18,
587,
500,
13727,
2690,
818,
7067,
16,
283,
17,
297,
3676,
518,
1368,
279,
4529,
1353,
16,
471,
2267,
518,
731,
598,
2342,
18,
9980,
1207,
818,
7067,
316,
326,
3751,
1353,
30,
2504,
326,
13336,
471,
8041,
4123,
487,
24150,
16,
6626,
16,
776,
18,
4832,
326,
1936,
411,
550,
1385,
294,
3940,
34,
512,
18,
75,
29710,
6910,
326,
533,
296,
6485,
432,
16,
26861,
1059,
11,
598,
296,
37,
1059,
11,
9697,
16,
326,
2
] |
return "(%s%s %s)" % (n.value, props(), o(n[0],i,c))
|
return "(%s%s %s)" % (n.value.upper(), props(), o(n[0],i,c))
|
def props(): if c["include_props"]: props_to_include = [x for x in ("lineno", "start", "end", "readOnly") if hasattr(n, x)] if len(props_to_include) > 0: s = " (@" for prop in props_to_include: s += " (%s %s)" % (prop, getattr(n, prop)) return s +")" return ""
|
df699fbcef0551b57fbcf593691a41515ef3b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4710/df699fbcef0551b57fbcf593691a41515ef3b880/sexp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
309,
3859,
12,
82,
16,
619,
25887,
309,
562,
12,
9693,
67,
869,
67,
6702,
13,
405,
374,
30,
272,
273,
315,
261,
27614,
364,
2270,
316,
3458,
67,
869,
67,
6702,
30,
272,
1011,
315,
6142,
87,
738,
87,
2225,
738,
261,
5986,
16,
3869,
12,
82,
16,
2270,
3719,
327,
272,
397,
6,
2225,
327,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
309,
3859,
12,
82,
16,
619,
25887,
309,
562,
12,
9693,
67,
869,
67,
6702,
13,
405,
374,
30,
272,
273,
315,
261,
27614,
364,
2270,
316,
3458,
67,
869,
67,
6702,
30,
272,
1011,
315,
6142,
87,
738,
87,
2225,
738,
261,
5986,
16,
3869,
12,
82,
16,
2270,
3719,
327,
272,
397,
6,
2225,
327,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.ids.append(gutils.trim(element,'<a href="view.php?page=film&fid=','">')) self.titles.append(gutils.trim(element,">","</a>"))
|
elementid = gutils.digits_only( gutils.trim(element,'<a href="view.php?page=film&fid=','">') ) if elementid != 0: self.ids.append(elementid) self.titles.append(gutils.trim(element,">","</a>"))
|
def get_searches(self): elements = string.split(self.page,"<br>")
|
6dd280707e2a1c5e8b7fb4161976b0c377d92880 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/6dd280707e2a1c5e8b7fb4161976b0c377d92880/PluginMovieOFDb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3072,
281,
12,
2890,
4672,
2186,
273,
533,
18,
4939,
12,
2890,
18,
2433,
10837,
32,
2848,
2984,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3072,
281,
12,
2890,
4672,
2186,
273,
533,
18,
4939,
12,
2890,
18,
2433,
10837,
32,
2848,
2984,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
indexer.update([change.object], after_index, transaction, flush)
|
indexer.update([change.object], after_index, use_transaction, flush)
|
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
|
8cabc0f58df244c2ca465778c8dcf121434fc38d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4645/8cabc0f58df244c2ca465778c8dcf121434fc38d/index.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
1615,
12,
2603,
4672,
309,
3988,
30,
2589,
18,
10283,
18,
2626,
2668,
1093,
13,
2589,
18,
10283,
18,
11330,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
11330,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
7/2 1/2 3 4/3 2.82842712475 1
|
(7/2) (1/2) 3 (4/3) 2.82842712475 1
|
def test(): '''\ Test function for rat module. The expected output is (module some differences in floating precission): -1 -1 0 0L 0.1 (0.1+0j) [Rat(1,2), Rat(-3,10), Rat(1,25), Rat(1,4)] [Rat(-3,10), Rat(1,25), Rat(1,4), Rat(1,2)] 0 11/10 11/10 1.1 OK 2 1.5 3/2 (1.5+1.5j) 15707963/5000000 2 2 2.0 (2+0j) 4 0 4 1 4 0 3.5 0.5 3.0 1.33333333333 2.82842712475 1 7/2 1/2 3 4/3 2.82842712475 1 (3.5+1.5j) (0.5-1.5j) (3+3j) (0.666666666667-0.666666666667j) (1.43248815986+2.43884761145j) 1 1.5 1 1.5 (1.5+0j) 3.5 -0.5 3.0 0.75 2.25 -1 3.0 0.0 2.25 1.0 1.83711730709 0 3.0 0.0 2.25 1.0 1.83711730709 1 (3+1.5j) -1.5j (2.25+2.25j) (0.5-0.5j) (1.50768393746+1.04970907623j) -1 3/2 1 1.5 (1.5+0j) 7/2 -1/2 3 3/4 9/4 -1 3.0 0.0 2.25 1.0 1.83711730709 -1 3 0 9/4 1 1.83711730709 0 (3+1.5j) -1.5j (2.25+2.25j) (0.5-0.5j) (1.50768393746+1.04970907623j) -1 (1.5+1.5j) (1.5+1.5j) (3.5+1.5j) (-0.5+1.5j) (3+3j) (0.75+0.75j) 4.5j -1 (3+1.5j) 1.5j (2.25+2.25j) (1+1j) (1.18235814075+2.85446505899j) 1 (3+1.5j) 1.5j (2.25+2.25j) (1+1j) (1.18235814075+2.85446505899j) 1 (3+3j) 0j 4.5j (1+0j) (-0.638110484918+0.705394566962j) 0 ''' print rat(-1L, 1) print rat(1, -1) a = rat(1, 10) print int(a), long(a), float(a), complex(a) b = rat(2, 5) l = [a+b, a-b, a*b, a/b] print l l.sort() print l print rat(0, 1) print a+1 print a+1L print a+1.0 try: print rat(1, 0) raise SystemError, 'should have been ZeroDivisionError' except ZeroDivisionError: print 'OK' print rat(2), rat(1.5), rat(3, 2), rat(1.5+1.5j), rat(31415926,10000000) list = [2, 1.5, rat(3,2), 1.5+1.5j] for i in list: print i, if type(i) is not ComplexType: print int(i), float(i), print complex(i) print for j in list: print i + j, i - j, i * j, i / j, i ** j, cmp(i, j)
|
22442234d27ccf460643cc9f5ef327c3f778d61e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/22442234d27ccf460643cc9f5ef327c3f778d61e/Rat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
875,
8314,
7766,
445,
364,
15183,
1605,
18,
225,
1021,
2665,
876,
353,
261,
2978,
2690,
16440,
316,
13861,
13382,
19710,
4672,
300,
21,
300,
21,
374,
374,
48,
374,
18,
21,
261,
20,
18,
21,
15,
20,
78,
13,
306,
29635,
12,
21,
16,
22,
3631,
534,
270,
19236,
23,
16,
2163,
3631,
534,
270,
12,
21,
16,
2947,
3631,
534,
270,
12,
21,
16,
24,
25887,
306,
29635,
19236,
23,
16,
2163,
3631,
534,
270,
12,
21,
16,
2947,
3631,
534,
270,
12,
21,
16,
24,
3631,
534,
270,
12,
21,
16,
22,
25887,
374,
4648,
19,
2163,
4648,
19,
2163,
404,
18,
21,
7791,
576,
404,
18,
25,
890,
19,
22,
261,
21,
18,
25,
15,
21,
18,
25,
78,
13,
4711,
7301,
7235,
4449,
19,
25,
9449,
576,
576,
576,
18,
20,
261,
22,
15,
20,
78,
13,
225,
1059,
374,
1059,
404,
1059,
374,
890,
18,
25,
374,
18,
25,
890,
18,
20,
404,
18,
18094,
18094,
3707,
23,
576,
18,
11149,
5193,
5324,
24734,
5877,
404,
261,
27,
19,
22,
13,
261,
21,
19,
22,
13,
890,
261,
24,
19,
23,
13,
576,
18,
11149,
5193,
5324,
24734,
5877,
404,
261,
23,
18,
25,
15,
21,
18,
25,
78,
13,
261,
20,
18,
25,
17,
21,
18,
25,
78,
13,
261,
23,
15,
23,
78,
13,
261,
20,
18,
31684,
31684,
6028,
9599,
17,
20,
18,
31684,
31684,
6028,
9599,
78,
13,
261,
21,
18,
24,
1578,
24,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
875,
8314,
7766,
445,
364,
15183,
1605,
18,
225,
1021,
2665,
876,
353,
261,
2978,
2690,
16440,
316,
13861,
13382,
19710,
4672,
300,
21,
300,
21,
374,
374,
48,
374,
18,
21,
261,
20,
18,
21,
15,
20,
78,
13,
306,
29635,
12,
21,
16,
22,
3631,
534,
270,
19236,
23,
16,
2163,
3631,
534,
270,
12,
21,
16,
2947,
3631,
534,
270,
12,
21,
16,
24,
25887,
306,
29635,
19236,
23,
16,
2163,
3631,
534,
270,
12,
21,
16,
2947,
3631,
534,
270,
12,
21,
16,
24,
3631,
534,
270,
12,
21,
16,
22,
25887,
374,
4648,
19,
2163,
4648,
19,
2163,
404,
18,
21,
7791,
576,
404,
18,
25,
890,
19,
22,
261,
21,
2
] |
leveltuple = (1, 0, 2, 3, 4,)
|
leveltuple = (1, 0, 2, 3,)
|
def do(self): f = self.doDownload() # FIXME: we should probably read in the patch directly now # that we aren't just applying in a pipeline
|
0e2a9a8e7528449814094d5a1e4efcb437729517 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/0e2a9a8e7528449814094d5a1e4efcb437729517/source.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
4672,
284,
273,
365,
18,
2896,
7109,
1435,
468,
9852,
30,
732,
1410,
8656,
855,
316,
326,
4729,
5122,
2037,
468,
716,
732,
11526,
1404,
2537,
13650,
316,
279,
5873,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
4672,
284,
273,
365,
18,
2896,
7109,
1435,
468,
9852,
30,
732,
1410,
8656,
855,
316,
326,
4729,
5122,
2037,
468,
716,
732,
11526,
1404,
2537,
13650,
316,
279,
5873,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.downloads.append(d)
|
self.get_downloads().append(d)
|
def add_download(self, d): max_queued = int(self.get_setting('max_queued', 0)) if max_queued and (len(self.downloads) >= max_queued): raise Exception('Too many downloads queued (see "max_queued" config var)')
|
a1911aafcb90976a58220f7b22d873526957c643 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12636/a1911aafcb90976a58220f7b22d873526957c643/manager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7813,
12,
2890,
16,
302,
4672,
943,
67,
19499,
273,
509,
12,
2890,
18,
588,
67,
8920,
2668,
1896,
67,
19499,
2187,
374,
3719,
309,
943,
67,
19499,
471,
261,
1897,
12,
2890,
18,
7813,
87,
13,
1545,
943,
67,
19499,
4672,
1002,
1185,
2668,
10703,
4906,
23011,
12234,
261,
5946,
315,
1896,
67,
19499,
6,
642,
569,
2506,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7813,
12,
2890,
16,
302,
4672,
943,
67,
19499,
273,
509,
12,
2890,
18,
588,
67,
8920,
2668,
1896,
67,
19499,
2187,
374,
3719,
309,
943,
67,
19499,
471,
261,
1897,
12,
2890,
18,
7813,
87,
13,
1545,
943,
67,
19499,
4672,
1002,
1185,
2668,
10703,
4906,
23011,
12234,
261,
5946,
315,
1896,
67,
19499,
6,
642,
569,
2506,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
prefs = PimpPreferences() prefs.check()
|
prefs = PimpPreferences(**prefargs) rv = prefs.check() if rv: sys.stdout.write(rv)
|
def _run(mode, verbose, force, args): """Engine for the main program""" prefs = PimpPreferences() prefs.check() db = PimpDatabase(prefs) db.appendURL(prefs.pimpDatabase) if mode == 'dump': db.dump(sys.stdout) elif mode =='list': if not args: args = db.listnames() print "%-20.20s\t%s" % ("Package", "Description") print for pkgname in args: pkg = db.find(pkgname) if pkg: description = pkg.description() pkgname = pkg.fullname() else: description = 'Error: no such package' print "%-20.20s\t%s" % (pkgname, description) if verbose: print "\tHome page:\t", pkg.homepage() print "\tDownload URL:\t", pkg.downloadURL() elif mode =='status': if not args: args = db.listnames() print "%-20.20s\t%s\t%s" % ("Package", "Installed", "Message") print for pkgname in args: pkg = db.find(pkgname) if pkg: status, msg = pkg.installed() pkgname = pkg.fullname() else: status = 'error' msg = 'No such package' print "%-20.20s\t%-9.9s\t%s" % (pkgname, status, msg) if verbose and status == "no": prereq = pkg.prerequisites() for pkg, msg in prereq: if not pkg: pkg = '' else: pkg = pkg.fullname() print "%-20.20s\tRequirement: %s %s" % ("", pkg, msg) elif mode == 'install': if not args: print 'Please specify packages to install' sys.exit(1) inst = PimpInstaller(db) for pkgname in args: pkg = db.find(pkgname) if not pkg: print '%s: No such package' % pkgname continue list, messages = inst.prepareInstall(pkg, force) if messages and not force: print "%s: Not installed:" % pkgname for m in messages: print "\t", m else: if verbose: output = sys.stdout else: output = None messages = inst.install(list, output) if messages: print "%s: Not installed:" % pkgname for m in messages: print "\t", m
|
f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
3188,
16,
3988,
16,
2944,
16,
833,
4672,
3536,
4410,
364,
326,
2774,
5402,
8395,
225,
15503,
273,
453,
14532,
12377,
12,
636,
25724,
1968,
13,
5633,
273,
15503,
18,
1893,
1435,
309,
5633,
30,
2589,
18,
10283,
18,
2626,
12,
4962,
13,
1319,
273,
453,
14532,
4254,
12,
1484,
2556,
13,
1319,
18,
6923,
1785,
12,
1484,
2556,
18,
84,
14532,
4254,
13,
225,
309,
1965,
422,
296,
8481,
4278,
1319,
18,
8481,
12,
9499,
18,
10283,
13,
1327,
1965,
422,
11,
1098,
4278,
309,
486,
833,
30,
833,
273,
1319,
18,
1098,
1973,
1435,
1172,
2213,
17,
3462,
18,
3462,
87,
64,
88,
9,
87,
6,
738,
7566,
2261,
3113,
315,
3291,
7923,
1172,
364,
29348,
316,
833,
30,
3475,
273,
1319,
18,
4720,
12,
10657,
529,
13,
309,
3475,
30,
2477,
273,
3475,
18,
3384,
1435,
29348,
273,
3475,
18,
21885,
1435,
469,
30,
2477,
273,
296,
668,
30,
1158,
4123,
2181,
11,
1172,
2213,
17,
3462,
18,
3462,
87,
64,
88,
9,
87,
6,
738,
261,
10657,
529,
16,
2477,
13,
309,
3988,
30,
1172,
1548,
88,
8684,
1363,
5581,
88,
3113,
3475,
18,
28729,
1435,
1172,
1548,
88,
7109,
1976,
5581,
88,
3113,
3475,
18,
7813,
1785,
1435,
1327,
1965,
422,
11,
2327,
4278,
309,
486,
833,
30,
833,
273,
1319,
18,
1098,
1973,
1435,
1172,
2213,
17,
3462,
18,
3462,
87,
64,
88,
9,
87,
64,
88,
9,
87,
6,
738,
7566,
2261,
3113,
315,
16747,
3113,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
3188,
16,
3988,
16,
2944,
16,
833,
4672,
3536,
4410,
364,
326,
2774,
5402,
8395,
225,
15503,
273,
453,
14532,
12377,
12,
636,
25724,
1968,
13,
5633,
273,
15503,
18,
1893,
1435,
309,
5633,
30,
2589,
18,
10283,
18,
2626,
12,
4962,
13,
1319,
273,
453,
14532,
4254,
12,
1484,
2556,
13,
1319,
18,
6923,
1785,
12,
1484,
2556,
18,
84,
14532,
4254,
13,
225,
309,
1965,
422,
296,
8481,
4278,
1319,
18,
8481,
12,
9499,
18,
10283,
13,
1327,
1965,
422,
11,
1098,
4278,
309,
486,
833,
30,
833,
273,
1319,
18,
1098,
1973,
1435,
1172,
2213,
17,
3462,
18,
3462,
87,
64,
88,
9,
87,
6,
738,
7566,
2261,
3113,
315,
3291,
7923,
2
] |
errors.append(StructuringError(estr, heading_token))
|
errors.append(StructuringError(estr, heading_token.startline))
|
def _add_section(doc, heading_token, stack, indent_stack, errors, warnings): """Add a new section to the DOM tree, with the given heading.""" if indent_stack[-1] == None: indent_stack[-1] = heading_token.indent elif indent_stack[-1] != heading_token.indent: estr = "Improper heading indentation." errors.append(StructuringError(estr, heading_token)) # Check for errors. for tok in stack[2:]: if tok.tagName != "section": estr = "Headings must occur at the top level." errors.append(StructuringError(estr, heading_token)) break if (heading_token.level+2) > len(stack): estr = "Wrong underline character for heading." errors.append(StructuringError(estr, heading_token)) # Pop the appropriate number of headings so we're at the # correct level. stack[heading_token.level+2:] = [] indent_stack[heading_token.level+2:] = [] # Colorize the heading head = _colorize(doc, heading_token, errors, warnings, 'heading') # Add the section's and heading's DOM elements. sec = doc.createElement("section") stack[-1].appendChild(sec) stack.append(sec) sec.appendChild(head) indent_stack.append(None)
|
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,
1289,
67,
3464,
12,
2434,
16,
11053,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
16,
5599,
4672,
3536,
986,
279,
394,
2442,
358,
326,
4703,
2151,
16,
598,
326,
864,
11053,
12123,
309,
3504,
67,
3772,
18919,
21,
65,
422,
599,
30,
3504,
67,
3772,
18919,
21,
65,
273,
11053,
67,
2316,
18,
9355,
1327,
3504,
67,
3772,
18919,
21,
65,
480,
11053,
67,
2316,
18,
9355,
30,
5001,
313,
273,
315,
1170,
22754,
11053,
12018,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
18,
1937,
1369,
3719,
225,
468,
2073,
364,
1334,
18,
364,
946,
316,
2110,
63,
22,
30,
14542,
309,
946,
18,
2692,
461,
480,
315,
3464,
6877,
5001,
313,
273,
315,
1414,
899,
1297,
3334,
622,
326,
1760,
1801,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
18,
1937,
1369,
3719,
898,
309,
261,
19948,
67,
2316,
18,
2815,
15,
22,
13,
405,
562,
12,
3772,
4672,
5001,
313,
273,
315,
13634,
25985,
3351,
364,
11053,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
18,
1937,
1369,
3719,
225,
468,
10264,
326,
5505,
1300,
434,
910,
899,
1427,
732,
4565,
622,
326,
468,
3434,
1801,
18,
2110,
63,
19948,
67,
2316,
18,
2815,
15,
22,
26894,
273,
5378,
3504,
67,
3772,
63,
19948,
67,
2316,
18,
2815,
15,
22,
26894,
273,
5378,
225,
468,
5563,
554,
326,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
3464,
12,
2434,
16,
11053,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
16,
5599,
4672,
3536,
986,
279,
394,
2442,
358,
326,
4703,
2151,
16,
598,
326,
864,
11053,
12123,
309,
3504,
67,
3772,
18919,
21,
65,
422,
599,
30,
3504,
67,
3772,
18919,
21,
65,
273,
11053,
67,
2316,
18,
9355,
1327,
3504,
67,
3772,
18919,
21,
65,
480,
11053,
67,
2316,
18,
9355,
30,
5001,
313,
273,
315,
1170,
22754,
11053,
12018,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
18,
1937,
1369,
3719,
225,
468,
2073,
364,
1334,
18,
364,
946,
316,
2110,
63,
22,
30,
14542,
309,
946,
18,
2692,
461,
2
] |
a = self.dispatch['return'](self.cur[-2], t)
|
a = self.dispatch['return'](self, self.cur[-2], t)
|
def simulate_cmd_complete(self): t = self.get_time() - self.t while self.cur[-1]: # We *can* cause assertion errors here if # dispatch_trace_return checks for a frame match! a = self.dispatch['return'](self.cur[-2], t) t = 0 self.t = self.get_time() - t
|
e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3/profile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20089,
67,
4172,
67,
6226,
12,
2890,
4672,
268,
273,
365,
18,
588,
67,
957,
1435,
300,
365,
18,
88,
1323,
365,
18,
1397,
18919,
21,
14542,
468,
1660,
380,
4169,
14,
4620,
11240,
1334,
2674,
309,
468,
3435,
67,
5129,
67,
2463,
4271,
364,
279,
2623,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20089,
67,
4172,
67,
6226,
12,
2890,
4672,
268,
273,
365,
18,
588,
67,
957,
1435,
300,
365,
18,
88,
1323,
365,
18,
1397,
18919,
21,
14542,
468,
1660,
380,
4169,
14,
4620,
11240,
1334,
2674,
309,
468,
3435,
67,
5129,
67,
2463,
4271,
364,
279,
2623,
845,
5,
279,
273,
365,
18,
10739,
3292,
2463,
3546,
12,
2890,
16,
365,
18,
1397,
18919,
22,
6487,
268,
13,
268,
273,
374,
365,
18,
88,
273,
365,
18,
588,
67,
957,
1435,
300,
268,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if isinstance(s, None):
|
if s is None:
|
def form_argument(self, x): if x.shape(): # Get symmetry mapping if any e = x.element() s = None if isinstance(e, TensorElement): s = e.symmetry() if isinstance(s, None): s = {} # Map component throught the symmetry mapping c = self.component() c = s.get(c, c) return x[c] return x
|
418382bf7ecf558be0f2c4a19e3050538d2396cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/418382bf7ecf558be0f2c4a19e3050538d2396cf/transformations.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
3446,
12,
2890,
16,
619,
4672,
309,
619,
18,
4867,
13332,
468,
968,
26144,
2874,
309,
1281,
425,
273,
619,
18,
2956,
1435,
272,
273,
599,
309,
1549,
12,
73,
16,
13422,
1046,
4672,
272,
273,
425,
18,
8117,
18042,
1435,
309,
272,
353,
599,
30,
272,
273,
2618,
468,
1635,
1794,
286,
303,
9540,
326,
26144,
2874,
276,
273,
365,
18,
4652,
1435,
276,
273,
272,
18,
588,
12,
71,
16,
276,
13,
327,
619,
63,
71,
65,
327,
619,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
3446,
12,
2890,
16,
619,
4672,
309,
619,
18,
4867,
13332,
468,
968,
26144,
2874,
309,
1281,
425,
273,
619,
18,
2956,
1435,
272,
273,
599,
309,
1549,
12,
73,
16,
13422,
1046,
4672,
272,
273,
425,
18,
8117,
18042,
1435,
309,
272,
353,
599,
30,
272,
273,
2618,
468,
1635,
1794,
286,
303,
9540,
326,
26144,
2874,
276,
273,
365,
18,
4652,
1435,
276,
273,
272,
18,
588,
12,
71,
16,
276,
13,
327,
619,
63,
71,
65,
327,
619,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
box = (xd, y_diff, x, (y-y_diff))
|
box = (int(xd), int(y_diff), int(x), int(y-y_diff))
|
def create_size(self, photosize): if self.size_exists(photosize): return if not os.path.isdir(self.cache_path()): os.makedirs(self.cache_path()) try: im = Image.open(self.get_image_filename()) except IOError: return if im.size == photosize.size(): shutil.copy(self.get_image_filename(), self._get_SIZE_path(photosize)) return cur_width, cur_height = im.size new_width, new_height = photosize.size() if photosize.crop: ratio = max(float(new_width)/cur_width,float(new_height)/cur_height) x = (cur_width * ratio) y = (cur_height * ratio) xd = abs(new_width - x) yd = abs(new_height - y) x_diff = int(xd / 2) y_diff = int(yd / 2) if self.crop_from == 'top': box = (x_diff, 0, (x-x_diff), new_height) elif self.crop_from == 'left': box = (0, y_diff, new_width, (y-y_diff)) elif self.crop_from == 'bottom': box = (x_diff, yd, (x-x_diff), y) # y - yd = new_height elif self.crop_from == 'right': box = (xd, y_diff, x, (y-y_diff)) # x - xd = new_width else: box = (x_diff, y_diff, (x-x_diff), (y-y_diff)) resized = im.resize((int(x), int(y)), Image.ANTIALIAS).crop(box) else: if not new_width == 0 and not new_height == 0: if cur_width > cur_height: ratio = float(new_width)/cur_width else: ratio = float(new_height)/cur_height else: if new_width == 0: ratio = float(new_height)/cur_height else: ratio = float(new_width)/cur_width resized = im.resize((int(cur_width*ratio), int(cur_height*ratio)), Image.ANTIALIAS) if self.filter_set is not None: filter_set = self.filter_set.filters.all() elif photosize.filter_set is not None: filter_set = list(photosize.filter_set.filters.all()) else: filter_set = None if filter_set is not None: for f in filter_set: filter = getattr(ImageFilter, f.name, None) if filter is not None: resized = resized.filter(filter) resized_filename = getattr(self, "get_%s_path" % photosize.name)() try: if im.format == 'JPEG': resized.save(resized_filename, 'JPEG', quality=photosize.quality, optimize=True) else: resized.save(resized_filename) except IOError, e: if os.path.isfile(resized_filename): os.unlink(resized_filename) raise e
|
ea960d93c117c05d566049c4805cfbfaedb62662 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10711/ea960d93c117c05d566049c4805cfbfaedb62662/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1467,
12,
2890,
16,
18185,
554,
4672,
309,
365,
18,
1467,
67,
1808,
12,
29121,
554,
4672,
327,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
2493,
67,
803,
1435,
4672,
1140,
18,
81,
9477,
10539,
12,
2890,
18,
2493,
67,
803,
10756,
775,
30,
709,
273,
3421,
18,
3190,
12,
2890,
18,
588,
67,
2730,
67,
3459,
10756,
1335,
8340,
30,
327,
309,
709,
18,
1467,
422,
18185,
554,
18,
1467,
13332,
11060,
18,
3530,
12,
2890,
18,
588,
67,
2730,
67,
3459,
9334,
365,
6315,
588,
67,
4574,
67,
803,
12,
29121,
554,
3719,
327,
662,
67,
2819,
16,
662,
67,
4210,
273,
709,
18,
1467,
394,
67,
2819,
16,
394,
67,
4210,
273,
18185,
554,
18,
1467,
1435,
309,
18185,
554,
18,
13758,
30,
7169,
273,
943,
12,
5659,
12,
2704,
67,
2819,
13176,
1397,
67,
2819,
16,
5659,
12,
2704,
67,
4210,
13176,
1397,
67,
4210,
13,
619,
273,
261,
1397,
67,
2819,
380,
7169,
13,
677,
273,
261,
1397,
67,
4210,
380,
7169,
13,
20009,
273,
2417,
12,
2704,
67,
2819,
300,
619,
13,
677,
72,
273,
2417,
12,
2704,
67,
4210,
300,
677,
13,
619,
67,
5413,
273,
509,
12,
7669,
342,
576,
13,
677,
67,
5413,
273,
509,
12,
93,
72,
342,
576,
13,
309,
365,
18,
13758,
67,
2080,
422,
296,
3669,
4278,
3919,
273,
261,
92,
67,
5413,
16,
374,
16,
261,
92,
17,
92,
67,
5413,
3631,
394,
67,
4210,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1467,
12,
2890,
16,
18185,
554,
4672,
309,
365,
18,
1467,
67,
1808,
12,
29121,
554,
4672,
327,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
2493,
67,
803,
1435,
4672,
1140,
18,
81,
9477,
10539,
12,
2890,
18,
2493,
67,
803,
10756,
775,
30,
709,
273,
3421,
18,
3190,
12,
2890,
18,
588,
67,
2730,
67,
3459,
10756,
1335,
8340,
30,
327,
309,
709,
18,
1467,
422,
18185,
554,
18,
1467,
13332,
11060,
18,
3530,
12,
2890,
18,
588,
67,
2730,
67,
3459,
9334,
365,
6315,
588,
67,
4574,
67,
803,
12,
29121,
554,
3719,
327,
662,
67,
2819,
16,
662,
67,
4210,
273,
709,
18,
1467,
394,
67,
2819,
16,
394,
2
] |
""" Tear down test fixtures """
|
""" Tear down test fixtures. """
|
def tearDown(self): """ Tear down test fixtures """ scaffold.mock_restore()
|
33a5bfc655a6417210c5c80d9f942714bf596533 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/33a5bfc655a6417210c5c80d9f942714bf596533/test_daemon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
3536,
399,
2091,
2588,
1842,
23302,
18,
3536,
20992,
18,
22851,
67,
13991,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
3536,
399,
2091,
2588,
1842,
23302,
18,
3536,
20992,
18,
22851,
67,
13991,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
roles = [local_roles_map[name], roles_map[pseudoperm]]
|
roles = (local_roles_map[name],) + roles_map[pseudoperm]
|
def makeCMFWikiPage(id, title, file): ob = CMFWikiPage(file, __name__=id) ob.title = title ob.parents = [] username = getSecurityManager().getUser().getUserName() ob.manage_addLocalRoles(username, ['Owner']) ob.setSubOwner('both') initPageMetadata(ob) for name, perm in ob._perms.items(): pseudoperm = default_perms[name] local_roles_map = ob._local_roles_map roles_map = ob._roles_map roles = [local_roles_map[name], roles_map[pseudoperm]] ob.manage_permission(perm, roles=roles) return ob
|
2262b1426eb2bef7e8d92c63a8c506f11ee616d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/2262b1426eb2bef7e8d92c63a8c506f11ee616d3/CMFWikiPage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
9611,
42,
25438,
1964,
12,
350,
16,
2077,
16,
585,
4672,
3768,
273,
385,
13542,
25438,
1964,
12,
768,
16,
1001,
529,
972,
33,
350,
13,
3768,
18,
2649,
273,
2077,
3768,
18,
12606,
273,
5378,
2718,
273,
19288,
1318,
7675,
588,
1299,
7675,
588,
15296,
1435,
3768,
18,
12633,
67,
1289,
2042,
6898,
12,
5053,
16,
10228,
5541,
19486,
3768,
18,
542,
1676,
5541,
2668,
18237,
6134,
1208,
1964,
2277,
12,
947,
13,
364,
508,
16,
4641,
316,
3768,
6315,
15969,
18,
3319,
13332,
29606,
4063,
81,
273,
805,
67,
15969,
63,
529,
65,
1191,
67,
7774,
67,
1458,
273,
3768,
6315,
3729,
67,
7774,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
9611,
42,
25438,
1964,
12,
350,
16,
2077,
16,
585,
4672,
3768,
273,
385,
13542,
25438,
1964,
12,
768,
16,
1001,
529,
972,
33,
350,
13,
3768,
18,
2649,
273,
2077,
3768,
18,
12606,
273,
5378,
2718,
273,
19288,
1318,
7675,
588,
1299,
7675,
588,
15296,
1435,
3768,
18,
12633,
67,
1289,
2042,
6898,
12,
5053,
16,
10228,
5541,
19486,
3768,
18,
542,
1676,
5541,
2668,
18237,
6134,
1208,
1964,
2277,
12,
947,
13,
364,
508,
16,
4641,
316,
3768,
6315,
15969,
18,
3319,
13332,
29606,
4063,
81,
273,
805,
67,
15969,
63,
529,
65,
1191,
67,
7774,
67,
1458,
273,
3768,
6315,
3729,
67,
7774,
67,
1458,
4900,
67,
1458,
273,
3768,
6315,
7774,
67,
1458,
2
] |
'state' : fields.selection([('pending','Pending'),('processing','Processing'),('done','Done')], 'Status', readonly=True),
|
'state' : fields.selection([('Running','running'),('Error','error')], 'Status', readonly=True),
|
def _customer_gender_code(self, cr, uid, ids, name, args, context={}): result ={} for id in ids: code="" cust_gender = self.browse(cr,uid,[id])[0] if cust_gender.lang_id: if not cust_gender.from_gender_id: code='_'.join([cust_gender.lang_id.code, cust_gender.to_gender_id.name]) else: code='_'.join([cust_gender.lang_id.code, 'from', cust_gender.from_gender_id.name, 'to', cust_gender.to_gender_id.name]) else: if not cust_gender.from_gender_id: code=cust_gender.to_gender_id.name else: code='_'.join(['from', cust_gender.from_gender_id.name, 'to', cust_gender.to_gender_id.name]) result[id]=code return result
|
855146a0c52e9d6cd07e948188c68b011482b7f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/855146a0c52e9d6cd07e948188c68b011482b7f1/customer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10061,
67,
27638,
67,
710,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
273,
2916,
364,
612,
316,
3258,
30,
981,
1546,
6,
276,
641,
67,
27638,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
63,
350,
5717,
63,
20,
65,
309,
276,
641,
67,
27638,
18,
4936,
67,
350,
30,
309,
486,
276,
641,
67,
27638,
18,
2080,
67,
27638,
67,
350,
30,
981,
2218,
4623,
18,
5701,
3816,
71,
641,
67,
27638,
18,
4936,
67,
350,
18,
710,
16,
276,
641,
67,
27638,
18,
869,
67,
27638,
67,
350,
18,
529,
5717,
469,
30,
981,
2218,
4623,
18,
5701,
3816,
71,
641,
67,
27638,
18,
4936,
67,
350,
18,
710,
16,
296,
2080,
2187,
276,
641,
67,
27638,
18,
2080,
67,
27638,
67,
350,
18,
529,
16,
296,
869,
2187,
276,
641,
67,
27638,
18,
869,
67,
27638,
67,
350,
18,
529,
5717,
469,
30,
309,
486,
276,
641,
67,
27638,
18,
2080,
67,
27638,
67,
350,
30,
981,
33,
71,
641,
67,
27638,
18,
869,
67,
27638,
67,
350,
18,
529,
469,
30,
981,
2218,
4623,
18,
5701,
12,
3292,
2080,
2187,
276,
641,
67,
27638,
18,
2080,
67,
27638,
67,
350,
18,
529,
16,
296,
869,
2187,
276,
641,
67,
27638,
18,
869,
67,
27638,
67,
350,
18,
529,
5717,
563,
63,
350,
65,
33,
710,
327,
563,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10061,
67,
27638,
67,
710,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
273,
2916,
364,
612,
316,
3258,
30,
981,
1546,
6,
276,
641,
67,
27638,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
63,
350,
5717,
63,
20,
65,
309,
276,
641,
67,
27638,
18,
4936,
67,
350,
30,
309,
486,
276,
641,
67,
27638,
18,
2080,
67,
27638,
67,
350,
30,
981,
2218,
4623,
18,
5701,
3816,
71,
641,
67,
27638,
18,
4936,
67,
350,
18,
710,
16,
276,
641,
67,
27638,
18,
869,
67,
27638,
67,
350,
18,
529,
5717,
469,
30,
981,
2218,
4623,
18,
5701,
3816,
71,
641,
67,
27638,
18,
2
] |
except IOError: print "Warning: can't open %path" %path
|
except IOError, msg: print "!! Warning: can't open %s \n\t" %path, msg return None
|
def _get_raw_desc(self, pac, to_get):
|
1a2369be258ddb63fcc038c54dfe2023cfd38aa1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/1a2369be258ddb63fcc038c54dfe2023cfd38aa1/pacman.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1899,
67,
5569,
12,
2890,
16,
293,
1077,
16,
358,
67,
588,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1899,
67,
5569,
12,
2890,
16,
293,
1077,
16,
358,
67,
588,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Rational cuspidal subgroup with invariants [3, 3, 9] over QQ of Jacobian of the modular curve associated to the congruence subgroup Gamma0(54)
|
Rational cuspidal subgroup with invariants [3, 3, 9] over QQ of Abelian variety J0(54) of dimension 4
|
def rational_cuspidal_subgroup(self): """ Return the subgroup of this modular abelian variety generated by rational cusps.
|
62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
71,
407,
6610,
287,
67,
1717,
1655,
12,
2890,
4672,
3536,
2000,
326,
720,
1655,
434,
333,
681,
2490,
1223,
292,
2779,
1394,
14369,
4374,
635,
436,
8371,
27964,
1121,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
71,
407,
6610,
287,
67,
1717,
1655,
12,
2890,
4672,
3536,
2000,
326,
720,
1655,
434,
333,
681,
2490,
1223,
292,
2779,
1394,
14369,
4374,
635,
436,
8371,
27964,
1121,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif collection[2] == 'Extras Packages for Enterprise Linux':
|
elif collection[1] == 'Fedora EPEL':
|
def set_branch_info(self): '''Set the branch information. All the branches we setup need to have branch information added. ''' self.dbCmd.execute("select id, name, version from collection") collections = {} for collection in self.dbCmd.fetchall(): cid = collection[0] collections[cid] = {'id' : cid} if collection[1] == 'Fedora': collections[cid]['branchname'] = 'F-' + collection[2] collections[cid]['disttag'] = '.fc' + collection[2] elif collection[2] == 'Fedora Extras': collections[cid]['branchname'] = 'FC-' + collection[2] collections[cid]['disttag'] = '.fc' + collection[2] elif collection[2] == 'Red Hat Linux': collections[cid]['branchname'] = 'RHL-' + collection[2] collections[cid]['disttag'] = '.rhl' + collection[2] elif collection[2] == 'Extras Packages for Enterprise Linux': collections[cid]['branchname'] = 'EL-' + collection[2] collections[cid]['disttag'] = '.el' + collection[2] elif collection[2] == 'One Laptop Per Child': collections[cid]['branchname'] = 'OLPC-' + collection[2] collections[cid]['disttag'] = '.olpc' + collection[2] else: logging.warning('%s is not a known collection. Please set branch information manually' % cid) del (collections[cid]) continue
|
207a9ae6fdfc28643d37feaf12c85459e5d63192 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/207a9ae6fdfc28643d37feaf12c85459e5d63192/pkgdb-import.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
7500,
67,
1376,
12,
2890,
4672,
9163,
694,
326,
3803,
1779,
18,
225,
4826,
326,
11483,
732,
3875,
1608,
358,
1240,
3803,
1779,
3096,
18,
9163,
365,
18,
1966,
5931,
18,
8837,
2932,
4025,
612,
16,
508,
16,
1177,
628,
1849,
7923,
6980,
273,
2618,
364,
1849,
316,
365,
18,
1966,
5931,
18,
5754,
454,
13332,
7504,
273,
1849,
63,
20,
65,
6980,
63,
13478,
65,
273,
13666,
350,
11,
294,
7504,
97,
309,
1849,
63,
21,
65,
422,
296,
42,
15534,
4278,
6980,
63,
13478,
23962,
7500,
529,
3546,
273,
296,
42,
6627,
397,
1849,
63,
22,
65,
6980,
63,
13478,
23962,
4413,
2692,
3546,
273,
2418,
7142,
11,
397,
1849,
63,
22,
65,
1327,
1849,
63,
22,
65,
422,
296,
42,
15534,
1312,
313,
345,
4278,
6980,
63,
13478,
23962,
7500,
529,
3546,
273,
296,
4488,
6627,
397,
1849,
63,
22,
65,
6980,
63,
13478,
23962,
4413,
2692,
3546,
273,
2418,
7142,
11,
397,
1849,
63,
22,
65,
1327,
1849,
63,
22,
65,
422,
296,
3715,
670,
270,
13318,
4278,
6980,
63,
13478,
23962,
7500,
529,
3546,
273,
296,
54,
44,
48,
6627,
397,
1849,
63,
22,
65,
6980,
63,
13478,
23962,
4413,
2692,
3546,
273,
2418,
86,
25356,
11,
397,
1849,
63,
22,
65,
1327,
1849,
63,
21,
65,
422,
296,
42,
15534,
512,
1423,
48,
4278,
6980,
63,
13478,
23962,
7500,
529,
3546,
273,
296,
2247,
6627,
397,
1849,
63,
22,
65,
6980,
63,
13478,
23962,
4413,
2692,
3546,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
7500,
67,
1376,
12,
2890,
4672,
9163,
694,
326,
3803,
1779,
18,
225,
4826,
326,
11483,
732,
3875,
1608,
358,
1240,
3803,
1779,
3096,
18,
9163,
365,
18,
1966,
5931,
18,
8837,
2932,
4025,
612,
16,
508,
16,
1177,
628,
1849,
7923,
6980,
273,
2618,
364,
1849,
316,
365,
18,
1966,
5931,
18,
5754,
454,
13332,
7504,
273,
1849,
63,
20,
65,
6980,
63,
13478,
65,
273,
13666,
350,
11,
294,
7504,
97,
309,
1849,
63,
21,
65,
422,
296,
42,
15534,
4278,
6980,
63,
13478,
23962,
7500,
529,
3546,
273,
296,
42,
6627,
397,
1849,
63,
22,
65,
6980,
63,
13478,
23962,
4413,
2692,
3546,
273,
2418,
7142,
11,
397,
1849,
63,
22,
65,
1327,
2
] |
def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False):
|
def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False, dirname = None):
|
def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False): timer.TimerEntry.__init__(self, int(begin), int(end))
|
bc937acb188ea59ced7d67ceaa91f2598db39ab9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/bc937acb188ea59ced7d67ceaa91f2598db39ab9/RecordTimer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
24658,
822,
74,
16,
2376,
16,
679,
16,
508,
16,
2477,
16,
425,
305,
16,
5673,
273,
1083,
16,
2537,
1601,
273,
1083,
16,
1839,
1133,
273,
18651,
10454,
18,
9826,
16,
866,
7617,
10178,
414,
273,
1083,
16,
4283,
273,
599,
4672,
5441,
18,
6777,
1622,
16186,
2738,
972,
12,
2890,
16,
509,
12,
10086,
3631,
509,
12,
409,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
24658,
822,
74,
16,
2376,
16,
679,
16,
508,
16,
2477,
16,
425,
305,
16,
5673,
273,
1083,
16,
2537,
1601,
273,
1083,
16,
1839,
1133,
273,
18651,
10454,
18,
9826,
16,
866,
7617,
10178,
414,
273,
1083,
16,
4283,
273,
599,
4672,
5441,
18,
6777,
1622,
16186,
2738,
972,
12,
2890,
16,
509,
12,
10086,
3631,
509,
12,
409,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
swig_opts = ['-O', '-templatereduce', '-shadow', '-python', '-c++', '-keyword', '-nodefaultctor'],
|
swig_opts = ['-O', '-shadow', '-c++', '-keyword',],
|
def setRank(off, dad): 'The rank of offspring can increase or drop to zero randomly' off.rank = (dad.rank + randint(-1, 1)) % 3
|
53b36487bc2c5932f3f9daab36bff5e28167df6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/53b36487bc2c5932f3f9daab36bff5e28167df6f/userGuide.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12925,
12,
3674,
16,
302,
361,
4672,
296,
1986,
6171,
434,
21174,
11638,
848,
10929,
578,
3640,
358,
3634,
20153,
11,
3397,
18,
11500,
273,
261,
72,
361,
18,
11500,
397,
16783,
19236,
21,
16,
404,
3719,
738,
890,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12925,
12,
3674,
16,
302,
361,
4672,
296,
1986,
6171,
434,
21174,
11638,
848,
10929,
578,
3640,
358,
3634,
20153,
11,
3397,
18,
11500,
273,
261,
72,
361,
18,
11500,
397,
16783,
19236,
21,
16,
404,
3719,
738,
890,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return True if (self.can_write) : self.mcl_state_machine.send_raw_message(testmsg(self.sent[self.counter])) self.bclock.acquire() self.can_write = False self.bclock.release() return True
|
else: msg = testmsg(self.sent[self.counter]) print "Sending ", repr(msg) self.mcl_sm.send_raw_message(msg) return False
|
def write_cb(self, socket, *args): #print "CAN WRITE" if ( self.counter >= len(testmsg(self.sent)) ): self.stop_session() return True
|
58de439d6e74c4b1556bf0b35da03b7a41012af1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/58de439d6e74c4b1556bf0b35da03b7a41012af1/test1_client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7358,
12,
2890,
16,
2987,
16,
380,
1968,
4672,
468,
1188,
315,
39,
1258,
20967,
6,
309,
261,
365,
18,
7476,
1545,
562,
12,
3813,
3576,
12,
2890,
18,
7569,
3719,
262,
30,
365,
18,
5681,
67,
3184,
1435,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7358,
12,
2890,
16,
2987,
16,
380,
1968,
4672,
468,
1188,
315,
39,
1258,
20967,
6,
309,
261,
365,
18,
7476,
1545,
562,
12,
3813,
3576,
12,
2890,
18,
7569,
3719,
262,
30,
365,
18,
5681,
67,
3184,
1435,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: sys.stdout = myrepl sys.stderr = myrepl def start(main_loop, user_data): if exec_args: bpargs.exec_code(interpreter, exec_args) if not options.interactive: raise urwid.ExitMainLoop() if not exec_args: sys.path.insert(0, '') filename = os.environ.get('PYTHONSTARTUP') if filename and os.path.isfile(filename): with open(filename, 'r') as f: if py3: interpreter.runsource(f.read(), filename, 'exec') else: interpreter.runsource(f.read(), filename, 'exec', encode=False) if banner is not None: repl.write(banner) repl.write('\n') myrepl.start() def run_find_coroutine(): if find_coroutine(): main_loop.event_loop.alarm(0, run_find_coroutine) run_find_coroutine() loop.set_alarm_in(0, start) while True: try: loop.run() except KeyboardInterrupt: loop.set_alarm_in(0, lambda *args: myrepl.keyboard_interrupt()) continue break if config.hist_length: histfilename = os.path.expanduser(config.hist_file) myrepl.rl_history.save(histfilename, locale.getpreferredencoding()) finally: sys.stdin = orig_stdin sys.stderr = orig_stderr sys.stdout = orig_stdout
|
def run_with_screen_before_mainloop(): try: sys.stdin = None sys.stdout = myrepl sys.stderr = myrepl loop.set_alarm_in(0, start) while True: try: loop.run() except KeyboardInterrupt: loop.set_alarm_in( 0, lambda *args: myrepl.keyboard_interrupt()) continue break if config.hist_length: histfilename = os.path.expanduser(config.hist_file) myrepl.rl_history.save(histfilename, locale.getpreferredencoding()) finally: sys.stdin = orig_stdin sys.stderr = orig_stderr sys.stdout = orig_stdout def start(main_loop, user_data): if exec_args: bpargs.exec_code(interpreter, exec_args) if not options.interactive: raise urwid.ExitMainLoop() if not exec_args: sys.path.insert(0, '') filename = os.environ.get('PYTHONSTARTUP') if filename and os.path.isfile(filename): with open(filename, 'r') as f: if py3: interpreter.runsource(f.read(), filename, 'exec') else: interpreter.runsource(f.read(), filename, 'exec', encode=False) if banner is not None: repl.write(banner) repl.write('\n') myrepl.start() def run_find_coroutine(): if find_coroutine(): main_loop.event_loop.alarm(0, run_find_coroutine) run_find_coroutine() loop.screen.run_wrapper(run_with_screen_before_mainloop)
|
def sigint(*args): reactor.callFromThread(myrepl.keyboard_interrupt)
|
f48c1504d501e57d21f2c601a6e28dfa8fb82495 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/f48c1504d501e57d21f2c601a6e28dfa8fb82495/urwid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
474,
30857,
1968,
4672,
19178,
18,
1991,
1265,
3830,
12,
4811,
26745,
18,
31486,
67,
31847,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3553,
474,
30857,
1968,
4672,
19178,
18,
1991,
1265,
3830,
12,
4811,
26745,
18,
31486,
67,
31847,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
strandPairsToBond.append((new_endBaseAtomList[2],
|
strandPairsToBond.append((new_endBaseAtomList[2],
|
def _fuse_new_dna_with_original_duplex(self, new_endBaseAtomList, endBaseAtomList): """ Fuse the new dna strand (and axxis) end atom to the original dna TODO: method needs to be renamed The original dna may be a single stranded dna or a duplex. Until 2008-04-02 ,it was possible to create or modify only a duplex and thats why the name 'duplex' @see: self.modify() @see: B_Dna_PAM3_SingleStrand._fuse_new_dna_with_original_duplex() """ #FUSE new duplex with the original duplex #strand1 chunks chunkList1 = \ [ new_endBaseAtomList[0].molecule, self._resizeEndStrand1Atom.molecule] #Axis chunks chunkList2 = \ [ new_endBaseAtomList[1].molecule, self._resizeEndAxisAtom.molecule] if endBaseAtomList[2]: #strand2 chunks chunkList3 = \ [new_endBaseAtomList[2].molecule, endBaseAtomList[2].molecule] else: chunkList3 = [] #Set the chunk color and chunk display of the new duplex such that #it matches with the original duplex chunk color and display #Actually, fusing the chunks should have taken care of this, but #for some unknown reasons, its not happening. May be because #chunks are not 'merged'? ... Setting display and color for new #duplex chunk is explicitely done below. Fixes bug 2711 for chunkPair in (chunkList1, chunkList2, chunkList3): if chunkPair: display = chunkPair[1].display color = chunkPair[1].color chunkPair[0].setDisplay(display) if color: chunkPair[0].setcolor(color) #Original implementation which relied on on fuse chunks for finding #bondable atom pairs within a tolerance limit. This is no longer #used and can be removed after more testing of explicit bonding #done in self._bond_atoms_in_atomPairs() (called below) #-- Ninad 2008-04-14 ##self.fuseBasePairChunks(chunkList1) ##self.fuseBasePairChunks(chunkList2, fuseTolerance = 1.5) ##if chunkList3: ##self.fuseBasePairChunks(chunkList3) strandPairsToBond = [ (new_endBaseAtomList[0], self._resizeEndStrand1Atom)] if endBaseAtomList[2]: strandPairsToBond.append((new_endBaseAtomList[2], endBaseAtomList[2])) axisAtomPairsToBond = [ (new_endBaseAtomList[1], self._resizeEndAxisAtom)] self._bond_strandAtom_pairs(strandPairsToBond) #Create explicit bonds between the end base atoms #(like done in self._bond_bare_strandAtoms_with_orig_axisAtoms()) #instead of relying on fuse chunks (which relies on finding #bondable atom pairs within a tolerance limit. This fixes bug 2798 #-- Ninad 2008-04-14 self._bond_atoms_in_atomPairs(axisAtomPairsToBond) #Now replace the overlapping axis atoms with the corresponding #original axis atoms, make bonds between strand and axis atoms as needed #see this method docstrings for details self._replace_overlapping_axisAtoms_of_new_dna(new_endBaseAtomList)
|
2937dd0cfe13ce5cba6560a12fe467c224444ffe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/2937dd0cfe13ce5cba6560a12fe467c224444ffe/DnaDuplex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
1202,
67,
2704,
67,
5176,
69,
67,
1918,
67,
8830,
67,
72,
2268,
92,
12,
2890,
16,
394,
67,
409,
2171,
3641,
682,
16,
679,
2171,
3641,
682,
4672,
3536,
478,
1202,
326,
394,
31702,
16706,
261,
464,
1740,
5674,
13,
679,
3179,
358,
326,
2282,
31702,
225,
2660,
30,
707,
4260,
358,
506,
17657,
1021,
2282,
31702,
2026,
506,
279,
2202,
609,
5860,
31702,
578,
279,
302,
2268,
92,
18,
30608,
4044,
28,
17,
3028,
17,
3103,
269,
305,
1703,
3323,
358,
752,
578,
5612,
1338,
279,
302,
2268,
92,
471,
716,
87,
11598,
326,
508,
296,
72,
2268,
92,
11,
225,
632,
5946,
30,
365,
18,
17042,
1435,
632,
5946,
30,
605,
67,
40,
6582,
67,
52,
2192,
23,
67,
5281,
1585,
464,
6315,
74,
1202,
67,
2704,
67,
5176,
69,
67,
1918,
67,
8830,
67,
72,
2268,
92,
1435,
3536,
282,
468,
42,
8001,
394,
302,
2268,
92,
598,
326,
2282,
302,
2268,
92,
225,
468,
701,
464,
21,
6055,
2441,
682,
21,
273,
521,
306,
394,
67,
409,
2171,
3641,
682,
63,
20,
8009,
81,
10545,
16,
365,
6315,
15169,
1638,
1585,
464,
21,
3641,
18,
81,
10545,
65,
225,
468,
6558,
6055,
2441,
682,
22,
273,
521,
306,
394,
67,
409,
2171,
3641,
682,
63,
21,
8009,
81,
10545,
16,
365,
6315,
15169,
1638,
6558,
3641,
18,
81,
10545,
65,
225,
309,
679,
2171,
3641,
682,
63,
22,
14542,
468,
701,
464,
22,
6055,
2441,
682,
23,
273,
521,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
1202,
67,
2704,
67,
5176,
69,
67,
1918,
67,
8830,
67,
72,
2268,
92,
12,
2890,
16,
394,
67,
409,
2171,
3641,
682,
16,
679,
2171,
3641,
682,
4672,
3536,
478,
1202,
326,
394,
31702,
16706,
261,
464,
1740,
5674,
13,
679,
3179,
358,
326,
2282,
31702,
225,
2660,
30,
707,
4260,
358,
506,
17657,
1021,
2282,
31702,
2026,
506,
279,
2202,
609,
5860,
31702,
578,
279,
302,
2268,
92,
18,
30608,
4044,
28,
17,
3028,
17,
3103,
269,
305,
1703,
3323,
358,
752,
578,
5612,
1338,
279,
302,
2268,
92,
471,
716,
87,
11598,
326,
508,
296,
72,
2268,
92,
11,
225,
632,
5946,
30,
365,
18,
17042,
1435,
632,
5946,
30,
605,
67,
40,
2
] |
newCEs = len(getCEs)
|
newCEs = len(getCEs['Value'])
|
def __checkCEsForJob(self,job,jdlFile): """ Method to check number of suitable CEs for job and prevent Pilot submission for jobs with no available CEs. Wraps around list-match command. """ minimumCEs = 1 #this will only catch jobs that the RB cannot schedule noCEsAvailable = self.jobsWithoutCEs submitFlag = True
|
18fd1e57f42b37f01a480912af20ec9774a20781 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/18fd1e57f42b37f01a480912af20ec9774a20781/gLitePilotDirector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
1441,
28388,
2278,
12,
2890,
16,
4688,
16,
78,
5761,
812,
4672,
3536,
2985,
358,
866,
1300,
434,
10631,
385,
6705,
364,
1719,
471,
5309,
453,
22797,
8515,
364,
6550,
598,
1158,
2319,
385,
6705,
18,
678,
7506,
6740,
666,
17,
1916,
1296,
18,
3536,
5224,
1441,
87,
273,
404,
468,
2211,
903,
1338,
1044,
6550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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
1441,
28388,
2278,
12,
2890,
16,
4688,
16,
78,
5761,
812,
4672,
3536,
2985,
358,
866,
1300,
434,
10631,
385,
6705,
364,
1719,
471,
5309,
453,
22797,
8515,
364,
6550,
598,
1158,
2319,
385,
6705,
18,
678,
7506,
6740,
666,
17,
1916,
1296,
18,
3536,
5224,
1441,
87,
273,
404,
468,
2211,
903,
1338,
1044,
6550,
716,
326,
534,
38,
2780,
4788,
1158,
1441,
87,
5268,
273,
365,
18,
10088,
8073,
1441,
87,
4879,
4678,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.decode(data)
|
self.decode(data,password)
|
def __init__(self,data=None,app=None,name=None,title=None,password=None): ''' @param data: (Optional) See decode() @param app: (Optional) Set Application-Name @param name: (Optional) Set Notification-Name @param title: (Optional) Set Notification Title @param password: (Optional) Password to use while encoding/decoding messages ''' _GNTPBase.__init__(self,'NOTIFY') self.headers = {} self.resources = {} if password: self.set_password(password) self.requiredHeaders = [ 'Application-Name', 'Notification-Name', 'Notification-Title' ] if data: self.decode(data) else: if app: self.headers['Application-Name'] = app if name: self.headers['Notification-Name'] = name if title: self.headers['Notification-Title'] = title
|
c4f20dffc1daebaba9ed74c0bd3f71f2414a12b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13176/c4f20dffc1daebaba9ed74c0bd3f71f2414a12b7/gntp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
892,
33,
7036,
16,
2910,
33,
7036,
16,
529,
33,
7036,
16,
2649,
33,
7036,
16,
3664,
33,
7036,
4672,
9163,
225,
632,
891,
501,
30,
261,
6542,
13,
2164,
2495,
1435,
632,
891,
595,
30,
261,
6542,
13,
1000,
4257,
17,
461,
632,
891,
508,
30,
261,
6542,
13,
1000,
8050,
17,
461,
632,
891,
2077,
30,
261,
6542,
13,
1000,
8050,
10984,
632,
891,
2201,
30,
261,
6542,
13,
9234,
358,
999,
1323,
2688,
19,
323,
2014,
2743,
9163,
389,
43,
1784,
52,
2171,
16186,
2738,
972,
12,
2890,
11189,
4400,
12096,
6134,
365,
18,
2485,
202,
33,
2618,
365,
18,
4683,
202,
33,
2618,
309,
2201,
30,
365,
18,
542,
67,
3664,
12,
3664,
13,
365,
18,
4718,
3121,
273,
306,
296,
3208,
17,
461,
2187,
296,
4386,
17,
461,
2187,
296,
4386,
17,
4247,
11,
308,
309,
501,
30,
365,
18,
3922,
12,
892,
16,
3664,
13,
469,
30,
309,
595,
30,
365,
18,
2485,
3292,
3208,
17,
461,
3546,
273,
595,
309,
508,
30,
365,
18,
2485,
3292,
4386,
17,
461,
3546,
273,
508,
309,
2077,
30,
365,
18,
2485,
3292,
4386,
17,
4247,
3546,
273,
2077,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
892,
33,
7036,
16,
2910,
33,
7036,
16,
529,
33,
7036,
16,
2649,
33,
7036,
16,
3664,
33,
7036,
4672,
9163,
225,
632,
891,
501,
30,
261,
6542,
13,
2164,
2495,
1435,
632,
891,
595,
30,
261,
6542,
13,
1000,
4257,
17,
461,
632,
891,
508,
30,
261,
6542,
13,
1000,
8050,
17,
461,
632,
891,
2077,
30,
261,
6542,
13,
1000,
8050,
10984,
632,
891,
2201,
30,
261,
6542,
13,
9234,
358,
999,
1323,
2688,
19,
323,
2014,
2743,
9163,
389,
43,
1784,
52,
2171,
16186,
2738,
972,
12,
2890,
11189,
4400,
12096,
6134,
365,
18,
2485,
202,
33,
2618,
365,
18,
4683,
202,
33,
2618,
309,
2201,
30,
365,
18,
2
] |
self._get_index_items(see, link, index)
|
self._get_term_index_items(see, link, index)
|
def _extract_index(self): """ @return: A dictionary mapping from terms to lists of source documents. @rtype: C{dictionary} """ index = {} for (uid, doc) in self._docmap.items(): if (not self._show_private) and self._is_private(`uid`): continue if uid.is_function(): link = Link(`uid`, uid.module()) elif uid.is_method(): link = Link(`uid`, uid.cls()) else: link = Link(`uid`, uid)
|
7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
1615,
12,
2890,
4672,
3536,
632,
2463,
30,
432,
3880,
2874,
628,
6548,
358,
6035,
434,
1084,
7429,
18,
632,
86,
723,
30,
385,
95,
15556,
97,
3536,
770,
273,
2618,
364,
261,
1911,
16,
997,
13,
316,
365,
6315,
2434,
1458,
18,
3319,
13332,
309,
261,
902,
365,
6315,
4500,
67,
1152,
13,
471,
365,
6315,
291,
67,
1152,
12,
68,
1911,
68,
4672,
1324,
225,
309,
4555,
18,
291,
67,
915,
13332,
1692,
273,
4048,
12,
68,
1911,
9191,
4555,
18,
2978,
10756,
1327,
4555,
18,
291,
67,
2039,
13332,
1692,
273,
4048,
12,
68,
1911,
9191,
4555,
18,
6429,
10756,
469,
30,
1692,
273,
4048,
12,
68,
1911,
9191,
4555,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
1615,
12,
2890,
4672,
3536,
632,
2463,
30,
432,
3880,
2874,
628,
6548,
358,
6035,
434,
1084,
7429,
18,
632,
86,
723,
30,
385,
95,
15556,
97,
3536,
770,
273,
2618,
364,
261,
1911,
16,
997,
13,
316,
365,
6315,
2434,
1458,
18,
3319,
13332,
309,
261,
902,
365,
6315,
4500,
67,
1152,
13,
471,
365,
6315,
291,
67,
1152,
12,
68,
1911,
68,
4672,
1324,
225,
309,
4555,
18,
291,
67,
915,
13332,
1692,
273,
4048,
12,
68,
1911,
9191,
4555,
18,
2978,
10756,
1327,
4555,
18,
291,
67,
2039,
13332,
1692,
273,
4048,
12,
68,
1911,
9191,
4555,
18,
6429,
10756,
469,
30,
1692,
273,
4048,
12,
68,
1911,
9191,
4555,
13,
2,
-100
] |
pixmaps = discover_data_files('pixmaps', 'xpm') icons = discover_data_files('icons', 'svg') uis = discover_data_files('glade', 'glade')
|
def main(): """The main script.""" packages = find_packages('pida'), services = find_entry_points('services', 'Service') plugins = find_entry_points('plugins', 'Plugin') editors = find_entry_points('editors', 'Service') pixmaps = discover_data_files('pixmaps', 'xpm') icons = discover_data_files('icons', 'svg') uis = discover_data_files('glade', 'glade') setup(name='pida', version=VERSION_STRING, author='Ali Afshar', author_email='aafshar@gmail.com', url='http://pida.berlios.de', download_url='http://pida.berlios.de/index.php/PIDA:Downloads', description=('A Python IDE written in Python and GTK, ' 'which uses Vim as its editor.'), long_description='Please visit the Pida website for more details.', packages=find_packages(), package_dir = {'pida': 'pida'}, package_data={ 'pida': ['data/glade/*.glade', 'data/pixmaps/*.xpm', 'data/icons/*.svg', 'data/forkscripts/*.py', 'data/version', 'data/icons/pida-icon.png', 'data/AUTHORS', 'data/CONTRIBUTORS', 'data/COPYING'], }, entry_points = { 'console_scripts': [ 'pida = pida.core.application:main', ], 'gui_scripts': [], 'pida.services' : services, 'pida.plugins' : plugins, 'pida.editors' : editors, }, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: X11 Applications', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development'] )
|
c91661c576e86a666c2ae751f01948cc2bc38373 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/c91661c576e86a666c2ae751f01948cc2bc38373/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
1986,
2774,
2728,
12123,
5907,
273,
1104,
67,
10308,
2668,
6610,
69,
19899,
4028,
273,
1104,
67,
4099,
67,
4139,
2668,
8387,
2187,
296,
1179,
6134,
4799,
273,
1104,
67,
4099,
67,
4139,
2668,
8057,
2187,
296,
3773,
6134,
29431,
273,
1104,
67,
4099,
67,
4139,
2668,
4619,
1383,
2187,
296,
1179,
6134,
3875,
12,
529,
2218,
6610,
69,
2187,
1177,
33,
5757,
67,
5804,
16,
2869,
2218,
37,
549,
7026,
674,
297,
2187,
2869,
67,
3652,
2218,
69,
1727,
674,
297,
36,
75,
4408,
18,
832,
2187,
880,
2218,
2505,
2207,
6610,
69,
18,
744,
549,
538,
18,
323,
2187,
4224,
67,
718,
2218,
2505,
2207,
6610,
69,
18,
744,
549,
538,
18,
323,
19,
1615,
18,
2684,
19,
16522,
37,
30,
22141,
2187,
2477,
33,
2668,
37,
6600,
1599,
41,
5941,
316,
6600,
471,
19688,
47,
16,
296,
296,
12784,
4692,
776,
381,
487,
2097,
4858,
1093,
3631,
1525,
67,
3384,
2218,
8496,
3757,
326,
27041,
69,
12504,
364,
1898,
3189,
1093,
16,
5907,
33,
4720,
67,
10308,
9334,
2181,
67,
1214,
273,
13666,
6610,
69,
4278,
296,
6610,
69,
11,
5779,
225,
2181,
67,
892,
5899,
296,
6610,
69,
4278,
10228,
892,
19,
7043,
2486,
30987,
7043,
2486,
2187,
296,
892,
19,
14861,
10711,
30987,
92,
7755,
2187,
296,
892,
19,
14516,
30987,
11451,
2187,
296,
892,
19,
23335,
12827,
30987,
2074,
2187,
296,
892,
19,
1589,
2187,
296,
892,
19,
14516,
19,
6610,
69,
17,
3950,
18,
6446,
2187,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
1986,
2774,
2728,
12123,
5907,
273,
1104,
67,
10308,
2668,
6610,
69,
19899,
4028,
273,
1104,
67,
4099,
67,
4139,
2668,
8387,
2187,
296,
1179,
6134,
4799,
273,
1104,
67,
4099,
67,
4139,
2668,
8057,
2187,
296,
3773,
6134,
29431,
273,
1104,
67,
4099,
67,
4139,
2668,
4619,
1383,
2187,
296,
1179,
6134,
3875,
12,
529,
2218,
6610,
69,
2187,
1177,
33,
5757,
67,
5804,
16,
2869,
2218,
37,
549,
7026,
674,
297,
2187,
2869,
67,
3652,
2218,
69,
1727,
674,
297,
36,
75,
4408,
18,
832,
2187,
880,
2218,
2505,
2207,
6610,
69,
18,
744,
549,
538,
18,
323,
2187,
4224,
67,
718,
2218,
2505,
2207,
6610,
69,
18,
744,
549,
538,
18,
323,
2
] |
|
for fmt in ('B', 'H', 'I', 'L', 'b', 'h', 'i', 'l'):
|
for fmt in ('B', 'H', 'I', 'L', 'Q', 'b', 'h', 'i', 'l', 'q'):
|
def XXXtest_1530559(self): # XXX This is broken: see the bug report # SF bug 1530559. struct.pack raises TypeError where it used to convert. for endian in ('', '>', '<'): for fmt in ('B', 'H', 'I', 'L', 'b', 'h', 'i', 'l'): self.check_float_coerce(endian + fmt, 1.0) self.check_float_coerce(endian + fmt, 1.5)
|
463dc4bf26c37c5f90cfe9328087976a0bdc5757 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/463dc4bf26c37c5f90cfe9328087976a0bdc5757/test_struct.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11329,
3813,
67,
3600,
5082,
2539,
29,
12,
2890,
4672,
468,
11329,
1220,
353,
12933,
30,
2621,
326,
7934,
2605,
468,
21318,
7934,
4711,
5082,
2539,
29,
18,
1958,
18,
2920,
14183,
3580,
1625,
518,
1399,
358,
1765,
18,
364,
14759,
316,
7707,
2187,
7481,
16,
9138,
4672,
364,
1325,
316,
7707,
38,
2187,
296,
44,
2187,
296,
45,
2187,
296,
48,
2187,
296,
53,
2187,
296,
70,
2187,
296,
76,
2187,
296,
77,
2187,
296,
80,
2187,
296,
85,
11,
4672,
365,
18,
1893,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11329,
3813,
67,
3600,
5082,
2539,
29,
12,
2890,
4672,
468,
11329,
1220,
353,
12933,
30,
2621,
326,
7934,
2605,
468,
21318,
7934,
4711,
5082,
2539,
29,
18,
1958,
18,
2920,
14183,
3580,
1625,
518,
1399,
358,
1765,
18,
364,
14759,
316,
7707,
2187,
7481,
16,
9138,
4672,
364,
1325,
316,
7707,
38,
2187,
296,
44,
2187,
296,
45,
2187,
296,
48,
2187,
296,
53,
2187,
296,
70,
2187,
296,
76,
2187,
296,
77,
2187,
296,
80,
2187,
296,
85,
11,
4672,
365,
18,
1893,
67,
5659,
67,
2894,
2765,
12,
22910,
397,
1325,
16,
404,
18,
20,
13,
365,
18,
1893,
67,
5659,
67,
2894,
2765,
12,
22910,
397,
1325,
16,
404,
18,
25,
13,
2,
-100,
-100
] |
_write_long(36 + self._datawritten)
|
_write_long(self._file, 36 + self._datawritten)
|
def _patchheader(self): if self._datawritten == self._datalength: return curpos = self._file.tell() self._file.seek(self._form_length_pos, 0) _write_long(36 + self._datawritten) self._file.seek(self._data_length_pos, 0) _write_long(self._file, self._datawritten) self._file.seek(curpos, 0) self._datalength = self._datawritten
|
33577efee6ad54c8566f8cd66b5129fe1856c135 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/33577efee6ad54c8566f8cd66b5129fe1856c135/wave.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2272,
3374,
12,
2890,
4672,
309,
365,
6315,
892,
9748,
422,
365,
6315,
72,
3145,
1288,
30,
327,
662,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
687,
67,
2469,
67,
917,
16,
374,
13,
389,
2626,
67,
5748,
12,
2890,
6315,
768,
16,
6580,
397,
365,
6315,
892,
9748,
13,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
892,
67,
2469,
67,
917,
16,
374,
13,
389,
2626,
67,
5748,
12,
2890,
6315,
768,
16,
365,
6315,
892,
9748,
13,
365,
6315,
768,
18,
16508,
12,
1397,
917,
16,
374,
13,
365,
6315,
72,
3145,
1288,
273,
365,
6315,
892,
9748,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2272,
3374,
12,
2890,
4672,
309,
365,
6315,
892,
9748,
422,
365,
6315,
72,
3145,
1288,
30,
327,
662,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
687,
67,
2469,
67,
917,
16,
374,
13,
389,
2626,
67,
5748,
12,
2890,
6315,
768,
16,
6580,
397,
365,
6315,
892,
9748,
13,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
892,
67,
2469,
67,
917,
16,
374,
13,
389,
2626,
67,
5748,
12,
2890,
6315,
768,
16,
365,
6315,
892,
9748,
13,
365,
6315,
768,
18,
16508,
12,
1397,
917,
16,
374,
13,
365,
6315,
72,
3145,
1288,
273,
365,
6315,
892,
9748,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
- ``pdflatex`` - bool (optional, default False): whether to use pdflatex.
|
- ``engine`` - string: latex engine to use.
|
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't convert the dvi file to png (because of postscript specials or other issues), then dvips is called, and the PS file is converted to a png file. INPUT: - ``filename`` - string: file to process, including full path - ``debug`` - bool (optional, default False): whether to print verbose debugging output - ``density`` - integer (optional, default 150): how big output image is. - ``pdflatex`` - bool (optional, default False): whether to use pdflatex. - ``png`` - bool (optional, default False): whether to produce a png file. - ``do_in_background`` - bool (optional, default False): whether to run in the background. OUTPUT: string, which could be a string starting with 'Error' (if there was a problem), or it could be 'pdf' or 'dvi'. If ``pdflatex`` is False, then a dvi file is created, but if there appear to be problems with it (because of PS special commands, for example), then a pdf file is created instead. The function returns 'dvi' or 'pdf' to indicate which type of file is created. (Detecting problems requires that dvipng be installed; if it is not, then the dvi file is not checked for problems and 'dvi' is returned.) If ``pdflatex`` is True and there are no errors, then 'pdf' is returned. .. warning:: If ``png`` is True, then when using latex (the default), you must have 'dvipng' (or 'dvips' and 'convert') installed on your operating system, or this command won't work. When using pdflatex, you must have 'convert' installed. EXAMPLES:: sage: from sage.misc.latex import _run_latex_, _latex_file_ sage: file = os.path.join(SAGE_TMP, "temp.tex") sage: O = open(file, 'w') sage: O.write(_latex_file_([ZZ[x], RR])); O.close() sage: _run_latex_(file) # random - depends on whether latex is installed 'dvi' """ if pdflatex is None: pdflatex = _Latex_prefs._option["pdflatex"] if not pdflatex and not have_latex(): print "Error: LaTeX does not seem to be installed. Download it from" print "ctan.org and try again." return "Error" if pdflatex and not have_pdflatex(): print "Error: PDFLaTeX does not seem to be installed. Download it from" print "ctan.org and try again." return "Error" # if png output + latex, check to see if dvipng or convert is installed. if png: if not pdflatex and not (have_dvipng() or have_convert()): print "" print "Error: neither dvipng nor convert (from the ImageMagick suite)" print "appear to be installed. Displaying LaTeX or PDFLaTeX output" print "requires at least one of these programs, so please install" print "and try again." print "" print "Go to http://sourceforge.net/projects/dvipng/ and" print "http://www.imagemagick.org to download these programs." return "Error" # if png output + pdflatex, check to see if convert is installed. elif pdflatex and not have_convert(): print "" print "Error: convert (from the ImageMagick suite) does not" print "appear to be installed. Displaying PDFLaTeX output" print "requires this program, so please install and try again." print "" print "Go to http://www.imagemagick.org to download it." return "Error" # check_validity: check to see if the dvi file is okay by trying # to convert to a png file. if this fails, return_suffix will be # set to "pdf". return_suffix is the return value for this # function. # # thus if not png output, check validity of dvi output if dvipng # or convert is installed. else: check_validity = have_dvipng() # set up filenames, other strings: base, filename = os.path.split(filename) filename = os.path.splitext(filename)[0] # get rid of extension if len(filename.split()) > 1: raise ValueError, "filename must contain no spaces" if not debug: redirect=' 2>/dev/null 1>/dev/null ' else: redirect='' if do_in_background: background = ' &' else: background = '' if pdflatex: command = "pdflatex" # 'suffix' is used in the string 'convert' ... suffix = "pdf" return_suffix = "pdf" else: command = "latex" suffix = "ps" return_suffix = "dvi" # Define the commands to be used: lt = 'cd "%s"&& sage-native-execute %s \\\\nonstopmode \\\\input{%s.tex} %s'%(base, command, filename, redirect) # dvipng is run with the 'picky' option: this means that if # there are warnings, no png file is created. dvipng = 'cd "%s"&& sage-native-execute dvipng --picky -q -T tight -D %s %s.dvi -o %s.png'%(base, density, filename, filename) dvips = 'sage-native-execute dvips %s.dvi %s'%(filename, redirect) ps2pdf = 'sage-native-execute ps2pdf %s.ps %s'%(filename, redirect) # We seem to need a larger size when using convert compared to # when using dvipng: density = int(1.4 * density / 1.3) convert = 'sage-native-execute convert -density %sx%s -trim %s.%s %s.png %s '%\ (density,density, filename, suffix, filename, redirect) e = 1 # it is possible to get through the following commands # without running a program, so in that case we force error if pdflatex: if png: cmd = ' && '.join([lt, convert]) else: cmd = lt if debug: print cmd e = os.system(cmd + ' ' + redirect + background) else: # latex, not pdflatex if (png or check_validity): if have_dvipng(): cmd = ' && '.join([lt, dvipng]) if debug: print cmd e = os.system(cmd + ' ' + redirect) dvipng_error = not os.path.exists(base + '/' + filename + '.png') # If there is no png file, then either the latex # process failed or dvipng failed. Assume that dvipng # failed, and try running dvips and convert. (If the # latex process failed, then dvips and convert will # fail also, so we'll still catch the error.) if dvipng_error: if png: if have_convert(): cmd = ' && '.join(['cd "%s"'%(base,), dvips, convert]) if debug: print "'dvipng' failed; trying 'convert' instead..." print cmd e = os.system(cmd + ' ' + redirect + background) else: print "Error: 'dvipng' failed and 'convert' is not installed." return "Error: dvipng failed." else: # not png, i.e., check_validity return_suffix = "pdf" cmd = ' && '.join(['cd "%s"'%(base,), dvips, ps2pdf]) if debug: print "bad dvi file; running dvips and ps2pdf instead..." print cmd e = os.system(cmd) if e: # error running dvips and/or ps2pdf command = "pdflatex" lt = 'cd "%s"&& sage-native-execute %s \\\\nonstopmode \\\\input{%s.tex} %s'%(base, command, filename, redirect) if debug: print "error running dvips and ps2pdf; trying pdflatex instead..." print cmd e = os.system(cmd + background) else: # don't have dvipng, so must have convert. run latex, dvips, convert. cmd = ' && '.join([lt, dvips, convert]) if debug: print cmd e = os.system(cmd + ' ' + redirect + background) if e: print "An error occurred." try: print open(base + '/' + filename + '.log').read() except IOError: pass return "Error latexing slide." return return_suffix
|
f861246ed3920cddfa7558f769e8b83392788530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f861246ed3920cddfa7558f769e8b83392788530/latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
26264,
67,
12,
3459,
16,
1198,
33,
8381,
16,
12142,
33,
23014,
16,
8169,
26264,
33,
7036,
16,
14476,
33,
8381,
16,
741,
67,
267,
67,
9342,
33,
8381,
4672,
3536,
1220,
7597,
21072,
21575,
60,
603,
326,
28602,
60,
585,
315,
3459,
18,
21763,
9654,
225,
2597,
15505,
1390,
315,
3459,
18,
72,
522,
6,
261,
280,
315,
3459,
18,
7699,
8366,
309,
12176,
7699,
26264,
10335,
353,
12176,
5510,
10335,
13,
471,
309,
12176,
6446,
10335,
353,
1053,
16,
315,
3459,
18,
6446,
9654,
225,
971,
12176,
6446,
10335,
353,
1053,
471,
302,
522,
6446,
848,
1404,
1765,
326,
302,
522,
585,
358,
14476,
261,
26274,
434,
1603,
4263,
4582,
87,
578,
1308,
8296,
3631,
1508,
302,
522,
1121,
353,
2566,
16,
471,
326,
26320,
585,
353,
5970,
358,
279,
14476,
585,
18,
225,
12943,
30,
225,
300,
225,
12176,
3459,
10335,
300,
533,
30,
585,
358,
1207,
16,
6508,
1983,
589,
225,
300,
225,
12176,
4148,
10335,
300,
1426,
261,
10444,
16,
805,
1083,
4672,
2856,
358,
1172,
3988,
10450,
876,
225,
300,
225,
12176,
18781,
10335,
300,
3571,
261,
10444,
16,
805,
18478,
4672,
3661,
5446,
876,
1316,
353,
18,
225,
300,
225,
12176,
8944,
10335,
300,
533,
30,
25079,
4073,
358,
999,
18,
225,
300,
225,
12176,
6446,
10335,
300,
1426,
261,
10444,
16,
805,
1083,
4672,
2856,
358,
11402,
279,
14476,
585,
18,
225,
300,
225,
12176,
2896,
67,
267,
67,
9342,
10335,
300,
1426,
261,
10444,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
26264,
67,
12,
3459,
16,
1198,
33,
8381,
16,
12142,
33,
23014,
16,
8169,
26264,
33,
7036,
16,
14476,
33,
8381,
16,
741,
67,
267,
67,
9342,
33,
8381,
4672,
3536,
1220,
7597,
21072,
21575,
60,
603,
326,
28602,
60,
585,
315,
3459,
18,
21763,
9654,
225,
2597,
15505,
1390,
315,
3459,
18,
72,
522,
6,
261,
280,
315,
3459,
18,
7699,
8366,
309,
12176,
7699,
26264,
10335,
353,
12176,
5510,
10335,
13,
471,
309,
12176,
6446,
10335,
353,
1053,
16,
315,
3459,
18,
6446,
9654,
225,
971,
12176,
6446,
10335,
353,
1053,
471,
302,
522,
6446,
848,
1404,
1765,
326,
302,
522,
585,
358,
14476,
261,
26274,
434,
1603,
4263,
4582,
87,
578,
1308,
2
] |
:Parameters: kpts : (n1,n2,n3) or [k1,k2,k3,...] or one of these
|
Parameters: kpts: (n1,n2,n3) or [k1,k2,k3,...] or one of these
|
def set_kpts(self, kpts): ''' set the kpt grid.
|
3d3ba6582bced478d5fcb8a3fcd5ebe6c3da70bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/3d3ba6582bced478d5fcb8a3fcd5ebe6c3da70bd/jacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
79,
1092,
12,
2890,
16,
417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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
79,
1092,
12,
2890,
16,
417,
1092,
4672,
9163,
444,
326,
417,
337,
3068,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pixbuf = gcompris.utils.load_pixmap("draw/down.png"),
|
pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin("draw/down.png")),
|
def draw_playing_area(self):
|
71d2a5f1e776d1abf498b3c50bbff69637e75673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/71d2a5f1e776d1abf498b3c50bbff69637e75673/anim.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
1601,
310,
67,
5036,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
1601,
310,
67,
5036,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
emitted_ids = 0 while pending_ids and emitted_ids < 100:
|
while pending_ids:
|
def get(self): if ChromeFrameMe(self): return lookup_id = self.request.path[6:] results = [] pending_ids = [lookup_id] needed_ids = set([lookup_id]) emitted_ids = 0 while pending_ids and emitted_ids < 100: # Pick one. id = pending_ids[0] pending_ids = pending_ids[1:] # Fetch it. w = Word.get(id) if w: # Collect each word. results.append({ 'id': id, 'intrinsic': w.intrinsic, 'definition': w.definition, 'description': w.description, }) # Add new words needed. for cw in w.definition: if cw not in needed_ids: needed_ids.add(cw) pending_ids.append(cw) # Count how many we've emitted. emitted_ids += 1 if self.request.get('raw'): self.response.headers['Content-Type'] = 'text/plain' for r in results: self.response.out.write('%s %d %s\n' % ( r['id'], r['intrinsic'], ' '.join(r['definition']))) else: path = os.path.join(os.path.dirname(__file__), 'templates/dump.html') self.response.out.write(template.render(path, { 'results': results, }))
|
0c84d023adea3c40a625ba9babebfa0e54e91be7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/0c84d023adea3c40a625ba9babebfa0e54e91be7/iconforth.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
309,
15159,
3219,
4667,
12,
2890,
4672,
327,
3689,
67,
350,
273,
365,
18,
2293,
18,
803,
63,
26,
26894,
1686,
273,
5378,
4634,
67,
2232,
273,
306,
8664,
67,
350,
65,
3577,
67,
2232,
273,
444,
3816,
8664,
67,
350,
5717,
1323,
4634,
67,
2232,
30,
468,
23038,
1245,
18,
612,
273,
4634,
67,
2232,
63,
20,
65,
4634,
67,
2232,
273,
4634,
67,
2232,
63,
21,
26894,
468,
8065,
518,
18,
341,
273,
9926,
18,
588,
12,
350,
13,
309,
341,
30,
468,
9302,
1517,
2076,
18,
1686,
18,
6923,
12590,
296,
350,
4278,
612,
16,
296,
267,
21760,
4278,
341,
18,
267,
21760,
16,
296,
6907,
4278,
341,
18,
6907,
16,
296,
3384,
4278,
341,
18,
3384,
16,
289,
13,
468,
1436,
394,
4511,
3577,
18,
364,
14098,
316,
341,
18,
6907,
30,
309,
14098,
486,
316,
3577,
67,
2232,
30,
3577,
67,
2232,
18,
1289,
12,
71,
91,
13,
4634,
67,
2232,
18,
6923,
12,
71,
91,
13,
468,
6974,
3661,
4906,
732,
8081,
17826,
18,
17826,
67,
2232,
1011,
404,
309,
365,
18,
2293,
18,
588,
2668,
1899,
11,
4672,
365,
18,
2740,
18,
2485,
3292,
1350,
17,
559,
3546,
273,
296,
955,
19,
7446,
11,
364,
436,
316,
1686,
30,
365,
18,
2740,
18,
659,
18,
2626,
29909,
87,
738,
72,
738,
87,
64,
82,
11,
738,
261,
436,
3292,
350,
17337,
436,
3292,
267,
21760,
17337,
296,
2418,
5701,
12,
86,
3292,
6907,
3546,
20349,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
309,
15159,
3219,
4667,
12,
2890,
4672,
327,
3689,
67,
350,
273,
365,
18,
2293,
18,
803,
63,
26,
26894,
1686,
273,
5378,
4634,
67,
2232,
273,
306,
8664,
67,
350,
65,
3577,
67,
2232,
273,
444,
3816,
8664,
67,
350,
5717,
1323,
4634,
67,
2232,
30,
468,
23038,
1245,
18,
612,
273,
4634,
67,
2232,
63,
20,
65,
4634,
67,
2232,
273,
4634,
67,
2232,
63,
21,
26894,
468,
8065,
518,
18,
341,
273,
9926,
18,
588,
12,
350,
13,
309,
341,
30,
468,
9302,
1517,
2076,
18,
1686,
18,
6923,
12590,
296,
350,
4278,
612,
16,
296,
267,
21760,
4278,
341,
18,
267,
21760,
16,
296,
6907,
4278,
341,
18,
6907,
16,
2
] |
""" RESTRICTS GRAND MEA Subtracts D-variable cell-mean for each between- subj group, and then adds back each D-variable's grand mean. """ errors = subtr_cellmeans(workd,subjslots) grandDmeans = expand_dims(mean(workd,0),0) errors = errors + transpose(grandDmeans) sserr = multivar_SScalc(errors) return sserr
|
""" RESTRICTS GRAND MEA Subtracts D-variable cell-mean for each between- subj group, and then adds back each D-variable's grand mean. """ errors = subtr_cellmeans(workd,subjslots) grandDmeans = expand_dims(mean(workd,0),0) errors = errors + transpose(grandDmeans) sserr = multivar_SScalc(errors) return sserr
|
def d_restrict_mean(workd,subjslots): """ RESTRICTS GRAND MEA Subtracts D-variable cell-mean for each between-
|
3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041/stats.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
67,
30604,
67,
7079,
12,
1252,
72,
16,
1717,
78,
18875,
4672,
3536,
8392,
2259,
1268,
55,
15228,
4307,
7733,
37,
225,
2592,
1575,
87,
463,
17,
6105,
2484,
17,
7079,
364,
1517,
3086,
17,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
67,
30604,
67,
7079,
12,
1252,
72,
16,
1717,
78,
18875,
4672,
3536,
8392,
2259,
1268,
55,
15228,
4307,
7733,
37,
225,
2592,
1575,
87,
463,
17,
6105,
2484,
17,
7079,
364,
1517,
3086,
17,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return result
|
return result def copy(self, cr, uid, id, default=None, context={}): return super(crm_case, self).copy(cr, uid, str2int(id), default, context)
|
def read(self, cr, uid, ids, fields=None, context={}, load='_classic_read'): """ logic for recurrent event example : 123-20091111170822""" if context and context.has_key('read'): return super(crm_case, self).read(cr, uid, ids, fields=fields, context=context, load=load) if not type(ids) == list : # Called from code ids = int(str(ids).split('-')[0]) res = super(crm_case, self).read(cr, uid, ids, fields=fields, context=context, load=load) return res else: ids = map(lambda x:int(str(x).split('-')[0]), ids) res = super(crm_case, self).read(cr, uid, ids, fields=fields, context=context, load=load) read_ids = ",".join([str(x) for x in ids]) cr.execute('select id,rrule,rdates from crm_case where id in (%s)' % read_ids) rrules = filter(lambda x: not x['rrule']==None, cr.dictfetchall()) rdates = [] if not rrules: return res result = res + [] for data in rrules: if data['rrule'] and data['rdates']: # delete 2nd condition at last rdates = eval(data['rdates']) for res_temp in res: if res_temp['id'] == data['id']: val = res_temp if rdates: result.remove(val)
|
6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
33,
7036,
16,
819,
28793,
1262,
2218,
67,
1106,
335,
67,
896,
11,
4672,
3536,
540,
4058,
364,
283,
2972,
871,
3454,
294,
17335,
17,
6976,
29,
23680,
4033,
6840,
3787,
8395,
309,
819,
471,
819,
18,
5332,
67,
856,
2668,
896,
11,
4672,
327,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
896,
12,
3353,
16,
4555,
16,
3258,
16,
1466,
33,
2821,
16,
819,
33,
2472,
16,
1262,
33,
945,
13,
309,
486,
618,
12,
2232,
13,
422,
666,
294,
468,
11782,
628,
981,
3258,
273,
509,
12,
701,
12,
2232,
2934,
4939,
2668,
17,
6134,
63,
20,
5717,
400,
273,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
896,
12,
3353,
16,
4555,
16,
3258,
16,
1466,
33,
2821,
16,
819,
33,
2472,
16,
1262,
33,
945,
13,
327,
400,
469,
30,
3258,
273,
852,
12,
14661,
619,
30,
474,
12,
701,
12,
92,
2934,
4939,
2668,
17,
6134,
63,
20,
65,
3631,
3258,
13,
400,
273,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
896,
12,
3353,
16,
4555,
16,
3258,
16,
1466,
33,
2821,
16,
819,
33,
2472,
16,
1262,
33,
945,
13,
855,
67,
2232,
273,
5753,
18,
5701,
3816,
701,
12,
92,
13,
364,
619,
316,
3258,
5717,
4422,
18,
8837,
2668,
4025,
612,
16,
523,
725,
16,
86,
9683,
628,
4422,
81,
67,
3593,
1625,
612,
316,
6142,
87,
2506,
738,
855,
67,
2232,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
33,
7036,
16,
819,
28793,
1262,
2218,
67,
1106,
335,
67,
896,
11,
4672,
3536,
540,
4058,
364,
283,
2972,
871,
3454,
294,
17335,
17,
6976,
29,
23680,
4033,
6840,
3787,
8395,
309,
819,
471,
819,
18,
5332,
67,
856,
2668,
896,
11,
4672,
327,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
896,
12,
3353,
16,
4555,
16,
3258,
16,
1466,
33,
2821,
16,
819,
33,
2472,
16,
1262,
33,
945,
13,
309,
486,
618,
12,
2232,
13,
422,
666,
294,
468,
11782,
628,
981,
3258,
273,
509,
12,
701,
12,
2232,
2934,
4939,
2668,
17,
6134,
63,
20,
5717,
400,
273,
2240,
12,
3353,
2
] |
blanks = " "
|
blanks = " "
|
def create_disulfides(self, disulfide_distance_cutoff, model_indices, conformer_indices, log=None): if (model_indices is not None): model_indices = model_indices.select(self.cystein_sulphur_i_seqs) conformer_indices = conformer_indices.select(self.cystein_sulphur_i_seqs) asu_mappings = self.special_position_settings.asu_mappings( buffer_thickness=disulfide_distance_cutoff) sulphur_sites_cart = self.sites_cart.select(self.cystein_sulphur_i_seqs) asu_mappings.process_sites_cart( original_sites=sulphur_sites_cart, site_symmetry_table=self.site_symmetry_table().select( self.cystein_sulphur_i_seqs)) pair_asu_table = crystal.pair_asu_table(asu_mappings=asu_mappings) nonbonded_proxies = geometry_restraints.nonbonded_sorted_asu_proxies( model_indices=model_indices, conformer_indices=conformer_indices, nonbonded_params=geometry_restraints.nonbonded_params( default_distance=1), nonbonded_types=flex.std_string(conformer_indices.size()), nonbonded_distance_cutoff_plus_buffer=disulfide_distance_cutoff, shell_asu_tables=[pair_asu_table]) labels = [self.stage_1.atom_attributes_list[i_seq].pdb_format() for i_seq in self.cystein_sulphur_i_seqs] for proxy in nonbonded_proxies.simple: pair_asu_table.add_pair(proxy.i_seqs) for proxy in nonbonded_proxies.asu: pair_asu_table.add_pair(proxy) pair_sym_table = pair_asu_table.extract_pair_sym_table() if (log is not None): n_simple, n_symmetry = 0, 0 for sym_pair in pair_sym_table.iterator(): if (sym_pair.rt_mx_ji.is_unit_mx()): n_simple += 1 else: n_symmetry += 1 print >> log, " Number of disulfides: simple=%d, symmetry=%d" % ( n_simple, n_symmetry) if (n_symmetry == 0): blanks = "" else: blanks = " " max_distance_model = 0 frac = asu_mappings.unit_cell().fractionalize orth = asu_mappings.unit_cell().orthogonalize for sym_pair in pair_sym_table.iterator(): distance_model = geometry_restraints.bond( [sulphur_sites_cart[sym_pair.i_seq], orth(sym_pair.rt_mx_ji*frac(sulphur_sites_cart[sym_pair.j_seq]))], distance_ideal=0, weight=1).distance_model max_distance_model = max(max_distance_model, distance_model) if (log is not None): if (sym_pair.rt_mx_ji.is_unit_mx()): disulfide_type = "Simple disulfide:%s" % blanks else: disulfide_type = "Symmetry disulfide:" print >> log, " %s %s - %s distance=%.2f" % tuple( [disulfide_type] + [labels[i_seq] for i_seq in sym_pair.i_seqs()] + [distance_model]), if (not sym_pair.rt_mx_ji.is_unit_mx()): print >> log, sym_pair.rt_mx_ji, print >> log return pair_sym_table, max_distance_model
|
643f9d42b1262696c028c68646f1bea763cc85e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/643f9d42b1262696c028c68646f1bea763cc85e6/pdb_interpretation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2251,
332,
74,
4369,
12,
2890,
16,
1015,
332,
74,
831,
67,
8969,
67,
16131,
16,
938,
67,
6836,
16,
356,
7208,
67,
6836,
16,
613,
33,
7036,
4672,
309,
261,
2284,
67,
6836,
353,
486,
599,
4672,
938,
67,
6836,
273,
938,
67,
6836,
18,
4025,
12,
2890,
18,
71,
1094,
13685,
67,
87,
332,
844,
295,
67,
77,
67,
22437,
13,
356,
7208,
67,
6836,
273,
356,
7208,
67,
6836,
18,
4025,
12,
2890,
18,
71,
1094,
13685,
67,
87,
332,
844,
295,
67,
77,
67,
22437,
13,
487,
89,
67,
16047,
273,
365,
18,
9371,
67,
3276,
67,
4272,
18,
345,
89,
67,
16047,
12,
1613,
67,
451,
19517,
33,
2251,
332,
74,
831,
67,
8969,
67,
16131,
13,
272,
332,
844,
295,
67,
12180,
67,
11848,
273,
365,
18,
12180,
67,
11848,
18,
4025,
12,
2890,
18,
71,
1094,
13685,
67,
87,
332,
844,
295,
67,
77,
67,
22437,
13,
487,
89,
67,
16047,
18,
2567,
67,
12180,
67,
11848,
12,
2282,
67,
12180,
33,
87,
332,
844,
295,
67,
12180,
67,
11848,
16,
2834,
67,
8117,
18042,
67,
2121,
33,
2890,
18,
4256,
67,
8117,
18042,
67,
2121,
7675,
4025,
12,
365,
18,
71,
1094,
13685,
67,
87,
332,
844,
295,
67,
77,
67,
22437,
3719,
3082,
67,
345,
89,
67,
2121,
273,
4422,
31365,
18,
6017,
67,
345,
89,
67,
2121,
12,
345,
89,
67,
16047,
33,
345,
89,
67,
16047,
13,
1661,
18688,
785,
67,
20314,
606,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2251,
332,
74,
4369,
12,
2890,
16,
1015,
332,
74,
831,
67,
8969,
67,
16131,
16,
938,
67,
6836,
16,
356,
7208,
67,
6836,
16,
613,
33,
7036,
4672,
309,
261,
2284,
67,
6836,
353,
486,
599,
4672,
938,
67,
6836,
273,
938,
67,
6836,
18,
4025,
12,
2890,
18,
71,
1094,
13685,
67,
87,
332,
844,
295,
67,
77,
67,
22437,
13,
356,
7208,
67,
6836,
273,
356,
7208,
67,
6836,
18,
4025,
12,
2890,
18,
71,
1094,
13685,
67,
87,
332,
844,
295,
67,
77,
67,
22437,
13,
487,
89,
67,
16047,
273,
365,
18,
9371,
67,
3276,
67,
4272,
18,
345,
89,
67,
16047,
12,
1613,
67,
451,
19517,
33,
2251,
332,
74,
2
] |
this = apply(_quickfix.new_TargetStrategyParameters, args)
|
this = _quickfix.new_TargetStrategyParameters(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_TargetStrategyParameters, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2326,
4525,
2402,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2326,
4525,
2402,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def nextURL(self, clear=True):
|
def nextURL(self, clear=False):
|
def nextURL(self, clear=True): request = self.request
|
ce1e5f4ff30975b3a849e11656a87b174b71ed79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12537/ce1e5f4ff30975b3a849e11656a87b174b71ed79/login.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
1785,
12,
2890,
16,
2424,
33,
8381,
4672,
590,
273,
365,
18,
2293,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
590,
273,
365,
18,
2293,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.